{"version":3,"sources":["webpack:///./src/modules/offertaFormativa/views/pianoOffertaFormativa.vue?4e9d","webpack:///./src/modules/offertaFormativa/components/managePof.vue?f981","webpack:///./src/modules/offertaFormativa/components/managePof.ts","webpack:///./src/modules/offertaFormativa/components/managePof.ts?f254","webpack:///./src/modules/offertaFormativa/components/managePof.vue","webpack:///./src/modules/offertaFormativa/views/pianoOffertaFormativa.ts","webpack:///./src/modules/offertaFormativa/views/pianoOffertaFormativa.ts?7655","webpack:///./src/modules/offertaFormativa/views/pianoOffertaFormativa.vue","webpack:///./src/modules/offertaFormativa/components/managePof.vue?a561","webpack:///./src/services/_base/debounce.ts","webpack:///./src/modules/offertaFormativa/services/pianoOffertaFormativaService.ts"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","model","value","query","callback","$$v","$set","expression","_l","item","key","id","nome","$can","periodoFormativoId","on","$event","showManage","_v","_e","directives","name","rawName","list","scopedSlots","_u","fn","row","_s","_f","dataInizio","dataFine","handleChangeStato","periodoFormativo","stato","handleRemove","page","take","pagination","pageSizes","total","paginationSizeChange","paginationPageChange","onChange","staticRenderFns","title","$emit","ref","formRules","manage","dataInizioPickerOptions","Date","dataFinePickerOptions","slot","saving","add","selectedRangeDates","attivo","pianiOffertaFormativa","length","forEach","f","push","required","trigger","message","validator","validateDataFine","rule","Error","time","startPeriodo","endPeriodo","getFullYear","el","start","end","getMonth","setDate","n","o","$refs","form","validate","valid","exists","Exist","$alert","computedTitle","confirmButtonText","type","dangerouslyUseHTMLString","setMonth","pof","Set","then","$message","catch","err","component","filter","loading","fetchDataDebounced","debounce","self","fetchData","store","getters","periodiFormativi","Count","List","duration","center","find","size","result","$msgbox","showCancelButton","cancelButtonText","Remove","showClose","console","info","components","ManagePof","func","waitMilliseconds","timeoutId","args","context","doLater","undefined","apply","clearTimeout","setTimeout","PianoOffertaFormativaService","super","baseUrl","params","Get","data","Post","Delete","pofService"],"mappings":"8GAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,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setup=_vm._self._setupProxy;return _c('div',{staticClass:\"container pof-container\"},[_c('header',{staticClass:\"header-tools-container\"},[_c('el-select',{attrs:{\"clearable\":\"\",\"placeholder\":\"Seleziona Periodo Formativo\"},model:{value:(_vm.query.periodoFormativoId),callback:function ($$v) {_vm.$set(_vm.query, \"periodoFormativoId\", $$v)},expression:\"query.periodoFormativoId\"}},_vm._l((_vm.periodiFormativi),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.nome,\"value\":item.id}})}),1),_c('el-input',{attrs:{\"placeholder\":`Inserisci il nome del piano offerta formativa da ricercare`,\"clearable\":\"\",\"prefix-icon\":\"el-icon-search\",\"aria-label\":\"Ricerca piano offerta formativo\"},model:{value:(_vm.query.filter),callback:function ($$v) {_vm.$set(_vm.query, \"filter\", $$v)},expression:\"query.filter\"}}),(_vm.$can(`OFFERTA_FORMATIVA.POF.canCreate`))?_c('el-button',{attrs:{\"disabled\":!_vm.query.periodoFormativoId,\"type\":\"success\",\"icon\":\"el-icon-plus\",\"aria-label\":\"Crea piano offerta formativo\"},on:{\"click\":function($event){_vm.showManage = true}}},[_vm._v(\"Aggiungi\")]):_vm._e()],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],attrs:{\"height\":\"calc(100vh - 176px)\",\"data\":_vm.list,\"empty-text\":_vm.query.periodoFormativoId ? 'Nessuna Piano Offerta Formativa nel Periodo Formativo selezionato': 'Seleziona un Periodo Formativo',\"show-overflow-tooltip\":\"\",\"border\":\"\",\"fit\":\"\",\"highlight-current-row\":\"\"}},[_c('el-table-column',{attrs:{\"prop\":\"nome\",\"label\":\"Nome\"}}),_c('el-table-column',{attrs:{\"label\":\"Data inizio\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(\" \"+_vm._s(_vm._f(\"formatTime\")(row.dataInizio,'MMMM YYYY'))+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"Data fine\",\"width\":\"120\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_vm._v(\" \"+_vm._s(_vm._f(\"formatTime\")(row.dataFine,'MMMM YYYY'))+\" \")]}}])}),_c('el-table-column',{attrs:{\"label\":\"Stato\",\"width\":\"80\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [_c('el-switch',{attrs:{\"aria-label\":\"Attiva/Disattiva piano offerta formativa\"},on:{\"change\":function($event){return _vm.handleChangeStato(row)}},model:{value:(row.attivo),callback:function ($$v) {_vm.$set(row, \"attivo\", $$v)},expression:\"row.attivo\"}})]}}])}),(_vm.periodoFormativo && _vm.periodoFormativo.stato === 'inCompilazione' && (_vm.$can(`OFFERTA_FORMATIVA.POF.canEdit`) || _vm.$can(`OFFERTA_FORMATIVA.POF.canDelete`)))?_c('el-table-column',{attrs:{\"width\":\"56\",\"class-name\":\"tools\"},scopedSlots:_vm._u([{key:\"default\",fn:function({ row }){return [(_vm.$can(`OFFERTA_FORMATIVA.POF.canDelete`))?_c('el-button',{attrs:{\"plain\":\"\",\"type\":\"danger\",\"icon\":\"el-icon-delete\",\"aria-label\":\"Elimina piano offerta formativo\"},on:{\"click\":function($event){return _vm.handleRemove(row)}}}):_vm._e()]}}],null,false,74261518)}):_vm._e()],1),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"current-page\":_vm.query.page,\"page-size\":_vm.query.take,\"page-sizes\":_vm.pagination.pageSizes,\"total\":_vm.pagination.total,\"layout\":\"total, sizes, prev, pager, next, jumper\"},on:{\"size-change\":_vm.paginationSizeChange,\"current-change\":_vm.paginationPageChange}})],1),(_vm.showManage)?_c('manage-pof',{attrs:{\"periodo-formativo\":_vm.periodoFormativo,\"piani-offerta-formativa\":_vm.list},on:{\"close\":function($event){_vm.showManage = false},\"change\":_vm.onChange}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('el-dialog',{attrs:{\"width\":\"800px\",\"title\":_vm.title,\"visible\":true,\"destroy-on-close\":true,\"close-on-press-escape\":false,\"close-on-click-modal\":false},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"dialog-container\"},[_c('el-form',{ref:\"form\",attrs:{\"inline\":true,\"label-position\":\"top\",\"rules\":_vm.formRules,\"model\":_vm.manage}},[_c('el-form-item',{attrs:{\"label\":\"Data inizio\",\"prop\":\"dataInizio\"}},[_c('el-date-picker',{attrs:{\"picker-options\":_vm.dataInizioPickerOptions,\"value-format\":\"yyyy-MM\",\"format\":\"MMM yyyy\",\"default-value\":new Date(this.periodoFormativo.dataInizio, 0 , 1),\"type\":\"month\",\"placeholder\":'Mese di inizio',\"clearable\":false},model:{value:(_vm.manage.dataInizio),callback:function ($$v) {_vm.$set(_vm.manage, \"dataInizio\", $$v)},expression:\"manage.dataInizio\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Data fine\",\"prop\":\"dataFine\"}},[_c('el-date-picker',{attrs:{\"picker-options\":_vm.dataFinePickerOptions,\"value-format\":\"yyyy-MM\",\"format\":\"MMM yyyy\",\"default-value\":new Date(_vm.manage.dataInizio),\"disabled\":!_vm.manage.dataInizio,\"type\":\"month\",\"placeholder\":!_vm.manage.dataInizio ? 'Seleziona un mese di inizio' : 'Mese di fine'},model:{value:(_vm.manage.dataFine),callback:function ($$v) {_vm.$set(_vm.manage, \"dataFine\", $$v)},expression:\"manage.dataFine\"}})],1),_c('el-form-item',{staticClass:\"nome\",attrs:{\"label\":\"Nome\",\"prop\":\"nome\"}},[_c('el-input',{attrs:{\"label\":\"Nome\"},model:{value:(_vm.manage.nome),callback:function ($$v) {_vm.$set(_vm.manage, \"nome\", $$v)},expression:\"manage.nome\"}})],1)],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"aria-label\":\"Annulla\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"Annulla\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.saving,\"aria-label\":\"Conferma\"},on:{\"click\":_vm.add}},[_vm._v(\"Conferma\")])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop, Watch } from 'vue-property-decorator';\nimport { pofService } from '../services/pianoOffertaFormativaService';\nimport { ElForm } from 'element-ui/types/form';\nimport { formatTime } from '@/filters';\nimport moment, { relativeTimeThreshold } from 'moment';\n\n@Component({})\nexport default class ManagePof extends Vue {\n @Prop({ required: true })\n periodoFormativo: periodoFormativo.item;\n\n @Prop({})\n pianiOffertaFormativa: pianoOffertaFormativa.item[];\n\n title: string = 'Inserimento nuovo Piano Offerta Formativa';\n manage: pianoOffertaFormativa.item = null;\n\n selectedRangeDates: Date[][] = [];\n created() {\n this.manage = {\n id: null,\n periodoFormativoId: this.periodoFormativo.id,\n nome: null,\n dataInizio: null,\n dataFine: null,\n attivo: false\n };\n\n if (this.pianiOffertaFormativa && this.pianiOffertaFormativa.length > 0) {\n this.pianiOffertaFormativa.forEach(f => {\n this.selectedRangeDates.push([f.dataInizio as Date, f.dataFine as Date]);\n });\n }\n }\n\n get formRules() {\n return {\n nome: [{ required: true, trigger: 'blur', message: `Il campo 'Nome' è obbligatorio` }],\n dataInizio: [{ required: true, trigger: 'blur', message: `Il campo 'Data inizio' è obbligatorio` }],\n dataFine: [{ validator: this.validateDataFine }]\n };\n }\n\n validateDataFine(rule, value, callback) {\n if (!value || value === '') {\n callback(new Error(\"Il campo 'Data fine' è obbligatorio\"));\n } else if (value <= this.manage.dataInizio) {\n callback(new Error(\"Il campo 'Data fine' deve essere superiore alla 'Data inizio'\"));\n } else {\n callback();\n }\n }\n\n get dataInizioPickerOptions() {\n const _self = this;\n return {\n disabledDate(time: Date) {\n const startPeriodo = _self.periodoFormativo.dataInizio;\n const endPeriodo = _self.periodoFormativo.dataFine;\n if (time.getFullYear() < startPeriodo || time.getFullYear() > endPeriodo) {\n return true;\n }\n\n if (_self.selectedRangeDates.length > 0) {\n for (const el of _self.selectedRangeDates) {\n var start = el[0];\n var end = el[1];\n\n if (time.getFullYear() <= end.getFullYear() && time.getMonth() <= end.getMonth() && time.getFullYear() >= start.getFullYear() && time.getMonth() >= start.getMonth()) {\n return true;\n }\n }\n }\n\n if (!_self.manage.dataFine) return false;\n return new Date(time.setDate(1)) > new Date(_self.manage.dataFine);\n }\n };\n }\n\n get dataFinePickerOptions() {\n const _self = this;\n return {\n disabledDate(time: Date) {\n const startPeriodo = _self.periodoFormativo.dataInizio;\n const endPeriodo = _self.periodoFormativo.dataFine;\n if (time.getFullYear() < startPeriodo || time.getFullYear() > endPeriodo) {\n return true;\n }\n\n if (!_self.manage.dataInizio) return false;\n return new Date(time.setDate(1)) <= new Date(_self.manage.dataInizio);\n }\n };\n }\n\n get computedTitle() {\n if (!this.manage || (this.manage && (!this.manage.dataInizio || !this.manage.dataFine))) return null;\n return `Piano offerta formativa ${formatTime(this.manage.dataInizio, 'MMMM yyyy')} - ${formatTime(this.manage.dataFine, 'MMMM yyyy')}`;\n }\n\n @Watch('computedTitle')\n dateRangeChange(n, o) {\n if (n && n !== o && (!this.manage.nome || this.manage.nome === o)) {\n this.manage.nome = n;\n (this.$refs.form as ElForm)?.validate();\n }\n }\n\n saving: boolean = false;\n async add() {\n (this.$refs.form as ElForm)?.validate(async valid => {\n if (valid) {\n this.saving = true;\n const exists = await pofService.Exist({\n dataInizio: this.manage.dataInizio,\n dataFine: this.manage.dataFine\n } as pianoOffertaFormativa.exist);\n if (exists) {\n this.$alert(`Il ${this.computedTitle} si sovrappone ad un Piano offerta formativa esistente`, 'Attenzione!', {\n confirmButtonText: 'Ok',\n type: 'warning',\n dangerouslyUseHTMLString: true\n });\n this.saving = false;\n return;\n }\n\n const dataInizio = new Date(this.manage.dataInizio);\n const end = new Date(this.manage.dataFine);\n\n const dataFine = new Date(end.setMonth(end.getMonth() + 1, 0));\n\n const pof: pianoOffertaFormativa.item = {\n id: null,\n periodoFormativoId: this.manage.periodoFormativoId,\n nome: `Piano offerta formativa ${formatTime(dataInizio, 'MMMM yyyy')} - ${formatTime(dataFine, 'MMMM yyyy')}`,\n dataInizio: formatTime(dataInizio, 'YYYY-MM-DD'),\n dataFine: formatTime(dataFine, 'YYYY-MM-DD'),\n attivo: false\n };\n\n pofService\n .Set(pof)\n .then(pof => {\n this.saving = false;\n this.$emit('change', pof);\n this.$message({\n message: `Il nuovo ${this.computedTitle} e' stato creato con successo`,\n dangerouslyUseHTMLString: true,\n type: 'success'\n });\n })\n .catch(err => {\n this.saving = false;\n this.$message({\n message: `Errore durante la creazione del ${this.computedTitle}`,\n type: 'error'\n });\n });\n }\n });\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./managePof.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./managePof.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./managePof.vue?vue&type=template&id=95c7bb3e&scoped=true\"\nimport script from \"./managePof.ts?vue&type=script&lang=ts&external\"\nexport * from \"./managePof.ts?vue&type=script&lang=ts&external\"\nimport style0 from \"./managePof.vue?vue&type=style&index=0&id=95c7bb3e&prod&lang=less&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"95c7bb3e\",\n null\n \n)\n\nexport default component.exports","import { debounce } from '@/services/_base/debounce';\nimport Vue from 'vue';\nimport Component from 'vue-class-component';\nimport { Prop, Watch } from 'vue-property-decorator';\nimport { pofService } from '../services/pianoOffertaFormativaService';\nimport { periodoFormativoService } from '../services/periodoFormativoService';\nimport ManagePof from '../components/managePof.vue';\nimport { store } from '@/store';\n\n@Component({\n components: {\n ManagePof\n }\n})\nexport default class pianoOffertaFormativa extends Vue {\n @Prop()\n periodoFormativoId?: string;\n\n pagination: { pageSizes: number[]; total: number } = {\n pageSizes: [20, 40, 60],\n total: 0\n };\n\n query: pianoOffertaFormativa.queryParams = {\n page: 1,\n take: 20,\n filter: null,\n periodoFormativoId: null\n };\n\n \n list: pianoOffertaFormativa.item[] = [];\n loading: boolean = false;\n showManage: boolean = false;\n\n get periodiFormativi(): periodoFormativo.item[]{\n return store.getters.periodiFormativi.list();\n }\n\n async created() {\n this.loading = true;\n if (this.periodoFormativoId) {\n this.query.periodoFormativoId = this.periodoFormativoId;\n await this.fetchData();\n }\n this.loading = false;\n }\n\n private fetchDataDebounced = debounce(async (self: this) => {\n await this.fetchData();\n }, 400);\n\n async fetchData() {\n try {\n this.loading = true;\n this.pagination.total = await pofService.Count(this.query);\n this.list = await pofService.List(this.query);\n this.loading = false;\n } catch (err) {\n this.loading = false;\n this.$message({\n message: 'Errore durante il recupero dei Piani Offerta Formativi',\n duration: 5 * 1000,\n center: true,\n type: 'error'\n });\n }\n }\n\n get periodoFormativo() {\n if (!this.periodiFormativi || this.periodiFormativi.length <= 0) return null;\n return this.periodiFormativi.find(f => f.id === this.query.periodoFormativoId);\n }\n\n @Watch('query.periodoFormativoId')\n async queryChanged(n, o) {\n if (!n) {\n this.list = [];\n this.pagination.total = 0;\n } else {\n if (n !== o) {\n this.fetchData();\n }\n }\n }\n\n @Watch('query.filter')\n filterChanged(n, o) {\n if (n !== o) {\n this.fetchDataDebounced(this);\n }\n }\n\n paginationSizeChange(size) {\n this.query.take = size;\n this.query.page = 1;\n this.fetchData();\n }\n\n paginationPageChange(page) {\n this.query.page = page;\n this.fetchData();\n }\n\n onChange(pof: pianoOffertaFormativa.item) {\n this.fetchData();\n this.showManage = false;\n }\n\n async handleChangeStato(row: pianoOffertaFormativa.item) {\n const result = await pofService.Set(row);\n if (result) {\n row.attivo = result.attivo;\n }\n else {\n row.attivo = !row.attivo;\n }\n }\n\n async handleRemove(row: periodoFormativo.item) {\n this.$msgbox({\n title: `Attenzione`,\n message: `Il piano offerta formativa ${row.nome} verrà cancellato definitivamente. Continuare?`,\n showCancelButton: true,\n confirmButtonText: `Si`,\n cancelButtonText: `Annulla`,\n dangerouslyUseHTMLString: true,\n type: 'warning'\n })\n .then(async () => {\n try {\n await pofService.Remove(row.id);\n this.fetchData();\n this.$message({\n message: `Eliminazione del piano offerta formativa ${row.nome} effettuato con successo.`,\n dangerouslyUseHTMLString: true,\n duration: 5 * 1000,\n center: true,\n showClose: true,\n type: 'success'\n });\n } catch (err) {\n this.$message({\n message: \"Errore durante l'eliminazione del piano offerta formativa\",\n duration: 5 * 1000,\n center: true,\n showClose: true,\n type: 'error'\n });\n }\n })\n .catch(err => {\n console.info(err);\n });\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./pianoOffertaFormativa.ts?vue&type=script&lang=ts&external\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/ts-loader/index.js??ref--13-2!./pianoOffertaFormativa.ts?vue&type=script&lang=ts&external\"","import { render, staticRenderFns } from \"./pianoOffertaFormativa.vue?vue&type=template&id=c2be5b42\"\nimport script from \"./pianoOffertaFormativa.ts?vue&type=script&lang=ts&external\"\nexport * from \"./pianoOffertaFormativa.ts?vue&type=script&lang=ts&external\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./managePof.vue?vue&type=style&index=0&id=95c7bb3e&prod&lang=less&scoped=true\"","export type Procedure = (...args: any[]) => void;\n\nexport function debounce(\n func: F,\n waitMilliseconds = 50,\n): (this: ThisParameterType, ...args: Parameters) => void {\n let timeoutId: ReturnType | undefined;\n return function (this: ThisParameterType, ...args: Parameters) {\n const context = this;\n\n const doLater = function () {\n timeoutId = undefined;\n func.apply(context, args);\n }\n\n if (timeoutId !== undefined) {\n clearTimeout(timeoutId);\n }\n timeoutId = setTimeout(doLater, waitMilliseconds);\n }\n}","import { baseRestService } from \"@/services/_base/baseRestService\";\nimport settings from \"@/settings\";\n\nclass PianoOffertaFormativaService extends baseRestService {\n constructor() {\n super();\n this.baseUrl = () => settings.baseUrl;\n }\n\n async Count(params?: pianoOffertaFormativa.queryParams): Promise {\n return await this.Get('/api/pof/count', params);\n }\n\n async List(params?: pianoOffertaFormativa.queryParams): Promise {\n return await this.Get(`/api/pof`, params);\n }\n\n async Detail(id: string): Promise {\n return await this.Get(`/api/pof/${id}`);\n }\n\n async GetByDate(data: Date): Promise {\n return await this.Post('/api/pof/getByDate', data);\n }\n\n async Exist(item: pianoOffertaFormativa.exist) {\n return await this.Post('/api/pof/exists', item);\n }\n\n async Set(item: pianoOffertaFormativa.item): Promise {\n return await this.Post('/api/pof', item);\n }\n\n async Remove(id: string) {\n return await this.Delete(`/api/pof/${id}`);\n }\n}\n\nexport const pofService = new PianoOffertaFormativaService();"],"sourceRoot":""}