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