@beinformed/ui 1.23.3-beta.0 → 1.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/esm/builder/index.js +0 -1
- package/esm/builder/index.js.map +1 -1
- package/esm/builder/mergeLayoutHintConfigurations.js +11 -1
- package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/esm/constants/Constants.js +28 -23
- package/esm/constants/Constants.js.map +1 -1
- package/esm/constants/LayoutHintConfig.js +0 -1
- package/esm/constants/LayoutHintConfig.js.map +1 -1
- package/esm/constants/LayoutHints.js +27 -11
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js +15 -9
- package/esm/constants/Settings.js.map +1 -1
- package/esm/constants/index.js +0 -1
- package/esm/constants/index.js.map +1 -1
- package/esm/exceptions/ConfigurationException.js +2 -2
- package/esm/exceptions/ConfigurationException.js.map +1 -1
- package/esm/exceptions/FetchException.js +28 -9
- package/esm/exceptions/FetchException.js.map +1 -1
- package/esm/exceptions/IllegalArgumentException.js +2 -1
- package/esm/exceptions/IllegalArgumentException.js.map +1 -1
- package/esm/exceptions/IllegalReturnException.js +2 -1
- package/esm/exceptions/IllegalReturnException.js.map +1 -1
- package/esm/exceptions/IllegalStateException.js +2 -1
- package/esm/exceptions/IllegalStateException.js.map +1 -1
- package/esm/exceptions/JsonParseException.js +2 -1
- package/esm/exceptions/JsonParseException.js.map +1 -1
- package/esm/exceptions/MissingPropertyException.js +2 -1
- package/esm/exceptions/MissingPropertyException.js.map +1 -1
- package/esm/exceptions/NetworkException.js +10 -1
- package/esm/exceptions/NetworkException.js.map +1 -1
- package/esm/exceptions/NotAllowedUriException.js +2 -1
- package/esm/exceptions/NotAllowedUriException.js.map +1 -1
- package/esm/exceptions/NotFoundException.js +11 -1
- package/esm/exceptions/NotFoundException.js.map +1 -1
- package/esm/exceptions/ServerRequestException.js +2 -1
- package/esm/exceptions/ServerRequestException.js.map +1 -1
- package/esm/exceptions/ThemePropertyException.js +2 -1
- package/esm/exceptions/ThemePropertyException.js.map +1 -1
- package/esm/exceptions/TimeoutException.js +6 -1
- package/esm/exceptions/TimeoutException.js.map +1 -1
- package/esm/exceptions/UnauthorizedException.js +10 -1
- package/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/esm/exceptions/UnsupportedOperationException.js +2 -1
- package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
- package/esm/exceptions/index.js +0 -1
- package/esm/exceptions/index.js.map +1 -1
- package/esm/hooks/index.js +0 -1
- package/esm/hooks/index.js.map +1 -1
- package/esm/hooks/useAllFormsOnModel.js +16 -0
- package/esm/hooks/useAllFormsOnModel.js.map +1 -1
- package/esm/hooks/useAuthentication.js +23 -9
- package/esm/hooks/useAuthentication.js.map +1 -1
- package/esm/hooks/useContent.js +10 -3
- package/esm/hooks/useContent.js.map +1 -1
- package/esm/hooks/useDeepCompareEffect.js +6 -2
- package/esm/hooks/useDeepCompareEffect.js.map +1 -1
- package/esm/hooks/useForm.js +13 -4
- package/esm/hooks/useForm.js.map +1 -1
- package/esm/hooks/useI18n.js +7 -3
- package/esm/hooks/useI18n.js.map +1 -1
- package/esm/hooks/useModal.js +3 -0
- package/esm/hooks/useModal.js.map +1 -1
- package/esm/hooks/useModelCatalog.js +21 -10
- package/esm/hooks/useModelCatalog.js.map +1 -1
- package/esm/hooks/useModels.js +1 -1
- package/esm/hooks/useModels.js.map +1 -1
- package/esm/hooks/useModularUI.js +11 -7
- package/esm/hooks/useModularUI.js.map +1 -1
- package/esm/hooks/useModularUIBasic.js +12 -2
- package/esm/hooks/useModularUIBasic.js.map +1 -1
- package/esm/hooks/useModularUIModel.js +10 -11
- package/esm/hooks/useModularUIModel.js.map +1 -1
- package/esm/hooks/useModularUIRequest.js +1 -2
- package/esm/hooks/useModularUIRequest.js.map +1 -1
- package/esm/hooks/useNotification.js +2 -2
- package/esm/hooks/useNotification.js.map +1 -1
- package/esm/hooks/usePreference.js +1 -1
- package/esm/hooks/usePreference.js.map +1 -1
- package/esm/hooks/useProgressIndicator.js +2 -3
- package/esm/hooks/useProgressIndicator.js.map +1 -1
- package/esm/hooks/useRouter.js +10 -7
- package/esm/hooks/useRouter.js.map +1 -1
- package/esm/i18n/Locale.js +40 -15
- package/esm/i18n/Locale.js.map +1 -1
- package/esm/i18n/Locales.js +33 -13
- package/esm/i18n/Locales.js.map +1 -1
- package/esm/i18n/Message.js +5 -3
- package/esm/i18n/Message.js.map +1 -1
- package/esm/i18n/index.js +0 -1
- package/esm/i18n/index.js.map +1 -1
- package/esm/i18n/languages.js +0 -1
- package/esm/i18n/languages.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js +0 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js +0 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/esm/i18n/withMessage.js +4 -1
- package/esm/i18n/withMessage.js.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/models/actions/ActionCollection.js +26 -13
- package/esm/models/actions/ActionCollection.js.map +1 -1
- package/esm/models/actions/ActionModel.js +60 -23
- package/esm/models/actions/ActionModel.js.map +1 -1
- package/esm/models/application/ApplicationModel.js +34 -14
- package/esm/models/application/ApplicationModel.js.map +1 -1
- package/esm/models/attributes/AttributeCollection.js +81 -27
- package/esm/models/attributes/AttributeCollection.js.map +1 -1
- package/esm/models/attributes/AttributeContent.js +56 -23
- package/esm/models/attributes/AttributeContent.js.map +1 -1
- package/esm/models/attributes/AttributeDataHelper.js +83 -33
- package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
- package/esm/models/attributes/AttributeModel.js +258 -102
- package/esm/models/attributes/AttributeModel.js.map +1 -1
- package/esm/models/attributes/AttributeSetModel.js +17 -6
- package/esm/models/attributes/AttributeSetModel.js.map +1 -1
- package/esm/models/attributes/BooleanAttributeModel.js +76 -29
- package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/esm/models/attributes/CaptchaAttributeModel.js +8 -5
- package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeModel.js +108 -38
- package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js +80 -27
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionModel.js +102 -34
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeChildCollection.js +64 -23
- package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeModel.js +99 -40
- package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/esm/models/attributes/DatetimeAttributeModel.js +145 -51
- package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/esm/models/attributes/HelptextAttributeModel.js +17 -7
- package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/esm/models/attributes/LabelAttributeModel.js +8 -4
- package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
- package/esm/models/attributes/MemoAttributeModel.js +10 -6
- package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
- package/esm/models/attributes/MoneyAttributeModel.js +10 -5
- package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/esm/models/attributes/NumberAttributeModel.js +49 -22
- package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
- package/esm/models/attributes/PasswordAttributeModel.js +65 -23
- package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/esm/models/attributes/StringAttributeModel.js +72 -29
- package/esm/models/attributes/StringAttributeModel.js.map +1 -1
- package/esm/models/attributes/UploadAttributeModel.js +62 -21
- package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
- package/esm/models/attributes/XMLAttributeModel.js +10 -5
- package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
- package/esm/models/attributes/_createAttribute.js +21 -7
- package/esm/models/attributes/_createAttribute.js.map +1 -1
- package/esm/models/attributes/input-constraints/BSNConstraint.js +19 -8
- package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintCollection.js +10 -3
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintModel.js +22 -6
- package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +59 -16
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +28 -10
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +18 -7
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js +24 -10
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/IBANConstraint.js +13 -6
- package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js +15 -8
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +25 -8
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +53 -17
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +41 -15
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +39 -15
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +20 -8
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +12 -7
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +17 -7
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +17 -7
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RangeConstraint.js +57 -22
- package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RegexConstraint.js +18 -7
- package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js +50 -14
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/XMLConstraint.js +17 -8
- package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +17 -9
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js +84 -30
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +11 -5
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +10 -4
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/esm/models/base/BaseCollection.js +67 -27
- package/esm/models/base/BaseCollection.js.map +1 -1
- package/esm/models/base/BaseModel.js +39 -14
- package/esm/models/base/BaseModel.js.map +1 -1
- package/esm/models/base/ResourceCollection.js +5 -2
- package/esm/models/base/ResourceCollection.js.map +1 -1
- package/esm/models/base/ResourceModel.js +53 -21
- package/esm/models/base/ResourceModel.js.map +1 -1
- package/esm/models/caseview/CaseViewModel.js +46 -16
- package/esm/models/caseview/CaseViewModel.js.map +1 -1
- package/esm/models/concepts/BusinessScenarioModel.js +39 -10
- package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/esm/models/concepts/ConceptDetailModel.js +85 -32
- package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
- package/esm/models/concepts/ConceptIndexModel.js +36 -12
- package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
- package/esm/models/concepts/ConceptLinkModel.js +45 -16
- package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
- package/esm/models/concepts/ConceptRelationCollection.js +20 -7
- package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/esm/models/concepts/ConceptRelationModel.js +22 -8
- package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
- package/esm/models/concepts/ConceptTypeDetailModel.js +25 -12
- package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/esm/models/concepts/SourceReferenceCollection.js +5 -2
- package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/esm/models/concepts/SourceReferenceModel.js +21 -10
- package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
- package/esm/models/content/ContentIndexModel.js +37 -13
- package/esm/models/content/ContentIndexModel.js.map +1 -1
- package/esm/models/content/ContentLinkModel.js +56 -19
- package/esm/models/content/ContentLinkModel.js.map +1 -1
- package/esm/models/content/ContentModel.js +59 -22
- package/esm/models/content/ContentModel.js.map +1 -1
- package/esm/models/content/ContentTOCModel.js +45 -17
- package/esm/models/content/ContentTOCModel.js.map +1 -1
- package/esm/models/content/ContentTypeModel.js +16 -8
- package/esm/models/content/ContentTypeModel.js.map +1 -1
- package/esm/models/content/SectionModel.js +57 -20
- package/esm/models/content/SectionModel.js.map +1 -1
- package/esm/models/content/SubSectionModel.js +43 -16
- package/esm/models/content/SubSectionModel.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfiguration.js +20 -6
- package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationElements.js +48 -11
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +13 -3
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +15 -5
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationResults.js +32 -13
- package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/esm/models/detail/DetailModel.js +54 -21
- package/esm/models/detail/DetailModel.js.map +1 -1
- package/esm/models/error/ErrorCollection.js +29 -11
- package/esm/models/error/ErrorCollection.js.map +1 -1
- package/esm/models/error/ErrorModel.js +21 -8
- package/esm/models/error/ErrorModel.js.map +1 -1
- package/esm/models/error/ErrorResponse.js +93 -37
- package/esm/models/error/ErrorResponse.js.map +1 -1
- package/esm/models/filters/AssignmentFilterModel.js +45 -19
- package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
- package/esm/models/filters/BaseFilterModel.js +58 -25
- package/esm/models/filters/BaseFilterModel.js.map +1 -1
- package/esm/models/filters/ConceptIndexFilterModel.js +5 -1
- package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/esm/models/filters/FilterCollection.js +44 -11
- package/esm/models/filters/FilterCollection.js.map +1 -1
- package/esm/models/filters/FilterModel.js +1 -2
- package/esm/models/filters/FilterModel.js.map +1 -1
- package/esm/models/filters/RangeFilterModel.js +6 -1
- package/esm/models/filters/RangeFilterModel.js.map +1 -1
- package/esm/models/form/FormModel.js +332 -136
- package/esm/models/form/FormModel.js.map +1 -1
- package/esm/models/form/FormObjectModel.js +141 -55
- package/esm/models/form/FormObjectModel.js.map +1 -1
- package/esm/models/grouping/GroupingModel.js +58 -20
- package/esm/models/grouping/GroupingModel.js.map +1 -1
- package/esm/models/href/Href.js +121 -47
- package/esm/models/href/Href.js.map +1 -1
- package/esm/models/href/ListHref.js +32 -11
- package/esm/models/href/ListHref.js.map +1 -1
- package/esm/models/index.js +0 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/layouthint/LayoutHintCollection.js +32 -9
- package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/esm/models/links/LinkCollection.js +44 -15
- package/esm/models/links/LinkCollection.js.map +1 -1
- package/esm/models/links/LinkModel.js +57 -21
- package/esm/models/links/LinkModel.js.map +1 -1
- package/esm/models/links/normalizeLinkJSON.js +21 -5
- package/esm/models/links/normalizeLinkJSON.js.map +1 -1
- package/esm/models/list/ListDetailModel.js +79 -31
- package/esm/models/list/ListDetailModel.js.map +1 -1
- package/esm/models/list/ListHeaderModel.js +28 -10
- package/esm/models/list/ListHeaderModel.js.map +1 -1
- package/esm/models/list/ListItemCollection.js +20 -4
- package/esm/models/list/ListItemCollection.js.map +1 -1
- package/esm/models/list/ListItemModel.js +23 -7
- package/esm/models/list/ListItemModel.js.map +1 -1
- package/esm/models/list/ListModel.js +115 -38
- package/esm/models/list/ListModel.js.map +1 -1
- package/esm/models/lookup/LookupOptionCollection.js +6 -4
- package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
- package/esm/models/lookup/LookupOptionsModel.js +16 -5
- package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
- package/esm/models/modelcatalog/ModelCatalogModel.js +14 -6
- package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/esm/models/paging/PagesizeModel.js +12 -4
- package/esm/models/paging/PagesizeModel.js.map +1 -1
- package/esm/models/paging/PagingModel.js +26 -11
- package/esm/models/paging/PagingModel.js.map +1 -1
- package/esm/models/panels/GroupingPanelModel.js +41 -14
- package/esm/models/panels/GroupingPanelModel.js.map +1 -1
- package/esm/models/parameter/Parameter.js +41 -14
- package/esm/models/parameter/Parameter.js.map +1 -1
- package/esm/models/process/ProcessStatusSettingsModel.js +24 -10
- package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/esm/models/resolveModel.js +7 -2
- package/esm/models/resolveModel.js.map +1 -1
- package/esm/models/search/CaseSearchModel.js +9 -3
- package/esm/models/search/CaseSearchModel.js.map +1 -1
- package/esm/models/sorting/SortOptionModel.js +41 -15
- package/esm/models/sorting/SortOptionModel.js.map +1 -1
- package/esm/models/sorting/SortingModel.js +28 -9
- package/esm/models/sorting/SortingModel.js.map +1 -1
- package/esm/models/tab/TabModel.js +41 -14
- package/esm/models/tab/TabModel.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupCollection.js +2 -1
- package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupModel.js +17 -7
- package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/esm/models/user/UserModel.js +10 -5
- package/esm/models/user/UserModel.js.map +1 -1
- package/esm/models/user/UserProfileModel.js +10 -2
- package/esm/models/user/UserProfileModel.js.map +1 -1
- package/esm/models/user/UserServicesModel.js +27 -11
- package/esm/models/user/UserServicesModel.js.map +1 -1
- package/esm/modularui/Authenticate.js +56 -21
- package/esm/modularui/Authenticate.js.map +1 -1
- package/esm/modularui/ModularUIError.js +8 -3
- package/esm/modularui/ModularUIError.js.map +1 -1
- package/esm/modularui/ModularUIRequest.js +194 -77
- package/esm/modularui/ModularUIRequest.js.map +1 -1
- package/esm/modularui/ModularUIResponse.js +37 -13
- package/esm/modularui/ModularUIResponse.js.map +1 -1
- package/esm/modularui/index.js +0 -1
- package/esm/modularui/index.js.map +1 -1
- package/esm/react/ErrorBoundary.js +12 -2
- package/esm/react/ErrorBoundary.js.map +1 -1
- package/esm/react/ErrorBoundaryFallback.js +2 -2
- package/esm/react/ErrorBoundaryFallback.js.map +1 -1
- package/esm/react/index.js +0 -1
- package/esm/react/index.js.map +1 -1
- package/esm/react/utils.js +7 -3
- package/esm/react/utils.js.map +1 -1
- package/esm/react-client/Init.js +2 -1
- package/esm/react-client/Init.js.map +1 -1
- package/esm/react-client/client.js +29 -15
- package/esm/react-client/client.js.map +1 -1
- package/esm/react-client/contextPath.js +8 -3
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/index.js +0 -1
- package/esm/react-client/index.js.map +1 -1
- package/esm/react-client/rehydrate.js +19 -4
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/contextPath.js +2 -2
- package/esm/react-server/contextPath.js.map +1 -1
- package/esm/react-server/createSSRComplete.js +12 -2
- package/esm/react-server/createSSRComplete.js.map +1 -1
- package/esm/react-server/htmlpage.js +12 -25
- package/esm/react-server/htmlpage.js.map +1 -1
- package/esm/react-server/index.js +0 -1
- package/esm/react-server/index.js.map +1 -1
- package/esm/react-server/renderSSRComplete.js +4 -4
- package/esm/react-server/renderSSRComplete.js.map +1 -1
- package/esm/react-server/renderSSRMinimal.js +2 -1
- package/esm/react-server/renderSSRMinimal.js.map +1 -1
- package/esm/react-server/requestInformation.js +18 -9
- package/esm/react-server/requestInformation.js.map +1 -1
- package/esm/react-server/serverNoSSR.js +7 -3
- package/esm/react-server/serverNoSSR.js.map +1 -1
- package/esm/react-server/serverSSR.js +2 -1
- package/esm/react-server/serverSSR.js.map +1 -1
- package/esm/react-server/serverUtil.js +37 -13
- package/esm/react-server/serverUtil.js.map +1 -1
- package/esm/react-theme/ThemeProvider.js +2 -1
- package/esm/react-theme/ThemeProvider.js.map +1 -1
- package/esm/react-theme/createTheme.js +20 -7
- package/esm/react-theme/createTheme.js.map +1 -1
- package/esm/react-theme/index.js +0 -1
- package/esm/react-theme/index.js.map +1 -1
- package/esm/react-theme/useTheme.js +2 -1
- package/esm/react-theme/useTheme.js.map +1 -1
- package/esm/react-theme/utils/background.js +5 -2
- package/esm/react-theme/utils/background.js.map +1 -1
- package/esm/react-theme/utils/colors.js +9 -3
- package/esm/react-theme/utils/colors.js.map +1 -1
- package/esm/react-theme/utils/contrast.js +27 -8
- package/esm/react-theme/utils/contrast.js.map +1 -1
- package/esm/react-theme/utils/corners.js +10 -4
- package/esm/react-theme/utils/corners.js.map +1 -1
- package/esm/react-theme/utils/spacers.js +22 -7
- package/esm/react-theme/utils/spacers.js.map +1 -1
- package/esm/react-theme/utils/themeProps.js +22 -8
- package/esm/react-theme/utils/themeProps.js.map +1 -1
- package/esm/redux/_i18n/actions.js +3 -3
- package/esm/redux/_i18n/actions.js.map +1 -1
- package/esm/redux/_i18n/index.js +0 -1
- package/esm/redux/_i18n/index.js.map +1 -1
- package/esm/redux/_i18n/reducer.js +16 -13
- package/esm/redux/_i18n/reducer.js.map +1 -1
- package/esm/redux/_modularui/actions.js +48 -36
- package/esm/redux/_modularui/actions.js.map +1 -1
- package/esm/redux/_modularui/connector.js +18 -21
- package/esm/redux/_modularui/connector.js.map +1 -1
- package/esm/redux/_modularui/index.js +0 -1
- package/esm/redux/_modularui/index.js.map +1 -1
- package/esm/redux/_modularui/middleware.js +22 -8
- package/esm/redux/_modularui/middleware.js.map +1 -1
- package/esm/redux/_modularui/modularuiUtils.js +25 -10
- package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
- package/esm/redux/_modularui/reducer.js +39 -19
- package/esm/redux/_modularui/reducer.js.map +1 -1
- package/esm/redux/_modularui/selectors.js +62 -20
- package/esm/redux/_modularui/selectors.js.map +1 -1
- package/esm/redux/_modularui/withModularUI.js +3 -3
- package/esm/redux/_modularui/withModularUI.js.map +1 -1
- package/esm/redux/_router/actions.js +5 -7
- package/esm/redux/_router/actions.js.map +1 -1
- package/esm/redux/_router/connectors.js +14 -11
- package/esm/redux/_router/connectors.js.map +1 -1
- package/esm/redux/_router/index.js +0 -1
- package/esm/redux/_router/index.js.map +1 -1
- package/esm/redux/_router/middleware.js +1 -2
- package/esm/redux/_router/middleware.js.map +1 -1
- package/esm/redux/_router/reducer.js +3 -3
- package/esm/redux/_router/reducer.js.map +1 -1
- package/esm/redux/actions/Application.js +4 -2
- package/esm/redux/actions/Application.js.map +1 -1
- package/esm/redux/actions/Authorization.js +14 -8
- package/esm/redux/actions/Authorization.js.map +1 -1
- package/esm/redux/actions/Error.js +13 -5
- package/esm/redux/actions/Error.js.map +1 -1
- package/esm/redux/actions/Form.js +3 -2
- package/esm/redux/actions/Form.js.map +1 -1
- package/esm/redux/actions/FormAttributeSet.js +9 -1
- package/esm/redux/actions/FormAttributeSet.js.map +1 -1
- package/esm/redux/actions/FormAttributeSetRepeatable.js +3 -3
- package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/esm/redux/actions/FormAutosave.js +6 -4
- package/esm/redux/actions/FormAutosave.js.map +1 -1
- package/esm/redux/actions/FormAutosubmit.js +4 -1
- package/esm/redux/actions/FormAutosubmit.js.map +1 -1
- package/esm/redux/actions/FormValidations.js +7 -3
- package/esm/redux/actions/FormValidations.js.map +1 -1
- package/esm/redux/actions/Modals.js +1 -3
- package/esm/redux/actions/Modals.js.map +1 -1
- package/esm/redux/actions/Notification.js +10 -5
- package/esm/redux/actions/Notification.js.map +1 -1
- package/esm/redux/actions/Preferences.js +26 -14
- package/esm/redux/actions/Preferences.js.map +1 -1
- package/esm/redux/actions/ProgressIndicator.js +4 -5
- package/esm/redux/actions/ProgressIndicator.js.map +1 -1
- package/esm/redux/actions/SignIn.js +8 -5
- package/esm/redux/actions/SignIn.js.map +1 -1
- package/esm/redux/actions/SignOut.js +2 -2
- package/esm/redux/actions/SignOut.js.map +1 -1
- package/esm/redux/actions/index.js +0 -1
- package/esm/redux/actions/index.js.map +1 -1
- package/esm/redux/connectors/Application.js +1 -1
- package/esm/redux/connectors/Application.js.map +1 -1
- package/esm/redux/connectors/Breadcrumb.js +3 -2
- package/esm/redux/connectors/Breadcrumb.js.map +1 -1
- package/esm/redux/connectors/CaseView.js +1 -1
- package/esm/redux/connectors/CaseView.js.map +1 -1
- package/esm/redux/connectors/ConceptDetail.js +5 -2
- package/esm/redux/connectors/ConceptDetail.js.map +1 -1
- package/esm/redux/connectors/ContentBrowser.js +1 -1
- package/esm/redux/connectors/ContentBrowser.js.map +1 -1
- package/esm/redux/connectors/ContentDetail.js +5 -2
- package/esm/redux/connectors/ContentDetail.js.map +1 -1
- package/esm/redux/connectors/ContentDetailSection.js +5 -2
- package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
- package/esm/redux/connectors/Form.js +10 -3
- package/esm/redux/connectors/Form.js.map +1 -1
- package/esm/redux/connectors/FormAttributeSet.js +3 -2
- package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
- package/esm/redux/connectors/ListDetail.js +1 -1
- package/esm/redux/connectors/ListDetail.js.map +1 -1
- package/esm/redux/connectors/Modal.js +5 -1
- package/esm/redux/connectors/Modal.js.map +1 -1
- package/esm/redux/connectors/ModelCatalog.js +1 -1
- package/esm/redux/connectors/ModelCatalog.js.map +1 -1
- package/esm/redux/connectors/Notification.js +3 -2
- package/esm/redux/connectors/Notification.js.map +1 -1
- package/esm/redux/connectors/PanelRenderer.js +5 -1
- package/esm/redux/connectors/PanelRenderer.js.map +1 -1
- package/esm/redux/connectors/Preferences.js +4 -2
- package/esm/redux/connectors/Preferences.js.map +1 -1
- package/esm/redux/connectors/Progress.js +1 -2
- package/esm/redux/connectors/Progress.js.map +1 -1
- package/esm/redux/connectors/ProgressIndicator.js +3 -2
- package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
- package/esm/redux/connectors/QuickSearch.js +1 -2
- package/esm/redux/connectors/QuickSearch.js.map +1 -1
- package/esm/redux/connectors/SignIn.js +6 -3
- package/esm/redux/connectors/SignIn.js.map +1 -1
- package/esm/redux/connectors/SignOut.js +6 -4
- package/esm/redux/connectors/SignOut.js.map +1 -1
- package/esm/redux/connectors/Tab.js +1 -1
- package/esm/redux/connectors/Tab.js.map +1 -1
- package/esm/redux/connectors/index.js +0 -1
- package/esm/redux/connectors/index.js.map +1 -1
- package/esm/redux/index.js +7 -16
- package/esm/redux/index.js.map +1 -1
- package/esm/redux/reducers/AuthReducer.js +14 -13
- package/esm/redux/reducers/AuthReducer.js.map +1 -1
- package/esm/redux/reducers/ErrorReducer.js +4 -3
- package/esm/redux/reducers/ErrorReducer.js.map +1 -1
- package/esm/redux/reducers/ModalsReducer.js +15 -11
- package/esm/redux/reducers/ModalsReducer.js.map +1 -1
- package/esm/redux/reducers/NotificationReducer.js +8 -7
- package/esm/redux/reducers/NotificationReducer.js.map +1 -1
- package/esm/redux/reducers/PreferencesReducer.js +7 -7
- package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js +15 -11
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/esm/redux/reducers/createReducer.js +1 -1
- package/esm/redux/reducers/createReducer.js.map +1 -1
- package/esm/redux/reducers/index.js +0 -1
- package/esm/redux/reducers/index.js.map +1 -1
- package/esm/redux/selectors/i18n.js +4 -5
- package/esm/redux/selectors/i18n.js.map +1 -1
- package/esm/redux/selectors/index.js +0 -1
- package/esm/redux/selectors/index.js.map +1 -1
- package/esm/redux/store/beforeRenderHooks.js +1 -2
- package/esm/redux/store/beforeRenderHooks.js.map +1 -1
- package/esm/redux/store/configureStore.js +7 -3
- package/esm/redux/store/configureStore.js.map +1 -1
- package/esm/utils/browser/Cache.js +44 -17
- package/esm/utils/browser/Cache.js.map +1 -1
- package/esm/utils/browser/Cookies.js +9 -4
- package/esm/utils/browser/Cookies.js.map +1 -1
- package/esm/utils/datetime/DateTimeUtil.js +110 -53
- package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
- package/esm/utils/fetch/serverFetch.js +8 -2
- package/esm/utils/fetch/serverFetch.js.map +1 -1
- package/esm/utils/fetch/universalFetch.js +17 -6
- package/esm/utils/fetch/universalFetch.js.map +1 -1
- package/esm/utils/fetch/xhr.js +101 -42
- package/esm/utils/fetch/xhr.js.map +1 -1
- package/esm/utils/helpers/checkResource.js +6 -6
- package/esm/utils/helpers/checkResource.js.map +1 -1
- package/esm/utils/helpers/createHash.js +5 -3
- package/esm/utils/helpers/createHash.js.map +1 -1
- package/esm/utils/helpers/createUUID.js +1 -1
- package/esm/utils/helpers/createUUID.js.map +1 -1
- package/esm/utils/helpers/objects.js +8 -5
- package/esm/utils/helpers/objects.js.map +1 -1
- package/esm/utils/helpers/sanitizeHtml.js +9 -7
- package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
- package/esm/utils/helpers/text.js +3 -2
- package/esm/utils/helpers/text.js.map +1 -1
- package/esm/utils/index.js +3 -8
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/number/DecimalFormat.js +124 -43
- package/esm/utils/number/DecimalFormat.js.map +1 -1
- package/esm/utils/number/formatValue.js +18 -5
- package/esm/utils/number/formatValue.js.map +1 -1
- package/esm/utils/number/parseNumbers.js +17 -5
- package/esm/utils/number/parseNumbers.js.map +1 -1
- package/lib/builder/index.js +3 -0
- package/lib/builder/index.js.map +1 -1
- package/lib/builder/mergeLayoutHintConfigurations.js +13 -1
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/lib/constants/Constants.js +32 -25
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js +29 -9
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +38 -9
- package/lib/constants/Settings.js.map +1 -1
- package/lib/constants/index.js +7 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/exceptions/ConfigurationException.js +2 -0
- package/lib/exceptions/ConfigurationException.js.map +1 -1
- package/lib/exceptions/FetchException.js +27 -9
- package/lib/exceptions/FetchException.js.map +1 -1
- package/lib/exceptions/IllegalArgumentException.js +3 -0
- package/lib/exceptions/IllegalArgumentException.js.map +1 -1
- package/lib/exceptions/IllegalReturnException.js +3 -0
- package/lib/exceptions/IllegalReturnException.js.map +1 -1
- package/lib/exceptions/IllegalStateException.js +3 -0
- package/lib/exceptions/IllegalStateException.js.map +1 -1
- package/lib/exceptions/JsonParseException.js +3 -0
- package/lib/exceptions/JsonParseException.js.map +1 -1
- package/lib/exceptions/MissingPropertyException.js +3 -0
- package/lib/exceptions/MissingPropertyException.js.map +1 -1
- package/lib/exceptions/NetworkException.js +10 -1
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/NotAllowedUriException.js +3 -0
- package/lib/exceptions/NotAllowedUriException.js.map +1 -1
- package/lib/exceptions/NotFoundException.js +10 -1
- package/lib/exceptions/NotFoundException.js.map +1 -1
- package/lib/exceptions/ServerRequestException.js +3 -0
- package/lib/exceptions/ServerRequestException.js.map +1 -1
- package/lib/exceptions/ThemePropertyException.js +3 -0
- package/lib/exceptions/ThemePropertyException.js.map +1 -1
- package/lib/exceptions/TimeoutException.js +10 -1
- package/lib/exceptions/TimeoutException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js +9 -1
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/exceptions/UnsupportedOperationException.js +3 -0
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
- package/lib/exceptions/index.js +16 -0
- package/lib/exceptions/index.js.map +1 -1
- package/lib/hooks/index.js +33 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAllFormsOnModel.js +23 -0
- package/lib/hooks/useAllFormsOnModel.js.map +1 -1
- package/lib/hooks/useAuthentication.js +35 -8
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/hooks/useContent.js +16 -3
- package/lib/hooks/useContent.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js +12 -1
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/hooks/useForm.js +27 -3
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useI18n.js +15 -3
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModal.js +9 -0
- package/lib/hooks/useModal.js.map +1 -1
- package/lib/hooks/useModelCatalog.js +45 -9
- package/lib/hooks/useModelCatalog.js.map +1 -1
- package/lib/hooks/useModels.js +3 -0
- package/lib/hooks/useModels.js.map +1 -1
- package/lib/hooks/useModularUI.js +19 -6
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js +17 -2
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/hooks/useModularUIModel.js +39 -9
- package/lib/hooks/useModularUIModel.js.map +1 -1
- package/lib/hooks/useModularUIRequest.js +7 -1
- package/lib/hooks/useModularUIRequest.js.map +1 -1
- package/lib/hooks/useNotification.js +7 -1
- package/lib/hooks/useNotification.js.map +1 -1
- package/lib/hooks/usePreference.js +4 -0
- package/lib/hooks/usePreference.js.map +1 -1
- package/lib/hooks/useProgressIndicator.js +4 -2
- package/lib/hooks/useProgressIndicator.js.map +1 -1
- package/lib/hooks/useRouter.js +20 -6
- package/lib/hooks/useRouter.js.map +1 -1
- package/lib/i18n/Locale.js +44 -15
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js +44 -13
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js +8 -2
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/index.js +9 -0
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/languages.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/i18n/withMessage.js +10 -1
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/models/actions/ActionCollection.js +33 -12
- package/lib/models/actions/ActionCollection.js.map +1 -1
- package/lib/models/actions/ActionModel.js +68 -23
- package/lib/models/actions/ActionModel.js.map +1 -1
- package/lib/models/application/ApplicationModel.js +41 -14
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js +87 -27
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js +65 -23
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js +89 -32
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js +254 -101
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/AttributeSetModel.js +20 -5
- package/lib/models/attributes/AttributeSetModel.js.map +1 -1
- package/lib/models/attributes/BooleanAttributeModel.js +83 -29
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/lib/models/attributes/CaptchaAttributeModel.js +10 -3
- package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js +115 -38
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +84 -26
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +108 -34
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js +70 -23
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js +109 -40
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +159 -51
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/HelptextAttributeModel.js +20 -5
- package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/lib/models/attributes/LabelAttributeModel.js +11 -3
- package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
- package/lib/models/attributes/MemoAttributeModel.js +13 -4
- package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
- package/lib/models/attributes/MoneyAttributeModel.js +14 -4
- package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/lib/models/attributes/NumberAttributeModel.js +61 -21
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
- package/lib/models/attributes/PasswordAttributeModel.js +75 -23
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/lib/models/attributes/StringAttributeModel.js +79 -28
- package/lib/models/attributes/StringAttributeModel.js.map +1 -1
- package/lib/models/attributes/UploadAttributeModel.js +66 -21
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
- package/lib/models/attributes/XMLAttributeModel.js +16 -4
- package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
- package/lib/models/attributes/_createAttribute.js +41 -7
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js +19 -6
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js +15 -3
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js +19 -6
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +58 -16
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +22 -8
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +22 -8
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +27 -10
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +20 -7
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +26 -10
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js +14 -5
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +15 -6
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +25 -8
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +51 -17
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +44 -15
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +40 -15
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +20 -8
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +12 -5
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +18 -7
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +18 -7
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +24 -8
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js +57 -22
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js +19 -7
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +50 -13
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js +17 -6
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +18 -8
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +88 -30
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +19 -4
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +13 -3
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/base/BaseCollection.js +73 -26
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js +40 -14
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceCollection.js +6 -1
- package/lib/models/base/ResourceCollection.js.map +1 -1
- package/lib/models/base/ResourceModel.js +53 -21
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/caseview/CaseViewModel.js +54 -16
- package/lib/models/caseview/CaseViewModel.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js +44 -10
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptDetailModel.js +90 -32
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
- package/lib/models/concepts/ConceptIndexModel.js +42 -12
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
- package/lib/models/concepts/ConceptLinkModel.js +49 -16
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
- package/lib/models/concepts/ConceptRelationCollection.js +25 -6
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/lib/models/concepts/ConceptRelationModel.js +23 -8
- package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js +26 -11
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/lib/models/concepts/SourceReferenceCollection.js +11 -1
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js +22 -9
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/content/ContentIndexModel.js +44 -12
- package/lib/models/content/ContentIndexModel.js.map +1 -1
- package/lib/models/content/ContentLinkModel.js +61 -19
- package/lib/models/content/ContentLinkModel.js.map +1 -1
- package/lib/models/content/ContentModel.js +67 -21
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/ContentTOCModel.js +55 -17
- package/lib/models/content/ContentTOCModel.js.map +1 -1
- package/lib/models/content/ContentTypeModel.js +18 -7
- package/lib/models/content/ContentTypeModel.js.map +1 -1
- package/lib/models/content/SectionModel.js +62 -19
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js +51 -15
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js +25 -5
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +45 -10
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +17 -2
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +16 -4
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +37 -12
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/lib/models/detail/DetailModel.js +61 -21
- package/lib/models/detail/DetailModel.js.map +1 -1
- package/lib/models/error/ErrorCollection.js +35 -10
- package/lib/models/error/ErrorCollection.js.map +1 -1
- package/lib/models/error/ErrorModel.js +17 -6
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/error/ErrorResponse.js +96 -36
- package/lib/models/error/ErrorResponse.js.map +1 -1
- package/lib/models/filters/AssignmentFilterModel.js +45 -19
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js +60 -24
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/ConceptIndexFilterModel.js +9 -0
- package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/lib/models/filters/FilterCollection.js +55 -11
- package/lib/models/filters/FilterCollection.js.map +1 -1
- package/lib/models/filters/FilterModel.js +3 -0
- package/lib/models/filters/FilterModel.js.map +1 -1
- package/lib/models/filters/RangeFilterModel.js +10 -1
- package/lib/models/filters/RangeFilterModel.js.map +1 -1
- package/lib/models/form/FormModel.js +328 -135
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/form/FormObjectModel.js +144 -55
- package/lib/models/form/FormObjectModel.js.map +1 -1
- package/lib/models/grouping/GroupingModel.js +58 -20
- package/lib/models/grouping/GroupingModel.js.map +1 -1
- package/lib/models/href/Href.js +123 -47
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/href/ListHref.js +29 -11
- package/lib/models/href/ListHref.js.map +1 -1
- package/lib/models/index.js +97 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/layouthint/LayoutHintCollection.js +40 -8
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/lib/models/links/LinkCollection.js +51 -15
- package/lib/models/links/LinkCollection.js.map +1 -1
- package/lib/models/links/LinkModel.js +62 -20
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/normalizeLinkJSON.js +21 -5
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListDetailModel.js +84 -31
- package/lib/models/list/ListDetailModel.js.map +1 -1
- package/lib/models/list/ListHeaderModel.js +30 -10
- package/lib/models/list/ListHeaderModel.js.map +1 -1
- package/lib/models/list/ListItemCollection.js +24 -4
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/list/ListItemModel.js +29 -7
- package/lib/models/list/ListItemModel.js.map +1 -1
- package/lib/models/list/ListModel.js +123 -38
- package/lib/models/list/ListModel.js.map +1 -1
- package/lib/models/lookup/LookupOptionCollection.js +8 -2
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionsModel.js +19 -5
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
- package/lib/models/modelcatalog/ModelCatalogModel.js +17 -4
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/lib/models/paging/PagesizeModel.js +13 -4
- package/lib/models/paging/PagesizeModel.js.map +1 -1
- package/lib/models/paging/PagingModel.js +26 -10
- package/lib/models/paging/PagingModel.js.map +1 -1
- package/lib/models/panels/GroupingPanelModel.js +47 -14
- package/lib/models/panels/GroupingPanelModel.js.map +1 -1
- package/lib/models/parameter/Parameter.js +42 -13
- package/lib/models/parameter/Parameter.js.map +1 -1
- package/lib/models/process/ProcessStatusSettingsModel.js +29 -9
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/lib/models/resolveModel.js +33 -1
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/search/CaseSearchModel.js +12 -3
- package/lib/models/search/CaseSearchModel.js.map +1 -1
- package/lib/models/sorting/SortOptionModel.js +39 -13
- package/lib/models/sorting/SortOptionModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js +35 -8
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/tab/TabModel.js +48 -14
- package/lib/models/tab/TabModel.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupCollection.js +4 -0
- package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupModel.js +19 -6
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/lib/models/user/UserModel.js +12 -4
- package/lib/models/user/UserModel.js.map +1 -1
- package/lib/models/user/UserProfileModel.js +14 -2
- package/lib/models/user/UserProfileModel.js.map +1 -1
- package/lib/models/user/UserServicesModel.js +30 -11
- package/lib/models/user/UserServicesModel.js.map +1 -1
- package/lib/modularui/Authenticate.js +66 -20
- package/lib/modularui/Authenticate.js.map +1 -1
- package/lib/modularui/ModularUIError.js +7 -3
- package/lib/modularui/ModularUIError.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js +201 -77
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/ModularUIResponse.js +34 -13
- package/lib/modularui/ModularUIResponse.js.map +1 -1
- package/lib/modularui/index.js +4 -0
- package/lib/modularui/index.js.map +1 -1
- package/lib/react/ErrorBoundary.js +14 -2
- package/lib/react/ErrorBoundary.js.map +1 -1
- package/lib/react/ErrorBoundaryFallback.js +8 -1
- package/lib/react/ErrorBoundaryFallback.js.map +1 -1
- package/lib/react/index.js +5 -0
- package/lib/react/index.js.map +1 -1
- package/lib/react/utils.js +13 -2
- package/lib/react/utils.js.map +1 -1
- package/lib/react-client/Init.js +8 -0
- package/lib/react-client/Init.js.map +1 -1
- package/lib/react-client/client.js +49 -16
- package/lib/react-client/client.js.map +1 -1
- package/lib/react-client/contextPath.js +9 -2
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/index.js +4 -0
- package/lib/react-client/index.js.map +1 -1
- package/lib/react-client/rehydrate.js +23 -3
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/contextPath.js +2 -1
- package/lib/react-server/contextPath.js.map +1 -1
- package/lib/react-server/createSSRComplete.js +16 -2
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/htmlpage.js +16 -25
- package/lib/react-server/htmlpage.js.map +1 -1
- package/lib/react-server/index.js +12 -0
- package/lib/react-server/index.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js +16 -3
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js +10 -0
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/requestInformation.js +28 -8
- package/lib/react-server/requestInformation.js.flow +8 -3
- package/lib/react-server/requestInformation.js.map +1 -1
- package/lib/react-server/serverNoSSR.js +14 -2
- package/lib/react-server/serverNoSSR.js.map +1 -1
- package/lib/react-server/serverSSR.js +8 -0
- package/lib/react-server/serverSSR.js.map +1 -1
- package/lib/react-server/serverUtil.js +60 -13
- package/lib/react-server/serverUtil.js.map +1 -1
- package/lib/react-theme/ThemeProvider.js +6 -0
- package/lib/react-theme/ThemeProvider.js.map +1 -1
- package/lib/react-theme/createTheme.js +23 -7
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/react-theme/index.js +18 -0
- package/lib/react-theme/index.js.map +1 -1
- package/lib/react-theme/useTheme.js +3 -0
- package/lib/react-theme/useTheme.js.map +1 -1
- package/lib/react-theme/utils/background.js +5 -1
- package/lib/react-theme/utils/background.js.map +1 -1
- package/lib/react-theme/utils/colors.js +12 -2
- package/lib/react-theme/utils/colors.js.map +1 -1
- package/lib/react-theme/utils/contrast.js +35 -7
- package/lib/react-theme/utils/contrast.js.map +1 -1
- package/lib/react-theme/utils/corners.js +14 -3
- package/lib/react-theme/utils/corners.js.map +1 -1
- package/lib/react-theme/utils/spacers.js +30 -6
- package/lib/react-theme/utils/spacers.js.map +1 -1
- package/lib/react-theme/utils/themeProps.js +35 -7
- package/lib/react-theme/utils/themeProps.js.map +1 -1
- package/lib/redux/_i18n/actions.js +8 -2
- package/lib/redux/_i18n/actions.js.map +1 -1
- package/lib/redux/_i18n/index.js +5 -0
- package/lib/redux/_i18n/index.js.map +1 -1
- package/lib/redux/_i18n/reducer.js +21 -12
- package/lib/redux/_i18n/reducer.js.map +1 -1
- package/lib/redux/_modularui/actions.js +69 -36
- package/lib/redux/_modularui/actions.js.map +1 -1
- package/lib/redux/_modularui/connector.js +28 -20
- package/lib/redux/_modularui/connector.js.map +1 -1
- package/lib/redux/_modularui/index.js +14 -0
- package/lib/redux/_modularui/index.js.map +1 -1
- package/lib/redux/_modularui/middleware.js +28 -8
- package/lib/redux/_modularui/middleware.js.map +1 -1
- package/lib/redux/_modularui/modularuiUtils.js +36 -10
- package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
- package/lib/redux/_modularui/reducer.js +45 -19
- package/lib/redux/_modularui/reducer.js.map +1 -1
- package/lib/redux/_modularui/selectors.js +97 -20
- package/lib/redux/_modularui/selectors.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js +11 -2
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/actions.js +16 -5
- package/lib/redux/_router/actions.js.map +1 -1
- package/lib/redux/_router/connectors.js +15 -10
- package/lib/redux/_router/connectors.js.map +1 -1
- package/lib/redux/_router/index.js +9 -0
- package/lib/redux/_router/index.js.map +1 -1
- package/lib/redux/_router/middleware.js +2 -0
- package/lib/redux/_router/middleware.js.map +1 -1
- package/lib/redux/_router/reducer.js +4 -2
- package/lib/redux/_router/reducer.js.map +1 -1
- package/lib/redux/actions/Application.js +8 -1
- package/lib/redux/actions/Application.js.map +1 -1
- package/lib/redux/actions/Authorization.js +25 -6
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js +24 -4
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/Form.js +12 -1
- package/lib/redux/actions/Form.js.map +1 -1
- package/lib/redux/actions/FormAttributeSet.js +14 -0
- package/lib/redux/actions/FormAttributeSet.js.map +1 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js +8 -2
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/lib/redux/actions/FormAutosave.js +12 -3
- package/lib/redux/actions/FormAutosave.js.map +1 -1
- package/lib/redux/actions/FormAutosubmit.js +6 -0
- package/lib/redux/actions/FormAutosubmit.js.map +1 -1
- package/lib/redux/actions/FormValidations.js +13 -2
- package/lib/redux/actions/FormValidations.js.map +1 -1
- package/lib/redux/actions/Modals.js +4 -1
- package/lib/redux/actions/Modals.js.map +1 -1
- package/lib/redux/actions/Notification.js +19 -4
- package/lib/redux/actions/Notification.js.map +1 -1
- package/lib/redux/actions/Preferences.js +44 -13
- package/lib/redux/actions/Preferences.js.map +1 -1
- package/lib/redux/actions/ProgressIndicator.js +11 -3
- package/lib/redux/actions/ProgressIndicator.js.map +1 -1
- package/lib/redux/actions/SignIn.js +28 -5
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/SignOut.js +9 -1
- package/lib/redux/actions/SignOut.js.map +1 -1
- package/lib/redux/actions/index.js +31 -0
- package/lib/redux/actions/index.js.map +1 -1
- package/lib/redux/connectors/Application.js +2 -0
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js +4 -1
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js +2 -0
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js +7 -1
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js +2 -0
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js +7 -1
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js +8 -1
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js +19 -2
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js +5 -1
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js +3 -0
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js +7 -1
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js +2 -0
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js +4 -1
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js +7 -0
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js +5 -1
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js +4 -1
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js +3 -1
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js +7 -1
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js +8 -2
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js +8 -3
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js +2 -0
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/connectors/index.js +21 -0
- package/lib/redux/connectors/index.js.map +1 -1
- package/lib/redux/index.js +17 -0
- package/lib/redux/index.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js +14 -12
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js +4 -2
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js +18 -11
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js +8 -6
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js +7 -6
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js +15 -10
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/reducers/createReducer.js +11 -0
- package/lib/redux/reducers/createReducer.js.map +1 -1
- package/lib/redux/reducers/index.js +10 -0
- package/lib/redux/reducers/index.js.map +1 -1
- package/lib/redux/selectors/i18n.js +7 -3
- package/lib/redux/selectors/i18n.js.map +1 -1
- package/lib/redux/selectors/index.js +3 -0
- package/lib/redux/selectors/index.js.map +1 -1
- package/lib/redux/store/beforeRenderHooks.js +2 -0
- package/lib/redux/store/beforeRenderHooks.js.map +1 -1
- package/lib/redux/store/configureStore.js +13 -2
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/utils/browser/Cache.js +49 -16
- package/lib/utils/browser/Cache.js.map +1 -1
- package/lib/utils/browser/Cookies.js +14 -3
- package/lib/utils/browser/Cookies.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js +115 -52
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/fetch/serverFetch.js +13 -2
- package/lib/utils/fetch/serverFetch.js.map +1 -1
- package/lib/utils/fetch/universalFetch.js +25 -6
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js +111 -42
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/checkResource.js +11 -5
- package/lib/utils/helpers/checkResource.js.map +1 -1
- package/lib/utils/helpers/createHash.js +6 -1
- package/lib/utils/helpers/createHash.js.map +1 -1
- package/lib/utils/helpers/createUUID.js +2 -0
- package/lib/utils/helpers/createUUID.js.map +1 -1
- package/lib/utils/helpers/objects.js +15 -3
- package/lib/utils/helpers/objects.js.map +1 -1
- package/lib/utils/helpers/sanitizeHtml.js +13 -6
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
- package/lib/utils/helpers/text.js +4 -0
- package/lib/utils/helpers/text.js.map +1 -1
- package/lib/utils/index.js +25 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js +121 -43
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/formatValue.js +22 -3
- package/lib/utils/number/formatValue.js.map +1 -1
- package/lib/utils/number/parseNumbers.js +19 -3
- package/lib/utils/number/parseNumbers.js.map +1 -1
- package/package.json +29 -29
- package/src/react-server/requestInformation.js +8 -3
|
@@ -8,31 +8,39 @@ import { hasAllContentInData } from "../../constants/Settings";
|
|
|
8
8
|
import SectionModel from "../content/SectionModel";
|
|
9
9
|
import LayoutHintCollection from "../layouthint/LayoutHintCollection";
|
|
10
10
|
import { isPlainObject } from "../../utils";
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
*/
|
|
13
14
|
class AttributeContent {
|
|
14
15
|
constructor(content) {
|
|
15
16
|
_defineProperty(this, "_content", void 0);
|
|
17
|
+
|
|
16
18
|
this._content = content;
|
|
17
19
|
}
|
|
18
|
-
|
|
19
20
|
/**
|
|
20
21
|
*/
|
|
22
|
+
|
|
23
|
+
|
|
21
24
|
get fromData() {
|
|
22
25
|
return hasAllContentInData();
|
|
23
26
|
}
|
|
24
|
-
|
|
25
27
|
/**
|
|
26
28
|
*/
|
|
29
|
+
|
|
30
|
+
|
|
27
31
|
get header() {
|
|
28
32
|
var _this$_content, _this$_content$header, _this$_content2, _this$_content2$heade;
|
|
33
|
+
|
|
29
34
|
let headerLabel = null;
|
|
30
35
|
let headerDescription = null;
|
|
31
36
|
const label = (_this$_content = this._content) === null || _this$_content === void 0 ? void 0 : (_this$_content$header = _this$_content.header) === null || _this$_content$header === void 0 ? void 0 : _this$_content$header.label;
|
|
37
|
+
|
|
32
38
|
if (label) {
|
|
33
39
|
headerLabel = label;
|
|
34
40
|
}
|
|
41
|
+
|
|
35
42
|
const description = (_this$_content2 = this._content) === null || _this$_content2 === void 0 ? void 0 : (_this$_content2$heade = _this$_content2.header) === null || _this$_content2$heade === void 0 ? void 0 : _this$_content2$heade.description;
|
|
43
|
+
|
|
36
44
|
if (description) {
|
|
37
45
|
if (isPlainObject(description) && "message" in description) {
|
|
38
46
|
headerDescription = description.message;
|
|
@@ -40,18 +48,22 @@ class AttributeContent {
|
|
|
40
48
|
headerDescription = description;
|
|
41
49
|
}
|
|
42
50
|
}
|
|
51
|
+
|
|
43
52
|
return {
|
|
44
53
|
label: headerLabel,
|
|
45
54
|
description: headerDescription
|
|
46
55
|
};
|
|
47
56
|
}
|
|
48
|
-
|
|
49
57
|
/**
|
|
50
58
|
*/
|
|
59
|
+
|
|
60
|
+
|
|
51
61
|
get elements() {
|
|
52
62
|
var _this$_content3;
|
|
63
|
+
|
|
53
64
|
if ((_this$_content3 = this._content) !== null && _this$_content3 !== void 0 && _this$_content3.elements) {
|
|
54
65
|
var _context, _context2;
|
|
66
|
+
|
|
55
67
|
return _mapInstanceProperty(_context = _filterInstanceProperty(_context2 = this._content.elements).call(_context2, element => element !== null)).call(_context, element => {
|
|
56
68
|
if (element.propertyElement) {
|
|
57
69
|
const {
|
|
@@ -67,6 +79,7 @@ class AttributeContent {
|
|
|
67
79
|
}
|
|
68
80
|
};
|
|
69
81
|
}
|
|
82
|
+
|
|
70
83
|
if (element.textFragmentElement) {
|
|
71
84
|
const {
|
|
72
85
|
label,
|
|
@@ -77,13 +90,13 @@ class AttributeContent {
|
|
|
77
90
|
textFragmentElement: {
|
|
78
91
|
label,
|
|
79
92
|
layouthint: new LayoutHintCollection(layouthint),
|
|
80
|
-
textfragments: _mapInstanceProperty(textfragments).call(textfragments, textfragment => ({
|
|
81
|
-
...textfragment,
|
|
93
|
+
textfragments: _mapInstanceProperty(textfragments).call(textfragments, textfragment => ({ ...textfragment,
|
|
82
94
|
text: retrieveText(textfragment.text)
|
|
83
95
|
}))
|
|
84
96
|
}
|
|
85
97
|
};
|
|
86
98
|
}
|
|
99
|
+
|
|
87
100
|
if (element.contentElement) {
|
|
88
101
|
const {
|
|
89
102
|
label,
|
|
@@ -97,103 +110,123 @@ class AttributeContent {
|
|
|
97
110
|
sections: _mapInstanceProperty(sections).call(sections, section => new SectionModel(section, null))
|
|
98
111
|
}
|
|
99
112
|
};
|
|
100
|
-
}
|
|
113
|
+
} // $FlowIssue
|
|
114
|
+
|
|
101
115
|
|
|
102
|
-
// $FlowIssue
|
|
103
116
|
return element;
|
|
104
117
|
});
|
|
105
118
|
}
|
|
119
|
+
|
|
106
120
|
return [];
|
|
107
121
|
}
|
|
108
|
-
|
|
109
122
|
/**
|
|
110
123
|
*/
|
|
124
|
+
|
|
125
|
+
|
|
111
126
|
get label() {
|
|
112
127
|
var _this$_content4;
|
|
128
|
+
|
|
113
129
|
return (_this$_content4 = this._content) === null || _this$_content4 === void 0 ? void 0 : _this$_content4.label;
|
|
114
130
|
}
|
|
115
|
-
|
|
116
131
|
/**
|
|
117
132
|
*/
|
|
133
|
+
|
|
134
|
+
|
|
118
135
|
getContentElements(elementName) {
|
|
119
136
|
var _context3;
|
|
137
|
+
|
|
120
138
|
// $FlowIssue incompatible-return
|
|
121
139
|
return _filterInstanceProperty(_context3 = this.elements).call(_context3, element => elementName in element);
|
|
122
140
|
}
|
|
123
|
-
|
|
124
141
|
/**
|
|
125
142
|
*/
|
|
143
|
+
|
|
144
|
+
|
|
126
145
|
getContentElementCollections(elementName, collectionName) {
|
|
127
146
|
var _context4, _context5;
|
|
147
|
+
|
|
128
148
|
return _flatInstanceProperty(_context4 = _mapInstanceProperty(_context5 = this.getContentElements(elementName)).call(_context5, element => element[elementName][collectionName])).call(_context4);
|
|
129
149
|
}
|
|
130
|
-
|
|
131
150
|
/**
|
|
132
151
|
*/
|
|
152
|
+
|
|
153
|
+
|
|
133
154
|
getContentElementCollectionByLabels(elementName, collectionName, labels) {
|
|
134
155
|
var _context6, _context7, _context8;
|
|
135
|
-
|
|
136
|
-
// $FlowIssue incompatible-use
|
|
137
|
-
).call(_context8, element => _includesInstanceProperty(labels).call(labels, element[elementName].label))
|
|
138
|
-
// $FlowIssue incompatible-use
|
|
156
|
+
|
|
157
|
+
return _flatInstanceProperty(_context6 = _mapInstanceProperty(_context7 = _filterInstanceProperty(_context8 = this.getContentElements(elementName) // $FlowIssue incompatible-use
|
|
158
|
+
).call(_context8, element => _includesInstanceProperty(labels).call(labels, element[elementName].label)) // $FlowIssue incompatible-use
|
|
139
159
|
).call(_context7, element => element[elementName][collectionName])).call(_context6);
|
|
140
160
|
}
|
|
141
|
-
|
|
142
161
|
/**
|
|
143
162
|
*/
|
|
163
|
+
|
|
164
|
+
|
|
144
165
|
get properties() {
|
|
145
166
|
return this.getContentElementCollections("propertyElement", "properties");
|
|
146
167
|
}
|
|
147
|
-
|
|
148
168
|
/**
|
|
149
169
|
* Get concept properties by property element label
|
|
150
170
|
*/
|
|
171
|
+
|
|
172
|
+
|
|
151
173
|
getConceptPropertiesByLabels(labels) {
|
|
152
174
|
return this.getContentElementCollectionByLabels("propertyElement", "properties", labels);
|
|
153
175
|
}
|
|
154
|
-
|
|
155
176
|
/**
|
|
156
177
|
*/
|
|
178
|
+
|
|
179
|
+
|
|
157
180
|
get textfragments() {
|
|
158
181
|
return this.getContentElementCollections("textFragmentElement", "textfragments");
|
|
159
182
|
}
|
|
160
|
-
|
|
161
183
|
/**
|
|
162
184
|
* Get concept text fragments by text fragment element label
|
|
163
185
|
*/
|
|
186
|
+
|
|
187
|
+
|
|
164
188
|
getTextFragmentsByLabels(labels) {
|
|
165
189
|
return this.getContentElementCollectionByLabels("textFragmentElement", "textfragments", labels);
|
|
166
190
|
}
|
|
167
|
-
|
|
168
191
|
/**
|
|
169
192
|
*/
|
|
193
|
+
|
|
194
|
+
|
|
170
195
|
get sections() {
|
|
171
196
|
return this.getContentElementCollections("contentElement", "sections");
|
|
172
197
|
}
|
|
173
|
-
|
|
174
198
|
/**
|
|
175
199
|
*/
|
|
200
|
+
|
|
201
|
+
|
|
176
202
|
getSectionsByType(types) {
|
|
177
203
|
var _context9;
|
|
204
|
+
|
|
178
205
|
return _filterInstanceProperty(_context9 = this.sections).call(_context9, section => _includesInstanceProperty(types).call(types, section.type));
|
|
179
206
|
}
|
|
180
|
-
|
|
181
207
|
/**
|
|
182
208
|
* Get concept text fragments by text fragment element label
|
|
183
209
|
*/
|
|
210
|
+
|
|
211
|
+
|
|
184
212
|
getSectionsByLabels(labels) {
|
|
185
213
|
return this.getContentElementCollectionByLabels("contentElement", "sections", labels);
|
|
186
214
|
}
|
|
187
|
-
|
|
188
215
|
/**
|
|
189
216
|
*/
|
|
217
|
+
|
|
218
|
+
|
|
190
219
|
getReferredSections() {
|
|
191
220
|
const referredSections = [];
|
|
221
|
+
|
|
192
222
|
for (const section of this.sections) {
|
|
193
223
|
referredSections.push(...section.getReferredSections());
|
|
194
224
|
}
|
|
225
|
+
|
|
195
226
|
return referredSections;
|
|
196
227
|
}
|
|
228
|
+
|
|
197
229
|
}
|
|
230
|
+
|
|
198
231
|
export default AttributeContent;
|
|
199
232
|
//# sourceMappingURL=AttributeContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttributeContent.js","names":["retrieveText","hasAllContentInData","SectionModel","LayoutHintCollection","isPlainObject","AttributeContent","constructor","content","_content","fromData","header","headerLabel","headerDescription","label","description","message","elements","element","propertyElement","layouthint","properties","textFragmentElement","textfragments","textfragment","text","contentElement","sections","section","getContentElements","elementName","getContentElementCollections","collectionName","getContentElementCollectionByLabels","labels","getConceptPropertiesByLabels","getTextFragmentsByLabels","getSectionsByType","types","type","getSectionsByLabels","getReferredSections","referredSections","push"],"sources":["../../../src/models/attributes/AttributeContent.js"],"sourcesContent":["// @flow\nimport { retrieveText } from \"../../utils/helpers/text\";\nimport { hasAllContentInData } from \"../../constants/Settings\";\nimport SectionModel from \"../content/SectionModel\";\n\nimport LayoutHintCollection from \"../layouthint/LayoutHintCollection\";\nimport { isPlainObject } from \"../../utils\";\n\nimport type {\n ContentData,\n ContentElementMapped,\n PropertyData,\n PropertyElementMapped,\n TextFragmentData,\n TextFragmentElementMapped,\n ContentAll,\n} from \"../types\";\nimport type SubSectionModel from \"../content/SubSectionModel\";\n\n/**\n */\nclass AttributeContent {\n _content: ?ContentData;\n\n constructor(content: ?ContentData) {\n this._content = content;\n }\n\n /**\n */\n get fromData(): boolean {\n return hasAllContentInData();\n }\n\n /**\n */\n get header(): {\n label: ?string,\n description: ?string,\n } {\n let headerLabel = null;\n let headerDescription = null;\n\n const label = this._content?.header?.label;\n if (label) {\n headerLabel = label;\n }\n\n const description = this._content?.header?.description;\n if (description) {\n if (isPlainObject(description) && \"message\" in description) {\n headerDescription = description.message;\n } else if (typeof description === \"string\") {\n headerDescription = description;\n }\n }\n\n return { label: headerLabel, description: headerDescription };\n }\n\n /**\n */\n get elements(): ContentAll {\n if (this._content?.elements) {\n return this._content.elements\n .filter((element) => element !== null)\n .map((element) => {\n if (element.propertyElement) {\n const { label, layouthint, properties } = element.propertyElement;\n\n return {\n propertyElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n properties,\n },\n };\n }\n\n if (element.textFragmentElement) {\n const { label, layouthint, textfragments } =\n element.textFragmentElement;\n return {\n textFragmentElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n textfragments: textfragments.map((textfragment) => ({\n ...textfragment,\n text: retrieveText(textfragment.text),\n })),\n },\n };\n }\n\n if (element.contentElement) {\n const { label, layouthint, sections } = element.contentElement;\n return {\n contentElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n sections: sections.map(\n (section) => new SectionModel(section, null)\n ),\n },\n };\n }\n\n // $FlowIssue\n return element;\n });\n }\n\n return [];\n }\n\n /**\n */\n get label(): ?string {\n return this._content?.label;\n }\n\n /**\n */\n getContentElements<T>(elementName: string): Array<T> {\n // $FlowIssue incompatible-return\n return this.elements.filter((element) => elementName in element);\n }\n\n /**\n */\n getContentElementCollections<T>(\n elementName: string,\n collectionName: string\n ): Array<T> {\n return this.getContentElements(elementName)\n .map((element) => element[elementName][collectionName])\n .flat();\n }\n\n /**\n */\n getContentElementCollectionByLabels<T, U>(\n elementName: string,\n collectionName: string,\n labels: Array<string>\n ): Array<U> {\n return (\n this.getContentElements<T>(elementName)\n // $FlowIssue incompatible-use\n .filter((element) => labels.includes(element[elementName].label))\n // $FlowIssue incompatible-use\n .map((element) => element[elementName][collectionName])\n .flat()\n );\n }\n\n /**\n */\n get properties(): Array<PropertyData> {\n return this.getContentElementCollections<PropertyData>(\n \"propertyElement\",\n \"properties\"\n );\n }\n\n /**\n * Get concept properties by property element label\n */\n getConceptPropertiesByLabels(labels: Array<string>): Array<PropertyData> {\n return this.getContentElementCollectionByLabels<\n PropertyElementMapped,\n PropertyData\n >(\"propertyElement\", \"properties\", labels);\n }\n\n /**\n */\n get textfragments(): Array<TextFragmentData> {\n return this.getContentElementCollections<TextFragmentData>(\n \"textFragmentElement\",\n \"textfragments\"\n );\n }\n\n /**\n * Get concept text fragments by text fragment element label\n */\n getTextFragmentsByLabels(labels: Array<string>): Array<TextFragmentData> {\n return this.getContentElementCollectionByLabels<\n TextFragmentElementMapped,\n TextFragmentData\n >(\"textFragmentElement\", \"textfragments\", labels);\n }\n\n /**\n */\n get sections(): Array<SectionModel> {\n return this.getContentElementCollections<SectionModel>(\n \"contentElement\",\n \"sections\"\n );\n }\n\n /**\n */\n getSectionsByType(types: Array<string>): Array<SectionModel> {\n return this.sections.filter((section) => types.includes(section.type));\n }\n\n /**\n * Get concept text fragments by text fragment element label\n */\n getSectionsByLabels(labels: Array<string>): Array<SectionModel> {\n return this.getContentElementCollectionByLabels<\n ContentElementMapped,\n SectionModel\n >(\"contentElement\", \"sections\", labels);\n }\n\n /**\n */\n getReferredSections(): Array<SectionModel | SubSectionModel> {\n const referredSections = [];\n\n for (const section of this.sections) {\n referredSections.push(...section.getReferredSections());\n }\n\n return referredSections;\n }\n}\n\nexport default AttributeContent;\n"],"mappings":";;;;;AACA,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EACH;;EAEA;AACF;EACEM,iBAAiB,CAACC,KAAoB,EAAuB;IAAA;IAC3D,OAAO,wCAAI,CAACX,QAAQ,kBAASC,OAAO,IAAK,0BAAAU,KAAK,OAALA,KAAK,EAAUV,OAAO,CAACW,IAAI,CAAC,CAAC;EACxE;;EAEA;AACF;AACA;EACEC,mBAAmB,CAACN,MAAqB,EAAuB;IAC9D,OAAO,IAAI,CAACD,mCAAmC,CAG7C,gBAAgB,EAAE,UAAU,EAAEC,MAAM,CAAC;EACzC;;EAEA;AACF;EACEO,mBAAmB,GAA0C;IAC3D,MAAMC,gBAAgB,GAAG,EAAE;IAE3B,KAAK,MAAMd,OAAO,IAAI,IAAI,CAACD,QAAQ,EAAE;MACnCe,gBAAgB,CAACC,IAAI,CAAC,GAAGf,OAAO,CAACa,mBAAmB,EAAE,CAAC;IACzD;IAEA,OAAOC,gBAAgB;EACzB;AACF;AAEA,eAAepC,gBAAgB"}
|
|
1
|
+
{"version":3,"file":"AttributeContent.js","names":["retrieveText","hasAllContentInData","SectionModel","LayoutHintCollection","isPlainObject","AttributeContent","constructor","content","_content","fromData","header","headerLabel","headerDescription","label","description","message","elements","element","propertyElement","layouthint","properties","textFragmentElement","textfragments","textfragment","text","contentElement","sections","section","getContentElements","elementName","getContentElementCollections","collectionName","getContentElementCollectionByLabels","labels","getConceptPropertiesByLabels","getTextFragmentsByLabels","getSectionsByType","types","type","getSectionsByLabels","getReferredSections","referredSections","push"],"sources":["../../../src/models/attributes/AttributeContent.js"],"sourcesContent":["// @flow\nimport { retrieveText } from \"../../utils/helpers/text\";\nimport { hasAllContentInData } from \"../../constants/Settings\";\nimport SectionModel from \"../content/SectionModel\";\n\nimport LayoutHintCollection from \"../layouthint/LayoutHintCollection\";\nimport { isPlainObject } from \"../../utils\";\n\nimport type {\n ContentData,\n ContentElementMapped,\n PropertyData,\n PropertyElementMapped,\n TextFragmentData,\n TextFragmentElementMapped,\n ContentAll,\n} from \"../types\";\nimport type SubSectionModel from \"../content/SubSectionModel\";\n\n/**\n */\nclass AttributeContent {\n _content: ?ContentData;\n\n constructor(content: ?ContentData) {\n this._content = content;\n }\n\n /**\n */\n get fromData(): boolean {\n return hasAllContentInData();\n }\n\n /**\n */\n get header(): {\n label: ?string,\n description: ?string,\n } {\n let headerLabel = null;\n let headerDescription = null;\n\n const label = this._content?.header?.label;\n if (label) {\n headerLabel = label;\n }\n\n const description = this._content?.header?.description;\n if (description) {\n if (isPlainObject(description) && \"message\" in description) {\n headerDescription = description.message;\n } else if (typeof description === \"string\") {\n headerDescription = description;\n }\n }\n\n return { label: headerLabel, description: headerDescription };\n }\n\n /**\n */\n get elements(): ContentAll {\n if (this._content?.elements) {\n return this._content.elements\n .filter((element) => element !== null)\n .map((element) => {\n if (element.propertyElement) {\n const { label, layouthint, properties } = element.propertyElement;\n\n return {\n propertyElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n properties,\n },\n };\n }\n\n if (element.textFragmentElement) {\n const { label, layouthint, textfragments } =\n element.textFragmentElement;\n return {\n textFragmentElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n textfragments: textfragments.map((textfragment) => ({\n ...textfragment,\n text: retrieveText(textfragment.text),\n })),\n },\n };\n }\n\n if (element.contentElement) {\n const { label, layouthint, sections } = element.contentElement;\n return {\n contentElement: {\n label,\n layouthint: new LayoutHintCollection(layouthint),\n sections: sections.map(\n (section) => new SectionModel(section, null)\n ),\n },\n };\n }\n\n // $FlowIssue\n return element;\n });\n }\n\n return [];\n }\n\n /**\n */\n get label(): ?string {\n return this._content?.label;\n }\n\n /**\n */\n getContentElements<T>(elementName: string): Array<T> {\n // $FlowIssue incompatible-return\n return this.elements.filter((element) => elementName in element);\n }\n\n /**\n */\n getContentElementCollections<T>(\n elementName: string,\n collectionName: string\n ): Array<T> {\n return this.getContentElements(elementName)\n .map((element) => element[elementName][collectionName])\n .flat();\n }\n\n /**\n */\n getContentElementCollectionByLabels<T, U>(\n elementName: string,\n collectionName: string,\n labels: Array<string>\n ): Array<U> {\n return (\n this.getContentElements<T>(elementName)\n // $FlowIssue incompatible-use\n .filter((element) => labels.includes(element[elementName].label))\n // $FlowIssue incompatible-use\n .map((element) => element[elementName][collectionName])\n .flat()\n );\n }\n\n /**\n */\n get properties(): Array<PropertyData> {\n return this.getContentElementCollections<PropertyData>(\n \"propertyElement\",\n \"properties\"\n );\n }\n\n /**\n * Get concept properties by property element label\n */\n getConceptPropertiesByLabels(labels: Array<string>): Array<PropertyData> {\n return this.getContentElementCollectionByLabels<\n PropertyElementMapped,\n PropertyData\n >(\"propertyElement\", \"properties\", labels);\n }\n\n /**\n */\n get textfragments(): Array<TextFragmentData> {\n return this.getContentElementCollections<TextFragmentData>(\n \"textFragmentElement\",\n \"textfragments\"\n );\n }\n\n /**\n * Get concept text fragments by text fragment element label\n */\n getTextFragmentsByLabels(labels: Array<string>): Array<TextFragmentData> {\n return this.getContentElementCollectionByLabels<\n TextFragmentElementMapped,\n TextFragmentData\n >(\"textFragmentElement\", \"textfragments\", labels);\n }\n\n /**\n */\n get sections(): Array<SectionModel> {\n return this.getContentElementCollections<SectionModel>(\n \"contentElement\",\n \"sections\"\n );\n }\n\n /**\n */\n getSectionsByType(types: Array<string>): Array<SectionModel> {\n return this.sections.filter((section) => types.includes(section.type));\n }\n\n /**\n * Get concept text fragments by text fragment element label\n */\n getSectionsByLabels(labels: Array<string>): Array<SectionModel> {\n return this.getContentElementCollectionByLabels<\n ContentElementMapped,\n SectionModel\n >(\"contentElement\", \"sections\", labels);\n }\n\n /**\n */\n getReferredSections(): Array<SectionModel | SubSectionModel> {\n const referredSections = [];\n\n for (const section of this.sections) {\n referredSections.push(...section.getReferredSections());\n }\n\n return referredSections;\n }\n}\n\nexport default AttributeContent;\n"],"mappings":";;;;;AACA,SAASA,YAAT,QAA6B,0BAA7B;AACA,SAASC,mBAAT,QAAoC,0BAApC;AACA,OAAOC,YAAP,MAAyB,yBAAzB;AAEA,OAAOC,oBAAP,MAAiC,oCAAjC;AACA,S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EACD;EAED;AACF;AACA;;;EACEC,mBAAmB,CAACN,MAAD,EAA6C;IAC9D,OAAO,KAAKD,mCAAL,CAGL,gBAHK,EAGa,UAHb,EAGyBC,MAHzB,CAAP;EAID;EAED;AACF;;;EACEO,mBAAmB,GAA0C;IAC3D,MAAMC,gBAAgB,GAAG,EAAzB;;IAEA,KAAK,MAAMd,OAAX,IAAsB,KAAKD,QAA3B,EAAqC;MACnCe,gBAAgB,CAACC,IAAjB,CAAsB,GAAGf,OAAO,CAACa,mBAAR,EAAzB;IACD;;IAED,OAAOC,gBAAP;EACD;;AAhNoB;;AAmNvB,eAAepC,gBAAf"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
2
|
import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
|
|
3
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
3
4
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
4
5
|
import _valuesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/values";
|
|
5
6
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
@@ -7,22 +8,27 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
|
7
8
|
import cloneDeep from "lodash/cloneDeep";
|
|
8
9
|
import pick from "lodash/pick";
|
|
9
10
|
import { has, isPlainObject } from "../../utils/helpers/objects";
|
|
10
|
-
|
|
11
11
|
/**
|
|
12
12
|
* This util helps to normalize various attribute data formats available in the modular ui.
|
|
13
13
|
* It fixes differences in choice attributes with dynamic schema's, links on download attributes, composites with various children, etc
|
|
14
14
|
*
|
|
15
15
|
* @private
|
|
16
16
|
*/
|
|
17
|
+
|
|
17
18
|
class AttributeDataHelper {
|
|
18
19
|
/**
|
|
19
20
|
*/
|
|
20
21
|
constructor(data, key, childrenKeys) {
|
|
21
22
|
_defineProperty(this, "_key", void 0);
|
|
23
|
+
|
|
22
24
|
_defineProperty(this, "_attribute", void 0);
|
|
25
|
+
|
|
23
26
|
_defineProperty(this, "_value", void 0);
|
|
27
|
+
|
|
24
28
|
_defineProperty(this, "_children", void 0);
|
|
29
|
+
|
|
25
30
|
this._key = key;
|
|
31
|
+
|
|
26
32
|
if (Array.isArray(data)) {
|
|
27
33
|
this._attribute = _findInstanceProperty(data).call(data, attr => attr.elementid === key || attr.name === key || attr.param === key) || {};
|
|
28
34
|
this._value = this.getValue(this._attribute);
|
|
@@ -30,208 +36,250 @@ class AttributeDataHelper {
|
|
|
30
36
|
const attributeData = cloneDeep(data);
|
|
31
37
|
attributeData._links = pick(data._links, ["concept", "download", "lookupOptions", "lookupList"]);
|
|
32
38
|
this._attribute = attributeData;
|
|
39
|
+
|
|
33
40
|
if (data[key] === undefined || "name" in data && "param" in data) {
|
|
34
41
|
this._value = this.getValue(data);
|
|
35
42
|
} else {
|
|
36
43
|
this._value = data[key];
|
|
37
44
|
}
|
|
38
45
|
}
|
|
46
|
+
|
|
39
47
|
this._children = this.createChildren(data, childrenKeys);
|
|
40
48
|
}
|
|
41
|
-
|
|
42
49
|
/**
|
|
43
50
|
*/
|
|
51
|
+
|
|
52
|
+
|
|
44
53
|
childData(data, parentKey, childKey) {
|
|
45
54
|
if (Array.isArray(data)) {
|
|
46
55
|
if (Array.isArray(this._attribute.elements)) {
|
|
47
56
|
var _context;
|
|
57
|
+
|
|
48
58
|
return _findInstanceProperty(_context = this._attribute.elements).call(_context, element => element.elementid === childKey);
|
|
49
59
|
}
|
|
50
60
|
} else if (has(data, parentKey) && isPlainObject(data[parentKey])) {
|
|
51
61
|
var _data$content;
|
|
62
|
+
|
|
52
63
|
const parentData = data[parentKey];
|
|
64
|
+
|
|
53
65
|
if (isPlainObject(parentData) && (_data$content = data.content) !== null && _data$content !== void 0 && _data$content[childKey]) {
|
|
54
|
-
return {
|
|
55
|
-
...parentData,
|
|
66
|
+
return { ...parentData,
|
|
56
67
|
content: data.content[childKey]
|
|
57
68
|
};
|
|
58
69
|
}
|
|
70
|
+
|
|
59
71
|
return parentData;
|
|
60
72
|
} else if (has(data, childKey) && isPlainObject(data[childKey])) {
|
|
61
73
|
return data[childKey];
|
|
62
74
|
}
|
|
75
|
+
|
|
63
76
|
if (isPlainObject(data)) {
|
|
64
77
|
return data;
|
|
65
78
|
}
|
|
79
|
+
|
|
66
80
|
return {};
|
|
67
81
|
}
|
|
68
|
-
|
|
69
82
|
/**
|
|
70
83
|
*/
|
|
84
|
+
|
|
85
|
+
|
|
71
86
|
createChild(data, childData, keyObject) {
|
|
72
87
|
const dynamicschema = isPlainObject(data) && !Array.isArray(data) ? data.dynamicschema : undefined;
|
|
73
88
|
let dynamicschemaId = null;
|
|
89
|
+
|
|
74
90
|
if (keyObject.dynamicschemaId) {
|
|
75
91
|
dynamicschemaId = keyObject.dynamicschemaId;
|
|
76
92
|
} else if (isPlainObject(data) && typeof data.key === "string" && keyObject.key) {
|
|
77
|
-
|
|
93
|
+
var _context2;
|
|
94
|
+
|
|
95
|
+
dynamicschemaId = _concatInstanceProperty(_context2 = "".concat(data.key, ".")).call(_context2, keyObject.key);
|
|
78
96
|
}
|
|
79
|
-
|
|
80
|
-
|
|
97
|
+
|
|
98
|
+
return new AttributeDataHelper({ ...childData,
|
|
81
99
|
dynamicschema,
|
|
82
100
|
dynamicschemaId
|
|
83
101
|
}, keyObject.key, keyObject.children);
|
|
84
102
|
}
|
|
85
|
-
|
|
86
103
|
/**
|
|
87
104
|
*/
|
|
105
|
+
|
|
106
|
+
|
|
88
107
|
createChildren(data) {
|
|
89
108
|
let childrenKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
90
109
|
const childrenIsArray = Array.isArray(this.value);
|
|
110
|
+
|
|
91
111
|
if (childrenIsArray) {
|
|
92
|
-
var
|
|
93
|
-
|
|
112
|
+
var _context3;
|
|
113
|
+
|
|
114
|
+
return _mapInstanceProperty(_context3 = this.value).call(_context3, value => _mapInstanceProperty(childrenKeys).call(childrenKeys, keyObject => {
|
|
94
115
|
const childData = this.childData(value, this.key, keyObject.key);
|
|
95
116
|
return this.createChild(data, childData, keyObject);
|
|
96
117
|
}));
|
|
97
118
|
}
|
|
119
|
+
|
|
98
120
|
return _mapInstanceProperty(childrenKeys).call(childrenKeys, keyObject => {
|
|
99
121
|
const childData = this.childData(data, this.key, keyObject.key);
|
|
100
122
|
return this.createChild(data, childData, keyObject);
|
|
101
123
|
});
|
|
102
124
|
}
|
|
103
|
-
|
|
104
125
|
/**
|
|
105
126
|
*/
|
|
127
|
+
|
|
128
|
+
|
|
106
129
|
getValue(attribute) {
|
|
107
130
|
if ("values" in attribute) {
|
|
108
131
|
return _valuesInstanceProperty(attribute);
|
|
109
132
|
}
|
|
133
|
+
|
|
110
134
|
if ("value" in attribute) {
|
|
111
135
|
return attribute.value;
|
|
112
136
|
}
|
|
137
|
+
|
|
113
138
|
if ("suggestions" in attribute) {
|
|
114
139
|
return attribute.suggestions;
|
|
115
140
|
}
|
|
141
|
+
|
|
116
142
|
if ("suggestion" in attribute) {
|
|
117
143
|
return attribute.suggestion;
|
|
118
144
|
}
|
|
145
|
+
|
|
119
146
|
if (Array.isArray(attribute.options)) {
|
|
120
|
-
var
|
|
121
|
-
|
|
147
|
+
var _context4, _context5;
|
|
148
|
+
|
|
149
|
+
return _mapInstanceProperty(_context4 = _filterInstanceProperty(_context5 = attribute.options).call(_context5, option => option.selected)).call(_context4, option => option.code || option.key);
|
|
122
150
|
}
|
|
151
|
+
|
|
123
152
|
return null;
|
|
124
153
|
}
|
|
125
|
-
|
|
126
154
|
/**
|
|
127
155
|
*/
|
|
156
|
+
|
|
157
|
+
|
|
128
158
|
get key() {
|
|
129
159
|
return this._key;
|
|
130
160
|
}
|
|
131
|
-
|
|
132
161
|
/**
|
|
133
162
|
*/
|
|
163
|
+
|
|
164
|
+
|
|
134
165
|
get value() {
|
|
135
166
|
return this._value;
|
|
136
167
|
}
|
|
137
|
-
|
|
138
168
|
/**
|
|
139
169
|
*/
|
|
170
|
+
|
|
171
|
+
|
|
140
172
|
get static() {
|
|
141
173
|
return this._attribute.static || false;
|
|
142
174
|
}
|
|
143
|
-
|
|
144
175
|
/**
|
|
145
176
|
*/
|
|
177
|
+
|
|
178
|
+
|
|
146
179
|
get links() {
|
|
147
180
|
return this._attribute._links || void 0;
|
|
148
181
|
}
|
|
149
|
-
|
|
150
182
|
/**
|
|
151
183
|
*/
|
|
184
|
+
|
|
185
|
+
|
|
152
186
|
get dynamicschemaId() {
|
|
153
187
|
return this._attribute.dynamicschemaId || this.key;
|
|
154
188
|
}
|
|
155
|
-
|
|
156
189
|
/*
|
|
157
190
|
retrieve the dynamischema by the dynamischemaId
|
|
158
191
|
mentioned in the contributions of the attribute
|
|
159
192
|
*/
|
|
193
|
+
|
|
160
194
|
/**
|
|
161
195
|
*/
|
|
196
|
+
|
|
197
|
+
|
|
162
198
|
get dynamicschema() {
|
|
163
199
|
const {
|
|
164
200
|
dynamicschema
|
|
165
201
|
} = this._attribute;
|
|
202
|
+
|
|
166
203
|
if (!dynamicschema) {
|
|
167
204
|
return void 0;
|
|
168
205
|
}
|
|
206
|
+
|
|
169
207
|
if (Array.isArray(dynamicschema)) {
|
|
170
208
|
return dynamicschema;
|
|
171
209
|
} else if (dynamicschema[this.dynamicschemaId]) {
|
|
172
210
|
const attrDS = dynamicschema[this.dynamicschemaId];
|
|
173
211
|
return _mapInstanceProperty(attrDS).call(attrDS, attr => {
|
|
174
212
|
if (attr.elements) {
|
|
175
|
-
return {
|
|
176
|
-
...attr,
|
|
177
|
-
elements: {
|
|
178
|
-
...attr.elements,
|
|
213
|
+
return { ...attr,
|
|
214
|
+
elements: { ...attr.elements,
|
|
179
215
|
dynamicschema
|
|
180
216
|
}
|
|
181
217
|
};
|
|
182
218
|
}
|
|
219
|
+
|
|
183
220
|
return attr;
|
|
184
221
|
});
|
|
185
222
|
}
|
|
223
|
+
|
|
186
224
|
return void 0;
|
|
187
225
|
}
|
|
188
|
-
|
|
189
226
|
/**
|
|
190
227
|
*/
|
|
228
|
+
|
|
229
|
+
|
|
191
230
|
get options() {
|
|
192
231
|
return this._attribute.options || void 0;
|
|
193
232
|
}
|
|
194
|
-
|
|
195
233
|
/**
|
|
196
234
|
*/
|
|
235
|
+
|
|
236
|
+
|
|
197
237
|
get message() {
|
|
198
238
|
return this._attribute.message || void 0;
|
|
199
239
|
}
|
|
200
|
-
|
|
201
240
|
/**
|
|
202
241
|
*/
|
|
242
|
+
|
|
243
|
+
|
|
203
244
|
get isResult() {
|
|
204
245
|
return this._attribute.isResult || false;
|
|
205
246
|
}
|
|
206
|
-
|
|
207
247
|
/**
|
|
208
248
|
*/
|
|
249
|
+
|
|
250
|
+
|
|
209
251
|
get referenceDate() {
|
|
210
252
|
return this._attribute.referenceDate || void 0;
|
|
211
253
|
}
|
|
212
|
-
|
|
213
254
|
/**
|
|
214
255
|
*/
|
|
256
|
+
|
|
257
|
+
|
|
215
258
|
get children() {
|
|
216
259
|
return this._children || [];
|
|
217
260
|
}
|
|
218
|
-
|
|
219
261
|
/**
|
|
220
262
|
*/
|
|
263
|
+
|
|
264
|
+
|
|
221
265
|
get content() {
|
|
222
266
|
if (this._attribute.content) {
|
|
223
267
|
const pickedContent = pick(this._attribute.content, ["header", "label", "elements", "layouthint", "text"]);
|
|
268
|
+
|
|
224
269
|
if (_Object$keys(pickedContent).length > 0) {
|
|
225
270
|
return pickedContent;
|
|
226
271
|
}
|
|
227
272
|
}
|
|
273
|
+
|
|
228
274
|
return null;
|
|
229
275
|
}
|
|
230
|
-
|
|
231
276
|
/**
|
|
232
277
|
*/
|
|
278
|
+
|
|
279
|
+
|
|
233
280
|
getData() {
|
|
234
|
-
var
|
|
281
|
+
var _context6;
|
|
282
|
+
|
|
235
283
|
return {
|
|
236
284
|
key: this.key,
|
|
237
285
|
value: this.value,
|
|
@@ -243,10 +291,12 @@ class AttributeDataHelper {
|
|
|
243
291
|
message: this.message,
|
|
244
292
|
isResult: this.isResult,
|
|
245
293
|
referenceDate: this.referenceDate,
|
|
246
|
-
children: _mapInstanceProperty(
|
|
294
|
+
children: _mapInstanceProperty(_context6 = this.children).call(_context6, child => Array.isArray(child) ? _mapInstanceProperty(child).call(child, subChild => subChild.getData()) : child.getData()),
|
|
247
295
|
content: this.content
|
|
248
296
|
};
|
|
249
297
|
}
|
|
298
|
+
|
|
250
299
|
}
|
|
300
|
+
|
|
251
301
|
export default AttributeDataHelper;
|
|
252
302
|
//# sourceMappingURL=AttributeDataHelper.js.map
|