@beinformed/ui 1.63.2 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -2419
- package/dist/Constants-BIbEko1E.d.cts +57 -0
- package/dist/Constants-BIbEko1E.d.ts +57 -0
- package/dist/FormModel-40md7nLX.d.ts +457 -0
- package/dist/FormModel-CemlQ_MU.d.cts +457 -0
- package/dist/chunk-2MCBBWEA.js +1 -0
- package/dist/chunk-2MCBBWEA.js.map +1 -0
- package/dist/chunk-52QS5IDA.js +1 -0
- package/dist/chunk-52QS5IDA.js.map +1 -0
- package/dist/chunk-73XVCQCW.js +2 -0
- package/dist/chunk-73XVCQCW.js.map +1 -0
- package/dist/chunk-77CGPEAQ.js +2 -0
- package/dist/chunk-77CGPEAQ.js.map +1 -0
- package/dist/chunk-BE2T4IDL.js +2 -0
- package/dist/chunk-BE2T4IDL.js.map +1 -0
- package/dist/chunk-BODVDNNA.js +2 -0
- package/dist/chunk-BODVDNNA.js.map +1 -0
- package/dist/chunk-CKI2GSM7.js +2 -0
- package/dist/chunk-CKI2GSM7.js.map +1 -0
- package/dist/chunk-CPYNQW3X.js +3 -0
- package/dist/chunk-CPYNQW3X.js.map +1 -0
- package/dist/chunk-ELPRKFLG.js +1 -0
- package/dist/chunk-ELPRKFLG.js.map +1 -0
- package/dist/chunk-EP2OYSVS.js +2 -0
- package/dist/chunk-EP2OYSVS.js.map +1 -0
- package/dist/chunk-FGEQKEJQ.js +2 -0
- package/dist/chunk-FGEQKEJQ.js.map +1 -0
- package/dist/chunk-L7K7QDC2.js +2 -0
- package/dist/chunk-L7K7QDC2.js.map +1 -0
- package/dist/chunk-LHZG2ET5.js +2 -0
- package/dist/chunk-LHZG2ET5.js.map +1 -0
- package/dist/chunk-LYBG43T6.js +2 -0
- package/dist/chunk-LYBG43T6.js.map +1 -0
- package/dist/chunk-MQBYZKME.js +2 -0
- package/dist/chunk-MQBYZKME.js.map +1 -0
- package/dist/chunk-SGXACUOV.js +2 -0
- package/dist/chunk-SGXACUOV.js.map +1 -0
- package/dist/chunk-VGAPPKHA.js +2 -0
- package/dist/chunk-VGAPPKHA.js.map +1 -0
- package/dist/chunk-VI6SO5NT.js +1 -0
- package/dist/chunk-VI6SO5NT.js.map +1 -0
- package/dist/chunk-VV3IT7US.js +1 -0
- package/dist/chunk-VV3IT7US.js.map +1 -0
- package/dist/chunk-WVQSFYWD.js +2 -0
- package/dist/chunk-WVQSFYWD.js.map +1 -0
- package/dist/chunk-YUOGIFZH.js +33 -0
- package/dist/chunk-YUOGIFZH.js.map +1 -0
- package/dist/constants/index.cjs +2 -0
- package/dist/constants/index.cjs.map +1 -0
- package/dist/constants/index.d.cts +28 -0
- package/dist/constants/index.d.ts +28 -0
- package/dist/constants/index.js +2 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/exceptions/index.cjs +2 -0
- package/dist/exceptions/index.cjs.map +1 -0
- package/dist/exceptions/index.d.cts +88 -0
- package/dist/exceptions/index.d.ts +88 -0
- package/dist/exceptions/index.js +2 -0
- package/dist/exceptions/index.js.map +1 -0
- package/dist/index-CgXDAyxM.d.ts +5242 -0
- package/dist/index-Ku2WDvSe.d.cts +5242 -0
- package/dist/index.cjs +34 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/layouthints/index.cjs +34 -0
- package/dist/layouthints/index.cjs.map +1 -0
- package/dist/layouthints/index.d.cts +322 -0
- package/dist/layouthints/index.d.ts +322 -0
- package/dist/layouthints/index.js +2 -0
- package/dist/layouthints/index.js.map +1 -0
- package/dist/models/index.cjs +34 -0
- package/dist/models/index.cjs.map +1 -0
- package/dist/models/index.d.cts +1133 -0
- package/dist/models/index.d.ts +1133 -0
- package/dist/models/index.js +2 -0
- package/dist/models/index.js.map +1 -0
- package/dist/modularui/index.cjs +34 -0
- package/dist/modularui/index.cjs.map +1 -0
- package/dist/modularui/index.d.cts +216 -0
- package/dist/modularui/index.d.ts +216 -0
- package/dist/modularui/index.js +2 -0
- package/dist/modularui/index.js.map +1 -0
- package/dist/settings/index.cjs +2 -0
- package/dist/settings/index.cjs.map +1 -0
- package/dist/settings/index.d.cts +57 -0
- package/dist/settings/index.d.ts +57 -0
- package/dist/settings/index.js +2 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +5 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/index.cjs +33 -0
- package/dist/utils/index.cjs.map +1 -0
- package/dist/utils/index.d.cts +183 -0
- package/dist/utils/index.d.ts +183 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +66 -203
- package/README.md +0 -32
- package/codemods/__testfixtures__/imports.input.txt +0 -41
- package/codemods/__testfixtures__/imports.output.txt +0 -44
- package/codemods/__tests__/imports.spec.js +0 -20
- package/codemods/imports.js +0 -199
- package/esm/builder/__tests__/mergeLayoutHintConfigurations.spec.js.flow +0 -71
- package/esm/builder/index.js +0 -2
- package/esm/builder/index.js.flow +0 -2
- package/esm/builder/index.js.map +0 -1
- package/esm/builder/mergeLayoutHintConfigurations.js +0 -57
- package/esm/builder/mergeLayoutHintConfigurations.js.flow +0 -62
- package/esm/builder/mergeLayoutHintConfigurations.js.map +0 -1
- package/esm/constants/Constants.js +0 -183
- package/esm/constants/Constants.js.flow +0 -190
- package/esm/constants/Constants.js.map +0 -1
- package/esm/constants/LayoutHintConfig.js +0 -167
- package/esm/constants/LayoutHintConfig.js.flow +0 -186
- package/esm/constants/LayoutHintConfig.js.map +0 -1
- package/esm/constants/LayoutHints.js +0 -129
- package/esm/constants/LayoutHints.js.flow +0 -134
- package/esm/constants/LayoutHints.js.map +0 -1
- package/esm/constants/Settings.js +0 -198
- package/esm/constants/Settings.js.flow +0 -269
- package/esm/constants/Settings.js.map +0 -1
- package/esm/constants/index.js +0 -4
- package/esm/constants/index.js.flow +0 -4
- package/esm/constants/index.js.map +0 -1
- package/esm/exceptions/ConfigurationException.js +0 -11
- package/esm/exceptions/ConfigurationException.js.flow +0 -13
- package/esm/exceptions/ConfigurationException.js.map +0 -1
- package/esm/exceptions/FetchException.js +0 -64
- package/esm/exceptions/FetchException.js.flow +0 -101
- package/esm/exceptions/FetchException.js.map +0 -1
- package/esm/exceptions/IllegalArgumentException.js +0 -11
- package/esm/exceptions/IllegalArgumentException.js.flow +0 -12
- package/esm/exceptions/IllegalArgumentException.js.map +0 -1
- package/esm/exceptions/IllegalReturnException.js +0 -10
- package/esm/exceptions/IllegalReturnException.js.flow +0 -11
- package/esm/exceptions/IllegalReturnException.js.map +0 -1
- package/esm/exceptions/IllegalStateException.js +0 -11
- package/esm/exceptions/IllegalStateException.js.flow +0 -12
- package/esm/exceptions/IllegalStateException.js.map +0 -1
- package/esm/exceptions/JsonParseException.js +0 -11
- package/esm/exceptions/JsonParseException.js.flow +0 -12
- package/esm/exceptions/JsonParseException.js.map +0 -1
- package/esm/exceptions/MissingPropertyException.js +0 -11
- package/esm/exceptions/MissingPropertyException.js.flow +0 -13
- package/esm/exceptions/MissingPropertyException.js.map +0 -1
- package/esm/exceptions/NetworkException.js +0 -16
- package/esm/exceptions/NetworkException.js.flow +0 -20
- package/esm/exceptions/NetworkException.js.map +0 -1
- package/esm/exceptions/NotAllowedUriException.js +0 -11
- package/esm/exceptions/NotAllowedUriException.js.flow +0 -12
- package/esm/exceptions/NotAllowedUriException.js.map +0 -1
- package/esm/exceptions/NotFoundException.js +0 -19
- package/esm/exceptions/NotFoundException.js.flow +0 -20
- package/esm/exceptions/NotFoundException.js.map +0 -1
- package/esm/exceptions/ServerRequestException.js +0 -11
- package/esm/exceptions/ServerRequestException.js.flow +0 -12
- package/esm/exceptions/ServerRequestException.js.map +0 -1
- package/esm/exceptions/ThemePropertyException.js +0 -11
- package/esm/exceptions/ThemePropertyException.js.flow +0 -12
- package/esm/exceptions/ThemePropertyException.js.map +0 -1
- package/esm/exceptions/TimeoutException.js +0 -11
- package/esm/exceptions/TimeoutException.js.flow +0 -13
- package/esm/exceptions/TimeoutException.js.map +0 -1
- package/esm/exceptions/UnauthorizedException.js +0 -18
- package/esm/exceptions/UnauthorizedException.js.flow +0 -26
- package/esm/exceptions/UnauthorizedException.js.map +0 -1
- package/esm/exceptions/UnsupportedOperationException.js +0 -11
- package/esm/exceptions/UnsupportedOperationException.js.flow +0 -12
- package/esm/exceptions/UnsupportedOperationException.js.map +0 -1
- package/esm/exceptions/index.js +0 -16
- package/esm/exceptions/index.js.flow +0 -16
- package/esm/exceptions/index.js.map +0 -1
- package/esm/hooks/__tests__/UseModularUIModel.spec.js.flow +0 -193
- package/esm/hooks/__tests__/useAuthentication.spec.js.flow +0 -122
- package/esm/hooks/__tests__/useForm.spec.js.flow +0 -300
- package/esm/hooks/__tests__/useI18n.spec.js.flow +0 -30
- package/esm/hooks/__tests__/useModal.spec.js.flow +0 -67
- package/esm/hooks/__tests__/useModelCatalog.spec.js.flow +0 -180
- package/esm/hooks/__tests__/useModels.spec.js.flow +0 -138
- package/esm/hooks/__tests__/useModularUIBasic.spec.js.flow +0 -126
- package/esm/hooks/__tests__/useNotification.spec.js.flow +0 -47
- package/esm/hooks/__tests__/usePreference.spec.js.flow +0 -72
- package/esm/hooks/__tests__/useProgressIndicator.spec.js.flow +0 -67
- package/esm/hooks/index.js +0 -17
- package/esm/hooks/index.js.flow +0 -17
- package/esm/hooks/index.js.map +0 -1
- package/esm/hooks/useAllFormsOnModel.js +0 -73
- package/esm/hooks/useAllFormsOnModel.js.flow +0 -92
- package/esm/hooks/useAllFormsOnModel.js.map +0 -1
- package/esm/hooks/useAuthentication.js +0 -57
- package/esm/hooks/useAuthentication.js.flow +0 -98
- package/esm/hooks/useAuthentication.js.map +0 -1
- package/esm/hooks/useContent.js +0 -41
- package/esm/hooks/useContent.js.flow +0 -48
- package/esm/hooks/useContent.js.map +0 -1
- package/esm/hooks/useDeepCompareEffect.js +0 -24
- package/esm/hooks/useDeepCompareEffect.js.flow +0 -34
- package/esm/hooks/useDeepCompareEffect.js.map +0 -1
- package/esm/hooks/useForm.js +0 -87
- package/esm/hooks/useForm.js.flow +0 -153
- package/esm/hooks/useForm.js.map +0 -1
- package/esm/hooks/useI18n.js +0 -32
- package/esm/hooks/useI18n.js.flow +0 -46
- package/esm/hooks/useI18n.js.map +0 -1
- package/esm/hooks/useModal.js +0 -35
- package/esm/hooks/useModal.js.flow +0 -46
- package/esm/hooks/useModal.js.map +0 -1
- package/esm/hooks/useModelCatalog.js +0 -199
- package/esm/hooks/useModelCatalog.js.flow +0 -256
- package/esm/hooks/useModelCatalog.js.map +0 -1
- package/esm/hooks/useModels.js +0 -37
- package/esm/hooks/useModels.js.flow +0 -50
- package/esm/hooks/useModels.js.map +0 -1
- package/esm/hooks/useModularUI.js +0 -61
- package/esm/hooks/useModularUI.js.flow +0 -90
- package/esm/hooks/useModularUI.js.map +0 -1
- package/esm/hooks/useModularUIBasic.js +0 -73
- package/esm/hooks/useModularUIBasic.js.flow +0 -101
- package/esm/hooks/useModularUIBasic.js.map +0 -1
- package/esm/hooks/useModularUIModel.js +0 -109
- package/esm/hooks/useModularUIModel.js.flow +0 -165
- package/esm/hooks/useModularUIModel.js.map +0 -1
- package/esm/hooks/useModularUIRequest.js +0 -17
- package/esm/hooks/useModularUIRequest.js.flow +0 -25
- package/esm/hooks/useModularUIRequest.js.map +0 -1
- package/esm/hooks/useNotification.js +0 -31
- package/esm/hooks/useNotification.js.flow +0 -48
- package/esm/hooks/useNotification.js.map +0 -1
- package/esm/hooks/usePreference.js +0 -15
- package/esm/hooks/usePreference.js.flow +0 -27
- package/esm/hooks/usePreference.js.map +0 -1
- package/esm/hooks/useProgressIndicator.js +0 -16
- package/esm/hooks/useProgressIndicator.js.flow +0 -33
- package/esm/hooks/useProgressIndicator.js.map +0 -1
- package/esm/hooks/useRouter.js +0 -31
- package/esm/hooks/useRouter.js.flow +0 -64
- package/esm/hooks/useRouter.js.map +0 -1
- package/esm/i18n/Locale.js +0 -121
- package/esm/i18n/Locale.js.flow +0 -157
- package/esm/i18n/Locale.js.map +0 -1
- package/esm/i18n/Locales.js +0 -132
- package/esm/i18n/Locales.js.flow +0 -171
- package/esm/i18n/Locales.js.map +0 -1
- package/esm/i18n/Message.js +0 -44
- package/esm/i18n/Message.js.flow +0 -66
- package/esm/i18n/Message.js.map +0 -1
- package/esm/i18n/__tests__/Locale.spec.js.flow +0 -108
- package/esm/i18n/__tests__/Locales.spec.js.flow +0 -137
- package/esm/i18n/index.js +0 -5
- package/esm/i18n/index.js.flow +0 -12
- package/esm/i18n/index.js.map +0 -1
- package/esm/i18n/languages.js +0 -206
- package/esm/i18n/languages.js.flow +0 -207
- package/esm/i18n/languages.js.map +0 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js +0 -98
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.flow +0 -98
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +0 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js +0 -98
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.flow +0 -98
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +0 -1
- package/esm/i18n/types.js +0 -2
- package/esm/i18n/types.js.flow +0 -23
- package/esm/i18n/types.js.map +0 -1
- package/esm/i18n/withMessage.js +0 -20
- package/esm/i18n/withMessage.js.flow +0 -47
- package/esm/i18n/withMessage.js.map +0 -1
- package/esm/index.js +0 -7
- package/esm/index.js.flow +0 -7
- package/esm/index.js.map +0 -1
- package/esm/models/__tests__/resolveModel.spec.js.flow +0 -34
- package/esm/models/actions/ActionCollection.js +0 -82
- package/esm/models/actions/ActionCollection.js.flow +0 -100
- package/esm/models/actions/ActionCollection.js.map +0 -1
- package/esm/models/actions/ActionModel.js +0 -186
- package/esm/models/actions/ActionModel.js.flow +0 -207
- package/esm/models/actions/ActionModel.js.map +0 -1
- package/esm/models/actions/__mock__/action.js.flow +0 -35
- package/esm/models/actions/__tests__/ActionCollection.spec.js.flow +0 -98
- package/esm/models/actions/__tests__/ActionModel.spec.js.flow +0 -75
- package/esm/models/application/ApplicationModel.js +0 -127
- package/esm/models/application/ApplicationModel.js.flow +0 -151
- package/esm/models/application/ApplicationModel.js.map +0 -1
- package/esm/models/application/__mock__/application.js.flow +0 -14
- package/esm/models/application/__tests__/Application.spec.js.flow +0 -99
- package/esm/models/attributes/AttributeCollection.js +0 -275
- package/esm/models/attributes/AttributeCollection.js.flow +0 -306
- package/esm/models/attributes/AttributeCollection.js.map +0 -1
- package/esm/models/attributes/AttributeContent.js +0 -196
- package/esm/models/attributes/AttributeContent.js.flow +0 -233
- package/esm/models/attributes/AttributeContent.js.map +0 -1
- package/esm/models/attributes/AttributeDataHelper.js +0 -261
- package/esm/models/attributes/AttributeDataHelper.js.flow +0 -323
- package/esm/models/attributes/AttributeDataHelper.js.map +0 -1
- package/esm/models/attributes/AttributeModel.js +0 -816
- package/esm/models/attributes/AttributeModel.js.flow +0 -1007
- package/esm/models/attributes/AttributeModel.js.map +0 -1
- package/esm/models/attributes/AttributeSetModel.js +0 -97
- package/esm/models/attributes/AttributeSetModel.js.flow +0 -117
- package/esm/models/attributes/AttributeSetModel.js.map +0 -1
- package/esm/models/attributes/BooleanAttributeModel.js +0 -287
- package/esm/models/attributes/BooleanAttributeModel.js.flow +0 -319
- package/esm/models/attributes/BooleanAttributeModel.js.map +0 -1
- package/esm/models/attributes/CaptchaAttributeModel.js +0 -53
- package/esm/models/attributes/CaptchaAttributeModel.js.flow +0 -51
- package/esm/models/attributes/CaptchaAttributeModel.js.map +0 -1
- package/esm/models/attributes/ChoiceAttributeModel.js +0 -403
- package/esm/models/attributes/ChoiceAttributeModel.js.flow +0 -499
- package/esm/models/attributes/ChoiceAttributeModel.js.map +0 -1
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js +0 -306
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.flow +0 -372
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +0 -1
- package/esm/models/attributes/ChoiceAttributeOptionModel.js +0 -335
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.flow +0 -415
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +0 -1
- package/esm/models/attributes/CompositeAttributeChildCollection.js +0 -182
- package/esm/models/attributes/CompositeAttributeChildCollection.js.flow +0 -254
- package/esm/models/attributes/CompositeAttributeChildCollection.js.map +0 -1
- package/esm/models/attributes/CompositeAttributeModel.js +0 -374
- package/esm/models/attributes/CompositeAttributeModel.js.flow +0 -439
- package/esm/models/attributes/CompositeAttributeModel.js.map +0 -1
- package/esm/models/attributes/DatetimeAttributeModel.js +0 -458
- package/esm/models/attributes/DatetimeAttributeModel.js.flow +0 -566
- package/esm/models/attributes/DatetimeAttributeModel.js.map +0 -1
- package/esm/models/attributes/HelptextAttributeModel.js +0 -48
- package/esm/models/attributes/HelptextAttributeModel.js.flow +0 -54
- package/esm/models/attributes/HelptextAttributeModel.js.map +0 -1
- package/esm/models/attributes/LabelAttributeModel.js +0 -34
- package/esm/models/attributes/LabelAttributeModel.js.flow +0 -36
- package/esm/models/attributes/LabelAttributeModel.js.map +0 -1
- package/esm/models/attributes/MemoAttributeModel.js +0 -42
- package/esm/models/attributes/MemoAttributeModel.js.flow +0 -43
- package/esm/models/attributes/MemoAttributeModel.js.map +0 -1
- package/esm/models/attributes/MoneyAttributeModel.js +0 -42
- package/esm/models/attributes/MoneyAttributeModel.js.flow +0 -45
- package/esm/models/attributes/MoneyAttributeModel.js.map +0 -1
- package/esm/models/attributes/NumberAttributeModel.js +0 -193
- package/esm/models/attributes/NumberAttributeModel.js.flow +0 -255
- package/esm/models/attributes/NumberAttributeModel.js.map +0 -1
- package/esm/models/attributes/PasswordAttributeModel.js +0 -209
- package/esm/models/attributes/PasswordAttributeModel.js.flow +0 -245
- package/esm/models/attributes/PasswordAttributeModel.js.map +0 -1
- package/esm/models/attributes/StringAttributeModel.js +0 -276
- package/esm/models/attributes/StringAttributeModel.js.flow +0 -314
- package/esm/models/attributes/StringAttributeModel.js.map +0 -1
- package/esm/models/attributes/UploadAttributeModel.js +0 -215
- package/esm/models/attributes/UploadAttributeModel.js.flow +0 -261
- package/esm/models/attributes/UploadAttributeModel.js.map +0 -1
- package/esm/models/attributes/XMLAttributeModel.js +0 -46
- package/esm/models/attributes/XMLAttributeModel.js.flow +0 -51
- package/esm/models/attributes/XMLAttributeModel.js.map +0 -1
- package/esm/models/attributes/__mock__/form.js.flow +0 -6
- package/esm/models/attributes/__mock__/list.js.flow +0 -6
- package/esm/models/attributes/__tests__/AttributeCollection.spec.js.flow +0 -160
- package/esm/models/attributes/__tests__/AttributeCollectionComposite.spec.js.flow +0 -146
- package/esm/models/attributes/__tests__/AttributeContent.spec.js.flow +0 -225
- package/esm/models/attributes/__tests__/AttributeDataHelper.spec.js.flow +0 -634
- package/esm/models/attributes/__tests__/AttributeModel.spec.js.flow +0 -274
- package/esm/models/attributes/__tests__/AttributeSetModel.spec.js.flow +0 -39
- package/esm/models/attributes/__tests__/BooleanAttributeModel.spec.js.flow +0 -107
- package/esm/models/attributes/__tests__/CaptchaAttributeModel.spec.js.flow +0 -13
- package/esm/models/attributes/__tests__/ChoiceAttributeModel.spec.js.flow +0 -750
- package/esm/models/attributes/__tests__/ChoiceAttributeOptionCollection.spec.js.flow +0 -507
- package/esm/models/attributes/__tests__/ChoiceAttributeOptionModel.spec.js.flow +0 -107
- package/esm/models/attributes/__tests__/CompositeAttributeModel.spec.js.flow +0 -467
- package/esm/models/attributes/__tests__/DateAttributeModel.spec.js.flow +0 -134
- package/esm/models/attributes/__tests__/DatetimeAttributeModel.spec.js.flow +0 -206
- package/esm/models/attributes/__tests__/DatetimeAttributeModel_offset.spec.js.flow +0 -345
- package/esm/models/attributes/__tests__/HelptextAttributeModel.spec.js.flow +0 -64
- package/esm/models/attributes/__tests__/LabelAttributeModel.spec.js.flow +0 -13
- package/esm/models/attributes/__tests__/LookupAttributeModel.spec.js.flow +0 -47
- package/esm/models/attributes/__tests__/MemoAttributeModel.spec.js.flow +0 -28
- package/esm/models/attributes/__tests__/MoneyAttributeModel.spec.js.flow +0 -22
- package/esm/models/attributes/__tests__/NumberAttributeModel.spec.js.flow +0 -67
- package/esm/models/attributes/__tests__/PasswordAttributeModel.spec.js.flow +0 -49
- package/esm/models/attributes/__tests__/StringAttributeModel.spec.js.flow +0 -125
- package/esm/models/attributes/__tests__/TimeAttributeModel.spec.js.flow +0 -57
- package/esm/models/attributes/__tests__/TimestampModel.spec.js.flow +0 -43
- package/esm/models/attributes/__tests__/UploadAttributeModel.spec.js.flow +0 -67
- package/esm/models/attributes/__tests__/XMLAttributeModel.spec.js.flow +0 -17
- package/esm/models/attributes/__tests__/_createAttribute.spec.js.flow +0 -106
- package/esm/models/attributes/__tests__/createAttributeComposite.spec.js.flow +0 -151
- package/esm/models/attributes/__tests__/createAttributeDynamicSchema.spec.js.flow +0 -134
- package/esm/models/attributes/_createAttribute.js +0 -86
- package/esm/models/attributes/_createAttribute.js.flow +0 -147
- package/esm/models/attributes/_createAttribute.js.map +0 -1
- package/esm/models/attributes/input-constraints/BSNConstraint.js +0 -66
- package/esm/models/attributes/input-constraints/BSNConstraint.js.flow +0 -80
- package/esm/models/attributes/input-constraints/BSNConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/ConstraintCollection.js +0 -42
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.flow +0 -65
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +0 -1
- package/esm/models/attributes/input-constraints/ConstraintModel.js +0 -66
- package/esm/models/attributes/input-constraints/ConstraintModel.js.flow +0 -76
- package/esm/models/attributes/input-constraints/ConstraintModel.js.map +0 -1
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +0 -198
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.flow +0 -240
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +0 -69
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.flow +0 -72
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +0 -69
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.flow +0 -72
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +0 -115
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.flow +0 -132
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +0 -59
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.flow +0 -60
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js +0 -91
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.flow +0 -101
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/IBANConstraint.js +0 -42
- package/esm/models/attributes/input-constraints/IBANConstraint.js.flow +0 -46
- package/esm/models/attributes/input-constraints/IBANConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js +0 -47
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.flow +0 -54
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +0 -78
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.flow +0 -84
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +0 -170
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.flow +0 -213
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +0 -125
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.flow +0 -153
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +0 -119
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.flow +0 -140
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +0 -65
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.flow +0 -68
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +0 -41
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.flow +0 -44
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +0 -57
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.flow +0 -60
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +0 -57
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.flow +0 -60
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +0 -71
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.flow +0 -74
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/RangeConstraint.js +0 -136
- package/esm/models/attributes/input-constraints/RangeConstraint.js.flow +0 -161
- package/esm/models/attributes/input-constraints/RangeConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/RegexConstraint.js +0 -60
- package/esm/models/attributes/input-constraints/RegexConstraint.js.flow +0 -72
- package/esm/models/attributes/input-constraints/RegexConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js +0 -171
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.flow +0 -179
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/XMLConstraint.js +0 -56
- package/esm/models/attributes/input-constraints/XMLConstraint.js.flow +0 -62
- package/esm/models/attributes/input-constraints/XMLConstraint.js.map +0 -1
- package/esm/models/attributes/input-constraints/__tests__/BSNConstraint.spec.js.flow +0 -25
- package/esm/models/attributes/input-constraints/__tests__/ConstraintCollection.spec.js.flow +0 -9
- package/esm/models/attributes/input-constraints/__tests__/ConstraintModel.spec.js.flow +0 -35
- package/esm/models/attributes/input-constraints/__tests__/DateBoundaryConstraint.spec.js.flow +0 -117
- package/esm/models/attributes/input-constraints/__tests__/DateTimeDateFormatConstraint.spec.js.flow +0 -30
- package/esm/models/attributes/input-constraints/__tests__/DateTimeTimeFormatConstraint.spec.js.flow +0 -54
- package/esm/models/attributes/input-constraints/__tests__/DatetimeFormatConstraint.spec.js.flow +0 -79
- package/esm/models/attributes/input-constraints/__tests__/FileExtensionConstraint.spec.js.flow +0 -20
- package/esm/models/attributes/input-constraints/__tests__/FileSizeConstraint.spec.js.flow +0 -53
- package/esm/models/attributes/input-constraints/__tests__/IBANConstraint.spec.js.flow +0 -12
- package/esm/models/attributes/input-constraints/__tests__/MandatoryConstraint.spec.js.flow +0 -14
- package/esm/models/attributes/input-constraints/__tests__/NumberBoundaryConstraint.spec.js.flow +0 -46
- package/esm/models/attributes/input-constraints/__tests__/NumberFormatConstraint.spec.js.flow +0 -137
- package/esm/models/attributes/input-constraints/__tests__/NumberGroupingConstraint.spec.js.flow +0 -85
- package/esm/models/attributes/input-constraints/__tests__/PasswordConfirmConstraint.spec.js.flow +0 -21
- package/esm/models/attributes/input-constraints/__tests__/PasswordLowerAndUpperCaseConstraint.spec.js.flow +0 -14
- package/esm/models/attributes/input-constraints/__tests__/PasswordMinNumericCharactersConstraint.spec.js.flow +0 -11
- package/esm/models/attributes/input-constraints/__tests__/PasswordMinSpecialCharactersConstraint.spec.js.flow +0 -11
- package/esm/models/attributes/input-constraints/__tests__/PasswordThreeConsecutiveCharactersNotAllowedConstraint.spec.js.flow +0 -22
- package/esm/models/attributes/input-constraints/__tests__/RegexConstraint.spec.js.flow +0 -42
- package/esm/models/attributes/input-constraints/__tests__/StringLengthConstraint.spec.js.flow +0 -102
- package/esm/models/attributes/input-constraints/__tests__/XMLConstraint.spec.js.flow +0 -15
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +0 -59
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.flow +0 -74
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +0 -1
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js +0 -193
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.flow +0 -246
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +0 -1
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +0 -79
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.flow +0 -101
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +0 -1
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +0 -44
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.flow +0 -67
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +0 -1
- package/esm/models/attributes/layouthint-rules/__mock__/MockedCollectionFactory.js.flow +0 -54
- package/esm/models/attributes/layouthint-rules/__tests__/BaseLayoutHintRule.spec.js.flow +0 -29
- package/esm/models/attributes/layouthint-rules/__tests__/DependentAttribute.spec.js.flow +0 -310
- package/esm/models/attributes/layouthint-rules/__tests__/LayoutHintRuleCollection.spec.js.flow +0 -58
- package/esm/models/attributes/layouthint-rules/__tests__/RemainingTotalUploadSize.spec.js.flow +0 -24
- package/esm/models/base/BaseCollection.js +0 -180
- package/esm/models/base/BaseCollection.js.flow +0 -191
- package/esm/models/base/BaseCollection.js.map +0 -1
- package/esm/models/base/BaseModel.js +0 -142
- package/esm/models/base/BaseModel.js.flow +0 -155
- package/esm/models/base/BaseModel.js.map +0 -1
- package/esm/models/base/ResourceCollection.js +0 -34
- package/esm/models/base/ResourceCollection.js.flow +0 -42
- package/esm/models/base/ResourceCollection.js.map +0 -1
- package/esm/models/base/ResourceModel.js +0 -202
- package/esm/models/base/ResourceModel.js.flow +0 -246
- package/esm/models/base/ResourceModel.js.map +0 -1
- package/esm/models/base/__tests__/BaseCollection.spec.js.flow +0 -108
- package/esm/models/base/__tests__/BaseModel.spec.js.flow +0 -85
- package/esm/models/base/__tests__/ResourceCollection.spec.js.flow +0 -51
- package/esm/models/base/__tests__/ResourceModel.spec.js.flow +0 -100
- package/esm/models/caseview/CaseViewModel.js +0 -155
- package/esm/models/caseview/CaseViewModel.js.flow +0 -188
- package/esm/models/caseview/CaseViewModel.js.map +0 -1
- package/esm/models/caseview/__mock__/caseview.js.flow +0 -14
- package/esm/models/caseview/__tests__/CaseViewModel.spec.js.flow +0 -132
- package/esm/models/concepts/BusinessScenarioModel.js +0 -115
- package/esm/models/concepts/BusinessScenarioModel.js.flow +0 -176
- package/esm/models/concepts/BusinessScenarioModel.js.map +0 -1
- package/esm/models/concepts/ConceptDetailModel.js +0 -273
- package/esm/models/concepts/ConceptDetailModel.js.flow +0 -343
- package/esm/models/concepts/ConceptDetailModel.js.map +0 -1
- package/esm/models/concepts/ConceptIndexModel.js +0 -142
- package/esm/models/concepts/ConceptIndexModel.js.flow +0 -170
- package/esm/models/concepts/ConceptIndexModel.js.map +0 -1
- package/esm/models/concepts/ConceptLinkModel.js +0 -164
- package/esm/models/concepts/ConceptLinkModel.js.flow +0 -208
- package/esm/models/concepts/ConceptLinkModel.js.map +0 -1
- package/esm/models/concepts/ConceptRelationCollection.js +0 -75
- package/esm/models/concepts/ConceptRelationCollection.js.flow +0 -95
- package/esm/models/concepts/ConceptRelationCollection.js.map +0 -1
- package/esm/models/concepts/ConceptRelationModel.js +0 -107
- package/esm/models/concepts/ConceptRelationModel.js.flow +0 -129
- package/esm/models/concepts/ConceptRelationModel.js.map +0 -1
- package/esm/models/concepts/ConceptTypeDetailModel.js +0 -121
- package/esm/models/concepts/ConceptTypeDetailModel.js.flow +0 -128
- package/esm/models/concepts/ConceptTypeDetailModel.js.map +0 -1
- package/esm/models/concepts/SourceReferenceCollection.js +0 -27
- package/esm/models/concepts/SourceReferenceCollection.js.flow +0 -32
- package/esm/models/concepts/SourceReferenceCollection.js.map +0 -1
- package/esm/models/concepts/SourceReferenceModel.js +0 -93
- package/esm/models/concepts/SourceReferenceModel.js.flow +0 -114
- package/esm/models/concepts/SourceReferenceModel.js.map +0 -1
- package/esm/models/concepts/__mock__/business_scenario.js.flow +0 -26
- package/esm/models/concepts/__mock__/conceptdetail.js.flow +0 -27
- package/esm/models/concepts/__mock__/conceptindex.js.flow +0 -15
- package/esm/models/concepts/__mock__/concepttype.js.flow +0 -13
- package/esm/models/concepts/__mock__/concepttype_hierarchy.js.flow +0 -13
- package/esm/models/concepts/__mock__/related_concepts.js.flow +0 -12
- package/esm/models/concepts/__mock__/relation_with_props_and_tf_data.js.flow +0 -27
- package/esm/models/concepts/__tests__/BusinessScenarioModel.spec.js.flow +0 -28
- package/esm/models/concepts/__tests__/ConceptDetailModel.spec.js.flow +0 -65
- package/esm/models/concepts/__tests__/ConceptIndexModel.spec.js.flow +0 -42
- package/esm/models/concepts/__tests__/ConceptLinkModel.spec.js.flow +0 -9
- package/esm/models/concepts/__tests__/ConceptRelationCollection.spec.js.flow +0 -9
- package/esm/models/concepts/__tests__/ConceptRelationModel.spec.js.flow +0 -53
- package/esm/models/concepts/__tests__/ConceptTypeDetailModel.spec.js.flow +0 -31
- package/esm/models/concepts/__tests__/RelatedConcepts.spec.js.flow +0 -58
- package/esm/models/concepts/__tests__/SourceReferenceCollection.spec.js.flow +0 -9
- package/esm/models/concepts/__tests__/SourceReferenceModel.spec.js.flow +0 -108
- package/esm/models/content/ContentIndexModel.js +0 -134
- package/esm/models/content/ContentIndexModel.js.flow +0 -160
- package/esm/models/content/ContentIndexModel.js.map +0 -1
- package/esm/models/content/ContentLinkModel.js +0 -250
- package/esm/models/content/ContentLinkModel.js.flow +0 -308
- package/esm/models/content/ContentLinkModel.js.map +0 -1
- package/esm/models/content/ContentModel.js +0 -200
- package/esm/models/content/ContentModel.js.flow +0 -226
- package/esm/models/content/ContentModel.js.map +0 -1
- package/esm/models/content/ContentTOCModel.js +0 -204
- package/esm/models/content/ContentTOCModel.js.flow +0 -233
- package/esm/models/content/ContentTOCModel.js.map +0 -1
- package/esm/models/content/ContentTypeModel.js +0 -66
- package/esm/models/content/ContentTypeModel.js.flow +0 -71
- package/esm/models/content/ContentTypeModel.js.map +0 -1
- package/esm/models/content/SectionModel.js +0 -193
- package/esm/models/content/SectionModel.js.flow +0 -236
- package/esm/models/content/SectionModel.js.map +0 -1
- package/esm/models/content/SubSectionModel.js +0 -159
- package/esm/models/content/SubSectionModel.js.flow +0 -181
- package/esm/models/content/SubSectionModel.js.map +0 -1
- package/esm/models/content/__tests__/ContentIndexModel.spec.js.flow +0 -40
- package/esm/models/content/__tests__/ContentLinkModel.spec.js.flow +0 -129
- package/esm/models/content/__tests__/ContentModel.spec.js.flow +0 -241
- package/esm/models/content/__tests__/Formalsource.spec.js.flow +0 -133
- package/esm/models/contentconfiguration/ContentConfiguration.js +0 -68
- package/esm/models/contentconfiguration/ContentConfiguration.js.flow +0 -70
- package/esm/models/contentconfiguration/ContentConfiguration.js.map +0 -1
- package/esm/models/contentconfiguration/ContentConfigurationElements.js +0 -137
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.flow +0 -152
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +0 -1
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +0 -43
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.flow +0 -45
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +0 -1
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +0 -48
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.flow +0 -60
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +0 -1
- package/esm/models/contentconfiguration/ContentConfigurationResults.js +0 -97
- package/esm/models/contentconfiguration/ContentConfigurationResults.js.flow +0 -105
- package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +0 -1
- package/esm/models/contentconfiguration/__tests__/ContentConfigurationElements.spec.js.flow +0 -29
- package/esm/models/contentconfiguration/__tests__/ContentConfigurationResults.spec.js.flow +0 -101
- package/esm/models/detail/DetailModel.js +0 -211
- package/esm/models/detail/DetailModel.js.flow +0 -241
- package/esm/models/detail/DetailModel.js.map +0 -1
- package/esm/models/detail/__tests__/DetailModel.spec.js.flow +0 -41
- package/esm/models/error/ErrorCollection.js +0 -104
- package/esm/models/error/ErrorCollection.js.flow +0 -127
- package/esm/models/error/ErrorCollection.js.map +0 -1
- package/esm/models/error/ErrorModel.js +0 -75
- package/esm/models/error/ErrorModel.js.flow +0 -83
- package/esm/models/error/ErrorModel.js.map +0 -1
- package/esm/models/error/ErrorResponse.js +0 -300
- package/esm/models/error/ErrorResponse.js.flow +0 -343
- package/esm/models/error/ErrorResponse.js.map +0 -1
- package/esm/models/error/__tests__/ErrorCollection.spec.js.flow +0 -41
- package/esm/models/error/__tests__/ErrorModel.spec.js.flow +0 -24
- package/esm/models/filters/AssignmentFilterModel.js +0 -153
- package/esm/models/filters/AssignmentFilterModel.js.flow +0 -195
- package/esm/models/filters/AssignmentFilterModel.js.map +0 -1
- package/esm/models/filters/BaseFilterModel.js +0 -203
- package/esm/models/filters/BaseFilterModel.js.flow +0 -236
- package/esm/models/filters/BaseFilterModel.js.map +0 -1
- package/esm/models/filters/ConceptIndexFilterModel.js +0 -29
- package/esm/models/filters/ConceptIndexFilterModel.js.flow +0 -40
- package/esm/models/filters/ConceptIndexFilterModel.js.map +0 -1
- package/esm/models/filters/FilterCollection.js +0 -147
- package/esm/models/filters/FilterCollection.js.flow +0 -192
- package/esm/models/filters/FilterCollection.js.map +0 -1
- package/esm/models/filters/FilterModel.js +0 -6
- package/esm/models/filters/FilterModel.js.flow +0 -6
- package/esm/models/filters/FilterModel.js.map +0 -1
- package/esm/models/filters/RangeFilterModel.js +0 -36
- package/esm/models/filters/RangeFilterModel.js.flow +0 -36
- package/esm/models/filters/RangeFilterModel.js.map +0 -1
- package/esm/models/filters/StringFilterModel.js +0 -140
- package/esm/models/filters/StringFilterModel.js.flow +0 -159
- package/esm/models/filters/StringFilterModel.js.map +0 -1
- package/esm/models/filters/__tests__/AssignmentFilterModel.spec.js.flow +0 -140
- package/esm/models/filters/__tests__/FilterCollection.spec.js.flow +0 -68
- package/esm/models/filters/__tests__/FilterModel.spec.js.flow +0 -65
- package/esm/models/filters/__tests__/RangeFilterModel.spec.js.flow +0 -55
- package/esm/models/filters/__tests__/ZipcodeFilter.spec.js.flow +0 -145
- package/esm/models/form/FormModel.js +0 -1031
- package/esm/models/form/FormModel.js.flow +0 -1280
- package/esm/models/form/FormModel.js.map +0 -1
- package/esm/models/form/FormObjectModel.js +0 -469
- package/esm/models/form/FormObjectModel.js.flow +0 -590
- package/esm/models/form/FormObjectModel.js.map +0 -1
- package/esm/models/form/__mock__/form.js.flow +0 -17
- package/esm/models/form/__tests__/FormModel.getters.spec.js.flow +0 -149
- package/esm/models/form/__tests__/FormModel.instrument.spec.js.flow +0 -202
- package/esm/models/form/__tests__/FormModel.repeating.spec.js.flow +0 -65
- package/esm/models/form/__tests__/FormModel.selfhref.spec.js.flow +0 -84
- package/esm/models/form/__tests__/FormModel.spec.js.flow +0 -752
- package/esm/models/form/__tests__/FormModel.unknown-repeat.spec.js.flow +0 -52
- package/esm/models/form/__tests__/FormObjectModel.spec.js.flow +0 -180
- package/esm/models/form/__tests__/FormResultData.spec.js.flow +0 -86
- package/esm/models/form/__tests__/FormValidation.spec.js.flow +0 -79
- package/esm/models/form/__tests__/FormWithContent.spec.js.flow +0 -71
- package/esm/models/grouping/GroupingModel.js +0 -182
- package/esm/models/grouping/GroupingModel.js.flow +0 -232
- package/esm/models/grouping/GroupingModel.js.map +0 -1
- package/esm/models/grouping/__tests__/GroupingModel.spec.js.flow +0 -80
- package/esm/models/href/Href.js +0 -490
- package/esm/models/href/Href.js.flow +0 -564
- package/esm/models/href/Href.js.map +0 -1
- package/esm/models/href/ListHref.js +0 -127
- package/esm/models/href/ListHref.js.flow +0 -146
- package/esm/models/href/ListHref.js.map +0 -1
- package/esm/models/href/__tests__/Href.spec.js.flow +0 -184
- package/esm/models/href/__tests__/ListHref.spec.js.flow +0 -61
- package/esm/models/index.js +0 -96
- package/esm/models/index.js.flow +0 -177
- package/esm/models/index.js.map +0 -1
- package/esm/models/layouthint/LayoutHintCollection.js +0 -111
- package/esm/models/layouthint/LayoutHintCollection.js.flow +0 -116
- package/esm/models/layouthint/LayoutHintCollection.js.map +0 -1
- package/esm/models/layouthint/__tests__/LayoutHintCollection.spec.js.flow +0 -89
- package/esm/models/links/LinkCollection.js +0 -163
- package/esm/models/links/LinkCollection.js.flow +0 -169
- package/esm/models/links/LinkCollection.js.map +0 -1
- package/esm/models/links/LinkModel.js +0 -210
- package/esm/models/links/LinkModel.js.flow +0 -229
- package/esm/models/links/LinkModel.js.map +0 -1
- package/esm/models/links/__tests__/LinkCollection.spec.js.flow +0 -426
- package/esm/models/links/__tests__/LinkModel.spec.js.flow +0 -103
- package/esm/models/links/__tests__/normalizeLinkJSON.spec.js.flow +0 -212
- package/esm/models/links/normalizeLinkJSON.js +0 -101
- package/esm/models/links/normalizeLinkJSON.js.flow +0 -121
- package/esm/models/links/normalizeLinkJSON.js.map +0 -1
- package/esm/models/list/ListDetailModel.js +0 -259
- package/esm/models/list/ListDetailModel.js.flow +0 -330
- package/esm/models/list/ListDetailModel.js.map +0 -1
- package/esm/models/list/ListHeaderModel.js +0 -87
- package/esm/models/list/ListHeaderModel.js.flow +0 -96
- package/esm/models/list/ListHeaderModel.js.map +0 -1
- package/esm/models/list/ListItemCollection.js +0 -60
- package/esm/models/list/ListItemCollection.js.flow +0 -80
- package/esm/models/list/ListItemCollection.js.map +0 -1
- package/esm/models/list/ListItemModel.js +0 -87
- package/esm/models/list/ListItemModel.js.flow +0 -111
- package/esm/models/list/ListItemModel.js.map +0 -1
- package/esm/models/list/ListModel.js +0 -378
- package/esm/models/list/ListModel.js.flow +0 -438
- package/esm/models/list/ListModel.js.map +0 -1
- package/esm/models/list/__mock__/caselist.js.flow +0 -14
- package/esm/models/list/__tests__/ListDetailModel.hierarchy.spec.js.flow +0 -88
- package/esm/models/list/__tests__/ListDetailModel.spec.js.flow +0 -96
- package/esm/models/list/__tests__/ListItemCollection.spec.js.flow +0 -22
- package/esm/models/list/__tests__/ListModel.spec.js.flow +0 -152
- package/esm/models/list/__tests__/ListResultDetail.spec.js.flow +0 -37
- package/esm/models/lookup/LookupOptionCollection.js +0 -38
- package/esm/models/lookup/LookupOptionCollection.js.flow +0 -54
- package/esm/models/lookup/LookupOptionCollection.js.map +0 -1
- package/esm/models/lookup/LookupOptionsModel.js +0 -63
- package/esm/models/lookup/LookupOptionsModel.js.flow +0 -81
- package/esm/models/lookup/LookupOptionsModel.js.map +0 -1
- package/esm/models/lookup/__tests__/LookupOptionCollection.spec.js.flow +0 -80
- package/esm/models/lookup/__tests__/LookupOptionsModel.spec.js.flow +0 -82
- package/esm/models/modelcatalog/ModelCatalogModel.js +0 -61
- package/esm/models/modelcatalog/ModelCatalogModel.js.flow +0 -73
- package/esm/models/modelcatalog/ModelCatalogModel.js.map +0 -1
- package/esm/models/modelcatalog/ModelCategoryCollection.js +0 -16
- package/esm/models/modelcatalog/ModelCategoryCollection.js.flow +0 -22
- package/esm/models/modelcatalog/ModelCategoryCollection.js.map +0 -1
- package/esm/models/modelcatalog/ModelCategoryModel.js +0 -53
- package/esm/models/modelcatalog/ModelCategoryModel.js.flow +0 -63
- package/esm/models/modelcatalog/ModelCategoryModel.js.map +0 -1
- package/esm/models/modelcatalog/__mock__/modelcatalog.js.flow +0 -14
- package/esm/models/modelcatalog/__tests__/ModelCatalogModel.spec.js.flow +0 -49
- package/esm/models/paging/PagesizeModel.js +0 -42
- package/esm/models/paging/PagesizeModel.js.flow +0 -44
- package/esm/models/paging/PagesizeModel.js.map +0 -1
- package/esm/models/paging/PagingModel.js +0 -88
- package/esm/models/paging/PagingModel.js.flow +0 -94
- package/esm/models/paging/PagingModel.js.map +0 -1
- package/esm/models/paging/__tests__/PageSizeModel.spec.js.flow +0 -31
- package/esm/models/paging/__tests__/PagingModel.spec.js.flow +0 -40
- package/esm/models/panels/GroupingPanelModel.js +0 -135
- package/esm/models/panels/GroupingPanelModel.js.flow +0 -164
- package/esm/models/panels/GroupingPanelModel.js.map +0 -1
- package/esm/models/panels/__tests__/GroupingPanelModel.spec.js.flow +0 -142
- package/esm/models/parameter/Parameter.js +0 -102
- package/esm/models/parameter/Parameter.js.flow +0 -117
- package/esm/models/parameter/Parameter.js.map +0 -1
- package/esm/models/parameter/__tests__/Parameter.spec.js.flow +0 -125
- package/esm/models/process/ProcessStatusSettingsModel.js +0 -77
- package/esm/models/process/ProcessStatusSettingsModel.js.flow +0 -88
- package/esm/models/process/ProcessStatusSettingsModel.js.map +0 -1
- package/esm/models/process/__tests__/ProcessStatusSettingsModel.spec.js.flow +0 -52
- package/esm/models/resolveModel.js +0 -50
- package/esm/models/resolveModel.js.flow +0 -92
- package/esm/models/resolveModel.js.map +0 -1
- package/esm/models/search/CaseSearchModel.js +0 -39
- package/esm/models/search/CaseSearchModel.js.flow +0 -46
- package/esm/models/search/CaseSearchModel.js.map +0 -1
- package/esm/models/search/__tests__/CaseSearchModel.spec.js.flow +0 -10
- package/esm/models/sorting/SortOptionModel.js +0 -100
- package/esm/models/sorting/SortOptionModel.js.flow +0 -107
- package/esm/models/sorting/SortOptionModel.js.map +0 -1
- package/esm/models/sorting/SortingModel.js +0 -106
- package/esm/models/sorting/SortingModel.js.flow +0 -128
- package/esm/models/sorting/SortingModel.js.map +0 -1
- package/esm/models/sorting/__tests__/SortingModel.spec.js.flow +0 -96
- package/esm/models/tab/TabModel.js +0 -135
- package/esm/models/tab/TabModel.js.flow +0 -160
- package/esm/models/tab/TabModel.js.map +0 -1
- package/esm/models/tab/__mock__/tab.js.flow +0 -14
- package/esm/models/tab/__mock__/tabPerson.js.flow +0 -14
- package/esm/models/tab/__tests__/TabModel.spec.js.flow +0 -72
- package/esm/models/taskgroup/TaskGroupCollection.js +0 -13
- package/esm/models/taskgroup/TaskGroupCollection.js.flow +0 -16
- package/esm/models/taskgroup/TaskGroupCollection.js.map +0 -1
- package/esm/models/taskgroup/TaskGroupModel.js +0 -79
- package/esm/models/taskgroup/TaskGroupModel.js.flow +0 -102
- package/esm/models/taskgroup/TaskGroupModel.js.map +0 -1
- package/esm/models/taskgroup/__mock__/taskgroup.js.flow +0 -14
- package/esm/models/taskgroup/__tests__/TaskGroupModel.spec.js.flow +0 -26
- package/esm/models/types.js +0 -2
- package/esm/models/types.js.flow +0 -275
- package/esm/models/types.js.map +0 -1
- package/esm/models/user/UserModel.js +0 -51
- package/esm/models/user/UserModel.js.flow +0 -57
- package/esm/models/user/UserModel.js.map +0 -1
- package/esm/models/user/UserProfileModel.js +0 -47
- package/esm/models/user/UserProfileModel.js.flow +0 -54
- package/esm/models/user/UserProfileModel.js.map +0 -1
- package/esm/models/user/UserServicesModel.js +0 -119
- package/esm/models/user/UserServicesModel.js.flow +0 -136
- package/esm/models/user/UserServicesModel.js.map +0 -1
- package/esm/models/user/__tests__/UserModel.spec.js.flow +0 -43
- package/esm/models/user/__tests__/UserProfileModel.spec.js.flow +0 -45
- package/esm/models/user/__tests__/UserServicesModel.spec.js.flow +0 -55
- package/esm/modularui/Authenticate.js +0 -177
- package/esm/modularui/Authenticate.js.flow +0 -195
- package/esm/modularui/Authenticate.js.map +0 -1
- package/esm/modularui/CaptchaRequest.js +0 -64
- package/esm/modularui/CaptchaRequest.js.flow +0 -104
- package/esm/modularui/CaptchaRequest.js.map +0 -1
- package/esm/modularui/ModularUIError.js +0 -23
- package/esm/modularui/ModularUIError.js.flow +0 -25
- package/esm/modularui/ModularUIError.js.map +0 -1
- package/esm/modularui/ModularUIRequest.js +0 -712
- package/esm/modularui/ModularUIRequest.js.flow +0 -872
- package/esm/modularui/ModularUIRequest.js.map +0 -1
- package/esm/modularui/ModularUIResponse.js +0 -140
- package/esm/modularui/ModularUIResponse.js.flow +0 -160
- package/esm/modularui/ModularUIResponse.js.map +0 -1
- package/esm/modularui/UploadRequest.js +0 -97
- package/esm/modularui/UploadRequest.js.flow +0 -151
- package/esm/modularui/UploadRequest.js.map +0 -1
- package/esm/modularui/__tests__/CustomContextPath.spec.js.flow +0 -61
- package/esm/modularui/__tests__/ModularUIError.spec.js.flow +0 -22
- package/esm/modularui/__tests__/ModularUIRequest.spec.js.flow +0 -495
- package/esm/modularui/index.js +0 -6
- package/esm/modularui/index.js.flow +0 -6
- package/esm/modularui/index.js.map +0 -1
- package/esm/modularui/types.js +0 -2
- package/esm/modularui/types.js.flow +0 -4
- package/esm/modularui/types.js.map +0 -1
- package/esm/react/ErrorBoundary.js +0 -49
- package/esm/react/ErrorBoundary.js.flow +0 -61
- package/esm/react/ErrorBoundary.js.map +0 -1
- package/esm/react/ErrorBoundaryFallback.js +0 -34
- package/esm/react/ErrorBoundaryFallback.js.flow +0 -46
- package/esm/react/ErrorBoundaryFallback.js.map +0 -1
- package/esm/react/index.js +0 -3
- package/esm/react/index.js.flow +0 -3
- package/esm/react/index.js.map +0 -1
- package/esm/react/utils.js +0 -24
- package/esm/react/utils.js.flow +0 -33
- package/esm/react/utils.js.map +0 -1
- package/esm/react-client/Init.js +0 -36
- package/esm/react-client/Init.js.flow +0 -46
- package/esm/react-client/Init.js.map +0 -1
- package/esm/react-client/client.js +0 -224
- package/esm/react-client/client.js.flow +0 -309
- package/esm/react-client/client.js.map +0 -1
- package/esm/react-client/contextPath.js +0 -22
- package/esm/react-client/contextPath.js.flow +0 -30
- package/esm/react-client/contextPath.js.map +0 -1
- package/esm/react-client/index.js +0 -4
- package/esm/react-client/index.js.flow +0 -4
- package/esm/react-client/index.js.map +0 -1
- package/esm/react-client/rehydrate.js +0 -67
- package/esm/react-client/rehydrate.js.flow +0 -94
- package/esm/react-client/rehydrate.js.map +0 -1
- package/esm/react-server/__tests__/htmlpage.spec.js.flow +0 -75
- package/esm/react-server/__tests__/requestInformation.spec.js.flow +0 -266
- package/esm/react-server/__tests__/serverUtil.spec.js.flow +0 -183
- package/esm/react-server/contextPath.js +0 -6
- package/esm/react-server/contextPath.js.flow +0 -8
- package/esm/react-server/contextPath.js.map +0 -1
- package/esm/react-server/createSSRComplete.js +0 -54
- package/esm/react-server/createSSRComplete.js.flow +0 -63
- package/esm/react-server/createSSRComplete.js.map +0 -1
- package/esm/react-server/htmlpage.js +0 -47
- package/esm/react-server/htmlpage.js.flow +0 -55
- package/esm/react-server/htmlpage.js.map +0 -1
- package/esm/react-server/index.js +0 -9
- package/esm/react-server/index.js.flow +0 -13
- package/esm/react-server/index.js.map +0 -1
- package/esm/react-server/renderSSRComplete.js +0 -84
- package/esm/react-server/renderSSRComplete.js.flow +0 -111
- package/esm/react-server/renderSSRComplete.js.map +0 -1
- package/esm/react-server/renderSSRMinimal.js +0 -40
- package/esm/react-server/renderSSRMinimal.js.flow +0 -54
- package/esm/react-server/renderSSRMinimal.js.map +0 -1
- package/esm/react-server/requestInformation.js +0 -53
- package/esm/react-server/requestInformation.js.flow +0 -68
- package/esm/react-server/requestInformation.js.map +0 -1
- package/esm/react-server/serverNoSSR.js +0 -56
- package/esm/react-server/serverNoSSR.js.flow +0 -87
- package/esm/react-server/serverNoSSR.js.map +0 -1
- package/esm/react-server/serverSSR.js +0 -44
- package/esm/react-server/serverSSR.js.flow +0 -70
- package/esm/react-server/serverSSR.js.map +0 -1
- package/esm/react-server/serverUtil.js +0 -201
- package/esm/react-server/serverUtil.js.flow +0 -279
- package/esm/react-server/serverUtil.js.map +0 -1
- package/esm/react-theme/ThemeProvider.js +0 -26
- package/esm/react-theme/ThemeProvider.js.flow +0 -25
- package/esm/react-theme/ThemeProvider.js.map +0 -1
- package/esm/react-theme/__tests__/ThemeProvider.spec.js.flow +0 -84
- package/esm/react-theme/__tests__/createTheme.spec.js.flow +0 -172
- package/esm/react-theme/createTheme.js +0 -108
- package/esm/react-theme/createTheme.js.flow +0 -118
- package/esm/react-theme/createTheme.js.map +0 -1
- package/esm/react-theme/index.js +0 -10
- package/esm/react-theme/index.js.flow +0 -15
- package/esm/react-theme/index.js.map +0 -1
- package/esm/react-theme/types.js +0 -2
- package/esm/react-theme/types.js.flow +0 -16
- package/esm/react-theme/types.js.map +0 -1
- package/esm/react-theme/useTheme.js +0 -9
- package/esm/react-theme/useTheme.js.flow +0 -13
- package/esm/react-theme/useTheme.js.map +0 -1
- package/esm/react-theme/utils/__tests__/background.spec.js.flow +0 -30
- package/esm/react-theme/utils/__tests__/colors.spec.js.flow +0 -30
- package/esm/react-theme/utils/__tests__/contrast.spec.js.flow +0 -44
- package/esm/react-theme/utils/__tests__/corners.spec.js.flow +0 -27
- package/esm/react-theme/utils/__tests__/spacers.spec.js.flow +0 -44
- package/esm/react-theme/utils/__tests__/themeProps.spec.js.flow +0 -72
- package/esm/react-theme/utils/background.js +0 -15
- package/esm/react-theme/utils/background.js.flow +0 -20
- package/esm/react-theme/utils/background.js.map +0 -1
- package/esm/react-theme/utils/colors.js +0 -37
- package/esm/react-theme/utils/colors.js.flow +0 -47
- package/esm/react-theme/utils/colors.js.map +0 -1
- package/esm/react-theme/utils/contrast.js +0 -86
- package/esm/react-theme/utils/contrast.js.flow +0 -117
- package/esm/react-theme/utils/contrast.js.map +0 -1
- package/esm/react-theme/utils/corners.js +0 -28
- package/esm/react-theme/utils/corners.js.flow +0 -37
- package/esm/react-theme/utils/corners.js.map +0 -1
- package/esm/react-theme/utils/spacers.js +0 -81
- package/esm/react-theme/utils/spacers.js.flow +0 -65
- package/esm/react-theme/utils/spacers.js.map +0 -1
- package/esm/react-theme/utils/themeProps.js +0 -64
- package/esm/react-theme/utils/themeProps.js.flow +0 -90
- package/esm/react-theme/utils/themeProps.js.map +0 -1
- package/esm/redux/_i18n/I18nActions.js +0 -28
- package/esm/redux/_i18n/I18nActions.js.flow +0 -38
- package/esm/redux/_i18n/I18nActions.js.map +0 -1
- package/esm/redux/_i18n/I18nReducer.js +0 -78
- package/esm/redux/_i18n/I18nReducer.js.flow +0 -91
- package/esm/redux/_i18n/I18nReducer.js.map +0 -1
- package/esm/redux/_i18n/__tests__/actions.spec.js.flow +0 -37
- package/esm/redux/_i18n/__tests__/reducer.spec.js.flow +0 -29
- package/esm/redux/_i18n/index.js +0 -3
- package/esm/redux/_i18n/index.js.flow +0 -6
- package/esm/redux/_i18n/index.js.map +0 -1
- package/esm/redux/_i18n/types.js +0 -2
- package/esm/redux/_i18n/types.js.flow +0 -20
- package/esm/redux/_i18n/types.js.map +0 -1
- package/esm/redux/_modularui/ModularUIActions.js +0 -168
- package/esm/redux/_modularui/ModularUIActions.js.flow +0 -227
- package/esm/redux/_modularui/ModularUIActions.js.map +0 -1
- package/esm/redux/_modularui/ModularUIConnector.js +0 -116
- package/esm/redux/_modularui/ModularUIConnector.js.flow +0 -155
- package/esm/redux/_modularui/ModularUIConnector.js.map +0 -1
- package/esm/redux/_modularui/ModularUIMiddleware.js +0 -99
- package/esm/redux/_modularui/ModularUIMiddleware.js.flow +0 -182
- package/esm/redux/_modularui/ModularUIMiddleware.js.map +0 -1
- package/esm/redux/_modularui/ModularUIReducer.js +0 -151
- package/esm/redux/_modularui/ModularUIReducer.js.flow +0 -169
- package/esm/redux/_modularui/ModularUIReducer.js.map +0 -1
- package/esm/redux/_modularui/ModularUISelectors.js +0 -252
- package/esm/redux/_modularui/ModularUISelectors.js.flow +0 -322
- package/esm/redux/_modularui/ModularUISelectors.js.map +0 -1
- package/esm/redux/_modularui/ModularUIUtils.js +0 -75
- package/esm/redux/_modularui/ModularUIUtils.js.flow +0 -96
- package/esm/redux/_modularui/ModularUIUtils.js.map +0 -1
- package/esm/redux/_modularui/__tests__/actions.spec.js.flow +0 -159
- package/esm/redux/_modularui/__tests__/reducer.spec.js.flow +0 -134
- package/esm/redux/_modularui/__tests__/selectors.spec.js.flow +0 -153
- package/esm/redux/_modularui/index.js +0 -8
- package/esm/redux/_modularui/index.js.flow +0 -11
- package/esm/redux/_modularui/index.js.map +0 -1
- package/esm/redux/_modularui/types.js +0 -2
- package/esm/redux/_modularui/types.js.flow +0 -121
- package/esm/redux/_modularui/types.js.map +0 -1
- package/esm/redux/_modularui/withModularUI.js +0 -34
- package/esm/redux/_modularui/withModularUI.js.flow +0 -85
- package/esm/redux/_modularui/withModularUI.js.map +0 -1
- package/esm/redux/_router/RouterActions.js +0 -55
- package/esm/redux/_router/RouterActions.js.flow +0 -75
- package/esm/redux/_router/RouterActions.js.map +0 -1
- package/esm/redux/_router/RouterConnectors.js +0 -37
- package/esm/redux/_router/RouterConnectors.js.flow +0 -97
- package/esm/redux/_router/RouterConnectors.js.map +0 -1
- package/esm/redux/_router/RouterMiddleware.js +0 -31
- package/esm/redux/_router/RouterMiddleware.js.flow +0 -37
- package/esm/redux/_router/RouterMiddleware.js.map +0 -1
- package/esm/redux/_router/RouterReducer.js +0 -15
- package/esm/redux/_router/RouterReducer.js.flow +0 -21
- package/esm/redux/_router/RouterReducer.js.map +0 -1
- package/esm/redux/_router/__tests__/actions.spec.js.flow +0 -109
- package/esm/redux/_router/__tests__/hooks.spec.js.flow +0 -98
- package/esm/redux/_router/__tests__/middleware.spec.js.flow +0 -62
- package/esm/redux/_router/__tests__/reducer.spec.js.flow +0 -26
- package/esm/redux/_router/index.js +0 -5
- package/esm/redux/_router/index.js.flow +0 -8
- package/esm/redux/_router/index.js.map +0 -1
- package/esm/redux/_router/types.js +0 -2
- package/esm/redux/_router/types.js.flow +0 -43
- package/esm/redux/_router/types.js.map +0 -1
- package/esm/redux/actions/Application.js +0 -30
- package/esm/redux/actions/Application.js.flow +0 -45
- package/esm/redux/actions/Application.js.map +0 -1
- package/esm/redux/actions/Authorization.js +0 -47
- package/esm/redux/actions/Authorization.js.flow +0 -65
- package/esm/redux/actions/Authorization.js.map +0 -1
- package/esm/redux/actions/Error.js +0 -65
- package/esm/redux/actions/Error.js.flow +0 -95
- package/esm/redux/actions/Error.js.map +0 -1
- package/esm/redux/actions/Form.js +0 -30
- package/esm/redux/actions/Form.js.flow +0 -42
- package/esm/redux/actions/Form.js.map +0 -1
- package/esm/redux/actions/FormAttributeSet.js +0 -62
- package/esm/redux/actions/FormAttributeSet.js.flow +0 -98
- package/esm/redux/actions/FormAttributeSet.js.map +0 -1
- package/esm/redux/actions/FormAttributeSetRepeatable.js +0 -26
- package/esm/redux/actions/FormAttributeSetRepeatable.js.flow +0 -45
- package/esm/redux/actions/FormAttributeSetRepeatable.js.map +0 -1
- package/esm/redux/actions/FormAutosave.js +0 -52
- package/esm/redux/actions/FormAutosave.js.flow +0 -73
- package/esm/redux/actions/FormAutosave.js.map +0 -1
- package/esm/redux/actions/FormAutosubmit.js +0 -30
- package/esm/redux/actions/FormAutosubmit.js.flow +0 -43
- package/esm/redux/actions/FormAutosubmit.js.map +0 -1
- package/esm/redux/actions/FormAutoupdate.js +0 -29
- package/esm/redux/actions/FormAutoupdate.js.flow +0 -47
- package/esm/redux/actions/FormAutoupdate.js.map +0 -1
- package/esm/redux/actions/FormValidations.js +0 -43
- package/esm/redux/actions/FormValidations.js.flow +0 -71
- package/esm/redux/actions/FormValidations.js.map +0 -1
- package/esm/redux/actions/Modals.js +0 -14
- package/esm/redux/actions/Modals.js.flow +0 -16
- package/esm/redux/actions/Modals.js.map +0 -1
- package/esm/redux/actions/ModelCatalog.js +0 -8
- package/esm/redux/actions/ModelCatalog.js.flow +0 -12
- package/esm/redux/actions/ModelCatalog.js.map +0 -1
- package/esm/redux/actions/Notification.js +0 -66
- package/esm/redux/actions/Notification.js.flow +0 -101
- package/esm/redux/actions/Notification.js.map +0 -1
- package/esm/redux/actions/Preferences.js +0 -115
- package/esm/redux/actions/Preferences.js.flow +0 -173
- package/esm/redux/actions/Preferences.js.map +0 -1
- package/esm/redux/actions/ProgressIndicator.js +0 -32
- package/esm/redux/actions/ProgressIndicator.js.flow +0 -39
- package/esm/redux/actions/ProgressIndicator.js.map +0 -1
- package/esm/redux/actions/SignIn.js +0 -77
- package/esm/redux/actions/SignIn.js.flow +0 -102
- package/esm/redux/actions/SignIn.js.map +0 -1
- package/esm/redux/actions/SignOut.js +0 -21
- package/esm/redux/actions/SignOut.js.flow +0 -29
- package/esm/redux/actions/SignOut.js.map +0 -1
- package/esm/redux/actions/__tests__/Application.spec.js.flow +0 -52
- package/esm/redux/actions/__tests__/Authorization.spec.js.flow +0 -121
- package/esm/redux/actions/__tests__/CustomErrorResponseHandler.spec.js.flow +0 -72
- package/esm/redux/actions/__tests__/Error-server.spec.js.flow +0 -134
- package/esm/redux/actions/__tests__/Error.spec.js.flow +0 -116
- package/esm/redux/actions/__tests__/Form.spec.js.flow +0 -39
- package/esm/redux/actions/__tests__/Modals.spec.js.flow +0 -34
- package/esm/redux/actions/__tests__/Notification.spec.js.flow +0 -94
- package/esm/redux/actions/__tests__/Preferences.spec.js.flow +0 -71
- package/esm/redux/actions/__tests__/ProgressIndicator.spec.js.flow +0 -53
- package/esm/redux/actions/index.js +0 -17
- package/esm/redux/actions/index.js.flow +0 -17
- package/esm/redux/actions/index.js.map +0 -1
- package/esm/redux/connectors/Application.js +0 -7
- package/esm/redux/connectors/Application.js.flow +0 -14
- package/esm/redux/connectors/Application.js.map +0 -1
- package/esm/redux/connectors/Breadcrumb.js +0 -10
- package/esm/redux/connectors/Breadcrumb.js.flow +0 -28
- package/esm/redux/connectors/Breadcrumb.js.map +0 -1
- package/esm/redux/connectors/CaseView.js +0 -12
- package/esm/redux/connectors/CaseView.js.flow +0 -14
- package/esm/redux/connectors/CaseView.js.map +0 -1
- package/esm/redux/connectors/ConceptDetail.js +0 -13
- package/esm/redux/connectors/ConceptDetail.js.flow +0 -12
- package/esm/redux/connectors/ConceptDetail.js.map +0 -1
- package/esm/redux/connectors/ContentBrowser.js +0 -12
- package/esm/redux/connectors/ContentBrowser.js.flow +0 -14
- package/esm/redux/connectors/ContentBrowser.js.map +0 -1
- package/esm/redux/connectors/ContentDetail.js +0 -13
- package/esm/redux/connectors/ContentDetail.js.flow +0 -13
- package/esm/redux/connectors/ContentDetail.js.map +0 -1
- package/esm/redux/connectors/ContentDetailSection.js +0 -15
- package/esm/redux/connectors/ContentDetailSection.js.flow +0 -17
- package/esm/redux/connectors/ContentDetailSection.js.map +0 -1
- package/esm/redux/connectors/Form.js +0 -36
- package/esm/redux/connectors/Form.js.flow +0 -83
- package/esm/redux/connectors/Form.js.map +0 -1
- package/esm/redux/connectors/FormAttributeSet.js +0 -21
- package/esm/redux/connectors/FormAttributeSet.js.flow +0 -85
- package/esm/redux/connectors/FormAttributeSet.js.map +0 -1
- package/esm/redux/connectors/ListDetail.js +0 -14
- package/esm/redux/connectors/ListDetail.js.flow +0 -16
- package/esm/redux/connectors/ListDetail.js.map +0 -1
- package/esm/redux/connectors/Modal.js +0 -20
- package/esm/redux/connectors/Modal.js.flow +0 -47
- package/esm/redux/connectors/Modal.js.map +0 -1
- package/esm/redux/connectors/ModelCatalog.js +0 -12
- package/esm/redux/connectors/ModelCatalog.js.flow +0 -14
- package/esm/redux/connectors/ModelCatalog.js.map +0 -1
- package/esm/redux/connectors/Notification.js +0 -16
- package/esm/redux/connectors/Notification.js.flow +0 -47
- package/esm/redux/connectors/Notification.js.map +0 -1
- package/esm/redux/connectors/PanelRenderer.js +0 -22
- package/esm/redux/connectors/PanelRenderer.js.flow +0 -29
- package/esm/redux/connectors/PanelRenderer.js.map +0 -1
- package/esm/redux/connectors/Preferences.js +0 -22
- package/esm/redux/connectors/Preferences.js.flow +0 -53
- package/esm/redux/connectors/Preferences.js.map +0 -1
- package/esm/redux/connectors/Progress.js +0 -13
- package/esm/redux/connectors/Progress.js.flow +0 -35
- package/esm/redux/connectors/Progress.js.map +0 -1
- package/esm/redux/connectors/ProgressIndicator.js +0 -13
- package/esm/redux/connectors/ProgressIndicator.js.flow +0 -35
- package/esm/redux/connectors/ProgressIndicator.js.map +0 -1
- package/esm/redux/connectors/QuickSearch.js +0 -20
- package/esm/redux/connectors/QuickSearch.js.flow +0 -36
- package/esm/redux/connectors/QuickSearch.js.map +0 -1
- package/esm/redux/connectors/SignIn.js +0 -18
- package/esm/redux/connectors/SignIn.js.flow +0 -47
- package/esm/redux/connectors/SignIn.js.map +0 -1
- package/esm/redux/connectors/SignOut.js +0 -14
- package/esm/redux/connectors/SignOut.js.flow +0 -38
- package/esm/redux/connectors/SignOut.js.map +0 -1
- package/esm/redux/connectors/Tab.js +0 -12
- package/esm/redux/connectors/Tab.js.flow +0 -14
- package/esm/redux/connectors/Tab.js.map +0 -1
- package/esm/redux/connectors/index.js +0 -22
- package/esm/redux/connectors/index.js.flow +0 -22
- package/esm/redux/connectors/index.js.map +0 -1
- package/esm/redux/index.js +0 -24
- package/esm/redux/index.js.flow +0 -27
- package/esm/redux/index.js.map +0 -1
- package/esm/redux/reducers/AuthReducer.js +0 -53
- package/esm/redux/reducers/AuthReducer.js.flow +0 -56
- package/esm/redux/reducers/AuthReducer.js.map +0 -1
- package/esm/redux/reducers/ErrorReducer.js +0 -16
- package/esm/redux/reducers/ErrorReducer.js.flow +0 -22
- package/esm/redux/reducers/ErrorReducer.js.map +0 -1
- package/esm/redux/reducers/ModalsReducer.js +0 -51
- package/esm/redux/reducers/ModalsReducer.js.flow +0 -58
- package/esm/redux/reducers/ModalsReducer.js.map +0 -1
- package/esm/redux/reducers/ModelCatalogReducer.js +0 -27
- package/esm/redux/reducers/ModelCatalogReducer.js.flow +0 -34
- package/esm/redux/reducers/ModelCatalogReducer.js.map +0 -1
- package/esm/redux/reducers/NotificationReducer.js +0 -37
- package/esm/redux/reducers/NotificationReducer.js.flow +0 -45
- package/esm/redux/reducers/NotificationReducer.js.map +0 -1
- package/esm/redux/reducers/PreferencesReducer.js +0 -24
- package/esm/redux/reducers/PreferencesReducer.js.flow +0 -31
- package/esm/redux/reducers/PreferencesReducer.js.map +0 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js +0 -49
- package/esm/redux/reducers/ProgressIndicatorReducer.js.flow +0 -60
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +0 -1
- package/esm/redux/reducers/__tests__/AuthReducer.spec.js.flow +0 -95
- package/esm/redux/reducers/__tests__/ErrorReducer.spec.js.flow +0 -17
- package/esm/redux/reducers/__tests__/ModalsReducer.spec.js.flow +0 -34
- package/esm/redux/reducers/__tests__/ModelCatalogReducer.spec.js.flow +0 -23
- package/esm/redux/reducers/__tests__/NotificationReducer.spec.js.flow +0 -53
- package/esm/redux/reducers/__tests__/PreferencesReducer.spec.js.flow +0 -31
- package/esm/redux/reducers/__tests__/ProgressIndicatorReducer.spec.js.flow +0 -82
- package/esm/redux/reducers/createReducer.js +0 -25
- package/esm/redux/reducers/createReducer.js.flow +0 -55
- package/esm/redux/reducers/createReducer.js.map +0 -1
- package/esm/redux/reducers/index.js +0 -9
- package/esm/redux/reducers/index.js.flow +0 -10
- package/esm/redux/reducers/index.js.map +0 -1
- package/esm/redux/selectors/i18n.js +0 -12
- package/esm/redux/selectors/i18n.js.flow +0 -15
- package/esm/redux/selectors/i18n.js.map +0 -1
- package/esm/redux/selectors/index.js +0 -3
- package/esm/redux/selectors/index.js.flow +0 -3
- package/esm/redux/selectors/index.js.map +0 -1
- package/esm/redux/selectors/modelcatalog.js +0 -7
- package/esm/redux/selectors/modelcatalog.js.flow +0 -11
- package/esm/redux/selectors/modelcatalog.js.map +0 -1
- package/esm/redux/store/__tests__/beforeRenderHooks.spec.js.flow +0 -13
- package/esm/redux/store/beforeRenderHooks.js +0 -17
- package/esm/redux/store/beforeRenderHooks.js.flow +0 -26
- package/esm/redux/store/beforeRenderHooks.js.map +0 -1
- package/esm/redux/store/configureStore.js +0 -30
- package/esm/redux/store/configureStore.js.flow +0 -59
- package/esm/redux/store/configureStore.js.map +0 -1
- package/esm/redux/types.js +0 -2
- package/esm/redux/types.js.flow +0 -241
- package/esm/redux/types.js.map +0 -1
- package/esm/utils/browser/Cache.js +0 -144
- package/esm/utils/browser/Cache.js.flow +0 -157
- package/esm/utils/browser/Cache.js.map +0 -1
- package/esm/utils/browser/Cookies.js +0 -28
- package/esm/utils/browser/Cookies.js.flow +0 -44
- package/esm/utils/browser/Cookies.js.map +0 -1
- package/esm/utils/browser/__tests__/Cookies.spec.js.flow +0 -51
- package/esm/utils/datetime/DateTimeUtil.js +0 -643
- package/esm/utils/datetime/DateTimeUtil.js.flow +0 -858
- package/esm/utils/datetime/DateTimeUtil.js.map +0 -1
- package/esm/utils/datetime/__tests__/DateTime.spec.js.flow +0 -873
- package/esm/utils/datetime/__tests__/DateTimeFormat.spec.js.flow +0 -146
- package/esm/utils/fetch/__mocks__/universalFetch.js.flow +0 -38
- package/esm/utils/fetch/__tests__/xhr.spec.js.flow +0 -281
- package/esm/utils/fetch/serverFetch.js +0 -25
- package/esm/utils/fetch/serverFetch.js.flow +0 -33
- package/esm/utils/fetch/serverFetch.js.map +0 -1
- package/esm/utils/fetch/types.js +0 -2
- package/esm/utils/fetch/types.js.flow +0 -46
- package/esm/utils/fetch/types.js.map +0 -1
- package/esm/utils/fetch/universalFetch.js +0 -87
- package/esm/utils/fetch/universalFetch.js.flow +0 -106
- package/esm/utils/fetch/universalFetch.js.map +0 -1
- package/esm/utils/fetch/xhr.js +0 -351
- package/esm/utils/fetch/xhr.js.flow +0 -409
- package/esm/utils/fetch/xhr.js.map +0 -1
- package/esm/utils/helpers/__tests__/checkResource.spec.js.flow +0 -60
- package/esm/utils/helpers/__tests__/createHash.spec.js.flow +0 -11
- package/esm/utils/helpers/__tests__/createHref.spec.js.flow +0 -39
- package/esm/utils/helpers/__tests__/objects.spec.js.flow +0 -50
- package/esm/utils/helpers/__tests__/sanitizeHTML.spec.js.flow +0 -69
- package/esm/utils/helpers/checkResource.js +0 -38
- package/esm/utils/helpers/checkResource.js.flow +0 -43
- package/esm/utils/helpers/checkResource.js.map +0 -1
- package/esm/utils/helpers/createHash.js +0 -22
- package/esm/utils/helpers/createHash.js.flow +0 -28
- package/esm/utils/helpers/createHash.js.map +0 -1
- package/esm/utils/helpers/createHref.js +0 -91
- package/esm/utils/helpers/createHref.js.flow +0 -117
- package/esm/utils/helpers/createHref.js.map +0 -1
- package/esm/utils/helpers/createUUID.js +0 -12
- package/esm/utils/helpers/createUUID.js.flow +0 -13
- package/esm/utils/helpers/createUUID.js.map +0 -1
- package/esm/utils/helpers/index.js +0 -9
- package/esm/utils/helpers/index.js.flow +0 -9
- package/esm/utils/helpers/index.js.map +0 -1
- package/esm/utils/helpers/objects.js +0 -28
- package/esm/utils/helpers/objects.js.flow +0 -33
- package/esm/utils/helpers/objects.js.map +0 -1
- package/esm/utils/helpers/repositoryResource.js +0 -19
- package/esm/utils/helpers/repositoryResource.js.flow +0 -22
- package/esm/utils/helpers/repositoryResource.js.map +0 -1
- package/esm/utils/helpers/sanitizeHtml.js +0 -38
- package/esm/utils/helpers/sanitizeHtml.js.flow +0 -55
- package/esm/utils/helpers/sanitizeHtml.js.map +0 -1
- package/esm/utils/helpers/text.js +0 -17
- package/esm/utils/helpers/text.js.flow +0 -23
- package/esm/utils/helpers/text.js.map +0 -1
- package/esm/utils/index.js +0 -19
- package/esm/utils/index.js.flow +0 -22
- package/esm/utils/index.js.map +0 -1
- package/esm/utils/number/DecimalFormat.js +0 -326
- package/esm/utils/number/DecimalFormat.js.flow +0 -410
- package/esm/utils/number/DecimalFormat.js.map +0 -1
- package/esm/utils/number/__tests__/formatValue.spec.js.flow +0 -36
- package/esm/utils/number/__tests__/parseNumbers.spec.js.flow +0 -50
- package/esm/utils/number/formatValue.js +0 -41
- package/esm/utils/number/formatValue.js.flow +0 -60
- package/esm/utils/number/formatValue.js.map +0 -1
- package/esm/utils/number/parseNumbers.js +0 -63
- package/esm/utils/number/parseNumbers.js.flow +0 -94
- package/esm/utils/number/parseNumbers.js.map +0 -1
- package/lib/builder/index.js +0 -18
- package/lib/builder/index.js.map +0 -1
- package/lib/builder/mergeLayoutHintConfigurations.js +0 -60
- package/lib/builder/mergeLayoutHintConfigurations.js.map +0 -1
- package/lib/constants/Constants.js +0 -189
- package/lib/constants/Constants.js.map +0 -1
- package/lib/constants/LayoutHintConfig.js +0 -173
- package/lib/constants/LayoutHintConfig.js.map +0 -1
- package/lib/constants/LayoutHints.js +0 -135
- package/lib/constants/LayoutHints.js.map +0 -1
- package/lib/constants/Settings.js +0 -225
- package/lib/constants/Settings.js.map +0 -1
- package/lib/constants/index.js +0 -40
- package/lib/constants/index.js.map +0 -1
- package/lib/exceptions/ConfigurationException.js +0 -17
- package/lib/exceptions/ConfigurationException.js.map +0 -1
- package/lib/exceptions/FetchException.js +0 -72
- package/lib/exceptions/FetchException.js.map +0 -1
- package/lib/exceptions/IllegalArgumentException.js +0 -17
- package/lib/exceptions/IllegalArgumentException.js.map +0 -1
- package/lib/exceptions/IllegalReturnException.js +0 -16
- package/lib/exceptions/IllegalReturnException.js.map +0 -1
- package/lib/exceptions/IllegalStateException.js +0 -17
- package/lib/exceptions/IllegalStateException.js.map +0 -1
- package/lib/exceptions/JsonParseException.js +0 -17
- package/lib/exceptions/JsonParseException.js.map +0 -1
- package/lib/exceptions/MissingPropertyException.js +0 -17
- package/lib/exceptions/MissingPropertyException.js.map +0 -1
- package/lib/exceptions/NetworkException.js +0 -23
- package/lib/exceptions/NetworkException.js.map +0 -1
- package/lib/exceptions/NotAllowedUriException.js +0 -17
- package/lib/exceptions/NotAllowedUriException.js.map +0 -1
- package/lib/exceptions/NotFoundException.js +0 -26
- package/lib/exceptions/NotFoundException.js.map +0 -1
- package/lib/exceptions/ServerRequestException.js +0 -17
- package/lib/exceptions/ServerRequestException.js.map +0 -1
- package/lib/exceptions/ThemePropertyException.js +0 -17
- package/lib/exceptions/ThemePropertyException.js.map +0 -1
- package/lib/exceptions/TimeoutException.js +0 -17
- package/lib/exceptions/TimeoutException.js.map +0 -1
- package/lib/exceptions/UnauthorizedException.js +0 -25
- package/lib/exceptions/UnauthorizedException.js.map +0 -1
- package/lib/exceptions/UnsupportedOperationException.js +0 -17
- package/lib/exceptions/UnsupportedOperationException.js.map +0 -1
- package/lib/exceptions/index.js +0 -112
- package/lib/exceptions/index.js.map +0 -1
- package/lib/hooks/index.js +0 -183
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useAllFormsOnModel.js +0 -81
- package/lib/hooks/useAllFormsOnModel.js.map +0 -1
- package/lib/hooks/useAuthentication.js +0 -66
- package/lib/hooks/useAuthentication.js.map +0 -1
- package/lib/hooks/useContent.js +0 -49
- package/lib/hooks/useContent.js.map +0 -1
- package/lib/hooks/useDeepCompareEffect.js +0 -34
- package/lib/hooks/useDeepCompareEffect.js.map +0 -1
- package/lib/hooks/useForm.js +0 -98
- package/lib/hooks/useForm.js.map +0 -1
- package/lib/hooks/useI18n.js +0 -42
- package/lib/hooks/useI18n.js.map +0 -1
- package/lib/hooks/useModal.js +0 -43
- package/lib/hooks/useModal.js.map +0 -1
- package/lib/hooks/useModelCatalog.js +0 -218
- package/lib/hooks/useModelCatalog.js.map +0 -1
- package/lib/hooks/useModels.js +0 -45
- package/lib/hooks/useModels.js.map +0 -1
- package/lib/hooks/useModularUI.js +0 -69
- package/lib/hooks/useModularUI.js.map +0 -1
- package/lib/hooks/useModularUIBasic.js +0 -81
- package/lib/hooks/useModularUIBasic.js.map +0 -1
- package/lib/hooks/useModularUIModel.js +0 -128
- package/lib/hooks/useModularUIModel.js.map +0 -1
- package/lib/hooks/useModularUIRequest.js +0 -25
- package/lib/hooks/useModularUIRequest.js.map +0 -1
- package/lib/hooks/useNotification.js +0 -39
- package/lib/hooks/useNotification.js.map +0 -1
- package/lib/hooks/usePreference.js +0 -23
- package/lib/hooks/usePreference.js.map +0 -1
- package/lib/hooks/useProgressIndicator.js +0 -23
- package/lib/hooks/useProgressIndicator.js.map +0 -1
- package/lib/hooks/useRouter.js +0 -42
- package/lib/hooks/useRouter.js.map +0 -1
- package/lib/i18n/Locale.js +0 -128
- package/lib/i18n/Locale.js.map +0 -1
- package/lib/i18n/Locales.js +0 -140
- package/lib/i18n/Locales.js.map +0 -1
- package/lib/i18n/Message.js +0 -50
- package/lib/i18n/Message.js.map +0 -1
- package/lib/i18n/index.js +0 -56
- package/lib/i18n/index.js.map +0 -1
- package/lib/i18n/languages.js +0 -212
- package/lib/i18n/languages.js.map +0 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js +0 -104
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +0 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +0 -104
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +0 -1
- package/lib/i18n/types.js +0 -2
- package/lib/i18n/types.js.map +0 -1
- package/lib/i18n/withMessage.js +0 -27
- package/lib/i18n/withMessage.js.map +0 -1
- package/lib/index.js +0 -73
- package/lib/index.js.map +0 -1
- package/lib/models/actions/ActionCollection.js +0 -90
- package/lib/models/actions/ActionCollection.js.map +0 -1
- package/lib/models/actions/ActionModel.js +0 -194
- package/lib/models/actions/ActionModel.js.map +0 -1
- package/lib/models/application/ApplicationModel.js +0 -135
- package/lib/models/application/ApplicationModel.js.map +0 -1
- package/lib/models/attributes/AttributeCollection.js +0 -282
- package/lib/models/attributes/AttributeCollection.js.map +0 -1
- package/lib/models/attributes/AttributeContent.js +0 -203
- package/lib/models/attributes/AttributeContent.js.map +0 -1
- package/lib/models/attributes/AttributeDataHelper.js +0 -267
- package/lib/models/attributes/AttributeDataHelper.js.map +0 -1
- package/lib/models/attributes/AttributeModel.js +0 -824
- package/lib/models/attributes/AttributeModel.js.map +0 -1
- package/lib/models/attributes/AttributeSetModel.js +0 -105
- package/lib/models/attributes/AttributeSetModel.js.map +0 -1
- package/lib/models/attributes/BooleanAttributeModel.js +0 -295
- package/lib/models/attributes/BooleanAttributeModel.js.map +0 -1
- package/lib/models/attributes/CaptchaAttributeModel.js +0 -60
- package/lib/models/attributes/CaptchaAttributeModel.js.map +0 -1
- package/lib/models/attributes/ChoiceAttributeModel.js +0 -411
- package/lib/models/attributes/ChoiceAttributeModel.js.map +0 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +0 -313
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +0 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +0 -342
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +0 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js +0 -189
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +0 -1
- package/lib/models/attributes/CompositeAttributeModel.js +0 -381
- package/lib/models/attributes/CompositeAttributeModel.js.map +0 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +0 -465
- package/lib/models/attributes/DatetimeAttributeModel.js.map +0 -1
- package/lib/models/attributes/HelptextAttributeModel.js +0 -55
- package/lib/models/attributes/HelptextAttributeModel.js.map +0 -1
- package/lib/models/attributes/LabelAttributeModel.js +0 -41
- package/lib/models/attributes/LabelAttributeModel.js.map +0 -1
- package/lib/models/attributes/MemoAttributeModel.js +0 -49
- package/lib/models/attributes/MemoAttributeModel.js.map +0 -1
- package/lib/models/attributes/MoneyAttributeModel.js +0 -49
- package/lib/models/attributes/MoneyAttributeModel.js.map +0 -1
- package/lib/models/attributes/NumberAttributeModel.js +0 -201
- package/lib/models/attributes/NumberAttributeModel.js.map +0 -1
- package/lib/models/attributes/PasswordAttributeModel.js +0 -217
- package/lib/models/attributes/PasswordAttributeModel.js.map +0 -1
- package/lib/models/attributes/StringAttributeModel.js +0 -284
- package/lib/models/attributes/StringAttributeModel.js.map +0 -1
- package/lib/models/attributes/UploadAttributeModel.js +0 -223
- package/lib/models/attributes/UploadAttributeModel.js.map +0 -1
- package/lib/models/attributes/XMLAttributeModel.js +0 -53
- package/lib/models/attributes/XMLAttributeModel.js.map +0 -1
- package/lib/models/attributes/_createAttribute.js +0 -93
- package/lib/models/attributes/_createAttribute.js.map +0 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js +0 -72
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js +0 -50
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +0 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js +0 -74
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +0 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +0 -205
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +0 -76
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +0 -76
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +0 -122
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +0 -66
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +0 -98
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js +0 -49
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +0 -53
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +0 -85
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +0 -177
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +0 -132
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +0 -126
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +0 -72
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +0 -47
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +0 -64
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +0 -64
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +0 -78
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js +0 -143
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js +0 -67
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +0 -178
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +0 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js +0 -62
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +0 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +0 -66
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +0 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +0 -200
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +0 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +0 -88
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +0 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +0 -51
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +0 -1
- package/lib/models/base/BaseCollection.js +0 -186
- package/lib/models/base/BaseCollection.js.map +0 -1
- package/lib/models/base/BaseModel.js +0 -149
- package/lib/models/base/BaseModel.js.map +0 -1
- package/lib/models/base/ResourceCollection.js +0 -41
- package/lib/models/base/ResourceCollection.js.map +0 -1
- package/lib/models/base/ResourceModel.js +0 -209
- package/lib/models/base/ResourceModel.js.map +0 -1
- package/lib/models/caseview/CaseViewModel.js +0 -163
- package/lib/models/caseview/CaseViewModel.js.map +0 -1
- package/lib/models/concepts/BusinessScenarioModel.js +0 -122
- package/lib/models/concepts/BusinessScenarioModel.js.map +0 -1
- package/lib/models/concepts/ConceptDetailModel.js +0 -281
- package/lib/models/concepts/ConceptDetailModel.js.map +0 -1
- package/lib/models/concepts/ConceptIndexModel.js +0 -150
- package/lib/models/concepts/ConceptIndexModel.js.map +0 -1
- package/lib/models/concepts/ConceptLinkModel.js +0 -172
- package/lib/models/concepts/ConceptLinkModel.js.map +0 -1
- package/lib/models/concepts/ConceptRelationCollection.js +0 -82
- package/lib/models/concepts/ConceptRelationCollection.js.map +0 -1
- package/lib/models/concepts/ConceptRelationModel.js +0 -115
- package/lib/models/concepts/ConceptRelationModel.js.map +0 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js +0 -128
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +0 -1
- package/lib/models/concepts/SourceReferenceCollection.js +0 -35
- package/lib/models/concepts/SourceReferenceCollection.js.map +0 -1
- package/lib/models/concepts/SourceReferenceModel.js +0 -100
- package/lib/models/concepts/SourceReferenceModel.js.map +0 -1
- package/lib/models/content/ContentIndexModel.js +0 -142
- package/lib/models/content/ContentIndexModel.js.map +0 -1
- package/lib/models/content/ContentLinkModel.js +0 -258
- package/lib/models/content/ContentLinkModel.js.map +0 -1
- package/lib/models/content/ContentModel.js +0 -207
- package/lib/models/content/ContentModel.js.map +0 -1
- package/lib/models/content/ContentTOCModel.js +0 -212
- package/lib/models/content/ContentTOCModel.js.map +0 -1
- package/lib/models/content/ContentTypeModel.js +0 -74
- package/lib/models/content/ContentTypeModel.js.map +0 -1
- package/lib/models/content/SectionModel.js +0 -200
- package/lib/models/content/SectionModel.js.map +0 -1
- package/lib/models/content/SubSectionModel.js +0 -167
- package/lib/models/content/SubSectionModel.js.map +0 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js +0 -75
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +0 -143
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +0 -49
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +0 -54
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +0 -103
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +0 -1
- package/lib/models/detail/DetailModel.js +0 -219
- package/lib/models/detail/DetailModel.js.map +0 -1
- package/lib/models/error/ErrorCollection.js +0 -111
- package/lib/models/error/ErrorCollection.js.map +0 -1
- package/lib/models/error/ErrorModel.js +0 -81
- package/lib/models/error/ErrorModel.js.map +0 -1
- package/lib/models/error/ErrorResponse.js +0 -304
- package/lib/models/error/ErrorResponse.js.map +0 -1
- package/lib/models/filters/AssignmentFilterModel.js +0 -161
- package/lib/models/filters/AssignmentFilterModel.js.map +0 -1
- package/lib/models/filters/BaseFilterModel.js +0 -210
- package/lib/models/filters/BaseFilterModel.js.map +0 -1
- package/lib/models/filters/ConceptIndexFilterModel.js +0 -37
- package/lib/models/filters/ConceptIndexFilterModel.js.map +0 -1
- package/lib/models/filters/FilterCollection.js +0 -155
- package/lib/models/filters/FilterCollection.js.map +0 -1
- package/lib/models/filters/FilterModel.js +0 -13
- package/lib/models/filters/FilterModel.js.map +0 -1
- package/lib/models/filters/RangeFilterModel.js +0 -44
- package/lib/models/filters/RangeFilterModel.js.map +0 -1
- package/lib/models/filters/StringFilterModel.js +0 -147
- package/lib/models/filters/StringFilterModel.js.map +0 -1
- package/lib/models/form/FormModel.js +0 -1038
- package/lib/models/form/FormModel.js.map +0 -1
- package/lib/models/form/FormObjectModel.js +0 -477
- package/lib/models/form/FormObjectModel.js.map +0 -1
- package/lib/models/grouping/GroupingModel.js +0 -191
- package/lib/models/grouping/GroupingModel.js.map +0 -1
- package/lib/models/href/Href.js +0 -497
- package/lib/models/href/Href.js.map +0 -1
- package/lib/models/href/ListHref.js +0 -135
- package/lib/models/href/ListHref.js.map +0 -1
- package/lib/models/index.js +0 -686
- package/lib/models/index.js.map +0 -1
- package/lib/models/layouthint/LayoutHintCollection.js +0 -118
- package/lib/models/layouthint/LayoutHintCollection.js.map +0 -1
- package/lib/models/links/LinkCollection.js +0 -171
- package/lib/models/links/LinkCollection.js.map +0 -1
- package/lib/models/links/LinkModel.js +0 -216
- package/lib/models/links/LinkModel.js.map +0 -1
- package/lib/models/links/normalizeLinkJSON.js +0 -107
- package/lib/models/links/normalizeLinkJSON.js.map +0 -1
- package/lib/models/list/ListDetailModel.js +0 -267
- package/lib/models/list/ListDetailModel.js.map +0 -1
- package/lib/models/list/ListHeaderModel.js +0 -95
- package/lib/models/list/ListHeaderModel.js.map +0 -1
- package/lib/models/list/ListItemCollection.js +0 -67
- package/lib/models/list/ListItemCollection.js.map +0 -1
- package/lib/models/list/ListItemModel.js +0 -95
- package/lib/models/list/ListItemModel.js.map +0 -1
- package/lib/models/list/ListModel.js +0 -386
- package/lib/models/list/ListModel.js.map +0 -1
- package/lib/models/lookup/LookupOptionCollection.js +0 -45
- package/lib/models/lookup/LookupOptionCollection.js.map +0 -1
- package/lib/models/lookup/LookupOptionsModel.js +0 -71
- package/lib/models/lookup/LookupOptionsModel.js.map +0 -1
- package/lib/models/modelcatalog/ModelCatalogModel.js +0 -69
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +0 -1
- package/lib/models/modelcatalog/ModelCategoryCollection.js +0 -24
- package/lib/models/modelcatalog/ModelCategoryCollection.js.map +0 -1
- package/lib/models/modelcatalog/ModelCategoryModel.js +0 -60
- package/lib/models/modelcatalog/ModelCategoryModel.js.map +0 -1
- package/lib/models/paging/PagesizeModel.js +0 -50
- package/lib/models/paging/PagesizeModel.js.map +0 -1
- package/lib/models/paging/PagingModel.js +0 -95
- package/lib/models/paging/PagingModel.js.map +0 -1
- package/lib/models/panels/GroupingPanelModel.js +0 -143
- package/lib/models/panels/GroupingPanelModel.js.map +0 -1
- package/lib/models/parameter/Parameter.js +0 -108
- package/lib/models/parameter/Parameter.js.map +0 -1
- package/lib/models/process/ProcessStatusSettingsModel.js +0 -85
- package/lib/models/process/ProcessStatusSettingsModel.js.map +0 -1
- package/lib/models/resolveModel.js +0 -57
- package/lib/models/resolveModel.js.map +0 -1
- package/lib/models/search/CaseSearchModel.js +0 -47
- package/lib/models/search/CaseSearchModel.js.map +0 -1
- package/lib/models/sorting/SortOptionModel.js +0 -106
- package/lib/models/sorting/SortOptionModel.js.map +0 -1
- package/lib/models/sorting/SortingModel.js +0 -112
- package/lib/models/sorting/SortingModel.js.map +0 -1
- package/lib/models/tab/TabModel.js +0 -143
- package/lib/models/tab/TabModel.js.map +0 -1
- package/lib/models/taskgroup/TaskGroupCollection.js +0 -21
- package/lib/models/taskgroup/TaskGroupCollection.js.map +0 -1
- package/lib/models/taskgroup/TaskGroupModel.js +0 -87
- package/lib/models/taskgroup/TaskGroupModel.js.map +0 -1
- package/lib/models/types.js +0 -2
- package/lib/models/types.js.map +0 -1
- package/lib/models/user/UserModel.js +0 -59
- package/lib/models/user/UserModel.js.map +0 -1
- package/lib/models/user/UserProfileModel.js +0 -55
- package/lib/models/user/UserProfileModel.js.map +0 -1
- package/lib/models/user/UserServicesModel.js +0 -126
- package/lib/models/user/UserServicesModel.js.map +0 -1
- package/lib/modularui/Authenticate.js +0 -183
- package/lib/modularui/Authenticate.js.map +0 -1
- package/lib/modularui/CaptchaRequest.js +0 -71
- package/lib/modularui/CaptchaRequest.js.map +0 -1
- package/lib/modularui/ModularUIError.js +0 -30
- package/lib/modularui/ModularUIError.js.map +0 -1
- package/lib/modularui/ModularUIRequest.js +0 -719
- package/lib/modularui/ModularUIRequest.js.map +0 -1
- package/lib/modularui/ModularUIResponse.js +0 -147
- package/lib/modularui/ModularUIResponse.js.map +0 -1
- package/lib/modularui/UploadRequest.js +0 -104
- package/lib/modularui/UploadRequest.js.map +0 -1
- package/lib/modularui/index.js +0 -42
- package/lib/modularui/index.js.map +0 -1
- package/lib/modularui/types.js +0 -2
- package/lib/modularui/types.js.map +0 -1
- package/lib/react/ErrorBoundary.js +0 -56
- package/lib/react/ErrorBoundary.js.map +0 -1
- package/lib/react/ErrorBoundaryFallback.js +0 -41
- package/lib/react/ErrorBoundaryFallback.js.map +0 -1
- package/lib/react/index.js +0 -29
- package/lib/react/index.js.map +0 -1
- package/lib/react/utils.js +0 -32
- package/lib/react/utils.js.map +0 -1
- package/lib/react-client/Init.js +0 -44
- package/lib/react-client/Init.js.map +0 -1
- package/lib/react-client/client.js +0 -236
- package/lib/react-client/client.js.map +0 -1
- package/lib/react-client/contextPath.js +0 -26
- package/lib/react-client/contextPath.js.map +0 -1
- package/lib/react-client/index.js +0 -40
- package/lib/react-client/index.js.map +0 -1
- package/lib/react-client/rehydrate.js +0 -73
- package/lib/react-client/rehydrate.js.map +0 -1
- package/lib/react-server/contextPath.js +0 -10
- package/lib/react-server/contextPath.js.map +0 -1
- package/lib/react-server/createSSRComplete.js +0 -61
- package/lib/react-server/createSSRComplete.js.map +0 -1
- package/lib/react-server/htmlpage.js +0 -54
- package/lib/react-server/htmlpage.js.map +0 -1
- package/lib/react-server/index.js +0 -82
- package/lib/react-server/index.js.map +0 -1
- package/lib/react-server/renderSSRComplete.js +0 -91
- package/lib/react-server/renderSSRComplete.js.map +0 -1
- package/lib/react-server/renderSSRMinimal.js +0 -47
- package/lib/react-server/renderSSRMinimal.js.map +0 -1
- package/lib/react-server/requestInformation.js +0 -64
- package/lib/react-server/requestInformation.js.map +0 -1
- package/lib/react-server/serverNoSSR.js +0 -63
- package/lib/react-server/serverNoSSR.js.map +0 -1
- package/lib/react-server/serverSSR.js +0 -51
- package/lib/react-server/serverSSR.js.map +0 -1
- package/lib/react-server/serverUtil.js +0 -217
- package/lib/react-server/serverUtil.js.map +0 -1
- package/lib/react-theme/ThemeProvider.js +0 -33
- package/lib/react-theme/ThemeProvider.js.map +0 -1
- package/lib/react-theme/createTheme.js +0 -115
- package/lib/react-theme/createTheme.js.map +0 -1
- package/lib/react-theme/index.js +0 -110
- package/lib/react-theme/index.js.map +0 -1
- package/lib/react-theme/types.js +0 -2
- package/lib/react-theme/types.js.map +0 -1
- package/lib/react-theme/useTheme.js +0 -15
- package/lib/react-theme/useTheme.js.map +0 -1
- package/lib/react-theme/utils/background.js +0 -21
- package/lib/react-theme/utils/background.js.map +0 -1
- package/lib/react-theme/utils/colors.js +0 -45
- package/lib/react-theme/utils/colors.js.map +0 -1
- package/lib/react-theme/utils/contrast.js +0 -95
- package/lib/react-theme/utils/contrast.js.map +0 -1
- package/lib/react-theme/utils/corners.js +0 -34
- package/lib/react-theme/utils/corners.js.map +0 -1
- package/lib/react-theme/utils/spacers.js +0 -89
- package/lib/react-theme/utils/spacers.js.map +0 -1
- package/lib/react-theme/utils/themeProps.js +0 -75
- package/lib/react-theme/utils/themeProps.js.map +0 -1
- package/lib/redux/_i18n/I18nActions.js +0 -37
- package/lib/redux/_i18n/I18nActions.js.map +0 -1
- package/lib/redux/_i18n/I18nReducer.js +0 -86
- package/lib/redux/_i18n/I18nReducer.js.map +0 -1
- package/lib/redux/_i18n/index.js +0 -29
- package/lib/redux/_i18n/index.js.map +0 -1
- package/lib/redux/_i18n/types.js +0 -2
- package/lib/redux/_i18n/types.js.map +0 -1
- package/lib/redux/_modularui/ModularUIActions.js +0 -185
- package/lib/redux/_modularui/ModularUIActions.js.map +0 -1
- package/lib/redux/_modularui/ModularUIConnector.js +0 -123
- package/lib/redux/_modularui/ModularUIConnector.js.map +0 -1
- package/lib/redux/_modularui/ModularUIMiddleware.js +0 -107
- package/lib/redux/_modularui/ModularUIMiddleware.js.map +0 -1
- package/lib/redux/_modularui/ModularUIReducer.js +0 -159
- package/lib/redux/_modularui/ModularUIReducer.js.map +0 -1
- package/lib/redux/_modularui/ModularUISelectors.js +0 -270
- package/lib/redux/_modularui/ModularUISelectors.js.map +0 -1
- package/lib/redux/_modularui/ModularUIUtils.js +0 -85
- package/lib/redux/_modularui/ModularUIUtils.js.map +0 -1
- package/lib/redux/_modularui/index.js +0 -86
- package/lib/redux/_modularui/index.js.map +0 -1
- package/lib/redux/_modularui/types.js +0 -2
- package/lib/redux/_modularui/types.js.map +0 -1
- package/lib/redux/_modularui/withModularUI.js +0 -41
- package/lib/redux/_modularui/withModularUI.js.map +0 -1
- package/lib/redux/_router/RouterActions.js +0 -67
- package/lib/redux/_router/RouterActions.js.map +0 -1
- package/lib/redux/_router/RouterConnectors.js +0 -42
- package/lib/redux/_router/RouterConnectors.js.map +0 -1
- package/lib/redux/_router/RouterMiddleware.js +0 -38
- package/lib/redux/_router/RouterMiddleware.js.map +0 -1
- package/lib/redux/_router/RouterReducer.js +0 -22
- package/lib/redux/_router/RouterReducer.js.map +0 -1
- package/lib/redux/_router/index.js +0 -51
- package/lib/redux/_router/index.js.map +0 -1
- package/lib/redux/_router/types.js +0 -2
- package/lib/redux/_router/types.js.map +0 -1
- package/lib/redux/actions/Application.js +0 -38
- package/lib/redux/actions/Application.js.map +0 -1
- package/lib/redux/actions/Authorization.js +0 -55
- package/lib/redux/actions/Authorization.js.map +0 -1
- package/lib/redux/actions/Error.js +0 -74
- package/lib/redux/actions/Error.js.map +0 -1
- package/lib/redux/actions/Form.js +0 -39
- package/lib/redux/actions/Form.js.map +0 -1
- package/lib/redux/actions/FormAttributeSet.js +0 -69
- package/lib/redux/actions/FormAttributeSet.js.map +0 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js +0 -35
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +0 -1
- package/lib/redux/actions/FormAutosave.js +0 -60
- package/lib/redux/actions/FormAutosave.js.map +0 -1
- package/lib/redux/actions/FormAutosubmit.js +0 -38
- package/lib/redux/actions/FormAutosubmit.js.map +0 -1
- package/lib/redux/actions/FormAutoupdate.js +0 -37
- package/lib/redux/actions/FormAutoupdate.js.map +0 -1
- package/lib/redux/actions/FormValidations.js +0 -51
- package/lib/redux/actions/FormValidations.js.map +0 -1
- package/lib/redux/actions/Modals.js +0 -22
- package/lib/redux/actions/Modals.js.map +0 -1
- package/lib/redux/actions/ModelCatalog.js +0 -15
- package/lib/redux/actions/ModelCatalog.js.map +0 -1
- package/lib/redux/actions/Notification.js +0 -76
- package/lib/redux/actions/Notification.js.map +0 -1
- package/lib/redux/actions/Preferences.js +0 -128
- package/lib/redux/actions/Preferences.js.map +0 -1
- package/lib/redux/actions/ProgressIndicator.js +0 -42
- package/lib/redux/actions/ProgressIndicator.js.map +0 -1
- package/lib/redux/actions/SignIn.js +0 -90
- package/lib/redux/actions/SignIn.js.map +0 -1
- package/lib/redux/actions/SignOut.js +0 -30
- package/lib/redux/actions/SignOut.js.map +0 -1
- package/lib/redux/actions/index.js +0 -183
- package/lib/redux/actions/index.js.map +0 -1
- package/lib/redux/connectors/Application.js +0 -14
- package/lib/redux/connectors/Application.js.map +0 -1
- package/lib/redux/connectors/Breadcrumb.js +0 -16
- package/lib/redux/connectors/Breadcrumb.js.map +0 -1
- package/lib/redux/connectors/CaseView.js +0 -19
- package/lib/redux/connectors/CaseView.js.map +0 -1
- package/lib/redux/connectors/ConceptDetail.js +0 -20
- package/lib/redux/connectors/ConceptDetail.js.map +0 -1
- package/lib/redux/connectors/ContentBrowser.js +0 -19
- package/lib/redux/connectors/ContentBrowser.js.map +0 -1
- package/lib/redux/connectors/ContentDetail.js +0 -20
- package/lib/redux/connectors/ContentDetail.js.map +0 -1
- package/lib/redux/connectors/ContentDetailSection.js +0 -22
- package/lib/redux/connectors/ContentDetailSection.js.map +0 -1
- package/lib/redux/connectors/Form.js +0 -43
- package/lib/redux/connectors/Form.js.map +0 -1
- package/lib/redux/connectors/FormAttributeSet.js +0 -27
- package/lib/redux/connectors/FormAttributeSet.js.map +0 -1
- package/lib/redux/connectors/ListDetail.js +0 -21
- package/lib/redux/connectors/ListDetail.js.map +0 -1
- package/lib/redux/connectors/Modal.js +0 -27
- package/lib/redux/connectors/Modal.js.map +0 -1
- package/lib/redux/connectors/ModelCatalog.js +0 -19
- package/lib/redux/connectors/ModelCatalog.js.map +0 -1
- package/lib/redux/connectors/Notification.js +0 -22
- package/lib/redux/connectors/Notification.js.map +0 -1
- package/lib/redux/connectors/PanelRenderer.js +0 -29
- package/lib/redux/connectors/PanelRenderer.js.map +0 -1
- package/lib/redux/connectors/Preferences.js +0 -29
- package/lib/redux/connectors/Preferences.js.map +0 -1
- package/lib/redux/connectors/Progress.js +0 -19
- package/lib/redux/connectors/Progress.js.map +0 -1
- package/lib/redux/connectors/ProgressIndicator.js +0 -19
- package/lib/redux/connectors/ProgressIndicator.js.map +0 -1
- package/lib/redux/connectors/QuickSearch.js +0 -27
- package/lib/redux/connectors/QuickSearch.js.map +0 -1
- package/lib/redux/connectors/SignIn.js +0 -24
- package/lib/redux/connectors/SignIn.js.map +0 -1
- package/lib/redux/connectors/SignOut.js +0 -20
- package/lib/redux/connectors/SignOut.js.map +0 -1
- package/lib/redux/connectors/Tab.js +0 -19
- package/lib/redux/connectors/Tab.js.map +0 -1
- package/lib/redux/connectors/index.js +0 -153
- package/lib/redux/connectors/index.js.map +0 -1
- package/lib/redux/index.js +0 -102
- package/lib/redux/index.js.map +0 -1
- package/lib/redux/reducers/AuthReducer.js +0 -59
- package/lib/redux/reducers/AuthReducer.js.map +0 -1
- package/lib/redux/reducers/ErrorReducer.js +0 -22
- package/lib/redux/reducers/ErrorReducer.js.map +0 -1
- package/lib/redux/reducers/ModalsReducer.js +0 -58
- package/lib/redux/reducers/ModalsReducer.js.map +0 -1
- package/lib/redux/reducers/ModelCatalogReducer.js +0 -34
- package/lib/redux/reducers/ModelCatalogReducer.js.map +0 -1
- package/lib/redux/reducers/NotificationReducer.js +0 -43
- package/lib/redux/reducers/NotificationReducer.js.map +0 -1
- package/lib/redux/reducers/PreferencesReducer.js +0 -30
- package/lib/redux/reducers/PreferencesReducer.js.map +0 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js +0 -55
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +0 -1
- package/lib/redux/reducers/createReducer.js +0 -33
- package/lib/redux/reducers/createReducer.js.map +0 -1
- package/lib/redux/reducers/index.js +0 -78
- package/lib/redux/reducers/index.js.map +0 -1
- package/lib/redux/selectors/i18n.js +0 -20
- package/lib/redux/selectors/i18n.js.map +0 -1
- package/lib/redux/selectors/index.js +0 -29
- package/lib/redux/selectors/index.js.map +0 -1
- package/lib/redux/selectors/modelcatalog.js +0 -14
- package/lib/redux/selectors/modelcatalog.js.map +0 -1
- package/lib/redux/store/beforeRenderHooks.js +0 -24
- package/lib/redux/store/beforeRenderHooks.js.map +0 -1
- package/lib/redux/store/configureStore.js +0 -37
- package/lib/redux/store/configureStore.js.map +0 -1
- package/lib/redux/types.js +0 -2
- package/lib/redux/types.js.map +0 -1
- package/lib/utils/browser/Cache.js +0 -151
- package/lib/utils/browser/Cache.js.map +0 -1
- package/lib/utils/browser/Cookies.js +0 -38
- package/lib/utils/browser/Cookies.js.map +0 -1
- package/lib/utils/datetime/DateTimeUtil.js +0 -649
- package/lib/utils/datetime/DateTimeUtil.js.map +0 -1
- package/lib/utils/fetch/serverFetch.js +0 -32
- package/lib/utils/fetch/serverFetch.js.map +0 -1
- package/lib/utils/fetch/types.js +0 -2
- package/lib/utils/fetch/types.js.map +0 -1
- package/lib/utils/fetch/universalFetch.js +0 -94
- package/lib/utils/fetch/universalFetch.js.map +0 -1
- package/lib/utils/fetch/xhr.js +0 -358
- package/lib/utils/fetch/xhr.js.map +0 -1
- package/lib/utils/helpers/checkResource.js +0 -46
- package/lib/utils/helpers/checkResource.js.map +0 -1
- package/lib/utils/helpers/createHash.js +0 -30
- package/lib/utils/helpers/createHash.js.map +0 -1
- package/lib/utils/helpers/createHref.js +0 -101
- package/lib/utils/helpers/createHref.js.map +0 -1
- package/lib/utils/helpers/createUUID.js +0 -18
- package/lib/utils/helpers/createUUID.js.map +0 -1
- package/lib/utils/helpers/index.js +0 -102
- package/lib/utils/helpers/index.js.map +0 -1
- package/lib/utils/helpers/objects.js +0 -36
- package/lib/utils/helpers/objects.js.map +0 -1
- package/lib/utils/helpers/repositoryResource.js +0 -26
- package/lib/utils/helpers/repositoryResource.js.map +0 -1
- package/lib/utils/helpers/sanitizeHtml.js +0 -44
- package/lib/utils/helpers/sanitizeHtml.js.map +0 -1
- package/lib/utils/helpers/text.js +0 -23
- package/lib/utils/helpers/text.js.map +0 -1
- package/lib/utils/index.js +0 -106
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/number/DecimalFormat.js +0 -333
- package/lib/utils/number/DecimalFormat.js.map +0 -1
- package/lib/utils/number/formatValue.js +0 -47
- package/lib/utils/number/formatValue.js.map +0 -1
- package/lib/utils/number/parseNumbers.js +0 -70
- package/lib/utils/number/parseNumbers.js.map +0 -1
- package/src/builder/__tests__/LayoutHintConfig.json +0 -20
- package/src/builder/__tests__/mergeLayoutHintConfigurations.spec.js +0 -71
- package/src/builder/__tests__/subdir/LayoutHintConfig.json +0 -20
- package/src/builder/index.js +0 -2
- package/src/builder/mergeLayoutHintConfigurations.js +0 -62
- package/src/constants/Constants.js +0 -190
- package/src/constants/LayoutHintConfig.js +0 -186
- package/src/constants/LayoutHints.js +0 -134
- package/src/constants/Settings.js +0 -269
- package/src/constants/index.js +0 -4
- package/src/exceptions/ConfigurationException.js +0 -13
- package/src/exceptions/FetchException.js +0 -101
- package/src/exceptions/IllegalArgumentException.js +0 -12
- package/src/exceptions/IllegalReturnException.js +0 -11
- package/src/exceptions/IllegalStateException.js +0 -12
- package/src/exceptions/JsonParseException.js +0 -12
- package/src/exceptions/MissingPropertyException.js +0 -13
- package/src/exceptions/NetworkException.js +0 -20
- package/src/exceptions/NotAllowedUriException.js +0 -12
- package/src/exceptions/NotFoundException.js +0 -20
- package/src/exceptions/ServerRequestException.js +0 -12
- package/src/exceptions/ThemePropertyException.js +0 -12
- package/src/exceptions/TimeoutException.js +0 -13
- package/src/exceptions/UnauthorizedException.js +0 -26
- package/src/exceptions/UnsupportedOperationException.js +0 -12
- package/src/exceptions/index.js +0 -16
- package/src/hooks/__tests__/UseModularUIModel.spec.js +0 -193
- package/src/hooks/__tests__/useAuthentication.spec.js +0 -122
- package/src/hooks/__tests__/useForm.spec.js +0 -300
- package/src/hooks/__tests__/useI18n.spec.js +0 -30
- package/src/hooks/__tests__/useModal.spec.js +0 -67
- package/src/hooks/__tests__/useModelCatalog.spec.js +0 -180
- package/src/hooks/__tests__/useModels.spec.js +0 -138
- package/src/hooks/__tests__/useModularUIBasic.spec.js +0 -126
- package/src/hooks/__tests__/useNotification.spec.js +0 -47
- package/src/hooks/__tests__/usePreference.spec.js +0 -72
- package/src/hooks/__tests__/useProgressIndicator.spec.js +0 -67
- package/src/hooks/index.js +0 -17
- package/src/hooks/useAllFormsOnModel.js +0 -92
- package/src/hooks/useAuthentication.js +0 -98
- package/src/hooks/useContent.js +0 -48
- package/src/hooks/useDeepCompareEffect.js +0 -34
- package/src/hooks/useForm.js +0 -153
- package/src/hooks/useI18n.js +0 -46
- package/src/hooks/useModal.js +0 -46
- package/src/hooks/useModelCatalog.js +0 -256
- package/src/hooks/useModels.js +0 -50
- package/src/hooks/useModularUI.js +0 -90
- package/src/hooks/useModularUIBasic.js +0 -101
- package/src/hooks/useModularUIModel.js +0 -165
- package/src/hooks/useModularUIRequest.js +0 -25
- package/src/hooks/useNotification.js +0 -48
- package/src/hooks/usePreference.js +0 -27
- package/src/hooks/useProgressIndicator.js +0 -33
- package/src/hooks/useRouter.js +0 -64
- package/src/i18n/Locale.js +0 -157
- package/src/i18n/Locales.js +0 -171
- package/src/i18n/Message.js +0 -66
- package/src/i18n/__tests__/Locale.spec.js +0 -108
- package/src/i18n/__tests__/Locales.spec.js +0 -137
- package/src/i18n/index.js +0 -12
- package/src/i18n/languages.js +0 -207
- package/src/i18n/translations/beinformed_error_messages_en.nl.js +0 -98
- package/src/i18n/translations/beinformed_error_messages_nl.nl.js +0 -98
- package/src/i18n/types.js +0 -23
- package/src/i18n/withMessage.js +0 -47
- package/src/index.js +0 -7
- package/src/models/__tests__/resolveModel.spec.js +0 -34
- package/src/models/actions/ActionCollection.js +0 -100
- package/src/models/actions/ActionModel.js +0 -207
- package/src/models/actions/__mock__/action.js +0 -35
- package/src/models/actions/__tests__/ActionCollection.spec.js +0 -98
- package/src/models/actions/__tests__/ActionModel.spec.js +0 -75
- package/src/models/application/ApplicationModel.js +0 -151
- package/src/models/application/__mock__/application.js +0 -14
- package/src/models/application/__mock__/contributions.json +0 -312
- package/src/models/application/__mock__/data.json +0 -263
- package/src/models/application/__tests__/Application.spec.js +0 -99
- package/src/models/application/__tests__/webapp.json +0 -42
- package/src/models/application/__tests__/webappContributions.json +0 -43
- package/src/models/attributes/AttributeCollection.js +0 -306
- package/src/models/attributes/AttributeContent.js +0 -233
- package/src/models/attributes/AttributeDataHelper.js +0 -323
- package/src/models/attributes/AttributeModel.js +0 -1007
- package/src/models/attributes/AttributeSetModel.js +0 -117
- package/src/models/attributes/BooleanAttributeModel.js +0 -319
- package/src/models/attributes/CaptchaAttributeModel.js +0 -51
- package/src/models/attributes/ChoiceAttributeModel.js +0 -499
- package/src/models/attributes/ChoiceAttributeOptionCollection.js +0 -372
- package/src/models/attributes/ChoiceAttributeOptionModel.js +0 -415
- package/src/models/attributes/CompositeAttributeChildCollection.js +0 -254
- package/src/models/attributes/CompositeAttributeModel.js +0 -439
- package/src/models/attributes/DatetimeAttributeModel.js +0 -566
- package/src/models/attributes/HelptextAttributeModel.js +0 -54
- package/src/models/attributes/LabelAttributeModel.js +0 -36
- package/src/models/attributes/MemoAttributeModel.js +0 -43
- package/src/models/attributes/MoneyAttributeModel.js +0 -45
- package/src/models/attributes/NumberAttributeModel.js +0 -255
- package/src/models/attributes/PasswordAttributeModel.js +0 -245
- package/src/models/attributes/StringAttributeModel.js +0 -314
- package/src/models/attributes/UploadAttributeModel.js +0 -261
- package/src/models/attributes/XMLAttributeModel.js +0 -51
- package/src/models/attributes/__mock__/_ActionFieldsContributions.json +0 -12
- package/src/models/attributes/__mock__/_ActionFieldsData.json +0 -7
- package/src/models/attributes/__mock__/_FormCollectionContribution.json +0 -419
- package/src/models/attributes/__mock__/_FormCollectionData.json +0 -122
- package/src/models/attributes/__mock__/_InstrumentQuestionContributions.json +0 -178
- package/src/models/attributes/__mock__/_ListAttributeContributions.json +0 -82
- package/src/models/attributes/__mock__/_ListAttributeData.json +0 -70
- package/src/models/attributes/__mock__/_ListDetailContributions.json +0 -75
- package/src/models/attributes/__mock__/_ListDetailData.json +0 -38
- package/src/models/attributes/__mock__/_TreeFormAttributeContribution.json +0 -117
- package/src/models/attributes/__mock__/_TreeFormAttributeData.json +0 -27
- package/src/models/attributes/__mock__/form.contributions.json +0 -410
- package/src/models/attributes/__mock__/form.data.json +0 -113
- package/src/models/attributes/__mock__/form.js +0 -6
- package/src/models/attributes/__mock__/list.contributions.json +0 -110
- package/src/models/attributes/__mock__/list.data.json +0 -84
- package/src/models/attributes/__mock__/list.js +0 -6
- package/src/models/attributes/__tests__/AttributeCollection.spec.js +0 -160
- package/src/models/attributes/__tests__/AttributeCollectionComposite.spec.js +0 -146
- package/src/models/attributes/__tests__/AttributeContent.spec.js +0 -225
- package/src/models/attributes/__tests__/AttributeDataHelper.spec.js +0 -634
- package/src/models/attributes/__tests__/AttributeModel.spec.js +0 -274
- package/src/models/attributes/__tests__/AttributeSetModel.spec.js +0 -39
- package/src/models/attributes/__tests__/BooleanAttributeModel.spec.js +0 -107
- package/src/models/attributes/__tests__/CaptchaAttributeModel.spec.js +0 -13
- package/src/models/attributes/__tests__/ChoiceAttributeModel.spec.js +0 -750
- package/src/models/attributes/__tests__/ChoiceAttributeOptionCollection.spec.js +0 -507
- package/src/models/attributes/__tests__/ChoiceAttributeOptionModel.spec.js +0 -107
- package/src/models/attributes/__tests__/CompositeAttributeModel.spec.js +0 -467
- package/src/models/attributes/__tests__/DateAttributeModel.spec.js +0 -134
- package/src/models/attributes/__tests__/DatetimeAttributeModel.spec.js +0 -206
- package/src/models/attributes/__tests__/DatetimeAttributeModel_offset.spec.js +0 -345
- package/src/models/attributes/__tests__/HelptextAttributeModel.spec.js +0 -64
- package/src/models/attributes/__tests__/LabelAttributeModel.spec.js +0 -13
- package/src/models/attributes/__tests__/LookupAttributeModel.spec.js +0 -47
- package/src/models/attributes/__tests__/MemoAttributeModel.spec.js +0 -28
- package/src/models/attributes/__tests__/MoneyAttributeModel.spec.js +0 -22
- package/src/models/attributes/__tests__/NumberAttributeModel.spec.js +0 -67
- package/src/models/attributes/__tests__/PasswordAttributeModel.spec.js +0 -49
- package/src/models/attributes/__tests__/StringAttributeModel.spec.js +0 -125
- package/src/models/attributes/__tests__/TimeAttributeModel.spec.js +0 -57
- package/src/models/attributes/__tests__/TimestampModel.spec.js +0 -43
- package/src/models/attributes/__tests__/UploadAttributeModel.spec.js +0 -67
- package/src/models/attributes/__tests__/XMLAttributeModel.spec.js +0 -17
- package/src/models/attributes/__tests__/_createAttribute.spec.js +0 -106
- package/src/models/attributes/__tests__/createAttributeComposite.spec.js +0 -151
- package/src/models/attributes/__tests__/createAttributeDynamicSchema.spec.js +0 -134
- package/src/models/attributes/_createAttribute.js +0 -147
- package/src/models/attributes/input-constraints/BSNConstraint.js +0 -80
- package/src/models/attributes/input-constraints/ConstraintCollection.js +0 -65
- package/src/models/attributes/input-constraints/ConstraintModel.js +0 -76
- package/src/models/attributes/input-constraints/DateBoundaryConstraint.js +0 -240
- package/src/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +0 -72
- package/src/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +0 -72
- package/src/models/attributes/input-constraints/DatetimeFormatConstraint.js +0 -132
- package/src/models/attributes/input-constraints/FileExtensionConstraint.js +0 -60
- package/src/models/attributes/input-constraints/FileSizeConstraint.js +0 -101
- package/src/models/attributes/input-constraints/IBANConstraint.js +0 -46
- package/src/models/attributes/input-constraints/MandatoryConstraint.js +0 -54
- package/src/models/attributes/input-constraints/MandatoryRangeConstraint.js +0 -84
- package/src/models/attributes/input-constraints/NumberBoundaryConstraint.js +0 -213
- package/src/models/attributes/input-constraints/NumberFormatConstraint.js +0 -153
- package/src/models/attributes/input-constraints/NumberGroupingConstraint.js +0 -140
- package/src/models/attributes/input-constraints/PasswordConfirmConstraint.js +0 -68
- package/src/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +0 -44
- package/src/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +0 -60
- package/src/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +0 -60
- package/src/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +0 -74
- package/src/models/attributes/input-constraints/RangeConstraint.js +0 -161
- package/src/models/attributes/input-constraints/RegexConstraint.js +0 -72
- package/src/models/attributes/input-constraints/StringLengthConstraint.js +0 -179
- package/src/models/attributes/input-constraints/XMLConstraint.js +0 -62
- package/src/models/attributes/input-constraints/__tests__/BSNConstraint.spec.js +0 -25
- package/src/models/attributes/input-constraints/__tests__/ConstraintCollection.spec.js +0 -9
- package/src/models/attributes/input-constraints/__tests__/ConstraintModel.spec.js +0 -35
- package/src/models/attributes/input-constraints/__tests__/DateBoundaryConstraint.spec.js +0 -117
- package/src/models/attributes/input-constraints/__tests__/DateTimeDateFormatConstraint.spec.js +0 -30
- package/src/models/attributes/input-constraints/__tests__/DateTimeTimeFormatConstraint.spec.js +0 -54
- package/src/models/attributes/input-constraints/__tests__/DatetimeFormatConstraint.spec.js +0 -79
- package/src/models/attributes/input-constraints/__tests__/FileExtensionConstraint.spec.js +0 -20
- package/src/models/attributes/input-constraints/__tests__/FileSizeConstraint.spec.js +0 -53
- package/src/models/attributes/input-constraints/__tests__/IBANConstraint.spec.js +0 -12
- package/src/models/attributes/input-constraints/__tests__/MandatoryConstraint.spec.js +0 -14
- package/src/models/attributes/input-constraints/__tests__/NumberBoundaryConstraint.spec.js +0 -46
- package/src/models/attributes/input-constraints/__tests__/NumberFormatConstraint.spec.js +0 -137
- package/src/models/attributes/input-constraints/__tests__/NumberGroupingConstraint.spec.js +0 -85
- package/src/models/attributes/input-constraints/__tests__/PasswordConfirmConstraint.spec.js +0 -21
- package/src/models/attributes/input-constraints/__tests__/PasswordLowerAndUpperCaseConstraint.spec.js +0 -14
- package/src/models/attributes/input-constraints/__tests__/PasswordMinNumericCharactersConstraint.spec.js +0 -11
- package/src/models/attributes/input-constraints/__tests__/PasswordMinSpecialCharactersConstraint.spec.js +0 -11
- package/src/models/attributes/input-constraints/__tests__/PasswordThreeConsecutiveCharactersNotAllowedConstraint.spec.js +0 -22
- package/src/models/attributes/input-constraints/__tests__/RegexConstraint.spec.js +0 -42
- package/src/models/attributes/input-constraints/__tests__/StringLengthConstraint.spec.js +0 -102
- package/src/models/attributes/input-constraints/__tests__/XMLConstraint.spec.js +0 -15
- package/src/models/attributes/layouthint-rules/BaseLayoutHintRule.js +0 -74
- package/src/models/attributes/layouthint-rules/DependentAttribute.js +0 -246
- package/src/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +0 -101
- package/src/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +0 -67
- package/src/models/attributes/layouthint-rules/__mock__/MockedCollectionFactory.js +0 -54
- package/src/models/attributes/layouthint-rules/__tests__/BaseLayoutHintRule.spec.js +0 -29
- package/src/models/attributes/layouthint-rules/__tests__/DependentAttribute.spec.js +0 -310
- package/src/models/attributes/layouthint-rules/__tests__/LayoutHintRuleCollection.spec.js +0 -58
- package/src/models/attributes/layouthint-rules/__tests__/RemainingTotalUploadSize.spec.js +0 -24
- package/src/models/base/BaseCollection.js +0 -191
- package/src/models/base/BaseModel.js +0 -155
- package/src/models/base/ResourceCollection.js +0 -42
- package/src/models/base/ResourceModel.js +0 -246
- package/src/models/base/__tests__/BaseCollection.spec.js +0 -108
- package/src/models/base/__tests__/BaseModel.spec.js +0 -85
- package/src/models/base/__tests__/ResourceCollection.spec.js +0 -51
- package/src/models/base/__tests__/ResourceModel.spec.js +0 -100
- package/src/models/base/__tests__/webapp.json +0 -52
- package/src/models/caseview/CaseViewModel.js +0 -188
- package/src/models/caseview/__mock__/caseview.js +0 -14
- package/src/models/caseview/__mock__/contributions.json +0 -146
- package/src/models/caseview/__mock__/data.json +0 -21
- package/src/models/caseview/__tests__/CaseViewModel.spec.js +0 -132
- package/src/models/caseview/__tests__/caseview.json +0 -49
- package/src/models/caseview/__tests__/caseviewContributions.json +0 -118
- package/src/models/caseview/__tests__/caseview_local_taskgroup.json +0 -57
- package/src/models/concepts/BusinessScenarioModel.js +0 -176
- package/src/models/concepts/ConceptDetailModel.js +0 -343
- package/src/models/concepts/ConceptIndexModel.js +0 -170
- package/src/models/concepts/ConceptLinkModel.js +0 -208
- package/src/models/concepts/ConceptRelationCollection.js +0 -95
- package/src/models/concepts/ConceptRelationModel.js +0 -129
- package/src/models/concepts/ConceptTypeDetailModel.js +0 -128
- package/src/models/concepts/SourceReferenceCollection.js +0 -32
- package/src/models/concepts/SourceReferenceModel.js +0 -114
- package/src/models/concepts/__mock__/business_scenario.js +0 -26
- package/src/models/concepts/__mock__/business_scenario_data.json +0 -234
- package/src/models/concepts/__mock__/business_scenario_step.json +0 -64
- package/src/models/concepts/__mock__/conceptdetail.js +0 -27
- package/src/models/concepts/__mock__/conceptdetail_contributions.json +0 -156
- package/src/models/concepts/__mock__/conceptdetail_data.json +0 -164
- package/src/models/concepts/__mock__/conceptindex.js +0 -15
- package/src/models/concepts/__mock__/conceptindex_contributions.json +0 -86
- package/src/models/concepts/__mock__/conceptindex_data.json +0 -329
- package/src/models/concepts/__mock__/concepttype.js +0 -13
- package/src/models/concepts/__mock__/concepttype_Calculation.json +0 -75
- package/src/models/concepts/__mock__/concepttype_contributions.json +0 -139
- package/src/models/concepts/__mock__/concepttype_data.json +0 -32
- package/src/models/concepts/__mock__/concepttype_hierarchy.js +0 -13
- package/src/models/concepts/__mock__/concepttype_hierarchy.json +0 -32
- package/src/models/concepts/__mock__/related_concepts.js +0 -12
- package/src/models/concepts/__mock__/related_concepts_contributions.json +0 -41
- package/src/models/concepts/__mock__/related_concepts_data.json +0 -2408
- package/src/models/concepts/__mock__/relation_with_props_and_tf_data.js +0 -27
- package/src/models/concepts/__mock__/relation_with_props_and_tf_data.json +0 -67
- package/src/models/concepts/__tests__/BusinessScenarioModel.spec.js +0 -28
- package/src/models/concepts/__tests__/ConceptDetailModel.spec.js +0 -65
- package/src/models/concepts/__tests__/ConceptIndexModel.spec.js +0 -42
- package/src/models/concepts/__tests__/ConceptLinkModel.spec.js +0 -9
- package/src/models/concepts/__tests__/ConceptRelationCollection.spec.js +0 -9
- package/src/models/concepts/__tests__/ConceptRelationModel.spec.js +0 -53
- package/src/models/concepts/__tests__/ConceptTypeDetailModel.spec.js +0 -31
- package/src/models/concepts/__tests__/RelatedConcepts.spec.js +0 -58
- package/src/models/concepts/__tests__/SourceReferenceCollection.spec.js +0 -9
- package/src/models/concepts/__tests__/SourceReferenceModel.spec.js +0 -108
- package/src/models/content/ContentIndexModel.js +0 -160
- package/src/models/content/ContentLinkModel.js +0 -308
- package/src/models/content/ContentModel.js +0 -226
- package/src/models/content/ContentTOCModel.js +0 -233
- package/src/models/content/ContentTypeModel.js +0 -71
- package/src/models/content/SectionModel.js +0 -236
- package/src/models/content/SubSectionModel.js +0 -181
- package/src/models/content/__tests__/ContentIndexModel.spec.js +0 -40
- package/src/models/content/__tests__/ContentLinkModel.spec.js +0 -129
- package/src/models/content/__tests__/ContentModel.spec.js +0 -241
- package/src/models/content/__tests__/Formalsource.spec.js +0 -133
- package/src/models/content/__tests__/content-index-contributions.json +0 -50
- package/src/models/content/__tests__/content-index.json +0 -164
- package/src/models/content/__tests__/content-with-childsections.json +0 -105
- package/src/models/content/__tests__/content-with-sections.json +0 -105
- package/src/models/content/__tests__/content-with-subsections.json +0 -119
- package/src/models/content/__tests__/content-with-subsections2.json +0 -79
- package/src/models/content/__tests__/content.json +0 -31
- package/src/models/content/__tests__/contributions.json +0 -84
- package/src/models/content/__tests__/formalsource-complete.json +0 -235
- package/src/models/content/__tests__/formalsource-contributions.json +0 -110
- package/src/models/content/__tests__/formalsource-section-contributions.json +0 -84
- package/src/models/content/__tests__/formalsource-section.json +0 -60
- package/src/models/content/__tests__/formalsource-toc.json +0 -122
- package/src/models/contentconfiguration/ContentConfiguration.js +0 -70
- package/src/models/contentconfiguration/ContentConfigurationElements.js +0 -152
- package/src/models/contentconfiguration/ContentConfigurationEndResults.js +0 -45
- package/src/models/contentconfiguration/ContentConfigurationQuestions.js +0 -60
- package/src/models/contentconfiguration/ContentConfigurationResults.js +0 -105
- package/src/models/contentconfiguration/__tests__/ContentConfigurationElements.spec.js +0 -29
- package/src/models/contentconfiguration/__tests__/ContentConfigurationResults.spec.js +0 -101
- package/src/models/detail/DetailModel.js +0 -241
- package/src/models/detail/__tests__/DetailModel.spec.js +0 -41
- package/src/models/detail/__tests__/detail.json +0 -37
- package/src/models/detail/__tests__/detailContributions.json +0 -124
- package/src/models/error/ErrorCollection.js +0 -127
- package/src/models/error/ErrorModel.js +0 -83
- package/src/models/error/ErrorResponse.js +0 -343
- package/src/models/error/__tests__/ErrorCollection.spec.js +0 -41
- package/src/models/error/__tests__/ErrorModel.spec.js +0 -24
- package/src/models/filters/AssignmentFilterModel.js +0 -195
- package/src/models/filters/BaseFilterModel.js +0 -236
- package/src/models/filters/ConceptIndexFilterModel.js +0 -40
- package/src/models/filters/FilterCollection.js +0 -192
- package/src/models/filters/FilterModel.js +0 -6
- package/src/models/filters/RangeFilterModel.js +0 -36
- package/src/models/filters/StringFilterModel.js +0 -159
- package/src/models/filters/__tests__/AssignmentFilterModel.spec.js +0 -140
- package/src/models/filters/__tests__/FilterCollection.spec.js +0 -68
- package/src/models/filters/__tests__/FilterModel.spec.js +0 -65
- package/src/models/filters/__tests__/RangeFilterModel.spec.js +0 -55
- package/src/models/filters/__tests__/ZipcodeFilter.spec.js +0 -145
- package/src/models/filters/__tests__/filters.json +0 -91
- package/src/models/filters/__tests__/filtersContributions.json +0 -110
- package/src/models/form/FormModel.js +0 -1280
- package/src/models/form/FormObjectModel.js +0 -590
- package/src/models/form/__mock__/contributions.json +0 -525
- package/src/models/form/__mock__/data.json +0 -78
- package/src/models/form/__mock__/form.js +0 -17
- package/src/models/form/__tests__/FormContributions.json +0 -495
- package/src/models/form/__tests__/FormContributionsUnknownRepeat.json +0 -67
- package/src/models/form/__tests__/FormInstrumentContributions.json +0 -183
- package/src/models/form/__tests__/FormModel.getters.spec.js +0 -149
- package/src/models/form/__tests__/FormModel.instrument.spec.js +0 -202
- package/src/models/form/__tests__/FormModel.repeating.spec.js +0 -65
- package/src/models/form/__tests__/FormModel.selfhref.spec.js +0 -84
- package/src/models/form/__tests__/FormModel.spec.js +0 -752
- package/src/models/form/__tests__/FormModel.unknown-repeat.spec.js +0 -52
- package/src/models/form/__tests__/FormObjectModel.spec.js +0 -180
- package/src/models/form/__tests__/FormResultData.spec.js +0 -86
- package/src/models/form/__tests__/FormValidation.spec.js +0 -79
- package/src/models/form/__tests__/FormValidationContributions.json +0 -45
- package/src/models/form/__tests__/FormValidationDataInitial.json +0 -33
- package/src/models/form/__tests__/FormValidationDataUpdate1.json +0 -25
- package/src/models/form/__tests__/FormValidationDataUpdate2.json +0 -33
- package/src/models/form/__tests__/FormWithContent.spec.js +0 -71
- package/src/models/form/__tests__/FormWithContentContributions.json +0 -242
- package/src/models/form/__tests__/FormWithContentData.json +0 -244
- package/src/models/grouping/GroupingModel.js +0 -232
- package/src/models/grouping/__tests__/GroupingModel.spec.js +0 -80
- package/src/models/href/Href.js +0 -564
- package/src/models/href/ListHref.js +0 -146
- package/src/models/href/__tests__/Href.spec.js +0 -184
- package/src/models/href/__tests__/ListHref.spec.js +0 -61
- package/src/models/href/__tests__/list.json +0 -2417
- package/src/models/href/__tests__/listContributions.json +0 -330
- package/src/models/index.js +0 -177
- package/src/models/layouthint/LayoutHintCollection.js +0 -116
- package/src/models/layouthint/__tests__/LayoutHintCollection.spec.js +0 -89
- package/src/models/links/LinkCollection.js +0 -169
- package/src/models/links/LinkModel.js +0 -229
- package/src/models/links/__tests__/LinkCollection.spec.js +0 -426
- package/src/models/links/__tests__/LinkModel.spec.js +0 -103
- package/src/models/links/__tests__/normalizeLinkJSON.spec.js +0 -212
- package/src/models/links/normalizeLinkJSON.js +0 -121
- package/src/models/list/ListDetailModel.js +0 -330
- package/src/models/list/ListHeaderModel.js +0 -96
- package/src/models/list/ListItemCollection.js +0 -80
- package/src/models/list/ListItemModel.js +0 -111
- package/src/models/list/ListModel.js +0 -438
- package/src/models/list/__mock__/caselist.contributions.json +0 -372
- package/src/models/list/__mock__/caselist.data.json +0 -519
- package/src/models/list/__mock__/caselist.js +0 -14
- package/src/models/list/__tests__/ListDetailModel.hierarchy.spec.js +0 -88
- package/src/models/list/__tests__/ListDetailModel.spec.js +0 -96
- package/src/models/list/__tests__/ListItemCollection.spec.js +0 -22
- package/src/models/list/__tests__/ListModel.spec.js +0 -152
- package/src/models/list/__tests__/ListResultDetail.spec.js +0 -37
- package/src/models/list/__tests__/caselist-34.contributions.json +0 -146
- package/src/models/list/__tests__/caselist-34.data.json +0 -21
- package/src/models/list/__tests__/hierarchy.json +0 -185
- package/src/models/list/__tests__/hierarchyContributions.json +0 -582
- package/src/models/list/__tests__/instrument-detail-contributions.json +0 -761
- package/src/models/list/__tests__/instrument-detail-data.json +0 -66
- package/src/models/list/__tests__/list.json +0 -2426
- package/src/models/list/__tests__/listContributions.json +0 -349
- package/src/models/list/__tests__/related-contributions.json +0 -42
- package/src/models/list/__tests__/related-data.json +0 -32
- package/src/models/lookup/LookupOptionCollection.js +0 -54
- package/src/models/lookup/LookupOptionsModel.js +0 -81
- package/src/models/lookup/__tests__/LookupOptionCollection.spec.js +0 -80
- package/src/models/lookup/__tests__/LookupOptionsModel.spec.js +0 -82
- package/src/models/lookup/__tests__/_LookupOptionsContributions.json +0 -29
- package/src/models/lookup/__tests__/_LookupOptionsData.json +0 -34
- package/src/models/lookup/__tests__/_LookupOptionsListContributions.json +0 -129
- package/src/models/lookup/__tests__/_LookupOptionsListData.json +0 -134
- package/src/models/lookup/__tests__/_TaxonomyAttributeData.json +0 -42
- package/src/models/modelcatalog/ModelCatalogModel.js +0 -73
- package/src/models/modelcatalog/ModelCategoryCollection.js +0 -22
- package/src/models/modelcatalog/ModelCategoryModel.js +0 -63
- package/src/models/modelcatalog/__mock__/contributions.json +0 -6
- package/src/models/modelcatalog/__mock__/data.json +0 -29
- package/src/models/modelcatalog/__mock__/modelcatalog.js +0 -14
- package/src/models/modelcatalog/__tests__/ModelCatalogModel.spec.js +0 -49
- package/src/models/paging/PagesizeModel.js +0 -44
- package/src/models/paging/PagingModel.js +0 -94
- package/src/models/paging/__tests__/PageSizeModel.spec.js +0 -31
- package/src/models/paging/__tests__/PagingModel.spec.js +0 -40
- package/src/models/paging/__tests__/list.json +0 -8
- package/src/models/paging/__tests__/listContributions.json +0 -7
- package/src/models/panels/GroupingPanelModel.js +0 -164
- package/src/models/panels/__tests__/GroupingPanelModel.spec.js +0 -142
- package/src/models/panels/__tests__/groupingPanel.json +0 -49
- package/src/models/panels/__tests__/groupingPanelContributions.json +0 -59
- package/src/models/parameter/Parameter.js +0 -117
- package/src/models/parameter/__tests__/Parameter.spec.js +0 -125
- package/src/models/process/ProcessStatusSettingsModel.js +0 -88
- package/src/models/process/__tests__/ProcessStatusSettingsModel.spec.js +0 -52
- package/src/models/resolveModel.js +0 -92
- package/src/models/search/CaseSearchModel.js +0 -46
- package/src/models/search/__tests__/CaseSearchModel.spec.js +0 -10
- package/src/models/sorting/SortOptionModel.js +0 -107
- package/src/models/sorting/SortingModel.js +0 -128
- package/src/models/sorting/__tests__/SortingModel.spec.js +0 -96
- package/src/models/tab/TabModel.js +0 -160
- package/src/models/tab/__mock__/contributions.json +0 -77
- package/src/models/tab/__mock__/data.json +0 -20
- package/src/models/tab/__mock__/personContributions.json +0 -35
- package/src/models/tab/__mock__/personData.json +0 -21
- package/src/models/tab/__mock__/tab.js +0 -14
- package/src/models/tab/__mock__/tabPerson.js +0 -14
- package/src/models/tab/__tests__/TabModel.spec.js +0 -72
- package/src/models/tab/__tests__/tab.json +0 -37
- package/src/models/tab/__tests__/tabContributions.json +0 -39
- package/src/models/taskgroup/TaskGroupCollection.js +0 -16
- package/src/models/taskgroup/TaskGroupModel.js +0 -102
- package/src/models/taskgroup/__mock__/contributions.json +0 -18
- package/src/models/taskgroup/__mock__/data.json +0 -21
- package/src/models/taskgroup/__mock__/taskgroup.js +0 -14
- package/src/models/taskgroup/__tests__/TaskGroupModel.spec.js +0 -26
- package/src/models/taskgroup/__tests__/taskgroup.json +0 -25
- package/src/models/taskgroup/__tests__/taskgroupContributions.json +0 -23
- package/src/models/types.js +0 -275
- package/src/models/user/UserModel.js +0 -57
- package/src/models/user/UserProfileModel.js +0 -54
- package/src/models/user/UserServicesModel.js +0 -136
- package/src/models/user/__mock__/contributions.json +0 -148
- package/src/models/user/__mock__/data.json +0 -22
- package/src/models/user/__tests__/UserModel.spec.js +0 -43
- package/src/models/user/__tests__/UserProfileModel.spec.js +0 -45
- package/src/models/user/__tests__/UserServicesModel.spec.js +0 -55
- package/src/modularui/Authenticate.js +0 -195
- package/src/modularui/CaptchaRequest.js +0 -104
- package/src/modularui/ModularUIError.js +0 -25
- package/src/modularui/ModularUIRequest.js +0 -872
- package/src/modularui/ModularUIResponse.js +0 -160
- package/src/modularui/UploadRequest.js +0 -151
- package/src/modularui/__tests__/CustomContextPath.spec.js +0 -61
- package/src/modularui/__tests__/ModularUIError.spec.js +0 -22
- package/src/modularui/__tests__/ModularUIRequest.spec.js +0 -495
- package/src/modularui/__tests__/contributions.json +0 -312
- package/src/modularui/__tests__/data.json +0 -263
- package/src/modularui/index.js +0 -6
- package/src/modularui/types.js +0 -4
- package/src/react/ErrorBoundary.js +0 -61
- package/src/react/ErrorBoundaryFallback.js +0 -46
- package/src/react/index.js +0 -3
- package/src/react/utils.js +0 -33
- package/src/react-client/Init.js +0 -46
- package/src/react-client/client.js +0 -309
- package/src/react-client/contextPath.js +0 -30
- package/src/react-client/index.js +0 -4
- package/src/react-client/rehydrate.js +0 -94
- package/src/react-server/__tests__/htmlpage.spec.js +0 -75
- package/src/react-server/__tests__/requestInformation.spec.js +0 -266
- package/src/react-server/__tests__/serverUtil.spec.js +0 -183
- package/src/react-server/contextPath.js +0 -8
- package/src/react-server/createSSRComplete.js +0 -63
- package/src/react-server/htmlpage.js +0 -55
- package/src/react-server/index.js +0 -13
- package/src/react-server/renderSSRComplete.js +0 -111
- package/src/react-server/renderSSRMinimal.js +0 -54
- package/src/react-server/requestInformation.js +0 -68
- package/src/react-server/serverNoSSR.js +0 -87
- package/src/react-server/serverSSR.js +0 -70
- package/src/react-server/serverUtil.js +0 -279
- package/src/react-theme/ThemeProvider.js +0 -25
- package/src/react-theme/__tests__/ThemeProvider.spec.js +0 -84
- package/src/react-theme/__tests__/createTheme.spec.js +0 -172
- package/src/react-theme/createTheme.js +0 -118
- package/src/react-theme/index.js +0 -15
- package/src/react-theme/types.js +0 -16
- package/src/react-theme/useTheme.js +0 -13
- package/src/react-theme/utils/__tests__/background.spec.js +0 -30
- package/src/react-theme/utils/__tests__/colors.spec.js +0 -30
- package/src/react-theme/utils/__tests__/contrast.spec.js +0 -44
- package/src/react-theme/utils/__tests__/corners.spec.js +0 -27
- package/src/react-theme/utils/__tests__/spacers.spec.js +0 -44
- package/src/react-theme/utils/__tests__/themeProps.spec.js +0 -72
- package/src/react-theme/utils/background.js +0 -20
- package/src/react-theme/utils/colors.js +0 -47
- package/src/react-theme/utils/contrast.js +0 -117
- package/src/react-theme/utils/corners.js +0 -37
- package/src/react-theme/utils/spacers.js +0 -65
- package/src/react-theme/utils/themeProps.js +0 -90
- package/src/redux/_i18n/I18nActions.js +0 -38
- package/src/redux/_i18n/I18nReducer.js +0 -91
- package/src/redux/_i18n/__tests__/actions.spec.js +0 -37
- package/src/redux/_i18n/__tests__/reducer.spec.js +0 -29
- package/src/redux/_i18n/index.js +0 -6
- package/src/redux/_i18n/types.js +0 -20
- package/src/redux/_modularui/ModularUIActions.js +0 -227
- package/src/redux/_modularui/ModularUIConnector.js +0 -155
- package/src/redux/_modularui/ModularUIMiddleware.js +0 -182
- package/src/redux/_modularui/ModularUIReducer.js +0 -169
- package/src/redux/_modularui/ModularUISelectors.js +0 -322
- package/src/redux/_modularui/ModularUIUtils.js +0 -96
- package/src/redux/_modularui/__tests__/actions.spec.js +0 -159
- package/src/redux/_modularui/__tests__/reducer.spec.js +0 -134
- package/src/redux/_modularui/__tests__/selectors.spec.js +0 -153
- package/src/redux/_modularui/index.js +0 -11
- package/src/redux/_modularui/types.js +0 -121
- package/src/redux/_modularui/withModularUI.js +0 -85
- package/src/redux/_router/RouterActions.js +0 -75
- package/src/redux/_router/RouterConnectors.js +0 -97
- package/src/redux/_router/RouterMiddleware.js +0 -37
- package/src/redux/_router/RouterReducer.js +0 -21
- package/src/redux/_router/__tests__/actions.spec.js +0 -109
- package/src/redux/_router/__tests__/hooks.spec.js +0 -98
- package/src/redux/_router/__tests__/middleware.spec.js +0 -62
- package/src/redux/_router/__tests__/reducer.spec.js +0 -26
- package/src/redux/_router/index.js +0 -8
- package/src/redux/_router/types.js +0 -43
- package/src/redux/actions/Application.js +0 -45
- package/src/redux/actions/Authorization.js +0 -65
- package/src/redux/actions/Error.js +0 -95
- package/src/redux/actions/Form.js +0 -42
- package/src/redux/actions/FormAttributeSet.js +0 -98
- package/src/redux/actions/FormAttributeSetRepeatable.js +0 -45
- package/src/redux/actions/FormAutosave.js +0 -73
- package/src/redux/actions/FormAutosubmit.js +0 -43
- package/src/redux/actions/FormAutoupdate.js +0 -47
- package/src/redux/actions/FormValidations.js +0 -71
- package/src/redux/actions/Modals.js +0 -16
- package/src/redux/actions/ModelCatalog.js +0 -12
- package/src/redux/actions/Notification.js +0 -101
- package/src/redux/actions/Preferences.js +0 -173
- package/src/redux/actions/ProgressIndicator.js +0 -39
- package/src/redux/actions/SignIn.js +0 -102
- package/src/redux/actions/SignOut.js +0 -29
- package/src/redux/actions/__tests__/Application.spec.js +0 -52
- package/src/redux/actions/__tests__/Authorization.spec.js +0 -121
- package/src/redux/actions/__tests__/CustomErrorResponseHandler.spec.js +0 -72
- package/src/redux/actions/__tests__/Error-server.spec.js +0 -134
- package/src/redux/actions/__tests__/Error.spec.js +0 -116
- package/src/redux/actions/__tests__/Form.spec.js +0 -39
- package/src/redux/actions/__tests__/Modals.spec.js +0 -34
- package/src/redux/actions/__tests__/Notification.spec.js +0 -94
- package/src/redux/actions/__tests__/Preferences.spec.js +0 -71
- package/src/redux/actions/__tests__/ProgressIndicator.spec.js +0 -53
- package/src/redux/actions/index.js +0 -17
- package/src/redux/connectors/Application.js +0 -14
- package/src/redux/connectors/Breadcrumb.js +0 -28
- package/src/redux/connectors/CaseView.js +0 -14
- package/src/redux/connectors/ConceptDetail.js +0 -12
- package/src/redux/connectors/ContentBrowser.js +0 -14
- package/src/redux/connectors/ContentDetail.js +0 -13
- package/src/redux/connectors/ContentDetailSection.js +0 -17
- package/src/redux/connectors/Form.js +0 -83
- package/src/redux/connectors/FormAttributeSet.js +0 -85
- package/src/redux/connectors/ListDetail.js +0 -16
- package/src/redux/connectors/Modal.js +0 -47
- package/src/redux/connectors/ModelCatalog.js +0 -14
- package/src/redux/connectors/Notification.js +0 -47
- package/src/redux/connectors/PanelRenderer.js +0 -29
- package/src/redux/connectors/Preferences.js +0 -53
- package/src/redux/connectors/Progress.js +0 -35
- package/src/redux/connectors/ProgressIndicator.js +0 -35
- package/src/redux/connectors/QuickSearch.js +0 -36
- package/src/redux/connectors/SignIn.js +0 -47
- package/src/redux/connectors/SignOut.js +0 -38
- package/src/redux/connectors/Tab.js +0 -14
- package/src/redux/connectors/index.js +0 -22
- package/src/redux/index.js +0 -27
- package/src/redux/reducers/AuthReducer.js +0 -56
- package/src/redux/reducers/ErrorReducer.js +0 -22
- package/src/redux/reducers/ModalsReducer.js +0 -58
- package/src/redux/reducers/ModelCatalogReducer.js +0 -34
- package/src/redux/reducers/NotificationReducer.js +0 -45
- package/src/redux/reducers/PreferencesReducer.js +0 -31
- package/src/redux/reducers/ProgressIndicatorReducer.js +0 -60
- package/src/redux/reducers/__tests__/AuthReducer.spec.js +0 -95
- package/src/redux/reducers/__tests__/ErrorReducer.spec.js +0 -17
- package/src/redux/reducers/__tests__/ModalsReducer.spec.js +0 -34
- package/src/redux/reducers/__tests__/ModelCatalogReducer.spec.js +0 -23
- package/src/redux/reducers/__tests__/NotificationReducer.spec.js +0 -53
- package/src/redux/reducers/__tests__/PreferencesReducer.spec.js +0 -31
- package/src/redux/reducers/__tests__/ProgressIndicatorReducer.spec.js +0 -82
- package/src/redux/reducers/createReducer.js +0 -55
- package/src/redux/reducers/index.js +0 -10
- package/src/redux/selectors/i18n.js +0 -15
- package/src/redux/selectors/index.js +0 -3
- package/src/redux/selectors/modelcatalog.js +0 -11
- package/src/redux/store/__tests__/beforeRenderHooks.spec.js +0 -13
- package/src/redux/store/beforeRenderHooks.js +0 -26
- package/src/redux/store/configureStore.js +0 -59
- package/src/redux/types.js +0 -241
- package/src/utils/browser/Cache.js +0 -157
- package/src/utils/browser/Cookies.js +0 -44
- package/src/utils/browser/__tests__/Cookies.spec.js +0 -51
- package/src/utils/datetime/DateTimeUtil.js +0 -858
- package/src/utils/datetime/__tests__/DateTime.spec.js +0 -873
- package/src/utils/datetime/__tests__/DateTimeFormat.spec.js +0 -146
- package/src/utils/fetch/__mocks__/applicationContributions.json +0 -323
- package/src/utils/fetch/__mocks__/applicationData.json +0 -216
- package/src/utils/fetch/__mocks__/formContributions.json +0 -527
- package/src/utils/fetch/__mocks__/formData.json +0 -21
- package/src/utils/fetch/__mocks__/universalFetch.js +0 -38
- package/src/utils/fetch/__tests__/xhr.spec.js +0 -281
- package/src/utils/fetch/serverFetch.js +0 -33
- package/src/utils/fetch/types.js +0 -46
- package/src/utils/fetch/universalFetch.js +0 -106
- package/src/utils/fetch/xhr.js +0 -409
- package/src/utils/helpers/__tests__/checkResource.spec.js +0 -60
- package/src/utils/helpers/__tests__/createHash.spec.js +0 -11
- package/src/utils/helpers/__tests__/createHref.spec.js +0 -39
- package/src/utils/helpers/__tests__/objects.spec.js +0 -50
- package/src/utils/helpers/__tests__/sanitizeHTML.spec.js +0 -69
- package/src/utils/helpers/checkResource.js +0 -43
- package/src/utils/helpers/createHash.js +0 -28
- package/src/utils/helpers/createHref.js +0 -117
- package/src/utils/helpers/createUUID.js +0 -13
- package/src/utils/helpers/index.js +0 -9
- package/src/utils/helpers/objects.js +0 -33
- package/src/utils/helpers/repositoryResource.js +0 -22
- package/src/utils/helpers/sanitizeHtml.js +0 -55
- package/src/utils/helpers/text.js +0 -23
- package/src/utils/index.js +0 -22
- package/src/utils/number/DecimalFormat.js +0 -410
- package/src/utils/number/__tests__/formatValue.spec.js +0 -36
- package/src/utils/number/__tests__/parseNumbers.spec.js +0 -50
- package/src/utils/number/formatValue.js +0 -60
- package/src/utils/number/parseNumbers.js +0 -94
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as p,f as E,g as q,h as nt,i as X,j as Yt,k as Jt,l as b,n as gt,o as yt,p as te,q as S}from"./chunk-BODVDNNA.js";import{a as H,b as Hr,c as Gr}from"./chunk-73XVCQCW.js";import{c as Ht,d as Kr,e as Lt,f as Gt,g as Wr,h as zr,i as ct,j as Kt,k as Wt,l as zt,m as $t,n as qt,o as $r,p as qr,q as Xt,r as ft,s as Zt,t as Xr}from"./chunk-CPYNQW3X.js";import{a as et,b as Qr}from"./chunk-YUOGIFZH.js";import{a as f}from"./chunk-VGAPPKHA.js";import{a as Zr,e as Qt,h as rt,l as it,m as Ft,w as j}from"./chunk-LYBG43T6.js";import{a as Ii,b as Ri,e as Li,f as vr,g as M}from"./chunk-LHZG2ET5.js";import{a as Pt,b as I,e as Mr,f as Ur,g as y,h as Pr,l as mt,v as _r}from"./chunk-77CGPEAQ.js";var gi=Pt((jh,fi)=>{"use strict";function zi(s,t){for(var e=-1,r=t.length,i=s.length;++e<r;)s[i+e]=t[e];return s}fi.exports=zi});var Ai=Pt((Vh,Ci)=>{"use strict";var yi=Ri(),$i=Li(),qi=Ii(),bi=yi?yi.isConcatSpreadable:void 0;function Xi(s){return qi(s)||$i(s)||!!(bi&&s&&s[bi])}Ci.exports=Xi});var vi=Pt((Uh,_i)=>{"use strict";var Zi=gi(),Qi=Ai();function Mi(s,t,e,r,i){var n=-1,o=s.length;for(e||(e=Qi),i||(i=[]);++n<o;){var a=s[n];t>0&&e(a)?t>1?Mi(a,t-1,e,r,i):Zi(i,a):r||(i[i.length]=a)}return i}_i.exports=Mi});var Ei=Pt((Ph,Di)=>{"use strict";var Yi=vi(),Ji=1/0;function tn(s){var t=s==null?0:s.length;return t?Yi(s,Ji):[]}Di.exports=tn});var O=class extends p{getInitialChildModelLinks(){let t=[];return this.collection.forEach(e=>{typeof e?.getInitialChildModelLinks=="function"&&t.push(...e.getInitialChildModelLinks())}),t}setChildModels(t,e){this.collection.forEach(r=>{typeof r.setChildModels=="function"&&r.setChildModels(t,e)})}};var C=class extends p{constructor(t=[]){if(super(t),!Array.isArray(t))throw new f(`${t} is not an Array`)}get layouthint(){return this.collection}has(...t){return(t.length>0?[...t]:[]).flat().some(r=>this.layouthint.includes(r)||this.layouthint.some(i=>i.startsWith(r)))}hasExact(...t){return(t.length>0?[...t]:[]).flat().some(r=>this.layouthint.includes(r))}getByLayoutHint(t){let e=null;return typeof t=="function"&&(e=this.layouthint.find(t)),typeof t=="string"&&(e=this.layouthint.find(r=>r.startsWith(t.toString()))),e||null}getLayoutHintValue(t){let e=t.endsWith(":")?t.substr(0,t.length-1):t,r=this.getByLayoutHint(i=>i.startsWith(`${e}=`)||i.startsWith(`${e}:`));return r?r.substr(e.length+1):null}getLayoutHintValues(t){if(!this.has(t))return null;let e=this.getLayoutHintValue(t);return e?e.split(";"):[]}};var T=class s{_configuration;_hasConfiguration=!1;constructor(t){this._hasConfiguration=Array.isArray(t),this._configuration=t??[]}includeLayoutHints(t){let e=this._configuration.filter(r=>{let[i]=Object.keys(r),n=r[i];return n.layouthint?n.layouthint.some(o=>t.includes(o)):!1});return new s(e)}excludeLayoutHints(t){let e=this._configuration.filter(r=>{let[i]=Object.keys(r),n=r[i];return n.layouthint?!n.layouthint.some(o=>t.includes(o)):!0});return new s(e)}get config(){return this._configuration.map(t=>{let[e]=Object.keys(t),r=t[e],i=[];return"labelTypes"in r?i=r.labelTypes:"propertyTypes"in r?i=r.propertyTypes:"sectionReferenceTypes"in r?i=r.sectionReferenceTypes:"textFragmentTypes"in r&&(i=r.textFragmentTypes),{type:e,label:r.label,types:i,layouthint:new C(r.layouthint),icon:"icon"in r?r.icon:""}})}hasConfig(){return this._hasConfiguration}hasContent(){return this.config.some(t=>t.type==="configElement")}hasLayoutHint(t){return this.config.some(e=>e.layouthint.has(t))}byTypes(t=[]){return!t||t.length===0?this.config:this.config.filter(e=>t.includes(e.type))}get labelConfig(){return this.config.filter(t=>t.type==="labelElement")}getAllSectionReferenceTypes(){return this.config.filter(t=>t.type==="contentElement").flatMap(t=>t.types)}getContentElementConfigBySectionReferenceType(t){return this.config.filter(e=>e.type==="contentElement"&&e.types.includes(t))}getContentConfiguredLabel(t,e=""){let r=this.labelConfig.length>0?this.labelConfig[0].types:[];if(t&&r.length>0){let i=t.getLabelElementByIds(r).filter(n=>n.value&&n.value!=="");if(i.length>0){let n=r.filter(o=>(i.some(a=>o===a._id),!1)).map(o=>i.find(l=>l._id===o));if(n.length>0&&n[0]!==void 0)return n[0].value}}return e}get hasContentFromData(){return it()}};var ee=I(et(),1);import{immerable as Fi}from"immer";import{klona as wi}from"klona/full";var h=class{static[Fi]=!0;_data;_contributions;_layouthint;_modelOptions;constructor(t,e,r={origin:"",contextPath:j()}){typeof t=="object"&&t!=null?this._data=t:this._data={},typeof e=="object"&&e!=null?this._contributions=e:this._contributions={},this._modelOptions=r;let i=this.getContributionAsArray("layouthint",[]);this._layouthint=new C(i)}get data(){return this._data}replaceData(t){this._data=t}get contributions(){return this._contributions}get modelOptions(){return this._modelOptions}get origin(){return this._modelOptions.origin}get contextPath(){return this._modelOptions.contextPath}get layouthint(){return this._layouthint}getData(t,e){return e?(0,ee.get)(this.data,t,e):(0,ee.get)(this.data,t)}getDataAsString(t,e){let r=this.getData(t,e);return typeof r=="string"?r:e}getDataAsNumber(t,e){let r=this.getData(t,e);return typeof r=="number"?r:e}getDataAsBoolean(t,e){let r=this.getData(t,e);return typeof r=="boolean"?r:e}getDataAsArray(t,e){let r=this.getData(t,e);return Array.isArray(r)?r:e}getDataAsObject(t,e){let r=this.getData(t,e);return typeof r=="object"?r:e}getContribution(t,e){return(0,ee.get)(this.contributions,t,e)}getContributionAsArray(t,e){let r=this.getContribution(t,e);return Array.isArray(r)?r:e}getContributionAsObject(t,e){let r=this.getContribution(t,e);return typeof r=="object"?r:e}getContributionAsString(t,e){let r=this.getContribution(t,e);return typeof r=="string"?r:e}getContributionAsBoolean(t,e){let r=this.getContribution(t,e);return typeof r=="boolean"?r:e}getContributionAsNumber(t,e){let r=this.getContribution(t,e);return typeof r=="number"?r:e}hasData(){return Object.keys(this.data).length>0}clone(){return wi(this)}};var Dr=I(vr(),1);import{immerable as Ni}from"immer";var F=class s{[Ni]=!0;_key;_data;_contributions;_locale="en";_parameters;_origin;_contextPath=j();_requestHref;constructor(t,e,r,i){this._key=t??"unknown",this._data=e,this._contributions=r,this._locale=i??"en"}static create(t){let e=new s;if((0,Dr.default)(t,"data")&&(0,Dr.default)(t,"contributions")){let[r]=Object.keys(t.data),[i]=Object.keys(t.contributions);e.key=t.key??i,e.data=t.data?.[r],e.contributions=t.contributions?.[i],e.origin=t.origin,e.contextPath=t.contextPath}return e}get resourcetype(){let t=this.contributions?.resourcetype;return typeof t=="string"?t:""}get modelOptions(){return{origin:this.origin,contextPath:this.contextPath}}set origin(t){this._origin=t??""}get origin(){return this._origin}set contextPath(t){this._contextPath=t??j()}get contextPath(){return this._contextPath}set locale(t){this._locale=t}get locale(){return this._locale}set key(t){this._key=t}get key(){return this._key}set data(t){this._data=t}get data(){return this._data}set contributions(t){this._contributions=t}get contributions(){return this._contributions}set parameters(t){this._parameters=t}get parameters(){return this._parameters}set requestHref(t){this._requestHref=t}get requestHref(){return this._requestHref}static rehydrate(t){let e=new s;return e.origin=t.origin,e.contextPath=t.contextPath,e.locale=t.locale,e.key=t.key,e.data=t.data,e.contributions=t.contributions,e}};var G=class s extends h{_href;_icon;_targetModel;_isCacheable=!1;constructor(t,e,r){super(t,e,r),this._href=this.createHref()}static create(t,e,r,i){return new s({name:t,href:e.toString()},{name:t,label:r},i)}createHref(){let t=new b(this.getDataAsString("href",""),this.resourcetype,this.modelOptions);return this.handleInitialFilters(t),t}handleInitialFilters(t){if(this.layouthint.has(Xt)){let e={},r=Xt.length;for(let i of this.layouthint.filter(n=>n.startsWith(Xt))){let n=i.substring(r),o=Yt.fromString(n);o.name&&(e[o.name]||(e[o.name]=[]),typeof o.value=="string"&&e[o.name].push(o.value))}Object.keys(e).forEach(i=>{let n=e[i].join(",");t.addParameter(i,n)})}}get key(){return this.getDataAsString("name","")}get label(){return this.getContributionAsString("label",this.key)}get resourcetype(){return this.getContributionAsString("resourcetype","")}get group(){return this.getContributionAsString("group",this.getDataAsString("group",""))}get href(){return this._href}set href(t){this._href=t}get links(){return"components"in this.data&&"components"in this.contributions?new A({components:this.data.components},{components:this.contributions.components}):new A}isActive(t){return t.href.startsWith(this.href)}set icon(t){this._icon=t}get icon(){return this._icon}get targetModel(){return this._targetModel}set targetModel(t){this._targetModel=t}get isCacheable(){return this._isCacheable}set isCacheable(t){this._isCacheable=t}get filterName(){let t=this.getDataAsObject("filter");if(t&&"name"in t&&typeof t.name=="string")return t.name}get hasProcessStatusSettings(){return"processStatus"in this.data&&"processStatus"in this.contributions}get processStatus(){if(this.hasProcessStatusSettings)return new bt(this.data.processStatus,this.contributions.processStatus)}};var Yr=(s,t)=>{if(!s&&!t)return[];let e=[];if(s){let r=s;for(let i of Object.keys(r)){let n=r[i];if(Array.isArray(n))for(let o of n)e.push({data:{group:i,...o},contributions:{name:o.name}});else e.push({data:{name:i,group:i,...n},contributions:{name:i}})}}if(t){let r=t;for(let i of Object.keys(r)){let n=r[i];if(Array.isArray(n))for(let o of n){let a=e.findIndex(l=>l.data?.name===o.name);a>-1&&(e[a]={...e[a],contributions:{...o,group:i}})}else{let o=e.findIndex(a=>a.data?.name===i);o>-1?e[o]={...e[o],contributions:{name:i,...n}}:"href"in n&&e.push({data:{name:i,href:n.href},contributions:{name:i}})}}}return e};var A=class s extends p{constructor(t,e,r){super();let i=Yr(t,e);this.collection=i.filter(n=>!n.contributions.layouthint?.includes(Xr)).map(n=>new G(n.data,n.contributions,r))}static create(t,e,r,i){let n="_links"in t?t._links:null,o=typeof e=="object"&&e!==null&&"_links"in e&&typeof e._links=="object"?{...e._links}:{};return new s(Array.isArray(n)?n[0]:n,{self:{resourcetype:r},...o},i)}get links(){return this.collection}set links(t){this.collection=t}getLinkByKey(t){return this.find(e=>e.key===t)}hasLinkByKey(t){return this.all.some(e=>e.key===t)}getLinkByHref(t){return this.find(e=>e.href.equals(t))}getLinksByGroup(...t){let e=t.length>0?[...t]:[],r=this.filter(n=>e.includes(n.group)),i=new s;return i.links=r,i}getLinkByResourceType(t){let e=new s;return e.collection=this.filter(r=>r.resourcetype===t),e}getLinksByLayoutHint(t){let e=new s;return e.collection=this.filter(r=>r.layouthint.has(t)),e}hasLinksByLayoutHint(t){return this.some(e=>e.layouthint.has(t))}toHrefArray(){return this.map(t=>t.href)}hasLink(t){return this.some(e=>e.href.equals(t.href))}update(t){let e=this.links.findIndex(r=>r.key===t.key);return e===-1?(this.collection=[...this.collection,t],this):(this.collection=[...this.links.slice(0,e),t,...this.links.slice(e+1)],this)}get routePath(){if(this.length===0)return"__NON_EXISTING_ROUTE__";let t=this.map(e=>e.href.path).join("|");return this.length>1?`(${t})`:t}};var bt=class extends h{get concequenceType(){return this.getContributionAsString("consequenceType","").toLowerCase()}get transition(){return this.getContributionAsString("transition","").toLowerCase()}get isApplicable(){return this.getDataAsBoolean("applicable",!1)}get isCompleted(){return this.getDataAsBoolean("completed",!1)}get isNeeded(){let t=this.getDataAsString("needed","unknown");return t==="unknown"?null:t==="true"}get state(){return this.getDataAsString("state","")}get canComplete(){return this.getDataAsBoolean("canComplete",!0)}get links(){return A.create(this.contributions,null,"process-status",this.modelOptions)}get referenceDate(){return E.now()}get conceptLink(){let t=this.links.getLinkByKey("concept");return t&&(t.href=t.href.addParameter(y,this.referenceDate),t.isCacheable=!0),t}};var u=class extends h{_key;_locale;_lastServerUpdate;_links;_childModels=[];_modularuiResponse;_connectKey;constructor(t=new F){super(t.data,t.contributions,t.modelOptions),this._modularuiResponse=t,this._key=t.key,this._locale=t.locale,this._lastServerUpdate=Date.now(),this._links=A.create(this.data,this.contributions,this.resourcetype,this.modelOptions)}get modularuiResponse(){return this._modularuiResponse}set connectKey(t){this._connectKey=t}get connectKey(){return this._connectKey}static get modelName(){throw new M("No modelName set on the resource model")}static isApplicableModel(t){throw t instanceof F?new Error(`No isApplicableModel condition set on model: ${this.modelName}`):new f("Given argument for isApplicableModel is not a ModularUIResponse")}get lastServerUpdate(){return this._lastServerUpdate}set lastServerUpdate(t){this._lastServerUpdate=t}get locale(){return this._locale}get key(){return this._key}set key(t){this._key=t}get resourcetype(){return this.getContributionAsString("resourcetype","unknown")}get label(){return this.getContributionAsString("label","")}get links(){return this._links}get selflink(){let t=this.links.getLinkByKey("self");if(t==null)throw new M(`Could not find self link for ${this.key===null?"unknown":this.key}`);return t}get selfhref(){return this.selflink?.href}getInitialChildModelLinks(){return[]}get childModels(){return this._childModels}addChildModels(t=[],e=[]){let r=t?.flat(),i=e?.flat();return this._childModels=r,this.setChildModels(r,i),this}setChildModels(t,e){if(!t&&!e)throw new f("No models send to setChildModels")}};var Z=class extends u{get type(){return"ConceptTypeDetail"}static get modelName(){return"ConceptTypeDetailModel"}static isApplicableModel(t){return t.resourcetype==="ConceptTypeDetail"}get key(){return this.getDataAsString("_id","concepttype")}get label(){return this.getDataAsString("label","")}get isCoreTaxonomy(){return this.getDataAsBoolean("coreTaxonomy",!1)}get icon(){return this.getDataAsString("icon","")}get textColor(){return this.getDataAsString("textColor","#000")}get backgroundColor(){return this.getDataAsString("backgroundColor","#fff")}get borderColor(){return this.getDataAsString("lineColor","#000")}get labelTypes(){return this.getDataAsArray("labelTypes")||[]}get propertyTypes(){return this.getDataAsArray("propertyTypes")||[]}get textFragmentTypes(){return this.getDataAsArray("textFragmentTypes")||[]}get sectionReferenceTypes(){return this.getDataAsArray("sectionReferenceTypes")||[]}isOfConceptType(t){return this.selfhref?.equals(t)}};var Ct=class extends h{_entryDate;_links;_conceptType;constructor(t,e,r){super(t,{},r),this._entryDate=e,this._links=A.create(t??{},null,"concept",this.modelOptions)}get type(){return"ConceptLinkModel"}getInitialChildModelLinks(){return this.conceptTypeLink?(this.conceptTypeLink.isCacheable=!0,[this.conceptTypeLink]):[]}setChildModels(t,e){if(this.conceptTypeLink){let r=this.conceptTypeLink.href,i=t.find(n=>n instanceof Z?n.selfhref?.equalsWithParameters(r):!1);this.conceptType=i}}get conceptType(){return this._conceptType}set conceptType(t){this._conceptType=t}get key(){return this.getDataAsString("_id","")}get label(){let t=this.getDataAsString("label");return t||this.getDataAsString("conceptLabel","")}get links(){return this._links}get selflink(){let t=this.links.getLinkByKey("self");if(t===null)throw new Error(`Could not find self link for ${this.key===null?"unknown":this.key}`);return t}get selfhref(){return this._entryDate?this.selflink?.href.addParameter(y,this._entryDate):this.selflink?.href}get conceptTypeLink(){return this.links.getLinkByKey("concepttype")}get concepttypeHref(){return this.conceptTypeLink?.href??null}get taxonomyType(){return"default"}get modelCategory(){return this.getDataAsString("modelCategory")}get sectionId(){return this.data.section?._id}get fragment(){return this.data.section?.fragment}asLinkModel(){let t=G.create(this.key,"",this.label,this.modelOptions);return this.selfhref&&(t.href=this.selfhref),t}};var At=class extends h{_concept;constructor(t,e,r){super(t,void 0,r),this._concept=new Ct(t?.concept,e,this.modelOptions)}get selfhref(){throw new Error("Method not implemented.")}getInitialChildModelLinks(){return this.concept.getInitialChildModelLinks()}setChildModels(t,e){this.concept.setChildModels(t,e)}get type(){return this.getDataAsString("relationType","")}get key(){return this.type}get label(){return this.getDataAsString("relationLabel")}get direction(){return this.getDataAsString("relationDirection")}get relationTypeType(){return this.getDataAsString("relationTypeType","None")}get condition(){return this.getDataAsString("relationCondition")}get properties(){return this.getDataAsArray("properties")}get textfragments(){return this.getDataAsArray("textFragments")}get concept(){return this._concept}set concept(t){this._concept=t}};var re=class s extends O{_entryDate;_modelOptions;constructor(t,e,r){super(),this._entryDate=e,this._modelOptions=r||{origin:"",contextPath:j()},t&&this.createCollection(t,e)}createCollection(t,e){Array.isArray(t)?t.forEach(r=>{r instanceof At?this.add(r):this.add(new At(r,e,this._modelOptions))}):this.add(new At(t,e,this._modelOptions))}get types(){return this.collection.filter((t,e,r)=>r.findIndex(i=>i.key===t.key)===e).map(t=>({key:t.key,label:t.label}))}byType(t){return new s(this.filter(e=>e.key===t),this._entryDate,this._modelOptions)}get incoming(){return new s(this.filter(t=>t.direction==="incoming"),this._entryDate,this._modelOptions)}get outgoing(){return new s(this.filter(t=>t.direction==="outgoing"),this._entryDate,this._modelOptions)}hasIncoming(){return this.incoming.length>0}hasOutgoing(){return this.outgoing.length>0}};var V=class extends u{get type(){return"ContentType"}static get modelName(){return"ContentTypeModel"}static isApplicableModel(t){return t.resourcetype==="ContentTypeDetail"}get label(){return this.getDataAsString("label","")}get icon(){return this.iconLarge}get iconSmall(){return this.getDataAsString("iconSmall")}get iconMedium(){return this.getDataAsString("iconMedium")}get iconLarge(){return this.getDataAsString("iconLarge")}get description(){return this.getDataAsString("description")}};var R=class extends h{_links;_entryDate;_contentType;_items;constructor(t,e,r){super(t,{},r),this._entryDate=e,this._links=A.create(this.data,this.contributions,"content",this.modelOptions),this._items=[]}get type(){return"ContentLinkModel"}getInitialChildModelLinks(){return this.contentTypeLink?(this.contentTypeLink.isCacheable=!0,[this.contentTypeLink]):[]}setChildModels(t,e){if(this.contentTypeLink){let r=this.contentTypeLink.href;this.contentType=t.find(i=>i instanceof V?i.selfhref?.equalsWithParameters(r):!1)}}get contentType(){return this._contentType}set contentType(t){this._contentType=t instanceof V?t:void 0}set entryDate(t){this._entryDate=t}get key(){return this.getDataAsString("_id","")}get label(){return this.getDataAsString("label","")}get sourceLabel(){return this.getDataAsString("sourceLabel")}get abbreviation(){return this.getDataAsString("abbreviation")||this.getDataAsString("sourceAbbreviation")}get section(){return this.data.section}get encodedHref(){let t="/content/",e=new b(this.selfhref.path,"",this.modelOptions),r=e.path,i=this.section?r.substring(t.length,r.lastIndexOf("/")):r.substring(t.length);if(this.section!=null){let n=encodeURIComponent(this.section);e.path=`${t}${encodeURIComponent(i)}/${n}`}else e.path=`${t}${encodeURIComponent(i)}`;return this._entryDate!==null&&e.addParameter(y,this._entryDate),e}get links(){return this._links}get selflink(){let t=this.links.getLinkByKey("self");if(Qt("COMPLETE_SOURCE",!1)&&(this.links.hasLinkByKey("content")&&(t=this.links.getLinkByKey("content")),this.section!=null&&t&&!t.href.path.endsWith(encodeURIComponent(this.section))&&(t.href.addParameter("complete","true"),t.href.hash=this.section||"")),!t)throw new Error(`Could not find self link for '${this.key||"unknown"}'`);return t.href.state?t.href.state.fragment=this.fragment:t.href.state={fragment:this.fragment},t}get contentHref(){let t=this.data._links.self.href;if(this.data._links.content)t=this.data._links.content.href;else if(this.section){let e=encodeURIComponent(this.section);t.endsWith(e)&&(t=t.substring(0,t.lastIndexOf("/"+e)))}return new b(t).addParameter("complete","true").addParameter(y,this._entryDate)}get sectionHref(){if(this.section){let e=this.contentHref;return new b(e.path+"/"+encodeURIComponent(this.section)).addParameter(y,this._entryDate)}return null}get selfhref(){return this._entryDate?this.selflink.href.addParameter(y,this._entryDate):this.selflink.href}get subSectionID(){return this.selfhref.hash}get contentTypeLink(){return this.links.getLinkByKey("contenttype")}get contentTypeHref(){return this.contentTypeLink?.href}get fragment(){return this.data.sectionFragment}set items(t){this._items=t}get items(){return this._items}};var ie=class extends h{_entryDate;_links;constructor(t,e){super(t),this._links=A.create(this.data,null,"concept",this.modelOptions),this._entryDate=e}get links(){return this._links}get link(){let t=this.selfhref?.path,e=this.links.getLinkByKey("content")?.href.path;if(t&&e)return new R({...this.data,label:this.label,section:this.sectionId,sectionFragment:this.fragment},this._entryDate,this.modelOptions)}get selflink(){return this.links.getLinkByKey("self")}get selfhref(){return this.selflink?.href}get type(){return this.getDataAsString("type","")}get label(){return this.getDataAsString("label")}get sourceLabel(){return this.getDataAsString("sourceLabel")}get sourceAbbreviation(){return this.getDataAsString("sourceAbbreviation")}get referenceHash(){if(this.selfhref)return gt(this.selfhref)}get sectionId(){return this.getDataAsString("sectionId")}get fragment(){return this.getDataAsObject("sectionFragment")}};var ne=class extends p{constructor(t,e){super(),this.collection=this.createSourceReferences(t||[],e)}createSourceReferences(t,e){return t.map(r=>new ie(r,e))}byTypes(t){return this.filter(e=>t.includes(e.type))}};var K=class extends u{_conceptType;_relations;_sourceReferences;constructor(t){super(t),this._relations=new re(this.data.relations,this.entryDate,this.modelOptions)}get type(){return"ConceptDetail"}static get modelName(){return"ConceptDetailModel"}static isApplicableModel(t){return t.resourcetype==="ConceptDetail"}getInitialChildModelLinks(){let t=this.links.getLinkByKey("concepttype"),e=this.relationsCollection.getInitialChildModelLinks();return t?(t.isCacheable=!0,[t,...e]):e}setChildModels(t,e){let r=t.find(i=>i instanceof Z);r instanceof Z&&(this.conceptType=r),this.relationsCollection.setChildModels(t,e)}get key(){return this.getDataAsString("_id","concept")}get selfhref(){let{href:t}=this.selflink;return this.entryDate?t.setParameter(y,this.entryDate):t.removeParameter(y),t}get diagramLinks(){return this.links.getLinksByGroup("diagram")}get conceptType(){return this._conceptType}set conceptType(t){this._conceptType=t}get label(){return this.getDataAsString("conceptLabel","")}get modelCategory(){return this.getDataAsString("modelCategory","")}get taxonomyType(){return this.getDataAsString("taxonomyType")}get relationsCollection(){return this._relations}get formula(){return this.getDataAsString("formula")}get labels(){if(this.conceptType?.labelTypes){let t=this.getDataAsArray("labels",[]);return this.conceptType.labelTypes.map(e=>{let r=t.find(i=>i.type===e._id);return{...e,...r}})}return[]}getLabelElementByIds(t){return this.labels.filter(e=>t.includes(e._id))}get conceptProperties(){if(this.conceptType?.propertyTypes){let t=this.getDataAsArray("properties",[]);return this.conceptType.propertyTypes.map(e=>{let r=t.find(i=>i.type===e._id);return{...e,...r}})}return[]}getConceptPropertiesByIds(t){return this.conceptProperties.filter(e=>t.includes(e._id))}get textfragments(){let t=this.getDataAsArray("textFragments",[]),e=t.map(i=>({...this.conceptType?.textFragmentTypes.find(o=>i.type===o._id),...i})),r=this.conceptType?.textFragmentTypes?this.conceptType.textFragmentTypes.filter(i=>!t.some(n=>n.type===i._id)):[];return[...e,...r]}getTextFragmentByKeys(t){return this.textfragments.filter(e=>"type"in e&&typeof e.type=="string"&&t.includes(e.type))}getSourceReferenceCollection(t=[]){return this._sourceReferences||(this._sourceReferences=new ne(this.getSourceReferencesForCurrentLanguage(t),this.entryDate)),this._sourceReferences}getSourceReferencesForCurrentLanguage(t){let e=this.getDataAsArray("sourceReferences",[]);if(e.length===0)return[];let r=3,i=e.map(a=>a.type.substring(a.type.length-r)),n=`_${this.locale}`;if(i.includes(n))return e.filter(a=>a.type.endsWith(n));let o=t.map(a=>`_${a.split("-")[0]}`);return e.filter(a=>{let l=a.type.substring(a.type.length-r);return!o.includes(l)})}get entryDate(){return this.getDataAsString(`filter.${y}.value`)}isOfConceptType(t){return this.conceptType?.isOfConceptType(t)??!1}};import{immerable as Bi}from"immer";var wt=class{[Bi]=!0;_id;_defaultMessage;_parameters;_isClientConstraint;_layouthint;constructor(t,e,r,i=!1,n=new C){this._id=t,this._parameters=r,this._defaultMessage=e,this._isClientConstraint=i,this._layouthint=Array.isArray(n)?new C(n):n}get id(){return this._id}get defaultMessage(){return this._defaultMessage}get parameters(){return this._parameters}get isClientConstraint(){return this._isClientConstraint??!1}get layouthint(){return this._layouthint}get isMandatoryConstraint(){return this.id==="Constraint.Mandatory"}getMessage(){return{id:this.id,defaultMessage:this.defaultMessage??"",parameters:this.parameters??{}}}};var se=(i=>(i[i.FORM=0]="FORM",i[i.FORMOBJECT=1]="FORMOBJECT",i[i.ATTRIBUTE=2]="ATTRIBUTE",i[i.COMPOSITE_CHILDREN=3]="COMPOSITE_CHILDREN",i))(se||{}),U=class extends p{_type;constructor(t,e){super(),this._type=t,this.collection=[],e&&(this.collection=[...e.collection])}get type(){return this._type}get serverErrors(){return this.collection.filter(t=>!t.isClientConstraint)}findById(t){return this.collection.findIndex(e=>e.id===t)}addError(t,e,r,i){let n=this.findById(t);n>-1&&this.removeByIndex(n),this.add(new wt(t,e,r,!1,i))}removeError(t){let e=this.findById(t);this.removeByIndex(e)}addServerError(t,e,r,i){r?this.addError(t,e,r,i):this.addError(t,e,void 0,i)}removeServerError(t){this.removeError(t)}removeServerErrors(){this.serverErrors.forEach(t=>{this.removeError(t.id)})}addErrors(t){this.collection=[...this.collection,...t]}addConstraints(t){this.collection=[...this.collection,...t.map(e=>new wt(e.id,e.defaultMessage,e.parameters,!0))]}hasMandatoryError(){return this.collection.some(t=>t.isMandatoryConstraint)}};var oe=class s extends h{_entryDate;_links;constructor(t,e,r){super(t,{},r),this._entryDate=e,this._links=A.create(this.data,this.contributions,"subsection",this.modelOptions)}get referred(){return this.getDataAsBoolean("referred",!1)}get id(){return"id"in this.data?this.getDataAsString("id"):this.getDataAsString("_id")}get key(){return this.id}get body(){return yt(this.data.body)}get number(){return this.getDataAsString("number")}get label(){return this.getDataAsString("label","")}get subSections(){return this.data.subSections?this.data.subSections.map(t=>new s(t,this.entryDate,this.modelOptions)):[]}get links(){return this._links}get selflink(){return this.links.getLinkByKey("self")}get selfhref(){return this.selflink?.href}get entryDate(){return this._entryDate}get relatedConceptsHrefs(){let t=[];return this.relatedConceptsHref&&t.push(this.relatedConceptsHref),this.subSections.forEach(e=>{t.push(...e.relatedConceptsHrefs)}),t}get relatedConceptsHref(){let t=this.links.getLinkByKey("relatedConcepts");if(t){let{href:e}=t;if(e.hash.includes("/relatedConcepts")){let r=e.path.substring(0,e.path.lastIndexOf("/"));e.path=r+"/"+e.hash,e.hash=e.hash.includes("#")?e.hash.substring(e.hash.indexOf("#")):""}return e.addParameter("entryDate",this.entryDate),e.setReferenceHash(this.referenceHash),e}}get referenceHash(){return gt(this.selfhref)}getReferredSections(){let t=[];for(let e of this.subSections){e.referred&&t.push(e);let r=e.getReferredSections();t.push(...r)}return t}};var st=class s extends h{_entryDate;_selflink;_childSections;constructor(t,e,r){super(t,{},r),this._entryDate=e,this._selflink=this.createSelfLink(),this._childSections=this.createChildSections()}get referred(){return this.getDataAsBoolean("referred",!1)}get selflink(){return this._selflink}createSelfLink(){let t=this.getDataAsString("_links.self.href");if(typeof t<"u")return G.create(this.key||"unknown",t,this.label,this.modelOptions)}get selfhref(){return this.selflink?.href}get entryDate(){return this._entryDate}get type(){return this.getDataAsString("type")}get sourceLabel(){return this.getDataAsString("sourceLabel")}get id(){let t=this.getDataAsString("id");return t||this.getDataAsString("_id","unknown")}get key(){return this.id}get label(){return this.getDataAsString("label","")}get number(){return this.getDataAsString("number")}get body(){let t=this.data.body;if(t)return yt(t)}get childSectionLinks(){let t=[];return this.data.childSections?t=this.data.childSections:this.data.sections&&(t=this.data.sections),t.map(e=>{let r=e.id||e._id,i=e._links;return new R({section:r,_id:r,label:e.label,sourceLabel:e.sourceLabel,_links:i},this.entryDate,this.modelOptions)})}get selfContentLink(){let t=this.data._links;return new R({section:this.id,_id:this.id,label:this.label,sourceLabel:this.sourceLabel,_links:t},this.entryDate,this.modelOptions)}createChildSections(){let t=[];return this.data.childSections?t=this.data.childSections:this.data.sections&&(t=this.data.sections),t.filter(e=>"body"in e).map(e=>new s(e,this.entryDate,this.modelOptions))}get childSections(){return this._childSections}set childSections(t){this._childSections=t||[]}get sections(){return this.data.sections?this.data.sections.map(t=>new s(t,this.entryDate,this.modelOptions)):[]}get subSections(){return Array.isArray(this.data.subSections)?this.data.subSections.map(t=>new oe(t,this.entryDate,this.modelOptions)):[]}get referenceHash(){return gt(this.selfhref)}getReferredSections(){let t=[];for(let e of this.subSections){e.referred&&t.push(e);let r=e.getReferredSections();t.push(...r)}for(let e of this.childSections){e.referred&&t.push(e);let r=e.getReferredSections();t.push(...r)}return t}};import{immerable as ji}from"immer";var Mt=class s{[ji]=!0;_content;constructor(t){this._content=t}static create(t){return typeof t=="object"&&t!==null&&"elements"in t&&Array.isArray(t.elements)?new s(t):new s}get fromData(){return it()}get header(){let t=null,e=null,r=this._content?.header?.label;r&&(t=r);let i=this._content?.header?.description;return i&&(typeof i=="object"&&"message"in i?e=i.message:typeof i=="string"&&(e=i)),{label:t,description:e}}mapToPropertyElement(t){let e=t.propertyElement;return{propertyElement:{label:e.label,layouthint:new C(e.layouthint),properties:"properties"in e?e.properties:[]}}}mapToTextFragmentElement(t){let e=t.textFragmentElement;return{textFragmentElement:{label:e.label,layouthint:new C(e.layouthint),textfragments:"textfragments"in e?e.textfragments.map(r=>typeof r=="object"?{...r,text:yt(r.text)||""}:r):[]}}}mapToContentElement(t){let e=t.contentElement;return{contentElement:{label:e.label,layouthint:new C(e.layouthint),sections:"sections"in e?e.sections.map(r=>new st(r)):[]}}}get elements(){return Array.isArray(this._content?.elements)?this._content.elements.filter(t=>t!=null).map(t=>{switch(Object.keys(t)[0]){case"propertyElement":return this.mapToPropertyElement(t);case"textFragmentElement":return this.mapToTextFragmentElement(t);case"contentElement":return this.mapToContentElement(t);default:return t}}):[]}get label(){return this._content?.label}get properties(){return this.elements.filter(t=>Object.keys(t)[0]==="propertyElement").map(t=>{let{propertyElement:e}=t;return"properties"in e?e.properties:[]}).flat()}getConceptPropertiesByLabels(t){return this.elements.filter(e=>Object.keys(e)[0]==="propertyElement").map(e=>e.propertyElement).filter(e=>Array.isArray(t)?t.includes(e.label):t===e.label).map(e=>"properties"in e?e.properties:[]).flat()}get textfragments(){return this.elements.filter(t=>Object.keys(t)[0]==="textFragmentElement").map(t=>{let{textFragmentElement:e}=t;return"textfragments"in e?e.textfragments:[]}).flat()}getTextFragmentsByLabels(t){return this.elements.filter(e=>Object.keys(e)[0]==="textFragmentElement").map(e=>e.textFragmentElement).filter(e=>Array.isArray(t)?t.includes(e.label):t===e.label).map(e=>"textfragments"in e?e.textfragments:[]).flat()}get sections(){return this.elements.filter(t=>Object.keys(t)[0]==="contentElement").map(t=>t.contentElement.sections).flat()}getSectionsByType(t){return this.sections.filter(e=>{let r=e.type;return r?Array.isArray(t)?t.includes(r):t===r:!1})}getSectionsByLabels(t){return this.elements.filter(e=>Object.keys(e)[0]==="contentElement").map(e=>e.contentElement).filter(e=>Array.isArray(t)?t.includes(e.label):t===e.label).map(e=>e.sections).flat()}getReferredSections(){let t=[];for(let e of this.sections)t.push(...e.getReferredSections());return t}};var ae=class{_id;_validateMethod;_defaultMessage;_parameters;_useClientsideValidation;constructor(t,e,r,i,n=rt("USE_CLIENTSIDE_VALIDATION")){this._id=t,this._validateMethod=e,this._defaultMessage=r,this._parameters=i,this._useClientsideValidation=n}get id(){return this._id}get defaultMessage(){return this._defaultMessage||"Missing default message"}get parameters(){return this._parameters}hasValidation(){return this._validateMethod!=null}validate(t){let e=this._validateMethod;return this._useClientsideValidation&&e?e(t):!0}get isMandatoryConstraint(){return this._id==="mandatory"||this._id==="Constraint.Mandatory"}};var m=class extends p{addConstraint(t,e,r,i={},n=rt("USE_CLIENTSIDE_VALIDATION")){this.add(new ae(t,e,r,i,n))}validate(t){return this.isEmpty()||this.collection.every(e=>e.validate(t))}hasMandatoryConstraint(){return this.collection.some(t=>t.isMandatoryConstraint)}invalidConstraints(t){return t===""&&!this.hasMandatoryConstraint()?[]:this.collection.filter(e=>!e.validate(t))}};var le=class{get id(){return"Constraint.Mandatory"}hasValidation(){return!0}get defaultMessage(){return"Field is mandatory"}get parameters(){return{}}validate(t){if(t==null)return!1;if(typeof t!="string")throw new TypeError(`isNotEmptyString: Not comparing to string: ${typeof t}`);return t!==""}get isMandatoryConstraint(){return!0}};var ue="Constraint.InvalidLengthExact",ce="Constraint.InvalidLengthBetween",de="Constraint.InvalidLengthTooShort",he="Constraint.InvalidLengthTooLong",pe=class{_minLength;_maxLength;constructor(t,e){this._minLength=t,this._maxLength=e}get id(){return this.minLength&&this.maxLength&&this.minLength===this.maxLength?ue:this.minLength&&this.maxLength?ce:this.minLength?de:this.maxLength?he:"Constraint.NoLengthConstraint"}get minLength(){return this._minLength}get maxLength(){return this._maxLength}hasValidation(){return!0}isExactLength(t){if(typeof t!="string")throw new TypeError("isExactLength: Not comparing to string");if(this.minLength==null)throw new Error("isExactLength: Min and max length not set");return t.length===this.minLength}isBetween(t){if(typeof t!="string")throw new TypeError("isBetween: Not comparing to string");if(this.minLength==null||this.maxLength==null)throw new Error("isBetween: Min or max length not set");return this.isLongEnough(t)&&this.isSmallEnough(t)}isLongEnough(t){if(typeof t!="string")throw new TypeError("isLongEnough: Not comparing to string");if(!this.minLength)throw new Error("isLongEnough: Min length not set");return t.length>=this.minLength}isSmallEnough(t){if(typeof t!="string")throw new TypeError("isSmallEnough: Not comparing to string");if(!this.maxLength)throw new Error("isSmallEnough: Max length not set");return t.length<=this.maxLength}get defaultMessage(){switch(this.id){case ue:return"Length must be precisely ${length} characters";case ce:return"Length must be between ${min-length} and ${max-length} characters";case de:return"The length of the value must be larger than ${min-length}";case he:return"The length of the value must be smaller than ${max-length}";default:return""}}get parameters(){switch(this.id){case ue:return{length:this.minLength};case ce:return{"min-length":this.minLength,"max-length":this.maxLength};case de:return{"min-length":this.minLength};case he:return{"max-length":this.maxLength};default:return{}}}validate(t){switch(this.id){case ue:return this.isExactLength(t);case ce:return this.isBetween(t);case de:return this.isLongEnough(t);case he:return this.isSmallEnough(t);default:return!0}}get isMandatoryConstraint(){return!1}};var d=class extends h{_label;_links;_parentKey;_hasContentConfiguration=!1;_content;_concept;attributeReferenceDate;_lastModification=0;_initvalue;_value;_inputvalue;_previouslyValidatedValue;attributeErrors;_serverConstraints=new m;_useClientsideValidation=rt("USE_CLIENTSIDE_VALIDATION",!0);_isValid=!0;_mandatory;_readonly=!1;_disabled=!1;_isResult;_isHidden=!1;_isEditable=!1;_layoutHintRules;_placeholder;constructor(t,e,r){super(t,e,r),this.attributeReferenceDate=this.getDataAsString("referenceDate",E.now()),this._links=A.create(this.data,this.contributions,"attribute",this.modelOptions),this._content=this.createAttributeContent(),this._label=this.createLabel(),this._placeholder=this.getContributionAsString("placeholder"),this._initvalue=this.data.value,this._inputvalue=this.getInitialInputValue(this.data.value),this._value=this.data.value,this._isResult=this.getDataAsBoolean("isResult",!1),this._mandatory=this.layouthint.has(Ht)||this.getContributionAsBoolean("mandatory",!1),this._disabled=this.layouthint.has(Kr),this.attributeErrors=this.createErrorCollection(this.data.message)}createLabel(){return this.hasContentFromData()&&this.content?.label&&(this._label=this.content.label),this.getContributionAsString("label","")}createErrorCollection(t){let e=new U(2);return typeof t=="object"&&t!=null&&e.addServerError(t.id,t.message,t.properties,t.layouthint),e}static isApplicableModel(t){throw typeof t!="object"?new f("Given argument for isApplicableModel is not a contributions object"):new Error("isApplicableModel must be implemented on an attribute")}get key(){return this.getDataAsString("key","unknown")}get parentKey(){return this._parentKey||""}set parentKey(t){this._parentKey=t}get name(){return this.key}get label(){return this._label}set label(t){this._label=t}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t}get isEditable(){return this._isEditable}set isEditable(t){this._isEditable=t}get isVisible(){return!this._isHidden}get isHidden(){return this._isHidden}set isHidden(t){this._isHidden=t}show(){this.isHidden=!1}hide(){this.isHidden=!0}get links(){return this._links}get downloadLink(){let t=this.links.getLinksByGroup("download").first;if(t&&t.key===this.key)return t}getInitialChildModelLinks(){return!this.hasContentFromData()&&this.hasContentConfiguration()&&this.conceptLink?[this.conceptLink]:[]}setChildModels(t,e){let r=this.conceptLink?.href;if(r){let i=t.find(n=>n instanceof K?n.selfhref.equalsWithParameters(r):!1);this.concept=i}}get conceptLink(){let t=this.links.getLinkByKey("concept");return t&&(t.href=t.href.addParameter(y,this.referenceDate),t.isCacheable=!0),t}get concept(){return this._concept}set concept(t){this._concept=t}get referenceDate(){return this.attributeReferenceDate}set referenceDate(t){this.attributeReferenceDate=t}hasContentFromData(){return it()}setHasContentConfiguration(t){this._hasContentConfiguration=t}hasContentConfiguration(){return this._hasContentConfiguration}createAttributeContent(){if("content"in this.data)return new Mt(this.data.content)}get content(){return this._content}indicateContentConfiguration(t){if(t){let e=t.questions?.hasConfig(),r=t.isConfiguredEndResultAttribute(this.key),i=t.isConfiguredIntermediateResultAttribute(this.key);this.setHasContentConfiguration(e||r||i)}}getContentConfiguredLabel(t){return this.hasContentFromData()?this.content?.label??this.label:t.getContentConfiguredLabel(this.concept,this.label)}get defaultAlignment(){return"left"}get alignment(){let t=this.layouthint.getByLayoutHint("align-"),e=t?t.substring(6):this.defaultAlignment;return e==="left"||e==="center"||e==="right"?e:this.defaultAlignment}get readonlyWidth(){return"MEDIUM"}get layoutHintRules(){return this._layoutHintRules}set layoutHintRules(t){this._layoutHintRules=t}processLayoutHintRules(t){this.layoutHintRules&&this.layoutHintRules.process(this,t)}get lastModification(){return this._lastModification}set lastModification(t){this._lastModification=t}updateLastModification(){this.lastModification=Date.now()}isChangedSince(t){return this.lastModification>t}getInitialInputValue(t){return t}get initvalue(){return this.getInitValue()}getInitValue(){return this._initvalue}setInitValue(t){this._initvalue=t}hasValue(){return this._value!=null&&this._value!==""}getValue(){return this.hasValue()?this._value:null}setValue(t){this._value=t}get value(){return this.getValue()}set value(t){this.updateLastModification(),this._value=t}getInputValue(){let t=this._inputvalue;return t?t.toString():""}setInputvalue(t){this._inputvalue=t}get inputvalue(){return this.getInputValue()}set inputvalue(t){this._inputvalue=t,this.value=t,this.validate(t)}formatValue(t){return JSON.stringify(t)}get readonlyvalue(){return this.value?this.value.toString():""}get validateValue(){return this.inputvalue}get mandatory(){return this._mandatory||!1}set mandatory(t){t!==this._mandatory&&(this._previouslyValidatedValue=null),this._mandatory=t}get configuredMandatory(){return this.layouthint.has(Ht)??this.getContributionAsBoolean("mandatory")}get readonly(){return this._readonly||this.getContributionAsBoolean("readonly")===!0||this.getDataAsBoolean("static")===!0||this.isResult}set readonly(t){this._readonly=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get isResult(){return this._isResult}set isResult(t){this._isResult=t}get format(){return this.getContributionAsString("format")}get formatLabel(){return this.format}get minLength(){return this.getContributionAsNumber("minLength")}get maxLength(){return this.getContributionAsNumber("maxLength")}get operator(){return this.getContributionAsString("operator","")}get assistantMessage(){return this.getContributionAsString("assistant")}get isValid(){return this.validate(this.validateValue)}getIsValid(){return this._isValid}setIsValid(t){this._isValid=t}getServerConstraints(){return this._serverConstraints}get constraintCollection(){let t=new m;return t.add(this._serverConstraints),this.mandatory&&t.add(new le),(this.minLength||this.maxLength)&&t.add(new pe(this.minLength,this.maxLength)),t.add(this.addConstraints()),t}addConstraints(){return new m}setUseClientsideValidation(t){this._useClientsideValidation=t}useClientsideValidation(){return this._useClientsideValidation??!0}validate(t){return this.useClientsideValidation()?(this.isOptionalAndEmpty(t)?this._isValid=!0:this.getPreviouslyValidatedValue()!==t&&(this._isValid=this.constraintCollection.validate(t)),this.setPreviouslyValidatedValue(t),this._isValid):!0}setPreviouslyValidatedValue(t){this._previouslyValidatedValue=t}getPreviouslyValidatedValue(){return this._previouslyValidatedValue}isOptionalAndEmpty(t){if(t===void 0)throw new f("isOptionalAndEmpty method needs value argument");return!this.mandatory&&t===""}get errorCollection(){let t=new U(2,this.attributeErrors);return t.addConstraints(this.constraintCollection.invalidConstraints(this.validateValue)),t}inError(){return!this._isValid&&this.isChangedSince(0)}resetErrors(){this.attributeErrors.clear()}addServerError(t){this.attributeErrors.addServerError(t.id,t.message,t.properties,t.layouthint)}removeServerError(t){this.attributeErrors.removeServerError(t)}hasServerErrors(){return this.errorCollection.serverErrors.length>0}hasErrors(){return this.errorCollection.hasItems()}addMissingError(t){this.attributeErrors.addServerError("Constraint.Missing")}removeMissingError(){this.removeServerError("Constraint.Missing")}addServerConstraint(t,e,r){this._serverConstraints.addConstraint(t,void 0,e||"",r,this.useClientsideValidation())}formatParameters(t){if(!t)return{};let e={};return Object.keys(t).forEach(r=>{let i=t[r];r.endsWith("-number")||r.endsWith("-date")?e[r]=this.formatValue(i):e[r]=i}),e}get hasDynamicValidationData(){return!0}updateValidations(t){t.some(e=>e.id==="Constraint.Mandatory")||this.layouthint.has(Ht)?this.mandatory=!0:this.hasValue()||(this.mandatory=!1),this._serverConstraints=new m,this.resetErrors(),t.filter(e=>e.id!=="Constraint.Mandatory"||!this.hasValue()).forEach(e=>{this.hasValue()?this.attributeErrors.addServerError(e.id,e.message,this.formatParameters(e.properties),e.layouthint):this.addServerConstraint(e.id,e.message,this.formatParameters(e.properties))})}mergeAttribute(t){this.concept=t.concept,!t.readonly&&t.isValid&&t.inputvalue!==null&&this.update(t.inputvalue)}getFormData(){return this.inError()?null:{[this.name]:this.value}}get formdata(){return this.getFormData()}getEmptyFormData(){return{[this.name]:null}}equals(t){return this.key===t.key&&this.parentKey===t.parentKey}};import{immerable as Gi}from"immer";var Br=I(et(),1),Ke=I(Zr(),1);var ti=I(vr(),1);var Q=class s extends O{get type(){return"composite-collection"}get selfhref(){}static create(t,e,r){return"children"in t&&"children"in e&&Array.isArray(e.children)&&Array.isArray(t.children)?Array.isArray(t.children[0])?s.createMultiData(t,e,r):s.createStandard(t,e,r):new s}static createStandard(t,e,r){let i=new s;return"children"in e&&"children"in t&&Array.isArray(e.children)&&Array.isArray(t.children)&&(i.collection=e.children.map(n=>{let[o]=Object.keys(n),a=Array.isArray(t.children)?t.children.find(B=>B.key===o):{},l=n[o];"type"in e&&typeof e.type=="string"&&e.type.includes("range")&&!l.type&&(l.type=e.type.replace("range",""));let c=k.createAttribute(o,{...a,dynamicschema:a?.dynamicschema},{...l,readonly:l.readonly??"readonly"in e},r);return c&&"key"in t&&typeof t.key=="string"&&(c.parentKey=t.key),c}).filter(n=>n!==null)),i}static createMultiData(t,e,r){let i=new s;return"children"in t&&Array.isArray(t.children)&&(i.collection=t.children.map(n=>s.create({...t,children:n},e,r))),i}getInputValue(){return this.collection.map(t=>t.inputvalue).join(",")}get inputvalue(){return this.getInputValue()}validate(){return this.collection.every(t=>t.isValid)}get errorCollection(){return new U(3)}hasServerErrors(){return this.errorCollection.serverErrors.length>0||this.collection.some(t=>t.hasServerErrors())}hasErrors(){return this.errorCollection.hasItems()??this.collection.some(t=>t.hasErrors())}isValid(){return!this.hasErrors()}reset(){this.collection.forEach(t=>{t.reset()})}get initvalue(){let t={},e=[];for(let r of this.collection)r instanceof s?e.push(r.initvalue):r.initvalue!==null&&(t[r.key]=r.initvalue);if(!(e.length===0&&Object.keys(t).length===0))return e.length>0?e:t}get value(){if(this.first instanceof s)return this.collection.map(e=>e.value);let t={};if(this.collection.forEach(e=>{if(e instanceof s)return e.value;e.formdata!==null&&!e.readonly&&(t={...t,...e.formdata})}),Object.keys(t).length!==0)return t}get readonlyvalue(){return this.first instanceof s?this.collection.map(t=>t.readonlyvalue).join(" | "):this.collection.filter(t=>t.value!==null).map(t=>t.readonlyvalue).join(", ")}updateValidations(t,e){this.collection.forEach(r=>{if(r instanceof s)r.updateValidations(t,e);else{let i=e.filter(n=>n.anchor?.elementid===`${t}${r.key}`);r.updateValidations(i)}})}setUseClientsideValidation(t){this.collection.forEach(e=>{e.setUseClientsideValidation(t)})}hasValue(){return this.collection.some(t=>t.hasValue())}getChildByAttribute(t){return this.collection.find(e=>e instanceof d&&e.equals(t)?!0:e instanceof _?e.getChildByAttribute(t):!1)}getChildByKey(t){return this.collection.find(e=>e instanceof d&&e.key===t?!0:e instanceof _?e.getChildByKey(t):!1)}};var v=(g=>(g.STRING="string",g.NUMBER="number",g.INTEGER="integer",g.BOOLEAN="boolean",g.MEMO="memo",g.DATE="date",g.DATETIME="datetime",g.TIME="time",g.TIMESTAMP="timestamp",g.ARRAY="array",g.BINARY="binary",g.COMPOSITE="composite",g.CAPTCHA="captcha",g.PASSWORD="password",g.CHOICE="choice",g.LOOKUP="lookup",g.RANGE="range",g.HELPTEXT="helptext",g.LABEL="label",g.MONEY="money",g.XML="xml",g.UPLOAD="upload",g.ASSIGNMENT="assignment",g))(v||{}),Er=(c=>(c.STRING="string",c.CHOICE="choice",c.DATE="date",c.DATETIME="datetime",c.ASSIGNMENT="assignment",c.DATERANGE="daterange",c.DATETIMERANGE="datetimerange",c.NUMBER="number",c.NUMBERRANGE="numberrange",c))(Er||{}),Jr=(i=>(i.STATIC="static",i.DYNAMIC="dynamic",i.DYNAMIC_WITH_THRESHOLD="dynamicWithThreshold",i.LOOKUP="lookup",i))(Jr||{});var _=class s extends d{_children;constructor(t,e,r){super(t,e,r),this._children=Q.create(t??{},e??{},r),this.setChildrenOptionality()}static isApplicableModel(t){return t.type==="composite"||t.type==="array"&&"children"in t}getInitialChildModelLinks(){return this.children.getInitialChildModelLinks()}setChildModels(t,e){this.children.setChildModels(t,e)}get type(){return"composite"}get children(){return this._children}set children(t){this._children=t}get start(){return this.children.all[0]}get end(){return this.children.all[this.children.size-1]}getInputValue(){return this.children.getInputValue()}hasValue(){return this.children.some(t=>t.hasValue())}get constraintCollection(){let t=new m;return t.add(this.getServerConstraints()),t.add(this.addConstraints()),t}setUseClientsideValidation(t){super.setUseClientsideValidation(t),this.children.all.forEach(e=>e.setUseClientsideValidation(t))}validate(t){return this.useClientsideValidation()?(this._isValid=this.children.validate(),this._isValid&&(this._isValid=this.constraintCollection.validate(t)),this._isValid):!0}get isValid(){return this.validate("")}hasServerErrors(){return this.errorCollection.serverErrors.length>0||this.children.some(t=>t.hasServerErrors())}hasErrors(){return this.errorCollection.hasItems()??this.children.some(t=>t.hasErrors())}reset(){this.children.reset()}getChildByAttribute(t){return this.children.find(e=>e instanceof Q?!1:e.equals(t))}getChildByKey(t){return this.children.find(e=>e instanceof d&&e.key===t?!0:e instanceof s||e instanceof Q?e.getChildByKey(t)!==void 0:!1)}mergeAttribute(t){this.concept=t.concept,this.children.forEach(e=>{if(t instanceof s&&e instanceof d){let r=t.getChildByKey(e.key);r&&e.mergeAttribute(r)}})}update(t,e){if(!e)throw new f("Composite attribute needs changed attribute on update call");return this.updateLastModification(),this.children.forEach(r=>{r instanceof s?r.update(t,e):r instanceof d&&r.equals(e)&&r.update(t)}),this.setChildrenOptionality(),this.validate(t),this}updateByAttribute(t){t instanceof s?t.children.forEach(e=>{if(!(e instanceof Q)){let r=this.getChildByAttribute(e);r&&r.updateByAttribute(e)}}):console.error(`update of composite attribute with ${t.type} not supported`)}setChildrenOptionality(){let t=!this.mandatory&&this.children.every(e=>e.value===null);this.children.forEach(e=>{e instanceof d&&(e.mandatory=t||!e.configuredMandatory?!1:e.configuredMandatory)})}get readonly(){return super.readonly??this.children.every(t=>t instanceof d&&t.readonly)}set readonly(t){super.readonly=t}get readonlyvalue(){return this.children.readonlyvalue}get initvalue(){return this.children.initvalue}getFormData(){return{[this.name]:this.value}}getValue(){return this.children.value}getChildrenIds(){let t=this.data.value;return Array.isArray(t)?t.map(e=>{if(typeof e=="object"&&e!=null&&"_id"in e)return e._id}):t!=null&&typeof t=="object"&&"_id"in t?[t._id]:[]}get isResult(){return this._isResult}set isResult(t){this._isResult=t,this.children.forEach(e=>{e instanceof Q||(e.isResult=t)})}indicateContentConfiguration(t){t&&this.children.forEach(e=>{e instanceof Q||e.indicateContentConfiguration(t)})}equals(t){return this.key===t.key&&this.parentKey===t.parentKey||this.children.some(e=>e instanceof d&&e.equals(t))}get readonlyWidth(){if(this.type==="composite")return"LARGE";switch(this.start instanceof d?this.start.type:""){case"datetime":return"LARGE";case"timestamp":return"EXTRA_LARGE";default:return"MEDIUM"}}};var D=class extends O{constructor(t={elementid:"none"},e=[],r){super(),e.forEach(i=>{let[n,o]=Object.entries(i)[0],a=k.createAttribute(n,t,o,{origin:r?.origin,contextPath:r?.contextPath});a!==null&&(r?.isReadonly&&!(0,ti.default)(o,"readonly")&&(a.readonly=!0),this.collection.push(a))}),this.processLayoutHintRules()}get attributes(){return this.processLayoutHintRules(),this.all}set attributes(t){this.collection=t}processLayoutHintRules(){this.all.forEach(t=>{t.processLayoutHintRules(this)})}get visible(){return this.attributes.filter(t=>!t.isHidden)}get questions(){return this.visible.filter(t=>!t.isResult)}get results(){return this.visible.filter(t=>t.isResult)}getAttributeByAttribute(t){return this.find(e=>e.equals(t)?!0:t instanceof _?t.getChildByAttribute(e):!1)}getAttributeByKey(t){return this.find(e=>e.key===t?!0:e instanceof _?e.getChildByKey(t):!1)}hasAttributeByKey(t){return this.getAttributeByKey(t)!=null}getAttributeByLayoutHint(...t){return this.find(e=>e.layouthint.has(...t))}getChoiceAttributeByLayoutHint(t){let e=this.getAttributeByLayoutHint(t);if(e instanceof Y)return e}getAttributesByLayoutHint(...t){return this.filter(e=>e.layouthint.has(...t))}replace(t,e){this.replaceByKey(t.key,e)}replaceByKey(t,e){this.forEach((r,i)=>{r.key===t&&(this.collection[i]=e)})}setReferenceDate(t){this.forEach(e=>{e.referenceDate=t})}hasServerErrors(){return this.collection.some(t=>t.hasServerErrors())}addServerError(t){let e=t?.anchor?.elementid;if(e){let r=this.getAttributeByKey(e);if(r)r.addServerError(t);else throw new H(`Could not add error to missing attribute with id ${e}`)}}hasErrors(){return this.visible.some(t=>t.hasErrors())}updateValidations(t){return this.all.filter(e=>e.hasDynamicValidationData).forEach(e=>{let r=t.filter(i=>i.anchor?.elementid===e.key);if(e.updateValidations(r),e instanceof _){let i=t.filter(n=>{let o=n.anchor?.elementid;return o&&o.startsWith(`${e.key}.`)});e.children.updateValidations(`${e.key}.`,i)}}),this}indicateContentConfiguration(t){t&&this.all.forEach(e=>{e.indicateContentConfiguration(t)})}get formdata(){return this.getFormData(!1)}getFormData(t=!1){let e=this.attributes.filter(i=>i.formdata!==null&&!i.readonly&&(!t||i.hasDynamicValidationData)).map(i=>i.isVisible?i.formdata:i.getEmptyFormData()),r={};return e.forEach(i=>{r={...r,...i}}),r}};var W=class s extends h{_code;_isSelected;_concept;_referenceDate;_level;_attributeCollection;_children;_links;_content;_isUser=!1;constructor(t=[],e={},r){super({},e),this._code=this.getContributionAsString("code",this.getContributionAsString("key","")),this._isSelected=t.includes(this.code),this._referenceDate=r?.referenceDate||new Date().toISOString().split("T")[0],this._level=0,this._attributeCollection=this.createAttributeCollection(r),this._children=this.addChildren(t,e,r),this._links=new A(this.contributions._links,{},{origin:r?.origin,contextPath:r?.contextPath}),this._content=this.createContent(),this._isUser="optionType"in e&&e.optionType==="user"}get type(){return"option"}static createFromListItemModel(t){let e=new s;return e.code=t.id?.toString()??"",e}get isChoiceAttributeOptionModel(){return!0}getInitialChildModelLinks(){let t=[];return!this.hasContentFromData()&&this.conceptLink&&t.push(this.conceptLink),this.children&&t.push(...this.children.getInitialChildModelLinks()),t}setChildModels(t,e=[]){let r=this.conceptLink?.href;if(r){let i=t.find(n=>n instanceof K?n.selfhref.equalsWithParameters(r):!1);this.concept=i}this.children&&this.children.setChildModels(t,e)}get code(){return this._code}set code(t){this._code=t}equals(t){return this.code.toString()===t.code.toString()}createAttributeCollection(t){let e=this.getContributionAsArray("elementsContributions",[]),r=this.getContributionAsObject("elements",{});return new D(r,e,{origin:t?.origin,contextPath:t?.contextPath,isReadonly:!0})}get attributeCollection(){return this._attributeCollection}set attributeCollection(t){this._attributeCollection=t}get label(){let t=this.getContributionAsString("label");if(t)return t;if(this.attributeCollection.hasItems()){let e=this.attributeCollection.getAttributeByLayoutHint(ct);if(e)return e.readonlyvalue;if(this.attributeCollection.first)return this.attributeCollection.first.readonlyvalue}return""}getContentConfiguredLabel(t){if(this.hasContentFromData())return this.content?.label||this.label;if(t)return t.getContentConfiguredLabel(this.concept,this.label)}hasContentFromData(){return it()}get content(){return this._content}addChildren(t=[],e={},r){if("elements"in e)return new J;let i="children"in e?e.children:[];return J.create({value:t},{options:i??[]},r)}get children(){return this._children}createContent(){return Mt.create(this.getContributionAsObject("content"))}get selected(){return this._isSelected}set selected(t){this._isSelected=t}get count(){return this.getContributionAsNumber("count")}get links(){return this._links}set links(t){this._links=t}get selfhref(){return this.links.getLinkByKey("self")?.href}get referenceDate(){return this._referenceDate}set referenceDate(t){this._referenceDate=t}get conceptLink(){let t=this.links.getLinkByKey("concept");return t&&(t.href=t.href.addParameter(y,this.referenceDate),t.isCacheable=!0),t}get concept(){return this._concept}set concept(t){this._concept=t}get level(){return this._level}set level(t){this._level=t}get isBooleanType(){return this.getContributionAsBoolean("isBooleanType",!1)}get hasAlternativeLabel(){return this.getContributionAsBoolean("hasAlternativeLabel",!1)}get isUser(){return this._isUser}mergeOption(t){this.concept=t.concept,this.children!=null&&t.children!=null&&this.children.mergeOptions(t.children)}};var J=class s extends O{_modelOptions;_headers=[];_sortOptions=!1;constructor(t){super(),this._modelOptions=t||{origin:"",contextPath:j(),referenceDate:new Date().toISOString().split("T")[0]}}set sortOptions(t){this._sortOptions=t,this.collection.forEach(e=>{e.children&&(e.children.sortOptions=t)})}get sortOptions(){return this._sortOptions}static create(t={},e={},r){let i=new s(r);if("type"in e&&e.type==="boolean"){let n="value"in t?t.value:void 0;i.addBooleanOptions(n,e)}else"dynamicschema"in t&&t.dynamicschema!=null?i.addDynamicSchema(t,e):"options"in e&&e.options!=null&&i.addOptions(t,e);return"children"in e&&Array.isArray(e.children)&&i.addHeaders(e.children),i}get all(){return this.sortOptions?this.collection.sort((t,e)=>t.label.localeCompare(e.label)):this.collection}getSelectedOptions(t){let e=[];return"options"in t&&Array.isArray(t.options)?e.push(...t.options.filter(r=>r.selected).map(r=>r.key)):"value"in t&&("value"in t&&Array.isArray(t.value)?e.push(...t.value):typeof t.value=="boolean"?e.push(t.value.toString()):e.push(t.value)),e}getOptionCount(t,e){if(Array.isArray(e)){let r=e.find(i=>"key"in i&&i.key===t);if(r)return"count"in r&&typeof r.count=="number"?r.count:void 0}}addOptions(t,e){let r=this.getSelectedOptions(t);if("options"in e&&Array.isArray(e.options)){let i="options"in t&&Array.isArray(t.options)?t.options:[];e.options.forEach(n=>{let o=n.code||n.key,a="optionType"in e?e.optionType:"generic";this.addOption(r,{...n,count:this.getOptionCount(o,i),optionType:a})})}return this}addDynamicSchema(t,e){let r=this.getSelectedOptions(t);if("dynamicschema"in t&&Array.isArray(t.dynamicschema)){let i="options"in t&&Array.isArray(t.options)?t.options:[],n="children"in e?e.children:void 0,o="optionType"in e?e.optionType:"generic";t.dynamicschema.forEach(a=>{this.addOption(r,{...a,count:this.getOptionCount(a.code,i),optionType:o,elementsContributions:n})})}return this}addBooleanOption(t,e,r,i=[]){let n=i.find(a=>"code"in a&&a.code===t),o=n&&"label"in n?n.label:e;this.addOption(r,{code:t,label:o,isBooleanType:!0,hasAlternativeLabel:n!=null})}addBooleanOptions(t,e){let r=t==null?[]:[t.toString()],i="options"in e&&Array.isArray(e.options)?e.options:[];return this.addBooleanOption("true","Yes",r,i),this.addBooleanOption("false","No",r,i),this}addOption(t,e){let r=new W(Array.isArray(t)?t:[t],e,this._modelOptions);return this.add(r),this}getOptionByCode(t){return this.collection.find(e=>e.code===t)}hasOptionByCode(t){return this.collection.some(e=>e.code===t)}get selected(){let t=[];return this.collection.forEach(e=>{e.selected&&e.selected===!0&&t.push(e),e.children&&t.push(...e.children.selected)}),t}deselectAll(){this.collection=this.collection.map(t=>(t.selected=!1,t.children&&t.children.deselectAll(),t))}select(t){this.toggle(t,"select")}deselect(t){this.toggle(t,"deselect")}toggle(t,e){this.collection=this.collection.map(r=>(r.code===t?r.selected=e==="select":r.children&&r.children.toggle(t,e),r))}setReferenceDate(t){return this.collection.map(e=>(e.referenceDate=t,e.children&&(e.children.referenceDate=t),e))}set referenceDate(t){this.collection=this.setReferenceDate(t)}addHeaders(t){this._headers=t.map(e=>new _t(e))}get headers(){return this._headers?this._headers:[]}mergeOptions(t,e=!1,r=!1){let i=[];this.collection.forEach(n=>{let o=t.find(a=>a.code===n.code);o?(n.mergeOption(o),i.push(n)):r||i.push(n)}),e?this.collection=[...i,...t.filter(n=>!this.collection.some(o=>o.code===n.code))]:this.collection=i}some(t,e){return this.collection.some((r,i,n)=>{let o=t(r,i,n);return!o&&r.children?r.children.some(t,e):o})}};var ei=(l=>(l.CHECKBOX="checkbox",l.RADIOBUTTON="radiobutton",l.COMBOBOX="combobox",l.LIST="list",l.LISTVIEW="listview",l.TABLE="table",l.LONGLIST="longlist",l.TOGGLE="toggle",l))(ei||{}),Y=class s extends d{_options;constructor(t,e,r){super(t,e,r),this.attributeReferenceDate=this.getDataAsString("referenceDate",new Date().toISOString().split("T")[0]),this._options=J.create(t,e,{...r,referenceDate:this.referenceDate}),this.layouthint.has(zr)&&(this._options.sortOptions=!0)}static isApplicableModel(t){let e="";return"type"in t&&typeof t.type=="string"&&(e=t.type),e==="choice"||e==="array"?!0:e!=="composite"&&e!=="boolean"?"enumerated"in t||"options"in t:!1}get type(){let t=this.getContributionAsString("optionMode",""),e=this.lookupLink||this.lookupListLink;return t==="lookup"||t==="dynamicWithThreshold"&&e?"lookup":"choice"}getInitialChildModelLinks(){let t=[];return this.hasContentConfiguration()&&(!this.hasContentFromData()&&this.conceptLink&&t.push(this.conceptLink),t.push(...this.options.getInitialChildModelLinks())),t}setChildModels(t,e){let r=this.conceptLink?.href;if(r){let i=t.find(n=>n instanceof K?n.selfhref?.equalsWithParameters(r):!1);this.concept=i}this.options.setChildModels(t,e)}get optionType(){return this.contributions?.optionType??"generic"}get isUser(){return this.optionType==="user"}get lookupLink(){return this.links.getLinkByKey("lookupOptions")}get lookupListLink(){return this.links.getLinkByKey("lookupList")}get lookupListLabel(){return this.contributions.lookupList?.label??""}get referenceDate(){return this.attributeReferenceDate}set referenceDate(t){this.attributeReferenceDate=t,this.options.referenceDate=t}get options(){return this._options}get selected(){return this.options.selected.map(t=>t.code)}get readonlyvalue(){return this.options.selected.map(t=>t.label).join(", ")}get initvalue(){let t=this.getInitValue();return Array.isArray(t)&&t.length!==0,t}getValue(){return this.options.selected.length>0?this.options.selected.map(t=>t.code).join(","):null}hasValue(){return this.options.selected.length>0}getInputValue(){return this.selected.join(",")}toggleOption(t){this.selected.includes(t)?this.disableOption(t):this.enableOption(t)}enableOption(t){this.isMultiple||this.options.deselectAll(),this.options.select(t),this.inputvalue=this.getInputValue()}disableOption(t){this.options.deselect(t),this.inputvalue=this.getInputValue()}addOption(t){this.isMultiple||this.options.deselectAll();let e="code"in t&&typeof t.code=="string"?t.code:"";this.options.find(r=>r.code===e)===void 0&&this.options.addOption(e,t)}get choicetype(){return["checkbox","radiobutton","combobox","list","listview","table","longlist","toggle"].find(t=>this.layouthint.has(t))??"checkbox"}get isMultiple(){return this.getContributionAsBoolean("multiplechoice")??this.choicetype==="checkbox"}get isTree(){return this.getContributionAsArray("options",[]).some(t=>"children"in t)}reset(){this.options.deselectAll()}mergeAttribute(t,e=!1,r=!1){!this.readonly&&t instanceof s&&(this.concept=t.concept,this.options.mergeOptions(t.options,e??this.type==="lookup",r),this.options.deselectAll(),t.isValid&&t.inputvalue!==null&&this.update(t.inputvalue))}update(t){if(this.readonly)return this;this.updateLastModification();let e;return Array.isArray(t)?e=t:typeof t=="string"&&this.isMultiple?e=t.split(","):e=[t],e.forEach(r=>{r instanceof W?(this.options.some(i=>i.equals(r))||this.options.add(r),this.toggleOption(r.code)):typeof r=="string"&&this.options.some(i=>i.code.toString()===r)&&this.toggleOption(r)}),this}updateByAttribute(t){if(this.reset(),t instanceof s||t instanceof _){let e;t instanceof s?e=t.options.selected:t instanceof _&&(e=t.getChildrenIds()),e!=null&&this.update(e)}else console.error(`update of choice attribute with ${t.type} not supported`)}addMissingError(t){this.isChangedSince(0)&&this.attributeErrors.addServerError("Constraint.Missing"),t instanceof s&&this.mergeAttribute(t,!0,!0)}setHasContentConfiguration(t){super.setHasContentConfiguration(this.contentConfiguration!=null||t)}get contentConfiguration(){if(!this.contributions.content?.optionElements)return;let t=this.contributions.content.optionElements.map(e=>"contentElement"in e?{contentElement:{layouthint:[Zt],...e.contentElement}}:e);return new T(t)}get placeholder(){return this.getContributionAsString("placeholder","")}addServerError(t){let{id:e,message:r,properties:i,layouthint:n}=t,o="answer-option-key";if(i&&o in i){let a=i[o],l=this.options.find(c=>c.code===a);l&&(i[o]=l.getContentConfiguredLabel(this.contentConfiguration??void 0)??"")}this.attributeErrors.addServerError(e,r,i,n)}get readonlyWidth(){return"MEDIUM"}};var me=class s extends d{_referenceDate;_options;constructor(t,e,r){super(t,e,r),this._referenceDate=this.getDataAsString("referenceDate",E.now()),this._options=J.create(t,e,{...r,referenceDate:this.referenceDate})}static isApplicableModel(t){return"type"in t&&t.type==="boolean"}get type(){return"boolean"}get referenceDate(){return this._referenceDate}set referenceDate(t){this._referenceDate=t,this.options.referenceDate=t}get choicetype(){return["checkbox","radiobutton","combobox","toggle"].find(t=>this.layouthint.has(t))??"radiobutton"}get isMultiple(){return!1}get isTree(){return!1}setHasContentConfiguration(t){super.setHasContentConfiguration(this.contentConfiguration!==null||t)}get contentConfiguration(){if("content"in this.contributions&&typeof this.contributions.content=="object"&&this.contributions.content!==null&&"optionElements"in this.contributions.content&&Array.isArray(this.contributions.content.optionElements)){let t=this.contributions.content.optionElements.map(e=>"contentElement"in e?{contentElement:{...e.contentElement,layouthint:[Zt]}}:e);return new T(t)}return null}get options(){return this._options}get selected(){return this.options.selected.map(t=>t.code)}get readonlyvalue(){return this.options.selected.map(t=>t.label).join(", ")}get initvalue(){let t=this.getInitValue();return Array.isArray(t)&&t.length!==0,t}getValue(){let t=this.options.selected;return t.length>0?t[0].code:null}hasValue(){return this.options.selected.length>0}getInputValue(){return this.selected.join(",")}toggleOption(t){this.selected.includes(t)?this.disableOption(t):this.enableOption(t)}enableOption(t){this.options.deselectAll(),this.options.select(t),this.inputvalue=this.getInputValue()}disableOption(t){this.options.deselect(t),this.inputvalue=this.getInputValue()}reset(){this.options.deselectAll()}mergeAttribute(t){!this.readonly&&t instanceof s&&(this.concept=t.concept,this.options.deselectAll(),t.isValid&&t.inputvalue!==null&&this.update(t.inputvalue))}update(t){if(this.readonly)return this;this.updateLastModification();let e;return Array.isArray(t)?e=t:typeof t=="string"&&this.isMultiple?e=t.split(","):typeof t=="string"?e=[t==="true"?"true":"false"]:e=[JSON.stringify(t)],e.forEach(r=>{r instanceof W?this.toggleOption(r.code):typeof r=="string"&&this.options.some(i=>i.code.toString()===r)&&this.toggleOption(r)}),this}updateByAttribute(t){this.reset(),t instanceof s?this.update(t.value):console.error(`update of boolean attribute with ${t.type} not supported`)}getFormData(){return this.inError()?null:this.hasValue()?{[this.name]:this.value==="true"}:this.choicetype==="checkbox"||this.choicetype==="toggle"?{[this.name]:!1}:{[this.name]:null}}get readonlyWidth(){return this.options.some(t=>t.hasAlternativeLabel)?"SMALL":"EXTRA_SMALL"}};var fe=class extends d{_answer="";static isApplicableModel(t){return t.type==="captcha"}get type(){return"captcha"}update(t){return this.updateLastModification(),this.inputvalue=t,this}updateByAttribute(t){}setAnswer(t){this._answer=t}getAnswer(){return this._answer}get hasDynamicValidationData(){return!1}reset(){this._answer="",this.inputvalue=""}};var Sr="Constraint.Date.InexactDate",Or="Constraint.Date.OutOfRange",Tr="Constraint.Date.BelowMinimum",kr="Constraint.Date.AboveMaximum",ge=class{_type;_format;_minDate;_maxDate;constructor(t,e=null,r=null,i="yyyy-MM-dd"){this._type=t,this._format=i,this._minDate=e,this._maxDate=r}get type(){return this._type}get id(){return this.minDate!==null&&this.maxDate!==null&&this.minDate===this.maxDate?Sr:this.minDate!==null&&this.maxDate!==null?Or:this.minDate!==null?Tr:this.maxDate!==null?kr:"Constraint.Date.NoBoundaryConstraint"}get format(){return this._format}get minDate(){return this._minDate}get maxDate(){return this._maxDate}get defaultMessage(){switch(this.id){case Sr:return"Date must be precisely ${min-date}";case Or:return"Must be between ${min-date} and ${max-date}";case Tr:return"Must be on or after ${min-date}";case kr:return"Must be on or before ${max-date}";default:return""}}get parameters(){return{"min-date":this.minDate?this.formatUtil.toFormat(this.minDate,this.format):null,"max-date":this.maxDate?this.formatUtil.toFormat(this.maxDate,this.format):null}}hasValidation(){return!0}isExactDate(t){if(this.minDate===null)throw new M("isExactDate: Min and max date not set");return this.formatUtil.isSame(t,this.minDate,this.format)}isBetweenDates(t){if(this.minDate===null||this.maxDate===null)throw new M("isBetweenDate: Min or max date not set");return this.isSameOrAfterMinDate(t)&&this.isSameOrBeforeMaxDate(t)}isSameOrAfterMinDate(t){if(this.minDate==null)throw new M("isSameOrAfterMinDate: Min date not set");return this.formatUtil.isSameOrAfter(t,this.minDate,this.format)}isSameOrBeforeMaxDate(t){if(this.maxDate==null)throw new M("isSameOrBeforeMaxDate: Max date not set");return this.formatUtil.isSameOrBefore(t,this.maxDate,this.format)}get formatUtil(){switch(this.type){case"time":return nt;case"timestamp":return X;case"datetime":return q;default:return E}}validate(t){if(typeof t!="string")throw new TypeError("isNotEmptyString: Not comparing to string");switch(this.id){case Sr:return this.isExactDate(t);case Or:return this.isBetweenDates(t);case Tr:return this.isSameOrAfterMinDate(t);case kr:return this.isSameOrBeforeMaxDate(t);default:return!0}}get isMandatoryConstraint(){return!1}};var ye=class{_format;_formatLabel;constructor(t,e){this._format=t,this._formatLabel=e}get id(){return"Constraint.DateFormat.InvalidFormat"}get format(){return this._format}get formatLabel(){return this._formatLabel}hasValidation(){return!0}get defaultMessage(){return"Date must be entered in the format ${format}"}get parameters(){return{format:this.formatLabel}}validate(t){return t?E.hasFormat(t,this.format):!1}get isMandatoryConstraint(){return!1}};var be=class{_type;_format;_formatLabel;_formatNoOffset;_id="Constraint.DateTime.MissingValue";constructor(t,e,r){this._type=t,this._format=e,this._formatNoOffset=e.replace(mt,"").trim(),this._formatLabel=r}get type(){return this._type}get id(){return this._id}get format(){return this._format}get formatLabel(){return this._formatLabel}hasValidation(){return!0}get defaultMessage(){return"Date and time should both be entered"}get parameters(){return{format:this.formatLabel}}get formatUtil(){return this.type==="timestamp"?X:q}validate(t){if(!t)return!1;if(this.formatUtil.hasFormat(t,this.format))return!0;if(Ft())if(this.formatUtil.hasFormat(t,this._formatNoOffset)){if(!new RegExp("[+-](0[0-9]|1[0-4]):[0-5][0-9]").test(t))return this._id="Constraint.DateTime.MissingOffset",!1}else return this._id="Constraint.DateTime.MissingValue",!1;return!1}get isMandatoryConstraint(){return!1}};var Ce=class{_format;_formatLabel;constructor(t,e){this._format=t,this._formatLabel=e}get id(){return"Constraint.TimeFormat.InvalidFormat"}get format(){return this._format}get formatLabel(){return this._formatLabel}hasValidation(){return!0}get defaultMessage(){return"Time must be entered in the format ${format}"}get parameters(){return{format:this.formatLabel}}validate(t){return t?nt.hasFormat(t,this.format):!1}get isMandatoryConstraint(){return!1}};var Ae=class s extends d{_dateInputFormat;constructor(t,e,r){super(t,e,r),this._inputvalue="",this._dateInputFormat="",this.updateInitValue()}get type(){return this.getContributionAsString("type","date")}static isApplicableModel(t){return t.type==="date"||t.type==="time"||t.type==="datetime"||t.type==="timestamp"}get formatUtil(){switch(this.type){case"time":return nt;case"timestamp":return X;case"datetime":return q;default:return E}}getInitValue(){let t=this.getDataAsString("value");return t&&(this.type==="time"&&t.length===5&&(t=`${t}:00`),this.type==="datetime"&&t.includes(".")?t=X.toFormat(t,q.getIsoFormat()):t=this.formatUtil.toISO(t),this.hasTime&&(t=this.getTimeValue(t))),t}getTimeValue(t){let e=t;if(this.timeInputFormat.toLowerCase().includes("h")||(e=this.formatUtil.setHour(t,0)),this.timeInputFormat.includes("m")||(e=this.formatUtil.setMinute(t,0)),this.timeInputFormat.includes("s")||(e=this.formatUtil.setSecond(t,0)),this.type==="timestamp"&&!this.timeInputFormat.includes("S")&&(e=this.formatUtil.setMilliseconds(t,0)),Ft()){let r=this.formatUtil.toFormat(t,mt),i=this.formatUtil.toFormat(e,mt);e=e.replace(i,r)}return e}updateInitValue(){let t=this.getInitValue();if(t!=null){this.setInitValue(t);let e=this.getInitialInputValue(t);this._inputvalue=e,this.setValue(t)}}getInitialInputValue(t){if(typeof t!="string")return"";let e=t;return this.type==="time"&&t.length===5&&(e=`${t}:00`),this.formatUtil.toFormat(e,this.inputFormat)}getInputValue(){return this._inputvalue?this._inputvalue.toString():""}get inputvalue(){return this.getInputValue()}set inputvalue(t){this.validate(t),this._inputvalue=t,this.value=t!==null&&t!==""?this.formatUtil.toISO(t,this.inputFormat):null}reset(){this.inputvalue=""}get format(){let t=this.getContributionAsString("format","");return this.formatUtil.convertFormat(t)}get formatLabel(){switch(this.type){case"date":return this.dateInputFormat.toLowerCase();case"time":return this.timeInputFormat.toLowerCase();default:return this.format.toLowerCase()}}get hasDate(){return this.type==="date"||this.type==="datetime"||this.type==="timestamp"}get hasTime(){return this.type==="time"||this.type==="datetime"||this.type==="timestamp"}get inputFormatWithoutOffset(){return this.hasDate&&this.hasTime?`${this.dateInputFormat} ${this.timeInputFormat}`.trim():this.hasDate?this.dateInputFormat:this.hasTime?this.timeInputFormat:""}get inputFormat(){return Ft()&&this.dateInputFormat!==""&&this.timeInputFormat!==""?`${this.inputFormatWithoutOffset} ${mt}`:this.inputFormatWithoutOffset}extractDateInputFormat(){let t=new Set("yMLdQDEewGu"),e=new Set("HhaKmsSZzXxO"),r=this.format,i="",n=!1,o=!1;for(let a=0;a<r.length;a++){let l=a>0?r[a-1]:"",c=a<r.length?r[a+1]:"",B=r[a];B==="'"?n=l==="'"||c==="'"||!n:!n&&t.has(B)?o=!0:!n&&e.has(B)&&(o=!1),o&&(i+=B)}return i.trim()}get dateInputFormat(){return this.hasDate?(this._dateInputFormat||(this._dateInputFormat=this.extractDateInputFormat()),this._dateInputFormat):""}get dateReadonlyFormat(){return this.hasDate?this.hasTime?this.format.replace(this.timeInputFormat,"").trim():this.format:""}get placeholder(){if(super.placeholder)return super.placeholder;let t=this.getContributionAsString("formatlabel");return this.hasDate&&this.hasTime&&t?.includes(" ")?t.split(" ")[0]:t}createTimeInputFormat(){if(!this.hasTime)return"";let t=this.format,e=[];t.includes("H")?e.push("HH"):t.includes("h")&&e.push("hh"),t.includes("m")&&e.push("mm"),t.includes("s")&&e.push("ss");let r=e.join(":");return t.includes("S")&&(r=`${r}.SSS`),t.includes("a")?`${r} a`:r}get timeInputFormat(){return this.createTimeInputFormat()}get timeReadonlyFormat(){return this.createTimeInputFormat()}get dateInputValue(){return typeof this.value=="string"&&this.dateInputFormat!==""?this.formatUtil.toFormat(this.value,this.dateInputFormat):""}get timeInputValue(){return typeof this.value=="string"&&this.timeInputFormat!==""?this.formatUtil.toFormat(this.value,this.timeInputFormat):""}formatValue(t){return typeof t!="string"||t===""?"":(this.type==="datetime"||this.type==="timestamp")&&E.hasFormat(t,Pr)?E.toFormat(t,this.dateReadonlyFormat):this.type==="date"?this.formatUtil.toFormat(t,this.dateReadonlyFormat):this.formatUtil.toFormat(t,this.format)}get readonlyvalue(){return typeof this.value=="string"?this.formatValue(this.value):""}get isAmbiguous(){return typeof this.value=="string"?this.formatUtil.isAmbiguous(this.value):!1}get offset(){return typeof this.value=="string"?this.formatUtil.getOffset(this.value):null}get mindate(){return this.getContributionAsString("mindate")}get maxdate(){return this.getContributionAsString("maxdate")}addServerError(t){let{id:e,message:r,properties:i,layouthint:n}=t;i&&"format"in i&&this.formatLabel&&(i.format=this.formatLabel),this.attributeErrors.addServerError(e,r,i,n)}getFormatConstraint(){switch(this.type){case"date":return new ye(this.dateInputFormat,this.formatLabel);case"time":return new Ce(this.timeInputFormat,this.formatLabel);default:return new be(this.type,this.inputFormat,this.formatLabel)}}addConstraints(){let t=new m;return t.add(this.getFormatConstraint()),(this.mindate||this.maxdate)&&t.add(new ge(this.type,this.mindate,this.maxdate,this.inputFormat)),t}get readonlyWidth(){return this.type==="date"||this.type==="time"?"SMALL":"MEDIUM"}update(t){return this.inputvalue===t?this:(this.updateLastModification(),this.inputvalue=t,this)}updateByAttribute(t){if(this.reset(),t instanceof s){let e=t.value;if(e!=null){let r=this.formatUtil.toFormat(e,this.inputFormat);this.update(r)}}else console.error(`update of datetime attribute with ${t.type} not supported`)}};var Me=class extends d{static isApplicableModel(t){return t.type==="helptext"||"readonly"in t&&"text"in t}get type(){return"helptext"}get text(){let e=this.getData("content")?.text?.message;if(e)return e;let r=this.getContribution("text");return r!=null?typeof r=="string"?r:r.message:null}update(t){return this}updateByAttribute(t){}getFormData(){return null}reset(){}};var _e=class extends d{static isApplicableModel(t){return"layouthint"in t&&Array.isArray(t.layouthint)?t.layouthint.includes("label"):!1}get type(){return"label"}update(t){return this}updateByAttribute(t){}getFormData(){return null}reset(){}};import{immerable as Vi}from"immer";var vt=class{[Vi]=!0;static checkHintApplicability=!1;static isApplicableForAttribute(t){return!0}static isApplicableForHint(t){throw new M("Missing isApplicableForHint implementation on layout hint rule")}static initAttribute(t){throw new M("Missing initAttribute implementation on layout hint rule")}static initHint(t){throw new M("Missing initHint implementation on layout hint rule")}};var ri="equals",ii="includes",ni="notEquals",si="notIncludes",oi="notIsEmpty",ai="isEmpty",li="show",ui="hide",ve=class s extends vt{_action="";_control="";_operator="";_options=[];static checkHintApplicability=!0;static isApplicableForHint(t){return new RegExp(`^${Gt}\\s?(${li}|${ui})`,"i").test(t)}static getRuleInstance(){return new s}static initHint(t){let e=this.getRuleInstance(),r=`${ri}|${ii}|${ni}|${si}|${oi}|${ai}`,i=new RegExp(`${Gt}\\s?(\\S*)\\swhen ${Lt}:\\s?(.*?)\\s*(${r})\\s(.*)`,"i"),n=new RegExp(`${Gt}\\s?(\\S*)\\swhen ${Lt}:\\s?(.*?)\\s*(${r})`,"i"),o=t.match(i)?t.match(i):t.match(n);if(o)e.action=o[1],e.control=o[2],e.operator=o[3],e.options=o[4]?o[4]:"";else throw new H(`No dependent information found on layout hint: ${t}`);return e}get action(){return this._action}set action(t){this._action=t}get control(){return this._control}set control(t){this._control=t}get operator(){return this._operator}set operator(t){this._operator=t}get options(){return this._options}set options(t){this._options=t.split("|").map(e=>e.trim())}processEqualsOptions(t){if("selected"in t&&Array.isArray(t.selected)){let e=t.selected;return this.options.every(r=>e.includes(r))}throw new H("Dependent control in combination with equals operator must be a choice, string or number attribute")}processIncludesOptions(t){if(t.type==="choice")return this.options.some(e=>t.selected.includes(e));throw new H("Dependent control in combination with includes operator must be a choice attribute")}handleOperator(t){switch(this.operator){case ri:return this.processEqualsOptions(t);case ii:return this.processIncludesOptions(t);case ni:return!this.processEqualsOptions(t);case si:return!this.processIncludesOptions(t);case oi:return t?.selected.length!==0;case ai:return t?.selected.length===0;default:throw new H(`Unsupported operator for dependent question: ${this.operator}`)}}getControlAttribute(t){let e=t.getAttributeByLayoutHint(`${Lt}:${this.control}`,`${Lt}: ${this.control}`);return typeof e<"u"&&e!=null&&"selected"in e&&Array.isArray(e.selected)?e:null}process(t,e){let r=this.getControlAttribute(e);if(!r)return;if(r.processLayoutHintRules(e),r.isHidden){t.hide();return}let i=this.handleOperator(r);if(this.action===li)t.isHidden=!i;else if(this.action===ui)t.isHidden=i;else throw new H(`Unsupported action ${this.action} for dependent question on attribute: ${t.label}`)}};var De=class{_filetypeConstraints;constructor(t){this._filetypeConstraints=t}get id(){return"Constraint.File.InvalidExtension"}get extensions(){return this._filetypeConstraints.map(t=>t.extensions.join(", ")).join(", ")}hasValidation(){return!1}get defaultMessage(){return"Allowed extensions are: ${extensions}"}get parameters(){return{extensions:this.extensions}}validate(){return!0}get isMandatoryConstraint(){return!1}};import ci from"file-size";var xr="Constraint.File.MaxTotalFileSize",Ir="Constraint.File.MaxFileSize",Ee=class{_filesizeConstraint;constructor(t){this._filesizeConstraint=t}get id(){return this.filesizeConstraint.isMaxTotal?xr:this.filesizeConstraint.fileSize!==void 0?Ir:""}get filesizeConstraint(){return this._filesizeConstraint}hasValidation(){return!1}get defaultMessage(){return this.id===xr?"{filesize-left} van {max-total-filesize} over van totaal toegestaan upload bestandsgrootte":this.id===Ir?"Maximale bestandsgroote is ${max-filesize}":""}get filesize(){return ci(this.filesizeConstraint.fileSize??0).human("jedec")}get maxTotalFileSize(){if(this.filesizeConstraint.maxTotalFileSize)return ci(this.filesizeConstraint.maxTotalFileSize).human("jedec")}get parameters(){return this.id===xr?{"filesize-left":this.filesize,"max-total-filesize":this.maxTotalFileSize}:this.id===Ir?{"max-filesize":this.filesize}:{}}validate(){return!0}get isMandatoryConstraint(){return!1}};var Ui="UNCHANGED",Dt=class s extends d{_files;_initialTotalFileSize=0;_maxTotalFileSize;static isApplicableModel(t){return t.type==="binary"}get type(){return"upload"}get multiple(){return this.getContributionAsBoolean("multiple",!1)}get initialTotalFileSize(){return this._initialTotalFileSize??0}set initialTotalFileSize(t){this._initialTotalFileSize=t}get maxTotalFileSize(){return this._maxTotalFileSize}set maxTotalFileSize(t){this._maxTotalFileSize=t}get currentFilesize(){return this.initialTotalFileSize+this.uploadedFileSize}get maxFileSize(){if(this.maxTotalFileSize){let t=this.maxTotalFileSize-this.currentFilesize;return t<0?0:t}return this.getContributionAsNumber("uploadMaxFileSize")}get uploadedFileSize(){if(Object.keys(this.files).length===0)return 0;let t=0;return Object.keys(this.files).forEach(e=>{let r=this.files[e];r.size&&(t+=r.size)}),t}get uploadConstraints(){let t=this.getContributionAsArray("allowedMimeTypes",[]).filter(i=>i!=="[...]");return{fileTypes:this.getContributionAsArray("allowedExtensions",[]).filter(i=>i!=="[...]").map(i=>({extensions:[i],mimeTypes:t})),maxFileSize:{fileSize:this.maxFileSize,maxTotalFileSize:this.maxTotalFileSize,isMaxTotal:this.maxTotalFileSize!==void 0},acceptedFiles:this.acceptedFiles}}get acceptedFiles(){let t=this.getContributionAsArray("allowedMimeTypes",[]).filter(r=>r!=="[...]");return[...this.getContributionAsArray("allowedExtensions",[]).filter(r=>r!=="[...]"),...t]}addConstraints(){let t=new m;return this.uploadConstraints.fileTypes.length>0&&t.add(new De(this.uploadConstraints.fileTypes)),(this.uploadConstraints.maxFileSize.isMaxTotal||this.uploadConstraints.maxFileSize.fileSize!==void 0)&&t.add(new Ee(this.uploadConstraints.maxFileSize)),t}get files(){return this._files??{}}set files(t){this._files=t}getFilesTypeFromValue(t){if(typeof t=="object")return t;if(typeof t=="string")try{return JSON.parse(t)}catch{console.warn(`Can't parse upload value: ${t}`)}return null}update(t){if(!t)return this;let e=this.getFilesTypeFromValue(t);return e==null?this.inputvalue=t:(this.files=e,this.inputvalue=Object.keys(e).map(r=>e[r].token).join(",")),this.updateLastModification(),this}updateByAttribute(t){}get readonlyvalue(){return this.initvalue?this.initvalue.toString():""}getValue(){return this.hasValue()?this.initvalue===this.inputvalue?Ui:super.getValue():null}mergeAttribute(t){t instanceof s&&t.isValid&&t.inputvalue!==null&&this.update(JSON.stringify(t.files))}reset(){this._files={}}};var Se=class s extends vt{static isApplicableForAttribute(t){return t.type==="upload"}static initAttribute(){return new s}processUploadInformation(t,e){let r=e.getAttributesByLayoutHint($t),i=e.getAttributesByLayoutHint(qt);if(r.length>0&&i.length>0){let n=r[0].value,o=i[0].value;t.initialTotalFileSize=Number(n),t.maxTotalFileSize=Number(o)}}process(t,e){t instanceof Dt&&this.processUploadInformation(t,e)}};var Nt=[ve,Se],Tl=s=>{Nt.push(s)},kl=s=>{let t=s(Nt);if(Array.isArray(t))Nt=t;else throw new Hr("Result of updater of updateLayoutHintRules is not an array")},Oe=class s extends p{get allRules(){return Nt}static setLayoutHintRules(t){let e=new s;return Nt.forEach(r=>{r.isApplicableForAttribute(t)&&(r.checkHintApplicability?t.layouthint.forEach(i=>{r.isApplicableForHint(i)&&e.add(r.initHint(i))}):e.add(r.initAttribute(t)))}),t.layoutHintRules=e,t}process(t,e){this.all.forEach(r=>{r.process(t,e)})}};var Te=class{get id(){return"Constraint.BSN.InvalidFormat"}hasValidation(){return!0}get defaultMessage(){return"Must be a valid BSN"}get parameters(){return{}}isValidBSN(t){if(t.replace(/[^\d]/gu,"").length!==t.length)return!1;let e=t.replace(/\D/gu,""),r=e.length;if(r<8||r>9||Number.isNaN(e))return!1;let o=0,a=0;for(let l=r;l>0;l--){let c=parseInt(e.charAt(o),10);a+=l===1?c*-1:c*l,o+=1}return a%11===0}validate(t){return this.isValidBSN(t)}get isMandatoryConstraint(){return!1}};import Pi from"iban";var ke=class{get id(){return"Constraint.IBAN.InvalidFormat"}hasValidation(){return!0}get defaultMessage(){return"Must be a valid IBAN number"}get parameters(){return{}}validate(t){return Pi.isValid(t)}get isMandatoryConstraint(){return!1}};var ot=class{_regexConstraint;constructor(t){this._regexConstraint=t}get id(){return this.regexConstraint.messageKey}get regexConstraint(){return this._regexConstraint}hasValidation(){return!0}get defaultMessage(){return this.regexConstraint.defaultMessage||this.regexConstraint.messageKey}get parameters(){return{regex:this.regexConstraint.regex}}validate(t){return this.regexConstraint.regex instanceof RegExp?this.regexConstraint.regex.test(t):new RegExp(this.regexConstraint.regex).test(t)}get isMandatoryConstraint(){return!1}};var z=class s extends d{get type(){return"string"}static isApplicableModel(t){return"type"in t&&t.type==="string"?!0:"layouthint"in t&&Array.isArray(t.layouthint)?t.layouthint.includes("string"):!1}getInitialInputValue(t){return this.formatValue(t)}get regexp(){return this.getContributionAsString("regexp")}get regexpvalidationmessage(){return this.getContributionAsString("regexpValidationMessage")}get postfix(){return this.getContributionAsString("postfix","")}get prefix(){return this.getContributionAsString("prefix","")}isBSN(){return this.layouthint.has("bsn")}isIBAN(){return this.layouthint.has("iban")}isZipcode(){return this.layouthint.has("zipcode")}isEmail(){return this.layouthint.has("email")}addConstraints(){let t=new m;return this.isBSN()?t.add(new Te):this.isIBAN()&&t.add(new ke),this.isZipcode()?t.add(new ot({messageKey:"Constraint.ZipCode.InvalidFormat",defaultMessage:"Must be a valid Dutch ZIP code, e.g. 1234 AB",regex:new RegExp("^[1-9][0-9]{3} ?[a-zA-Z]{2}$","gi")})):this.isEmail()&&this.regexp?t.add(new ot({messageKey:"Constraint.Email.InvalidFormat",defaultMessage:"Must be a valid e-mail address",regex:new RegExp(this.regexp,"gi")})):this.regexp&&t.add(new ot({messageKey:"Constraint.String.InvalidRegex",defaultMessage:this.regexpvalidationmessage,regex:this.regexp})),t}reset(){this.inputvalue=""}formatIBAN(t){let r=this.removeFormat(t).replace(/\s/g,"").match(/.{1,4}/g);return r==null?"":r.join(" ")}formatZipcode(t){let e=this.removeFormat(t);return e.length===6?e.substring(0,4)+" "+e.substring(4).toUpperCase():e}formatBSN(t){return this.removeFormat(t)}formatValue(t){return t==null||t.toString()===""?"":typeof t=="string"?this.isIBAN()?this.formatIBAN(t):this.isZipcode()?this.formatZipcode(t):this.isBSN()?this.formatBSN(t):t.replace(/ {2}/gi," \xA0"):JSON.stringify(t)}removeFormat(t){return t==null||t.toString()===""?"":typeof t=="string"?this.isIBAN()||this.isZipcode()||this.isBSN()?t.replace(/[^a-z0-9,]/gi,""):t:JSON.stringify(t)}get validateValue(){return this.removeFormat(this.inputvalue)}get inputvalue(){return this.getInputValue()}set inputvalue(t){this.setInputvalue(t),t==null?this.value=t:this.value=this.removeFormat(t),this.validate(this.validateValue)}get readonlyvalue(){return typeof this.value=="string"?this.formatValue(this.value).replace(/ {2}/gi," \xA0"):this.value==null?"":JSON.stringify(this.value)}update(t){return this.inputvalue===t?this:(this.updateLastModification(),this.inputvalue=t,this)}updateByAttribute(t){this.reset(),t instanceof s?this.update(t.value):console.error(`update of string attribute with ${t.type} not supported`)}get readonlyWidth(){return this.isZipcode()||this.isBSN()?"SMALL":this.isIBAN()?"LARGE":"MEDIUM"}};var xe=class extends z{static isApplicableModel(t){return"type"in t&&typeof t.type=="string"&&t.type==="memo"?!0:"rows"in t&&typeof t.rows=="number"?t.rows>1:!1}get type(){return"memo"}get rows(){return this.getContributionAsNumber("rows",10)}get formatted(){return this.getContributionAsBoolean("formatted",!1)}get readonlyWidth(){return"LARGE"}};var di=I(Zr(),1);var Rr="Constraint.Number.InexactNumber",Lr="Constraint.Number.OutOfRange",Fr="Constraint.Number.BelowMinimum",wr="Constraint.Number.AboveMaximum",Ie=class{_minNumber;_maxNumber;_groupingSeparator=",";_decimalSeparator=".";_format="";constructor(t=null,e=null,r=",",i=".",n){this._format=n??"",this._groupingSeparator=r,this._decimalSeparator=i,this._minNumber=t,this._maxNumber=e}get id(){return this.minNumber!==null&&this.maxNumber!==null&&this.minNumber===this.maxNumber?Rr:this.minNumber!==null&&this.maxNumber!==null?Lr:this.minNumber!==null?Fr:this.maxNumber!==null?wr:"Constraint.Number.NoBoundaryConstraint"}get minNumber(){return this._minNumber}get maxNumber(){return this._maxNumber}get format(){return this._format}get groupingSeparator(){return this._groupingSeparator}get decimalSeparator(){return this._decimalSeparator}hasValidation(){return!0}get defaultMessage(){switch(this.id){case Rr:return"Number must be precisely ${min-number}";case Lr:return"Must be between ${min-number} and ${max-number}";case Fr:return"The number must be larger than ${min-number}";case wr:return"The number must be smaller than ${max-number}";default:return""}}get parameters(){return{"min-number":this.minNumber===null?null:S.formatNumber(this.minNumber,this.format,this.groupingSeparator,this.decimalSeparator),"max-number":this.maxNumber===null?null:S.formatNumber(this.maxNumber,this.format,this.groupingSeparator,this.decimalSeparator)}}isExactNumber(t){return S.parseToNumber(t,this.groupingSeparator,this.decimalSeparator)===this.minNumber}isSameOrAboveMinNumber(t){let e=S.parseToNumber(t,this.groupingSeparator,this.decimalSeparator);return isNaN(e)||e==null?!1:this.minNumber!=null&&e>=this.minNumber}isSameOrBelowMaxNumber(t){let e=S.parseToNumber(t,this.groupingSeparator,this.decimalSeparator);return isNaN(e)||e==null?!1:this.maxNumber!=null&&e<=this.maxNumber}isBetweenNumbers(t){return this.isSameOrAboveMinNumber(t)&&this.isSameOrBelowMaxNumber(t)}validate(t){switch(this.id){case Rr:return this.isExactNumber(t);case Lr:return this.isBetweenNumbers(t);case Fr:return this.isSameOrAboveMinNumber(t);case wr:return this.isSameOrBelowMaxNumber(t);default:return!0}}get isMandatoryConstraint(){return!1}};var Nr="Constraint.Number.InvalidInteger",Re=class{_decimalSeparator=",";_groupingSeparator=".";_format="0";constructor(t=",",e=".",r="0"){this._decimalSeparator=e,this._groupingSeparator=t,this._format=r??"0"}get id(){return this.maxDigits===0?Nr:"Constraint.Number.InvalidDecimal"}get decimalSeparator(){return this._decimalSeparator}get groupingSeparator(){return this._groupingSeparator}get format(){return this._format}get maxDigits(){return this.format?new te(this.format).maxFrac:0}hasValidation(){return!0}get defaultMessage(){return this.id===Nr?"Must be a whole number":"The value is not correct numeric format"}get parameters(){return{"max-digits":this.maxDigits}}isInteger(t){return Number.isInteger(t)}getNumberOfDigits(t){return Math.floor(t)===t?0:S.parseNumberToString(t).split(".")[1].length}isValidDecimal(t){if(isNaN(t))return!1;let e=this.getNumberOfDigits(t);return!isNaN(parseFloat(String(t)))&&isFinite(t)&&e<=this.maxDigits}validate(t){if(this.maxDigits===0&&this.decimalSeparator!==""&&t.toString().includes(this.decimalSeparator))return!1;let e=S.parseToNumber(t,this.groupingSeparator,this.decimalSeparator);return this.id===Nr?this.isInteger(e):this.isValidDecimal(e)}get isMandatoryConstraint(){return!1}};var Hi=3,Le=class{_decimalSeparator;_groupingSeparator;_format;constructor(t=",",e=".",r="0"){this._decimalSeparator=e,this._groupingSeparator=t,this._format=r??"0"}get id(){return"Constraint.Number.GroupingSeparator"}get decimalSeparator(){return this._decimalSeparator}get groupingSeparator(){return this._groupingSeparator}get format(){return this._format}get groupSize(){if(this.format){let t=new te(this.format).comma;if(t>0)return t}return Hi}hasValidation(){return!0}get defaultMessage(){return"Group divider '${group-divider}' must be correctly placed"}get parameters(){return{"group-divider":this.groupingSeparator}}hasCorrectGrouping(t){let e=t.replace("-","").replace("+","");if(!e.includes(this.groupingSeparator))return!0;let r=e;if(this.decimalSeparator!==""&&e.includes(this.decimalSeparator)){if(e.indexOf(this.decimalSeparator)<e.indexOf(this.groupingSeparator))return!1;r=e.substring(0,e.indexOf(this.decimalSeparator))}let i=r.split(this.groupingSeparator);return i[0].length<this.groupSize&&(i=i.slice(1)),i.every(n=>n.length===this.groupSize)}validate(t){return this.groupingSeparator===""||typeof t!="string"||!t.includes(this.groupingSeparator)||this.hasCorrectGrouping(t)}get isMandatoryConstraint(){return!1}};var Et=class s extends d{static isApplicableModel(t){return"type"in t&&typeof t.type=="string"?t.type==="number"||t.type==="integer":!1}get type(){return"number"}getInitialInputValue(t){return t==null?"":this.formatValue(t)}get groupingSeparator(){return this.getContributionAsString("groupingSeparator","")}get decimalSeparator(){return this.getContributionAsString("decimalSeparator","")}get minNumber(){return this.getContributionAsNumber("minimum")}get maxNumber(){return this.getContributionAsNumber("maximum")}get maxDigits(){let t=this.format;return t!=null&&t.includes(".")?t.split(".")[1].length:0}get unit(){return this.getContributionAsString("unit","")}addConstraints(){let t=new m;return t.add(new Re(this.groupingSeparator,this.decimalSeparator,this.format)),t.add(new Le(this.groupingSeparator,this.decimalSeparator,this.format??void 0)),t.add(new Ie(this.minNumber,this.maxNumber,this.groupingSeparator,this.decimalSeparator,this.format??void 0)),t}reset(){this.inputvalue=""}get format(){return this.getContributionAsString("format","0")}formatValue(t){return typeof t=="string"||typeof t=="number"?S.formatNumber(t,this.format,this.groupingSeparator,this.decimalSeparator):""}get readonlyvalue(){return(0,di.default)(this.value)?JSON.stringify(this.value):this.formatValue(this.value)}get inputvalue(){return this.getInputValue()}set inputvalue(t){this.setInputvalue(t),this.validate(t);let e=S.parseToNumber(t,this.groupingSeparator,this.decimalSeparator);this.value=isNaN(e)?null:S.parseNumberToString(e)}getValue(){let t=super.getValue();return t==null||t===""?null:Number(t)}update(t){return t===this.inputvalue?this:(this.updateLastModification(),this.inputvalue=t,this)}updateByAttribute(t){this.reset(),t instanceof s?this.update(t.value):console.error(`update of number attribute with ${t.type} not supported`)}get isHidden(){return super.isHidden||this.layouthint.has($t,qt,ft)}set isHidden(t){super.isHidden=t}get readonlyWidth(){return"SMALL"}};var Fe=class extends Et{static isApplicableModel(t){return"type"in t&&typeof t.type=="string"&&t.type==="money"?!0:"layouthint"in t&&Array.isArray(t.layouthint)?t.layouthint.includes("money"):!1}get type(){return"money"}get currencySymbol(){return this.getContributionAsString("currencySymbol","")}get prefix(){return this.currencySymbol}get readonlyWidth(){return"SMALL"}};var Bt=class{_otherPasswordLabel;_otherPasswordValue;constructor(t,e){this._otherPasswordLabel=e,this._otherPasswordValue=t}get id(){return"Constraint.Password.ConfirmMismatch"}get otherPasswordLabel(){return this._otherPasswordLabel}get otherPasswordValue(){return this._otherPasswordValue}hasValidation(){return!0}get defaultMessage(){return"Must match ${other} field"}get parameters(){return{other:this.otherPasswordLabel}}validate(t){return t===this.otherPasswordValue}get isMandatoryConstraint(){return!1}};var we=class{get id(){return"Constraint.Password.LowerAndUpperCaseMandatory"}hasValidation(){return!0}get defaultMessage(){return"Must contain both upper and lowercase characters"}get parameters(){return{}}validate(t){return/[a-z]/u.test(t)&&/[A-Z]/u.test(t)}get isMandatoryConstraint(){return!1}};var Ne=class{_minNumeric;constructor(t){this._minNumeric=t}get id(){return"Constraint.Password.MinNumericCharactersMandatory"}get minNumeric(){return this._minNumeric}hasValidation(){return!0}get defaultMessage(){return"Must contain ${min-numeric} or more numerical characters"}get parameters(){return{"min-numeric":this.minNumeric}}validate(t){return t.replace(/\D/gu,"").length>=this.minNumeric}get isMandatoryConstraint(){return!1}};var Be=class{_minSpecial;constructor(t){this._minSpecial=t}get id(){return"Constraint.Password.MinSpecialCharactersMandatory"}get minSpecial(){return this._minSpecial}hasValidation(){return!0}get defaultMessage(){return"Must contain ${min-special} or more special characters"}get parameters(){return{"min-special":this.minSpecial}}validate(t){return t.replace(/[\da-z]/giu,"").length>=this.minSpecial}get isMandatoryConstraint(){return!1}};var je=class{_maxSequence;constructor(t=2){this._maxSequence=t}get id(){return"Constraint.Password.ThreeConsecutiveCharactersNotAllowed"}get maxSequence(){return this._maxSequence}hasValidation(){return!0}get defaultMessage(){return"Must not contain any character more than twice consecutively"}get parameters(){return{"max-sequence":this.maxSequence}}hasNoSequenceOfIdenticalCharacters(t){return!t.split("").filter((e,r)=>t.indexOf(e)===r).some(e=>{let r=e.repeat(this.maxSequence+1);return t.includes(r)})}validate(t){return this.hasNoSequenceOfIdenticalCharacters(t)}get isMandatoryConstraint(){return!1}};var Ve=class extends z{_confirmValue;_isConfirmPassword=!1;_otherLabel="";static isApplicableModel(t){return t.type==="password"?!0:"layouthint"in t&&Array.isArray(t.layouthint)?t.layouthint.includes("password"):!1}get type(){return"password"}update(t){return this.updateLastModification(),this.inputvalue=t,this}get constraints(){return this.getContributionAsObject("constraints",{})}get upperAndLowerCaseMandatory(){return this.constraints.upperAndLowerCaseMandatory}get maxSequenceOfIdenticalCharacters(){return this.constraints.maxSequenceOfIdenticalCharacters}get maxSequenceOfUsernameCharacters(){return this.constraints.maxSequenceOfUsernameCharacters}get minNumberOfNumericCharacters(){return this.constraints.minNumberOfNumericCharacters}get minNumberOfSpecialCharacters(){return this.constraints.minNumberOfSpecialCharacters}get regexConstraint(){return this.constraints.regexConstraint}addConstraints(){return this.isConfirmPassword?this.getConfirmPasswordConstraints():this.getStandardPasswordConstraints()}getConfirmPasswordConstraints(){let t=new m;return t.add(new Bt(this.confirmValue,this.otherLabel)),t}getStandardPasswordConstraints(){let t=new m;return this.upperAndLowerCaseMandatory&&t.add(new we),this.maxSequenceOfIdenticalCharacters&&t.add(new je(this.maxSequenceOfIdenticalCharacters)),this.minNumberOfNumericCharacters&&t.add(new Ne(this.minNumberOfNumericCharacters)),this.minNumberOfSpecialCharacters&&t.add(new Be(this.minNumberOfSpecialCharacters)),this.regexConstraint&&this.regexConstraint.length>0&&this.regexConstraint.forEach(e=>{t.add(new ot(e))}),this.layouthint.has(Wr)&&this.isConfirmPassword==null&&t.add(new Bt(this.confirmValue,this.otherLabel)),t}get constraintCollection(){return this.isConfirmPassword?this.getConfirmPasswordConstraints():super.constraintCollection}get isConfirmPassword(){return this._isConfirmPassword}set isConfirmPassword(t){this._isConfirmPassword=t}get confirmValue(){return this._confirmValue??""}set confirmValue(t){this._confirmValue=t,this.validate(this.inputvalue)}get otherLabel(){return this._otherLabel}set otherLabel(t){this._otherLabel=t}validate(t){return this.useClientsideValidation()?(this.isOptionalAndEmpty(t)?this.setIsValid(!0):this.getPreviouslyValidatedValue()!==`${this.confirmValue}-${t}`&&this.setIsValid(this.constraintCollection.validate(t)),this.setPreviouslyValidatedValue(`${this.confirmValue}-${t}`),this.getIsValid()):!0}getFormData(){return this.isConfirmPassword||this.inError()?null:{[this.name]:this.value}}};var Ue=class{_type;_start;_end;constructor(t,e,r){this._type=t,this._start=e,this._end=r}get type(){return this._type}get id(){switch(this.type){case"date":return"Constraint.DateRange.Mandatory";case"time":return"Constraint.TimeRange.Mandatory";case"datetime":return"Constraint.DateTimeRange.Mandatory";case"timestamp":return"Constraint.TimeStampRange.Mandatory";default:return"Constraint.Range.Mandatory"}}hasValidation(){return!0}get defaultMessage(){return"Field is mandatory: must contain at least a start or end value"}get parameters(){return{}}validate(){return this._start.hasErrors()||(this._end?.hasErrors()??!1)?!0:this._start.hasValue()||(this._end?.hasValue()??!1)}get isMandatoryConstraint(){return!0}};var Pe=class{_start;_end;constructor(t,e){this._start=t,this._end=e}get id(){let t=this.hasInclusiveBounds?"InvalidRangeInclusive":"InvalidRange";switch(this.rangeType){case"time":return`Constraint.TimeRange.${t}`;case"date":return`Constraint.DateRange.${t}`;case"datetime":return`Constraint.DateTimeRange.${t}`;case"timestamp":return`Constraint.TimeStampRange.${t}`;default:return`Constraint.NumberRange.${t}`}}get defaultMessage(){let t=this.hasInclusiveBounds?" or equal to the":"";switch(this.rangeType){case"time":return`Start time must be before${t} end time`;case"date":return`Start date must be before${t} end date`;case"datetime":return`Start value must be before${t} end value`;case"timestamp":return`Start value must be before${t} end value`;default:return`Start value must be less than${t} the end value`}}hasValidation(){return!0}get parameters(){return{}}get start(){return this._start}get end(){return this._end}get rangeType(){return this.start.type}get hasInclusiveBounds(){return this.start.operator==="greaterThanOrEqualTo"&&this.end.operator==="lessThanOrEqualTo"}getDateTimeUtil(){switch(this.rangeType){case"time":return nt;case"date":return E;case"timestamp":return X;default:return q}}doValidate(t,e){return typeof t=="number"&&typeof e=="number"?this.hasInclusiveBounds?S.isSameOrBefore(t,e):S.isBefore(t,e):typeof t=="string"&&typeof e=="string"?this.hasInclusiveBounds?this.getDateTimeUtil().isSameOrBefore(t,e):this.getDateTimeUtil().isBefore(t,e):!1}validate(){return this.start.inError()||this.end.inError()?!0:this.doValidate(this.start.value,this.end.value)}get isMandatoryConstraint(){return!1}};var at=class s extends d{_startAttribute;_endAttribute;constructor(t,e,r){if(super(t,e,r),!Array.isArray(e?.children))throw new Error(`Problem reading contributions of range attribute: ${this.key}, the children property must be an array.`);this._startAttribute=this.createChild(0),this._endAttribute=this.createChild(1),this.setChildrenOptionality()}get start(){return this._startAttribute}get end(){return this._endAttribute}get type(){return"range"}static isApplicableModel(t){return t.type.includes("range")}getInitialChildModelLinks(){return[...this.start.getInitialChildModelLinks(),...this.end.getInitialChildModelLinks()]}setChildModels(t,e){this.start.setChildModels(t,e),this.end.setChildModels(t,e)}getInputValue(){return[this.start.getInputValue(),this.end.getInputValue()].join(",")}hasValue(){return this.start.hasValue()||this.end.hasValue()}get constraintCollection(){let t=new m;return t.add(this.getServerConstraints()),t.add(this.addConstraints()),t}setUseClientsideValidation(t){super.setUseClientsideValidation(t),this.start.setUseClientsideValidation(t),this.end.setUseClientsideValidation(t)}validate(t){return this.useClientsideValidation()?(this._isValid=this.start.isValid&&this.end.isValid,this._isValid&&(this._isValid=this.constraintCollection.validate(t)),this._isValid):!0}addConstraints(){let t=new m;return this.start.hasValue()&&this.end.hasValue()&&t.add(new Pe(this.start,this.end)),this.mandatory&&!this.start.mandatory&&!this.end.mandatory&&t.add(new Ue(this.start.type,this.start,this.end)),t}get isValid(){return this.validate("")}hasServerErrors(){return this.errorCollection.serverErrors.length>0||this.start.hasServerErrors()||this.end.hasServerErrors()}hasErrors(){return this.errorCollection.hasItems()||this.start.hasErrors()||this.end.hasErrors()}reset(){this.start.reset(),this.end.reset()}mergeAttribute(t){this.concept=t.concept,t instanceof s&&(this.start.mergeAttribute(t.start),this.end.mergeAttribute(t.end))}update(t,e){if(!e)throw new f("Range attribute needs changed attribute on update call");return this.updateLastModification(),this.start.equals(e)&&this.start.update(t),this.end.equals(e)&&this.end.update(t),this.setChildrenOptionality(),this.validate(t),this}updateByAttribute(t){t instanceof s?(this.start.updateByAttribute(t.start),this.end.updateByAttribute(t.end)):console.error(`update of range attribute with ${t.type} not supported`)}get readonly(){return super.readonly??(this.start.readonly&&this.end.readonly)}set readonly(t){super.readonly=t}get readonlyvalue(){let t=[];return this.start.value!==null&&t.push(this.start.value),this.end.value!==null&&t.push(this.end.value),t.join(", ")}get initvalue(){return{[this.start.key]:this.start.initvalue,[this.end.key]:this.end.initvalue}}getFormData(){return{[this.name]:this.value}}getValue(){return{...this.start.formdata,...this.end.formdata}}get isResult(){return this._isResult}set isResult(t){this._isResult=t,this.start.isResult=t,this.end.isResult=t}indicateContentConfiguration(t){t&&(this.start.indicateContentConfiguration(t),this.end.indicateContentConfiguration(t))}equals(t){return this.key===t.key&&this.parentKey===t.parentKey||this.start.equals(t)||this.end.equals(t)}get readonlyWidth(){switch(this.start.type){case"datetime":return"LARGE";case"timestamp":return"EXTRA_LARGE";default:return"MEDIUM"}}createChild(t){let e=this.data.children?.[t];Array.isArray(e)&&(e=void 0);let r=this.contributions.children[t],[i]=Object.keys(r),n=r[i],o=k.createAttribute(i,e??{},n,this.modelOptions);return o&&e&&"key"in e&&(o.parentKey=e.key),o}setChildrenOptionality(){let t=!this.mandatory&&this.start.value===null&&this.end.value===null;this.start&&(this.start.mandatory=t||this.start.configuredMandatory?!1:this.start.configuredMandatory),this.end&&(this.end.mandatory=t||this.end.configuredMandatory?!1:this.end.configuredMandatory)}};var He=class{get id(){return"Constraint.XML.InvalidFormat"}hasValidation(){return!0}get defaultMessage(){return"Must be well-formed XML"}get parameters(){return{}}isValidXML(t){let e=new DOMParser;try{if(e.parseFromString(t,"text/xml").querySelectorAll("parsererror").length>0)return!1}catch{return!1}return!0}validate(t){return this.isValidXML(t)}get isMandatoryConstraint(){return!1}};var Ge=class extends z{static isApplicableModel(t){return"type"in t&&typeof t.type=="string"&&t.type==="xml"?!0:"layouthint"in t&&Array.isArray(t.layouthint)?t.layouthint.includes("xml"):!1}get type(){return"xml"}get rows(){return 10}addConstraints(){let t=new m;return t.add(new He),t}get readonlyWidth(){return"EXTRA_LARGE"}};var k=class{static get ATTRIBUTE_MODELS(){return[Y,me,Me,_e,Ge,xe,z,Ae,Fe,Et,Ve,Dt,_,at,fe]}static createAttribute(t,e,r,i){let n=this.getAttributeModel(r);if(!n)throw new Error("Could not find model for contributions: "+r);let o=r.children,a=new We(t,e,Array.isArray(o)?We.getChildrenKeys(o):[]).getData(),l=new n(a,r,i);return Oe.setLayoutHintRules(l),l}static getAttributeModel(t){return this.ATTRIBUTE_MODELS.find(e=>e.isApplicableModel(t))}},We=class s{_key;_data;_value;_links;_children;constructor(t,e,r){this._key=t,this._data=this.getAttributeData(t,e),this._value=this.getValue(),this._links=this.getLinks(),this._children=this.createChildren(e,r)}get key(){return this._key}get data(){return this._data}get value(){return this._value}get links(){return this._links}get children(){return this._children}getAttributeData(t,e){return Array.isArray(e)?e.find(r=>"elementid"in r&&r.elementid===t||"name"in r&&r.name===t||"param"in r&&r.param===t)||{}:e}getValue(){let t;return this.key in this.data?t=this.data[this.key]:"values"in this.data?t=this.data.values:"value"in this.data?t=this.data.value:"suggestions"in this.data?t=this.data.suggestions:"suggestion"in this.data?t=this.data.suggestion:"options"in this.data&&Array.isArray(this.data.options)&&(t=this.data.options.filter(e=>e.selected).map(e=>e.code||e.key)),t}getDynamicschemaFromData(){if("dynamicschema"in this.data){let{dynamicschema:t}=this.data;return Array.isArray(t),t}return null}getDynamicSchema(){let t=this.getDynamicschemaFromData();if(!t)return;if(Array.isArray(t))return t;let e=this.getDynamicSchemaId();if(typeof e=="string"&&e in t&&Array.isArray(t[e]))return t[e].map(r=>"elements"in r?{...r,elements:{...r.elements,dynamicschema:t}}:r)}getDynamicSchemaId(){return typeof this.data.dynamicschemaId=="string"||typeof this.data.dynamicschemaId=="number"?this.data.dynamicschemaId:this.key}getStatic(){return typeof this.data.static=="boolean"?this.data.static:!1}getLinks(){return(0,Br.pick)(this.data._links,["concept","download","lookupOptions","lookupList"])}getOptions(){return this.data.options}getMessage(){return this.data.message}isResult(){return typeof this.data.isResult=="boolean"?this.data.isResult:!1}getReferenceDate(){if(typeof this.data.referenceDate=="string")return this.data.referenceDate}getContent(){if("content"in this.data){let t=(0,Br.pick)(this.data.content,["header","label","elements","layouthint","text"]);if(Object.keys(t).length>0)return t}return null}getData(){return{key:this.key,value:this.value,static:this.getStatic(),_links:this.links,dynamicschema:this.getDynamicSchema(),dynamicschemaId:this.getDynamicSchemaId(),options:this.getOptions(),message:this.getMessage(),isResult:this.isResult(),referenceDate:this.getReferenceDate(),content:this.getContent(),children:this.children}}static getChildrenKeys(t){return t.map(e=>{let[r]=Object.keys(e),i=e[r].type==="range"||e[r].type==="composite",n=e[r].dynamicschemaId,o=i?e[r]?.children:[];return{key:r,dynamicschemaId:n,children:this.getChildrenKeys(o)}})}createChildren(t,e){if(this.value===null)return e.map(n=>this.createChild(t,{[n.key]:null},n));let i=this.value;return Array.isArray(i)?i.map(n=>e.map(o=>{let a=this.childData(n,this.key,o.key);return this.createChild(t,a,o)})):e.map(n=>{let o=this.childData(t,this.key,n.key);return this.createChild(t,o,n)})}getDataContent(t,e){if(t&&e in t)return t[e]}childData(t,e,r){if(Array.isArray(t)){if(Array.isArray(this.data.elements))return this.data.elements.find(i=>i.elementid===r)}else if(e in t&&(0,Ke.default)(t[e])){let i=t[e],n=this.getDataContent(t.content,r);return{...i,content:n}}else if(r in t&&(0,Ke.default)(t[r]))return t[r];return(0,Ke.default)(t)?t:{}}createChild(t,e,r){let i="dynamicschema"in t?t.dynamicschema:void 0,n=null;return r.dynamicschemaId?n=r.dynamicschemaId:r.key&&typeof t=="object"&&"key"in t&&typeof t.key=="string"&&(n=`${t.key}.${r.key}`),new s(r.key,{...e,dynamicschema:i,dynamicschemaId:n},r.children).getData()}};var _t=class{[Gi]=!0;_key;_header;_sortOption;_readonlyWidth;constructor(t,e){let[r]=Object.keys(t),i=k.createAttribute(r,{elementid:r},t[r]);this._readonlyWidth=i.readonlyWidth,this._key=r,this._header=t[r],this._sortOption=e?.find(n=>n.key===r)}get key(){return this._key}get label(){return this._header.label}get type(){return this._header.type}get layouthint(){return new C(this._header.layouthint)}get alignment(){let t=this.layouthint.getByLayoutHint("align-");return t===null?"left":t.substring(6)}get readonlyWidth(){return this._readonlyWidth??"MEDIUM"}equals(t){return t.key===this.key}get sortOption(){return this._sortOption}hasSorting(){return this.sortOption!=null}};var hi=I(vr(),1);var ze=class s extends h{_fieldCollection;_selfhref;_icon;constructor(t,e,r){super(t,e,r),this._fieldCollection=this.createFieldCollection(r)}static create(t,e,r,i="form",n,o){let a={name:t,href:e},l={name:t,label:r??t,type:i};return new s(a,l,{origin:n,contextPath:o})}createFieldCollection(t){let e={},r=[];return"fields"in this.data&&typeof this.data.fields=="object"&&this.data.fields!=null&&(e=this.data.fields),"fields"in this.contributions&&Array.isArray(this.contributions.fields)&&(r=this.contributions.fields),new D(e,r,{...t,isReadonly:!0})}get isDisabled(){return!this.data.href}get selfhref(){return this._selfhref??new b(`${this.data.href}?${this.querystring}`,"Form",this.modelOptions)}set selfhref(t){this._selfhref=t}get method(){let t=this.getDataAsString("method","POST");return Mr[t]}get type(){return this.layouthint.has(zt)?"create":this.layouthint.has(Wt)?"update":this.layouthint.has(Kt)?"delete":this.getContributionAsString("type","general")}get name(){return this.getDataAsString("name","unknown")}get fields(){return this._fieldCollection.all}get fieldCollection(){return this._fieldCollection}set fieldCollection(t){this._fieldCollection=t}get querystring(){return this.fields.filter(t=>t.value!=null&&t.value!=="").map(t=>{let{value:e}=t;return e!==null?`${t.name}=${e}`:t.name}).join("&")}getFieldByKey(t){return this._fieldCollection.getAttributeByKey(t)}hasFieldByKey(t){return this.getFieldByKey(t)!=null}get key(){return this.getDataAsString("name")}get label(){return this.getContributionAsString("label",this.key)}get isProcessTask(){return(0,hi.default)(this.contributions,"processTask")}get processStatus(){if(this.isProcessTask){let t=this.data.processStatus||{},e=this.contributions.processTask||{};return new bt(t,e,this.modelOptions)}}get icon(){return this._icon}set icon(t){this._icon=t}};var w=class s extends p{constructor(t,e,r){super(),this.collection=this.createCollection(t,e,r)}createCollection(t,e,r){let i=[];if(t&&e&&Array.isArray(t)&&Array.isArray(e))for(let n of t){let o=e.find(a=>{if(typeof a=="object"&&a!==null&&"name"in a&&"type"in a&&"name"in n)return a.name===n.name&&a.type!=="service-operation"});o&&i.push(new ze(n,o,r))}return i}getActionByKey(t){let e=new s;return e.collection=this.filter(r=>r.key===t),e.first}getActionsByType(t){let e=new s;return e.collection=this.filter(r=>Array.isArray(t)?t.includes(r.type):r.type===t),e}getActionsByLayoutHint(...t){let e=new s;return e.collection=this.filter(r=>r.layouthint.has(...t)),e}hasActionsByLayoutHint(...t){return this.getActionsByLayoutHint(...t).length>0}get routePath(){let t=this.collection.filter(r=>!r.isDisabled);if(t.length===0)return"__NON_EXISTING_ROUTE__";let e=t.map(r=>r.selfhref.path).join("|");return this.length>1?`(${e})`:e}};var tt=class extends u{get type(){return"User"}static get modelName(){return"UserModel"}static isApplicableModel(t){let e=t.contributions;return e&&"resourcetype"in e&&e.resourcetype&&typeof e.resourcetype=="string"?e.resourcetype==="userdata":!1}get username(){return this.getDataAsString("Username","Guest")}get fullname(){return this.getDataAsString("Fullname","Guest")}};var St=class extends u{_user;_mustChangePassword=!1;static get modelName(){return"UserServicesModel"}get type(){return"UserServices"}static isApplicableModel(t){return t.resourcetype==="user_services"}getInitialChildModelLinks(){let t=this.userLink;return t?[t]:[]}setChildModels(t,e){this.user=t.find(r=>r instanceof tt)}get userLink(){return this.links.getLinkByKey("Userdata")}get user(){return this._user}set user(t){this._user=t}get changePassword(){return this.links.getLinkByKey("ChangePassword")?.href}get isLoggedIn(){let t=this.user instanceof tt;return this.links.length>3||t||Qr.getItem("basic-ok")===!0}set mustChangePassword(t){this._mustChangePassword=t}get mustChangePassword(){return this._mustChangePassword}};var $e=class extends u{_userServices;static get modelName(){return"ApplicationModel"}get type(){return"Application"}static isApplicableModel(t){return t.resourcetype==="Application"}get tabs(){return this.links.getLinksByGroup("tab")}get modelcatalog(){return G.create("modelcatalog","/modelcatalog","Model catalog",this.modelOptions)}get userServices(){return this._userServices}set userServices(t){this._userServices=t}get user(){return this.userServices?.user}get userHref(){return this.userServices?.userLink?.href}getInitialChildModelLinks(){let t=this.links.getLinkByKey("UserServices");if(t&&t.href.path==="/login")throw new Gr("The user service (Login panel) should not have the uri '/login', use a different URI because this uri matches the login service.");return t?[t]:[]}setChildModels(t,e){this.userServices=t.find(r=>r instanceof St)}get isLoggedIn(){return this.userServices?.isLoggedIn??!1}get userMustChangePassword(){return this.userServices?.mustChangePassword??!1}get authenticationTypes(){let t=this.getContributionAsArray("security",[_r]);return t?t?.sort((e,r)=>e.isPrimary===r.isPrimary?0:e.isPrimary?-1:1):[_r]}};var pi=I(et(),1);var dt=class s extends h{_key;_attributeCollection;constructor(t="",e,r,i){super(e,r,i);let n=this.contributions.attributes?this.contributions.attributes.filter(o=>{let[a]=Object.keys(o);return(0,pi.has)(this.data,a)}):[];this._attributeCollection=new D(this.data,n,{...i,isReadonly:!0}),this._key=t}get key(){return this._key}set key(t){this._key=t}get label(){return this.contributions.label}get attributeCollection(){return this._attributeCollection}set attributeCollection(t){this._attributeCollection=t}createChildAttributeSetModel(t,e,r){let i=this.contributions.objects;return new s(r?`${t}-${r+1}`:t,{...e,dynamicschema:this.data.dynamicschema},i?.[t],this.modelOptions)}getChildAttributeSets(){if(!this.contributions.objects)return[];let t=[];for(let e of Object.keys(this.contributions.objects))if(e in this.data){let r=this.data[e];if(Array.isArray(r))for(let[i,n]of r.entries())t.push(this.createChildAttributeSetModel(e,n,i));else t.push(this.createChildAttributeSetModel(e,r))}return t}};var $=class s extends u{_attributeCollection;_metadataCollection;_actionCollection;constructor(t){super(t),this._attributeCollection=this.createAttributeCollection(),this._metadataCollection=this.createMetadataCollection(),this._actionCollection=this.createActionCollection()}get type(){return"Detail"}static get modelName(){return"DetailModel"}static isApplicableModel(t){let e=t.resourcetype,r=e.endsWith("DetailPanel"),i=["Detail","CasePropertiesPanel","CasePropertiesPanelDetail"].includes(e);return r||i}getInitialChildModelLinks(){return this._attributeCollection.getInitialChildModelLinks()}setChildModels(t,e){this._attributeCollection.setChildModels(t,e)}get id(){let t=this.getDataAsNumber("_id");return t||this.getDataAsString("_id",this.key)}get label(){return this.getContributionAsString("label","")}createAttributeCollection(){let t=this.getContributionAsArray("attributes",[]).filter(e=>{let[r]=Object.keys(e);return r in this.data});return new D(this.data,t,{...this.modelOptions,isReadonly:!0})}get attributeCollection(){return this._attributeCollection}set attributeCollection(t){this._attributeCollection=t}get attributes(){return this.attributeCollection.all.filter(t=>!t.layouthint.has(ct)&&!t.isHidden)}getAttributeByKey(t){return this._attributeCollection.getAttributeByKey(t)}createMetadataCollection(){let t=this.getContributionAsObject("metadata",{}),e=Object.entries(t).map(([r,i])=>({[r]:i}));return new D(this.data,e,{...this.modelOptions,isReadonly:!0})}get metadataCollection(){return this._metadataCollection}set metadataCollection(t){this._metadataCollection=t}createActionCollection(){let t=this.getDataAsArray("actions",[]),e=this.getContributionAsArray("actions",[]);return new w(t,e)}get actionCollection(){return this._actionCollection}set actionCollection(t){this._actionCollection=t}get isCase(){return this.getContributionAsString("resourcetype")==="CaseView"}get titleAttribute(){return this._attributeCollection.getAttributeByLayoutHint(ct)}update(t){if(t instanceof s){let e=new s(t.modularuiResponse);return e.attributeCollection=t.attributeCollection,e.metadataCollection=t.metadataCollection,e.actionCollection=t.actionCollection,e}return this}equals(t){return this.id?.toString()===t.id?.toString()}};var lt=class extends p{hasTasks(){return this.collection.some(t=>t.hasTasks())}};var L=class s extends u{_actionCollection;constructor(t){super(t);let e=this.data.actions&&Array.isArray(this.data.actions)?this.data.actions:[],r=this.contributions.actions&&Array.isArray(this.contributions.actions)?this.contributions.actions:[];this._actionCollection=new w(e,r);try{let i=this.selflink.href.href;i&&(this.key=i.substring(i.lastIndexOf("/")+1))}catch{this.key=this.getDataAsString("name","unknown")}}static create(t,e,r,i){let n=new F;return n.key=t,n.data=e,n.contributions=r,n.origin=i?.origin,n.contextPath=i?.contextPath,new s(n)}get type(){return"TaskGroup"}static get modelName(){return"TaskGroupModel"}static isApplicableModel(t){return t.resourcetype==="TaskGroup"}hasTasks(){return this.actionCollection.length>0}get actionCollection(){return this._actionCollection}};var qe=class extends ${_taskGroupCollection;constructor(t){super(t),this._taskGroupCollection=this.createTaskGroupCollection()}get type(){return"CaseView"}static get modelName(){return"CaseViewModel"}static isApplicableModel(t){return t.resourcetype==="CaseView"}getInitialChildModelLinks(){return this.links.getLinksByGroup("taskgroup").all}get panelLinks(){return this.links.getLinksByGroup("panel")}setChildModels(t,e){super.setChildModels(t,e);let r=t.filter(i=>i instanceof L);this.taskGroupCollection.add(r)}get casename(){return this.attributeCollection.getAttributeByLayoutHint(ct)}get label(){return this.casename?.readonlyvalue||""}get viewLabel(){return this.getContributionAsString("label","")}hasIntroText(){return this.introtext!==""}get introtext(){let t=this.data._content;if(t&&"text"in t&&typeof t.text=="object"&&t.text!=null&&"message"in t.text)return t.text.message;let e=this.contributions;return e.text?typeof e.text=="object"&&"message"in e.text&&typeof e.text.message=="string"?e.text.message:e.text:Array.isArray(e.texts)?e.texts[0].text:""}get selfhref(){let t=this.links.getLinkByKey("self");if(t==null)throw new M("No self href available");return t.href}createTaskGroupCollection(){let t=this.getDataAsArray("taskgroups",[]),e=this.getContributionAsArray("taskgroups",[]),r=[];for(let i of t){let n=i.name,o=e.find(a=>a.name===n);if(o){let a=L.create(n,i,o,this.modelOptions);r.push(a)}}return new lt(r)}set taskGroupCollection(t){this._taskGroupCollection=t}get taskGroupCollection(){return this._taskGroupCollection}hasTaskGroups(){return this.taskGroupCollection&&this.taskGroupCollection.hasItems()}};var N=class extends h{_attribute;_context;_listKey;constructor(t,e,r){super(t,e,r),this._attribute=this.createAttribute(this.type,this.param||"",this.data,this.contributions),this._listKey=this.getContributionAsString("listKey")}get attribute(){return this._attribute}get type(){return this.getContributionAsString("type","string").replace("filter","")}get name(){return this.listkey?this.listkey+Ur+this.param:this.param}get param(){return this.getDataAsString("param")??this.getDataAsString("name","")}get isMultiple(){return this.getContributionAsBoolean("multiplechoice",!1)}get context(){return this._context}set context(t){this._context=t}setContext(t){this.context=t}get contextLabel(){return this.context?.label??""}get listkey(){return this._listKey}set listkey(t){this._listKey=t}get label(){return this.getContributionAsString("label","")}get params(){return this.param?[{name:this.param,value:this.attribute?.value}]:[]}get value(){return this.attribute?.value}get inputvalue(){return this.attribute?.inputvalue??""}getAttributeType(t){switch(t){case"choice":return"choice";case"date":return"date";case"datetime":return"datetime";case"daterange":case"datetimerange":return"range";case"number":case"numberrange":return"range";default:return"string"}}getChildType(t){switch(t){case"daterange":return"date";case"datetimerange":return"datetime";case"numberrange":return"number";default:return"string"}}createAttribute(t,e,r,i){if(t==="assignment")return;let n=this.getAttributeType(t),o={...i,type:n};if(n==="range"&&"children"in o&&Array.isArray(o.children)){let a=this.getChildType(t);o.children=o.children.map(l=>{let c=Object.keys(l)[0];return{[c]:{...l[c],type:a}}})}return k.createAttribute(e,r,o,this.modelOptions)}reset(){return this.attribute?.reset(),this}update(t,e){this.attribute?.update(e)}isQuickSearch(){return this.getContributionAsBoolean("quicksearch",!1)}isActive(){return this.attribute?.initvalue!=null}get isValid(){return this.attribute?.isValid??!1}get readonlyvalue(){return this.attribute?.readonlyvalue??""}get assistantMessage(){return this.getContributionAsString("assistant")}};var Ot=class extends N{_assignmenttype;_user;constructor(t,e,r){super(t,e,r),this._assignmenttype=this.createAssignmentTypeModel(),this._user=this.createUserModel()}get key(){return this.getDataAsString("name","")}get contextid(){return this.getContributionAsString("contextid","")}createAssignmentTypeModel(){let t=`${this.contextid}ASSIGNMENTTYPE`,e=this.data[t];if(typeof e>"u")throw new M(`Missing assignment type data for ${t}`);let r=this.data.dynamicschema;r&&(e.dynamicschema={[t]:r[t]});let n={...this.contributions[t],enumerated:!0,optionMode:e._links?"lookup":"static"},o=e.name||e.param;return this.createAttribute("choice",o,e,n)}createUserModel(){let t=`${this.contextid}USERKEY`,e=this.data[t],r=this.data.dynamicschema;r&&r[t]&&(e.dynamicschema={[t]:r[t]});let n={...this.contributions[t],optionMode:e._links?"lookup":"static"},o=e.name||e.param;return this.createAttribute("choice",o,e,n)}get assignmenttype(){return this._assignmenttype}get user(){return this._user}get params(){return this.assignmenttype&&this.user?[{name:this.assignmenttype.name,value:this.assignmenttype.value},{name:this.user.name,value:this.user.value}]:[]}reset(){return this.assignmenttype&&this.assignmenttype.reset(),this.user&&this.user.reset(),this}update(t,e){this.user!=null&&this.user.key===t.key?this.user.update(e):this.assignmenttype!=null&&this.assignmenttype.key===t.key&&this.assignmenttype.update(e)}isActive(){return this.assignmenttype!=null&&this.assignmenttype.initvalue!==null||this.user!=null&&this.user.initvalue!==null}get isValid(){return this.assignmenttype!=null&&this.assignmenttype.isValid&&this.user!=null&&this.user.isValid}};var Xe=class extends N{constructor(t,e,r){if(super(t,e,r),t&&"options"in t&&t.options&&Array.isArray(t.options)){let i=t.options.filter(n=>n.selected).map(n=>n.key);t.options.forEach(n=>{this.attribute?.options.addOption(i,{code:n.key,label:n.key})})}}};var Tt=class extends N{update(t,e){this.attribute instanceof at?this.attribute.update(e,t):super.update(t,e)}get params(){return this.attribute?[{name:this.attribute.start.name,value:this.attribute.start.value},{name:this.attribute.end.name,value:this.attribute.end.value}]:[]}};var Ze=class extends N{_isValid=!0;_value;_inputvalue;constructor(t,e,r){if(super(t,e,r),this.attribute){let i=this.getDataAsString("value","");this.update(this.attribute,i)}this._inputvalue=this._value??""}get params(){return this.param?[{name:this.param,value:this.removeFormat(this.value??"")}]:[]}get value(){return this._value}get inputvalue(){return this._inputvalue}reset(){return this._inputvalue="",this._value=void 0,this}get isValid(){return this._isValid}update(t,e){if(this._isValid=!0,this._inputvalue=typeof e!="string"?String(e):e,this.shouldHandleFormat()){let r=this.isMultiple?this._inputvalue.split(",").map(n=>n.trim()):[this._inputvalue.trim()],i=[];for(let n of r){let o=this.formatValue(n);o!==""&&(i.push(o),this.attribute?.validate(o)||(this._isValid=!1))}this._value=i.join(",")}else this._value=e}get operator(){return this.getContributionAsString("operator","")}formatValue(t){return this.shouldHandleFormat()?this.attribute?.formatValue(t)||"":t}isBSN(){return this.layouthint.has("bsn")}isIBAN(){return this.layouthint.has("iban")}isZipcode(){return this.layouthint.has("zipcode")}removeFormat(t){return t==null||t.toString()===""?"":typeof t=="string"&&this.shouldHandleFormat()?t.replace(/[^a-z0-9,]/gi,""):t}shouldHandleFormat(){return(this.operator==="exactly"||this.operator==="isNot")&&(this.isIBAN()||this.isZipcode()||this.isBSN())}};var kt=class{static createFilter(t,e,r,i){let n=r.type??"stringfilter";return n==="choicefilter"&&t==="index"?new Xe(e,r,i):n.includes("rangefilter")?new Tt(e,r,i):n==="assignmentfilter"?new Ot(e,r,i):n==="stringfilter"?new Ze(e,r,i):new N(e,r,i)}static setListKey(t,e){"listkey"in e&&typeof e.listkey=="string"&&(t.listkey=e.listkey)}static setFilterContext(t,e,r){if(r.contexts){let i=r.contexts.find(n=>n.id===e);i&&t.setContext(i)}}};var x=class extends p{constructor(t={},e,r){super(),this.collection=this.createCollection(t,e,r)}createCollection(t,e,r){let i=[];if(e&&"filter"in e&&Array.isArray(e.filter))for(let n of e.filter){let[o]=Object.keys(n),a=t[o],l=n[o],c=kt.createFilter(o,a,l,{origin:r?.origin,contextPath:r?.contextPath});kt.setListKey(c,e),l.contextid&&kt.setFilterContext(c,l.contextid,e),i.push(c)}return i}reset(){return this.collection=this.collection.map(t=>t.reset()),this}checkRangeFilterByAttributeKey(t,e){let r=t.attribute;if(r instanceof at){let i=r.start,n=r.end;return r.key===e||i?.name===e||n?.name===e}return!1}checkAssignmentFilterByAttributeKey(t,e){return t.key===e||t.user?.key===e||t.assignmenttype?.key===e}getFilterByAttributeKey(t){return this.find(e=>e instanceof Tt?this.checkRangeFilterByAttributeKey(e,t):e instanceof Ot?this.checkAssignmentFilterByAttributeKey(e,t):e.attribute?.key===t)}update(t,e){let r=t.parentKey?this.getFilterByAttributeKey(t.parentKey):this.getFilterByAttributeKey(t.key);if(!r)throw new Error(`Can not find filter by attribute key: ${t.key}`);r.update(t,e),this.collection=this.collection.map(i=>i.name===r.name?r:i)}get isValid(){return this.collection.every(t=>t.isValid)}hasActiveFilters(){return this.collection.some(t=>t.isActive())}};var Qe=class extends O{};var Ye=class extends u{_filterCollection;_concepts;constructor(t){super(t),this._filterCollection=new x(this.data.filter,{filter:this.contributions.filter,dynamicschema:this.data.dynamicschema},this.modelOptions),this._concepts=new Qe,this._concepts.collection=this.data._embedded?this.data._embedded.results.map(e=>new Ct(e.concept,this.entryDate,this.modelOptions)):[]}get type(){return this.resourcetype.toLowerCase()==="relatedconcepts"?"RelatedConcepts":"ConceptIndex"}static get modelName(){return"ConceptIndexModel"}static isApplicableModel(t){let e=t.resourcetype;return e==="ConceptSearch"||e.toLowerCase()==="relatedconcepts"}getInitialChildModelLinks(){return this.items.getInitialChildModelLinks()}setChildModels(t,e){this.items.setChildModels(t,e)}get selfhref(){let{href:t}=this.selflink;return this.filterCollection.hasItems()&&this.filterCollection.forEach(e=>{e.params.forEach(r=>{r.value?t.setParameter(r.name,r.value):t.removeParameter(r.name)})}),t}get label(){return this.getContributionAsString("label","")}get filterCollection(){return this._filterCollection}get indexfilter(){return this.filterCollection.getFilterByAttributeKey("index")}get entryDate(){let t=this.filterCollection.getFilterByAttributeKey(y);return t&&t.attribute?t.attribute.value:E.now()}get searchtermfilter(){return this.filterCollection.getFilterByAttributeKey("label")}get modelCategoryFilter(){return this.filterCollection.getFilterByAttributeKey("modelCategory")}get items(){return this._concepts}set items(t){this._concepts=t}};var Je=class extends O{};var tr=class extends u{_filterCollection;_content;constructor(t){super(t),this._filterCollection=new x(this.data.filter,{filter:this.contributions.filter,dynamicschema:this.data.dynamicschema},this.modelOptions),this._content=new Je,this._content.collection=this.data._embedded?this.data._embedded.results.map(e=>new R(e.content,void 0,this.modelOptions)):[]}get type(){return"ContentIndex"}static get modelName(){return"ContentIndexModel"}static isApplicableModel(t){return t.resourcetype==="ContentSearch"}getInitialChildModelLinks(){return this.items.getInitialChildModelLinks()}setChildModels(t,e){this.items.setChildModels(t,e)}get selfhref(){let t=this.selflink.href;return this.filterCollection.forEach(e=>{e.params.forEach(r=>{r.value?t.setParameter(r.name,r.value):t.removeParameter(r.name)})}),t}get label(){return this.getContributionAsString("label","unknown")}get filterCollection(){return this._filterCollection}get indexfilter(){return this._filterCollection.getFilterByAttributeKey("index")}get items(){return this._content}hasIndexFilter(){let t=this.indexfilter?.attribute;return t instanceof Y&&t.options.length>0}hasFiltersSet(){return this.filterCollection.some(t=>t.isActive())}hasNoFiltersSet(){return!this.hasFiltersSet()}getFirstCharHref(){let t=this.indexfilter?.attribute,e="#";return t instanceof Y&&(e=t.options.filter(r=>r.code!=="0")[0].code),new b(this.selfhref).addParameter("index",e)}};var er=class extends u{_section;_contentType;_filterCollection;constructor(t){super(t),this._filterCollection=new x(this.data.filter,{filter:this.contributions.filter},this.modelOptions),this._section=new st(this.data,this.entryDate,this.modelOptions)}get type(){return"Content"}static get modelName(){return"ContentModel"}static isApplicableModel(t){return t.resourcetype==="ContentDetail"}getInitialChildModelLinks(){let t=this.links.getLinkByKey("contenttype");return t?[t]:[]}setChildModels(t,e){this.contentType=t.find(r=>r instanceof V)}get section(){return this._section}get id(){return this.data._id}get filterCollection(){return this._filterCollection}get entryDate(){let t=this.filterCollection?.getFilterByAttributeKey(y);if(t&&t.attribute)return t.attribute.value}get contentType(){return this._contentType}set contentType(t){this._contentType=t}get label(){return this.section.label}get number(){return this.section.number}get body(){return this.section.body}get childSectionLinks(){return this.section.childSectionLinks}get selfContentLink(){return this.section.selfContentLink}get childSections(){return this.section.childSections}set childSections(t){this.section.childSections=t||[]}get subSections(){return this.section.subSections}get relatedConceptsHrefs(){let t=[];return this.relatedConceptsHref&&t.push(this.relatedConceptsHref),this.subSections.forEach(e=>{t.push(...e.relatedConceptsHrefs)}),t}get relatedConceptsHref(){let t=this.links.getLinkByKey("relatedConcepts");if(t){let{href:e}=t;return e.addParameter("entryDate",this.entryDate),e.setReferenceHash(this.referenceHash),e}return null}get referenceHash(){return this.section.referenceHash}};var rr=class extends u{_contentType;_filterCollection;constructor(t){super(t),this._filterCollection=new x(this.data.filter,{filter:this.contributions.filter},this.modelOptions)}get type(){return"ContentTOC"}static get modelName(){return"ContentTOCModel"}static isApplicableModel(t){return t.resourcetype==="ContentTOC"}getInitialChildModelLinks(){let t=this.links.getLinkByKey("contenttype");return t?[t]:[]}setChildModels(t,e){this.contentType=t.find(r=>r instanceof V)}get label(){return this.getDataAsString("label","")}get abbreviation(){return this.getDataAsString("abbreviation")}get selfhref(){let t=new b(this.selflink.href);return this.filterCollection.forEach(e=>{e.params.forEach(r=>{r.value?t.setParameter(r.name,r.value):t.removeParameter(r.name)})}),t}get relatedConceptsHref(){let t=this.links.getLinkByKey("relatedConcepts");if(t){let{href:e}=t;return e.addParameter("entryDate",this.entryDate),e}}get selfContentLink(){return new R(this.data,this.entryDate,this.modelOptions)}getItems(t){return t.map(e=>{let r=new R(e,this.entryDate,this.modelOptions);return typeof e.items<"u"&&(r.items=this.getItems(e.items)),r})}getSectionItems(t){return t.map(e=>{let r=new R(e,this.entryDate,this.modelOptions);return typeof e.sections<"u"&&(r.items=this.getItems(e.sections)),r})}get items(){return Array.isArray(this.data.items)?this.getItems(this.data.items):Array.isArray(this.data.sections)?this.getSectionItems(this.data.sections):[]}get sections(){return this.data.sections?this.data.sections.map(e=>new st(e,this.entryDate,this.modelOptions)):[]}get categories(){return Array.isArray(this.data.categories)?this.data.categories.map(t=>new R(t,void 0,this.modelOptions)):[]}get contentType(){return this._contentType}set contentType(t){this._contentType=t}get filterCollection(){return this._filterCollection}get entryDate(){return this.filterCollection.getFilterByAttributeKey(y)?.attribute?.value}get isCompleteSource(){return this.filterCollection.getFilterByAttributeKey("complete")?.attribute?.value==="true"}};var xt=class{_configuration;_layouthint;_calculatedResults;_positiveResults;_negativeResults;_results;constructor(t){this._configuration=t||null,this._layouthint=new C(t?.layouthint),this._calculatedResults=new T(t?.calculatedResultElements),this._positiveResults=new T(t?.positiveResultElements),this._negativeResults=new T(t?.negativeResultElements),this._results=new T(t?.resultElements)}get label(){return this._configuration?.label}get description(){let t=this._configuration?.description;return typeof t=="object"&&"message"in t?t.message:t}get layouthint(){return this._layouthint}get attributes(){return this._configuration===null?[]:[...this._configuration.attributes,...this.layouthint.all.filter(t=>t.includes("attribute:")).map(t=>t.substring(10))]}get calculatedResultElements(){return this._calculatedResults}get positiveResultElements(){return this._positiveResults}get negativeResultElements(){return this._negativeResults}get resultElements(){return this._results}};var ir=class{_configuration;constructor(t){this._configuration=t||[]}get config(){return this._configuration.filter(t=>{let[e]=Object.keys(t);return e==="decisionResult"||e==="classificationResult"||e==="calculatorResult"}).map(t=>{let[e]=Object.keys(t);return new xt(t[e])})}};var nr=class{_question;_options;_answers;constructor(t){this._question=new T(t.questionElements),this._options=new T(t.optionElements),this._answers=new T(t.givenAnswerElements)}hasConfig(){return this._question.hasConfig()||this._options.hasConfig()||this._answers.hasConfig()}get question(){return this._question}get options(){return this._options}get answers(){return this._answers}};import{immerable as Ki}from"immer";var It=class{[Ki]=!0;_questions;_intermediateResults;_endResults;constructor(t){this._questions=this.createQuestionConfiguration(t),this._intermediateResults=this.createIntermedidateResultsConfiguration(t),this._endResults=this.createEndResultsConfiguration(t)}createQuestionConfiguration(t){if(t&&"questions"in t&&typeof t.questions=="object")return new nr(t.questions)}createIntermedidateResultsConfiguration(t){if(t&&"intermediateResults"in t&&typeof t.intermediateResults=="object")return new xt(t.intermediateResults)}createEndResultsConfiguration(t){if(t&&"results"in t&&typeof t.results=="object")return new ir(t.results)}get questions(){return this._questions}isConfiguredIntermediateResultAttribute(t){return this.intermediateResults?.attributes.includes(t)??!1}get intermediateResults(){return this._intermediateResults}isConfiguredEndResultAttribute(t){return this.endResults?this.endResults?.config.some(e=>e.attributes.includes(t)):!1}get endResults(){return this._endResults}};import{immerable as Wi}from"immer";var mi=class{[Wi]=!0;_originalError;_connectKey;_modelOptions;constructor(t,e,r){this._originalError=t,this._connectKey=e,this._modelOptions=r}set connectKey(t){this._connectKey=t}get connectKey(){return this._connectKey}get origin(){return this._modelOptions?.origin||""}get contextPath(){return this._modelOptions?.contextPath||j()}get error(){return this._originalError}get status(){let r=this.error;return"status"in r?parseInt(r.status,10):0}get id(){return this.isResourceNotFound&&"id"in this.error&&this.error.id!=="Error.NotAuthorized"?"Error.ResourceNotFound":"id"in this.error&&typeof this.error.id=="string"?this.error.id:this.error.name||"Error.GeneralError"}get message(){let t=this.error;return"message"in t?t.message:this.id}get responseMessage(){return this.response&&"message"in this.response?this.response.message:""}get title(){return this.response&&"title"in this.response?this.response.title:{id:""}}get titleMessage(){if("title"in this.error)return this.error.title?.message}get titleId(){return this.response?.title?.id}get titleProperties(){return this.response?.title?.properties}get redirect(){return this.response?.redirect}get redirectText(){if(this.redirect&&"text"in this.redirect)return this.redirect?.text}get redirectTextID(){return this.redirectText?.id}get redirectTextProperties(){return this.redirectText?.properties}get redirectMessage(){return this.redirectText?.message}get redirectHref(){if(this.redirect&&"href"in this.redirect){let t=this.redirect?.href;if(t)return new b(t)}}get layouthint(){return this.response&&Array.isArray(this.response.layouthint)?new C(this.response.layouthint):new C}get response(){let t=this.error;if("response"in t&&typeof t.response=="object")return t.response}get properties(){let t=this.error;if("properties"in t)return t.properties}get parameters(){let t=this.error;if("parameters"in t)return t.parameters}get isResourceNotFound(){return this.status===404}get isResourceNotFoundAfterReload(){let t=this.error;return"isReload"in t&&typeof t.isReload=="boolean"?this.isResourceNotFound&&t.isReload:!1}get isUnauthorized(){let e=this.status===401,r=this.id==="Error.NotAuthorized"||this.id==="Error.Authentication.Required"||this.id==="Error.Authentication.InvalidCredentials",i=this.error,n="action"in i&&typeof i.action=="object"&&i.action!==null&&"name"in i.action&&i.action.name==="login";return e||r||n}get isChangePassword(){return this.id==="Error.ChangePasswordRequired"}get isConcurrentUser(){return this.id==="Error.Authentication.ConcurrentUser"}get isConcurrentError(){return this.id==="Error.Case.ConcurrentModification"||this.id==="Error.DataStore.ConcurrentModification"||this.id==="Error.DataStore.RecordAlreadyExists"||this.id==="Error.DataStore.RowCannotBeLocked"}get isBlocked(){return this.id==="Error.Authentication.BlockedUser"}get isInvalidCredentials(){return this.id==="Error.Authentication.InvalidCredentials"}get isInvalidUsername(){return this.id==="Error.Authentication.InvalidUsername"}get isTimeoutError(){return this.id==="Error.CodemapLookup.InvalidToken"}get isRemoteServiceException(){return this.id==="Error.RemoteServiceException"}get changePasswordHref(){let t=this.properties;if(t&&"redirect"in t)return new b(t.redirect)}get isBasicAuthentication(){let e=this.error;return"error"in e?this.isUnauthorized&&this.status===401&&e.error==="No responseText":!1}get loginFailed(){return this.id==="Error.Authentication.Required"||this.id==="Error.Authentication.InvalidCredentials"}get shouldThrowOnServer(){return!this.isChangePassword&&!this.isBlocked&&!this.isConcurrentUser}};var jr=I(et(),1);var ht=class s extends h{_attributeCollection;_contentConfiguration;_errorCollection;_repeatIndex;_dynamicValidationsLoaded=!1;constructor(t,e,r){super(t,e,r),t&&this.getElements().length>0?this._attributeCollection=new D(this.getElements(),this.getApplicableAttributeContributions(),{...r,isReadonly:!1}):this._attributeCollection=new D,this._contentConfiguration=new It(e?e.content:{}),this._errorCollection=new U("formobject");let i=this.getDataAsString("referenceDate");i&&this.attributeCollection.setReferenceDate(i),this.attributeCollection.indicateContentConfiguration(this.contentConfiguration)}static createEmpty(t){if(!t)throw new f("createEmpty method needs a FormObjectModel as input argument to create a new version of the object");return new s(t.data,t.contributions,t.modelOptions)}equals(t,e=!0){if(!t||this.key!==t.key)return!1;let r=this.attributeCollection.all.filter(n=>!n.isResult).some(n=>t&&t.attributeCollection.hasAttributeByKey(n.key));return(e?this.repeatIndex===t.repeatIndex:!0)&&r}getAttributeByAttribute(t){return this.attributeCollection.getAttributeByAttribute(t)}getAttributeByKey(t){return this.attributeCollection.getAttributeByKey(t)}hasAttributeByKey(t){return this.attributeCollection.hasAttributeByKey(t)}getElements(){let t=[];if(Array.isArray(this.data.elements)&&t.push(...this.data.elements),Array.isArray(this.data.results)){let e=this.data.results.map(r=>({...r,isResult:!0}));t.push(...e)}return this.data.elementid&&t.push({...this.data}),t}getApplicableAttributeContributions(){if(this.data&&this.contributions){let t=this.getElements().map(r=>r.elementid),e=this.getAttributesInData(t,this.contributions.attributes);return this.isDynamic?e.map(r=>{let[i]=Object.keys(r);return{[i]:{...r[i],mandatory:!0}}}):e}return[]}getAttributesInData(t,e=[]){return e.filter(r=>{let[i]=Object.keys(r);return t.some(n=>n.split(".")[0]===i)})}getInitialChildModelLinks(){return this._attributeCollection.getInitialChildModelLinks()}setChildModels(t,e){this._attributeCollection.setChildModels(t,e)}get key(){return this.data.objectid||"unknown"}get contentConfiguration(){return this._contentConfiguration}get hasEndResultConfiguration(){return this.contributions.content?.results!=null}get isDynamic(){return this.getContributionAsBoolean("dynamicObject",!1)}get hasDynamicValidations(){return this.getContributionAsBoolean("dynamicValidations",!1)}get isRepeatable(){return this.getContributionAsBoolean("repeatable",!1)}get repeatIndex(){return this._repeatIndex??this.data.index??1}set repeatIndex(t){this._repeatIndex=t}get maxRepeats(){return this.isRepeatable?this.getDataAsNumber("numberofrepeats",-1):1}get hasFixedNrOfRepeats(){return this.maxRepeats>-1}get isRepeatWithUnknownTotal(){return this.isRepeatable&&this.maxRepeats===-1}get isLastRepeat(){return this.isRepeatable?this.getDataAsBoolean("last",!1):!0}get repeatIndexLabel(){return this.getDataAsString("index-identifier")}get label(){return this.getContributionAsString("label")}get introText(){if(typeof this.data.content=="object"&&this.data.content!=null&&"text"in this.data.content){let{message:t}=this.data.content.text;return t}return this.contributions.text?.message?this.contributions.text.message:this.contributions.introText}get assistent(){return this.contributions.assistent}get buttonLabels(){return this.getContributionAsObject("buttonLabels",{})}get attributeCollection(){return this._attributeCollection}set attributeCollection(t){this._attributeCollection=t}mergeObject(t){this.attributeCollection.forEach(e=>{let r=t.getAttributeByAttribute(e);r&&e.mergeAttribute(r)}),this.repeatIndex=t.repeatIndex}updateAttribute(t,e){let r=this.attributeCollection.getAttributeByAttribute(t);if(r==null)throw new Error(`Attribute with name: ${t.name} not found.`);return r instanceof _?r.update(e,t):r.update(e),r}isChangedSince(t){return this.attributeCollection.find(e=>e.isChangedSince(t))!=null}resetErrors(){this._errorCollection.clear(),this.attributeCollection.forEach(t=>t.resetErrors())}get errorCollection(){return this._errorCollection}addServerError(t){t.anchor?.elementid!=null?this.attributeCollection.addServerError(t):this._errorCollection.addServerError(t.id,t.message,t.properties,t.layouthint)}hasServerErrors(){return this.errorCollection.hasItems()||this.attributeCollection.hasServerErrors()}hasErrors(){return this.errorCollection.hasItems()||this.attributeCollection.hasErrors()}get isValid(){return this.attributeCollection.visible.every(t=>t.isValid)&&!this.errorCollection.hasItems()}get dynamicValidationsLoaded(){return this._dynamicValidationsLoaded}set dynamicValidationsLoaded(t){this._dynamicValidationsLoaded=t}handleErrorValidations(t){let e=[];t.filter(r=>r.anchor?.objectid===this.key).forEach(r=>{(0,jr.has)(r.anchor,"elementid")?e.push(r):this.errorCollection.addServerError(r.id,r.message,r.properties,new C(r.layouthint))}),this.attributeCollection.updateValidations(e)}handleMissingValidations(t,e){let r=[];for(let i of t.anchors)if(!i.objectid||i.objectid===this.key)if(Array.isArray(i.elements))for(let n of i.elements)r.push({anchor:{objectid:n.objectid||"",elementid:n.elementid},id:"Constraint.Mandatory"});else r.push({anchor:{...i,objectid:i.objectid||""},id:"Constraint.Mandatory"});Array.isArray(e)&&e.filter(i=>i.id==="Constraint.Mandatory"&&i.anchor?.objectid===this.key&&(0,jr.has)(i.anchor,"elementid")).forEach(i=>{r.push(i)}),this.attributeCollection.updateValidations(r)}updateValidations(t){return this.resetErrors(),Array.isArray(t.errors)&&this.handleErrorValidations(t.errors),Array.isArray(t.missing?.anchors)&&this.handleMissingValidations(t.missing,t.errors),this.dynamicValidationsLoaded=!0,this}get formdata(){return this.attributeCollection.formdata}getFormData(t=!1){return this.attributeCollection.getFormData(t)}};var jt=I(et(),1),Si=I(Ei(),1);import en from"deepmerge";var sr=class s extends u{_lastUpdate;_completedFormObjects=[];_currentFormObject=null;_previouslyEnteredFormObjects=[];_mergePreviouslyEnteredObjects=!0;_endResultFormObjects=[];_previousEndResultKeys=[];_useClientsideValidation=rt("USE_CLIENTSIDE_VALIDATION");_errorCollection=new U(0);_redirectLocation;_commit=!1;_isFinished=!1;_isComplete=!1;_success;_parameters=new Jt;_tokens=[];constructor(t){super(t),this._lastUpdate=0,this.currentFormObject=this.createFormObject(),this.endResultFormObjects=this.setEndResultFormObjects(),this.parameters=this.setParameters(t?.parameters),this.isComplete=this.getDataAsBoolean("complete",!1),Array.isArray(this.data.errors)&&this.handleRootErrors(this.data.errors),this.createSuccess(),this.setTokens()}get type(){return"Form"}get actiontype(){return this.layouthint.has(zt)?"create":this.layouthint.has(Wt)?"update":this.layouthint.has(Kt)?"delete":this.getContributionAsString("actiontype","form")}static get modelName(){return"FormModel"}static isApplicableModel(t){return t.resourcetype==="Form"}getInitialChildModelLinks(){let t=(0,Si.default)(this.endResultFormObjects.map(e=>e.getInitialChildModelLinks()));return this.currentFormObject==null?t:[...this.currentFormObject.getInitialChildModelLinks(),...t]}setChildModels(t,e){this.currentFormObject&&this.currentFormObject.setChildModels(t,e),this.endResultFormObjects.forEach(r=>{r.setChildModels(t,e)})}get label(){return this.getContributionAsString("label","")}get buttonLabels(){return this.getContributionAsObject("buttonLabels",{})}getButtonLabel(t){if(t==="cancel"&&"cancel"in this.buttonLabels)return this.buttonLabels.cancel;let e=this.currentFormObject?.buttonLabels;if(e&&t in e)return e[t]}get allObjects(){return this.currentFormObject==null?this.completedFormObjects:[...this.completedFormObjects,this.currentFormObject]}get objectKeys(){let t=this.getContributionAsObject("objects",{});return Object.keys(t)}get numberOfExpectedQuestions(){return this.objectKeys.length}get hasNoQuestionsConfigured(){return this.isComplete&&(this.objectKeys.length===0||!("missing"in this.data)&&!("results"in this.data)&&!("errors"in this.data))}addDynamicSchemaToElements(t,e){return t?.map(r=>({...r,dynamicschema:r.dynamicschema?r.dynamicschema.map(i=>{let n="elements"in i?i.elements:[];return n.length?{...i,elements:{...n,dynamicschema:e}}:i}):void 0}))}getMissingAnchors(){return(this.data.missing?.anchors??[]).map(e=>{if(this.data.results){let r=this.data.results.find(i=>i.objectid===e.objectid&&"elements"in i);r&&(e.results=r.elements)}return e.elements&&this.data.dynamicschema?{...e,elements:this.addDynamicSchemaToElements(e.elements,this.data.dynamicschema)}:e})}createFormObject(){if(this.data&&this.contributions.objects){let t=this.getMissingAnchors();if(t.length){let e=t[0],r=t[0].objectid;if(r){let i=this.contributions.objects[r];if(i)return new ht(e,i)}}}return null}addEmptyFormObject(t=this.currentFormObject){if(t){let e=ht.createEmpty(t);e.repeatIndex=this.getHighestRepeatIndex(t)+1,this.addFormObject(e)}}getHighestRepeatIndex(t){return Math.max(...this.allObjects.filter(e=>e.equals(t,!1)).map(e=>e.repeatIndex))}addFormObject(t){if(!t)throw new f("Missing form object to add");this.completedFormObjects=[...this.allObjects],this.currentFormObject=t}getFormObjectByKey(t){return this.allObjects.find(e=>e.key===t)}getFormObjectByLayoutHint(t){return this.allObjects.find(e=>e.layouthint.has(t))}removeFormObject(t){if(!t)throw new f("Missing form object to remove");if(this.currentFormObject&&this.currentFormObject.equals(t))throw new f("Can not remove the current form object");this.completedFormObjects=this.completedFormObjects.filter(e=>!e.equals(t))}get currentFormObject(){return this._currentFormObject}set currentFormObject(t){this._currentFormObject=t}get completedFormObjects(){return this._completedFormObjects}set completedFormObjects(t){this._completedFormObjects=t}get previouslyEnteredFormObjects(){return this._previouslyEnteredFormObjects}set previouslyEnteredFormObjects(t){this._previouslyEnteredFormObjects=t}setEndResultFormObjects(){if(this.data&&this.data.results&&Array.isArray(this.data.results)){let e=(Array.isArray(this.data.missing?.anchors)?this.data.missing?.anchors:[]).map(i=>i.objectid),r=this.data.results.filter(i=>!e.includes(i.objectid)).map(i=>{let{elements:n,...o}=i;return{...o,results:n}});if(r.length>0)return r.map(i=>{let n=this.contributions.objects?.[i.objectid];return n?new ht(i,n):null}).filter(i=>i!=null)}return[]}get expectsEndResultFormObjects(){let t=this.endResultFormObjects.map(e=>e.key);return this.objectKeys.some(e=>this.contributions.objects?.[e]?.content?.results&&!t.includes(e))}get endResultFormObjects(){return this._endResultFormObjects}set endResultFormObjects(t){this.previousEndResultKeys=this.endResultFormObjects.map(e=>e.key),this._endResultFormObjects=t}getEndResultFormObjects(){return this.endResultFormObjects.filter(t=>!this.previousEndResultKeys.includes(t.key))}get previousEndResultKeys(){return this._previousEndResultKeys}set previousEndResultKeys(t){this._previousEndResultKeys=t}get isValid(){return this.currentFormObject?this.currentFormObject.isRepeatable&&(!this.currentFormObject.hasFixedNrOfRepeats||this.allObjects.filter(e=>this.currentFormObject!=null&&e.equals(this.currentFormObject,!1)).find(e=>e.isValid))?!0:this.currentFormObject?.isValid??!0:!0}hasServerErrors(){return this.errorCollection.hasItems()?!0:this.currentFormObject?this.currentFormObject.hasServerErrors():!1}hasErrors(){return this.errorCollection.hasItems()?!0:this.currentFormObject?this.currentFormObject.hasErrors():!1}addServerError(t){this.errorCollection.addServerError(t.id,t.message,t.properties,t.layouthint)}resetErrors(){this._errorCollection.clear(),this.currentFormObject&&this.currentFormObject.resetErrors()}get errorCollection(){return this._errorCollection}set errorCollection(t){this._errorCollection=t}get commit(){return this._commit||!1}set commit(t){this._commit=t}get isFinished(){return this._isFinished||this.success!=null}set isFinished(t){this._isFinished=t}get isComplete(){return this._isComplete}set isComplete(t){this._isComplete=t}get successRedirect(){return this.isFinished&&this.success?.redirect?new b(this.success.redirect):void 0}get redirectLocation(){return this._redirectLocation||this.successRedirect}getSuccessData(){return this.success?.data}getResultData(){let t={};if(this.contributions.resultdata){let e=this.contributions.resultdata,r=Object.keys(e),i=this.getSuccessData();for(let n of r){let o=i?.[n]||{},a=n in e?e[n]:{};t[n]=new dt(n,o,a)}}return t}get resultData(){return this.getSuccessData()}setParameters(t){let e=t?t.map(r=>new Yt(r.prefix,r.name,r.value)):[];return new Jt(e)}get parameters(){return this._parameters}set parameters(t){this._parameters=t}selfhrefNoCommitParam(){let t=this.parameters.filter(r=>r.name!=="commit"),e=this.selflink?.href;return e?(e.method="POST",e.parameters=new Jt(t),e):new b}selfhrefWithCommitParam(){let t=this.selfhrefNoCommitParam();return this.expectsEndResultFormObjects&&!this.isComplete&&!this.commit&&t.addParameter("commit","false"),t}get selfhref(){if(!this.selflink)throw new Error("No self link found for form");return Qt("ALWAYS_COMMIT_FORM")?this.selfhrefNoCommitParam():this.selfhrefWithCommitParam()}get tokens(){if(!this._tokens){let t=this.data?.tokens;this._tokens=Array.isArray(t)?t:[]}return this._tokens}set tokens(t){this._tokens=t}removeTokens(){this._tokens=[]}setTokens(){let t=this.data?.tokens;this._tokens=Array.isArray(t)?t:[]}isChanged(){return this.currentFormObject!==null&&this.currentFormObject.isChangedSince(this.lastUpdate)}get lastUpdate(){return this._lastUpdate}set lastUpdate(t){this._lastUpdate=t}getFormDataObjects(t=!0,e=!1){let r=this.allObjects.filter(n=>n.isRepeatable&&!n.hasFixedNrOfRepeats&&!n.attributeCollection.some(a=>a.value!==null)?!1:n.isValid||!t),i=[];return r.forEach(n=>{let o=n.getFormData(e);if(!o)return;let a=o&&Object.values(o).some(c=>c!==null);if(n.isDynamic?a:!0){let c=i.findIndex(B=>B.key===n.key&&B.repeatIndex===n.repeatIndex);c>-1?i[c].formdata=en(i[c].formdata,o):i.push({key:n.key,repeatIndex:n.repeatIndex,formdata:o})}}),i.map(n=>({[n.key]:n.formdata}))}getFormData(t=!0,e=!0,r=!1){return e&&this.tokens.length>0?JSON.stringify({objects:this.getFormDataObjects(t,r),tokens:this.tokens}):JSON.stringify({objects:this.getFormDataObjects(t,r)})}setUseClientsideValidation(t){this._useClientsideValidation=t,this.allObjects.forEach(e=>{e.attributeCollection.all.forEach(r=>r.setUseClientsideValidation(t))})}useClientsideValidation(){return this._useClientsideValidation??!0}get formdata(){return this.getFormData(this.useClientsideValidation())}get validationData(){return this.getFormData(!1,!1,!0)}get hasPreviousStep(){let t=this.currentFormObject!=null?this.currentFormObject.key:"";return this.completedFormObjects.filter(e=>!e.isRepeatWithUnknownTotal||e.key!==t).length>0}setPreviousObject(){this.isComplete=!1,this.isFinished=!1,this.success=void 0;let t=this.currentFormObject;this.currentFormObject!=null&&(this.previouslyEnteredFormObjects=[this.currentFormObject,...this.previouslyEnteredFormObjects]),this.currentFormObject=this.completedFormObjects[this.completedFormObjects.length-1],this.completedFormObjects=this.completedFormObjects.slice(0,-1);let e=this.completedFormObjects.map(r=>r.key).filter(r=>r!==this.currentFormObject?.key);this.endResultFormObjects=this._endResultFormObjects.filter(r=>e.includes(r.key)),this.previousEndResultKeys=this.endResultFormObjects.map(r=>r.key),this.currentFormObject&&this.currentFormObject.equals(t,this.currentFormObject.hasFixedNrOfRepeats)&&this.setPreviousObject()}get hasNextStep(){if(this.isComplete||this.isFinished||this.hasNoQuestionsConfigured||!this.contributions.objects)return!1;if(this.currentFormObject&&this.currentFormObject.isDynamic||this.expectsEndResultFormObjects)return!0;let t=this.objectKeys.findIndex(r=>r===this.currentFormObject?.key),e=this.objectKeys.length-1===t;return e&&this.currentFormObject&&this.currentFormObject.isRepeatable&&!this.currentFormObject.isLastRepeat?!0:!e}update(t){if(t instanceof s){this.resetErrors(),this.lastUpdate=Date.now(),this.lastServerUpdate=t.lastServerUpdate,this.tokens=t.tokens,this.isComplete=t.isComplete,this.isFinished=t.isFinished,this.success=t.success;let e=t.data??{},r=(0,jt.has)(e,"missing"),i=(0,jt.has)(e,"errors");!r&&!i&&this.handleFinished(t),i&&this.handleErrors(t),r&&this.handleMissing(t)}return this}updateCurrentFormObject(t){if(t instanceof s){let e=t.data??{},r=(0,jt.has)(e,"missing");(0,jt.has)(e,"errors")&&this.handleErrors(t),r&&this.handleMissing(t)}}updateValidations(t){return this.currentFormObject&&this.currentFormObject.updateValidations(t),this}get success(){return this._success}set success(t){this._success=t}createSuccess(){this._success=this.data.success}handleFinished(t){this.currentFormObject&&(this.completedFormObjects=[...this.completedFormObjects,this.currentFormObject]),this.currentFormObject=t.currentFormObject,this.endResultFormObjects=t.endResultFormObjects,this.replaceData({...this.data,...t.data})}handleRootErrors(t){t.filter(e=>!e.anchor).forEach(e=>{this.errorCollection.addServerError(e.id,e.message,e.properties,e.layouthint)})}handleErrors(t){let e=Array.isArray(t.data.errors)?t.data.errors:[];e&&e.forEach(r=>{r.anchor&&this.currentFormObject&&this.currentFormObject.key===r.anchor.objectid?this.currentFormObject.addServerError(r):this.errorCollection.addServerError(r.id,r.message,r.properties,r.layouthint)})}handleMissing(t){this.currentFormObject&&this.currentFormObject.equals(t.currentFormObject)?this.handleMissingErrors(t):this.handleNewFormObject(t)}processMissingErrors(t){return this.currentFormObject===null?null:(this.currentFormObject.attributeCollection.map(e=>{let r=t.currentFormObject?.getAttributeByKey(e.key);return r?e.addMissingError(r):e.removeMissingError(),e}),this.currentFormObject)}handleMissingErrors(t){this.currentFormObject=this.processMissingErrors(t)}handleNewFormObject(t){this.endResultFormObjects=t.endResultFormObjects;let e=t.currentFormObject;e===null?(this.completedFormObjects=[...this.allObjects],this.currentFormObject=null):(this.currentFormObject?.isRepeatable?this.completedFormObjects=[...this.completedFormObjects,this.currentFormObject]:this.currentFormObject&&(this.completedFormObjects=[...this.allObjects]),this.currentFormObject=e)}get mergePreviouslyEnteredObjects(){return this._mergePreviouslyEnteredObjects}set mergePreviouslyEnteredObjects(t){this._mergePreviouslyEnteredObjects=t}handlePreviouslyEnteredFormObjects(t,e){e.forEach(r=>{let i=this.mergePreviouslyEnteredObjects?this.mergeObjects(t,r):t;this.addFormObject(i)}),this.previouslyEnteredFormObjects=this.previouslyEnteredFormObjects.filter(r=>!e.find(n=>r.equals(n)))}mergeObjects(t,e){let r=ht.createEmpty(t);return r.mergeObject(e),r}findAttribute(t){return this.allObjects.flatMap(e=>e.attributeCollection.all).find(e=>t(e))}};var or=I(et(),1);var pt=class extends ${_contentConfiguration;_listitem;_givenAnswers;_results;_eventdata;constructor(t){super(t),this._contentConfiguration=new It(this.contributions?this.contributions.content:{}),this.setResultSection(),this._eventdata=this.setEventData()}getInitialChildModelLinks(){let t=this.listitem?this.listitem.links.getLinksByGroup("panel").all:[],e=[...super.getInitialChildModelLinks(),...t];return this.hasResults&&(this.results&&e.push(...this.results.getInitialChildModelLinks()),this.givenAnswers&&e.push(...this.givenAnswers.getInitialChildModelLinks())),e}setChildModels(t,e){this.attributeCollection.setChildModels(t,e),this.results&&this.results.setChildModels(t,e),this.givenAnswers&&this.givenAnswers.setChildModels(t,e)}get type(){return"ListDetail"}static get modelName(){return"ListDetailModel"}static isApplicableModel(t){let e=t.resourcetype??"unknown";return e=e.toLowerCase(),e.endsWith("listdetail")||e.endsWith("listpaneldetail")||e.endsWith("datastorepaneldetail")}set listitem(t){this._listitem=t,t&&(this.actionCollection=t.actionCollection)}get listitem(){return this._listitem}get panelLinks(){return this.listitem?.links.getLinksByGroup("panel")}get contentConfiguration(){return this._contentConfiguration}set contentConfiguration(t){this._contentConfiguration=t}get introtext(){return this.data._content?this.data._content.text.message:this.contributions.text?this.contributions.text.message??this.contributions.text:Array.isArray(this.contributions.texts)?this.contributions.texts[0].text:""}setResultSection(){let t=this.contributions.resultSection,e=this.data.resultSection;e&&t&&(this.setResults(e.results,t.results),this.setGivenAnswers(e.givenAnswers,t.givenAnswers))}setResults(t,e){if(t&&e){e.type==="composite"&&(e.children=e.children.filter(i=>Object.keys(i)[0]in t));let r=k.createAttribute("results",{key:"results",dynamicschema:this.data.dynamicschema,content:this.data.content?.results,...this.data.resultSection},e,this.modelOptions);r instanceof _&&(r.isResult=!0,r.indicateContentConfiguration(this.contentConfiguration),this._results=r)}}setGivenAnswers(t,e){if(t&&e){let r={...e,children:e.children.filter(n=>Object.keys(n)[0]in t)},i=k.createAttribute("givenAnswers",{key:"givenAnswers",dynamicschema:this.data.dynamicschema,content:this.data.content?.givenAnswers,...this.data.resultSection},r,this.modelOptions);i instanceof _&&(i.isResult=!0,this._givenAnswers=i)}}get givenAnswers(){return this._givenAnswers}get hasResults(){return(0,or.has)(this.contributions,"resultSection")}get results(){return this._results}get hasEventData(){return(0,or.has)(this.contributions,"eventdata")&&(0,or.has)(this.data,"eventdata")&&this.data.eventdata!=null&&this.contributions.eventdata!=null}setEventData(){if(!this.data.eventdata||!this.contributions.eventdata)return[];let t=[],{eventdata:e,dynamicschema:r}=this.data;return this.contributions.eventdata.forEach(n=>{for(let o of Object.keys(n)){let a=n[o],l=e[o];l&&(Array.isArray(l)?l.forEach((c,B)=>{let xi=`${o}-${B+1}`;t.push(new dt(xi,{...c,dynamicschema:r},a,this.modelOptions))}):t.push(new dt(o,{...l,dynamicschema:r},a,this.modelOptions)))}}),t}get eventdata(){return this._eventdata}};import{immerable as rn}from"immer";var Vr=class{_group;_context;_attributeCollection;_grouping;constructor(t,e,r,i){this._group=t,this._context=e,this._attributeCollection=new D(t,e?.attributes,{...i,isReadonly:!0}),t.grouping&&(this._grouping=new Vt({...t.grouping,dynamicschema:t.dynamicschema},r,i))}get type(){return this._group.type}get id(){return this._group._id||"unknown"}get label(){return this._context?.label}get attributeCollection(){return this._attributeCollection}get grouping(){return this._grouping}get reference(){return this._group.reference||[]}hasAttributeByKey(t){return this.attributeCollection.hasAttributeByKey(t)?!0:this.grouping?this.grouping.hasAttributeByKey(t):!1}getAttributeByKey(t){let e=this.attributeCollection.getAttributeByKey(t);if(e)return e;if(this.grouping)return this.grouping.getAttributeByKey(t)}},Vt=class{[rn]=!0;_prefix;_groups=[];constructor(t,e,r){this._prefix=t?.prefix,t?.group&&(this._groups=this.createGroup(t,e,r))}createGroup(t,e,r){if(!t.group)return[];let i=this.getContextFromContributionsByPrefix(e,this._prefix);return t.group.map(n=>{let o=this.getDynamicSchema(n.type,t.dynamicschema),a={...n,dynamicschema:o};return new Vr(a,i,e,r)})}getDynamicSchema(t,e){if(e)return this._prefix&&e[t]&&!e[this._prefix+t]&&(e[this._prefix+t]=e[t]),e}get groups(){return this._groups}hasGroups(){return this._groups.length>0}getContextFromContributionsByPrefix(t,e){if(t&&e)return t.find(r=>r.prefix===e)}hasAttributeByKey(t){return this.groups.some(e=>e.hasAttributeByKey(t))}getAttributeByKey(t){let e=this.groups.find(r=>r.hasAttributeByKey(t));if(e)return e.getAttributeByKey(t)}getGroupByAttributeKey(t){return this.groups.find(e=>e.hasAttributeByKey(t))}};var ut=class s extends b{_isPrefixed;_prefix;_pagingName;_pagesizeName;_sortingName;constructor(t,e,r=!0){super(t,void 0),this._isPrefixed=r,e?this.setParameterNamesFromListModel(e):t!=null&&t instanceof s&&this.setParameterNamesFromHref(t)}setParameterNamesFromHref(t){this._prefix=this._isPrefixed?t.prefix:void 0,this._pagingName=t.pagingName,this._pagesizeName=t.pagesizeName,this._sortingName=t.sortingName}setParameterNamesFromListModel(t){this._prefix=this._isPrefixed?t.key:void 0,this._pagingName=t.paging?t.paging.name:"",this._pagesizeName=t.paging&&t.paging.pagesize?t.paging.pagesize.name:"",this._sortingName=t.sorting?t.sorting.name:"",this.page=t.paging?.page,this.pagesize=t.paging&&t.paging.pagesize.options.length>0?t.paging.pagesize.value:void 0,this.sort=t.sorting?.param,this.filterCollection=t.filterCollection}get prefix(){return this._prefix}get pagingName(){return this._pagingName}get pagesizeName(){return this._pagesizeName}get sortingName(){return this._sortingName}set page(t){this.pagingName&&this.setParameter(this.pagingName,t?.toString(),this.prefix)}get page(){return this.pagingName?this.getParameter(this.pagingName,this.prefix):void 0}set sort(t){this.sortingName&&this.setParameter(this.sortingName,t,this.prefix)}set pagesize(t){this.pagesizeName&&this.setParameter(this.pagesizeName,t?.toString(),this.prefix)}set filterCollection(t){t&&t.forEach(e=>{e.params.forEach(r=>{r.value!=null?this.setParameter(r.name,r.value,this.prefix):this.removeParameter(r.name,this.prefix)})})}};var ar=class s extends ${static createFromListResult(t,e,r,i){let n=new F;return n.key=t,n.data=e,n.contributions=r,n.origin=i?.origin,n.contextPath=i?.contextPath,new s(n)}static createFromChoiceAttributeOption(t){let e=new F;e.key=t.code;let r=new s(e);return r.attributeCollection=t.attributeCollection,r}get selfhref(){let t=this.links.getLinkByKey("self");return t?t.href:new b("#")}get caseviewHref(){let t=this.attributeCollection.getAttributeByLayoutHint(ft);if(t){let e=t.name,r=this.links.getLinkByKey(e);if(r)return r.href}return this.selfhref}get panelLinks(){return this.links.getLinksByGroup("panel")}hasPanelLinks(){return this.panelLinks.length>-1}getActionsByType(t){return this.actionCollection.getActionsByType(t)}get additionalDetailRoutePath(){let t=this.panelLinks;return t.length===0?"__NON_EXISTING_ROUTE__":t.map(e=>e.href.path).join("|")}};var lr=class s extends p{static createFromList(t){let e=t.data._embedded;if(e){if(Array.isArray(e))throw new H(`One record panel with multiple tables is not supported, place all types in one panel for the panel with key ${t.key}`);let r=t.data.dynamicschema,i=e.results.map(n=>{let[o]=Object.keys(n),a=n[o];a.dynamicschema=r;let l=t.contributions.results[o];return ar.createFromListResult(o,a,l,t.modelOptions)});return new s(i)}return new s}get additionalDetailRoutePath(){if(this.isEmpty())return"__NON_EXISTING_ROUTE__";let t=this.all.map(e=>e.additionalDetailRoutePath).join("|");return t.includes("|")?`(${t})`:t}get actionCollection(){let t=new w;return this.all.forEach(e=>{t.collection.push(...e.actionCollection.all)}),t}};import{immerable as nn}from"immer";var ur=class{[nn]=!0;_pagesize;_options;constructor(t,e){this._pagesize=t,this._options=e?.options||[]}get name(){return"pagesize"}get value(){return this._pagesize}set value(t){this._pagesize=t}get options(){return this._options}};import{immerable as sn}from"immer";var cr=class{[sn]=!0;_data;_contributions;_page;_pagesize;constructor(t,e){this._data=t,this._contributions=e,this._page=this._data?.page,this._pagesize=new ur(this._data?.pagesize,this._contributions?.pagesize)}get isEnabled(){return typeof this.page<"u"}get name(){return"page"}get value(){return this.page}get maxpages(){return this._data?.maxpages}get page(){return this._page}set page(t){this._page=t}get totalResults(){return this._data?.totalresults||-1}get pagesize(){return this._pagesize}};import{immerable as on}from"immer";var Oi=(e=>(e.ASC="asc",e.DESC="desc",e))(Oi||{}),Ut=class{[on]=!0;_key;_label;_group;_sortorder="desc";_selected=!1;constructor(t,e,r){this._key=t,this._group=r,this._label=this.setLabel(t,e,r)}setLabel(t,e,r){if(e)this._label=e;else if(r){let i=r.getAttributeByKey(t);i&&(this._label=i.label)}return""}get selected(){return this._selected}set selected(t){this._selected=t}get key(){return this._key}get value(){return`${this.key} ${this.sortorder}`}get oppositeDirection(){return this.sortorder==="desc"?"asc":"desc"}get oppositeValue(){return`${this.key} ${this.oppositeDirection}`}get label(){return this._label}get sortorder(){return this._sortorder}set sortorder(t){this._sortorder=t}get group(){return this._group}getHref(t){let e=new ut(t);return(e.prefix?e.hasParameter("page",e.prefix):e.hasParameter("page"))&&(e.page=1),e.sort=this.oppositeValue,e}};var dr=class extends p{constructor(t,e,r,i){super();let n=t?.sorting?.attributes;n&&(this.collection=n.map(o=>{let a=e[o],l=r&&r.getGroupByAttributeKey(o);return new Ut(o,a,l)}),this.setSelected(i))}get name(){return"sort"}get value(){return this.filter(t=>t.selected).map(t=>t.value).join(",")}get param(){return this.value}get options(){return this.collection}setSelected(t=""){t.split(",").forEach(e=>{let[r,i]=e.split(" ");this.collection.forEach(n=>{n.key===r&&(n.selected=!0,i==="asc"?n.sortorder="asc":i==="desc"&&(n.sortorder="desc"))})})}getUpdateQuerystring(t){if(!t)throw new f("Missing option key as input argument");return this.filter(e=>e.key===t).map(e=>e.key===t?e.oppositeValue:e.value).join(",")}getUpdateQuerystringBySortOption(t){if(!(t instanceof Ut))throw new f("Missing SortOptionModel as input argument");return this.getUpdateQuerystring(t.key)}createListHref(t,e){let r=new ut(t);return(r.prefix?r.hasParameter("page",r.prefix):r.hasParameter("page"))&&(r.page=1),r.sort=this.getUpdateQuerystringBySortOption(e),r}};var Rt=class extends u{_detail;_headers;_paging;_filterCollection;_sorting;_actionCollection;_listItemCollection;_grouping;_selfhref;constructor(t){super(t),this._headers=this.setHeaders(),this._paging=this.setPaging(),this._filterCollection=this.setFilters(),this._sorting=this.setSorting(),this._actionCollection=this.setActionCollection(),this._grouping=this.setGrouping(),this._selfhref=this.setSelfHref(),this._listItemCollection=this._listItemCollection=lr.createFromList(this)}get type(){return"List"}static get modelName(){return"ListModel"}static isApplicableModel(t){let e=t.resourcetype;return e.endsWith("List")||e.endsWith("ListPanel")||e.endsWith("RelatedDataStorePanel")||e.endsWith("RelatedDatastorePanel")||["list-related-cases","RecordPanel","EventHistoryPanel","NotePanel","AppointmentPanel","DocumentPanel","AssignmentPanel"].includes(e)}getInitialChildModelLinks(){return this.layouthint.has($r)&&this.listItemCollection.length===1?this.listItemCollection.map(t=>{let e=t.selflink;return e.targetModel=pt,e}):[]}setChildModels(t,e){this.detail=t.find(r=>r instanceof pt)}get label(){return this.contributions.label}get introtext(){return this.data.content?this.data.content.text.message:this.contributions.text?this.contributions.text.message??this.contributions.text:Array.isArray(this.contributions.texts)?this.contributions.texts[0].text:""}get listItemCollection(){return this._listItemCollection}set listItemCollection(t){this._listItemCollection=t}get detail(){return this._detail}set detail(t){let e=this.listItemCollection.find(r=>r.selfhref.equals(t?.selfhref));e&&t&&(t.listitem=e),this._detail=t,this.setSelfHref()}get grouping(){return this._grouping}setGrouping(){return new Vt({...this.data.grouping,dynamicschema:this.data.dynamicschema},this.contributions.contexts,this.modelOptions)}hasGrouping(){return this.grouping.hasGroups()}hasResults(){return this.listItemCollection.hasItems}isEmpty(){return!this.hasResults()}get shouldHide(){return this.layouthint.has(qr)&&this.isEmpty()&&this.actionCollection.isEmpty()&&!this.filterCollection.hasActiveFilters()}getListItemById(t){let e=decodeURIComponent(t.toString());return this.listItemCollection.find(r=>r.id.toString()===e)}getListItemByHref(t){return this.listItemCollection.find(e=>e.selfhref.equals(t))}get paging(){return this._paging}setPaging(){return new cr(this.data.paging,this.contributions.paging)}get sorting(){return this._sorting}setSorting(){return new dr(this.contributions,this.getSortingLabels(),this.grouping,this.data.sorting)}get filterCollection(){return this._filterCollection}set filterCollection(t){this._filterCollection=t}setFilters(){return new x(this.data.filter,{listkey:this.key,filter:this.contributions.filter||{},contexts:this.contributions.contexts,dynamicschema:this.data.dynamicschema},this.modelOptions)}isFiltered(){return this.filterCollection.hasActiveFilters()}get actionCollection(){return this._actionCollection}setActionCollection(){return new w(this.data.actions,this.contributions.actions,this.modelOptions)}hasList(){return this.key!=null}setSelfHref(){let t=this.links.getLinkByKey("self");return new ut(t?.href,this)}get selfhref(){return this._selfhref}get headers(){return this._headers}setHeaders(){let t=[];if(this.contributions.results){let{results:e}=this.contributions;Object.keys(e).forEach(r=>{e[r].attributes.forEach(i=>{let n=new _t(i,this.sorting);!t.some(a=>a.equals(n))&&!n.layouthint.has(ft)&&t.push(n)})})}return t}getSortingLabels(){let t={};return this.contributions.results&&Object.values(this.contributions.results).forEach(e=>{e.attributes.forEach(r=>{let i=Object.keys(r)[0],n=r[i].label;t[i]=n})}),t}getActionsByType(t){return this.actionCollection.getActionsByType(t)}getAdditionalDetailLabel(t){let e=Object.keys(this.contributions.results);for(let r of e){let i=this.contributions.results[r]._links?.panel?.find(n=>n.resourcetype===t);if(i)return i.label}}};var hr=class s extends O{static create(t,e,r){let i=new s;return t.options&&e.options&&t.options.forEach(n=>{i.add(new W([],{...n,optionType:this.getOptionType(n,e),elementsContributions:e.options[0].elements},{...r,referenceDate:new Date().toISOString().split("T")[0]}))}),i}static getOptionType(t,e){return e.optionType?e.optionType:t._links?.download?.[0].name==="avatar"?"user":"generic"}};var pr=class extends u{_options;_filterCollection;constructor(t){super(t),this._options=hr.create(this.data,this.contributions,this.modelOptions),this._filterCollection=this.createFilterCollection(this.data.filter,this.contributions.filter)}get type(){return"LookupOptions"}static get modelName(){return"LookupOptionsModel"}static isApplicableModel(t){return t.resourcetype==="lookupOptions"}get options(){return this._options}createFilterCollection(t,e){return t&&e?new x({[t.name]:t},{filter:e},this.modelOptions):new x}get filterCollection(){return this._filterCollection}};var mr=class{_modelCategory;constructor(t){this._modelCategory=t}get key(){return this._modelCategory._id}get label(){return this._modelCategory.label}get description(){return this._modelCategory.description}get iconSmall(){return this._modelCategory.iconSmall}get iconMedium(){return this._modelCategory.iconMedium}get iconLarge(){return this._modelCategory.iconLarge}};var fr=class extends p{constructor(t=[]){super(),this.collection=t?t.map(e=>new mr(e)):[]}};var gr=class extends u{get type(){return"ModelCatalog"}static get modelName(){return"ModelCatalogModel"}static isApplicableModel(t){return t.resourcetype==="ModelCatalog"}get label(){return this.locale==="nl"?"Model catalogus":"Model catalog"}get conceptIndexLink(){let t=this.links.getLinkByKey("concepts");if(!t)throw new M("Missing concepts index link in model catalog");return t}get contentIndexLink(){let t=this.links.getLinkByKey("content");if(!t)throw new M("Missing content index link in model catalog");return t}get modelcategories(){return new fr(this.data.modelcategories)}};var yr=class extends u{_taskGroupCollection;constructor(t){super(t),this._taskGroupCollection=this.createTaskGroupCollection()}get type(){return"GroupingPanel"}static get modelName(){return"GroupingPanelModel"}static isApplicableModel(t){return["GroupingPanel","CaseTabGroupingPanel","TabGroupingPanel"].includes(t.resourcetype)}get label(){return this.contributions.label}getInitialChildModelLinks(){return this.links.getLinksByGroup("taskgroup").all}get panelLinks(){return this.links.getLinksByGroup("panel")}setChildModels(t,e){let r=t.filter(i=>i instanceof L);this.taskGroupCollection.add(r)}hasIntroText(){return this.introtext!==""}get introtext(){return this.data._content?this.data._content.text.message:this.contributions.text?this.contributions.text.message??this.contributions.text:Array.isArray(this.contributions.texts)?this.contributions.texts[0].text:""}createTaskGroupCollection(){let t=this.getDataAsArray("taskgroups",[]),e=this.getContributionAsArray("taskgroups",[]),r=[];for(let i of t){let n=i.name,o=e.find(a=>a.name===n);if(o){let a=L.create(n,i,o,this.modelOptions);r.push(a)}}return new lt(r)}set taskGroupCollection(t){this._taskGroupCollection=t}get taskGroupCollection(){return this._taskGroupCollection}hasTaskGroups(){return this.taskGroupCollection&&this.taskGroupCollection.hasItems()}hasTasks(){return this.taskGroupCollection.hasTasks()}};var br=class extends Rt{get type(){return"CaseSearch"}static get modelName(){return"CaseSearchModel"}static isApplicableModel(t){return t.resourcetype==="CaseSearch"}getQuickSearchFilters(){return this.filterCollection?this.filterCollection.filter(t=>t.isQuickSearch()):[]}hasQuickSearchFilters(){return this.getQuickSearchFilters().length>0}};var Cr=class extends u{_actionCollection;_taskGroupCollection;constructor(t){super(t),this._taskGroupCollection=this.createTaskGroupCollection(),this._actionCollection=new w(this.data.actions,this.contributions.actions,this.modelOptions)}get type(){return"Tab"}static get modelName(){return"TabModel"}static isApplicableModel(t){return t.resourcetype?.endsWith("Tab")||t.resourcetype?.endsWith("KnowledgeBank")}getInitialChildModelLinks(){return this.links.getLinksByGroup("taskgroup","actions").all}setChildModels(t,e){let r=t.filter(i=>i instanceof L);this.taskGroupCollection.add(r)}get searchLink(){return this.links.getLinksByGroup("search").first}createTaskGroupCollection(){let t=this.getDataAsArray("taskgroups",[]),e=this.getContributionAsArray("taskgroups",[]),r=[];for(let i of t){let n=i.name,o=e.find(a=>a.name===n);if(o){let a=L.create(n,i,o,this.modelOptions);r.push(a)}}return new lt(r)}get taskGroupCollection(){return this._taskGroupCollection}set taskGroupCollection(t){this._taskGroupCollection=t}get label(){return this.getContributionAsString("label","")}get components(){return this.links.getLinksByGroup("component","search")}get actionCollection(){return this._actionCollection}hasComponents(){return this.components.size>0}hasTaskGroups(){return this.taskGroupCollection&&this.taskGroupCollection?.hasItems()}hasActions(){return this.actionCollection&&this.actionCollection.hasItems()}};var Ti=I(et(),1);var Ar=class extends tt{_attributeCollection;constructor(t=new F){super(t);let e=this.contributions;if(e&&e.attributes&&Array.isArray(e.attributes)){let r=e.attributes.filter(i=>{let[n]=Object.keys(i);return n!=="sessiondata"&&(0,Ti.has)(this.data,n)});this._attributeCollection=new D(this.data,r,{...this.modelOptions,isReadonly:!0})}else this._attributeCollection=new D(this.data,[],{...this.modelOptions,isReadonly:!0})}get type(){return"UserProfile"}get attributeCollection(){return this._attributeCollection}static get modelName(){return"UserProfileModel"}};var ki=I(et(),1);var an=[$e,Cr,pt,Rt,yr,br,qe,$,L,sr,tt,Ar,St,gr,Ye,K,Z,tr,rr,er,V,pr],zm=(s,t=an)=>{if(!s)throw new f("No data or contribution available, cannot resolve model");if(!(0,ki.has)(s.contributions,"resourcetype"))throw new f(`Contributions has wrong format, missing resourcetype property in contributions of ${s.requestHref?.toString()}`);let e=t.find(r=>r.isApplicableModel(s));if(e)return e};export{O as a,C as b,T as c,h as d,F as e,bt as f,G as g,Yr as h,A as i,u as j,Z as k,Ct as l,At as m,re as n,V as o,R as p,ie as q,ne as r,K as s,wt as t,se as u,U as v,oe as w,st as x,Mt as y,ae as z,m as A,le as B,pe as C,d as D,_t as E,W as F,J as G,Q as H,v as I,Er as J,Jr as K,_ as L,ei as M,Y as N,me as O,fe as P,ge as Q,ye as R,be as S,Ce as T,Ae as U,Me as V,_e as W,vt as X,ve as Y,De as Z,Ee as _,Dt as $,Se as aa,Tl as ba,kl as ca,Oe as da,Te as ea,ke as fa,ot as ga,z as ha,xe as ia,Ie as ja,Re as ka,Le as la,Et as ma,Fe as na,Bt as oa,we as pa,Ne as qa,Be as ra,je as sa,Ve as ta,Ue as ua,Pe as va,at as wa,He as xa,Ge as ya,k as za,We as Aa,D as Ba,ze as Ca,w as Da,tt as Ea,St as Fa,$e as Ga,dt as Ha,$ as Ia,lt as Ja,L as Ka,qe as La,N as Ma,Ot as Na,Xe as Oa,Tt as Pa,Ze as Qa,kt as Ra,x as Sa,Qe as Ta,Ye as Ua,Je as Va,tr as Wa,er as Xa,rr as Ya,xt as Za,ir as _a,nr as $a,It as ab,mi as bb,ht as cb,sr as db,pt as eb,Vr as fb,Vt as gb,ut as hb,ar as ib,lr as jb,ur as kb,cr as lb,Oi as mb,Ut as nb,dr as ob,Rt as pb,hr as qb,pr as rb,mr as sb,fr as tb,gr as ub,yr as vb,br as wb,Cr as xb,Ar as yb,zm as zb};
|
|
2
|
+
//# sourceMappingURL=chunk-SGXACUOV.js.map
|