@beinformed/ui 1.23.3-beta.0 → 1.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/esm/builder/index.js +0 -1
- package/esm/builder/index.js.map +1 -1
- package/esm/builder/mergeLayoutHintConfigurations.js +11 -1
- package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/esm/constants/Constants.js +28 -23
- package/esm/constants/Constants.js.map +1 -1
- package/esm/constants/LayoutHintConfig.js +0 -1
- package/esm/constants/LayoutHintConfig.js.map +1 -1
- package/esm/constants/LayoutHints.js +27 -11
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js +15 -9
- package/esm/constants/Settings.js.map +1 -1
- package/esm/constants/index.js +0 -1
- package/esm/constants/index.js.map +1 -1
- package/esm/exceptions/ConfigurationException.js +2 -2
- package/esm/exceptions/ConfigurationException.js.map +1 -1
- package/esm/exceptions/FetchException.js +28 -9
- package/esm/exceptions/FetchException.js.map +1 -1
- package/esm/exceptions/IllegalArgumentException.js +2 -1
- package/esm/exceptions/IllegalArgumentException.js.map +1 -1
- package/esm/exceptions/IllegalReturnException.js +2 -1
- package/esm/exceptions/IllegalReturnException.js.map +1 -1
- package/esm/exceptions/IllegalStateException.js +2 -1
- package/esm/exceptions/IllegalStateException.js.map +1 -1
- package/esm/exceptions/JsonParseException.js +2 -1
- package/esm/exceptions/JsonParseException.js.map +1 -1
- package/esm/exceptions/MissingPropertyException.js +2 -1
- package/esm/exceptions/MissingPropertyException.js.map +1 -1
- package/esm/exceptions/NetworkException.js +10 -1
- package/esm/exceptions/NetworkException.js.map +1 -1
- package/esm/exceptions/NotAllowedUriException.js +2 -1
- package/esm/exceptions/NotAllowedUriException.js.map +1 -1
- package/esm/exceptions/NotFoundException.js +11 -1
- package/esm/exceptions/NotFoundException.js.map +1 -1
- package/esm/exceptions/ServerRequestException.js +2 -1
- package/esm/exceptions/ServerRequestException.js.map +1 -1
- package/esm/exceptions/ThemePropertyException.js +2 -1
- package/esm/exceptions/ThemePropertyException.js.map +1 -1
- package/esm/exceptions/TimeoutException.js +6 -1
- package/esm/exceptions/TimeoutException.js.map +1 -1
- package/esm/exceptions/UnauthorizedException.js +10 -1
- package/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/esm/exceptions/UnsupportedOperationException.js +2 -1
- package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
- package/esm/exceptions/index.js +0 -1
- package/esm/exceptions/index.js.map +1 -1
- package/esm/hooks/index.js +0 -1
- package/esm/hooks/index.js.map +1 -1
- package/esm/hooks/useAllFormsOnModel.js +16 -0
- package/esm/hooks/useAllFormsOnModel.js.map +1 -1
- package/esm/hooks/useAuthentication.js +23 -9
- package/esm/hooks/useAuthentication.js.map +1 -1
- package/esm/hooks/useContent.js +10 -3
- package/esm/hooks/useContent.js.map +1 -1
- package/esm/hooks/useDeepCompareEffect.js +6 -2
- package/esm/hooks/useDeepCompareEffect.js.map +1 -1
- package/esm/hooks/useForm.js +13 -4
- package/esm/hooks/useForm.js.map +1 -1
- package/esm/hooks/useI18n.js +7 -3
- package/esm/hooks/useI18n.js.map +1 -1
- package/esm/hooks/useModal.js +3 -0
- package/esm/hooks/useModal.js.map +1 -1
- package/esm/hooks/useModelCatalog.js +21 -10
- package/esm/hooks/useModelCatalog.js.map +1 -1
- package/esm/hooks/useModels.js +1 -1
- package/esm/hooks/useModels.js.map +1 -1
- package/esm/hooks/useModularUI.js +11 -7
- package/esm/hooks/useModularUI.js.map +1 -1
- package/esm/hooks/useModularUIBasic.js +12 -2
- package/esm/hooks/useModularUIBasic.js.map +1 -1
- package/esm/hooks/useModularUIModel.js +10 -11
- package/esm/hooks/useModularUIModel.js.map +1 -1
- package/esm/hooks/useModularUIRequest.js +1 -2
- package/esm/hooks/useModularUIRequest.js.map +1 -1
- package/esm/hooks/useNotification.js +2 -2
- package/esm/hooks/useNotification.js.map +1 -1
- package/esm/hooks/usePreference.js +1 -1
- package/esm/hooks/usePreference.js.map +1 -1
- package/esm/hooks/useProgressIndicator.js +2 -3
- package/esm/hooks/useProgressIndicator.js.map +1 -1
- package/esm/hooks/useRouter.js +10 -7
- package/esm/hooks/useRouter.js.map +1 -1
- package/esm/i18n/Locale.js +40 -15
- package/esm/i18n/Locale.js.map +1 -1
- package/esm/i18n/Locales.js +33 -13
- package/esm/i18n/Locales.js.map +1 -1
- package/esm/i18n/Message.js +5 -3
- package/esm/i18n/Message.js.map +1 -1
- package/esm/i18n/index.js +0 -1
- package/esm/i18n/index.js.map +1 -1
- package/esm/i18n/languages.js +0 -1
- package/esm/i18n/languages.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js +0 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js +0 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/esm/i18n/withMessage.js +4 -1
- package/esm/i18n/withMessage.js.map +1 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +1 -1
- package/esm/models/actions/ActionCollection.js +26 -13
- package/esm/models/actions/ActionCollection.js.map +1 -1
- package/esm/models/actions/ActionModel.js +60 -23
- package/esm/models/actions/ActionModel.js.map +1 -1
- package/esm/models/application/ApplicationModel.js +34 -14
- package/esm/models/application/ApplicationModel.js.map +1 -1
- package/esm/models/attributes/AttributeCollection.js +81 -27
- package/esm/models/attributes/AttributeCollection.js.map +1 -1
- package/esm/models/attributes/AttributeContent.js +56 -23
- package/esm/models/attributes/AttributeContent.js.map +1 -1
- package/esm/models/attributes/AttributeDataHelper.js +83 -33
- package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
- package/esm/models/attributes/AttributeModel.js +258 -102
- package/esm/models/attributes/AttributeModel.js.map +1 -1
- package/esm/models/attributes/AttributeSetModel.js +17 -6
- package/esm/models/attributes/AttributeSetModel.js.map +1 -1
- package/esm/models/attributes/BooleanAttributeModel.js +76 -29
- package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/esm/models/attributes/CaptchaAttributeModel.js +8 -5
- package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeModel.js +108 -38
- package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js +80 -27
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionModel.js +102 -34
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeChildCollection.js +64 -23
- package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeModel.js +99 -40
- package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/esm/models/attributes/DatetimeAttributeModel.js +145 -51
- package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/esm/models/attributes/HelptextAttributeModel.js +17 -7
- package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/esm/models/attributes/LabelAttributeModel.js +8 -4
- package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
- package/esm/models/attributes/MemoAttributeModel.js +10 -6
- package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
- package/esm/models/attributes/MoneyAttributeModel.js +10 -5
- package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/esm/models/attributes/NumberAttributeModel.js +49 -22
- package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
- package/esm/models/attributes/PasswordAttributeModel.js +65 -23
- package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/esm/models/attributes/StringAttributeModel.js +72 -29
- package/esm/models/attributes/StringAttributeModel.js.map +1 -1
- package/esm/models/attributes/UploadAttributeModel.js +62 -21
- package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
- package/esm/models/attributes/XMLAttributeModel.js +10 -5
- package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
- package/esm/models/attributes/_createAttribute.js +21 -7
- package/esm/models/attributes/_createAttribute.js.map +1 -1
- package/esm/models/attributes/input-constraints/BSNConstraint.js +19 -8
- package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintCollection.js +10 -3
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintModel.js +22 -6
- package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +59 -16
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +28 -10
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +18 -7
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js +24 -10
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/IBANConstraint.js +13 -6
- package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js +15 -8
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +25 -8
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +53 -17
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +41 -15
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +39 -15
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +20 -8
- package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +12 -7
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +17 -7
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +17 -7
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +22 -8
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RangeConstraint.js +57 -22
- package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RegexConstraint.js +18 -7
- package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js +50 -14
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/XMLConstraint.js +17 -8
- package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +17 -9
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js +84 -30
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +11 -5
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +10 -4
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/esm/models/base/BaseCollection.js +67 -27
- package/esm/models/base/BaseCollection.js.map +1 -1
- package/esm/models/base/BaseModel.js +39 -14
- package/esm/models/base/BaseModel.js.map +1 -1
- package/esm/models/base/ResourceCollection.js +5 -2
- package/esm/models/base/ResourceCollection.js.map +1 -1
- package/esm/models/base/ResourceModel.js +53 -21
- package/esm/models/base/ResourceModel.js.map +1 -1
- package/esm/models/caseview/CaseViewModel.js +46 -16
- package/esm/models/caseview/CaseViewModel.js.map +1 -1
- package/esm/models/concepts/BusinessScenarioModel.js +39 -10
- package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/esm/models/concepts/ConceptDetailModel.js +85 -32
- package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
- package/esm/models/concepts/ConceptIndexModel.js +36 -12
- package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
- package/esm/models/concepts/ConceptLinkModel.js +45 -16
- package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
- package/esm/models/concepts/ConceptRelationCollection.js +20 -7
- package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/esm/models/concepts/ConceptRelationModel.js +22 -8
- package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
- package/esm/models/concepts/ConceptTypeDetailModel.js +25 -12
- package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/esm/models/concepts/SourceReferenceCollection.js +5 -2
- package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/esm/models/concepts/SourceReferenceModel.js +21 -10
- package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
- package/esm/models/content/ContentIndexModel.js +37 -13
- package/esm/models/content/ContentIndexModel.js.map +1 -1
- package/esm/models/content/ContentLinkModel.js +56 -19
- package/esm/models/content/ContentLinkModel.js.map +1 -1
- package/esm/models/content/ContentModel.js +59 -22
- package/esm/models/content/ContentModel.js.map +1 -1
- package/esm/models/content/ContentTOCModel.js +45 -17
- package/esm/models/content/ContentTOCModel.js.map +1 -1
- package/esm/models/content/ContentTypeModel.js +16 -8
- package/esm/models/content/ContentTypeModel.js.map +1 -1
- package/esm/models/content/SectionModel.js +57 -20
- package/esm/models/content/SectionModel.js.map +1 -1
- package/esm/models/content/SubSectionModel.js +43 -16
- package/esm/models/content/SubSectionModel.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfiguration.js +20 -6
- package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationElements.js +48 -11
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +13 -3
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +15 -5
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationResults.js +32 -13
- package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/esm/models/detail/DetailModel.js +54 -21
- package/esm/models/detail/DetailModel.js.map +1 -1
- package/esm/models/error/ErrorCollection.js +29 -11
- package/esm/models/error/ErrorCollection.js.map +1 -1
- package/esm/models/error/ErrorModel.js +21 -8
- package/esm/models/error/ErrorModel.js.map +1 -1
- package/esm/models/error/ErrorResponse.js +93 -37
- package/esm/models/error/ErrorResponse.js.map +1 -1
- package/esm/models/filters/AssignmentFilterModel.js +45 -19
- package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
- package/esm/models/filters/BaseFilterModel.js +58 -25
- package/esm/models/filters/BaseFilterModel.js.map +1 -1
- package/esm/models/filters/ConceptIndexFilterModel.js +5 -1
- package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/esm/models/filters/FilterCollection.js +44 -11
- package/esm/models/filters/FilterCollection.js.map +1 -1
- package/esm/models/filters/FilterModel.js +1 -2
- package/esm/models/filters/FilterModel.js.map +1 -1
- package/esm/models/filters/RangeFilterModel.js +6 -1
- package/esm/models/filters/RangeFilterModel.js.map +1 -1
- package/esm/models/form/FormModel.js +332 -136
- package/esm/models/form/FormModel.js.map +1 -1
- package/esm/models/form/FormObjectModel.js +141 -55
- package/esm/models/form/FormObjectModel.js.map +1 -1
- package/esm/models/grouping/GroupingModel.js +58 -20
- package/esm/models/grouping/GroupingModel.js.map +1 -1
- package/esm/models/href/Href.js +121 -47
- package/esm/models/href/Href.js.map +1 -1
- package/esm/models/href/ListHref.js +32 -11
- package/esm/models/href/ListHref.js.map +1 -1
- package/esm/models/index.js +0 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/layouthint/LayoutHintCollection.js +32 -9
- package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/esm/models/links/LinkCollection.js +44 -15
- package/esm/models/links/LinkCollection.js.map +1 -1
- package/esm/models/links/LinkModel.js +57 -21
- package/esm/models/links/LinkModel.js.map +1 -1
- package/esm/models/links/normalizeLinkJSON.js +21 -5
- package/esm/models/links/normalizeLinkJSON.js.map +1 -1
- package/esm/models/list/ListDetailModel.js +79 -31
- package/esm/models/list/ListDetailModel.js.map +1 -1
- package/esm/models/list/ListHeaderModel.js +28 -10
- package/esm/models/list/ListHeaderModel.js.map +1 -1
- package/esm/models/list/ListItemCollection.js +20 -4
- package/esm/models/list/ListItemCollection.js.map +1 -1
- package/esm/models/list/ListItemModel.js +23 -7
- package/esm/models/list/ListItemModel.js.map +1 -1
- package/esm/models/list/ListModel.js +115 -38
- package/esm/models/list/ListModel.js.map +1 -1
- package/esm/models/lookup/LookupOptionCollection.js +6 -4
- package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
- package/esm/models/lookup/LookupOptionsModel.js +16 -5
- package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
- package/esm/models/modelcatalog/ModelCatalogModel.js +14 -6
- package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/esm/models/paging/PagesizeModel.js +12 -4
- package/esm/models/paging/PagesizeModel.js.map +1 -1
- package/esm/models/paging/PagingModel.js +26 -11
- package/esm/models/paging/PagingModel.js.map +1 -1
- package/esm/models/panels/GroupingPanelModel.js +41 -14
- package/esm/models/panels/GroupingPanelModel.js.map +1 -1
- package/esm/models/parameter/Parameter.js +41 -14
- package/esm/models/parameter/Parameter.js.map +1 -1
- package/esm/models/process/ProcessStatusSettingsModel.js +24 -10
- package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/esm/models/resolveModel.js +7 -2
- package/esm/models/resolveModel.js.map +1 -1
- package/esm/models/search/CaseSearchModel.js +9 -3
- package/esm/models/search/CaseSearchModel.js.map +1 -1
- package/esm/models/sorting/SortOptionModel.js +41 -15
- package/esm/models/sorting/SortOptionModel.js.map +1 -1
- package/esm/models/sorting/SortingModel.js +28 -9
- package/esm/models/sorting/SortingModel.js.map +1 -1
- package/esm/models/tab/TabModel.js +41 -14
- package/esm/models/tab/TabModel.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupCollection.js +2 -1
- package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupModel.js +17 -7
- package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/esm/models/user/UserModel.js +10 -5
- package/esm/models/user/UserModel.js.map +1 -1
- package/esm/models/user/UserProfileModel.js +10 -2
- package/esm/models/user/UserProfileModel.js.map +1 -1
- package/esm/models/user/UserServicesModel.js +27 -11
- package/esm/models/user/UserServicesModel.js.map +1 -1
- package/esm/modularui/Authenticate.js +56 -21
- package/esm/modularui/Authenticate.js.map +1 -1
- package/esm/modularui/ModularUIError.js +8 -3
- package/esm/modularui/ModularUIError.js.map +1 -1
- package/esm/modularui/ModularUIRequest.js +194 -77
- package/esm/modularui/ModularUIRequest.js.map +1 -1
- package/esm/modularui/ModularUIResponse.js +37 -13
- package/esm/modularui/ModularUIResponse.js.map +1 -1
- package/esm/modularui/index.js +0 -1
- package/esm/modularui/index.js.map +1 -1
- package/esm/react/ErrorBoundary.js +12 -2
- package/esm/react/ErrorBoundary.js.map +1 -1
- package/esm/react/ErrorBoundaryFallback.js +2 -2
- package/esm/react/ErrorBoundaryFallback.js.map +1 -1
- package/esm/react/index.js +0 -1
- package/esm/react/index.js.map +1 -1
- package/esm/react/utils.js +7 -3
- package/esm/react/utils.js.map +1 -1
- package/esm/react-client/Init.js +2 -1
- package/esm/react-client/Init.js.map +1 -1
- package/esm/react-client/client.js +29 -15
- package/esm/react-client/client.js.map +1 -1
- package/esm/react-client/contextPath.js +8 -3
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/index.js +0 -1
- package/esm/react-client/index.js.map +1 -1
- package/esm/react-client/rehydrate.js +19 -4
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/contextPath.js +2 -2
- package/esm/react-server/contextPath.js.map +1 -1
- package/esm/react-server/createSSRComplete.js +12 -2
- package/esm/react-server/createSSRComplete.js.map +1 -1
- package/esm/react-server/htmlpage.js +12 -25
- package/esm/react-server/htmlpage.js.map +1 -1
- package/esm/react-server/index.js +0 -1
- package/esm/react-server/index.js.map +1 -1
- package/esm/react-server/renderSSRComplete.js +4 -4
- package/esm/react-server/renderSSRComplete.js.map +1 -1
- package/esm/react-server/renderSSRMinimal.js +2 -1
- package/esm/react-server/renderSSRMinimal.js.map +1 -1
- package/esm/react-server/requestInformation.js +18 -9
- package/esm/react-server/requestInformation.js.map +1 -1
- package/esm/react-server/serverNoSSR.js +7 -3
- package/esm/react-server/serverNoSSR.js.map +1 -1
- package/esm/react-server/serverSSR.js +2 -1
- package/esm/react-server/serverSSR.js.map +1 -1
- package/esm/react-server/serverUtil.js +37 -13
- package/esm/react-server/serverUtil.js.map +1 -1
- package/esm/react-theme/ThemeProvider.js +2 -1
- package/esm/react-theme/ThemeProvider.js.map +1 -1
- package/esm/react-theme/createTheme.js +20 -7
- package/esm/react-theme/createTheme.js.map +1 -1
- package/esm/react-theme/index.js +0 -1
- package/esm/react-theme/index.js.map +1 -1
- package/esm/react-theme/useTheme.js +2 -1
- package/esm/react-theme/useTheme.js.map +1 -1
- package/esm/react-theme/utils/background.js +5 -2
- package/esm/react-theme/utils/background.js.map +1 -1
- package/esm/react-theme/utils/colors.js +9 -3
- package/esm/react-theme/utils/colors.js.map +1 -1
- package/esm/react-theme/utils/contrast.js +27 -8
- package/esm/react-theme/utils/contrast.js.map +1 -1
- package/esm/react-theme/utils/corners.js +10 -4
- package/esm/react-theme/utils/corners.js.map +1 -1
- package/esm/react-theme/utils/spacers.js +22 -7
- package/esm/react-theme/utils/spacers.js.map +1 -1
- package/esm/react-theme/utils/themeProps.js +22 -8
- package/esm/react-theme/utils/themeProps.js.map +1 -1
- package/esm/redux/_i18n/actions.js +3 -3
- package/esm/redux/_i18n/actions.js.map +1 -1
- package/esm/redux/_i18n/index.js +0 -1
- package/esm/redux/_i18n/index.js.map +1 -1
- package/esm/redux/_i18n/reducer.js +16 -13
- package/esm/redux/_i18n/reducer.js.map +1 -1
- package/esm/redux/_modularui/actions.js +48 -36
- package/esm/redux/_modularui/actions.js.map +1 -1
- package/esm/redux/_modularui/connector.js +18 -21
- package/esm/redux/_modularui/connector.js.map +1 -1
- package/esm/redux/_modularui/index.js +0 -1
- package/esm/redux/_modularui/index.js.map +1 -1
- package/esm/redux/_modularui/middleware.js +22 -8
- package/esm/redux/_modularui/middleware.js.map +1 -1
- package/esm/redux/_modularui/modularuiUtils.js +25 -10
- package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
- package/esm/redux/_modularui/reducer.js +39 -19
- package/esm/redux/_modularui/reducer.js.map +1 -1
- package/esm/redux/_modularui/selectors.js +62 -20
- package/esm/redux/_modularui/selectors.js.map +1 -1
- package/esm/redux/_modularui/withModularUI.js +3 -3
- package/esm/redux/_modularui/withModularUI.js.map +1 -1
- package/esm/redux/_router/actions.js +5 -7
- package/esm/redux/_router/actions.js.map +1 -1
- package/esm/redux/_router/connectors.js +14 -11
- package/esm/redux/_router/connectors.js.map +1 -1
- package/esm/redux/_router/index.js +0 -1
- package/esm/redux/_router/index.js.map +1 -1
- package/esm/redux/_router/middleware.js +1 -2
- package/esm/redux/_router/middleware.js.map +1 -1
- package/esm/redux/_router/reducer.js +3 -3
- package/esm/redux/_router/reducer.js.map +1 -1
- package/esm/redux/actions/Application.js +4 -2
- package/esm/redux/actions/Application.js.map +1 -1
- package/esm/redux/actions/Authorization.js +14 -8
- package/esm/redux/actions/Authorization.js.map +1 -1
- package/esm/redux/actions/Error.js +13 -5
- package/esm/redux/actions/Error.js.map +1 -1
- package/esm/redux/actions/Form.js +3 -2
- package/esm/redux/actions/Form.js.map +1 -1
- package/esm/redux/actions/FormAttributeSet.js +9 -1
- package/esm/redux/actions/FormAttributeSet.js.map +1 -1
- package/esm/redux/actions/FormAttributeSetRepeatable.js +3 -3
- package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/esm/redux/actions/FormAutosave.js +6 -4
- package/esm/redux/actions/FormAutosave.js.map +1 -1
- package/esm/redux/actions/FormAutosubmit.js +4 -1
- package/esm/redux/actions/FormAutosubmit.js.map +1 -1
- package/esm/redux/actions/FormValidations.js +7 -3
- package/esm/redux/actions/FormValidations.js.map +1 -1
- package/esm/redux/actions/Modals.js +1 -3
- package/esm/redux/actions/Modals.js.map +1 -1
- package/esm/redux/actions/Notification.js +10 -5
- package/esm/redux/actions/Notification.js.map +1 -1
- package/esm/redux/actions/Preferences.js +26 -14
- package/esm/redux/actions/Preferences.js.map +1 -1
- package/esm/redux/actions/ProgressIndicator.js +4 -5
- package/esm/redux/actions/ProgressIndicator.js.map +1 -1
- package/esm/redux/actions/SignIn.js +8 -5
- package/esm/redux/actions/SignIn.js.map +1 -1
- package/esm/redux/actions/SignOut.js +2 -2
- package/esm/redux/actions/SignOut.js.map +1 -1
- package/esm/redux/actions/index.js +0 -1
- package/esm/redux/actions/index.js.map +1 -1
- package/esm/redux/connectors/Application.js +1 -1
- package/esm/redux/connectors/Application.js.map +1 -1
- package/esm/redux/connectors/Breadcrumb.js +3 -2
- package/esm/redux/connectors/Breadcrumb.js.map +1 -1
- package/esm/redux/connectors/CaseView.js +1 -1
- package/esm/redux/connectors/CaseView.js.map +1 -1
- package/esm/redux/connectors/ConceptDetail.js +5 -2
- package/esm/redux/connectors/ConceptDetail.js.map +1 -1
- package/esm/redux/connectors/ContentBrowser.js +1 -1
- package/esm/redux/connectors/ContentBrowser.js.map +1 -1
- package/esm/redux/connectors/ContentDetail.js +5 -2
- package/esm/redux/connectors/ContentDetail.js.map +1 -1
- package/esm/redux/connectors/ContentDetailSection.js +5 -2
- package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
- package/esm/redux/connectors/Form.js +10 -3
- package/esm/redux/connectors/Form.js.map +1 -1
- package/esm/redux/connectors/FormAttributeSet.js +3 -2
- package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
- package/esm/redux/connectors/ListDetail.js +1 -1
- package/esm/redux/connectors/ListDetail.js.map +1 -1
- package/esm/redux/connectors/Modal.js +5 -1
- package/esm/redux/connectors/Modal.js.map +1 -1
- package/esm/redux/connectors/ModelCatalog.js +1 -1
- package/esm/redux/connectors/ModelCatalog.js.map +1 -1
- package/esm/redux/connectors/Notification.js +3 -2
- package/esm/redux/connectors/Notification.js.map +1 -1
- package/esm/redux/connectors/PanelRenderer.js +5 -1
- package/esm/redux/connectors/PanelRenderer.js.map +1 -1
- package/esm/redux/connectors/Preferences.js +4 -2
- package/esm/redux/connectors/Preferences.js.map +1 -1
- package/esm/redux/connectors/Progress.js +1 -2
- package/esm/redux/connectors/Progress.js.map +1 -1
- package/esm/redux/connectors/ProgressIndicator.js +3 -2
- package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
- package/esm/redux/connectors/QuickSearch.js +1 -2
- package/esm/redux/connectors/QuickSearch.js.map +1 -1
- package/esm/redux/connectors/SignIn.js +6 -3
- package/esm/redux/connectors/SignIn.js.map +1 -1
- package/esm/redux/connectors/SignOut.js +6 -4
- package/esm/redux/connectors/SignOut.js.map +1 -1
- package/esm/redux/connectors/Tab.js +1 -1
- package/esm/redux/connectors/Tab.js.map +1 -1
- package/esm/redux/connectors/index.js +0 -1
- package/esm/redux/connectors/index.js.map +1 -1
- package/esm/redux/index.js +7 -16
- package/esm/redux/index.js.map +1 -1
- package/esm/redux/reducers/AuthReducer.js +14 -13
- package/esm/redux/reducers/AuthReducer.js.map +1 -1
- package/esm/redux/reducers/ErrorReducer.js +4 -3
- package/esm/redux/reducers/ErrorReducer.js.map +1 -1
- package/esm/redux/reducers/ModalsReducer.js +15 -11
- package/esm/redux/reducers/ModalsReducer.js.map +1 -1
- package/esm/redux/reducers/NotificationReducer.js +8 -7
- package/esm/redux/reducers/NotificationReducer.js.map +1 -1
- package/esm/redux/reducers/PreferencesReducer.js +7 -7
- package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js +15 -11
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/esm/redux/reducers/createReducer.js +1 -1
- package/esm/redux/reducers/createReducer.js.map +1 -1
- package/esm/redux/reducers/index.js +0 -1
- package/esm/redux/reducers/index.js.map +1 -1
- package/esm/redux/selectors/i18n.js +4 -5
- package/esm/redux/selectors/i18n.js.map +1 -1
- package/esm/redux/selectors/index.js +0 -1
- package/esm/redux/selectors/index.js.map +1 -1
- package/esm/redux/store/beforeRenderHooks.js +1 -2
- package/esm/redux/store/beforeRenderHooks.js.map +1 -1
- package/esm/redux/store/configureStore.js +7 -3
- package/esm/redux/store/configureStore.js.map +1 -1
- package/esm/utils/browser/Cache.js +44 -17
- package/esm/utils/browser/Cache.js.map +1 -1
- package/esm/utils/browser/Cookies.js +9 -4
- package/esm/utils/browser/Cookies.js.map +1 -1
- package/esm/utils/datetime/DateTimeUtil.js +110 -53
- package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
- package/esm/utils/fetch/serverFetch.js +8 -2
- package/esm/utils/fetch/serverFetch.js.map +1 -1
- package/esm/utils/fetch/universalFetch.js +17 -6
- package/esm/utils/fetch/universalFetch.js.map +1 -1
- package/esm/utils/fetch/xhr.js +101 -42
- package/esm/utils/fetch/xhr.js.map +1 -1
- package/esm/utils/helpers/checkResource.js +6 -6
- package/esm/utils/helpers/checkResource.js.map +1 -1
- package/esm/utils/helpers/createHash.js +5 -3
- package/esm/utils/helpers/createHash.js.map +1 -1
- package/esm/utils/helpers/createUUID.js +1 -1
- package/esm/utils/helpers/createUUID.js.map +1 -1
- package/esm/utils/helpers/objects.js +8 -5
- package/esm/utils/helpers/objects.js.map +1 -1
- package/esm/utils/helpers/sanitizeHtml.js +9 -7
- package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
- package/esm/utils/helpers/text.js +3 -2
- package/esm/utils/helpers/text.js.map +1 -1
- package/esm/utils/index.js +3 -8
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/number/DecimalFormat.js +124 -43
- package/esm/utils/number/DecimalFormat.js.map +1 -1
- package/esm/utils/number/formatValue.js +18 -5
- package/esm/utils/number/formatValue.js.map +1 -1
- package/esm/utils/number/parseNumbers.js +17 -5
- package/esm/utils/number/parseNumbers.js.map +1 -1
- package/lib/builder/index.js +3 -0
- package/lib/builder/index.js.map +1 -1
- package/lib/builder/mergeLayoutHintConfigurations.js +13 -1
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/lib/constants/Constants.js +32 -25
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js +29 -9
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +38 -9
- package/lib/constants/Settings.js.map +1 -1
- package/lib/constants/index.js +7 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/exceptions/ConfigurationException.js +2 -0
- package/lib/exceptions/ConfigurationException.js.map +1 -1
- package/lib/exceptions/FetchException.js +27 -9
- package/lib/exceptions/FetchException.js.map +1 -1
- package/lib/exceptions/IllegalArgumentException.js +3 -0
- package/lib/exceptions/IllegalArgumentException.js.map +1 -1
- package/lib/exceptions/IllegalReturnException.js +3 -0
- package/lib/exceptions/IllegalReturnException.js.map +1 -1
- package/lib/exceptions/IllegalStateException.js +3 -0
- package/lib/exceptions/IllegalStateException.js.map +1 -1
- package/lib/exceptions/JsonParseException.js +3 -0
- package/lib/exceptions/JsonParseException.js.map +1 -1
- package/lib/exceptions/MissingPropertyException.js +3 -0
- package/lib/exceptions/MissingPropertyException.js.map +1 -1
- package/lib/exceptions/NetworkException.js +10 -1
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/NotAllowedUriException.js +3 -0
- package/lib/exceptions/NotAllowedUriException.js.map +1 -1
- package/lib/exceptions/NotFoundException.js +10 -1
- package/lib/exceptions/NotFoundException.js.map +1 -1
- package/lib/exceptions/ServerRequestException.js +3 -0
- package/lib/exceptions/ServerRequestException.js.map +1 -1
- package/lib/exceptions/ThemePropertyException.js +3 -0
- package/lib/exceptions/ThemePropertyException.js.map +1 -1
- package/lib/exceptions/TimeoutException.js +10 -1
- package/lib/exceptions/TimeoutException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js +9 -1
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/exceptions/UnsupportedOperationException.js +3 -0
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
- package/lib/exceptions/index.js +16 -0
- package/lib/exceptions/index.js.map +1 -1
- package/lib/hooks/index.js +33 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAllFormsOnModel.js +23 -0
- package/lib/hooks/useAllFormsOnModel.js.map +1 -1
- package/lib/hooks/useAuthentication.js +35 -8
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/hooks/useContent.js +16 -3
- package/lib/hooks/useContent.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js +12 -1
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/hooks/useForm.js +27 -3
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useI18n.js +15 -3
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModal.js +9 -0
- package/lib/hooks/useModal.js.map +1 -1
- package/lib/hooks/useModelCatalog.js +45 -9
- package/lib/hooks/useModelCatalog.js.map +1 -1
- package/lib/hooks/useModels.js +3 -0
- package/lib/hooks/useModels.js.map +1 -1
- package/lib/hooks/useModularUI.js +19 -6
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js +17 -2
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/hooks/useModularUIModel.js +39 -9
- package/lib/hooks/useModularUIModel.js.map +1 -1
- package/lib/hooks/useModularUIRequest.js +7 -1
- package/lib/hooks/useModularUIRequest.js.map +1 -1
- package/lib/hooks/useNotification.js +7 -1
- package/lib/hooks/useNotification.js.map +1 -1
- package/lib/hooks/usePreference.js +4 -0
- package/lib/hooks/usePreference.js.map +1 -1
- package/lib/hooks/useProgressIndicator.js +4 -2
- package/lib/hooks/useProgressIndicator.js.map +1 -1
- package/lib/hooks/useRouter.js +20 -6
- package/lib/hooks/useRouter.js.map +1 -1
- package/lib/i18n/Locale.js +44 -15
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js +44 -13
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js +8 -2
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/index.js +9 -0
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/languages.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/i18n/withMessage.js +10 -1
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/index.js +13 -0
- package/lib/index.js.map +1 -1
- package/lib/models/actions/ActionCollection.js +33 -12
- package/lib/models/actions/ActionCollection.js.map +1 -1
- package/lib/models/actions/ActionModel.js +68 -23
- package/lib/models/actions/ActionModel.js.map +1 -1
- package/lib/models/application/ApplicationModel.js +41 -14
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js +87 -27
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js +65 -23
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js +89 -32
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js +254 -101
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/AttributeSetModel.js +20 -5
- package/lib/models/attributes/AttributeSetModel.js.map +1 -1
- package/lib/models/attributes/BooleanAttributeModel.js +83 -29
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/lib/models/attributes/CaptchaAttributeModel.js +10 -3
- package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js +115 -38
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +84 -26
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +108 -34
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js +70 -23
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js +109 -40
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +159 -51
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/HelptextAttributeModel.js +20 -5
- package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/lib/models/attributes/LabelAttributeModel.js +11 -3
- package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
- package/lib/models/attributes/MemoAttributeModel.js +13 -4
- package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
- package/lib/models/attributes/MoneyAttributeModel.js +14 -4
- package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/lib/models/attributes/NumberAttributeModel.js +61 -21
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
- package/lib/models/attributes/PasswordAttributeModel.js +75 -23
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/lib/models/attributes/StringAttributeModel.js +79 -28
- package/lib/models/attributes/StringAttributeModel.js.map +1 -1
- package/lib/models/attributes/UploadAttributeModel.js +66 -21
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
- package/lib/models/attributes/XMLAttributeModel.js +16 -4
- package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
- package/lib/models/attributes/_createAttribute.js +41 -7
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js +19 -6
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js +15 -3
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js +19 -6
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +58 -16
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +22 -8
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +22 -8
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +27 -10
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +20 -7
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +26 -10
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js +14 -5
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +15 -6
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +25 -8
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +51 -17
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +44 -15
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +40 -15
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +20 -8
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +12 -5
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +18 -7
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +18 -7
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +24 -8
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js +57 -22
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js +19 -7
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +50 -13
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js +17 -6
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +18 -8
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +88 -30
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +19 -4
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +13 -3
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/base/BaseCollection.js +73 -26
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js +40 -14
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceCollection.js +6 -1
- package/lib/models/base/ResourceCollection.js.map +1 -1
- package/lib/models/base/ResourceModel.js +53 -21
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/caseview/CaseViewModel.js +54 -16
- package/lib/models/caseview/CaseViewModel.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js +44 -10
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptDetailModel.js +90 -32
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
- package/lib/models/concepts/ConceptIndexModel.js +42 -12
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
- package/lib/models/concepts/ConceptLinkModel.js +49 -16
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
- package/lib/models/concepts/ConceptRelationCollection.js +25 -6
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/lib/models/concepts/ConceptRelationModel.js +23 -8
- package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js +26 -11
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/lib/models/concepts/SourceReferenceCollection.js +11 -1
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js +22 -9
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/content/ContentIndexModel.js +44 -12
- package/lib/models/content/ContentIndexModel.js.map +1 -1
- package/lib/models/content/ContentLinkModel.js +61 -19
- package/lib/models/content/ContentLinkModel.js.map +1 -1
- package/lib/models/content/ContentModel.js +67 -21
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/ContentTOCModel.js +55 -17
- package/lib/models/content/ContentTOCModel.js.map +1 -1
- package/lib/models/content/ContentTypeModel.js +18 -7
- package/lib/models/content/ContentTypeModel.js.map +1 -1
- package/lib/models/content/SectionModel.js +62 -19
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js +51 -15
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js +25 -5
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +45 -10
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +17 -2
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +16 -4
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +37 -12
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/lib/models/detail/DetailModel.js +61 -21
- package/lib/models/detail/DetailModel.js.map +1 -1
- package/lib/models/error/ErrorCollection.js +35 -10
- package/lib/models/error/ErrorCollection.js.map +1 -1
- package/lib/models/error/ErrorModel.js +17 -6
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/error/ErrorResponse.js +96 -36
- package/lib/models/error/ErrorResponse.js.map +1 -1
- package/lib/models/filters/AssignmentFilterModel.js +45 -19
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js +60 -24
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/ConceptIndexFilterModel.js +9 -0
- package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/lib/models/filters/FilterCollection.js +55 -11
- package/lib/models/filters/FilterCollection.js.map +1 -1
- package/lib/models/filters/FilterModel.js +3 -0
- package/lib/models/filters/FilterModel.js.map +1 -1
- package/lib/models/filters/RangeFilterModel.js +10 -1
- package/lib/models/filters/RangeFilterModel.js.map +1 -1
- package/lib/models/form/FormModel.js +328 -135
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/form/FormObjectModel.js +144 -55
- package/lib/models/form/FormObjectModel.js.map +1 -1
- package/lib/models/grouping/GroupingModel.js +58 -20
- package/lib/models/grouping/GroupingModel.js.map +1 -1
- package/lib/models/href/Href.js +123 -47
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/href/ListHref.js +29 -11
- package/lib/models/href/ListHref.js.map +1 -1
- package/lib/models/index.js +97 -0
- package/lib/models/index.js.map +1 -1
- package/lib/models/layouthint/LayoutHintCollection.js +40 -8
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/lib/models/links/LinkCollection.js +51 -15
- package/lib/models/links/LinkCollection.js.map +1 -1
- package/lib/models/links/LinkModel.js +62 -20
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/normalizeLinkJSON.js +21 -5
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListDetailModel.js +84 -31
- package/lib/models/list/ListDetailModel.js.map +1 -1
- package/lib/models/list/ListHeaderModel.js +30 -10
- package/lib/models/list/ListHeaderModel.js.map +1 -1
- package/lib/models/list/ListItemCollection.js +24 -4
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/list/ListItemModel.js +29 -7
- package/lib/models/list/ListItemModel.js.map +1 -1
- package/lib/models/list/ListModel.js +123 -38
- package/lib/models/list/ListModel.js.map +1 -1
- package/lib/models/lookup/LookupOptionCollection.js +8 -2
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionsModel.js +19 -5
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
- package/lib/models/modelcatalog/ModelCatalogModel.js +17 -4
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/lib/models/paging/PagesizeModel.js +13 -4
- package/lib/models/paging/PagesizeModel.js.map +1 -1
- package/lib/models/paging/PagingModel.js +26 -10
- package/lib/models/paging/PagingModel.js.map +1 -1
- package/lib/models/panels/GroupingPanelModel.js +47 -14
- package/lib/models/panels/GroupingPanelModel.js.map +1 -1
- package/lib/models/parameter/Parameter.js +42 -13
- package/lib/models/parameter/Parameter.js.map +1 -1
- package/lib/models/process/ProcessStatusSettingsModel.js +29 -9
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/lib/models/resolveModel.js +33 -1
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/search/CaseSearchModel.js +12 -3
- package/lib/models/search/CaseSearchModel.js.map +1 -1
- package/lib/models/sorting/SortOptionModel.js +39 -13
- package/lib/models/sorting/SortOptionModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js +35 -8
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/tab/TabModel.js +48 -14
- package/lib/models/tab/TabModel.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupCollection.js +4 -0
- package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupModel.js +19 -6
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/lib/models/user/UserModel.js +12 -4
- package/lib/models/user/UserModel.js.map +1 -1
- package/lib/models/user/UserProfileModel.js +14 -2
- package/lib/models/user/UserProfileModel.js.map +1 -1
- package/lib/models/user/UserServicesModel.js +30 -11
- package/lib/models/user/UserServicesModel.js.map +1 -1
- package/lib/modularui/Authenticate.js +66 -20
- package/lib/modularui/Authenticate.js.map +1 -1
- package/lib/modularui/ModularUIError.js +7 -3
- package/lib/modularui/ModularUIError.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js +201 -77
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/ModularUIResponse.js +34 -13
- package/lib/modularui/ModularUIResponse.js.map +1 -1
- package/lib/modularui/index.js +4 -0
- package/lib/modularui/index.js.map +1 -1
- package/lib/react/ErrorBoundary.js +14 -2
- package/lib/react/ErrorBoundary.js.map +1 -1
- package/lib/react/ErrorBoundaryFallback.js +8 -1
- package/lib/react/ErrorBoundaryFallback.js.map +1 -1
- package/lib/react/index.js +5 -0
- package/lib/react/index.js.map +1 -1
- package/lib/react/utils.js +13 -2
- package/lib/react/utils.js.map +1 -1
- package/lib/react-client/Init.js +8 -0
- package/lib/react-client/Init.js.map +1 -1
- package/lib/react-client/client.js +49 -16
- package/lib/react-client/client.js.map +1 -1
- package/lib/react-client/contextPath.js +9 -2
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/index.js +4 -0
- package/lib/react-client/index.js.map +1 -1
- package/lib/react-client/rehydrate.js +23 -3
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/contextPath.js +2 -1
- package/lib/react-server/contextPath.js.map +1 -1
- package/lib/react-server/createSSRComplete.js +16 -2
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/htmlpage.js +16 -25
- package/lib/react-server/htmlpage.js.map +1 -1
- package/lib/react-server/index.js +12 -0
- package/lib/react-server/index.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js +16 -3
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js +10 -0
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/requestInformation.js +28 -8
- package/lib/react-server/requestInformation.js.flow +8 -3
- package/lib/react-server/requestInformation.js.map +1 -1
- package/lib/react-server/serverNoSSR.js +14 -2
- package/lib/react-server/serverNoSSR.js.map +1 -1
- package/lib/react-server/serverSSR.js +8 -0
- package/lib/react-server/serverSSR.js.map +1 -1
- package/lib/react-server/serverUtil.js +60 -13
- package/lib/react-server/serverUtil.js.map +1 -1
- package/lib/react-theme/ThemeProvider.js +6 -0
- package/lib/react-theme/ThemeProvider.js.map +1 -1
- package/lib/react-theme/createTheme.js +23 -7
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/react-theme/index.js +18 -0
- package/lib/react-theme/index.js.map +1 -1
- package/lib/react-theme/useTheme.js +3 -0
- package/lib/react-theme/useTheme.js.map +1 -1
- package/lib/react-theme/utils/background.js +5 -1
- package/lib/react-theme/utils/background.js.map +1 -1
- package/lib/react-theme/utils/colors.js +12 -2
- package/lib/react-theme/utils/colors.js.map +1 -1
- package/lib/react-theme/utils/contrast.js +35 -7
- package/lib/react-theme/utils/contrast.js.map +1 -1
- package/lib/react-theme/utils/corners.js +14 -3
- package/lib/react-theme/utils/corners.js.map +1 -1
- package/lib/react-theme/utils/spacers.js +30 -6
- package/lib/react-theme/utils/spacers.js.map +1 -1
- package/lib/react-theme/utils/themeProps.js +35 -7
- package/lib/react-theme/utils/themeProps.js.map +1 -1
- package/lib/redux/_i18n/actions.js +8 -2
- package/lib/redux/_i18n/actions.js.map +1 -1
- package/lib/redux/_i18n/index.js +5 -0
- package/lib/redux/_i18n/index.js.map +1 -1
- package/lib/redux/_i18n/reducer.js +21 -12
- package/lib/redux/_i18n/reducer.js.map +1 -1
- package/lib/redux/_modularui/actions.js +69 -36
- package/lib/redux/_modularui/actions.js.map +1 -1
- package/lib/redux/_modularui/connector.js +28 -20
- package/lib/redux/_modularui/connector.js.map +1 -1
- package/lib/redux/_modularui/index.js +14 -0
- package/lib/redux/_modularui/index.js.map +1 -1
- package/lib/redux/_modularui/middleware.js +28 -8
- package/lib/redux/_modularui/middleware.js.map +1 -1
- package/lib/redux/_modularui/modularuiUtils.js +36 -10
- package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
- package/lib/redux/_modularui/reducer.js +45 -19
- package/lib/redux/_modularui/reducer.js.map +1 -1
- package/lib/redux/_modularui/selectors.js +97 -20
- package/lib/redux/_modularui/selectors.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js +11 -2
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/actions.js +16 -5
- package/lib/redux/_router/actions.js.map +1 -1
- package/lib/redux/_router/connectors.js +15 -10
- package/lib/redux/_router/connectors.js.map +1 -1
- package/lib/redux/_router/index.js +9 -0
- package/lib/redux/_router/index.js.map +1 -1
- package/lib/redux/_router/middleware.js +2 -0
- package/lib/redux/_router/middleware.js.map +1 -1
- package/lib/redux/_router/reducer.js +4 -2
- package/lib/redux/_router/reducer.js.map +1 -1
- package/lib/redux/actions/Application.js +8 -1
- package/lib/redux/actions/Application.js.map +1 -1
- package/lib/redux/actions/Authorization.js +25 -6
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js +24 -4
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/Form.js +12 -1
- package/lib/redux/actions/Form.js.map +1 -1
- package/lib/redux/actions/FormAttributeSet.js +14 -0
- package/lib/redux/actions/FormAttributeSet.js.map +1 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js +8 -2
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/lib/redux/actions/FormAutosave.js +12 -3
- package/lib/redux/actions/FormAutosave.js.map +1 -1
- package/lib/redux/actions/FormAutosubmit.js +6 -0
- package/lib/redux/actions/FormAutosubmit.js.map +1 -1
- package/lib/redux/actions/FormValidations.js +13 -2
- package/lib/redux/actions/FormValidations.js.map +1 -1
- package/lib/redux/actions/Modals.js +4 -1
- package/lib/redux/actions/Modals.js.map +1 -1
- package/lib/redux/actions/Notification.js +19 -4
- package/lib/redux/actions/Notification.js.map +1 -1
- package/lib/redux/actions/Preferences.js +44 -13
- package/lib/redux/actions/Preferences.js.map +1 -1
- package/lib/redux/actions/ProgressIndicator.js +11 -3
- package/lib/redux/actions/ProgressIndicator.js.map +1 -1
- package/lib/redux/actions/SignIn.js +28 -5
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/SignOut.js +9 -1
- package/lib/redux/actions/SignOut.js.map +1 -1
- package/lib/redux/actions/index.js +31 -0
- package/lib/redux/actions/index.js.map +1 -1
- package/lib/redux/connectors/Application.js +2 -0
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js +4 -1
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js +2 -0
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js +7 -1
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js +2 -0
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js +7 -1
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js +8 -1
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js +19 -2
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js +5 -1
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js +3 -0
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js +7 -1
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js +2 -0
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js +4 -1
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js +7 -0
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js +5 -1
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js +4 -1
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js +3 -1
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js +7 -1
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js +8 -2
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js +8 -3
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js +2 -0
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/connectors/index.js +21 -0
- package/lib/redux/connectors/index.js.map +1 -1
- package/lib/redux/index.js +17 -0
- package/lib/redux/index.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js +14 -12
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js +4 -2
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js +18 -11
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js +8 -6
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js +7 -6
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js +15 -10
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/reducers/createReducer.js +11 -0
- package/lib/redux/reducers/createReducer.js.map +1 -1
- package/lib/redux/reducers/index.js +10 -0
- package/lib/redux/reducers/index.js.map +1 -1
- package/lib/redux/selectors/i18n.js +7 -3
- package/lib/redux/selectors/i18n.js.map +1 -1
- package/lib/redux/selectors/index.js +3 -0
- package/lib/redux/selectors/index.js.map +1 -1
- package/lib/redux/store/beforeRenderHooks.js +2 -0
- package/lib/redux/store/beforeRenderHooks.js.map +1 -1
- package/lib/redux/store/configureStore.js +13 -2
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/utils/browser/Cache.js +49 -16
- package/lib/utils/browser/Cache.js.map +1 -1
- package/lib/utils/browser/Cookies.js +14 -3
- package/lib/utils/browser/Cookies.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js +115 -52
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/fetch/serverFetch.js +13 -2
- package/lib/utils/fetch/serverFetch.js.map +1 -1
- package/lib/utils/fetch/universalFetch.js +25 -6
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js +111 -42
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/checkResource.js +11 -5
- package/lib/utils/helpers/checkResource.js.map +1 -1
- package/lib/utils/helpers/createHash.js +6 -1
- package/lib/utils/helpers/createHash.js.map +1 -1
- package/lib/utils/helpers/createUUID.js +2 -0
- package/lib/utils/helpers/createUUID.js.map +1 -1
- package/lib/utils/helpers/objects.js +15 -3
- package/lib/utils/helpers/objects.js.map +1 -1
- package/lib/utils/helpers/sanitizeHtml.js +13 -6
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
- package/lib/utils/helpers/text.js +4 -0
- package/lib/utils/helpers/text.js.map +1 -1
- package/lib/utils/index.js +25 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js +121 -43
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/formatValue.js +22 -3
- package/lib/utils/number/formatValue.js.map +1 -1
- package/lib/utils/number/parseNumbers.js +19 -3
- package/lib/utils/number/parseNumbers.js.map +1 -1
- package/package.json +29 -29
- package/src/react-server/requestInformation.js +8 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
2
|
import _JSON$stringify from "@babel/runtime-corejs3/core-js-stable/json/stringify";
|
|
3
3
|
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
4
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
4
5
|
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
5
6
|
import _findInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find";
|
|
6
7
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
@@ -19,6 +20,7 @@ import ModularUIResponse from "./ModularUIResponse";
|
|
|
19
20
|
import ModularUIError from "./ModularUIError";
|
|
20
21
|
import { IllegalArgumentException, IllegalStateException } from "../exceptions";
|
|
21
22
|
import { isPlainObject } from "../utils/helpers/objects";
|
|
23
|
+
|
|
22
24
|
/**
|
|
23
25
|
* Helper for fetching data and contributions from the Be Informed modular ui
|
|
24
26
|
* and merge it into a target or resolvable model.
|
|
@@ -27,363 +29,447 @@ class ModularUIRequest {
|
|
|
27
29
|
/**
|
|
28
30
|
*/
|
|
29
31
|
constructor(href) {
|
|
32
|
+
var _options$locale;
|
|
33
|
+
|
|
30
34
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
35
|
+
|
|
31
36
|
_defineProperty(this, "_response", void 0);
|
|
37
|
+
|
|
32
38
|
_defineProperty(this, "_href", void 0);
|
|
39
|
+
|
|
33
40
|
_defineProperty(this, "_options", void 0);
|
|
41
|
+
|
|
34
42
|
_defineProperty(this, "_targetModel", void 0);
|
|
43
|
+
|
|
35
44
|
_defineProperty(this, "_contributionsHref", void 0);
|
|
45
|
+
|
|
36
46
|
_defineProperty(this, "_locale", void 0);
|
|
47
|
+
|
|
37
48
|
_defineProperty(this, "_method", HTTP_METHODS.GET);
|
|
49
|
+
|
|
38
50
|
_defineProperty(this, "_progressEvent", void 0);
|
|
51
|
+
|
|
39
52
|
if (!href) {
|
|
40
53
|
throw new IllegalArgumentException("You must pass a href to the resource that is requested");
|
|
41
54
|
}
|
|
55
|
+
|
|
42
56
|
this.options = options;
|
|
43
57
|
this._response = new ModularUIResponse();
|
|
44
58
|
this.href = typeof href === "string" ? new Href(href) : href;
|
|
45
|
-
this.locale = options.locale
|
|
46
|
-
|
|
47
|
-
// copy request parameters to response, to be able to use them in the models
|
|
59
|
+
this.locale = (_options$locale = options.locale) !== null && _options$locale !== void 0 ? _options$locale : "en"; // copy request parameters to response, to be able to use them in the models
|
|
48
60
|
// self links are missing the request parameters
|
|
61
|
+
|
|
49
62
|
this._response.parameters = this.href.parameters;
|
|
63
|
+
|
|
50
64
|
if (options.targetModel) {
|
|
51
65
|
this.targetModel = options.targetModel;
|
|
52
66
|
}
|
|
67
|
+
|
|
53
68
|
if (options.method) {
|
|
54
69
|
this.method = options.method;
|
|
55
70
|
} else {
|
|
56
71
|
this.method = this.href.method;
|
|
57
72
|
}
|
|
58
73
|
}
|
|
59
|
-
|
|
60
74
|
/**
|
|
61
75
|
*/
|
|
76
|
+
|
|
77
|
+
|
|
62
78
|
get contributionsHref() {
|
|
63
79
|
return this._contributionsHref;
|
|
64
80
|
}
|
|
65
|
-
|
|
66
81
|
/**
|
|
67
82
|
*/
|
|
83
|
+
|
|
84
|
+
|
|
68
85
|
set contributionsHref(contributionsHref) {
|
|
69
86
|
this._contributionsHref = contributionsHref;
|
|
70
87
|
}
|
|
71
|
-
|
|
72
88
|
/**
|
|
73
89
|
*/
|
|
90
|
+
|
|
91
|
+
|
|
74
92
|
set locale(locale) {
|
|
75
93
|
this._locale = locale;
|
|
76
94
|
this._response.locale = locale;
|
|
77
95
|
}
|
|
78
|
-
|
|
79
96
|
/**
|
|
80
97
|
*/
|
|
98
|
+
|
|
99
|
+
|
|
81
100
|
get locale() {
|
|
82
101
|
return this._locale;
|
|
83
102
|
}
|
|
84
|
-
|
|
85
103
|
/**
|
|
86
104
|
*/
|
|
105
|
+
|
|
106
|
+
|
|
87
107
|
get response() {
|
|
88
108
|
return this._response;
|
|
89
109
|
}
|
|
90
|
-
|
|
91
110
|
/**
|
|
92
111
|
*/
|
|
112
|
+
|
|
113
|
+
|
|
93
114
|
set href(href) {
|
|
94
115
|
this._href = href;
|
|
95
116
|
}
|
|
96
|
-
|
|
97
117
|
/**
|
|
98
118
|
*/
|
|
119
|
+
|
|
120
|
+
|
|
99
121
|
get href() {
|
|
100
122
|
return this._href;
|
|
101
123
|
}
|
|
102
|
-
|
|
103
124
|
/**
|
|
104
125
|
*/
|
|
126
|
+
|
|
127
|
+
|
|
105
128
|
set method(method) {
|
|
106
129
|
this._method = method;
|
|
107
130
|
}
|
|
108
|
-
|
|
109
131
|
/**
|
|
110
132
|
*/
|
|
133
|
+
|
|
134
|
+
|
|
111
135
|
get method() {
|
|
112
136
|
return this._method;
|
|
113
137
|
}
|
|
114
|
-
|
|
115
138
|
/**
|
|
116
139
|
*/
|
|
140
|
+
|
|
141
|
+
|
|
117
142
|
get options() {
|
|
118
|
-
return {
|
|
119
|
-
...this._options,
|
|
143
|
+
return { ...this._options,
|
|
120
144
|
locale: this.locale,
|
|
121
145
|
method: this.method
|
|
122
146
|
};
|
|
123
147
|
}
|
|
124
|
-
|
|
125
148
|
/**
|
|
126
149
|
*/
|
|
150
|
+
|
|
151
|
+
|
|
127
152
|
set options(options) {
|
|
128
153
|
this._options = options;
|
|
129
154
|
}
|
|
130
|
-
|
|
131
155
|
/**
|
|
132
156
|
*/
|
|
157
|
+
|
|
158
|
+
|
|
133
159
|
get withChildModels() {
|
|
134
160
|
return !("childmodels" in this.options) || this.options.childmodels === true;
|
|
135
161
|
}
|
|
136
|
-
|
|
137
162
|
/**
|
|
138
163
|
*/
|
|
164
|
+
|
|
165
|
+
|
|
139
166
|
set targetModel(targetModel) {
|
|
140
167
|
this._targetModel = targetModel;
|
|
141
168
|
}
|
|
142
|
-
|
|
143
169
|
/**
|
|
144
170
|
*/
|
|
171
|
+
|
|
172
|
+
|
|
145
173
|
get targetModel() {
|
|
146
174
|
return this._targetModel;
|
|
147
175
|
}
|
|
148
|
-
|
|
149
176
|
/**
|
|
150
177
|
*/
|
|
178
|
+
|
|
179
|
+
|
|
151
180
|
createModel() {
|
|
152
|
-
const Model = this.targetModel || resolveModel(this.response);
|
|
181
|
+
const Model = this.targetModel || resolveModel(this.response); // check for ResourceModel
|
|
153
182
|
|
|
154
|
-
// check for ResourceModel
|
|
155
183
|
if (Model && Model.isApplicableModel) {
|
|
156
184
|
return new Model(this.response);
|
|
157
185
|
}
|
|
158
|
-
throw new IllegalStateException(`No model available for data: ${_JSON$stringify(this.response)}`);
|
|
159
|
-
}
|
|
160
186
|
|
|
187
|
+
throw new IllegalStateException("No model available for data: ".concat(_JSON$stringify(this.response)));
|
|
188
|
+
}
|
|
161
189
|
/**
|
|
162
190
|
*/
|
|
191
|
+
|
|
192
|
+
|
|
163
193
|
processContributionsService(contributionsData) {
|
|
164
194
|
if (!isPlainObject(contributionsData)) {
|
|
165
195
|
throw new IllegalArgumentException("Missing contributions data or contributions is not JSON");
|
|
166
196
|
}
|
|
197
|
+
|
|
167
198
|
const [contributionsKey] = _Object$keys(contributionsData);
|
|
199
|
+
|
|
168
200
|
if (contributionsData.error && contributionsKey === "error") {
|
|
169
201
|
this.handleContributionsError(contributionsData.error);
|
|
170
|
-
}
|
|
202
|
+
} // The key of the data service is different from the contributions service for forms
|
|
203
|
+
|
|
171
204
|
|
|
172
|
-
// The key of the data service is different from the contributions service for forms
|
|
173
205
|
if (!(this.response.key in contributionsData)) {
|
|
174
206
|
this.response.key = contributionsKey;
|
|
175
207
|
}
|
|
208
|
+
|
|
176
209
|
this.response.contributions = contributionsData[this.response.key];
|
|
177
210
|
}
|
|
178
|
-
|
|
179
211
|
/**
|
|
180
212
|
*/
|
|
213
|
+
|
|
214
|
+
|
|
181
215
|
handleContributionsError(error) {
|
|
182
|
-
var _error$properties;
|
|
183
|
-
|
|
216
|
+
var _error$properties$mes, _error$properties;
|
|
217
|
+
|
|
218
|
+
const errorMessage = (_error$properties$mes = (_error$properties = error.properties) === null || _error$properties === void 0 ? void 0 : _error$properties.message) !== null && _error$properties$mes !== void 0 ? _error$properties$mes : "Error in contribution";
|
|
184
219
|
throw new ModularUIError(errorMessage, error, this.contributionsHref);
|
|
185
220
|
}
|
|
186
|
-
|
|
187
221
|
/**
|
|
188
222
|
*/
|
|
223
|
+
|
|
224
|
+
|
|
189
225
|
handleDataError(error) {
|
|
190
226
|
if (error.properties) {
|
|
191
|
-
var _error$properties2;
|
|
192
|
-
|
|
227
|
+
var _error$properties$mes2, _error$properties2;
|
|
228
|
+
|
|
229
|
+
const errorMessage = (_error$properties$mes2 = (_error$properties2 = error.properties) === null || _error$properties2 === void 0 ? void 0 : _error$properties2.message) !== null && _error$properties$mes2 !== void 0 ? _error$properties$mes2 : "Error in data";
|
|
193
230
|
throw new ModularUIError(errorMessage, error, this.href.path.toString());
|
|
194
231
|
}
|
|
232
|
+
|
|
195
233
|
throw new IllegalArgumentException(error);
|
|
196
234
|
}
|
|
197
|
-
|
|
198
235
|
/**
|
|
199
236
|
*/
|
|
237
|
+
|
|
238
|
+
|
|
200
239
|
handleData(key, data) {
|
|
201
240
|
this.response.key = key;
|
|
202
241
|
this.response.data = data;
|
|
203
242
|
const links = data._links;
|
|
243
|
+
|
|
204
244
|
if (links && links.contributions) {
|
|
205
245
|
this.contributionsHref = links.contributions.href;
|
|
206
246
|
} else if (Array.isArray(links) && links[0].contributions) {
|
|
207
247
|
this.contributionsHref = links[0].contributions.href;
|
|
208
248
|
} else {
|
|
209
|
-
throw new IllegalArgumentException(
|
|
249
|
+
throw new IllegalArgumentException("Contributions link not found for data with key ".concat(key));
|
|
210
250
|
}
|
|
211
251
|
}
|
|
212
|
-
|
|
213
252
|
/**
|
|
214
253
|
*/
|
|
254
|
+
|
|
255
|
+
|
|
215
256
|
processDataService(data) {
|
|
216
257
|
if (!isPlainObject(data)) {
|
|
217
258
|
throw new IllegalArgumentException("Missing data or data is not JSON");
|
|
218
259
|
}
|
|
260
|
+
|
|
219
261
|
if (data.error) {
|
|
220
262
|
this.handleDataError(data.error);
|
|
221
263
|
} else {
|
|
222
264
|
const [key] = _Object$keys(data);
|
|
265
|
+
|
|
223
266
|
this.handleData(key, data[key]);
|
|
224
267
|
}
|
|
225
268
|
}
|
|
226
|
-
|
|
227
269
|
/**
|
|
228
270
|
*/
|
|
271
|
+
|
|
272
|
+
|
|
229
273
|
fetchContributionsService() {
|
|
274
|
+
var _context;
|
|
275
|
+
|
|
230
276
|
if (!this.contributionsHref) {
|
|
231
277
|
throw new IllegalStateException("Missing a contributions href");
|
|
232
278
|
}
|
|
279
|
+
|
|
233
280
|
return universalFetch({
|
|
234
|
-
url:
|
|
281
|
+
url: _concatInstanceProperty(_context = "".concat(BASE)).call(_context, this.contributionsHref),
|
|
235
282
|
cache: true,
|
|
236
283
|
locale: this.options.locale
|
|
237
284
|
});
|
|
238
285
|
}
|
|
239
|
-
|
|
240
286
|
/**
|
|
241
287
|
*/
|
|
288
|
+
|
|
289
|
+
|
|
242
290
|
fetchDataService() {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
291
|
+
var _context2;
|
|
292
|
+
|
|
293
|
+
return universalFetch({ ...this.options,
|
|
294
|
+
url: _concatInstanceProperty(_context2 = "".concat(BASE)).call(_context2, this.href.path),
|
|
246
295
|
params: this.href.getQuerystringForModularUI(),
|
|
247
296
|
locale: this.options.locale,
|
|
248
297
|
onProgress: this.onProgress
|
|
249
298
|
});
|
|
250
299
|
}
|
|
251
|
-
|
|
252
300
|
/**
|
|
253
301
|
* Check if links contain a 'hide-when-empty' layout hint and remove the link from
|
|
254
302
|
* the component when it exists and no results are available
|
|
255
303
|
*/
|
|
304
|
+
|
|
305
|
+
|
|
256
306
|
async processAsyncLayoutHints() {
|
|
257
307
|
if (getSetting("ALLOW_HIDE_WHEN_EMPTY_ON_TABS")) {
|
|
258
308
|
await this.processApplicationLinks();
|
|
259
309
|
await this.processTabLinks();
|
|
260
310
|
}
|
|
311
|
+
|
|
261
312
|
await this.processPanelLinks();
|
|
262
313
|
return _Promise.resolve();
|
|
263
314
|
}
|
|
264
|
-
|
|
265
315
|
/**
|
|
266
316
|
* hide application links<br>
|
|
267
317
|
* _links on application data contains an extra level of tab links
|
|
268
318
|
*/
|
|
319
|
+
|
|
320
|
+
|
|
269
321
|
processApplicationLinks() {
|
|
270
322
|
const contributionLinks = this.response.contributions._links;
|
|
271
323
|
const dataLinks = this.response.data._links;
|
|
324
|
+
|
|
272
325
|
if (!contributionLinks || !dataLinks) {
|
|
273
326
|
return _Promise.resolve();
|
|
274
327
|
}
|
|
328
|
+
|
|
275
329
|
if ("tab" in contributionLinks && "tab" in dataLinks) {
|
|
276
330
|
for (const contributionTabLink of contributionLinks.tab) {
|
|
277
331
|
if ("components" in contributionTabLink) {
|
|
278
|
-
var
|
|
279
|
-
|
|
332
|
+
var _context3;
|
|
333
|
+
|
|
334
|
+
const dataTabLinks = _findInstanceProperty(_context3 = dataLinks.tab).call(_context3, dataLink => dataLink.name === contributionTabLink.name);
|
|
335
|
+
|
|
280
336
|
if (dataTabLinks && "components" in dataTabLinks) {
|
|
281
337
|
return this.processLinks(dataTabLinks.components, contributionTabLink.components).then(newLinks => this.replaceApplicationLinks(contributionTabLink.name, newLinks));
|
|
282
338
|
}
|
|
283
339
|
}
|
|
284
340
|
}
|
|
285
341
|
}
|
|
342
|
+
|
|
286
343
|
return _Promise.resolve();
|
|
287
344
|
}
|
|
288
|
-
|
|
289
345
|
/**
|
|
290
346
|
* Replace hidden link in application link tree
|
|
291
347
|
*/
|
|
348
|
+
|
|
349
|
+
|
|
292
350
|
replaceApplicationLinks(tabName, newLinks) {
|
|
293
|
-
var
|
|
294
|
-
|
|
351
|
+
var _context4;
|
|
352
|
+
|
|
353
|
+
this.response.data._links.tab = _mapInstanceProperty(_context4 = this.response.data._links.tab).call(_context4, tabLink => {
|
|
295
354
|
const key = tabLink.name;
|
|
355
|
+
|
|
296
356
|
if (tabName === key) {
|
|
297
357
|
tabLink.components = newLinks;
|
|
298
358
|
}
|
|
359
|
+
|
|
299
360
|
return tabLink;
|
|
300
361
|
});
|
|
301
362
|
}
|
|
302
|
-
|
|
303
363
|
/**
|
|
304
364
|
*/
|
|
365
|
+
|
|
366
|
+
|
|
305
367
|
processTabLinks() {
|
|
306
368
|
const contributionLinks = this.response.contributions._links;
|
|
369
|
+
|
|
307
370
|
if (!contributionLinks) {
|
|
308
371
|
return _Promise.resolve();
|
|
309
372
|
}
|
|
373
|
+
|
|
310
374
|
if ("component" in contributionLinks) {
|
|
311
375
|
return this.processLinks(this.response.data._links.component, contributionLinks.component).then(newLinks => {
|
|
312
376
|
this.response.data._links.component = newLinks;
|
|
313
377
|
});
|
|
314
378
|
}
|
|
379
|
+
|
|
315
380
|
return _Promise.resolve();
|
|
316
381
|
}
|
|
317
|
-
|
|
318
382
|
/**
|
|
319
383
|
*/
|
|
384
|
+
|
|
385
|
+
|
|
320
386
|
processPanelLinks() {
|
|
321
387
|
const contributionLinks = this.response.contributions._links;
|
|
388
|
+
|
|
322
389
|
if (!contributionLinks) {
|
|
323
390
|
return _Promise.resolve();
|
|
324
391
|
}
|
|
392
|
+
|
|
325
393
|
if ("panel" in contributionLinks) {
|
|
326
394
|
return this.processLinks(this.response.data._links, contributionLinks.panel).then(newLinks => {
|
|
327
395
|
this.response.data._links = newLinks;
|
|
328
396
|
});
|
|
329
397
|
}
|
|
398
|
+
|
|
330
399
|
return _Promise.resolve();
|
|
331
400
|
}
|
|
332
|
-
|
|
333
401
|
/**
|
|
334
402
|
* Retrieve an object of key: link
|
|
335
403
|
*/
|
|
404
|
+
|
|
405
|
+
|
|
336
406
|
dataLinksPerName(dataLinks) {
|
|
337
407
|
if (Array.isArray(dataLinks)) {
|
|
338
408
|
const links = {};
|
|
409
|
+
|
|
339
410
|
for (const dataLink of dataLinks) {
|
|
340
411
|
links[dataLink.name] = dataLink;
|
|
341
412
|
}
|
|
413
|
+
|
|
342
414
|
return links;
|
|
343
415
|
}
|
|
416
|
+
|
|
344
417
|
return dataLinks;
|
|
345
418
|
}
|
|
346
|
-
|
|
347
419
|
/**
|
|
348
420
|
* Check if links are empty and hide them when hide-when-empty hint exists
|
|
349
421
|
*/
|
|
422
|
+
|
|
423
|
+
|
|
350
424
|
processLinks(dataLinks, contributionLinks) {
|
|
351
425
|
const linksPerName = this.dataLinksPerName(dataLinks);
|
|
426
|
+
|
|
352
427
|
const hideWhenEmptyLinks = _filterInstanceProperty(contributionLinks).call(contributionLinks, contributionLink => {
|
|
353
428
|
var _contributionLink$lay;
|
|
429
|
+
|
|
354
430
|
return (_contributionLink$lay = contributionLink.layouthint) === null || _contributionLink$lay === void 0 ? void 0 : _includesInstanceProperty(_contributionLink$lay).call(_contributionLink$lay, HIDE_WHEN_EMPTY);
|
|
355
431
|
});
|
|
432
|
+
|
|
356
433
|
const isHiddenListChecks = [];
|
|
434
|
+
|
|
357
435
|
for (const contributionLink of hideWhenEmptyLinks) {
|
|
358
436
|
const dataLink = linksPerName[contributionLink.name];
|
|
437
|
+
|
|
359
438
|
if (dataLink !== null && dataLink !== void 0 && dataLink.href) {
|
|
360
439
|
isHiddenListChecks.push(this.isHiddenList(contributionLink.name, dataLink.href));
|
|
361
440
|
}
|
|
362
441
|
}
|
|
442
|
+
|
|
363
443
|
return _Promise.all(isHiddenListChecks).then(hiddenLinks => {
|
|
364
444
|
if (Array.isArray(dataLinks)) {
|
|
365
445
|
return _filterInstanceProperty(dataLinks).call(dataLinks, dataLink => !_includesInstanceProperty(hiddenLinks).call(hiddenLinks, dataLink.name));
|
|
366
446
|
}
|
|
447
|
+
|
|
367
448
|
const newDataLinks = {};
|
|
449
|
+
|
|
368
450
|
for (const dataLinkKey in dataLinks) {
|
|
369
451
|
if (!_includesInstanceProperty(hiddenLinks).call(hiddenLinks, dataLinkKey)) {
|
|
370
452
|
newDataLinks[dataLinkKey] = dataLinks[dataLinkKey];
|
|
371
453
|
}
|
|
372
454
|
}
|
|
455
|
+
|
|
373
456
|
return newDataLinks;
|
|
374
457
|
});
|
|
375
458
|
}
|
|
376
|
-
|
|
377
459
|
/**
|
|
378
460
|
*/
|
|
461
|
+
|
|
462
|
+
|
|
379
463
|
isHiddenList(name, href) {
|
|
464
|
+
var _context5;
|
|
465
|
+
|
|
380
466
|
const HIDE_WHEN_EMPTY_IGNORE_TASKS = getSetting("HIDE_WHEN_EMPTY_IGNORE_TASKS", false);
|
|
381
|
-
return universalFetch({
|
|
382
|
-
|
|
383
|
-
url: `${BASE}${href}`
|
|
467
|
+
return universalFetch({ ...this.options,
|
|
468
|
+
url: _concatInstanceProperty(_context5 = "".concat(BASE)).call(_context5, href)
|
|
384
469
|
}).then(response => {
|
|
385
470
|
if (isPlainObject(response)) {
|
|
386
471
|
const [key] = _Object$keys(response);
|
|
472
|
+
|
|
387
473
|
const {
|
|
388
474
|
_embedded,
|
|
389
475
|
actions
|
|
@@ -391,52 +477,63 @@ class ModularUIRequest {
|
|
|
391
477
|
const noListItems = _embedded === null;
|
|
392
478
|
const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;
|
|
393
479
|
const isHidden = noListItems && noActions;
|
|
480
|
+
|
|
394
481
|
if (isHidden) {
|
|
395
482
|
return name;
|
|
396
483
|
}
|
|
397
484
|
}
|
|
485
|
+
|
|
398
486
|
return "";
|
|
399
487
|
}).catch(() => {
|
|
400
488
|
return "";
|
|
401
489
|
});
|
|
402
490
|
}
|
|
403
|
-
|
|
404
491
|
/**
|
|
405
492
|
*/
|
|
493
|
+
|
|
494
|
+
|
|
406
495
|
set onProgress(progressEvent) {
|
|
407
496
|
this._progressEvent = progressEvent;
|
|
408
497
|
}
|
|
409
|
-
|
|
410
498
|
/**
|
|
411
499
|
*/
|
|
500
|
+
|
|
501
|
+
|
|
412
502
|
get onProgress() {
|
|
413
503
|
return this._progressEvent || null;
|
|
414
504
|
}
|
|
415
|
-
|
|
416
505
|
/**
|
|
417
506
|
* Combine previous send request data with new validation data to create a complete request object
|
|
418
507
|
* The received model is new FormModel containing ONLY the current question, not the previously entered questions
|
|
419
508
|
* to create a complete request we append the originally send form objects
|
|
420
509
|
*/
|
|
510
|
+
|
|
511
|
+
|
|
421
512
|
getDynamicValidationData(model) {
|
|
513
|
+
var _JSON$stringify2;
|
|
514
|
+
|
|
422
515
|
const prevData = typeof this.options.data === "string" ? JSON.parse(this.options.data) : this.options.data;
|
|
516
|
+
|
|
423
517
|
if (model instanceof FormModel) {
|
|
424
|
-
const newData = JSON.parse(model.validationData);
|
|
425
|
-
|
|
518
|
+
const newData = JSON.parse(model.validationData); // $FlowFixMe incompatible-call
|
|
519
|
+
|
|
426
520
|
return _JSON$stringify(deepmerge(prevData || {}, newData));
|
|
427
521
|
}
|
|
428
|
-
return _JSON$stringify(prevData) ?? "{}";
|
|
429
|
-
}
|
|
430
522
|
|
|
523
|
+
return (_JSON$stringify2 = _JSON$stringify(prevData)) !== null && _JSON$stringify2 !== void 0 ? _JSON$stringify2 : "{}";
|
|
524
|
+
}
|
|
431
525
|
/**
|
|
432
526
|
* First load of dynamic values when a form is loaded
|
|
433
527
|
*/
|
|
528
|
+
|
|
529
|
+
|
|
434
530
|
loadDynamicValidations(model) {
|
|
435
531
|
if (!this.options.isValidationRequest && getSetting("USE_INSTANT_SERVER_VALIDATION") && model instanceof FormModel && model.currentFormObject && model.currentFormObject.hasDynamicValidations) {
|
|
532
|
+
var _context6;
|
|
533
|
+
|
|
436
534
|
const validationHref = this.href.setParameter("commit", "false");
|
|
437
|
-
return universalFetch({
|
|
438
|
-
|
|
439
|
-
url: `${BASE}${this.href.path}`,
|
|
535
|
+
return universalFetch({ ...this.options,
|
|
536
|
+
url: _concatInstanceProperty(_context6 = "".concat(BASE)).call(_context6, this.href.path),
|
|
440
537
|
params: validationHref.getQuerystringForModularUI(),
|
|
441
538
|
childmodels: false,
|
|
442
539
|
data: this.getDynamicValidationData(model)
|
|
@@ -444,62 +541,75 @@ class ModularUIRequest {
|
|
|
444
541
|
if (data == null || typeof data !== "object") {
|
|
445
542
|
return model;
|
|
446
543
|
}
|
|
544
|
+
|
|
447
545
|
const [key] = _Object$keys(data);
|
|
546
|
+
|
|
448
547
|
return model.updateValidations(data[key]);
|
|
449
548
|
});
|
|
450
549
|
}
|
|
550
|
+
|
|
451
551
|
return _Promise.resolve(model);
|
|
452
552
|
}
|
|
453
|
-
|
|
454
553
|
/**
|
|
455
554
|
*/
|
|
555
|
+
|
|
556
|
+
|
|
456
557
|
fetch() {
|
|
457
558
|
return this.fetchDataService().then(data => {
|
|
458
559
|
if (data == null) {
|
|
459
|
-
throw new Error(
|
|
560
|
+
throw new Error("No data received for ".concat(this.href.toString()));
|
|
460
561
|
}
|
|
562
|
+
|
|
461
563
|
this.processDataService(data);
|
|
462
564
|
return this.fetchContributionsService();
|
|
463
565
|
}).then(contributionsData => {
|
|
464
566
|
if (contributionsData == null) {
|
|
465
|
-
throw new Error(
|
|
567
|
+
throw new Error("No contributions data received for ".concat(this.contributionsHref));
|
|
466
568
|
}
|
|
569
|
+
|
|
467
570
|
this.processContributionsService(contributionsData);
|
|
468
571
|
return this.processAsyncLayoutHints();
|
|
469
572
|
}).then(() => _Promise.resolve(this.createModel())).then(model => this.loadDynamicValidations(model)).then(model => {
|
|
470
573
|
if (this.withChildModels) {
|
|
471
574
|
return this.fetchChildModels(model);
|
|
472
575
|
}
|
|
576
|
+
|
|
473
577
|
return _Promise.resolve(model);
|
|
474
578
|
});
|
|
475
579
|
}
|
|
476
|
-
|
|
477
580
|
/**
|
|
478
581
|
*/
|
|
582
|
+
|
|
583
|
+
|
|
479
584
|
fetchFromCache() {
|
|
480
|
-
this.options = {
|
|
481
|
-
...this.options,
|
|
585
|
+
this.options = { ...this.options,
|
|
482
586
|
cache: true
|
|
483
587
|
};
|
|
484
588
|
return this.fetch();
|
|
485
589
|
}
|
|
486
|
-
|
|
487
590
|
/**
|
|
488
591
|
*/
|
|
592
|
+
|
|
593
|
+
|
|
489
594
|
fetchChildModels(model) {
|
|
490
595
|
const childModelLinks = model.getInitialChildModelLinks();
|
|
596
|
+
|
|
491
597
|
const childModelRequests = _mapInstanceProperty(childModelLinks).call(childModelLinks, childModelLink => {
|
|
492
598
|
const request = new ModularUIRequest(childModelLink.href, {
|
|
493
599
|
locale: this.locale
|
|
494
600
|
});
|
|
601
|
+
|
|
495
602
|
if (childModelLink.targetModel) {
|
|
496
603
|
request.targetModel = childModelLink.targetModel;
|
|
497
604
|
}
|
|
605
|
+
|
|
498
606
|
if (childModelLink.isCacheable) {
|
|
499
607
|
return request.fetchFromCache();
|
|
500
608
|
}
|
|
609
|
+
|
|
501
610
|
return request.fetch();
|
|
502
611
|
});
|
|
612
|
+
|
|
503
613
|
return _Promise.allSettled(childModelRequests).then(childModels => {
|
|
504
614
|
const resolvedChildModels = [];
|
|
505
615
|
childModels.forEach(childModel => {
|
|
@@ -507,6 +617,7 @@ class ModularUIRequest {
|
|
|
507
617
|
const {
|
|
508
618
|
reason
|
|
509
619
|
} = childModel;
|
|
620
|
+
|
|
510
621
|
if (reason.name !== "Error.ChangePasswordRequired") {
|
|
511
622
|
console.error("Unexpected error when retrieving child model:", reason);
|
|
512
623
|
}
|
|
@@ -518,25 +629,29 @@ class ModularUIRequest {
|
|
|
518
629
|
return model;
|
|
519
630
|
});
|
|
520
631
|
}
|
|
521
|
-
|
|
522
632
|
/**
|
|
523
633
|
*/
|
|
634
|
+
|
|
635
|
+
|
|
524
636
|
fetchContent(withChildSections) {
|
|
525
637
|
return this.fetchFromCache().then(model => {
|
|
526
638
|
if (withChildSections && model instanceof ContentModel && model.childSectionLinks.length > 0) {
|
|
527
639
|
return this.fetchContentChildSections(model);
|
|
528
640
|
}
|
|
641
|
+
|
|
529
642
|
return _Promise.resolve(model);
|
|
530
643
|
});
|
|
531
644
|
}
|
|
532
|
-
|
|
533
645
|
/**
|
|
534
646
|
* Recursively return child sections defined on the content model
|
|
535
647
|
*/
|
|
648
|
+
|
|
649
|
+
|
|
536
650
|
fetchContentChildSections(contentModel) {
|
|
537
|
-
var
|
|
651
|
+
var _context7;
|
|
652
|
+
|
|
538
653
|
const newContentModel = contentModel.clone();
|
|
539
|
-
return _Promise.all(_mapInstanceProperty(
|
|
654
|
+
return _Promise.all(_mapInstanceProperty(_context7 = contentModel.childSectionLinks).call(_context7, childSectionLink => {
|
|
540
655
|
const contentHrefWithEntryDate = childSectionLink.selfhref.addParameter(TIMEVERSION_FILTER_NAME, contentModel.entryDate);
|
|
541
656
|
const request = new ModularUIRequest(contentHrefWithEntryDate, {
|
|
542
657
|
locale: this.locale
|
|
@@ -547,6 +662,8 @@ class ModularUIRequest {
|
|
|
547
662
|
return newContentModel;
|
|
548
663
|
});
|
|
549
664
|
}
|
|
665
|
+
|
|
550
666
|
}
|
|
667
|
+
|
|
551
668
|
export default ModularUIRequest;
|
|
552
669
|
//# sourceMappingURL=ModularUIRequest.js.map
|