@beinformed/ui 1.23.2 → 1.24.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 +11 -6
- package/esm/builder/index.js +1 -0
- package/esm/builder/index.js.map +1 -1
- package/esm/builder/mergeLayoutHintConfigurations.js +1 -11
- package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/esm/constants/Constants.js +23 -28
- package/esm/constants/Constants.js.map +1 -1
- package/esm/constants/LayoutHintConfig.js +1 -0
- package/esm/constants/LayoutHintConfig.js.map +1 -1
- package/esm/constants/LayoutHints.js +11 -27
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js +9 -15
- package/esm/constants/Settings.js.map +1 -1
- package/esm/constants/index.js +1 -0
- package/esm/constants/index.js.map +1 -1
- package/esm/exceptions/ConfigurationException.js +2 -2
- package/esm/exceptions/ConfigurationException.js.map +1 -1
- package/esm/exceptions/FetchException.js +9 -28
- package/esm/exceptions/FetchException.js.map +1 -1
- package/esm/exceptions/IllegalArgumentException.js +1 -2
- package/esm/exceptions/IllegalArgumentException.js.map +1 -1
- package/esm/exceptions/IllegalReturnException.js +1 -2
- package/esm/exceptions/IllegalReturnException.js.map +1 -1
- package/esm/exceptions/IllegalStateException.js +1 -2
- package/esm/exceptions/IllegalStateException.js.map +1 -1
- package/esm/exceptions/JsonParseException.js +1 -2
- package/esm/exceptions/JsonParseException.js.map +1 -1
- package/esm/exceptions/MissingPropertyException.js +1 -2
- package/esm/exceptions/MissingPropertyException.js.map +1 -1
- package/esm/exceptions/NetworkException.js +1 -10
- package/esm/exceptions/NetworkException.js.map +1 -1
- package/esm/exceptions/NotAllowedUriException.js +1 -2
- package/esm/exceptions/NotAllowedUriException.js.map +1 -1
- package/esm/exceptions/NotFoundException.js +1 -11
- package/esm/exceptions/NotFoundException.js.map +1 -1
- package/esm/exceptions/ServerRequestException.js +1 -2
- package/esm/exceptions/ServerRequestException.js.map +1 -1
- package/esm/exceptions/ThemePropertyException.js +1 -2
- package/esm/exceptions/ThemePropertyException.js.map +1 -1
- package/esm/exceptions/TimeoutException.js +1 -6
- package/esm/exceptions/TimeoutException.js.map +1 -1
- package/esm/exceptions/UnauthorizedException.js +1 -10
- package/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/esm/exceptions/UnsupportedOperationException.js +1 -2
- package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
- package/esm/exceptions/index.js +1 -0
- package/esm/exceptions/index.js.map +1 -1
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/index.js.map +1 -1
- package/esm/hooks/useAllFormsOnModel.js +0 -16
- package/esm/hooks/useAllFormsOnModel.js.map +1 -1
- package/esm/hooks/useAuthentication.js +9 -23
- package/esm/hooks/useAuthentication.js.map +1 -1
- package/esm/hooks/useContent.js +3 -10
- package/esm/hooks/useContent.js.map +1 -1
- package/esm/hooks/useDeepCompareEffect.js +2 -6
- package/esm/hooks/useDeepCompareEffect.js.map +1 -1
- package/esm/hooks/useForm.js +4 -13
- package/esm/hooks/useForm.js.map +1 -1
- package/esm/hooks/useI18n.js +3 -7
- package/esm/hooks/useI18n.js.map +1 -1
- package/esm/hooks/useModal.js +0 -3
- package/esm/hooks/useModal.js.map +1 -1
- package/esm/hooks/useModelCatalog.js +10 -21
- package/esm/hooks/useModelCatalog.js.map +1 -1
- package/esm/hooks/useModels.js +1 -1
- package/esm/hooks/useModels.js.map +1 -1
- package/esm/hooks/useModularUI.js +7 -11
- package/esm/hooks/useModularUI.js.map +1 -1
- package/esm/hooks/useModularUIBasic.js +2 -12
- package/esm/hooks/useModularUIBasic.js.map +1 -1
- package/esm/hooks/useModularUIModel.js +11 -10
- package/esm/hooks/useModularUIModel.js.map +1 -1
- package/esm/hooks/useModularUIRequest.js +2 -1
- package/esm/hooks/useModularUIRequest.js.map +1 -1
- package/esm/hooks/useNotification.js +2 -2
- package/esm/hooks/useNotification.js.map +1 -1
- package/esm/hooks/usePreference.js +1 -1
- package/esm/hooks/usePreference.js.map +1 -1
- package/esm/hooks/useProgressIndicator.js +3 -2
- package/esm/hooks/useProgressIndicator.js.map +1 -1
- package/esm/hooks/useRouter.js +7 -10
- package/esm/hooks/useRouter.js.map +1 -1
- package/esm/i18n/Locale.js +15 -40
- package/esm/i18n/Locale.js.map +1 -1
- package/esm/i18n/Locales.js +13 -33
- package/esm/i18n/Locales.js.map +1 -1
- package/esm/i18n/Message.js +3 -5
- package/esm/i18n/Message.js.map +1 -1
- package/esm/i18n/index.js +1 -0
- package/esm/i18n/index.js.map +1 -1
- package/esm/i18n/languages.js +1 -0
- package/esm/i18n/languages.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js +1 -0
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js +1 -0
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/esm/i18n/withMessage.js +1 -4
- package/esm/i18n/withMessage.js.map +1 -1
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/models/actions/ActionCollection.js +13 -26
- package/esm/models/actions/ActionCollection.js.map +1 -1
- package/esm/models/actions/ActionModel.js +23 -60
- package/esm/models/actions/ActionModel.js.map +1 -1
- package/esm/models/application/ApplicationModel.js +14 -34
- package/esm/models/application/ApplicationModel.js.map +1 -1
- package/esm/models/attributes/AttributeCollection.js +27 -81
- package/esm/models/attributes/AttributeCollection.js.map +1 -1
- package/esm/models/attributes/AttributeContent.js +23 -56
- package/esm/models/attributes/AttributeContent.js.map +1 -1
- package/esm/models/attributes/AttributeDataHelper.js +33 -83
- package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
- package/esm/models/attributes/AttributeModel.js +102 -258
- package/esm/models/attributes/AttributeModel.js.map +1 -1
- package/esm/models/attributes/AttributeSetModel.js +6 -17
- package/esm/models/attributes/AttributeSetModel.js.map +1 -1
- package/esm/models/attributes/BooleanAttributeModel.js +29 -76
- package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/esm/models/attributes/CaptchaAttributeModel.js +5 -8
- package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeModel.js +38 -108
- package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js +27 -80
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionModel.js +34 -102
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeChildCollection.js +23 -64
- package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeModel.js +40 -99
- package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/esm/models/attributes/DatetimeAttributeModel.js +51 -145
- package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/esm/models/attributes/HelptextAttributeModel.js +7 -17
- package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/esm/models/attributes/LabelAttributeModel.js +4 -8
- package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
- package/esm/models/attributes/MemoAttributeModel.js +6 -10
- package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
- package/esm/models/attributes/MoneyAttributeModel.js +5 -10
- package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/esm/models/attributes/NumberAttributeModel.js +22 -49
- package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
- package/esm/models/attributes/PasswordAttributeModel.js +23 -65
- package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/esm/models/attributes/StringAttributeModel.js +29 -72
- package/esm/models/attributes/StringAttributeModel.js.map +1 -1
- package/esm/models/attributes/UploadAttributeModel.js +21 -62
- package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
- package/esm/models/attributes/XMLAttributeModel.js +5 -10
- package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
- package/esm/models/attributes/_createAttribute.js +7 -21
- package/esm/models/attributes/_createAttribute.js.map +1 -1
- package/esm/models/attributes/input-constraints/BSNConstraint.js +8 -19
- package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintCollection.js +3 -10
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintModel.js +6 -22
- package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +16 -59
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +8 -22
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +8 -22
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +10 -28
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +7 -18
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js +10 -24
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/IBANConstraint.js +6 -13
- package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js +8 -15
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +8 -25
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +17 -53
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +15 -41
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +15 -39
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +8 -20
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +7 -12
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +7 -17
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +7 -17
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +8 -22
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RangeConstraint.js +22 -57
- package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RegexConstraint.js +7 -18
- package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js +14 -50
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/XMLConstraint.js +8 -17
- package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +9 -17
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js +30 -84
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +5 -11
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +4 -10
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/esm/models/base/BaseCollection.js +27 -67
- package/esm/models/base/BaseCollection.js.map +1 -1
- package/esm/models/base/BaseModel.js +14 -39
- package/esm/models/base/BaseModel.js.map +1 -1
- package/esm/models/base/ResourceCollection.js +2 -5
- package/esm/models/base/ResourceCollection.js.map +1 -1
- package/esm/models/base/ResourceModel.js +21 -53
- package/esm/models/base/ResourceModel.js.map +1 -1
- package/esm/models/caseview/CaseViewModel.js +16 -46
- package/esm/models/caseview/CaseViewModel.js.map +1 -1
- package/esm/models/concepts/BusinessScenarioModel.js +10 -39
- package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/esm/models/concepts/ConceptDetailModel.js +32 -85
- package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
- package/esm/models/concepts/ConceptIndexModel.js +12 -36
- package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
- package/esm/models/concepts/ConceptLinkModel.js +16 -45
- package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
- package/esm/models/concepts/ConceptRelationCollection.js +7 -20
- package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/esm/models/concepts/ConceptRelationModel.js +8 -22
- package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
- package/esm/models/concepts/ConceptTypeDetailModel.js +12 -25
- package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/esm/models/concepts/SourceReferenceCollection.js +2 -5
- package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/esm/models/concepts/SourceReferenceModel.js +10 -21
- package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
- package/esm/models/content/ContentIndexModel.js +13 -37
- package/esm/models/content/ContentIndexModel.js.map +1 -1
- package/esm/models/content/ContentLinkModel.js +19 -56
- package/esm/models/content/ContentLinkModel.js.map +1 -1
- package/esm/models/content/ContentModel.js +22 -59
- package/esm/models/content/ContentModel.js.map +1 -1
- package/esm/models/content/ContentTOCModel.js +17 -45
- package/esm/models/content/ContentTOCModel.js.map +1 -1
- package/esm/models/content/ContentTypeModel.js +8 -16
- package/esm/models/content/ContentTypeModel.js.map +1 -1
- package/esm/models/content/SectionModel.js +20 -57
- package/esm/models/content/SectionModel.js.map +1 -1
- package/esm/models/content/SubSectionModel.js +16 -43
- package/esm/models/content/SubSectionModel.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfiguration.js +6 -20
- package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationElements.js +11 -48
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +3 -13
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +5 -15
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationResults.js +13 -32
- package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/esm/models/detail/DetailModel.js +21 -54
- package/esm/models/detail/DetailModel.js.map +1 -1
- package/esm/models/error/ErrorCollection.js +11 -29
- package/esm/models/error/ErrorCollection.js.map +1 -1
- package/esm/models/error/ErrorModel.js +8 -21
- package/esm/models/error/ErrorModel.js.map +1 -1
- package/esm/models/error/ErrorResponse.js +37 -93
- package/esm/models/error/ErrorResponse.js.map +1 -1
- package/esm/models/filters/AssignmentFilterModel.js +19 -45
- package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
- package/esm/models/filters/BaseFilterModel.js +25 -58
- package/esm/models/filters/BaseFilterModel.js.map +1 -1
- package/esm/models/filters/ConceptIndexFilterModel.js +1 -5
- package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/esm/models/filters/FilterCollection.js +11 -44
- package/esm/models/filters/FilterCollection.js.map +1 -1
- package/esm/models/filters/FilterModel.js +2 -1
- package/esm/models/filters/FilterModel.js.map +1 -1
- package/esm/models/filters/RangeFilterModel.js +1 -6
- package/esm/models/filters/RangeFilterModel.js.map +1 -1
- package/esm/models/form/FormModel.js +136 -332
- package/esm/models/form/FormModel.js.map +1 -1
- package/esm/models/form/FormObjectModel.js +55 -141
- package/esm/models/form/FormObjectModel.js.map +1 -1
- package/esm/models/grouping/GroupingModel.js +20 -58
- package/esm/models/grouping/GroupingModel.js.map +1 -1
- package/esm/models/href/Href.js +47 -121
- package/esm/models/href/Href.js.map +1 -1
- package/esm/models/href/ListHref.js +11 -32
- package/esm/models/href/ListHref.js.map +1 -1
- package/esm/models/index.js +1 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/layouthint/LayoutHintCollection.js +9 -32
- package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/esm/models/links/LinkCollection.js +15 -44
- package/esm/models/links/LinkCollection.js.map +1 -1
- package/esm/models/links/LinkModel.js +21 -57
- package/esm/models/links/LinkModel.js.map +1 -1
- package/esm/models/links/normalizeLinkJSON.js +5 -21
- package/esm/models/links/normalizeLinkJSON.js.map +1 -1
- package/esm/models/list/ListDetailModel.js +31 -79
- package/esm/models/list/ListDetailModel.js.map +1 -1
- package/esm/models/list/ListHeaderModel.js +10 -28
- package/esm/models/list/ListHeaderModel.js.map +1 -1
- package/esm/models/list/ListItemCollection.js +4 -20
- package/esm/models/list/ListItemCollection.js.map +1 -1
- package/esm/models/list/ListItemModel.js +7 -23
- package/esm/models/list/ListItemModel.js.map +1 -1
- package/esm/models/list/ListModel.js +38 -115
- package/esm/models/list/ListModel.js.map +1 -1
- package/esm/models/lookup/LookupOptionCollection.js +4 -6
- package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
- package/esm/models/lookup/LookupOptionsModel.js +5 -16
- package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
- package/esm/models/modelcatalog/ModelCatalogModel.js +6 -14
- package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/esm/models/paging/PagesizeModel.js +4 -12
- package/esm/models/paging/PagesizeModel.js.map +1 -1
- package/esm/models/paging/PagingModel.js +11 -26
- package/esm/models/paging/PagingModel.js.map +1 -1
- package/esm/models/panels/GroupingPanelModel.js +14 -41
- package/esm/models/panels/GroupingPanelModel.js.map +1 -1
- package/esm/models/parameter/Parameter.js +14 -41
- package/esm/models/parameter/Parameter.js.map +1 -1
- package/esm/models/process/ProcessStatusSettingsModel.js +10 -24
- package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/esm/models/resolveModel.js +2 -7
- package/esm/models/resolveModel.js.map +1 -1
- package/esm/models/search/CaseSearchModel.js +3 -9
- package/esm/models/search/CaseSearchModel.js.map +1 -1
- package/esm/models/sorting/SortOptionModel.js +15 -41
- package/esm/models/sorting/SortOptionModel.js.map +1 -1
- package/esm/models/sorting/SortingModel.js +9 -28
- package/esm/models/sorting/SortingModel.js.map +1 -1
- package/esm/models/tab/TabModel.js +14 -41
- package/esm/models/tab/TabModel.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupCollection.js +1 -2
- package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupModel.js +7 -17
- package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/esm/models/user/UserModel.js +5 -10
- package/esm/models/user/UserModel.js.map +1 -1
- package/esm/models/user/UserProfileModel.js +2 -10
- package/esm/models/user/UserProfileModel.js.map +1 -1
- package/esm/models/user/UserServicesModel.js +11 -27
- package/esm/models/user/UserServicesModel.js.map +1 -1
- package/esm/modularui/Authenticate.js +21 -56
- package/esm/modularui/Authenticate.js.map +1 -1
- package/esm/modularui/ModularUIError.js +3 -8
- package/esm/modularui/ModularUIError.js.map +1 -1
- package/esm/modularui/ModularUIRequest.js +89 -193
- package/esm/modularui/ModularUIRequest.js.map +1 -1
- package/esm/modularui/ModularUIResponse.js +13 -37
- package/esm/modularui/ModularUIResponse.js.map +1 -1
- package/esm/modularui/index.js +1 -0
- package/esm/modularui/index.js.map +1 -1
- package/esm/react/ErrorBoundary.js +2 -12
- package/esm/react/ErrorBoundary.js.map +1 -1
- package/esm/react/ErrorBoundaryFallback.js +2 -2
- package/esm/react/ErrorBoundaryFallback.js.map +1 -1
- package/esm/react/index.js +1 -0
- package/esm/react/index.js.map +1 -1
- package/esm/react/utils.js +3 -7
- package/esm/react/utils.js.map +1 -1
- package/esm/react-client/Init.js +1 -2
- package/esm/react-client/Init.js.map +1 -1
- package/esm/react-client/client.js +15 -29
- package/esm/react-client/client.js.map +1 -1
- package/esm/react-client/contextPath.js +3 -8
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/index.js +1 -0
- package/esm/react-client/index.js.map +1 -1
- package/esm/react-client/rehydrate.js +4 -19
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/contextPath.js +2 -2
- package/esm/react-server/contextPath.js.map +1 -1
- package/esm/react-server/createSSRComplete.js +2 -12
- package/esm/react-server/createSSRComplete.js.map +1 -1
- package/esm/react-server/htmlpage.js +25 -12
- package/esm/react-server/htmlpage.js.map +1 -1
- package/esm/react-server/index.js +1 -0
- package/esm/react-server/index.js.map +1 -1
- package/esm/react-server/renderSSRComplete.js +4 -4
- package/esm/react-server/renderSSRComplete.js.map +1 -1
- package/esm/react-server/renderSSRMinimal.js +1 -2
- package/esm/react-server/renderSSRMinimal.js.map +1 -1
- package/esm/react-server/requestInformation.js +7 -12
- package/esm/react-server/requestInformation.js.map +1 -1
- package/esm/react-server/serverNoSSR.js +3 -7
- package/esm/react-server/serverNoSSR.js.map +1 -1
- package/esm/react-server/serverSSR.js +1 -2
- package/esm/react-server/serverSSR.js.map +1 -1
- package/esm/react-server/serverUtil.js +13 -37
- package/esm/react-server/serverUtil.js.map +1 -1
- package/esm/react-theme/ThemeProvider.js +1 -2
- package/esm/react-theme/ThemeProvider.js.map +1 -1
- package/esm/react-theme/createTheme.js +7 -20
- package/esm/react-theme/createTheme.js.map +1 -1
- package/esm/react-theme/index.js +1 -0
- package/esm/react-theme/index.js.map +1 -1
- package/esm/react-theme/useTheme.js +1 -2
- package/esm/react-theme/useTheme.js.map +1 -1
- package/esm/react-theme/utils/background.js +2 -5
- package/esm/react-theme/utils/background.js.map +1 -1
- package/esm/react-theme/utils/colors.js +3 -9
- package/esm/react-theme/utils/colors.js.map +1 -1
- package/esm/react-theme/utils/contrast.js +8 -27
- package/esm/react-theme/utils/contrast.js.map +1 -1
- package/esm/react-theme/utils/corners.js +4 -10
- package/esm/react-theme/utils/corners.js.map +1 -1
- package/esm/react-theme/utils/spacers.js +7 -22
- package/esm/react-theme/utils/spacers.js.map +1 -1
- package/esm/react-theme/utils/themeProps.js +8 -22
- package/esm/react-theme/utils/themeProps.js.map +1 -1
- package/esm/redux/_i18n/actions.js +3 -3
- package/esm/redux/_i18n/actions.js.map +1 -1
- package/esm/redux/_i18n/index.js +1 -0
- package/esm/redux/_i18n/index.js.map +1 -1
- package/esm/redux/_i18n/reducer.js +13 -16
- package/esm/redux/_i18n/reducer.js.map +1 -1
- package/esm/redux/_modularui/actions.js +36 -48
- package/esm/redux/_modularui/actions.js.map +1 -1
- package/esm/redux/_modularui/connector.js +21 -18
- package/esm/redux/_modularui/connector.js.map +1 -1
- package/esm/redux/_modularui/index.js +1 -0
- package/esm/redux/_modularui/index.js.map +1 -1
- package/esm/redux/_modularui/middleware.js +8 -22
- package/esm/redux/_modularui/middleware.js.map +1 -1
- package/esm/redux/_modularui/modularuiUtils.js +10 -25
- package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
- package/esm/redux/_modularui/reducer.js +19 -39
- package/esm/redux/_modularui/reducer.js.map +1 -1
- package/esm/redux/_modularui/selectors.js +20 -62
- package/esm/redux/_modularui/selectors.js.map +1 -1
- package/esm/redux/_modularui/withModularUI.js +3 -3
- package/esm/redux/_modularui/withModularUI.js.map +1 -1
- package/esm/redux/_router/actions.js +7 -5
- package/esm/redux/_router/actions.js.map +1 -1
- package/esm/redux/_router/connectors.js +11 -14
- package/esm/redux/_router/connectors.js.map +1 -1
- package/esm/redux/_router/index.js +1 -0
- package/esm/redux/_router/index.js.map +1 -1
- package/esm/redux/_router/middleware.js +2 -1
- package/esm/redux/_router/middleware.js.map +1 -1
- package/esm/redux/_router/reducer.js +3 -3
- package/esm/redux/_router/reducer.js.map +1 -1
- package/esm/redux/actions/Application.js +2 -4
- package/esm/redux/actions/Application.js.map +1 -1
- package/esm/redux/actions/Authorization.js +8 -14
- package/esm/redux/actions/Authorization.js.map +1 -1
- package/esm/redux/actions/Error.js +5 -13
- package/esm/redux/actions/Error.js.map +1 -1
- package/esm/redux/actions/Form.js +2 -3
- package/esm/redux/actions/Form.js.map +1 -1
- package/esm/redux/actions/FormAttributeSet.js +1 -9
- package/esm/redux/actions/FormAttributeSet.js.map +1 -1
- package/esm/redux/actions/FormAttributeSetRepeatable.js +3 -3
- package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/esm/redux/actions/FormAutosave.js +4 -6
- package/esm/redux/actions/FormAutosave.js.map +1 -1
- package/esm/redux/actions/FormAutosubmit.js +1 -4
- package/esm/redux/actions/FormAutosubmit.js.map +1 -1
- package/esm/redux/actions/FormValidations.js +3 -7
- package/esm/redux/actions/FormValidations.js.map +1 -1
- package/esm/redux/actions/Modals.js +3 -1
- package/esm/redux/actions/Modals.js.map +1 -1
- package/esm/redux/actions/Notification.js +5 -10
- package/esm/redux/actions/Notification.js.map +1 -1
- package/esm/redux/actions/Preferences.js +14 -26
- package/esm/redux/actions/Preferences.js.map +1 -1
- package/esm/redux/actions/ProgressIndicator.js +5 -4
- package/esm/redux/actions/ProgressIndicator.js.map +1 -1
- package/esm/redux/actions/SignIn.js +5 -8
- package/esm/redux/actions/SignIn.js.map +1 -1
- package/esm/redux/actions/SignOut.js +2 -2
- package/esm/redux/actions/SignOut.js.map +1 -1
- package/esm/redux/actions/index.js +1 -0
- package/esm/redux/actions/index.js.map +1 -1
- package/esm/redux/connectors/Application.js +1 -1
- package/esm/redux/connectors/Application.js.map +1 -1
- package/esm/redux/connectors/Breadcrumb.js +2 -3
- package/esm/redux/connectors/Breadcrumb.js.map +1 -1
- package/esm/redux/connectors/CaseView.js +1 -1
- package/esm/redux/connectors/CaseView.js.map +1 -1
- package/esm/redux/connectors/ConceptDetail.js +2 -5
- package/esm/redux/connectors/ConceptDetail.js.map +1 -1
- package/esm/redux/connectors/ContentBrowser.js +1 -1
- package/esm/redux/connectors/ContentBrowser.js.map +1 -1
- package/esm/redux/connectors/ContentDetail.js +2 -5
- package/esm/redux/connectors/ContentDetail.js.map +1 -1
- package/esm/redux/connectors/ContentDetailSection.js +2 -5
- package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
- package/esm/redux/connectors/Form.js +3 -10
- package/esm/redux/connectors/Form.js.map +1 -1
- package/esm/redux/connectors/FormAttributeSet.js +2 -3
- package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
- package/esm/redux/connectors/ListDetail.js +1 -1
- package/esm/redux/connectors/ListDetail.js.map +1 -1
- package/esm/redux/connectors/Modal.js +1 -5
- package/esm/redux/connectors/Modal.js.map +1 -1
- package/esm/redux/connectors/ModelCatalog.js +1 -1
- package/esm/redux/connectors/ModelCatalog.js.map +1 -1
- package/esm/redux/connectors/Notification.js +2 -3
- package/esm/redux/connectors/Notification.js.map +1 -1
- package/esm/redux/connectors/PanelRenderer.js +1 -5
- package/esm/redux/connectors/PanelRenderer.js.map +1 -1
- package/esm/redux/connectors/Preferences.js +2 -4
- package/esm/redux/connectors/Preferences.js.map +1 -1
- package/esm/redux/connectors/Progress.js +2 -1
- package/esm/redux/connectors/Progress.js.map +1 -1
- package/esm/redux/connectors/ProgressIndicator.js +2 -3
- package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
- package/esm/redux/connectors/QuickSearch.js +2 -1
- package/esm/redux/connectors/QuickSearch.js.map +1 -1
- package/esm/redux/connectors/SignIn.js +3 -6
- package/esm/redux/connectors/SignIn.js.map +1 -1
- package/esm/redux/connectors/SignOut.js +4 -6
- package/esm/redux/connectors/SignOut.js.map +1 -1
- package/esm/redux/connectors/Tab.js +1 -1
- package/esm/redux/connectors/Tab.js.map +1 -1
- package/esm/redux/connectors/index.js +1 -0
- package/esm/redux/connectors/index.js.map +1 -1
- package/esm/redux/index.js +16 -7
- package/esm/redux/index.js.map +1 -1
- package/esm/redux/reducers/AuthReducer.js +13 -14
- package/esm/redux/reducers/AuthReducer.js.map +1 -1
- package/esm/redux/reducers/ErrorReducer.js +3 -4
- package/esm/redux/reducers/ErrorReducer.js.map +1 -1
- package/esm/redux/reducers/ModalsReducer.js +11 -15
- package/esm/redux/reducers/ModalsReducer.js.map +1 -1
- package/esm/redux/reducers/NotificationReducer.js +7 -8
- package/esm/redux/reducers/NotificationReducer.js.map +1 -1
- package/esm/redux/reducers/PreferencesReducer.js +7 -7
- package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js +11 -15
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/esm/redux/reducers/createReducer.js +1 -1
- package/esm/redux/reducers/createReducer.js.map +1 -1
- package/esm/redux/reducers/index.js +1 -0
- package/esm/redux/reducers/index.js.map +1 -1
- package/esm/redux/selectors/i18n.js +5 -4
- package/esm/redux/selectors/i18n.js.map +1 -1
- package/esm/redux/selectors/index.js +1 -0
- package/esm/redux/selectors/index.js.map +1 -1
- package/esm/redux/store/beforeRenderHooks.js +2 -1
- package/esm/redux/store/beforeRenderHooks.js.map +1 -1
- package/esm/redux/store/configureStore.js +3 -7
- package/esm/redux/store/configureStore.js.map +1 -1
- package/esm/utils/browser/Cache.js +17 -44
- package/esm/utils/browser/Cache.js.map +1 -1
- package/esm/utils/browser/Cookies.js +4 -9
- package/esm/utils/browser/Cookies.js.map +1 -1
- package/esm/utils/datetime/DateTimeUtil.js +53 -110
- package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
- package/esm/utils/fetch/serverFetch.js +2 -8
- package/esm/utils/fetch/serverFetch.js.map +1 -1
- package/esm/utils/fetch/universalFetch.js +6 -17
- package/esm/utils/fetch/universalFetch.js.map +1 -1
- package/esm/utils/fetch/xhr.js +42 -101
- package/esm/utils/fetch/xhr.js.map +1 -1
- package/esm/utils/helpers/checkResource.js +6 -6
- package/esm/utils/helpers/checkResource.js.map +1 -1
- package/esm/utils/helpers/createHash.js +3 -5
- package/esm/utils/helpers/createHash.js.map +1 -1
- package/esm/utils/helpers/createUUID.js +1 -1
- package/esm/utils/helpers/createUUID.js.map +1 -1
- package/esm/utils/helpers/objects.js +5 -8
- package/esm/utils/helpers/objects.js.map +1 -1
- package/esm/utils/helpers/sanitizeHtml.js +7 -9
- package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
- package/esm/utils/helpers/text.js +2 -3
- package/esm/utils/helpers/text.js.map +1 -1
- package/esm/utils/index.js +8 -3
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/number/DecimalFormat.js +43 -124
- package/esm/utils/number/DecimalFormat.js.map +1 -1
- package/esm/utils/number/formatValue.js +5 -18
- package/esm/utils/number/formatValue.js.map +1 -1
- package/esm/utils/number/parseNumbers.js +5 -17
- package/esm/utils/number/parseNumbers.js.map +1 -1
- package/lib/builder/index.js +0 -3
- package/lib/builder/index.js.map +1 -1
- package/lib/builder/mergeLayoutHintConfigurations.js +1 -13
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/lib/constants/Constants.js +25 -32
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js +9 -29
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +9 -38
- package/lib/constants/Settings.js.map +1 -1
- package/lib/constants/index.js +0 -7
- package/lib/constants/index.js.map +1 -1
- package/lib/exceptions/ConfigurationException.js +0 -2
- package/lib/exceptions/ConfigurationException.js.map +1 -1
- package/lib/exceptions/FetchException.js +9 -27
- package/lib/exceptions/FetchException.js.map +1 -1
- package/lib/exceptions/IllegalArgumentException.js +0 -3
- package/lib/exceptions/IllegalArgumentException.js.map +1 -1
- package/lib/exceptions/IllegalReturnException.js +0 -3
- package/lib/exceptions/IllegalReturnException.js.map +1 -1
- package/lib/exceptions/IllegalStateException.js +0 -3
- package/lib/exceptions/IllegalStateException.js.map +1 -1
- package/lib/exceptions/JsonParseException.js +0 -3
- package/lib/exceptions/JsonParseException.js.map +1 -1
- package/lib/exceptions/MissingPropertyException.js +0 -3
- package/lib/exceptions/MissingPropertyException.js.map +1 -1
- package/lib/exceptions/NetworkException.js +1 -10
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/NotAllowedUriException.js +0 -3
- package/lib/exceptions/NotAllowedUriException.js.map +1 -1
- package/lib/exceptions/NotFoundException.js +1 -10
- package/lib/exceptions/NotFoundException.js.map +1 -1
- package/lib/exceptions/ServerRequestException.js +0 -3
- package/lib/exceptions/ServerRequestException.js.map +1 -1
- package/lib/exceptions/ThemePropertyException.js +0 -3
- package/lib/exceptions/ThemePropertyException.js.map +1 -1
- package/lib/exceptions/TimeoutException.js +1 -10
- package/lib/exceptions/TimeoutException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js +1 -9
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/exceptions/UnsupportedOperationException.js +0 -3
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
- package/lib/exceptions/index.js +0 -16
- package/lib/exceptions/index.js.map +1 -1
- package/lib/hooks/index.js +0 -33
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAllFormsOnModel.js +0 -23
- package/lib/hooks/useAllFormsOnModel.js.map +1 -1
- package/lib/hooks/useAuthentication.js +8 -35
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/hooks/useContent.js +3 -16
- package/lib/hooks/useContent.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js +1 -12
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/hooks/useForm.js +3 -27
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useI18n.js +3 -15
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModal.js +0 -9
- package/lib/hooks/useModal.js.map +1 -1
- package/lib/hooks/useModelCatalog.js +9 -45
- package/lib/hooks/useModelCatalog.js.map +1 -1
- package/lib/hooks/useModels.js +0 -3
- package/lib/hooks/useModels.js.map +1 -1
- package/lib/hooks/useModularUI.js +6 -19
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js +2 -17
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/hooks/useModularUIModel.js +9 -39
- package/lib/hooks/useModularUIModel.js.map +1 -1
- package/lib/hooks/useModularUIRequest.js +1 -7
- package/lib/hooks/useModularUIRequest.js.map +1 -1
- package/lib/hooks/useNotification.js +1 -7
- package/lib/hooks/useNotification.js.map +1 -1
- package/lib/hooks/usePreference.js +0 -4
- package/lib/hooks/usePreference.js.map +1 -1
- package/lib/hooks/useProgressIndicator.js +2 -4
- package/lib/hooks/useProgressIndicator.js.map +1 -1
- package/lib/hooks/useRouter.js +6 -20
- package/lib/hooks/useRouter.js.map +1 -1
- package/lib/i18n/Locale.js +15 -44
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js +13 -44
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js +2 -8
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/index.js +0 -9
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/languages.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/i18n/withMessage.js +1 -10
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/index.js +0 -13
- package/lib/index.js.map +1 -1
- package/lib/models/actions/ActionCollection.js +12 -33
- package/lib/models/actions/ActionCollection.js.map +1 -1
- package/lib/models/actions/ActionModel.js +23 -68
- package/lib/models/actions/ActionModel.js.map +1 -1
- package/lib/models/application/ApplicationModel.js +14 -41
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js +27 -87
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js +23 -65
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js +32 -89
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js +101 -254
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/AttributeSetModel.js +5 -20
- package/lib/models/attributes/AttributeSetModel.js.map +1 -1
- package/lib/models/attributes/BooleanAttributeModel.js +29 -83
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/lib/models/attributes/CaptchaAttributeModel.js +3 -10
- package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js +38 -115
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +26 -84
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +34 -108
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js +23 -70
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js +40 -109
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +51 -159
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/HelptextAttributeModel.js +5 -20
- package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/lib/models/attributes/LabelAttributeModel.js +3 -11
- package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
- package/lib/models/attributes/MemoAttributeModel.js +4 -13
- package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
- package/lib/models/attributes/MoneyAttributeModel.js +4 -14
- package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/lib/models/attributes/NumberAttributeModel.js +21 -61
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
- package/lib/models/attributes/PasswordAttributeModel.js +23 -75
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/lib/models/attributes/StringAttributeModel.js +28 -79
- package/lib/models/attributes/StringAttributeModel.js.map +1 -1
- package/lib/models/attributes/UploadAttributeModel.js +21 -66
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
- package/lib/models/attributes/XMLAttributeModel.js +4 -16
- package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
- package/lib/models/attributes/_createAttribute.js +7 -41
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js +6 -19
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js +3 -15
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js +6 -19
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +16 -58
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +8 -22
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +8 -22
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +10 -27
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +7 -20
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +10 -26
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js +5 -14
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +6 -15
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +8 -25
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +17 -51
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +15 -44
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +15 -40
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +8 -20
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +5 -12
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +7 -18
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +7 -18
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +8 -24
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js +22 -57
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js +7 -19
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +13 -50
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js +6 -17
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +8 -18
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +30 -88
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +4 -19
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +3 -13
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/base/BaseCollection.js +26 -73
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js +14 -40
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceCollection.js +1 -6
- package/lib/models/base/ResourceCollection.js.map +1 -1
- package/lib/models/base/ResourceModel.js +21 -53
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/caseview/CaseViewModel.js +16 -54
- package/lib/models/caseview/CaseViewModel.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js +10 -44
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptDetailModel.js +32 -90
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
- package/lib/models/concepts/ConceptIndexModel.js +12 -42
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
- package/lib/models/concepts/ConceptLinkModel.js +16 -49
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
- package/lib/models/concepts/ConceptRelationCollection.js +6 -25
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/lib/models/concepts/ConceptRelationModel.js +8 -23
- package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js +11 -26
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/lib/models/concepts/SourceReferenceCollection.js +1 -11
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js +9 -22
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/content/ContentIndexModel.js +12 -44
- package/lib/models/content/ContentIndexModel.js.map +1 -1
- package/lib/models/content/ContentLinkModel.js +19 -61
- package/lib/models/content/ContentLinkModel.js.map +1 -1
- package/lib/models/content/ContentModel.js +21 -67
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/ContentTOCModel.js +17 -55
- package/lib/models/content/ContentTOCModel.js.map +1 -1
- package/lib/models/content/ContentTypeModel.js +7 -18
- package/lib/models/content/ContentTypeModel.js.map +1 -1
- package/lib/models/content/SectionModel.js +19 -62
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js +15 -51
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js +5 -25
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +10 -45
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +2 -17
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +4 -16
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +12 -37
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/lib/models/detail/DetailModel.js +21 -61
- package/lib/models/detail/DetailModel.js.map +1 -1
- package/lib/models/error/ErrorCollection.js +10 -35
- package/lib/models/error/ErrorCollection.js.map +1 -1
- package/lib/models/error/ErrorModel.js +6 -17
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/error/ErrorResponse.js +36 -96
- package/lib/models/error/ErrorResponse.js.map +1 -1
- package/lib/models/filters/AssignmentFilterModel.js +19 -45
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js +24 -60
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/ConceptIndexFilterModel.js +0 -9
- package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/lib/models/filters/FilterCollection.js +11 -55
- package/lib/models/filters/FilterCollection.js.map +1 -1
- package/lib/models/filters/FilterModel.js +0 -3
- package/lib/models/filters/FilterModel.js.map +1 -1
- package/lib/models/filters/RangeFilterModel.js +1 -10
- package/lib/models/filters/RangeFilterModel.js.map +1 -1
- package/lib/models/form/FormModel.js +135 -328
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/form/FormObjectModel.js +55 -144
- package/lib/models/form/FormObjectModel.js.map +1 -1
- package/lib/models/grouping/GroupingModel.js +20 -58
- package/lib/models/grouping/GroupingModel.js.map +1 -1
- package/lib/models/href/Href.js +47 -123
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/href/ListHref.js +11 -29
- package/lib/models/href/ListHref.js.map +1 -1
- package/lib/models/index.js +0 -97
- package/lib/models/index.js.map +1 -1
- package/lib/models/layouthint/LayoutHintCollection.js +8 -40
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/lib/models/links/LinkCollection.js +15 -51
- package/lib/models/links/LinkCollection.js.map +1 -1
- package/lib/models/links/LinkModel.js +20 -62
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/normalizeLinkJSON.js +5 -21
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListDetailModel.js +31 -84
- package/lib/models/list/ListDetailModel.js.map +1 -1
- package/lib/models/list/ListHeaderModel.js +10 -30
- package/lib/models/list/ListHeaderModel.js.map +1 -1
- package/lib/models/list/ListItemCollection.js +4 -24
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/list/ListItemModel.js +7 -29
- package/lib/models/list/ListItemModel.js.map +1 -1
- package/lib/models/list/ListModel.js +38 -123
- package/lib/models/list/ListModel.js.map +1 -1
- package/lib/models/lookup/LookupOptionCollection.js +2 -8
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionsModel.js +5 -19
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
- package/lib/models/modelcatalog/ModelCatalogModel.js +4 -17
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/lib/models/paging/PagesizeModel.js +4 -13
- package/lib/models/paging/PagesizeModel.js.map +1 -1
- package/lib/models/paging/PagingModel.js +10 -26
- package/lib/models/paging/PagingModel.js.map +1 -1
- package/lib/models/panels/GroupingPanelModel.js +14 -47
- package/lib/models/panels/GroupingPanelModel.js.map +1 -1
- package/lib/models/parameter/Parameter.js +13 -42
- package/lib/models/parameter/Parameter.js.map +1 -1
- package/lib/models/process/ProcessStatusSettingsModel.js +9 -29
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/lib/models/resolveModel.js +1 -33
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/search/CaseSearchModel.js +3 -12
- package/lib/models/search/CaseSearchModel.js.map +1 -1
- package/lib/models/sorting/SortOptionModel.js +13 -39
- package/lib/models/sorting/SortOptionModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js +8 -35
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/tab/TabModel.js +14 -48
- package/lib/models/tab/TabModel.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupCollection.js +0 -4
- package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupModel.js +6 -19
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/lib/models/user/UserModel.js +4 -12
- package/lib/models/user/UserModel.js.map +1 -1
- package/lib/models/user/UserProfileModel.js +2 -14
- package/lib/models/user/UserProfileModel.js.map +1 -1
- package/lib/models/user/UserServicesModel.js +11 -30
- package/lib/models/user/UserServicesModel.js.map +1 -1
- package/lib/modularui/Authenticate.js +20 -66
- package/lib/modularui/Authenticate.js.map +1 -1
- package/lib/modularui/ModularUIError.js +3 -7
- package/lib/modularui/ModularUIError.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js +89 -200
- package/lib/modularui/ModularUIRequest.js.flow +14 -0
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/ModularUIResponse.js +13 -34
- package/lib/modularui/ModularUIResponse.js.map +1 -1
- package/lib/modularui/index.js +0 -4
- package/lib/modularui/index.js.map +1 -1
- package/lib/react/ErrorBoundary.js +2 -14
- package/lib/react/ErrorBoundary.js.map +1 -1
- package/lib/react/ErrorBoundaryFallback.js +1 -8
- package/lib/react/ErrorBoundaryFallback.js.map +1 -1
- package/lib/react/index.js +0 -5
- package/lib/react/index.js.map +1 -1
- package/lib/react/utils.js +2 -13
- package/lib/react/utils.js.map +1 -1
- package/lib/react-client/Init.js +0 -8
- package/lib/react-client/Init.js.map +1 -1
- package/lib/react-client/client.js +16 -49
- package/lib/react-client/client.js.map +1 -1
- package/lib/react-client/contextPath.js +2 -9
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/index.js +0 -4
- package/lib/react-client/index.js.map +1 -1
- package/lib/react-client/rehydrate.js +3 -23
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/contextPath.js +1 -2
- package/lib/react-server/contextPath.js.map +1 -1
- package/lib/react-server/createSSRComplete.js +2 -16
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/htmlpage.js +25 -16
- package/lib/react-server/htmlpage.js.map +1 -1
- package/lib/react-server/index.js +0 -12
- package/lib/react-server/index.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js +3 -16
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js +0 -10
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/requestInformation.js +6 -21
- package/lib/react-server/requestInformation.js.map +1 -1
- package/lib/react-server/serverNoSSR.js +2 -14
- package/lib/react-server/serverNoSSR.js.map +1 -1
- package/lib/react-server/serverSSR.js +0 -8
- package/lib/react-server/serverSSR.js.map +1 -1
- package/lib/react-server/serverUtil.js +13 -60
- package/lib/react-server/serverUtil.js.map +1 -1
- package/lib/react-theme/ThemeProvider.js +0 -6
- package/lib/react-theme/ThemeProvider.js.map +1 -1
- package/lib/react-theme/createTheme.js +7 -23
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/react-theme/index.js +0 -18
- package/lib/react-theme/index.js.map +1 -1
- package/lib/react-theme/useTheme.js +0 -3
- package/lib/react-theme/useTheme.js.map +1 -1
- package/lib/react-theme/utils/background.js +1 -5
- package/lib/react-theme/utils/background.js.map +1 -1
- package/lib/react-theme/utils/colors.js +2 -12
- package/lib/react-theme/utils/colors.js.map +1 -1
- package/lib/react-theme/utils/contrast.js +7 -35
- package/lib/react-theme/utils/contrast.js.map +1 -1
- package/lib/react-theme/utils/corners.js +3 -14
- package/lib/react-theme/utils/corners.js.map +1 -1
- package/lib/react-theme/utils/spacers.js +6 -30
- package/lib/react-theme/utils/spacers.js.map +1 -1
- package/lib/react-theme/utils/themeProps.js +7 -35
- package/lib/react-theme/utils/themeProps.js.map +1 -1
- package/lib/redux/_i18n/actions.js +2 -8
- package/lib/redux/_i18n/actions.js.map +1 -1
- package/lib/redux/_i18n/index.js +0 -5
- package/lib/redux/_i18n/index.js.map +1 -1
- package/lib/redux/_i18n/reducer.js +12 -21
- package/lib/redux/_i18n/reducer.js.map +1 -1
- package/lib/redux/_modularui/actions.js +36 -69
- package/lib/redux/_modularui/actions.js.map +1 -1
- package/lib/redux/_modularui/connector.js +20 -28
- package/lib/redux/_modularui/connector.js.map +1 -1
- package/lib/redux/_modularui/index.js +0 -14
- package/lib/redux/_modularui/index.js.map +1 -1
- package/lib/redux/_modularui/middleware.js +8 -28
- package/lib/redux/_modularui/middleware.js.map +1 -1
- package/lib/redux/_modularui/modularuiUtils.js +10 -36
- package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
- package/lib/redux/_modularui/reducer.js +19 -45
- package/lib/redux/_modularui/reducer.js.map +1 -1
- package/lib/redux/_modularui/selectors.js +20 -97
- package/lib/redux/_modularui/selectors.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js +2 -11
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/actions.js +5 -16
- package/lib/redux/_router/actions.js.map +1 -1
- package/lib/redux/_router/connectors.js +10 -15
- package/lib/redux/_router/connectors.js.map +1 -1
- package/lib/redux/_router/index.js +0 -9
- package/lib/redux/_router/index.js.map +1 -1
- package/lib/redux/_router/middleware.js +0 -2
- package/lib/redux/_router/middleware.js.map +1 -1
- package/lib/redux/_router/reducer.js +2 -4
- package/lib/redux/_router/reducer.js.map +1 -1
- package/lib/redux/actions/Application.js +1 -8
- package/lib/redux/actions/Application.js.map +1 -1
- package/lib/redux/actions/Authorization.js +6 -25
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js +4 -24
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/Form.js +1 -12
- package/lib/redux/actions/Form.js.map +1 -1
- package/lib/redux/actions/FormAttributeSet.js +0 -14
- package/lib/redux/actions/FormAttributeSet.js.map +1 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js +2 -8
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/lib/redux/actions/FormAutosave.js +3 -12
- package/lib/redux/actions/FormAutosave.js.map +1 -1
- package/lib/redux/actions/FormAutosubmit.js +0 -6
- package/lib/redux/actions/FormAutosubmit.js.map +1 -1
- package/lib/redux/actions/FormValidations.js +2 -13
- package/lib/redux/actions/FormValidations.js.map +1 -1
- package/lib/redux/actions/Modals.js +1 -4
- package/lib/redux/actions/Modals.js.map +1 -1
- package/lib/redux/actions/Notification.js +4 -19
- package/lib/redux/actions/Notification.js.map +1 -1
- package/lib/redux/actions/Preferences.js +13 -44
- package/lib/redux/actions/Preferences.js.map +1 -1
- package/lib/redux/actions/ProgressIndicator.js +3 -11
- package/lib/redux/actions/ProgressIndicator.js.map +1 -1
- package/lib/redux/actions/SignIn.js +5 -28
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/SignOut.js +1 -9
- package/lib/redux/actions/SignOut.js.map +1 -1
- package/lib/redux/actions/index.js +0 -31
- package/lib/redux/actions/index.js.map +1 -1
- package/lib/redux/connectors/Application.js +0 -2
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js +1 -4
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js +0 -2
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js +1 -7
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js +0 -2
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js +1 -7
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js +1 -8
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js +2 -19
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js +1 -5
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js +0 -3
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js +1 -7
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js +0 -2
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js +1 -4
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js +0 -7
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js +1 -5
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js +1 -4
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js +1 -3
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js +1 -7
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js +2 -8
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js +3 -8
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js +0 -2
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/connectors/index.js +0 -21
- package/lib/redux/connectors/index.js.map +1 -1
- package/lib/redux/index.js +0 -17
- package/lib/redux/index.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js +12 -14
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js +2 -4
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js +11 -18
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js +6 -8
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js +6 -7
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js +10 -15
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/reducers/createReducer.js +0 -11
- package/lib/redux/reducers/createReducer.js.map +1 -1
- package/lib/redux/reducers/index.js +0 -10
- package/lib/redux/reducers/index.js.map +1 -1
- package/lib/redux/selectors/i18n.js +3 -7
- package/lib/redux/selectors/i18n.js.map +1 -1
- package/lib/redux/selectors/index.js +0 -3
- package/lib/redux/selectors/index.js.map +1 -1
- package/lib/redux/store/beforeRenderHooks.js +0 -2
- package/lib/redux/store/beforeRenderHooks.js.map +1 -1
- package/lib/redux/store/configureStore.js +2 -13
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/utils/browser/Cache.js +16 -49
- package/lib/utils/browser/Cache.js.map +1 -1
- package/lib/utils/browser/Cookies.js +3 -14
- package/lib/utils/browser/Cookies.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js +52 -115
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/fetch/serverFetch.js +2 -13
- package/lib/utils/fetch/serverFetch.js.map +1 -1
- package/lib/utils/fetch/universalFetch.js +6 -25
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js +42 -111
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/checkResource.js +5 -11
- package/lib/utils/helpers/checkResource.js.map +1 -1
- package/lib/utils/helpers/createHash.js +1 -6
- package/lib/utils/helpers/createHash.js.map +1 -1
- package/lib/utils/helpers/createUUID.js +0 -2
- package/lib/utils/helpers/createUUID.js.map +1 -1
- package/lib/utils/helpers/objects.js +3 -15
- package/lib/utils/helpers/objects.js.map +1 -1
- package/lib/utils/helpers/sanitizeHtml.js +6 -13
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
- package/lib/utils/helpers/text.js +0 -4
- package/lib/utils/helpers/text.js.map +1 -1
- package/lib/utils/index.js +0 -25
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js +43 -121
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/formatValue.js +3 -22
- package/lib/utils/number/formatValue.js.map +1 -1
- package/lib/utils/number/parseNumbers.js +3 -19
- package/lib/utils/number/parseNumbers.js.map +1 -1
- package/package.json +29 -29
- package/src/modularui/ModularUIRequest.js +14 -0
|
@@ -18,785 +18,650 @@ import { ATTRIBUTE_WIDTH, TIMEVERSION_FILTER_NAME } from "../../constants/Consta
|
|
|
18
18
|
import { getSetting, hasAllContentInData } from "../../constants/Settings";
|
|
19
19
|
import { IllegalArgumentException, UnsupportedOperationException } from "../../exceptions";
|
|
20
20
|
import AttributeContent from "./AttributeContent";
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* Attribute model, base model for all kind of attributes
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
25
|
export default class AttributeModel extends BaseModel {
|
|
26
26
|
/**
|
|
27
27
|
*/
|
|
28
28
|
constructor(attribute, attributeContributions) {
|
|
29
29
|
super(attribute, attributeContributions);
|
|
30
|
-
|
|
31
30
|
_defineProperty(this, "_label", void 0);
|
|
32
|
-
|
|
33
31
|
_defineProperty(this, "_lastModification", 0);
|
|
34
|
-
|
|
35
32
|
_defineProperty(this, "_initvalue", void 0);
|
|
36
|
-
|
|
37
33
|
_defineProperty(this, "_inputvalue", void 0);
|
|
38
|
-
|
|
39
34
|
_defineProperty(this, "_value", void 0);
|
|
40
|
-
|
|
41
35
|
_defineProperty(this, "_errorCollection", void 0);
|
|
42
|
-
|
|
43
36
|
_defineProperty(this, "_serverConstraints", new ConstraintCollection());
|
|
44
|
-
|
|
45
37
|
_defineProperty(this, "_useClientsideValidation", getSetting("USE_CLIENTSIDE_VALIDATION"));
|
|
46
|
-
|
|
47
38
|
_defineProperty(this, "_isValid", true);
|
|
48
|
-
|
|
49
39
|
_defineProperty(this, "_validatedValue", void 0);
|
|
50
|
-
|
|
51
40
|
_defineProperty(this, "_isEditable", false);
|
|
52
|
-
|
|
53
41
|
_defineProperty(this, "_concept", null);
|
|
54
|
-
|
|
55
42
|
_defineProperty(this, "_referenceDate", void 0);
|
|
56
|
-
|
|
57
43
|
_defineProperty(this, "_isResult", void 0);
|
|
58
|
-
|
|
59
44
|
_defineProperty(this, "_isHidden", false);
|
|
60
|
-
|
|
61
45
|
_defineProperty(this, "_readonly", void 0);
|
|
62
|
-
|
|
63
46
|
_defineProperty(this, "_disabled", false);
|
|
64
|
-
|
|
65
47
|
_defineProperty(this, "_mandatory", void 0);
|
|
66
|
-
|
|
67
48
|
_defineProperty(this, "_links", void 0);
|
|
68
|
-
|
|
69
49
|
_defineProperty(this, "_parentKey", void 0);
|
|
70
|
-
|
|
71
50
|
_defineProperty(this, "_hasContentConfiguration", void 0);
|
|
72
|
-
|
|
73
51
|
_defineProperty(this, "_layoutHintRules", void 0);
|
|
74
|
-
|
|
75
52
|
if (this.hasContentFromData && this.content.label) {
|
|
76
53
|
this._label = this.content.label;
|
|
77
54
|
} else {
|
|
78
55
|
this._label = this.contributions.label;
|
|
79
56
|
}
|
|
80
|
-
|
|
81
57
|
this._initvalue = this.data.value;
|
|
82
58
|
this._inputvalue = this.getInitialInputValue(this.data.value);
|
|
83
59
|
this._value = this.data.value;
|
|
84
60
|
this._disabled = this.layouthint.has(DISABLED);
|
|
85
61
|
this._errorCollection = new ErrorCollection("attribute");
|
|
86
|
-
|
|
87
62
|
if (attribute && attribute.message) {
|
|
88
63
|
this._errorCollection.addServerError(attribute.message.id, attribute.message.message, attribute.message.parameters, attribute.message.layouthint);
|
|
89
64
|
}
|
|
90
|
-
|
|
91
65
|
this._referenceDate = this.getData("referenceDate", DateUtil.now());
|
|
92
66
|
this._isResult = this.getData("isResult", false);
|
|
93
67
|
this._mandatory = this.layouthint.has(MANDATORY) || this.contributions.mandatory;
|
|
94
68
|
this._links = new LinkCollection(this.data._links, this.contributions._links);
|
|
95
69
|
}
|
|
70
|
+
|
|
96
71
|
/**
|
|
97
72
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
73
|
static isApplicableModel(contributions) {
|
|
101
74
|
if (!isPlainObject(contributions)) {
|
|
102
75
|
throw new IllegalArgumentException("Given argument for isApplicableModel is not a contributions object");
|
|
103
76
|
}
|
|
104
|
-
|
|
105
77
|
return false;
|
|
106
78
|
}
|
|
79
|
+
|
|
107
80
|
/**
|
|
108
81
|
* Retrieve initial input value
|
|
109
82
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
83
|
getInitialInputValue(value) {
|
|
113
84
|
return value;
|
|
114
85
|
}
|
|
86
|
+
|
|
115
87
|
/**
|
|
116
88
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
89
|
getInitialChildModelLinks() {
|
|
120
90
|
if (!this.hasContentFromData && this.hasContentConfiguration && this.conceptLink) {
|
|
121
91
|
return [this.conceptLink];
|
|
122
92
|
}
|
|
123
|
-
|
|
124
93
|
return [];
|
|
125
94
|
}
|
|
95
|
+
|
|
126
96
|
/**
|
|
127
97
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
98
|
setChildModels(models) {
|
|
131
99
|
var _this$conceptLink;
|
|
132
|
-
|
|
133
100
|
const conceptHref = (_this$conceptLink = this.conceptLink) === null || _this$conceptLink === void 0 ? void 0 : _this$conceptLink.href;
|
|
134
|
-
|
|
135
101
|
if (conceptHref) {
|
|
136
102
|
this.concept = _findInstanceProperty(models).call(models, model => model.selfhref.equalsWithParameters(conceptHref));
|
|
137
103
|
}
|
|
138
104
|
}
|
|
105
|
+
|
|
139
106
|
/**
|
|
140
107
|
* Getting the attribute key
|
|
141
108
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
109
|
get key() {
|
|
145
110
|
return this.data.key;
|
|
146
111
|
}
|
|
112
|
+
|
|
147
113
|
/**
|
|
148
114
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
115
|
get parentKey() {
|
|
152
116
|
return this._parentKey || "";
|
|
153
117
|
}
|
|
118
|
+
|
|
154
119
|
/**
|
|
155
120
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
121
|
set parentKey(parentKey) {
|
|
159
122
|
this._parentKey = parentKey;
|
|
160
123
|
}
|
|
124
|
+
|
|
161
125
|
/**
|
|
162
126
|
* Getting the attribute name
|
|
163
127
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
128
|
get name() {
|
|
167
129
|
return this.key;
|
|
168
130
|
}
|
|
131
|
+
|
|
169
132
|
/**
|
|
170
133
|
* Getting the type of the attribute
|
|
171
134
|
*/
|
|
172
|
-
|
|
173
|
-
|
|
174
135
|
get type() {
|
|
175
136
|
return this.contributions.type;
|
|
176
137
|
}
|
|
138
|
+
|
|
177
139
|
/**
|
|
178
140
|
* Getting the label of the attribute
|
|
179
141
|
*/
|
|
180
|
-
|
|
181
|
-
|
|
182
142
|
get label() {
|
|
183
143
|
return this._label || "";
|
|
184
144
|
}
|
|
145
|
+
|
|
185
146
|
/**
|
|
186
147
|
* Set the label of this attribute
|
|
187
148
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
149
|
set label(label) {
|
|
191
150
|
this._label = label;
|
|
192
151
|
}
|
|
152
|
+
|
|
193
153
|
/**
|
|
194
154
|
*/
|
|
195
|
-
|
|
196
|
-
|
|
197
155
|
set hasContentConfiguration(hasContentConfiguration) {
|
|
198
156
|
this._hasContentConfiguration = hasContentConfiguration;
|
|
199
157
|
}
|
|
158
|
+
|
|
200
159
|
/**
|
|
201
160
|
*/
|
|
202
|
-
|
|
203
|
-
|
|
204
161
|
get hasContentConfiguration() {
|
|
205
162
|
return this._hasContentConfiguration || false;
|
|
206
163
|
}
|
|
164
|
+
|
|
207
165
|
/**
|
|
208
166
|
*/
|
|
209
|
-
|
|
210
|
-
|
|
211
167
|
indicateContentConfiguration(contentConfiguration) {
|
|
212
168
|
if (contentConfiguration) {
|
|
213
169
|
var _contentConfiguration;
|
|
214
|
-
|
|
215
170
|
const hasQuestionConfig = (_contentConfiguration = contentConfiguration.questions) === null || _contentConfiguration === void 0 ? void 0 : _contentConfiguration.hasConfig();
|
|
216
171
|
const hasEndResultConfig = contentConfiguration.isConfiguredEndResultAttribute(this.key);
|
|
217
172
|
const hasIntermediateResultConfig = contentConfiguration.isConfiguredIntermediateResultAttribute(this.key);
|
|
218
173
|
this.hasContentConfiguration = hasQuestionConfig || hasEndResultConfig || hasIntermediateResultConfig;
|
|
219
174
|
}
|
|
220
175
|
}
|
|
176
|
+
|
|
221
177
|
/**
|
|
222
178
|
* Retrieve the first permitted label to render when a concept and contentConfiguration is available
|
|
223
179
|
* Be aware that permission could be in place for labels from a concept.
|
|
224
180
|
*/
|
|
225
|
-
|
|
226
|
-
|
|
227
181
|
getContentConfiguredLabel(contentConfiguration) {
|
|
228
182
|
if (this.hasContentFromData) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return (_this$content$label = this.content.label) !== null && _this$content$label !== void 0 ? _this$content$label : this.label;
|
|
183
|
+
return this.content.label ?? this.label;
|
|
232
184
|
}
|
|
233
|
-
|
|
234
185
|
const configuredLabelProperties = contentConfiguration && contentConfiguration.labelConfig.length > 0 ? contentConfiguration.labelConfig[0].types : [];
|
|
235
|
-
|
|
236
186
|
if (this.concept && configuredLabelProperties.length > 0) {
|
|
237
187
|
var _context;
|
|
238
|
-
|
|
239
188
|
const configuredLabels = _filterInstanceProperty(_context = this.concept.getLabelElementByIds(configuredLabelProperties)).call(_context, configuredLabel => configuredLabel.value && configuredLabel.value !== "");
|
|
240
|
-
|
|
241
189
|
if (configuredLabels.length > 0) {
|
|
242
190
|
var _context2;
|
|
243
|
-
|
|
244
191
|
const [firstConfiguredLabel] = _mapInstanceProperty(_context2 = _filterInstanceProperty(configuredLabelProperties).call(configuredLabelProperties, configuredLabelProperty => configuredLabels.some(configuredLabel => configuredLabel._id === configuredLabelProperty))).call(_context2, configuredLabelProperty => _findInstanceProperty(configuredLabels).call(configuredLabels, configuredLabel => configuredLabel._id === configuredLabelProperty));
|
|
245
|
-
|
|
246
192
|
if (firstConfiguredLabel) {
|
|
247
193
|
return firstConfiguredLabel.value;
|
|
248
194
|
}
|
|
249
195
|
}
|
|
250
196
|
}
|
|
251
|
-
|
|
252
197
|
return this.label;
|
|
253
198
|
}
|
|
199
|
+
|
|
254
200
|
/**
|
|
255
201
|
*/
|
|
256
|
-
|
|
257
|
-
|
|
258
202
|
get defaultAlignment() {
|
|
259
203
|
return "left";
|
|
260
204
|
}
|
|
205
|
+
|
|
261
206
|
/**
|
|
262
207
|
* Handles layout hint align-left, align-center and align-right
|
|
263
208
|
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
209
|
get alignment() {
|
|
267
|
-
const alignmentHints = this.layouthint.getByLayoutHint("align-");
|
|
210
|
+
const alignmentHints = this.layouthint.getByLayoutHint("align-");
|
|
268
211
|
|
|
212
|
+
// return alignment based on layouthint or the default alignment for the attribute
|
|
269
213
|
const alignment = alignmentHints ? alignmentHints.substring("align-".length) : this.defaultAlignment;
|
|
270
|
-
|
|
271
214
|
if (alignment === "left" || alignment === "center" || alignment === "right") {
|
|
272
215
|
return alignment;
|
|
273
216
|
}
|
|
274
|
-
|
|
275
217
|
return this.defaultAlignment;
|
|
276
218
|
}
|
|
219
|
+
|
|
277
220
|
/**
|
|
278
221
|
* Retrieve links of attribute
|
|
279
222
|
*/
|
|
280
|
-
|
|
281
|
-
|
|
282
223
|
get links() {
|
|
283
224
|
if (!this._links) {
|
|
284
225
|
this._links = new LinkCollection(this.data._links, this.contributions._links);
|
|
285
226
|
}
|
|
286
|
-
|
|
287
227
|
return this._links;
|
|
288
228
|
}
|
|
229
|
+
|
|
289
230
|
/**
|
|
290
231
|
* Retrieve link of attribute when available
|
|
291
232
|
*/
|
|
292
|
-
|
|
293
|
-
|
|
294
233
|
get downloadLink() {
|
|
295
234
|
const downloadLink = this.links.getLinksByGroup("download").first;
|
|
296
|
-
|
|
297
235
|
if (downloadLink && downloadLink.key === this.key) {
|
|
298
236
|
return downloadLink;
|
|
299
237
|
}
|
|
300
|
-
|
|
301
238
|
return null;
|
|
302
239
|
}
|
|
240
|
+
|
|
303
241
|
/**
|
|
304
242
|
* Retrieve concept link of attribute when available
|
|
305
243
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
308
244
|
get conceptLink() {
|
|
309
245
|
const conceptLink = this.links.getLinkByKey("concept");
|
|
310
|
-
|
|
311
246
|
if (conceptLink !== null) {
|
|
312
247
|
conceptLink.href = conceptLink.href.addParameter(TIMEVERSION_FILTER_NAME, this.referenceDate);
|
|
313
248
|
conceptLink.isCacheable = true;
|
|
314
249
|
}
|
|
315
|
-
|
|
316
250
|
return conceptLink;
|
|
317
251
|
}
|
|
252
|
+
|
|
318
253
|
/**
|
|
319
254
|
* Get concept information
|
|
320
255
|
*/
|
|
321
|
-
|
|
322
|
-
|
|
323
256
|
get concept() {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
return (_this$_concept = this._concept) !== null && _this$_concept !== void 0 ? _this$_concept : null;
|
|
257
|
+
return this._concept ?? null;
|
|
327
258
|
}
|
|
259
|
+
|
|
328
260
|
/**
|
|
329
261
|
* Set the concept
|
|
330
262
|
*/
|
|
331
|
-
|
|
332
|
-
|
|
333
263
|
set concept(concept) {
|
|
334
264
|
this._concept = concept instanceof ConceptDetailModel ? concept : null;
|
|
335
265
|
}
|
|
266
|
+
|
|
336
267
|
/**
|
|
337
268
|
* Retrieve reference date of attribute which can be used as entryDate for content
|
|
338
269
|
* to get information in correct time version
|
|
339
270
|
*/
|
|
340
|
-
|
|
341
|
-
|
|
342
271
|
get referenceDate() {
|
|
343
272
|
return this._referenceDate;
|
|
344
273
|
}
|
|
274
|
+
|
|
345
275
|
/**
|
|
346
276
|
* Set reference date for concepts and content
|
|
347
277
|
*/
|
|
348
|
-
|
|
349
|
-
|
|
350
278
|
set referenceDate(date) {
|
|
351
279
|
this._referenceDate = date;
|
|
352
280
|
}
|
|
281
|
+
|
|
353
282
|
/**
|
|
354
283
|
* Initial value received from the modular ui service
|
|
355
284
|
*/
|
|
356
|
-
|
|
357
|
-
|
|
358
285
|
get initvalue() {
|
|
359
286
|
return this._initvalue;
|
|
360
287
|
}
|
|
288
|
+
|
|
361
289
|
/**
|
|
362
290
|
* Retrieve input value
|
|
363
291
|
*/
|
|
364
|
-
|
|
365
|
-
|
|
366
292
|
getInputValue() {
|
|
367
293
|
const inputvalue = this._inputvalue;
|
|
368
294
|
return inputvalue ? inputvalue.toString() : "";
|
|
369
295
|
}
|
|
296
|
+
|
|
370
297
|
/**
|
|
371
298
|
* Returns the value as entered by the user. This can differ from the internal iso value that is stored
|
|
372
299
|
*/
|
|
373
|
-
|
|
374
|
-
|
|
375
300
|
get inputvalue() {
|
|
376
301
|
return this.getInputValue();
|
|
377
302
|
}
|
|
303
|
+
|
|
378
304
|
/**
|
|
379
305
|
* Value that is used when retrieving an error collection of this attribute
|
|
380
306
|
* Mostly this is the input value, but sometimes a different value is needed,
|
|
381
307
|
* for example iban and postcode need to validate length without spaces
|
|
382
308
|
*/
|
|
383
|
-
|
|
384
|
-
|
|
385
309
|
get validateValue() {
|
|
386
310
|
return this.inputvalue;
|
|
387
311
|
}
|
|
312
|
+
|
|
388
313
|
/**
|
|
389
314
|
* Sets the input value to the value entered by the user
|
|
390
315
|
*/
|
|
391
|
-
|
|
392
|
-
|
|
393
316
|
set inputvalue(value) {
|
|
394
317
|
this._inputvalue = value;
|
|
395
318
|
this.value = value;
|
|
396
319
|
this.validate(value);
|
|
397
320
|
}
|
|
321
|
+
|
|
398
322
|
/**
|
|
399
323
|
*/
|
|
400
|
-
|
|
401
|
-
|
|
402
324
|
hasValue() {
|
|
403
325
|
return this._value != null && this._value !== "";
|
|
404
326
|
}
|
|
327
|
+
|
|
405
328
|
/**
|
|
406
329
|
* Getting the value of the attribute
|
|
407
330
|
*/
|
|
408
|
-
|
|
409
|
-
|
|
410
331
|
getValue() {
|
|
411
332
|
return this.hasValue() ? this._value : null;
|
|
412
333
|
}
|
|
334
|
+
|
|
413
335
|
/**
|
|
414
336
|
* Getting data ready to be send to the modular ui
|
|
415
337
|
* Returns null when the attribute should not be send to the server
|
|
416
338
|
*/
|
|
417
|
-
|
|
418
|
-
|
|
419
339
|
getFormData() {
|
|
420
340
|
if (this.inError()) {
|
|
421
341
|
return null;
|
|
422
342
|
}
|
|
423
|
-
|
|
424
343
|
return {
|
|
425
344
|
[this.name]: this.value
|
|
426
345
|
};
|
|
427
346
|
}
|
|
347
|
+
|
|
428
348
|
/**
|
|
429
349
|
*/
|
|
430
|
-
|
|
431
|
-
|
|
432
350
|
get formdata() {
|
|
433
351
|
return this.getFormData();
|
|
434
352
|
}
|
|
353
|
+
|
|
435
354
|
/**
|
|
436
355
|
*/
|
|
437
|
-
|
|
438
|
-
|
|
439
356
|
getEmptyFormData() {
|
|
440
357
|
return {
|
|
441
358
|
[this.name]: null
|
|
442
359
|
};
|
|
443
360
|
}
|
|
361
|
+
|
|
444
362
|
/**
|
|
445
363
|
* Getting the value of the attribute
|
|
446
364
|
*/
|
|
447
|
-
|
|
448
|
-
|
|
449
365
|
get value() {
|
|
450
366
|
return this.getValue();
|
|
451
367
|
}
|
|
368
|
+
|
|
452
369
|
/**
|
|
453
370
|
* Setting a value in the element
|
|
454
371
|
*/
|
|
455
|
-
|
|
456
|
-
|
|
457
372
|
set value(value) {
|
|
458
373
|
this.updateLastModification();
|
|
459
374
|
this._value = value;
|
|
460
375
|
}
|
|
376
|
+
|
|
461
377
|
/**
|
|
462
378
|
*/
|
|
463
|
-
|
|
464
|
-
|
|
465
379
|
formatValue(value) {
|
|
466
380
|
return value;
|
|
467
381
|
}
|
|
382
|
+
|
|
468
383
|
/**
|
|
469
384
|
* Getting the readonly value, iso value converted for human reading
|
|
470
385
|
*/
|
|
471
|
-
|
|
472
|
-
|
|
473
386
|
get readonlyvalue() {
|
|
474
387
|
return this.value ? this.value.toString() : "";
|
|
475
388
|
}
|
|
389
|
+
|
|
476
390
|
/**
|
|
477
391
|
* Getting mandatory status of attribute
|
|
478
392
|
*/
|
|
479
|
-
|
|
480
|
-
|
|
481
393
|
get mandatory() {
|
|
482
394
|
return this._mandatory || false;
|
|
483
395
|
}
|
|
396
|
+
|
|
484
397
|
/**
|
|
485
398
|
*/
|
|
486
|
-
|
|
487
|
-
|
|
488
399
|
get configuredMandatory() {
|
|
489
400
|
return this.layouthint.has(MANDATORY) || this.contributions.mandatory;
|
|
490
401
|
}
|
|
402
|
+
|
|
491
403
|
/**
|
|
492
404
|
* Set mandatory status of attribute
|
|
493
405
|
*/
|
|
494
|
-
|
|
495
|
-
|
|
496
406
|
set mandatory(mandatory) {
|
|
497
407
|
if (mandatory !== this._mandatory) {
|
|
498
408
|
this._validatedValue = null;
|
|
499
409
|
}
|
|
500
|
-
|
|
501
410
|
this._mandatory = mandatory;
|
|
502
411
|
}
|
|
412
|
+
|
|
503
413
|
/**
|
|
504
414
|
*/
|
|
505
|
-
|
|
506
|
-
|
|
507
415
|
get readonly() {
|
|
508
416
|
return this._readonly || this.contributions.readonly === true || this.data.static === true || this.isResult === true;
|
|
509
417
|
}
|
|
418
|
+
|
|
510
419
|
/**
|
|
511
420
|
*/
|
|
512
|
-
|
|
513
|
-
|
|
514
421
|
set readonly(readonly) {
|
|
515
422
|
this._readonly = readonly;
|
|
516
423
|
}
|
|
424
|
+
|
|
517
425
|
/**
|
|
518
426
|
*/
|
|
519
|
-
|
|
520
|
-
|
|
521
427
|
get disabled() {
|
|
522
428
|
return this._disabled;
|
|
523
429
|
}
|
|
430
|
+
|
|
524
431
|
/**
|
|
525
432
|
*/
|
|
526
|
-
|
|
527
|
-
|
|
528
433
|
set disabled(disabled) {
|
|
529
434
|
this._disabled = disabled;
|
|
530
435
|
}
|
|
436
|
+
|
|
531
437
|
/**
|
|
532
438
|
*/
|
|
533
|
-
|
|
534
|
-
|
|
535
439
|
get isResult() {
|
|
536
440
|
return this._isResult;
|
|
537
441
|
}
|
|
442
|
+
|
|
538
443
|
/**
|
|
539
444
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
445
|
set isResult(isResult) {
|
|
543
446
|
this._isResult = isResult;
|
|
544
447
|
}
|
|
448
|
+
|
|
545
449
|
/**
|
|
546
450
|
* Getting the display and input format of a attribute
|
|
547
451
|
*/
|
|
548
|
-
|
|
549
|
-
|
|
550
452
|
get format() {
|
|
551
453
|
return this.getContribution("format");
|
|
552
454
|
}
|
|
455
|
+
|
|
553
456
|
/**
|
|
554
457
|
*/
|
|
555
|
-
|
|
556
|
-
|
|
557
458
|
get formatLabel() {
|
|
558
459
|
return this.format || "";
|
|
559
460
|
}
|
|
461
|
+
|
|
560
462
|
/**
|
|
561
463
|
* Get minimum string length
|
|
562
464
|
*/
|
|
563
|
-
|
|
564
|
-
|
|
565
465
|
get minLength() {
|
|
566
466
|
return this.getContribution("minLength");
|
|
567
467
|
}
|
|
468
|
+
|
|
568
469
|
/**
|
|
569
470
|
* Get maximum string length
|
|
570
471
|
*/
|
|
571
|
-
|
|
572
|
-
|
|
573
472
|
get maxLength() {
|
|
574
473
|
return this.getContribution("maxLength");
|
|
575
474
|
}
|
|
475
|
+
|
|
576
476
|
/**
|
|
577
477
|
*/
|
|
578
|
-
|
|
579
|
-
|
|
580
478
|
get operator() {
|
|
581
479
|
return "";
|
|
582
480
|
}
|
|
481
|
+
|
|
583
482
|
/**
|
|
584
483
|
* Get assistant message
|
|
585
484
|
*/
|
|
586
|
-
|
|
587
|
-
|
|
588
485
|
get assistantMessage() {
|
|
589
486
|
return this.getContribution("assistant");
|
|
590
487
|
}
|
|
488
|
+
|
|
591
489
|
/**
|
|
592
490
|
* Get valid status
|
|
593
491
|
*/
|
|
594
|
-
|
|
595
|
-
|
|
596
492
|
get isValid() {
|
|
597
493
|
return this.validate(this.validateValue);
|
|
598
494
|
}
|
|
495
|
+
|
|
599
496
|
/**
|
|
600
497
|
* Retrieve applicable constraint for this attribute
|
|
601
498
|
*/
|
|
602
|
-
|
|
603
|
-
|
|
604
499
|
get constraintCollection() {
|
|
605
500
|
const constraints = new ConstraintCollection();
|
|
606
|
-
constraints.add(this._serverConstraints);
|
|
501
|
+
constraints.add(this._serverConstraints);
|
|
607
502
|
|
|
503
|
+
// Mandatory constraint
|
|
608
504
|
if (this.mandatory) {
|
|
609
505
|
constraints.add(new MandatoryConstraint());
|
|
610
506
|
}
|
|
611
|
-
|
|
612
507
|
if (this.minLength || this.maxLength) {
|
|
613
508
|
constraints.add(new StringLengthConstraint(this.minLength, this.maxLength));
|
|
614
509
|
}
|
|
615
|
-
|
|
616
510
|
constraints.add(this.addConstraints());
|
|
617
511
|
return constraints;
|
|
618
512
|
}
|
|
513
|
+
|
|
619
514
|
/**
|
|
620
515
|
* Template method for class extending this model to add extra constraints
|
|
621
516
|
* @abstract
|
|
622
517
|
*/
|
|
623
|
-
|
|
624
|
-
|
|
625
518
|
addConstraints() {
|
|
626
519
|
return new ConstraintCollection();
|
|
627
520
|
}
|
|
521
|
+
|
|
628
522
|
/**
|
|
629
523
|
* Used to programmatically overwrite the setting USE_CLIENTSIDE_VALIDATION
|
|
630
524
|
*/
|
|
631
|
-
|
|
632
|
-
|
|
633
525
|
setUseClientsideValidation(enabled) {
|
|
634
526
|
this._useClientsideValidation = enabled;
|
|
635
527
|
}
|
|
528
|
+
|
|
636
529
|
/**
|
|
637
530
|
* Indicates if client side validation is enabled
|
|
638
531
|
* @returns {boolean}
|
|
639
532
|
*/
|
|
640
|
-
|
|
641
|
-
|
|
642
533
|
useClientsideValidation() {
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
return (_this$_useClientsideV = this._useClientsideValidation) !== null && _this$_useClientsideV !== void 0 ? _this$_useClientsideV : true;
|
|
534
|
+
return this._useClientsideValidation ?? true;
|
|
646
535
|
}
|
|
536
|
+
|
|
647
537
|
/**
|
|
648
538
|
* Validate input on client side constraint
|
|
649
539
|
*/
|
|
650
|
-
|
|
651
|
-
|
|
652
540
|
validate(value) {
|
|
653
541
|
// when client side validation is disabled, this attribute is always valid
|
|
654
542
|
if (!this.useClientsideValidation()) {
|
|
655
543
|
return true;
|
|
656
544
|
}
|
|
657
|
-
|
|
658
545
|
if (this.isOptionalAndEmpty(value)) {
|
|
659
546
|
this._isValid = true;
|
|
660
547
|
} else if (this._validatedValue !== value) {
|
|
661
548
|
this._isValid = this.constraintCollection.validate(value);
|
|
662
549
|
}
|
|
663
|
-
|
|
664
550
|
this._validatedValue = value;
|
|
665
551
|
return this._isValid;
|
|
666
552
|
}
|
|
553
|
+
|
|
667
554
|
/**
|
|
668
555
|
* Indicates if attribute is optional and empty
|
|
669
556
|
*/
|
|
670
|
-
|
|
671
|
-
|
|
672
557
|
isOptionalAndEmpty(value) {
|
|
673
558
|
if (value === undefined) {
|
|
674
559
|
throw new IllegalArgumentException("isOptionalAndEmpty method needs value argument");
|
|
675
560
|
}
|
|
676
|
-
|
|
677
561
|
return !this.mandatory && value === "";
|
|
678
562
|
}
|
|
563
|
+
|
|
679
564
|
/**
|
|
680
565
|
* Retrieve error messages of this attribute
|
|
681
566
|
*/
|
|
682
|
-
|
|
683
|
-
|
|
684
567
|
get errorCollection() {
|
|
685
568
|
const collection = new ErrorCollection("attribute", this._errorCollection);
|
|
686
569
|
collection.addConstraints(this.constraintCollection.invalidConstraints(this.validateValue));
|
|
687
570
|
return collection;
|
|
688
571
|
}
|
|
572
|
+
|
|
689
573
|
/**
|
|
690
574
|
* Check if attribute is in error
|
|
691
575
|
*/
|
|
692
|
-
|
|
693
|
-
|
|
694
576
|
inError() {
|
|
695
577
|
return !this._isValid && this.isChangedSince(0);
|
|
696
578
|
}
|
|
579
|
+
|
|
697
580
|
/**
|
|
698
581
|
* Reset static error messages on attribute
|
|
699
582
|
*/
|
|
700
|
-
|
|
701
|
-
|
|
702
583
|
resetErrors() {
|
|
703
584
|
this._errorCollection = new ErrorCollection("attribute");
|
|
704
585
|
}
|
|
586
|
+
|
|
705
587
|
/**
|
|
706
588
|
* Registers an error that was received from a server response
|
|
707
589
|
*/
|
|
708
|
-
|
|
709
|
-
|
|
710
590
|
addServerError(error) {
|
|
711
591
|
this._errorCollection.addServerError(error.id, error.message, error.properties, error.layouthint);
|
|
712
592
|
}
|
|
593
|
+
|
|
713
594
|
/**
|
|
714
595
|
*/
|
|
715
|
-
|
|
716
|
-
|
|
717
596
|
removeServerError(id) {
|
|
718
597
|
this._errorCollection.removeServerError(id);
|
|
719
598
|
}
|
|
599
|
+
|
|
720
600
|
/**
|
|
721
601
|
*/
|
|
722
|
-
|
|
723
|
-
|
|
724
602
|
hasServerErrors() {
|
|
725
603
|
return this.errorCollection.serverErrors.length > 0;
|
|
726
604
|
}
|
|
605
|
+
|
|
727
606
|
/**
|
|
728
607
|
*/
|
|
729
|
-
|
|
730
|
-
|
|
731
608
|
hasErrors() {
|
|
732
609
|
return this.errorCollection.hasItems;
|
|
733
610
|
}
|
|
611
|
+
|
|
734
612
|
/**
|
|
735
613
|
* Registers a missing error that was received from the server
|
|
736
614
|
*/
|
|
737
|
-
|
|
738
|
-
|
|
739
615
|
addMissingError() {
|
|
740
616
|
this._errorCollection.addServerError("Constraint.Missing");
|
|
741
617
|
}
|
|
618
|
+
|
|
742
619
|
/**
|
|
743
620
|
*/
|
|
744
|
-
|
|
745
|
-
|
|
746
621
|
removeMissingError() {
|
|
747
622
|
this.removeServerError("Constraint.Missing");
|
|
748
623
|
}
|
|
624
|
+
|
|
749
625
|
/**
|
|
750
626
|
*/
|
|
751
|
-
|
|
752
|
-
|
|
753
627
|
addServerConstraint(id, defaultMessage, parameters) {
|
|
754
628
|
this._serverConstraints.addConstraint(id, null, defaultMessage, parameters, this.useClientsideValidation());
|
|
755
629
|
}
|
|
630
|
+
|
|
756
631
|
/**
|
|
757
632
|
*/
|
|
758
|
-
|
|
759
|
-
|
|
760
633
|
formatParameters(parameters) {
|
|
761
634
|
if (parameters == null) {
|
|
762
635
|
return {};
|
|
763
636
|
}
|
|
764
|
-
|
|
765
637
|
const params = {};
|
|
766
|
-
|
|
767
638
|
_Object$keys(parameters).forEach(paramKey => {
|
|
768
639
|
const paramValue = parameters[paramKey];
|
|
769
|
-
|
|
770
640
|
if (_endsWithInstanceProperty(paramKey).call(paramKey, "-number") || _endsWithInstanceProperty(paramKey).call(paramKey, "-date")) {
|
|
771
641
|
params[paramKey] = this.formatValue(paramValue);
|
|
772
642
|
} else {
|
|
773
643
|
params[paramKey] = paramValue;
|
|
774
644
|
}
|
|
775
645
|
});
|
|
776
|
-
|
|
777
646
|
return params;
|
|
778
647
|
}
|
|
648
|
+
|
|
779
649
|
/**
|
|
780
650
|
*/
|
|
781
|
-
|
|
782
|
-
|
|
783
651
|
get hasDynamicValidationData() {
|
|
784
652
|
return true;
|
|
785
653
|
}
|
|
654
|
+
|
|
786
655
|
/**
|
|
787
656
|
*/
|
|
788
|
-
|
|
789
|
-
|
|
790
657
|
updateValidations(errors) {
|
|
791
658
|
if (errors.some(error => error.id === "Constraint.Mandatory") || this.layouthint.has(MANDATORY)) {
|
|
792
659
|
this.mandatory = true;
|
|
793
660
|
} else if (!this.hasValue()) {
|
|
794
661
|
this.mandatory = false;
|
|
795
662
|
}
|
|
796
|
-
|
|
797
663
|
this._serverConstraints = new ConstraintCollection();
|
|
798
664
|
this.resetErrors();
|
|
799
|
-
|
|
800
665
|
_filterInstanceProperty(errors).call(errors, error => error.id !== "Constraint.Mandatory" || !this.hasValue()).forEach(error => {
|
|
801
666
|
if (this.hasValue()) {
|
|
802
667
|
this._errorCollection.addServerError(error.id, error.message, this.formatParameters(error.properties), error.layouthint);
|
|
@@ -805,161 +670,140 @@ export default class AttributeModel extends BaseModel {
|
|
|
805
670
|
}
|
|
806
671
|
});
|
|
807
672
|
}
|
|
673
|
+
|
|
808
674
|
/**
|
|
809
675
|
* Set last modification to current timestamp
|
|
810
676
|
*/
|
|
811
|
-
|
|
812
|
-
|
|
813
677
|
updateLastModification() {
|
|
814
678
|
this._lastModification = Date.now();
|
|
815
679
|
}
|
|
680
|
+
|
|
816
681
|
/**
|
|
817
682
|
* Inidicates if attribute is changed since a given timestamp (Date.now)
|
|
818
683
|
*/
|
|
819
|
-
|
|
820
|
-
|
|
821
684
|
isChangedSince(timestamp) {
|
|
822
685
|
return this._lastModification > timestamp;
|
|
823
686
|
}
|
|
687
|
+
|
|
824
688
|
/**
|
|
825
689
|
* Abstract reset method which should be implemented on each attribute that has this attribute as a base class.
|
|
826
690
|
*
|
|
827
691
|
* @abstract
|
|
828
692
|
*/
|
|
829
|
-
|
|
830
|
-
|
|
831
693
|
reset() {
|
|
832
|
-
throw new UnsupportedOperationException(
|
|
694
|
+
throw new UnsupportedOperationException(`Reset method not implemented for ${this.type}`);
|
|
833
695
|
}
|
|
696
|
+
|
|
834
697
|
/**
|
|
835
698
|
* Merge old attribute with the attribute from the server.
|
|
836
699
|
* Readonly attributes always need to show the value from the server
|
|
837
700
|
*/
|
|
838
|
-
|
|
839
|
-
|
|
840
701
|
mergeAttribute(oldAttribute) {
|
|
841
702
|
this.concept = oldAttribute.concept;
|
|
842
|
-
|
|
843
703
|
if (!oldAttribute.readonly && oldAttribute.isValid && oldAttribute.inputvalue !== null) {
|
|
844
704
|
this.update(oldAttribute.inputvalue);
|
|
845
705
|
}
|
|
846
706
|
}
|
|
707
|
+
|
|
847
708
|
/**
|
|
848
709
|
* Abstract update method which should be implemented on each attribute that has this attribute as a base class.
|
|
849
710
|
* @abstract
|
|
850
711
|
*/
|
|
851
712
|
// eslint-disable-next-line no-unused-vars
|
|
852
|
-
|
|
853
|
-
|
|
854
713
|
update(value, changedAttribute) {
|
|
855
|
-
throw new UnsupportedOperationException(
|
|
714
|
+
throw new UnsupportedOperationException(`Update method not implemented for ${this.type}`);
|
|
856
715
|
}
|
|
716
|
+
|
|
857
717
|
/**
|
|
858
718
|
* Indicate if attribute is editable
|
|
859
719
|
*/
|
|
860
|
-
|
|
861
|
-
|
|
862
720
|
set isEditable(isEditable) {
|
|
863
721
|
this._isEditable = isEditable;
|
|
864
722
|
}
|
|
723
|
+
|
|
865
724
|
/**
|
|
866
725
|
* Retrieve if attribute is editable
|
|
867
726
|
*/
|
|
868
|
-
|
|
869
|
-
|
|
870
727
|
get isEditable() {
|
|
871
728
|
return this._isEditable;
|
|
872
729
|
}
|
|
730
|
+
|
|
873
731
|
/**
|
|
874
732
|
* Indicates if the attribute is visible
|
|
875
733
|
*/
|
|
876
|
-
|
|
877
|
-
|
|
878
734
|
get isVisible() {
|
|
879
735
|
return !this._isHidden;
|
|
880
736
|
}
|
|
737
|
+
|
|
881
738
|
/**
|
|
882
739
|
*/
|
|
883
|
-
|
|
884
|
-
|
|
885
740
|
get isHidden() {
|
|
886
741
|
return this._isHidden;
|
|
887
742
|
}
|
|
743
|
+
|
|
888
744
|
/**
|
|
889
745
|
*/
|
|
890
|
-
|
|
891
|
-
|
|
892
746
|
set isHidden(isHidden) {
|
|
893
747
|
this._isHidden = isHidden;
|
|
894
748
|
}
|
|
749
|
+
|
|
895
750
|
/**
|
|
896
751
|
* Explicitly toggle visibility of this attribute
|
|
897
752
|
*/
|
|
898
|
-
|
|
899
|
-
|
|
900
753
|
show() {
|
|
901
754
|
this.isHidden = false;
|
|
902
755
|
}
|
|
756
|
+
|
|
903
757
|
/**
|
|
904
758
|
*/
|
|
905
|
-
|
|
906
|
-
|
|
907
759
|
hide() {
|
|
908
760
|
this.isHidden = true;
|
|
909
761
|
}
|
|
762
|
+
|
|
910
763
|
/**
|
|
911
764
|
*/
|
|
912
|
-
|
|
913
|
-
|
|
914
765
|
equals(otherAttribute) {
|
|
915
766
|
return this.key === otherAttribute.key && this.parentKey === otherAttribute.parentKey;
|
|
916
767
|
}
|
|
768
|
+
|
|
917
769
|
/**
|
|
918
770
|
* Readonly attribute width indicates the proposed width of this attribute
|
|
919
771
|
*/
|
|
920
|
-
|
|
921
|
-
|
|
922
772
|
get readonlyWidth() {
|
|
923
773
|
return ATTRIBUTE_WIDTH.MEDIUM;
|
|
924
774
|
}
|
|
775
|
+
|
|
925
776
|
/**
|
|
926
777
|
*/
|
|
927
|
-
|
|
928
|
-
|
|
929
778
|
get layoutHintRules() {
|
|
930
779
|
return this._layoutHintRules;
|
|
931
780
|
}
|
|
781
|
+
|
|
932
782
|
/**
|
|
933
783
|
*/
|
|
934
|
-
|
|
935
|
-
|
|
936
784
|
set layoutHintRules(rules) {
|
|
937
785
|
this._layoutHintRules = rules;
|
|
938
786
|
}
|
|
787
|
+
|
|
939
788
|
/**
|
|
940
789
|
*/
|
|
941
|
-
|
|
942
|
-
|
|
943
790
|
processLayoutHintRules(attributes) {
|
|
944
791
|
if (this._layoutHintRules) {
|
|
945
792
|
this.layoutHintRules.process(this, attributes);
|
|
946
793
|
}
|
|
947
794
|
}
|
|
795
|
+
|
|
948
796
|
/**
|
|
949
797
|
* Indicates if content comes from the data service
|
|
950
798
|
*/
|
|
951
|
-
|
|
952
|
-
|
|
953
799
|
get hasContentFromData() {
|
|
954
800
|
return hasAllContentInData();
|
|
955
801
|
}
|
|
802
|
+
|
|
956
803
|
/**
|
|
957
804
|
*/
|
|
958
|
-
|
|
959
|
-
|
|
960
805
|
get content() {
|
|
961
806
|
return new AttributeContent(this.data.content);
|
|
962
807
|
}
|
|
963
|
-
|
|
964
808
|
}
|
|
965
809
|
//# sourceMappingURL=AttributeModel.js.map
|