{"version":3,"sources":["webpack:///./src/components/dynamicTables/DxLookupProperty.js","webpack:///./src/components/dynamicTables/DxOption.js","webpack:///./src/components/dynamicTables/GuiTemplateParser.js","webpack:///./src/components/boxes/base-components/basePopup.vue","webpack:///src/components/boxes/base-components/basePopup.vue","webpack:///./src/components/boxes/base-components/basePopup.vue?23b2","webpack:///./src/components/boxes/base-components/basePopup.vue?52d3","webpack:///./src/utils/dateFormatter.js","webpack:///./src/components/boxes/base-components/basePopup.vue?2d67","webpack:///./src/components/dynamicTables/TableColumn.js"],"names":["DxLookupProperty","_createClass","options","displayProperty","arguments","length","undefined","valueProperty","_classCallCheck","_defineProperty","this","DxOption","key","description","GuiTemplateParser","value","guiTemplate","additionalData","_this","languageCode","stringUtils","convert2To3LetterLanguageCode","cookie","get","tableColumns","controls","sort","a","b","parseInt","order","forEach","control","inputControlOptions","SystemField","toString","toLowerCase","tableColumn","createTableColumn","push","console","log","caption","labels","dataField","fields","editor","config","configEditors","type","dataType","TableColumn","isRequired","validations","dxRequireRule","isLookup","addOptionsToLookupColumn","MinLength","dxStringLengthRule","minStringLength","MaxLength","maxStringLength","MinValue","dxNumberRangeRule","minNumberValue","Maxvalue","maxNumberValue","MaxValue","Disabled","disabledForEditing","StartInColumnPicker","visible","dxLookup","lookupOptions","name","apply","_toConsumableArray","convertObjectsToDxOptions","sublocations","dxLookupValidationProperties","isControlWithOptionsWithDescriptionsAsKeys","convertFieldOptionsToDxOptionsWithDescriptionsAsKeys","calculateDisplayValue","dataRow","dataFieldKey","convertFieldOptionsToDxOptions","requiredBySystem","requiredByUser","includes","items","option","text","firstItem","secondItem","sortUtils","naturalSort","dataObjects","dataKey","displayKey","item","GcDescription","GcCode","render","_vm","_c","_self","staticClass","on","$event","target","currentTarget","closeOnOutsideClick","emitCloseButtonClicked","_v","_s","popupTitle","popupSubTitle","ref","attrs","_t","hasFooterSlot","hasRightFooterButton","hasLeftFooterButton","leftFooterButtonActive","onLeftFooterButtonClick","leftFooterButtonIcon","_e","$t","leftFooterButtonText","rightFooterText","createError","customErrorMessage","rightFooterButtonText","rightFooterButtonActive","onRightFooterButtonClick","rightFooterButtonIcon","staticRenderFns","emits","props","popupOpen","Boolean","required","default","String","canClose","computed","$slots","footer","mounted","window","addEventListener","onKeyUp","$refs","rightFooterButton","restartPopupFocus","methods","closeButton","focus","event","keyCode","$emit","beforeDestroy","removeEventListener","passive","component","authenticationProvider","authenticationProviders","platform","ready","lang","getAuthenticatedUser","language","moment","locale","formatDate","originDate","format","formatDateOnly","generateDateLastChangedValue","utc","add","formatIfDate","possibleDate","fieldName","date","knownDateFields","dxPatternRule","dxAsyncRule"],"mappings":"wuCAAO,IAAMA,EAAgBC,GAK3B,SAAAD,EAAaE,GAAiE,IAAxDC,EAAeC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,cAAeG,EAAaH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,MAAKI,EAAA,KAAAR,GAAAS,EAAA,uBAJnEA,EAAA,+BACQA,EAAA,6BAIfC,KAAKR,QAAUA,EACfQ,KAAKP,gBAAkBA,EACvBO,KAAKH,cAAgBA,K,giCCRlB,IAAMI,EAAQV,GAInB,SAAAU,EAAaC,EAAKC,GAAaL,EAAA,KAAAG,GAAAF,EAAA,mBAAAA,EAAA,2BAC7BC,KAAKE,IAAMA,EACXF,KAAKG,YAAcA,K,2qDCCqB,IAEvBC,EAAiB,oBAAAA,IAAAN,EAAA,KAAAM,GAkJnC,OAlJmCb,EAAAa,EAAA,OAAAF,IAAA,gBAAAG,MACpC,SAAqBC,EAAaC,GAAgB,IAAAC,EAAA,KAC1CC,EAAeC,OAAYC,8BAA8BC,OAAOC,IAAI,aAEpEC,EAAe,GAErB,GAAKR,GAAgBA,EAAYS,SAiBjC,OAZAT,EAAYS,SACTC,MAAK,SAACC,EAAGC,GAAC,OAAMC,SAASF,EAAEG,OAASD,SAASD,EAAEE,OAAU,GAAK,KAC9DC,SAAQ,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AA,2BAAAA,EAAA,kCAAAA,EAAA,uBAMZC,KAAKwC,SAAWA,EAChBxC,KAAKgC,QAAUA,EACfhC,KAAK0E,aAAeA,EACpB1E,KAAK2D,oBAAqB,EAC1B3D,KAAK6D,SAAU,EACf7D,KAAK2C,YAAc,CACjBC,eAAe,EACfI,oBAAoB,EACpBgI,eAAe,EACfC,aAAa,EACbnH,UAAU,EACVO,6BAA8B,CAC5B7E,QAAS,GACTC,gBAAiB,GACjBI,cAAe","file":"js/chunk-9f234516.1b8a09fb.js","sourcesContent":["export class DxLookupProperty {\n options; // An array containing the lookup list options\n displayProperty; // The property of the display value in the option object\n valueProperty; // The property of the value in the option object\n\n constructor (options, displayProperty = 'description', valueProperty = 'key') {\n this.options = options\n this.displayProperty = displayProperty\n this.valueProperty = valueProperty\n }\n}\n","export class DxOption {\n key;\n description;\n\n constructor (key, description) {\n this.key = key\n this.description = description\n }\n}\n","import cookie from '@/utils/cacheProviders/cookieCacheProvider'\nimport stringUtils from '@/utils/stringUtils'\nimport config from '@/configurations/config.js'\n\nimport TableColumn from '@/components/dynamicTables/TableColumn'\nimport { DxLookupProperty } from './DxLookupProperty'\nimport { DxOption } from './DxOption'\nimport sortUtils from '@/utils/sortUtils.js'\n\nexport default class GuiTemplateParser {\n static parseTemplate(guiTemplate, additionalData) {\n const languageCode = stringUtils.convert2To3LetterLanguageCode(cookie.get('language'))\n\n const tableColumns = []\n\n if (!guiTemplate || !guiTemplate.controls) {\n console.log('guiTemplate or its controls not found in GuiTemplateParser')\n return\n }\n\n guiTemplate.controls\n .sort((a, b) => (parseInt(a.order) > parseInt(b.order)) ? 1 : -1)\n .forEach(control => {\n if (control.inputControlOptions && control.inputControlOptions.SystemField && control.inputControlOptions.SystemField.toString().toLowerCase() === 'true') {\n return\n }\n\n const tableColumn = this.createTableColumn(control, languageCode, additionalData)\n\n tableColumns.push(tableColumn)\n })\n\n return tableColumns\n }\n\n static createTableColumn(control, languageCode, additionalData) {\n const caption = control.labels[0][languageCode]\n const dataField = control.fields[0]\n const editor = config.configEditors(dataField.type)\n const dataType = editor.dataType\n\n const tableColumn = new TableColumn(dataType, caption, dataField.key)\n\n if (this.isRequired(dataField)) {\n tableColumn.validations.dxRequireRule = true\n }\n\n if (editor.options && editor.options.isLookup) {\n this.addOptionsToLookupColumn(tableColumn, dataField, editor, additionalData, control, languageCode)\n }\n\n if (control.inputControlOptions.MinLength >= 0) {\n tableColumn.validations.dxStringLengthRule = true\n tableColumn.validations.minStringLength = parseInt(control.inputControlOptions.MinLength)\n }\n\n if (control.inputControlOptions.MaxLength >= 0) {\n tableColumn.validations.dxStringLengthRule = true\n tableColumn.validations.maxStringLength = parseInt(control.inputControlOptions.MaxLength)\n }\n\n if (control.inputControlOptions.MinValue >= 0) {\n tableColumn.validations.dxNumberRangeRule = true\n tableColumn.validations.minNumberValue = parseInt(control.inputControlOptions.MinValue)\n }\n\n if (control.inputControlOptions.Maxvalue >= 0) {\n tableColumn.validations.dxNumberRangeRule = true\n tableColumn.validations.maxNumberValue = parseInt(control.inputControlOptions.MaxValue)\n }\n\n if (control.inputControlOptions.Disabled) {\n tableColumn.disabledForEditing = true\n }\n\n if (control.inputControlOptions.StartInColumnPicker === 'true') {\n tableColumn.visible = false\n }\n\n return tableColumn\n }\n\n static addOptionsToLookupColumn(tableColumn, dataField, editor, additionalData, control, languageCode) {\n tableColumn.validations.dxLookup = true\n let lookupOptions = []\n\n if (!this.isRequired(dataField)) {\n lookupOptions.push(new DxOption('', ''))\n }\n\n if (editor.name === 'subLocationListEditor') {\n lookupOptions.push(...this.convertObjectsToDxOptions(additionalData && additionalData.sublocations ? additionalData.sublocations : [], 'SlID', 'SlName'))\n tableColumn.validations.dxLookupValidationProperties = new DxLookupProperty(lookupOptions)\n } else if (this.isControlWithOptionsWithDescriptionsAsKeys(control)) {\n lookupOptions.push(...this.convertFieldOptionsToDxOptionsWithDescriptionsAsKeys(dataField.options, languageCode))\n tableColumn.validations.dxLookupValidationProperties = new DxLookupProperty(lookupOptions)\n tableColumn.calculateDisplayValue = (dataRow) => {\n return dataRow[tableColumn.dataFieldKey]\n }\n } else {\n lookupOptions.push(...this.convertFieldOptionsToDxOptions(dataField.options, languageCode))\n tableColumn.validations.dxLookupValidationProperties = new DxLookupProperty(lookupOptions)\n }\n }\n\n static isRequired(dataField) {\n return dataField.requiredBySystem || dataField.requiredByUser\n }\n\n static isControlWithOptionsWithDescriptionsAsKeys(control) {\n if (!control.fields) return false\n return ['3'].includes(control.fields[0].type)\n }\n\n static convertFieldOptionsToDxOptionsWithDescriptionsAsKeys(options, languageCode) {\n let items = []\n options.forEach(option => {\n let description = option.text[0][languageCode]\n items.push(new DxOption(description, description))\n })\n items.sort((firstItem, secondItem) => sortUtils.naturalSort(firstItem.description, secondItem.description))\n return items\n }\n\n static convertFieldOptionsToDxOptions(options, languageCode) {\n let items = []\n options.forEach(option => {\n let description = option.text[0][languageCode]\n let key = option.value\n items.push(new DxOption(key, description))\n })\n items.sort((firstItem, secondItem) => sortUtils.naturalSort(firstItem.description, secondItem.description))\n return items\n }\n\n static convertObjectsToDxOptions(dataObjects, dataKey, displayKey) {\n let items = []\n dataObjects.forEach(item => {\n let description = item[displayKey]\n let key = item[dataKey]\n items.push(new DxOption(key, description))\n })\n items.sort((firstItem, secondItem) => sortUtils.naturalSort(firstItem.description, secondItem.description))\n return items\n }\n\n static convertGcOptionsToDxOptions(options) {\n let items = []\n options.forEach(option => {\n let description = option.GcDescription\n let key = option.GcCode\n items.push(new DxOption(key, description))\n })\n items.sort((firstItem, secondItem) => sortUtils.naturalSort(firstItem.description, secondItem.description))\n return items\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"popupModal\",on:{\"click\":function($event){if($event.target !== $event.currentTarget)return null;return (() => { if (_vm.closeOnOutsideClick) _vm.emitCloseButtonClicked() }).apply(null, arguments)}}},[_c('div',{staticClass:\"popupBody\"},[_c('div',{staticClass:\"popupHeader\"},[_c('div',{staticClass:\"popup-title-container\"},[_c('div',{staticClass:\"popup-title\"},[_vm._v(\" \"+_vm._s(_vm.popupTitle)+\" \")]),_c('div',{staticClass:\"popup-sub-title\"},[_vm._v(\" \"+_vm._s(_vm.popupSubTitle)+\" \")])]),_c('font-awesome-icon',{ref:\"closeButton\",staticClass:\"popupClose\",attrs:{\"focusable\":\"true\",\"tab-index\":0,\"icon\":\"fa-solid fa-xmark\"},on:{\"click\":_vm.emitCloseButtonClicked}})],1),_c('div',{staticClass:\"popupContent\"},[_vm._t(\"default\")],2),(_vm.hasFooterSlot)?[_vm._t(\"footer\")]:(_vm.hasRightFooterButton)?[_c('div',{staticClass:\"popupFooter\"},[_c('div',{staticClass:\"popup-footer-left\"},[(_vm.hasLeftFooterButton)?_c('button',{staticClass:\"footerButton left\",attrs:{\"tab-index\":0,\"disabled\":!_vm.leftFooterButtonActive},on:{\"click\":_vm.onLeftFooterButtonClick}},[(_vm.leftFooterButtonIcon)?_c('font-awesome-icon',{attrs:{\"icon\":_vm.leftFooterButtonIcon}}):_vm._e(),_vm._v(\" \"+_vm._s(_vm.$t(_vm.leftFooterButtonText))+\" \")],1):_vm._e()]),_c('div',{staticClass:\"popup-footer-right\"},[_c('p',{staticClass:\"popup-footer-text\"},[_vm._v(\" \"+_vm._s(_vm.rightFooterText)+\" \")]),(_vm.createError)?_c('p',{staticClass:\"popupFooterError\"},[_vm._v(\" \"+_vm._s(_vm.customErrorMessage || _vm.$t('project.ErrorMessage'))+\" \")]):_vm._e(),(_vm.rightFooterButtonText)?_c('button',{ref:\"rightFooterButton\",staticClass:\"footerButton right\",attrs:{\"tab-index\":1,\"disabled\":_vm.createError || !_vm.rightFooterButtonActive},on:{\"click\":_vm.onRightFooterButtonClick}},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.rightFooterButtonText))+\" \"),(_vm.rightFooterButtonIcon)?_c('font-awesome-icon',{attrs:{\"icon\":_vm.rightFooterButtonIcon}}):_vm._e()],1):_vm._e()])])]:_vm._e()],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./basePopup.vue?vue&type=script&lang=js\"; 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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./basePopup.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./basePopup.vue?vue&type=template&id=8b9c579c&scoped=true\"\nimport script from \"./basePopup.vue?vue&type=script&lang=js\"\nexport * from \"./basePopup.vue?vue&type=script&lang=js\"\nimport style0 from \"./basePopup.vue?vue&type=style&index=0&id=8b9c579c&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 \"8b9c579c\",\n null\n \n)\n\nexport default component.exports","import moment from 'moment'\nimport config from '@/configurations/config.js'\nimport authenticationProviders from '@/utils/authenticationProvider'\nlet authenticationProvider = authenticationProviders[config.platform].default\n\nexport default {\n ready () {\n let lang = authenticationProvider.getAuthenticatedUser().language\n moment.locale(lang)\n },\n formatDate (originDate) {\n return moment(originDate).format('l LT')\n },\n formatDateOnly (originDate) {\n return moment(originDate).format('l')\n },\n generateDateLastChangedValue () {\n return moment().utc().add(3, 'hour').format('YYYY-MM-DDTHH:mm:ss')\n },\n formatIfDate (possibleDate, fieldName) {\n var date = moment(possibleDate)\n let knownDateFields = ['PrDateLastChanged']\n // if (date.isValid()) { // Has unwanted side-effects (formatting non-dates)\n if (knownDateFields.includes(fieldName)) {\n return date.format('l LT')\n } else {\n return possibleDate\n }\n }\n}\n","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!./basePopup.vue?vue&type=style&index=0&id=8b9c579c&prod&lang=less&scoped=true\"","export default class TableColumn {\n caption; // The text shown in the column header\n dataType; // The datatype of the column\n dataFieldKey; // The key of the property in the data object\n validations;\n disabledForEditing;\n visible;\n\n constructor (dataType, caption, dataFieldKey) {\n this.dataType = dataType\n this.caption = caption\n this.dataFieldKey = dataFieldKey\n this.disabledForEditing = false\n this.visible = true\n this.validations = {\n dxRequireRule: false,\n dxStringLengthRule: false,\n dxPatternRule: false,\n dxAsyncRule: false,\n dxLookup: false,\n dxLookupValidationProperties: {\n options: [],\n displayProperty: '',\n valueProperty: ''\n }\n }\n }\n}\n"],"sourceRoot":""}