{"version":3,"sources":["webpack:///./src/entity/MainVar.ts","webpack:///./src/components/Utilities/SearchFilter.vue?533d","webpack:///./src/components/Utilities/SearchFilter.vue?826d","webpack:///./src/components/Utilities/SearchFilter.vue?fb5e","webpack:///./src/components/Utilities/SearchFilter.vue?25bf","webpack:///./src/components/Utilities/SearchFilter.vue?1a67","webpack:///./src/components/Utilities/SearchFilter.vue?ebad"],"names":["General_1","require","axios_1","tslib_1","__importDefault","MainVar","_classCallCheck","this","dropDownListLastUpdate","translationsLastUpdate","lastEndpointCheck","net20PotentialVolumeLimitsLastUpdate","net20SupplierRequestExclusionsLastUpdate","net20ExcludedContractStepsUpdate","net20FieldConfigurationsUpdate","net20PlannedSignInstallationDefaultsUpdate","net20ContractConfigurationsUpdate","_createClass","key","value","timeSpan","Date","now","undefined","_context","next","default","get","General","GetApiUrl","responseType","withCredentials","response","sent","data","stop","_callee","previousMainVar","exports","vue_property_decorator_1","SearchFilter","_vue_property_decorat","_this","collapsibleIsOpen","searchText","inputTextClasses","_inherits","$emit","filterSearchIcon","document","getElementById","classList","add","remove","activeFilterFromWidget","isFilterActive","filterSelected","Vue","__decorate","Prop","Component","component","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","class","placeholder","on","$event","type","indexOf","_k","keyCode","emitSearchEvent","model","callback","$$v","expression","directives","name","rawName","colorChange","toggle","staticStyle","_v","_s","$t","_e","isCollapseVisible","_t","emitResetEvent","staticRenderFns"],"mappings":"mPAAAA,EAAAC,EAAA,QACAC,EAAAC,EAAAC,gBAAAH,EAAA,SAEaI,EAAO,WAWhB,SAAAA,IAAAC,EAAA,KAAAD,GACIE,KAAKC,uBAAyB,KAC9BD,KAAKE,uBAAyB,KAC9BF,KAAKG,kBAAoB,KACzBH,KAAKI,qCAAuC,KAC5CJ,KAAKK,yCAA2C,KAChDL,KAAKM,iCAAmC,KACxCN,KAAKO,+BAAiC,KACtCP,KAAKQ,2CAA6C,KAClDR,KAAKS,kCAAoC,KAC5C,OAAAC,EAAAZ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AG1B,EAAG,WAAW,CAACiB,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASlE,OAAQ4C,EAAIpB,kBAAmBuC,WAAW,uBAAuBd,YAAY,8CAA8CC,MAAM,CAAC,KAAO,GAAG,QAAU,WAAWG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIe,qBAAqB,CAACf,EAAI0B,GAAG,IAAI1B,EAAI2B,GAAG3B,EAAI4B,GAAG,mBAAmB,KAAKzB,EAAG,IAAI,CAACE,YAAY,oBAAoB,GAAIL,EAAkB,eAAEG,EAAG,aAAa,CAACE,YAAY,yCAAyCC,MAAM,CAAC,GAAK,sBAAsB,QAAUN,EAAI8B,oBAAoB,CAAC9B,EAAI+B,GAAG,WAAW5B,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,KAAO,GAAG,QAAU,aAAaG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIgC,oBAAoB,CAAChC,EAAI0B,GAAG,IAAI1B,EAAI2B,GAAG3B,EAAI4B,GAAG,0BAA0B,KAAKzB,EAAG,IAAI,CAACE,YAAY,kBAAkBF,EAAG,WAAW,CAACE,YAAY,aAAaC,MAAM,CAAC,KAAO,GAAG,QAAU,WAAWG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOV,EAAIe,qBAAqB,CAACf,EAAI0B,GAAG,IAAI1B,EAAI2B,GAAG3B,EAAI4B,GAAG,mBAAmB,KAAKzB,EAAG,IAAI,CAACE,YAAY,oBAAoB,IAAI,GAAGL,EAAI6B,MAAM,IAC/iEI,EAAkB,GCDtB,qE,kCCAA","file":"js/chunk-6e89c1d0.3c953a1f.js","sourcesContent":["import { General } from \"@/services/General\";\r\nimport axios from \"axios\";\r\n\r\nexport class MainVar{\r\n dropDownListLastUpdate: Date;\r\n translationsLastUpdate: Date;\r\n lastEndpointCheck: number;\r\n net20PotentialVolumeLimitsLastUpdate: Date;\r\n net20SupplierRequestExclusionsLastUpdate: Date;\r\n net20ExcludedContractStepsUpdate: Date;\r\n net20FieldConfigurationsUpdate: Date;\r\n net20PlannedSignInstallationDefaultsUpdate: Date;\r\n net20ContractConfigurationsUpdate: Date;\r\n\r\n constructor() {\r\n this.dropDownListLastUpdate = null;\r\n this.translationsLastUpdate = null;\r\n this.lastEndpointCheck = null;\r\n this.net20PotentialVolumeLimitsLastUpdate = null;\r\n this.net20SupplierRequestExclusionsLastUpdate = null;\r\n this.net20ExcludedContractStepsUpdate = null;\r\n this.net20FieldConfigurationsUpdate = null;\r\n this.net20PlannedSignInstallationDefaultsUpdate = null;\r\n this.net20ContractConfigurationsUpdate = null;\r\n }\r\n\r\n public async GetAsync() {\r\n let timeSpan = Date.now() - this.lastEndpointCheck;\r\n if(this.lastEndpointCheck === undefined || timeSpan >= 60000) {\r\n let response = await axios.get(\r\n General.GetApiUrl('/api/utils/GetMainDbVar'),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data) {\r\n this.dropDownListLastUpdate = response.data.dropDownListLastUpdate;\r\n this.translationsLastUpdate = response.data.translationsLastUpdate;\r\n this.net20PotentialVolumeLimitsLastUpdate = response.data.net20PotentialVolumeLimitsLastUpdate;\r\n this.net20SupplierRequestExclusionsLastUpdate = response.data.net20SupplierRequestExclusionsLastUpdate;\r\n this.net20ExcludedContractStepsUpdate = response.data.net20ExcludedContractStepsUpdate;\r\n this.net20FieldConfigurationsUpdate = response.data.net20FieldConfigurationsUpdate;\r\n this.net20PlannedSignInstallationDefaultsUpdate = response.data.net20PlannedSignInstallationDefaultsUpdate;\r\n this.net20ContractConfigurationsUpdate = response.data.net20ContractConfigurationsUpdate;\r\n this.lastEndpointCheck = Date.now();\r\n }\r\n }\r\n }\r\n\r\n public IsRecent(previousMainVar: MainVar) {\r\n if(this == null\r\n || (!this.dropDownListLastUpdate || this.dropDownListLastUpdate > previousMainVar.dropDownListLastUpdate)\r\n || (!this.translationsLastUpdate || this.translationsLastUpdate > previousMainVar.translationsLastUpdate)\r\n || (!this.net20PotentialVolumeLimitsLastUpdate || this.net20PotentialVolumeLimitsLastUpdate > previousMainVar.net20PotentialVolumeLimitsLastUpdate)\r\n || (!this.net20SupplierRequestExclusionsLastUpdate || this.net20SupplierRequestExclusionsLastUpdate > previousMainVar.net20SupplierRequestExclusionsLastUpdate)\r\n || (!this.net20ExcludedContractStepsUpdate || this.net20ExcludedContractStepsUpdate > previousMainVar.net20ExcludedContractStepsUpdate)\r\n || (!this.net20FieldConfigurationsUpdate || this.net20FieldConfigurationsUpdate > previousMainVar.net20FieldConfigurationsUpdate)\r\n || (!this.net20PlannedSignInstallationDefaultsUpdate || this.net20PlannedSignInstallationDefaultsUpdate > previousMainVar.net20PlannedSignInstallationDefaultsUpdate)\r\n || (!this.net20ContractConfigurationsUpdate || this.net20ContractConfigurationsUpdate > previousMainVar.net20ContractConfigurationsUpdate))\r\n return true;\r\n else\r\n return false;\r\n }\r\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 { WatchOptions } from 'vue';\r\nimport { Component, Prop, Vue , Watch} from 'vue-property-decorator';\r\n\r\n@Component\r\nexport default class SearchFilter extends Vue {\r\n @Prop({default: \"Generic Search!\"})\r\n placeholder: string\r\n @Prop({default: true})\r\n isFilterActive: boolean\r\n @Prop({default: false})\r\n isCollapseVisible: boolean\r\n @Prop({default: false})\r\n filterSelected: boolean\r\n @Prop({default: false})\r\n activeFilterFromWidget: boolean\r\n\r\n collapsibleIsOpen : boolean = false;\r\n // @Prop({ type: Boolean, default: false })\r\n // collapsibleIsOpen;\r\n searchText: string = \"\"\r\n inputTextClasses: string = \"left-rounded-border\"\r\n emitResetEvent(): void {\r\n this.searchText = \"\"\r\n this.$emit(\"filter-reset\")\r\n }\r\n\r\n emitSearchEvent(): void {\r\n this.$emit(\"filter-search\", this.searchText)\r\n }\r\n\r\n toggle(): void {\r\n this.collapsibleIsOpen = !this.collapsibleIsOpen\r\n let filterSearchIcon = document.getElementById(\"filterSearchIcon\")\r\n if (this.collapsibleIsOpen) {\r\n filterSearchIcon.classList.add(\"rotate-90-deg\")\r\n this.$emit(\"open-filter-search\")\r\n }\r\n else {\r\n filterSearchIcon.classList.remove(\"rotate-90-deg\")\r\n this.$emit(\"close-filter-search\")\r\n }\r\n }\r\n\r\n mounted():void {\r\n //nel caso in cui abbia cliccato sul title dei widget communication simulo una ricerca con il tab aperto\r\n if(this.activeFilterFromWidget) {\r\n let filterSearchIcon = document.getElementById(\"filterSearchIcon\")\r\n this.collapsibleIsOpen = true;\r\n filterSearchIcon.classList.add(\"rotate-90-deg\")\r\n this.$emit(\"open-filter-search\")\r\n }\r\n }\r\n\r\n created(): void {\r\n if (!this.isFilterActive)\r\n this.inputTextClasses = this.inputTextClasses + \" right-rounded-border\"\r\n this.$emit(\"open-filter-search\");\r\n }\r\n\r\n get colorChange(){\r\n if (this.filterSelected){\r\n return 'secondary';\r\n }\r\n return 'outline-secondary';\r\n }\r\n\r\n}\r\n","import { render, staticRenderFns } from \"./SearchFilter.vue?vue&type=template&id=56c482fe&scoped=true\"\nimport script from \"./SearchFilter.vue?vue&type=script&lang=ts\"\nexport * from \"./SearchFilter.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SearchFilter.vue?vue&type=style&index=0&id=56c482fe&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 \"56c482fe\",\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!./SearchFilter.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!./SearchFilter.vue?vue&type=script&lang=ts\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"align-items-center row\"},[_c('b-input-group',{staticClass:\"col-12 col-sm p-0 searchBar\",attrs:{\"size\":\"md\"}},[_c('b-form-input',{class:_vm.inputTextClasses,attrs:{\"placeholder\":_vm.placeholder},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.emitSearchEvent()}},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}}),(_vm.isFilterActive)?_c('b-button',{directives:[{name:\"b-toggle\",rawName:\"v-b-toggle\",value:('collapsible-content'),expression:\"'collapsible-content'\"}],staticClass:\"btn right-rounded-border p-o\",attrs:{\"variant\":_vm.colorChange},on:{\"click\":function($event){return _vm.toggle()}}},[_c('i',{staticClass:\"fa fa-chevron-right text-nowrap\",staticStyle:{\"transition\":\"transform 0.5s\"},attrs:{\"id\":\"filterSearchIcon\"}}),_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.FILTERS')))]):_vm._e()],1),_c('b-button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.collapsibleIsOpen),expression:\"!collapsibleIsOpen\"}],staticClass:\"text-nowrap ml-3 col-12 col-sm-1 btn-search\",attrs:{\"pill\":\"\",\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.emitSearchEvent()}}},[_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.SEARCH'))+\" \"),_c('i',{staticClass:\"fa fa-search\"})])],1),(_vm.isFilterActive)?_c('b-collapse',{staticClass:\"mx-3 p-3 mb-3 bg-light border rounded \",attrs:{\"id\":\"collapsible-content\",\"visible\":_vm.isCollapseVisible}},[_vm._t(\"default\"),_c('div',{staticClass:\"mt-3\"},[_c('b-button',{attrs:{\"pill\":\"\",\"variant\":\"secondary\"},on:{\"click\":function($event){return _vm.emitResetEvent()}}},[_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.RESET_FILTERS'))+\" \"),_c('i',{staticClass:\"fa fa-close\"})]),_c('b-button',{staticClass:\"pull-right\",attrs:{\"pill\":\"\",\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.emitSearchEvent()}}},[_vm._v(\" \"+_vm._s(_vm.$t('GENERIC.SEARCH'))+\" \"),_c('i',{staticClass:\"fa fa-search\"})])],1)],2):_vm._e()],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!./SearchFilter.vue?vue&type=template&id=56c482fe&scoped=true\"","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!./SearchFilter.vue?vue&type=style&index=0&id=56c482fe&prod&scoped=true&lang=css\""],"sourceRoot":""}