{"version":3,"sources":["webpack:///./src/components/molecules/formField/FormField.vue?c629","webpack:///./src/components/molecules/formField/FormField.vue","webpack:///./src/components/molecules/formField/FormField.vue?a910","webpack:///./src/components/molecules/formField/FormField.vue?ea48","webpack:///./src/services/keys.ts","webpack:///./src/components/pages/tools/BakeApplicationSummaries.vue?9a45","webpack:///./src/components/pages/tools/BakeApplicationSummaries.vue","webpack:///./src/components/pages/tools/BakeApplicationSummaries.vue?b100","webpack:///./src/components/pages/tools/BakeApplicationSummaries.vue?f157","webpack:///./src/components/atoms/icon/Icon.vue?e509","webpack:///./src/components/atoms/icon/Icon.vue","webpack:///./src/components/atoms/icon/Icon.vue?e3fa","webpack:///./src/components/atoms/icon/Icon.vue?2b36","webpack:///./src/components/atoms/formInputText/FormInputText.vue?d2fe","webpack:///./src/components/atoms/formInputText/FormInputText.vue","webpack:///./src/components/atoms/formInputText/FormInputText.vue?d1e6","webpack:///./src/components/atoms/formInputText/FormInputText.vue?b128","webpack:///./src/components/atoms/formInputText/FormInputText.vue?526d","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?f5eb","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?80d3","webpack:///./src/components/molecules/formTextBlock/FormTextBlock.vue?7c51","webpack:///./src/services/form/validationErrors.ts","webpack:///./src/enums/formInputPosition.ts","webpack:///./src/components/molecules/formField/FormField.vue?4b53","webpack:///./src/components/molecules/fieldWithInfoIcon/FieldWithInfoIcon.vue?be68","webpack:///./src/components/molecules/fieldWithInfoIcon/FieldWithInfoIcon.vue","webpack:///./src/components/molecules/fieldWithInfoIcon/FieldWithInfoIcon.vue?7e1d","webpack:///./src/components/molecules/fieldWithInfoIcon/FieldWithInfoIcon.vue?bea9","webpack:///./src/mixins/formInputMixin.ts","webpack:///./src/types/forms/fields/textField.ts","webpack:///./src/mixins/formElementMixin.ts","webpack:///./src/mixins/formInputTextMixin.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","model","disabled","hidden","_e","attrs","fullWidth","showSummary","summaryValue","hideFieldInSummary","staticClass","domProps","_s","summaryLabel","_v","summaryLabelColon","class","alignAsSingleRow","hideLabel","labelAlignTop","showInfoIcon","content","labelClasses","label","subLabel","hasErrors","_t","_l","error","key","identifier","message","staticRenderFns","extend","name","components","FormRow","InfoIconWrapper","provide","formField","props","type","Object","default","validations","alignField","String","nextToLabel","Boolean","Number","showAsterisk","data","formInputComponents","computed","singleLine","isRequired","isRequiredValidation","$anyError","errors","reduce","formErrors","formInput","formInputErrors","formInputError","push","error1","error2","charAt","length","summaryIsBoolean","methods","registerFormInputComponent","formInputComponent","keys","$params","some","validatorIdentifier","nestedValidations","component","isFunctionKey","includes","digitKeys","spinner","text","numberOfApplicationsWithoutBakedSummary","numberOfEntriesToLoadModel","on","bakeApplicationSummaries","bakeApplicationSummariesResultMessage","$event","showLayer","deleteApplicationSummariesResultMessage","scopedSlots","_u","fn","proxy","deleteApplicationSummaries","SpinnerArea","FormInputText","FormField","AppButton","FormTextBlock","AppContent","AppLayer","off","gridSpinner","value","created","$route","query","code","dialogueMessageService","show","mounted","opaque","updateApplicationsWithoutBakedSummary","Promise","bakeApplicationSummariesFetchApplications","fetchApplicationsResponse","total","cleanMessages","transparent","limit","limitTemp","parseInt","isNaN","bakeApplicationSummariesProcessApplications","processApplicationsResponse","timeSpan","duration","readableTimeSpan","utc","as","format","results","bakeApplicationSummariesDeleteApplications","deletedApplicationsResponse","isTextIcon","id","title","required","errorClass","embeddedClass","readonlyClass","_g","directives","rawName","expression","modifiers","textAlignmentClass","placeholder","minLength","maxLength","readonly","userChangeable","onFocus","onBlur","$forceUpdate","onKeydown","target","composing","$set","trim","formatValueWithSeparator","inputEvents","unit","innerLabel","icon","FieldWithInfoIcon","Icon","prototype","hasOwnProperty","call","cursorPosition","document","activeElement","$el","selectionStart","replace","setSelectionRange","getValidationErrorMessage","placeholders","form","errorMessage","validationErrorsContent","getErrorsByValidation","validation","$error","FormInputPosition","alignTop","inlineElement","getFormInputMixin","inject","injectedFormField","from","configuration","formModel","formFieldHasErrors","formFieldErrors","validationProps","watch","handler","immediate","$touch","textFieldDefaultConfig","config","resolvedConfig","getJsonSchema","getFormElementMixin","getFormInputTextMixin","alignText","validator","allowedCharacters","Array","forbiddenCharacters","handleBlurEvent","focusable","embedded","inputClasses","input","querySelector","focus","$emit","undefined","e","preventDefault","altKey","ctrlKey"],"mappings":"8HAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAASF,EAAIM,MAAMC,UAAaP,EAAIM,MAAME,OAQ+FR,EAAIS,KAR3FL,EAAG,UAAU,CAACM,MAAM,CAAC,aAAaV,EAAIW,YAAY,CAAEX,EAAIY,aAAeZ,EAAIa,eAAiBb,EAAIc,mBAAoBV,EAAG,MAAM,CAACW,YAAY,QAAQ,CAAEf,EAAoB,iBAAEI,EAAG,MAAM,CAACA,EAAG,OAAO,CAACW,YAAY,4BAA4BC,SAAS,CAAC,UAAYhB,EAAIiB,GAAGjB,EAAIkB,mBAAmBd,EAAG,MAAM,CAACA,EAAG,OAAO,CAACW,YAAY,gBAAgBC,SAAS,CAAC,UAAYhB,EAAIiB,GAAGjB,EAAIkB,iBAAiBlB,EAAImB,GAAGnB,EAAIiB,GAAGjB,EAAIoB,mBAAmB,KAAKhB,EAAG,OAAO,CAACW,YAAY,4BAA4BC,SAAS,CAAC,UAAYhB,EAAIiB,GAAGjB,EAAIa,qBAAqBb,EAAIS,KAAOT,EAAIY,YAQpdZ,EAAIS,KAR6dL,EAAG,MAAM,CAACW,YAAY,QAAQ,CAACX,EAAG,MAAM,CAACiB,MAAM,CAAE,UAAWrB,EAAIsB,mBAAoB,CAAGtB,EAAIuB,UAKtXvB,EAAIS,KAL6XL,EAAG,MAAM,CAACiB,MAAM,CAC1xB,gEAAiErB,EAAIsB,iBACrE,aAActB,EAAIsB,iBAClB,+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A,WACI,OAAO,qBAAS,CACZ9N,KAAKyJ,mBACLzJ,KAAKiJ,WACLjJ,KAAKkJ,kBAIjB0D,MAAO,CACHgB,UAAW,WACP,IAAMG,EAAQ/N,KAAKoL,IAAI4C,cAAc,SACjCD,GACAA,EAAME,UAIlBvJ,QAAS,CACLqF,QAAA,WACI/J,KAAKkO,MAAM,qBAEflE,OAAA,WACQhK,KAAK2N,iBAAmB3N,KAAKgD,aAC7BhD,KAAKgD,YAAY+J,SAGrB,IAAIjG,OAAQqH,EAERnO,KAAKK,iBAAiB,SACtByG,EAAQ9G,KAAKK,MAAMyG,OAGvB9G,KAAKkO,MAAM,kBAAmBpH,IAElCoD,UAAA,SAAUkE,GACN,GAAIpO,KAAK0N,qBACD1N,KAAK0N,oBAAoBtI,SAASgJ,EAAEnM,KACpCmM,EAAEC,sBAIV,GAAIrO,KAAKwN,kBAAmB,CACxB,GAAIY,EAAEE,QAAUF,EAAEG,SAAW,eAAcH,EAAEnM,KACzC,OAEJ,IAAKjC,KAAKwN,kBAAkBpI,SAASgJ,EAAEnM,KAEnC,YADAmM,EAAEC","file":"js/ToolBakeApplicationSummaries.7d8fcd1e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.model.disabled && !_vm.model.hidden)?_c('FormRow',{attrs:{\"full-width\":_vm.fullWidth}},[(_vm.showSummary && _vm.summaryValue && !_vm.hideFieldInSummary)?_c('div',{staticClass:\"mb-1\"},[(_vm.summaryIsBoolean)?_c('div',[_c('span',{staticClass:\"dea-rich-text font-medium\",domProps:{\"innerHTML\":_vm._s(_vm.summaryLabel)}})]):_c('div',[_c('span',{staticClass:\"dea-rich-text\",domProps:{\"innerHTML\":_vm._s(_vm.summaryLabel)}}),_vm._v(_vm._s(_vm.summaryLabelColon)+\" \"),_c('span',{staticClass:\"dea-rich-text font-medium\",domProps:{\"innerHTML\":_vm._s(_vm.summaryValue)}})])]):_vm._e(),(!_vm.showSummary)?_c('div',{staticClass:\"mb-6\"},[_c('div',{class:{ 'md:flex': _vm.alignAsSingleRow }},[(!_vm.hideLabel)?_c('div',{class:{\n 'pr-2 mb-2 md:mb-0 md:w-1/3 md:flex md:flex-shrink-0 flex-wrap': _vm.alignAsSingleRow,\n 'pr-2 mb-2': !_vm.alignAsSingleRow,\n 'content-start md:items-start': _vm.labelAlignTop,\n 'content-center md:items-center': !_vm.labelAlignTop,\n }},[_c('InfoIconWrapper',{attrs:{\"show-info-icon\":_vm.showInfoIcon,\"content\":_vm.content,\"model\":_vm.model,\"align-top\":\"\",\"inline-element\":\"\"}},[_c('span',{staticClass:\"dea-rich-text\",class:_vm.labelClasses,domProps:{\"innerHTML\":_vm._s(_vm.label)}}),(_vm.subLabel)?_c('span',{staticClass:\"w-full text-xs md:text-sm block dea-rich-text\",domProps:{\"innerHTML\":_vm._s(_vm.subLabel)}}):_vm._e()])],1):_vm._e(),_c('div',{class:{\n 'md:flex-grow md:w-2/3': _vm.alignAsSingleRow && !_vm.hideLabel,\n 'has-errors': _vm.hasErrors,\n }},[_vm._t(\"default\")],2)]),_vm._l((_vm.errors),function(error){return _c('div',{key:error.identifier,staticClass:\"mt-2 text-error dea-rich-text\",domProps:{\"innerHTML\":_vm._s(error.message)}})})],2):_vm._e()]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue, { PropType } from 'vue';\r\nimport InfoIconWrapper from '@/components/molecules/infoIconWrapper/InfoIconWrapper.vue';\r\nimport { FormInputPosition } from '@/enums/formInputPosition';\r\nimport { ValidationGroups, ValidationProperties } from 'vue/types/vue';\r\nimport { Validation } from 'vuelidate';\r\nimport {\r\n ValidationError,\r\n getErrorsByValidation,\r\n} from '@/services/form/validationErrors';\r\nimport { uniqWith as _uniqWith } from 'lodash';\r\nimport { LabelContent } from '@/api/interfaces/content/form/base/labelContent';\r\nimport { FormInputComponent } from '@/mixins/formInputMixin';\r\nimport { FormField } from '@/types/forms/fields/formField';\r\nimport FormRow from '@/components/molecules/formRow/FormRow.vue';\r\n\r\nexport default Vue.extend({\r\n name: 'FormField',\r\n components: {\r\n FormRow,\r\n InfoIconWrapper,\r\n },\r\n provide(this: Vue) {\r\n return {\r\n formField: this,\r\n };\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as LabelContent;\r\n },\r\n },\r\n model: {\r\n type: Object as PropType>,\r\n default: () => {\r\n return new FormField();\r\n },\r\n },\r\n validations: {\r\n type: Object as PropType<\r\n | (Validation &\r\n ValidationGroups &\r\n ValidationProperties)\r\n | null\r\n >,\r\n default: null,\r\n },\r\n alignField: {\r\n type: String as PropType,\r\n default: FormInputPosition.nextToLabel,\r\n },\r\n showSummary: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n hideFieldInSummary: {\r\n // can be used to hide fields explicitly even if there is a summaryValue\r\n type: Boolean,\r\n default: false,\r\n },\r\n summaryValue: {\r\n type: [String, Number, Boolean],\r\n default: null,\r\n },\r\n fullWidth: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n showInfoIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n labelAlignTop: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n labelClasses: {\r\n type: String,\r\n default: null,\r\n },\r\n showAsterisk: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n data() {\r\n return {\r\n formInputComponents: [] as FormInputComponent[],\r\n };\r\n },\r\n computed: {\r\n alignAsSingleRow(): boolean {\r\n return this.alignField === FormInputPosition.nextToLabel;\r\n },\r\n hideLabel(): boolean {\r\n return this.alignField === FormInputPosition.singleLine;\r\n },\r\n isRequired(): boolean {\r\n return this.isRequiredValidation(this.validations);\r\n },\r\n hasErrors(): boolean {\r\n return !!this.validations && this.validations.$anyError;\r\n },\r\n errors(): ValidationError[] {\r\n if (!this.validations || !this.hasErrors) {\r\n return [];\r\n }\r\n return _uniqWith(\r\n this.formInputComponents.reduce((formErrors, formInput) => {\r\n const formInputErrors = getErrorsByValidation(\r\n formInput.validations as Validation & ValidationGroups,\r\n );\r\n for (const formInputError of formInputErrors) {\r\n formErrors.push(formInputError);\r\n }\r\n return formErrors;\r\n }, getErrorsByValidation(this.validations as Validation & ValidationGroups)),\r\n (error1: ValidationError, error2: ValidationError) =>\r\n error1.identifier === error2.identifier,\r\n );\r\n },\r\n label(): string {\r\n return `${this.content.label}${\r\n (this.isRequired || this.showAsterisk) && !this.showSummary\r\n ? '*'\r\n : ''\r\n }`;\r\n },\r\n subLabel(): string {\r\n return this.content.subLabel ?? '';\r\n },\r\n summaryLabel(): string {\r\n return this.content.summaryLabel || this.label;\r\n },\r\n summaryLabelColon(): string {\r\n return this.summaryLabel.charAt(this.summaryLabel.length - 1) ===\r\n ':'\r\n ? ''\r\n : ':';\r\n },\r\n summaryIsBoolean(): boolean {\r\n // summary value can be a string, number or boolean -- in case of boolean (aka checkbox),\r\n // we're supposed to only show the label\r\n return typeof this.summaryValue === 'boolean';\r\n },\r\n },\r\n methods: {\r\n registerFormInputComponent(\r\n formInputComponent: FormInputComponent,\r\n ): void {\r\n this.formInputComponents.push(formInputComponent);\r\n },\r\n isRequiredValidation(\r\n validations:\r\n | (Validation &\r\n ValidationGroups &\r\n ValidationProperties)\r\n | null,\r\n ): boolean {\r\n if (!validations) {\r\n return false;\r\n }\r\n if (\r\n 'required' in validations ||\r\n 'checked' in validations ||\r\n 'requiredDate' in validations\r\n ) {\r\n return true;\r\n }\r\n return Object.keys(validations.$params).some(\r\n (validatorIdentifier) => {\r\n const nestedValidations = validations[validatorIdentifier];\r\n return (\r\n typeof nestedValidations === 'object' &&\r\n this.isRequiredValidation(\r\n nestedValidations as Validation &\r\n ValidationGroups &\r\n ValidationProperties,\r\n )\r\n );\r\n },\r\n );\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormField.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormField.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormField.vue?vue&type=template&id=3c651d19&scoped=true&\"\nimport script from \"./FormField.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormField.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormField.vue?vue&type=style&index=0&id=3c651d19&lang=postcss&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 \"3c651d19\",\n null\n \n)\n\nexport default component.exports","/*\r\n * Returns true, if the given key indicates a function key of\r\n * the keyboard.\r\n */\r\nexport function isFunctionKey(key: string): boolean {\r\n return [\r\n 'Escape',\r\n 'Tab',\r\n 'Enter',\r\n 'Backspace',\r\n 'Insert',\r\n 'Delete',\r\n 'ArrowTop',\r\n 'ArrowRight',\r\n 'ArrowBottom',\r\n 'ArrowLeft',\r\n 'Home',\r\n 'End',\r\n 'PageUp',\r\n 'PageDown',\r\n 'Control',\r\n 'AltGraph',\r\n ].includes(key);\r\n}\r\n\r\nexport const digitKeys = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('SpinnerArea',{attrs:{\"state\":_vm.spinner}},[_c('div',{staticClass:\"container mb-4 md:mb-8 lg:mb-10 xl:mb-12\"},[_c('FormTextBlock',{attrs:{\"content\":{\n text: (\"There are currently \" + _vm.numberOfApplicationsWithoutBakedSummary + \" applications without a baked summary.
Use the button to bake summaries for a batch of applications.\"),\n }}}),_c('FormField',{staticClass:\"number-of-entries-to-load\",attrs:{\"model\":_vm.numberOfEntriesToLoadModel,\"content\":{\n label: 'Number of applications to process',\n },\"align-field\":\"belowLabel\"}},[_c('FormInputText',{attrs:{\"model\":_vm.numberOfEntriesToLoadModel}})],1),_c('AppButton',{attrs:{\"label\":\"Get bakin'\"},on:{\"button-click\":_vm.bakeApplicationSummaries}}),_c('FormTextBlock',{staticClass:\"mt-4\",attrs:{\"content\":{\n text: _vm.bakeApplicationSummariesResultMessage,\n }}}),_c('FormTextBlock',{staticClass:\"mt-16\",attrs:{\"content\":{\n text: \"If you want to delete all baked summaries, use this button:\",\n }}}),_c('AppButton',{attrs:{\"label\":\"Delete all baked summaries\",\"character\":\"cross\"},on:{\"button-click\":function($event){_vm.showLayer = true}}}),_c('FormTextBlock',{staticClass:\"mt-4\",attrs:{\"content\":{\n text: _vm.deleteApplicationSummariesResultMessage,\n }}}),_c('AppLayer',{attrs:{\"show\":_vm.showLayer},scopedSlots:_vm._u([{key:\"text\",fn:function(){return [_c('AppContent',{attrs:{\"use-large-font\":true,\"content\":\"Sure? All baked summaries will get deleted.\"}})]},proxy:true},{key:\"action1\",fn:function(){return [_c('AppButton',{attrs:{\"label\":\"Delete them!\"},on:{\"button-click\":function($event){return _vm.deleteApplicationSummaries()}}})]},proxy:true},{key:\"action2\",fn:function(){return [_c('AppButton',{attrs:{\"label\":\"Cancel\",\"character\":\"cross\"},on:{\"button-click\":function($event){_vm.showLayer = false}}})]},proxy:true}])})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\nimport moment from 'moment';\r\nimport { SpinnerState } from '@/enums/spinnerState';\r\nimport { MessageType } from '@/enums/messageType';\r\nimport { dialogueMessageService } from '@/services/dialogueMessageService';\r\nimport { TextField } from '@/types/forms/fields/textField';\r\nimport { toolsRepository } from '@/api';\r\nimport SpinnerArea from '@/components/molecules/spinnerArea/SpinnerArea.vue';\r\nimport FormField from '@/components/molecules/formField/FormField.vue';\r\nimport FormInputText from '@/components/atoms/formInputText/FormInputText.vue';\r\nimport AppButton from '@/components/atoms/appButton/AppButton.vue';\r\nimport FormTextBlock from '@/components/molecules/formTextBlock/FormTextBlock.vue';\r\nimport AppContent from '@/components/atoms/appContent/AppContent.vue';\r\nimport AppLayer from '@/components/molecules/appLayer/AppLayer.vue';\r\n\r\nexport default Vue.extend({\r\n name: 'ToolBakeApplicationSummaries',\r\n components: {\r\n SpinnerArea,\r\n FormInputText,\r\n FormField,\r\n AppButton,\r\n FormTextBlock,\r\n AppContent,\r\n AppLayer,\r\n },\r\n data: () => {\r\n return {\r\n spinner: SpinnerState.off,\r\n gridSpinner: SpinnerState.off,\r\n numberOfEntriesToLoadModel: {\r\n value: '100',\r\n } as TextField,\r\n numberOfApplicationsWithoutBakedSummary: -1,\r\n bakeApplicationSummariesResultMessage: '',\r\n deleteApplicationSummariesResultMessage: '',\r\n showLayer: false,\r\n };\r\n },\r\n created() {\r\n if (this.$route.query.code === 'unauthorized') {\r\n dialogueMessageService.show('unauthorized', MessageType.error);\r\n }\r\n },\r\n async mounted() {\r\n this.spinner = SpinnerState.opaque;\r\n\r\n await this.updateApplicationsWithoutBakedSummary();\r\n\r\n this.spinner = SpinnerState.off;\r\n },\r\n methods: {\r\n async updateApplicationsWithoutBakedSummary(): Promise {\r\n const fetchApplicationsResponse = await toolsRepository.bakeApplicationSummariesFetchApplications();\r\n this.numberOfApplicationsWithoutBakedSummary =\r\n fetchApplicationsResponse.total;\r\n },\r\n cleanMessages() {\r\n this.bakeApplicationSummariesResultMessage = '';\r\n this.deleteApplicationSummariesResultMessage = '';\r\n },\r\n async bakeApplicationSummaries(): Promise {\r\n this.cleanMessages();\r\n this.spinner = SpinnerState.transparent;\r\n\r\n var limit = -1;\r\n try {\r\n var limitTemp = parseInt(\r\n this.numberOfEntriesToLoadModel.value ?? '-1',\r\n );\r\n if (!isNaN(limitTemp)) {\r\n limit = limitTemp;\r\n }\r\n } catch {\r\n // ignore\r\n }\r\n const processApplicationsResponse = await toolsRepository.bakeApplicationSummariesProcessApplications(\r\n limit,\r\n );\r\n const timeSpan = moment.duration(\r\n processApplicationsResponse.duration,\r\n );\r\n const readableTimeSpan = moment\r\n .utc(timeSpan.as('milliseconds'))\r\n .format('HH:mm:ss.SSS');\r\n this.bakeApplicationSummariesResultMessage = `Processed ${processApplicationsResponse.results} of ${processApplicationsResponse.total} applications without baked summary. It took ${readableTimeSpan}.`;\r\n await this.updateApplicationsWithoutBakedSummary();\r\n\r\n this.spinner = SpinnerState.off;\r\n },\r\n async deleteApplicationSummaries(): Promise {\r\n this.showLayer = false;\r\n this.cleanMessages();\r\n this.spinner = SpinnerState.transparent;\r\n\r\n const deletedApplicationsResponse = await toolsRepository.bakeApplicationSummariesDeleteApplications();\r\n const timeSpan = moment.duration(\r\n deletedApplicationsResponse.duration,\r\n );\r\n const readableTimeSpan = moment\r\n .utc(timeSpan.as('milliseconds'))\r\n .format('HH:mm:ss.SSS');\r\n this.deleteApplicationSummariesResultMessage = `Baked summaries; Count before: ${deletedApplicationsResponse.total}, count after: ${deletedApplicationsResponse.results}. It took ${readableTimeSpan}.`;\r\n\r\n await this.updateApplicationsWithoutBakedSummary();\r\n\r\n this.spinner = SpinnerState.off;\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BakeApplicationSummaries.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BakeApplicationSummaries.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BakeApplicationSummaries.vue?vue&type=template&id=7a306bd6&\"\nimport script from \"./BakeApplicationSummaries.vue?vue&type=script&lang=ts&\"\nexport * from \"./BakeApplicationSummaries.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('span',{class:[\n ((_vm.isTextIcon ? 'text-' : '') + \"icon\"),\n ((_vm.isTextIcon ? 'text-' : '') + \"icon-\" + _vm.id) ],attrs:{\"title\":_vm.title}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue';\r\n\r\nexport default Vue.extend({\r\n name: 'Icon',\r\n props: {\r\n id: {\r\n type: String,\r\n required: true,\r\n },\r\n title: {\r\n type: String,\r\n default: null,\r\n },\r\n /** Whether the icon is a simple text-icon, rather than one defined through icomoon */\r\n isTextIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Icon.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Icon.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Icon.vue?vue&type=template&id=7046a7ee&\"\nimport script from \"./Icon.vue?vue&type=script&lang=ts&\"\nexport * from \"./Icon.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 (!_vm.model.disabled)?_c('FieldWithInfoIcon',{staticClass:\"form-input-text-root\",attrs:{\"show-info-icon\":_vm.showInfoIcon,\"content\":_vm.content,\"model\":_vm.model}},[_c('div',{staticClass:\"input-field relative table w-full bg-surface-variant border border-primary rounded\",class:[_vm.errorClass, _vm.embeddedClass, _vm.readonlyClass]},[_c('input',_vm._g({directives:[{name:\"model\",rawName:\"v-model.trim\",value:(_vm.model.value),expression:\"model.value\",modifiers:{\"trim\":true}}],staticClass:\"input table-cell text-primary pl-4 pr-2 py-3 lg:text-lg xl:text-xl w-full\",class:_vm.textAlignmentClass,attrs:{\"type\":_vm.type,\"placeholder\":_vm.content.placeholder,\"minlength\":_vm.minLength,\"maxlength\":_vm.maxLength,\"readonly\":_vm.readonly || _vm.model.userChangeable === false},domProps:{\"value\":(_vm.model.value)},on:{\"focus\":_vm.onFocus,\"blur\":[_vm.onBlur,function($event){return _vm.$forceUpdate()}],\"keydown\":_vm.onKeydown,\"input\":[function($event){if($event.target.composing){ return; }_vm.$set(_vm.model, \"value\", $event.target.value.trim())},_vm.formatValueWithSeparator]}},_vm.inputEvents)),(_vm.content.unit)?_c('span',{staticClass:\"unit table-cell align-middle w-1 text-primary py-3 pr-2 lg:text-lg xl:text-xl font-normal pointer-events-none whitespace-no-wrap\"},[_vm._v(\" \"+_vm._s(_vm.content.unit)+\" \")]):_vm._e(),(_vm.content.innerLabel)?_c('span',{staticClass:\"inner-label absolute px-2 text-xs font-normal pointer-events-none\"},[_vm._v(\" \"+_vm._s(_vm.content.innerLabel)+\" \")]):_vm._e(),(_vm.icon)?_c('span',{staticClass:\"icon table-cell align-middle w-1 block top-0 right-0 bottom-0 flex items-center pointer-events-none pr-3\"},[_c('Icon',{staticClass:\"text-3xl text-primary\",attrs:{\"id\":_vm.icon}})],1):_vm._e()])]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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 { getFormInputTextMixin } from '@/mixins/formInputTextMixin';\r\nimport { TextField } from '@/types/forms/fields/textField';\r\nimport { TextInputWithUnitContent } from '@/api/interfaces/content/form/base/textInputWithUnitContent';\r\nimport FieldWithInfoIcon from '@/components/molecules/fieldWithInfoIcon/FieldWithInfoIcon.vue';\r\nimport Icon from '@/components/atoms/icon/Icon.vue';\r\n\r\nexport default getFormInputTextMixin<\r\n TextField,\r\n TextInputWithUnitContent\r\n>().extend({\r\n name: 'FormInputText',\r\n components: {\r\n FieldWithInfoIcon,\r\n Icon,\r\n },\r\n props: {\r\n readonly: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n methods: {\r\n formatValueWithSeparator() {\r\n if (\r\n !this.validations ||\r\n !Object.prototype.hasOwnProperty.call(\r\n this.validations,\r\n 'float',\r\n ) ||\r\n !this.model.value\r\n ) {\r\n return;\r\n }\r\n\r\n let { value } = this.model;\r\n let cursorPosition =\r\n document.activeElement === this.$el\r\n ? (this.$el as HTMLInputElement).selectionStart\r\n : null;\r\n\r\n value = value.replace(/\\.+/g, '');\r\n value = value.replace(/\\B(?=(\\d{3})+(?!\\d))/g, '.');\r\n\r\n this.model.value = value;\r\n\r\n if (cursorPosition !== null) {\r\n (this.$el as HTMLInputElement).setSelectionRange(\r\n cursorPosition,\r\n cursorPosition,\r\n );\r\n }\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormInputText.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormInputText.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormInputText.vue?vue&type=template&id=5a819b6b&scoped=true&\"\nimport script from \"./FormInputText.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormInputText.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FormInputText.vue?vue&type=style&index=0&id=5a819b6b&lang=postcss&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 \"5a819b6b\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormInputText.vue?vue&type=style&index=0&id=5a819b6b&lang=postcss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.model.disabled && _vm.content.text !== null)?_c('FormRow',{staticClass:\"content mb-6\",class:{ 'has-errors': _vm.hasErrors },attrs:{\"full-width\":_vm.fullWidth}},[_c('InfoIconWrapper',{attrs:{\"show-info-icon\":_vm.showInfoIcon && !_vm.showSummary,\"content\":_vm.content,\"model\":_vm.model,\"align-top\":\"\",\"inline-element\":\"\"}},[_c('span',{staticClass:\"dea-rich-text\",domProps:{\"innerHTML\":_vm._s(_vm.content.text)}})])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { PropType } from 'vue';\r\nimport { TextBlockContent } from '@/api/interfaces/content/form/base/textBlockContent';\r\nimport InfoIconWrapper from '@/components/molecules/infoIconWrapper/InfoIconWrapper.vue';\r\nimport FormRow from '@/components/molecules/formRow/FormRow.vue';\r\nimport { NoValueField } from '@/types/forms/fields/noValueField';\r\nimport { getFormElementMixin } from '@/mixins/formElementMixin';\r\n\r\nexport default getFormElementMixin<\r\n NoValueField,\r\n Record\r\n>().extend({\r\n name: 'FormTextBlock',\r\n components: {\r\n FormRow,\r\n InfoIconWrapper,\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TextBlockContent;\r\n },\r\n },\r\n model: {\r\n type: Object,\r\n default: () => {\r\n return {};\r\n },\r\n },\r\n fullWidth: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n showSummary: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n hasErrors(): boolean {\r\n return !!this.validations && this.validations.$anyError;\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormTextBlock.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormTextBlock.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FormTextBlock.vue?vue&type=template&id=52ecba73&\"\nimport script from \"./FormTextBlock.vue?vue&type=script&lang=ts&\"\nexport * from \"./FormTextBlock.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","import { get as _get } from 'lodash';\r\nimport { ValidationGroups } from 'vue/types/vue';\r\nimport { Validation } from 'vuelidate';\r\nimport { contentServices } from '../contentService';\r\nimport { interpolate } from '../interpolationService';\r\n\r\nexport interface ValidationError {\r\n identifier: string;\r\n message: string;\r\n}\r\n\r\nfunction getValidationErrorMessage(\r\n identifier: string,\r\n placeholders?: Record,\r\n): string {\r\n if (!contentServices.form.content) {\r\n return identifier;\r\n }\r\n\r\n const errorMessage = _get(\r\n contentServices.form.content.validationErrorsContent,\r\n identifier,\r\n );\r\n\r\n return typeof errorMessage === 'string'\r\n ? interpolate(errorMessage, placeholders)\r\n : identifier;\r\n}\r\n\r\nexport function getErrorsByValidation(\r\n validation: Validation & ValidationGroups,\r\n): ValidationError[] {\r\n if (!validation || !validation.$error) {\r\n return [];\r\n }\r\n return Object.keys(validation.$params).reduce(\r\n (errors, validatorIdentifier) => {\r\n if (!validation[validatorIdentifier]) {\r\n errors.push({\r\n identifier: validatorIdentifier,\r\n message: getValidationErrorMessage(\r\n validatorIdentifier,\r\n validation.$params[validatorIdentifier],\r\n ),\r\n });\r\n }\r\n return errors;\r\n },\r\n [] as ValidationError[],\r\n );\r\n}\r\n\r\nexport interface ValidationErrorProvider {\r\n readonly errors: ValidationError[];\r\n}\r\n","export enum FormInputPosition {\r\n nextToLabel = 'nextToLabel',\r\n belowLabel = 'belowLabel',\r\n singleLine = 'singleLine',\r\n}\r\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FormField.vue?vue&type=style&index=0&id=3c651d19&lang=postcss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('InfoIconWrapper',{attrs:{\"show-info-icon\":_vm.showInfoIcon,\"content\":_vm.content,\"model\":_vm.model,\"align-top\":_vm.alignTop,\"inline-element\":_vm.inlineElement}},[_vm._t(\"default\")],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue, { PropType } from 'vue';\r\nimport InfoIconWrapper from '@/components/molecules/infoIconWrapper/InfoIconWrapper.vue';\r\nimport { InfoIconContent } from '@/api/interfaces/content/form/base/infoIconContent';\r\nimport { FormElement } from '@/types/forms/formElement';\r\n\r\nexport default Vue.extend({\r\n name: 'FieldWithInfoIcon',\r\n components: {\r\n InfoIconWrapper,\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n required: true,\r\n },\r\n model: {\r\n type: Object as PropType,\r\n default: () => ({} as FormElement),\r\n },\r\n showInfoIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n alignTop: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n inlineElement: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n});\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FieldWithInfoIcon.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FieldWithInfoIcon.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FieldWithInfoIcon.vue?vue&type=template&id=4e59aa6a&\"\nimport script from \"./FieldWithInfoIcon.vue?vue&type=script&lang=ts&\"\nexport * from \"./FieldWithInfoIcon.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","import Vue, { PropType } from 'vue';\r\nimport {\r\n ValidationGroups,\r\n ValidationProperties,\r\n VueConstructor,\r\n} from 'vue/types/vue';\r\nimport { Validation } from 'vuelidate';\r\nimport {\r\n ValidationError,\r\n getErrorsByValidation,\r\n} from '@/services/form/validationErrors';\r\nimport type { ValidationsCommonType } from '@/services/form/validations';\r\n\r\nexport interface FormFieldVue {\r\n readonly hasErrors: boolean;\r\n readonly errors: ValidationError[];\r\n registerFormInputComponent(formInputComponent: Vue): void;\r\n}\r\n\r\nexport interface FormInputComponent\r\n extends Vue {\r\n readonly content: TContent;\r\n readonly model: TModel;\r\n readonly formModel: TFormType;\r\n readonly validations:\r\n | (Validation & ValidationGroups & ValidationProperties)\r\n | null;\r\n readonly hasErrors: boolean;\r\n readonly errors: ValidationError[];\r\n readonly formField: FormFieldVue | null;\r\n readonly formFieldHasErrors: boolean;\r\n readonly formFieldErrors: ValidationError[];\r\n readonly showInfoIcon: boolean;\r\n readonly showSummary: boolean;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport function getFormInputMixin<\r\n TModel,\r\n TContent,\r\n TConfiguration = void,\r\n TFormType = void\r\n>(): VueConstructor> {\r\n return Vue.extend({\r\n inject: {\r\n injectedFormField: {\r\n from: 'formField',\r\n default: null as (Vue & FormFieldVue) | null,\r\n },\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TContent;\r\n },\r\n },\r\n configuration: {\r\n type: Object as PropType,\r\n default: () => ({} as TConfiguration),\r\n },\r\n model: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TModel;\r\n },\r\n },\r\n formModel: {\r\n type: Object as PropType,\r\n default: () => ({} as TFormType),\r\n },\r\n validations: {\r\n type: Object as PropType<\r\n | (Validation &\r\n ValidationGroups &\r\n ValidationProperties)\r\n | null\r\n >,\r\n default: null,\r\n },\r\n showInfoIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n showSummary: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n formField(this: {\r\n injectedFormField: FormFieldVue;\r\n }): FormFieldVue | null {\r\n return this.injectedFormField || null;\r\n },\r\n formFieldHasErrors(): boolean {\r\n return !!this.formField && this.formField.hasErrors;\r\n },\r\n formFieldErrors(): ValidationError[] {\r\n return this.formField ? this.formField.errors : [];\r\n },\r\n hasErrors(): boolean {\r\n return !!this.validations && this.validations.$anyError;\r\n },\r\n errors(): ValidationError[] {\r\n if (!this.validations || !this.hasErrors) {\r\n return [];\r\n }\r\n return getErrorsByValidation(\r\n this.validations as Validation & ValidationGroups,\r\n );\r\n },\r\n errorClass(): string | null {\r\n return this.hasErrors ? 'has-errors' : null;\r\n },\r\n /**\r\n * Use this for formList item validations.\r\n * Validations of formList items are dependent of its instances.\r\n * Since we cannot use validations?.property in templates use validationsProps.property instead.\r\n */\r\n validationProps(): ValidationsCommonType | unknown {\r\n return this.validations || {};\r\n },\r\n },\r\n watch: {\r\n formField: {\r\n handler(): void {\r\n if (this.formField) {\r\n this.formField.registerFormInputComponent(this);\r\n }\r\n },\r\n immediate: true,\r\n },\r\n 'model.value'(): void {\r\n if (this.validations) {\r\n this.validations.$touch();\r\n }\r\n },\r\n },\r\n });\r\n}\r\n","import { JSONSchema7Definition } from 'json-schema';\r\nimport { defaults as _defaults } from 'lodash';\r\nimport {\r\n FormFieldConfig,\r\n formFieldDefaultConfig,\r\n FormField,\r\n} from './formField';\r\n\r\nexport interface TextFieldConfig extends FormFieldConfig {\r\n value?: string;\r\n}\r\n\r\nexport const textFieldDefaultConfig = {\r\n ...formFieldDefaultConfig,\r\n};\r\n\r\nexport class TextField extends FormField {\r\n public constructor(config?: TextFieldConfig) {\r\n const resolvedConfig = _defaults(\r\n config || ({} as TextFieldConfig),\r\n textFieldDefaultConfig,\r\n );\r\n\r\n super(resolvedConfig);\r\n }\r\n\r\n public getJsonSchema(): JSONSchema7Definition {\r\n return {\r\n type: 'string',\r\n };\r\n }\r\n}\r\n","import Vue, { PropType } from 'vue';\r\nimport {\r\n ValidationGroups,\r\n ValidationProperties,\r\n VueConstructor,\r\n} from 'vue/types/vue';\r\nimport { Validation } from 'vuelidate';\r\n\r\nexport interface FormFieldVue {\r\n registerFormElementComponent(formElementComponent: Vue): void;\r\n}\r\n\r\nexport interface FormElementComponent extends Vue {\r\n readonly content: TContent;\r\n readonly model: TModel;\r\n readonly validations:\r\n | (Validation & ValidationGroups & ValidationProperties)\r\n | null;\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport function getFormElementMixin<\r\n TModel,\r\n TContent,\r\n TConfiguration = void\r\n>(): VueConstructor> {\r\n return Vue.extend({\r\n inject: {\r\n injectedFormField: {\r\n from: 'formField',\r\n default: null as (Vue & FormFieldVue) | null,\r\n },\r\n },\r\n props: {\r\n content: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TContent;\r\n },\r\n },\r\n configuration: {\r\n type: Object as PropType,\r\n default: () => ({} as TConfiguration),\r\n },\r\n model: {\r\n type: Object as PropType,\r\n default: () => {\r\n return {} as TModel;\r\n },\r\n },\r\n validations: {\r\n type: Object as PropType<\r\n | (Validation &\r\n ValidationGroups &\r\n ValidationProperties)\r\n | null\r\n >,\r\n default: null,\r\n },\r\n showInfoIcon: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n formField(this: {\r\n injectedFormField: FormFieldVue;\r\n }): FormFieldVue | null {\r\n return this.injectedFormField || null;\r\n },\r\n },\r\n });\r\n}\r\n","import { PropType } from 'vue';\r\nimport { VueConstructor } from 'vue/types/vue';\r\nimport { compact as _compact } from 'lodash';\r\nimport { isFunctionKey } from '@/services/keys';\r\nimport { TextInputWithUnitContent } from '@/api/interfaces/content/form/base/textInputWithUnitContent';\r\nimport { FormInputComponent, getFormInputMixin } from './formInputMixin';\r\nimport { TextField } from '@/types/forms/fields/textField';\r\nimport { FormElement } from '@/types/forms/formElement';\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport interface FormInputTextComponent<\r\n TModel,\r\n TContent extends TextInputWithUnitContent\r\n> extends FormInputComponent {\r\n readonly minLength: number;\r\n readonly maxLength: number;\r\n readonly alignText: string;\r\n readonly type: string;\r\n readonly allowedCharacters: string[] | null;\r\n readonly forbiddenCharacters: string[] | null;\r\n readonly inputClasses: string[];\r\n}\r\n\r\n// eslint-disable-next-line @typescript-eslint/comma-dangle\r\nexport function getFormInputTextMixin<\r\n TModel extends FormElement,\r\n TContent extends TextInputWithUnitContent\r\n>(): VueConstructor> {\r\n return getFormInputMixin().extend({\r\n props: {\r\n minLength: {\r\n type: Number,\r\n default: 0,\r\n },\r\n maxLength: {\r\n type: Number,\r\n default: 256,\r\n },\r\n alignText: {\r\n type: String,\r\n validator(value: string) {\r\n return (\r\n !value ||\r\n (typeof value === 'string' &&\r\n ['left', 'center', 'right', 'justify'].includes(\r\n value,\r\n ))\r\n );\r\n },\r\n },\r\n type: {\r\n type: String,\r\n default: 'text',\r\n },\r\n allowedCharacters: {\r\n type: Array as PropType,\r\n default: null,\r\n },\r\n forbiddenCharacters: {\r\n type: Array as PropType,\r\n default: null,\r\n },\r\n inputEvents: {\r\n type: Object,\r\n default: null,\r\n },\r\n icon: {\r\n type: String,\r\n default: '',\r\n },\r\n handleBlurEvent: {\r\n type: Boolean,\r\n default: true,\r\n },\r\n focusable: {\r\n type: Object,\r\n default: null,\r\n },\r\n embedded: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n computed: {\r\n textAlignmentClass(): string | null {\r\n // naming all variants here for tailwind purge:\r\n // text-left text-center text-right text-justify\r\n return this.alignText ? `text-${this.alignText}` : null;\r\n },\r\n errorClass(): string | null {\r\n return this.hasErrors ? 'has-errors' : null;\r\n },\r\n embeddedClass(): string | null {\r\n return this.embedded ? 'embedded' : null;\r\n },\r\n readonlyClass(): string | null {\r\n return !this.model.userChangeable ? 'readonly' : null;\r\n },\r\n inputClasses(): string[] {\r\n return _compact([\r\n this.textAlignmentClass,\r\n this.errorClass,\r\n this.embeddedClass,\r\n ]);\r\n },\r\n },\r\n watch: {\r\n focusable: function () {\r\n const input = this.$el.querySelector('input') as HTMLElement;\r\n if (input) {\r\n input.focus();\r\n }\r\n },\r\n },\r\n methods: {\r\n onFocus(): void {\r\n this.$emit('form-input-focus');\r\n },\r\n onBlur(): void {\r\n if (this.handleBlurEvent && this.validations) {\r\n this.validations.$touch();\r\n }\r\n\r\n let value = undefined;\r\n\r\n if (this.model instanceof TextField) {\r\n value = this.model.value;\r\n }\r\n\r\n this.$emit('form-input-blur', value);\r\n },\r\n onKeydown(e: KeyboardEvent): void {\r\n if (this.forbiddenCharacters) {\r\n if (this.forbiddenCharacters.includes(e.key)) {\r\n e.preventDefault();\r\n return;\r\n }\r\n }\r\n if (this.allowedCharacters) {\r\n if (e.altKey || e.ctrlKey || isFunctionKey(e.key)) {\r\n return;\r\n }\r\n if (!this.allowedCharacters.includes(e.key)) {\r\n e.preventDefault();\r\n return;\r\n }\r\n }\r\n },\r\n },\r\n });\r\n}\r\n"],"sourceRoot":""}