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