{"version":3,"sources":["webpack:///./src/components/CommunicationCategoryDetail.vue?0747","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?b5db","webpack:///./src/components/CommunicationCategoryDetail.vue?ba50","webpack:///./src/components/CommunicationCategoryDetail.vue?2c3c","webpack:///./src/services/CommunicationCategory.ts","webpack:///./src/components/Pages/CommunicationsCategoriesPage.vue?69a2","webpack:///./src/components/Pages/CommunicationsCategoriesPage.vue?6156","webpack:///./src/components/CommunicationCategoryDetail.vue?be3a","webpack:///./src/components/CommunicationCategoryDetail.vue?faca","webpack:///./src/components/CommunicationCategoryDetail.vue?54a1","webpack:///./src/components/Pages/CommunicationsCategoriesPage.vue","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?fcdf","webpack:///./src/components/Pages/CommunicationsCategoriesPage.vue?0802","webpack:///./src/components/Pages/CommunicationsCategoriesPage.vue?5676","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?aa19","webpack:///./src/components/Utilities/LeftClickOptionMenu.vue?55ab"],"names":["vue_property_decorator_1","require","LeftClickOptionMenu","_vue_property_decorat","_this","_classCallCheck","leftClickMenuOptions","name","slug","type","_inherits","_createClass","key","value","event","item","this","$refs","vueContextMenuGroup","showMenu","completeUrl","url","urlArgument","option","window","open","navigator","clipboard","writeText","location","protocol","host","Vue","tslib_1","__decorate","Prop","String","default","Component","component","CommunicationCategory","idCategory","typeId","typeName","communicationSubCategories","communicationType","Array","id","mustHaveLink","mustHaveText","mustHaveTitle","canHaveAttachments","canHaveLink","canHaveText","canHaveTitle","isActiveReadingConfirmation","exports","render","_vm","_h","$createElement","_c","_self","staticClass","directives","rawName","modifiers","attrs","_v","resultsItems","length","loading","commCtgFields","scopedSlots","_u","fn","data","on","$event","openCategory","preventDefault","stopPropagation","handleClick","_s","_e","idCategorySelected","getCommunicationCategoriesWithFilter","ref","leftClickOptionMenuUrl","leftClickOptionMenuUrlArgument","staticRenderFns","returnState","communicationCategory","isSaveClicked","model","callback","$$v","$set","expression","addMode","optionCommType","_l","index","staticStyle","removeSubCategory","newSubCategoryName","trim","addCommunicationSubCategoryDo","class","deleteCategoryDo","addOrUpdateCategory","axios_1","__importDefault","General_1","CommunicationCategory_1","CommunicationCategoryDetail","General","confirm","__awaiter","_this2","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","deleteCategory","sent","$emit","$bvModal","hide","stop","_context2","_callee2","_context3","delete","GetApiUrl","withCredentials","showAlertSuccess","abrupt","t0","$fire","title","text","response","finish","_callee3","subCategory","_this3","_callee4","_context4","splice","_context5","getCommunicationCategoryById","t1","getCommunicationTypes","t2","setOptions","call","_callee5","_context6","showAlertDanger","updateCommunicationCategoryDo","addCommunicationCategoryDo","_callee6","_this4","_callee7","_context7","updateCommunicationCategory","_context8","_callee8","_this5","_callee9","_context9","addCommunicationCategory","_context10","_callee10","_context11","method","TypeId","Name","CommunicationSubCategories","CommunicationType","_callee11","_context12","IdCategory","_callee12","exists","find","subCat","toLowerCase","_this6","newSubCategory","idSubCategory","push","_context13","_callee13","_context14","get","HandleError","_callee14","_context15","_callee15","arrayTarget","arraySource","aliasId","aliasValue","pushEmptyItem","arguments","undefined","forEach","el","condiction","clickButton","required","Boolean","CommunicationCategoryDetail_vue_1","HelpContent_vue_1","LeftClickOptionMenu_vue_1","CommunicationsCategories","modal_helpCommunicationCategories","filter","label","sortable","leftClickOptions","$route","params","idCategoryUrlArgument","responseType","idCommunicationCategorySelected","show","components","HelpContent","optionClicked"],"mappings":"kHAAA,iHAAqZ,eAAG,G,yLCMxZA,EAAAC,EAAA,QAIqBC,EAAmB,SAAAC,GAAxC,SAAAD,IAAA,IAAAE,EA4BM,OA5BNC,EAAA,KAAAH,G,sBAYIE,EAAAE,qBAA4B,CACxB,CACIC,KAAM,oBACNC,KAAM,gBAEV,CACID,KAAM,uBACNC,KAAM,mBAEV,CACIC,KAAM,WAEV,CACIF,KAAM,mBACNC,KAAM,sBAEZJ,EAgBL,OAAAM,E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1BtN,KAAKkH,SAASqG,KAAK,oCAnEsB,CAASvO,EAAAgC,KAAjC4L,EAAwB3L,EAAAC,WAAA,CAR5ClC,EAAAsC,UACA,CACCkM,WAAW,CACTrH,4BAAAsG,EAAApL,QACAoM,YAAAf,EAAArL,QACAnC,oBAAAyN,EAAAtL,YAGiBuL,G,UAAAA,G,kCChErB,iHAAwa,eAAG,G,kCCA3a,oIAOIrL,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,KACA,MAIa,aAAAA,E,2CClBf,IAAIkB,EAAS,WAAa,IAAIC,EAAI1C,KAAS2C,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,0BAA0B,CAAC0B,IAAI,sBAAsBpB,MAAM,CAAC,aAAa,oBAAoB,QAAUT,EAAIpD,sBAAsBuE,GAAG,CAAC,iBAAiBnB,EAAIgL,kBAAkB,IACrRhJ,EAAkB,GCDtB","file":"js/chunk-18d96376.1218f01d.js","sourcesContent":["import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationCategoryDetail.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationCategoryDetail.vue?vue&type=script&lang=ts\"","\n\n\n\n\n\nimport { Component, Prop, Vue} from 'vue-property-decorator';\nimport VueSimpleContextMenu from 'vue-simple-context-menu';\n\n@Component\nexport default class LeftClickOptionMenu extends Vue {\n @Prop({\n type: String,\n default: ''\n })\n url: any;\n @Prop({\n type: String,\n default: ''\n })\n urlArgument: any;\n \n leftClickMenuOptions: any = [\n {\n name: 'Open in a new Tab',\n slug: 'open-new-tab'\n },\n {\n name: 'Open in a new Window',\n slug: 'open-new-window'\n },\n {\n type: 'divider',\n },\n {\n name: 'Copy url address',\n slug: 'copy-to-clipboard'\n }\n ];\n \n handleClick (event, item) {\n (this.$refs.vueContextMenuGroup as VueSimpleContextMenu).showMenu(event, item)\n }\n\n optionClicked (event) {\n let completeUrl = this.url + event.item[this.urlArgument];\n if(event.option.slug === \"open-new-tab\"){\n window.open(completeUrl, \"_blank\")\n } else if(event.option.slug === \"open-new-window\") {\n window.open(completeUrl, \"\",\"fullscreen\");\n } else {\n navigator.clipboard.writeText(location.protocol + \"//\" + window.location.host + completeUrl);\n }\n }\n}\n","import { render, staticRenderFns } from \"./CommunicationCategoryDetail.vue?vue&type=template&id=2894e6d2&scoped=true\"\nimport script from \"./CommunicationCategoryDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./CommunicationCategoryDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CommunicationCategoryDetail.vue?vue&type=style&index=0&id=2894e6d2&prod&scoped=true&lang=css\"\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 \"2894e6d2\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationCategoryDetail.vue?vue&type=style&index=0&id=2894e6d2&prod&scoped=true&lang=css\"","import { ICommunicationTypeResult } from \"@/interfaces/ICommunicationTypeResult\";\r\nimport { ICommunicationSubCategory } from \"@/interfaces/ICommunicationSubCategory\";\r\n\r\nexport default class CommunicationCategory{\r\n constructor(idCategory?: string, name?:string,typeId?:string,typeName?: string, communicationSubCategories?: Array,communicationType?:ICommunicationTypeResult){\r\n (idCategory) ? this.idCategory = idCategory : this.idCategory = \"\";\r\n (name) ? this.name = name : this.name = \"\";\r\n (typeId) ? this.typeId = typeId : this.typeId = \"\";\r\n (typeName) ? this.typeName = typeName : this.typeName = \"\";\r\n (communicationSubCategories) ? this.communicationSubCategories = communicationSubCategories : this.communicationSubCategories = Array();\r\n (communicationType) ? this.communicationType = communicationType : this.communicationType = \r\n {\r\n id:\"\",name:\"\",mustHaveLink:false,mustHaveText:false,mustHaveTitle:false,canHaveAttachments:false,canHaveLink:false,canHaveText:false,canHaveTitle:false,isActiveReadingConfirmation:false\r\n }\r\n}\r\n public idCategory: string;\r\n public name: string;\r\n public typeId: string;\r\n public typeName : string;\r\n public communicationSubCategories: Array;\r\n public communicationType: ICommunicationTypeResult;\r\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"page pt-4\"},[_c('div',{staticClass:\"heading-container\"},[_c('b-button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.category-detail-add-modal\",modifiers:{\"category-detail-add-modal\":true}}],staticClass:\"mb-1\",attrs:{\"variant\":\"primary\"}},[_c('i',{staticClass:\"fa fa-plus\"}),_vm._v(\" Create Communication Category\")]),(_vm.resultsItems.length != 0)?_c('div',{staticClass:\"results\"},[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('b-table',{attrs:{\"head-variant\":\"dark\",\"striped\":\"\",\"hover\":\"\",\"fields\":_vm.commCtgFields,\"items\":_vm.resultsItems},scopedSlots:_vm._u([{key:\"cell(icon-search)\",fn:function(data){return [_c('div',{staticClass:\"fa fa-search clickable icon-standard\",on:{\"click\":function($event){return _vm.openCategory(data.item.idCategory)},\"contextmenu\":function($event){$event.preventDefault();$event.stopPropagation();return _vm.handleClick($event, data.item)}}})]}},{key:\"cell(name)\",fn:function(data){return [_vm._v(\" \"+_vm._s(data.item.name)+\" \")]}},{key:\"cell(type)\",fn:function(data){return [_vm._v(\" \"+_vm._s(data.item.typeName)+\" \")]}}],null,false,3041095272)})],1)],1):_vm._e(),_c('b-modal',{attrs:{\"id\":\"category-detail-update-modal\",\"title\":\"Update Communication Category\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"size\":\"lg\",\"scrollable\":\"\"}},[_c('CommunicationCategoryDetail',{attrs:{\"addMode\":false,\"idCategorySelected\":_vm.idCategorySelected},on:{\"categories-Search\":_vm.getCommunicationCategoriesWithFilter}})],1),_c('b-modal',{attrs:{\"id\":\"category-detail-add-modal\",\"title\":\"Add Communication Category\",\"no-close-on-backdrop\":true,\"hide-footer\":\"\",\"size\":\"lg\",\"scrollable\":\"\"}},[_c('CommunicationCategoryDetail',{attrs:{\"addMode\":true},on:{\"categories-Search\":_vm.getCommunicationCategoriesWithFilter}})],1)],1)]),_c('left-click-option-menu',{ref:\"leftClickOptions\",attrs:{\"url\":_vm.leftClickOptionMenuUrl,\"urlArgument\":_vm.leftClickOptionMenuUrlArgument}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationsCategoriesPage.vue?vue&type=template&id=647bf38b&scoped=true\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-overlay',{attrs:{\"show\":_vm.loading,\"rounded\":\"sm\"}},[_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Category Name\")]),_c('div',{staticClass:\"col-sm-5\"},[_c('b-form-input',{attrs:{\"state\":_vm.returnState(this.communicationCategory.name != '',this.isSaveClicked)},model:{value:(_vm.communicationCategory.name),callback:function ($$v) {_vm.$set(_vm.communicationCategory, \"name\", $$v)},expression:\"communicationCategory.name\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Communication Type\")]),_c('div',{staticClass:\"col-sm-5\"},[_c('b-form-select',{attrs:{\"disabled\":!_vm.addMode,\"options\":_vm.optionCommType,\"state\":_vm.returnState(_vm.communicationCategory.typeId != '',this.isSaveClicked)},model:{value:(_vm.communicationCategory.typeId),callback:function ($$v) {_vm.$set(_vm.communicationCategory, \"typeId\", $$v)},expression:\"communicationCategory.typeId\"}})],1)]),_c('div',{staticClass:\"form-group row\"},[_c('label',{staticClass:\"col-sm-3 col-form-label font-weight-bold\",attrs:{\"for\":\"staticCode\"}},[_vm._v(\"Sub Category\")]),_c('div',{staticClass:\"col-sm-4\"},[(_vm.communicationCategory.communicationSubCategories)?[_c('ul',{staticClass:\"mt-2\"},_vm._l((_vm.communicationCategory.communicationSubCategories),function(item,index){return _c('li',{key:index},[_vm._v(\" \"+_vm._s(item.name)+\" \"),_c('b-icon-dash-circle',{staticClass:\"deleteBtn clickable\",staticStyle:{\"margin-top\":\"10\",\"margin-left\":\"5\"},attrs:{\"variant\":\"danger\",\"scale\":\"1\"},on:{\"click\":function($event){return _vm.removeSubCategory(item,index)}}})],1)}),0)]:_vm._e(),_c('b-form-input',{staticClass:\"mb-3 mt-3\",attrs:{\"size\":\"sm\"},model:{value:(_vm.newSubCategoryName),callback:function ($$v) {_vm.newSubCategoryName=$$v},expression:\"newSubCategoryName\"}}),_c('b-button',{attrs:{\"variant\":\"primary\",\"disabled\":!_vm.newSubCategoryName.trim()},on:{\"click\":_vm.addCommunicationSubCategoryDo}},[_vm._v(\"Add SubCategory\")])],2)]),_c('footer',{staticClass:\"modal-footer d-flex flex-row\",class:{ 'justify-content-between': !_vm.addMode }},[(!_vm.addMode)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.deleteCategoryDo(_vm.communicationCategory.idCategory)}}},[_vm._v(\"Delete\")]):_vm._e(),_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.addOrUpdateCategory}},[_vm._v(\"Save changes\")])],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationCategoryDetail.vue?vue&type=template&id=2894e6d2&scoped=true\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { General } from \"@/services/General\";\r\nimport CommunicationCategory from \"@/services/CommunicationCategory\";\r\nimport { ICommunicationTypeResult } from \"@/interfaces/ICommunicationTypeResult\";\r\nimport { ICommunicationSubCategory } from \"@/interfaces/ICommunicationSubCategory\";\r\n@Component\r\nexport default class CommunicationCategoryDetail extends Vue {\r\n @Prop({ type: String, required: false })\r\n idCategorySelected;\r\n @Prop({ type: Boolean, required: true })\r\n addMode;\r\n loading: boolean = false;\r\n optionCommType = new Array();\r\n newSubCategoryName : string = \"\";\r\n communicationCategory = new CommunicationCategory();\r\n isSaveClicked : boolean = false;\r\nasync deleteCategoryDo(idCategory:string){\r\n General.confirm(\r\n \"Do you want delete this category:\" + this.communicationCategory.name + \"?\",\r\n this,\r\n async () => {\r\n if(await this.deleteCategory(idCategory)){\r\n this.$emit(\"categories-Search\");\r\n this.$bvModal.hide('category-detail-update-modal');\r\n }\r\n }\r\n );\r\n }\r\n//Il delete e l'add devono returnare un true se l'operazione รจ andata a buon fine e solo in tal caso chiedere la modale di dettaglio\r\n async deleteCategory(idCategory:string): Promise{\r\n try{\r\n this.loading = true;\r\n await axios.delete(General.GetApiUrl('/api/communication/DeleteCommunicationCategory/' + idCategory),{withCredentials:true});\r\n General.showAlertSuccess(\"Category successfully deleted!\",this);\r\n return true;\r\n }catch(exception){\r\n this.$fire({\r\n title: \"Error \",\r\n text:exception.response.data,\r\n type: \"error\"\r\n });\r\n return false;\r\n }finally{\r\n this.loading = false;\r\n }\r\n }\r\n\r\n removeSubCategory(subCategory:ICommunicationSubCategory,index:number){\r\n General.confirm(\r\n \"Do you want remove subCategory:\" + subCategory.name + \"?\",\r\n this,\r\n async () => {\r\n this.communicationCategory.communicationSubCategories.splice(index,1);\r\n } \r\n ); \r\n }\r\n\r\n async mounted() {\r\n if(!this.addMode)\r\n this.communicationCategory = await this.getCommunicationCategoryById(\r\n this.idCategorySelected\r\n );\r\n this.optionCommType = this.setOptions(\r\n this.optionCommType,\r\n await this.getCommunicationTypes(),\r\n \"id\",\r\n \"name\",\r\n false\r\n );\r\n }\r\n async addOrUpdateCategory(){\r\n this.isSaveClicked = true;\r\n if(!this.communicationCategory.name || !this.communicationCategory.typeId)\r\n General.showAlertDanger(\"Please check required fields\",this)\r\n else\r\n if(!this.addMode)\r\n await this.updateCommunicationCategoryDo();\r\n else \r\n await this.addCommunicationCategoryDo();\r\n }\r\n\r\n async updateCommunicationCategoryDo(){\r\n General.confirm(\r\n \"Do you want save changes for category:\" + this.communicationCategory.name + \"?\",\r\n this,\r\n async () => {\r\n if(await this.updateCommunicationCategory(this.communicationCategory)){\r\n this.$bvModal.hide('category-detail-update-modal');\r\n this.$emit(\"categories-Search\");\r\n }\r\n this.isSaveClicked = false;\r\n }\r\n );\r\n }\r\n\r\n async addCommunicationCategoryDo(){\r\n General.confirm(\r\n \"Do you want add this category:\" + this.communicationCategory.name + \"?\",\r\n this,\r\n async () => {\r\n if(await this.addCommunicationCategory(this.communicationCategory)){\r\n this.$emit(\"categories-Search\");\r\n this.$bvModal.hide('category-detail-add-modal');\r\n }\r\n this.isSaveClicked = false;\r\n }\r\n );\r\n }\r\n\r\n async addCommunicationCategory(communicationCategory:CommunicationCategory):Promise{\r\n this.loading = true;\r\n try{\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl(\"/api/communication/AddCommunicationCategory\"),\r\n data: {\r\n TypeId:communicationCategory.typeId,\r\n Name:communicationCategory.name,\r\n CommunicationSubCategories:communicationCategory.communicationSubCategories,\r\n CommunicationType : {Name : communicationCategory.typeName}\r\n },\r\n withCredentials: true\r\n });\r\n this.$emit(\"categories-Search\");\r\n General.showAlertSuccess(\"Category successfully added\", this);\r\n return true;\r\n }catch (exception) {\r\n this.$fire({\r\n title: \"Error \",\r\n text:exception.response.data,\r\n type: \"error\"\r\n });\r\n return false;\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n async updateCommunicationCategory(communicationCategory : CommunicationCategory):Promise{\r\n this.loading = true;\r\n try{\r\n await axios({\r\n method: \"post\",\r\n url: General.GetApiUrl('/api/communication/UpdateCommunicationCategory'),\r\n data: {\r\n IdCategory : communicationCategory.idCategory,\r\n Name : communicationCategory.name,\r\n CommunicationSubCategories : communicationCategory.communicationSubCategories,\r\n TypeId : communicationCategory.typeId\r\n },\r\n withCredentials: true\r\n });\r\n this.$emit(\"categories-Search\");\r\n General.showAlertSuccess(\"SubCategory successfully updated\", this);\r\n return true;\r\n } catch (exception) {\r\n this.$fire({\r\n title: \"Error \",\r\n text:exception.response.data,\r\n type: \"error\"\r\n });\r\n return false;\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n async addCommunicationSubCategoryDo(){\r\n let exists = this.communicationCategory.communicationSubCategories.find(subCat => subCat.name.trim().toLowerCase() == this.newSubCategoryName.trim().toLowerCase());\r\n let newSubCategory : ICommunicationSubCategory = {\r\n idSubCategory: \"\",\r\n name: \"\",\r\n idCategory: \"\",\r\n communicationCategory: new CommunicationCategory(),\r\n };\r\n \r\n if(!exists){\r\n newSubCategory.name = this.newSubCategoryName;\r\n if(!this.addMode)\r\n newSubCategory.idCategory = this.idCategorySelected;\r\n \r\n this.communicationCategory.communicationSubCategories.push(newSubCategory);\r\n this.newSubCategoryName = \"\";\r\n }\r\n else\r\n General.showAlertDanger(\"SubCategory: \" + this.newSubCategoryName + \" alredy exists for this category!\",this);\r\n }\r\n\r\n async getCommunicationTypes(): Promise<[ICommunicationTypeResult]> {\r\n this.loading = true;\r\n try {\r\n let response = await axios.get<[ICommunicationTypeResult]>(\r\n General.GetApiUrl(\"/api/communication/GetCommunicationTypes\"),\r\n { withCredentials: true }\r\n );\r\n if (response.data) return response.data;\r\n } catch (exception) {\r\n General.HandleError(exception, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n async getCommunicationCategoryById(\r\n idCategory: string\r\n ): Promise {\r\n this.loading = true;\r\n try {\r\n let response = await axios.get(\r\n General.GetApiUrl(\r\n \"/api/Communication/GetCommunicationCategoryById/\" + idCategory\r\n ),\r\n { withCredentials: true }\r\n );\r\n if (response.data) return response.data;\r\n } catch (exception) {\r\n General.HandleError(exception, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n setOptions(\r\n arrayTarget: any[],\r\n arraySource: any[],\r\n aliasId: string,\r\n aliasValue: string,\r\n pushEmptyItem: boolean = true\r\n ): any[] {\r\n if (pushEmptyItem) arrayTarget.push({ value: null, text: \"\" });\r\n arraySource.forEach(function (el: any) {\r\n arrayTarget.push({ value: el[aliasId], text: el[aliasValue] });\r\n });\r\n return arrayTarget;\r\n }\r\n\r\n returnState(condiction:boolean,clickButton:boolean) : boolean{\r\n if(clickButton)\r\n return condiction \r\n else return null;\r\n }\r\n}\r\n","import { render, staticRenderFns } from \"./CommunicationsCategoriesPage.vue?vue&type=template&id=647bf38b&scoped=true\"\nimport script from \"./CommunicationsCategoriesPage.vue?vue&type=script&lang=ts\"\nexport * from \"./CommunicationsCategoriesPage.vue?vue&type=script&lang=ts\"\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 \"647bf38b\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport axios from \"axios\";\r\nimport { General } from \"@/services/General\";\r\nimport IReadingCommunicationCategory from \"@/interfaces/IReadingCommunicationCategory\";\r\nimport CommunicationCategoryDetail from \"@/components/CommunicationCategoryDetail.vue\";\r\nimport HelpContent from \"../HelpContent.vue\";\r\nimport LeftClickOptionMenu from \"@/components/Utilities/LeftClickOptionMenu.vue\";\r\n\r\n@Component\r\n({\r\n components:{\r\n CommunicationCategoryDetail,\r\n HelpContent,\r\n LeftClickOptionMenu\r\n }\r\n})\r\nexport default class CommunicationsCategories extends Vue {\r\n loading: boolean = false;\r\n resultsItems = new Array();\r\n modal_helpCommunicationCategories: string = \"modal-helpCommunicationCategories\"\r\n filter: any = {\r\n idCategory: \"\",\r\n typeId: \"\",\r\n name: \"\",\r\n };\r\n idCategorySelected: string = \"\";\r\n commCtgFields = [\r\n {\r\n key: 'icon-search',\r\n label: '',\r\n sortable: false\r\n },\r\n {\r\n key: 'name',\r\n label: 'Category',\r\n sortable: false\r\n },\r\n {\r\n key: 'type',\r\n label: 'Communication Type',\r\n sortable: false\r\n }\r\n ];\r\n\r\n //pacchetto per menu tasto destro su dettaglio entita'\r\n leftClickOptionMenuUrl: string = \"/communicationsCategories/\";\r\n leftClickOptionMenuUrlArgument: string = \"idCategory\";\r\n handleClick (event, item) {\r\n (this.$refs.leftClickOptions as LeftClickOptionMenu).handleClick(event, item);\r\n }\r\n\r\n async mounted() {\r\n await this.getCommunicationCategoriesWithFilter(this.filter);\r\n if (this.$route.params.id) {\r\n let idCategoryUrlArgument = this.$route.params.id;\r\n this.openCategory(idCategoryUrlArgument);\r\n }\r\n }\r\n\r\n async getCommunicationCategoriesWithFilter(filter){\r\n this.loading = true;\r\n try {\r\n let response = await axios({\r\n method: 'post',\r\n url: General.GetApiUrl('/api/Communication/GetCommunicationCategoriesWithFilter'),\r\n responseType: 'json',\r\n withCredentials: true,\r\n data: {\r\n filter: filter,\r\n }\r\n });\r\n\r\n if (response.data) \r\n this.resultsItems =response.data;\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n openCategory(idCommunicationCategorySelected : string){\r\n this.idCategorySelected = idCommunicationCategorySelected;\r\n this.$bvModal.show(\"category-detail-update-modal\");\r\n }\r\n\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationsCategoriesPage.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationsCategoriesPage.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./LeftClickOptionMenu.vue?vue&type=template&id=2df39b76\"\nimport script from \"./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"\nexport * from \"./LeftClickOptionMenu.vue?vue&type=script&lang=ts\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-simple-context-menu',{ref:\"vueContextMenuGroup\",attrs:{\"element-id\":\"contextMenuGroups\",\"options\":_vm.leftClickMenuOptions},on:{\"option-clicked\":_vm.optionClicked}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"28da8b7a-vue-loader-template\\\"}!../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LeftClickOptionMenu.vue?vue&type=template&id=2df39b76\""],"sourceRoot":""}