@beinformed/ui 1.59.22 → 1.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/lib/builder/index.js +18 -0
- package/lib/builder/index.js.map +1 -0
- package/lib/builder/mergeLayoutHintConfigurations.js +60 -0
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -0
- package/lib/constants/Constants.js +189 -0
- package/lib/constants/Constants.js.map +1 -0
- package/lib/constants/LayoutHintConfig.js +173 -0
- package/lib/constants/LayoutHintConfig.js.map +1 -0
- package/lib/constants/LayoutHints.js +135 -0
- package/lib/constants/LayoutHints.js.map +1 -0
- package/lib/constants/Settings.js +219 -0
- package/lib/constants/Settings.js.map +1 -0
- package/lib/constants/index.js +40 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/exceptions/ConfigurationException.js +17 -0
- package/lib/exceptions/ConfigurationException.js.map +1 -0
- package/lib/exceptions/FetchException.js +72 -0
- package/lib/exceptions/FetchException.js.map +1 -0
- package/lib/exceptions/IllegalArgumentException.js +17 -0
- package/lib/exceptions/IllegalArgumentException.js.map +1 -0
- package/lib/exceptions/IllegalReturnException.js +16 -0
- package/lib/exceptions/IllegalReturnException.js.map +1 -0
- package/lib/exceptions/IllegalStateException.js +17 -0
- package/lib/exceptions/IllegalStateException.js.map +1 -0
- package/lib/exceptions/JsonParseException.js +17 -0
- package/lib/exceptions/JsonParseException.js.map +1 -0
- package/lib/exceptions/MissingPropertyException.js +17 -0
- package/lib/exceptions/MissingPropertyException.js.map +1 -0
- package/lib/exceptions/NetworkException.js +23 -0
- package/lib/exceptions/NetworkException.js.map +1 -0
- package/lib/exceptions/NotAllowedUriException.js +17 -0
- package/lib/exceptions/NotAllowedUriException.js.map +1 -0
- package/lib/exceptions/NotFoundException.js +26 -0
- package/lib/exceptions/NotFoundException.js.map +1 -0
- package/lib/exceptions/ServerRequestException.js +17 -0
- package/lib/exceptions/ServerRequestException.js.map +1 -0
- package/lib/exceptions/ThemePropertyException.js +17 -0
- package/lib/exceptions/ThemePropertyException.js.map +1 -0
- package/lib/exceptions/TimeoutException.js +17 -0
- package/lib/exceptions/TimeoutException.js.map +1 -0
- package/lib/exceptions/UnauthorizedException.js +25 -0
- package/lib/exceptions/UnauthorizedException.js.map +1 -0
- package/lib/exceptions/UnsupportedOperationException.js +17 -0
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -0
- package/lib/exceptions/index.js +112 -0
- package/lib/exceptions/index.js.map +1 -0
- package/lib/hooks/index.js +183 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useAllFormsOnModel.js +81 -0
- package/lib/hooks/useAllFormsOnModel.js.map +1 -0
- package/lib/hooks/useAuthentication.js +66 -0
- package/lib/hooks/useAuthentication.js.map +1 -0
- package/lib/hooks/useContent.js +49 -0
- package/lib/hooks/useContent.js.map +1 -0
- package/lib/hooks/useDeepCompareEffect.js +35 -0
- package/lib/hooks/useDeepCompareEffect.js.map +1 -0
- package/lib/hooks/useForm.js +98 -0
- package/lib/hooks/useForm.js.map +1 -0
- package/lib/hooks/useI18n.js +42 -0
- package/lib/hooks/useI18n.js.map +1 -0
- package/lib/hooks/useModal.js +43 -0
- package/lib/hooks/useModal.js.map +1 -0
- package/lib/hooks/useModelCatalog.js +179 -0
- package/lib/hooks/useModelCatalog.js.map +1 -0
- package/lib/hooks/useModels.js +45 -0
- package/lib/hooks/useModels.js.map +1 -0
- package/lib/hooks/useModularUI.js +69 -0
- package/lib/hooks/useModularUI.js.map +1 -0
- package/lib/hooks/useModularUIBasic.js +81 -0
- package/lib/hooks/useModularUIBasic.js.map +1 -0
- package/lib/hooks/useModularUIModel.js +128 -0
- package/lib/hooks/useModularUIModel.js.map +1 -0
- package/lib/hooks/useModularUIRequest.js +25 -0
- package/lib/hooks/useModularUIRequest.js.map +1 -0
- package/lib/hooks/useNotification.js +39 -0
- package/lib/hooks/useNotification.js.map +1 -0
- package/lib/hooks/usePreference.js +23 -0
- package/lib/hooks/usePreference.js.map +1 -0
- package/lib/hooks/useProgressIndicator.js +23 -0
- package/lib/hooks/useProgressIndicator.js.map +1 -0
- package/lib/hooks/useRouter.js +42 -0
- package/lib/hooks/useRouter.js.map +1 -0
- package/lib/i18n/Locale.js +128 -0
- package/lib/i18n/Locale.js.map +1 -0
- package/lib/i18n/Locales.js +140 -0
- package/lib/i18n/Locales.js.map +1 -0
- package/lib/i18n/Message.js +50 -0
- package/lib/i18n/Message.js.map +1 -0
- package/lib/i18n/index.js +57 -0
- package/lib/i18n/index.js.map +1 -0
- package/lib/i18n/languages.js +212 -0
- package/lib/i18n/languages.js.map +1 -0
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js +104 -0
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -0
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +104 -0
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -0
- package/lib/i18n/types.js +2 -0
- package/lib/i18n/types.js.map +1 -0
- package/lib/i18n/withMessage.js +27 -0
- package/lib/i18n/withMessage.js.map +1 -0
- package/lib/index.js +73 -0
- package/lib/index.js.map +1 -0
- package/lib/models/actions/ActionCollection.js +90 -0
- package/lib/models/actions/ActionCollection.js.map +1 -0
- package/lib/models/actions/ActionModel.js +194 -0
- package/lib/models/actions/ActionModel.js.map +1 -0
- package/lib/models/application/ApplicationModel.js +133 -0
- package/lib/models/application/ApplicationModel.js.map +1 -0
- package/lib/models/attributes/AttributeCollection.js +282 -0
- package/lib/models/attributes/AttributeCollection.js.map +1 -0
- package/lib/models/attributes/AttributeContent.js +203 -0
- package/lib/models/attributes/AttributeContent.js.map +1 -0
- package/lib/models/attributes/AttributeDataHelper.js +267 -0
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -0
- package/lib/models/attributes/AttributeModel.js +824 -0
- package/lib/models/attributes/AttributeModel.js.map +1 -0
- package/lib/models/attributes/AttributeSetModel.js +105 -0
- package/lib/models/attributes/AttributeSetModel.js.map +1 -0
- package/lib/models/attributes/BooleanAttributeModel.js +295 -0
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -0
- package/lib/models/attributes/CaptchaAttributeModel.js +60 -0
- package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -0
- package/lib/models/attributes/ChoiceAttributeModel.js +411 -0
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -0
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +300 -0
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -0
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +342 -0
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -0
- package/lib/models/attributes/CompositeAttributeChildCollection.js +189 -0
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -0
- package/lib/models/attributes/CompositeAttributeModel.js +380 -0
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -0
- package/lib/models/attributes/DatetimeAttributeModel.js +465 -0
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -0
- package/lib/models/attributes/HelptextAttributeModel.js +55 -0
- package/lib/models/attributes/HelptextAttributeModel.js.map +1 -0
- package/lib/models/attributes/LabelAttributeModel.js +41 -0
- package/lib/models/attributes/LabelAttributeModel.js.map +1 -0
- package/lib/models/attributes/MemoAttributeModel.js +49 -0
- package/lib/models/attributes/MemoAttributeModel.js.map +1 -0
- package/lib/models/attributes/MoneyAttributeModel.js +49 -0
- package/lib/models/attributes/MoneyAttributeModel.js.map +1 -0
- package/lib/models/attributes/NumberAttributeModel.js +201 -0
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -0
- package/lib/models/attributes/PasswordAttributeModel.js +217 -0
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -0
- package/lib/models/attributes/StringAttributeModel.js +284 -0
- package/lib/models/attributes/StringAttributeModel.js.map +1 -0
- package/lib/models/attributes/UploadAttributeModel.js +223 -0
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -0
- package/lib/models/attributes/XMLAttributeModel.js +53 -0
- package/lib/models/attributes/XMLAttributeModel.js.map +1 -0
- package/lib/models/attributes/_createAttribute.js +93 -0
- package/lib/models/attributes/_createAttribute.js.map +1 -0
- package/lib/models/attributes/input-constraints/BSNConstraint.js +72 -0
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/ConstraintCollection.js +50 -0
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -0
- package/lib/models/attributes/input-constraints/ConstraintModel.js +74 -0
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -0
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +205 -0
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +76 -0
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +76 -0
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +122 -0
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +66 -0
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +98 -0
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/IBANConstraint.js +49 -0
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +53 -0
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +85 -0
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +177 -0
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +132 -0
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +126 -0
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +72 -0
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +47 -0
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +64 -0
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +64 -0
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +78 -0
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/RangeConstraint.js +143 -0
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/RegexConstraint.js +67 -0
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +178 -0
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -0
- package/lib/models/attributes/input-constraints/XMLConstraint.js +62 -0
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -0
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +66 -0
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -0
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +200 -0
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -0
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +88 -0
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -0
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +51 -0
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -0
- package/lib/models/base/BaseCollection.js +186 -0
- package/lib/models/base/BaseCollection.js.map +1 -0
- package/lib/models/base/BaseModel.js +149 -0
- package/lib/models/base/BaseModel.js.map +1 -0
- package/lib/models/base/ResourceCollection.js +41 -0
- package/lib/models/base/ResourceCollection.js.map +1 -0
- package/lib/models/base/ResourceModel.js +209 -0
- package/lib/models/base/ResourceModel.js.map +1 -0
- package/lib/models/caseview/CaseViewModel.js +163 -0
- package/lib/models/caseview/CaseViewModel.js.map +1 -0
- package/lib/models/concepts/BusinessScenarioModel.js +122 -0
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -0
- package/lib/models/concepts/ConceptDetailModel.js +281 -0
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -0
- package/lib/models/concepts/ConceptIndexModel.js +150 -0
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -0
- package/lib/models/concepts/ConceptLinkModel.js +152 -0
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -0
- package/lib/models/concepts/ConceptRelationCollection.js +82 -0
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -0
- package/lib/models/concepts/ConceptRelationModel.js +115 -0
- package/lib/models/concepts/ConceptRelationModel.js.map +1 -0
- package/lib/models/concepts/ConceptTypeDetailModel.js +128 -0
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -0
- package/lib/models/concepts/SourceReferenceCollection.js +35 -0
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -0
- package/lib/models/concepts/SourceReferenceModel.js +73 -0
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -0
- package/lib/models/content/ContentIndexModel.js +142 -0
- package/lib/models/content/ContentIndexModel.js.map +1 -0
- package/lib/models/content/ContentLinkModel.js +193 -0
- package/lib/models/content/ContentLinkModel.js.map +1 -0
- package/lib/models/content/ContentModel.js +207 -0
- package/lib/models/content/ContentModel.js.map +1 -0
- package/lib/models/content/ContentTOCModel.js +163 -0
- package/lib/models/content/ContentTOCModel.js.map +1 -0
- package/lib/models/content/ContentTypeModel.js +74 -0
- package/lib/models/content/ContentTypeModel.js.map +1 -0
- package/lib/models/content/SectionModel.js +180 -0
- package/lib/models/content/SectionModel.js.map +1 -0
- package/lib/models/content/SubSectionModel.js +167 -0
- package/lib/models/content/SubSectionModel.js.map +1 -0
- package/lib/models/contentconfiguration/ContentConfiguration.js +75 -0
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -0
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +143 -0
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -0
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +49 -0
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -0
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +54 -0
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -0
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +103 -0
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -0
- package/lib/models/detail/DetailModel.js +219 -0
- package/lib/models/detail/DetailModel.js.map +1 -0
- package/lib/models/error/ErrorCollection.js +111 -0
- package/lib/models/error/ErrorCollection.js.map +1 -0
- package/lib/models/error/ErrorModel.js +81 -0
- package/lib/models/error/ErrorModel.js.map +1 -0
- package/lib/models/error/ErrorResponse.js +304 -0
- package/lib/models/error/ErrorResponse.js.map +1 -0
- package/lib/models/filters/AssignmentFilterModel.js +161 -0
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -0
- package/lib/models/filters/BaseFilterModel.js +210 -0
- package/lib/models/filters/BaseFilterModel.js.map +1 -0
- package/lib/models/filters/ConceptIndexFilterModel.js +36 -0
- package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -0
- package/lib/models/filters/FilterCollection.js +155 -0
- package/lib/models/filters/FilterCollection.js.map +1 -0
- package/lib/models/filters/FilterModel.js +13 -0
- package/lib/models/filters/FilterModel.js.map +1 -0
- package/lib/models/filters/RangeFilterModel.js +44 -0
- package/lib/models/filters/RangeFilterModel.js.map +1 -0
- package/lib/models/filters/StringFilterModel.js +147 -0
- package/lib/models/filters/StringFilterModel.js.map +1 -0
- package/lib/models/form/FormModel.js +1038 -0
- package/lib/models/form/FormModel.js.map +1 -0
- package/lib/models/form/FormObjectModel.js +474 -0
- package/lib/models/form/FormObjectModel.js.map +1 -0
- package/lib/models/grouping/GroupingModel.js +191 -0
- package/lib/models/grouping/GroupingModel.js.map +1 -0
- package/lib/models/href/Href.js +496 -0
- package/lib/models/href/Href.js.map +1 -0
- package/lib/models/href/ListHref.js +135 -0
- package/lib/models/href/ListHref.js.map +1 -0
- package/lib/models/index.js +687 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/layouthint/LayoutHintCollection.js +118 -0
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -0
- package/lib/models/links/LinkCollection.js +171 -0
- package/lib/models/links/LinkCollection.js.map +1 -0
- package/lib/models/links/LinkModel.js +216 -0
- package/lib/models/links/LinkModel.js.map +1 -0
- package/lib/models/links/normalizeLinkJSON.js +107 -0
- package/lib/models/links/normalizeLinkJSON.js.map +1 -0
- package/lib/models/list/ListDetailModel.js +266 -0
- package/lib/models/list/ListDetailModel.js.map +1 -0
- package/lib/models/list/ListHeaderModel.js +95 -0
- package/lib/models/list/ListHeaderModel.js.map +1 -0
- package/lib/models/list/ListItemCollection.js +67 -0
- package/lib/models/list/ListItemCollection.js.map +1 -0
- package/lib/models/list/ListItemModel.js +95 -0
- package/lib/models/list/ListItemModel.js.map +1 -0
- package/lib/models/list/ListModel.js +385 -0
- package/lib/models/list/ListModel.js.map +1 -0
- package/lib/models/lookup/LookupOptionCollection.js +45 -0
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -0
- package/lib/models/lookup/LookupOptionsModel.js +71 -0
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -0
- package/lib/models/modelcatalog/ModelCatalogModel.js +69 -0
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -0
- package/lib/models/modelcatalog/ModelCategoryCollection.js +24 -0
- package/lib/models/modelcatalog/ModelCategoryCollection.js.map +1 -0
- package/lib/models/modelcatalog/ModelCategoryModel.js +60 -0
- package/lib/models/modelcatalog/ModelCategoryModel.js.map +1 -0
- package/lib/models/paging/PagesizeModel.js +50 -0
- package/lib/models/paging/PagesizeModel.js.map +1 -0
- package/lib/models/paging/PagingModel.js +95 -0
- package/lib/models/paging/PagingModel.js.map +1 -0
- package/lib/models/panels/GroupingPanelModel.js +143 -0
- package/lib/models/panels/GroupingPanelModel.js.map +1 -0
- package/lib/models/parameter/Parameter.js +108 -0
- package/lib/models/parameter/Parameter.js.map +1 -0
- package/lib/models/process/ProcessStatusSettingsModel.js +85 -0
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -0
- package/lib/models/resolveModel.js +57 -0
- package/lib/models/resolveModel.js.map +1 -0
- package/lib/models/search/CaseSearchModel.js +47 -0
- package/lib/models/search/CaseSearchModel.js.map +1 -0
- package/lib/models/sorting/SortOptionModel.js +106 -0
- package/lib/models/sorting/SortOptionModel.js.map +1 -0
- package/lib/models/sorting/SortingModel.js +112 -0
- package/lib/models/sorting/SortingModel.js.map +1 -0
- package/lib/models/tab/TabModel.js +143 -0
- package/lib/models/tab/TabModel.js.map +1 -0
- package/lib/models/taskgroup/TaskGroupCollection.js +21 -0
- package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -0
- package/lib/models/taskgroup/TaskGroupModel.js +87 -0
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -0
- package/lib/models/types.js +2 -0
- package/lib/models/types.js.map +1 -0
- package/lib/models/user/UserModel.js +59 -0
- package/lib/models/user/UserModel.js.map +1 -0
- package/lib/models/user/UserProfileModel.js +55 -0
- package/lib/models/user/UserProfileModel.js.map +1 -0
- package/lib/models/user/UserServicesModel.js +126 -0
- package/lib/models/user/UserServicesModel.js.map +1 -0
- package/lib/modularui/Authenticate.js +183 -0
- package/lib/modularui/Authenticate.js.map +1 -0
- package/lib/modularui/CaptchaRequest.js +71 -0
- package/lib/modularui/CaptchaRequest.js.map +1 -0
- package/lib/modularui/ModularUIError.js +30 -0
- package/lib/modularui/ModularUIError.js.map +1 -0
- package/lib/modularui/ModularUIRequest.js +716 -0
- package/lib/modularui/ModularUIRequest.js.map +1 -0
- package/lib/modularui/ModularUIResponse.js +147 -0
- package/lib/modularui/ModularUIResponse.js.map +1 -0
- package/lib/modularui/UploadRequest.js +103 -0
- package/lib/modularui/UploadRequest.js.map +1 -0
- package/lib/modularui/index.js +42 -0
- package/lib/modularui/index.js.map +1 -0
- package/lib/modularui/types.js +2 -0
- package/lib/modularui/types.js.map +1 -0
- package/lib/react/ErrorBoundary.js +56 -0
- package/lib/react/ErrorBoundary.js.map +1 -0
- package/lib/react/ErrorBoundaryFallback.js +41 -0
- package/lib/react/ErrorBoundaryFallback.js.map +1 -0
- package/lib/react/index.js +29 -0
- package/lib/react/index.js.map +1 -0
- package/lib/react/utils.js +32 -0
- package/lib/react/utils.js.map +1 -0
- package/lib/react-client/Init.js +44 -0
- package/lib/react-client/Init.js.map +1 -0
- package/lib/react-client/client.js +216 -0
- package/lib/react-client/client.js.map +1 -0
- package/lib/react-client/contextPath.js +26 -0
- package/lib/react-client/contextPath.js.map +1 -0
- package/lib/react-client/index.js +40 -0
- package/lib/react-client/index.js.map +1 -0
- package/lib/react-client/rehydrate.js +73 -0
- package/lib/react-client/rehydrate.js.map +1 -0
- package/lib/react-server/contextPath.js +10 -0
- package/lib/react-server/contextPath.js.map +1 -0
- package/lib/react-server/createSSRComplete.js +61 -0
- package/lib/react-server/createSSRComplete.js.map +1 -0
- package/lib/react-server/htmlpage.js +54 -0
- package/lib/react-server/htmlpage.js.map +1 -0
- package/lib/react-server/index.js +82 -0
- package/lib/react-server/index.js.map +1 -0
- package/lib/react-server/renderSSRComplete.js +91 -0
- package/lib/react-server/renderSSRComplete.js.map +1 -0
- package/lib/react-server/renderSSRMinimal.js +47 -0
- package/lib/react-server/renderSSRMinimal.js.map +1 -0
- package/lib/react-server/requestInformation.js +46 -0
- package/lib/react-server/requestInformation.js.map +1 -0
- package/lib/react-server/serverNoSSR.js +63 -0
- package/lib/react-server/serverNoSSR.js.map +1 -0
- package/lib/react-server/serverSSR.js +51 -0
- package/lib/react-server/serverSSR.js.map +1 -0
- package/lib/react-server/serverUtil.js +218 -0
- package/lib/react-server/serverUtil.js.map +1 -0
- package/lib/react-theme/ThemeProvider.js +33 -0
- package/lib/react-theme/ThemeProvider.js.map +1 -0
- package/lib/react-theme/createTheme.js +115 -0
- package/lib/react-theme/createTheme.js.map +1 -0
- package/lib/react-theme/index.js +110 -0
- package/lib/react-theme/index.js.map +1 -0
- package/lib/react-theme/types.js +2 -0
- package/lib/react-theme/types.js.map +1 -0
- package/lib/react-theme/useTheme.js +15 -0
- package/lib/react-theme/useTheme.js.map +1 -0
- package/lib/react-theme/utils/background.js +21 -0
- package/lib/react-theme/utils/background.js.map +1 -0
- package/lib/react-theme/utils/colors.js +45 -0
- package/lib/react-theme/utils/colors.js.map +1 -0
- package/lib/react-theme/utils/contrast.js +95 -0
- package/lib/react-theme/utils/contrast.js.map +1 -0
- package/lib/react-theme/utils/corners.js +34 -0
- package/lib/react-theme/utils/corners.js.map +1 -0
- package/lib/react-theme/utils/spacers.js +89 -0
- package/lib/react-theme/utils/spacers.js.map +1 -0
- package/lib/react-theme/utils/themeProps.js +75 -0
- package/lib/react-theme/utils/themeProps.js.map +1 -0
- package/lib/redux/_i18n/I18nActions.js +37 -0
- package/lib/redux/_i18n/I18nActions.js.map +1 -0
- package/lib/redux/_i18n/I18nReducer.js +78 -0
- package/lib/redux/_i18n/I18nReducer.js.map +1 -0
- package/lib/redux/_i18n/index.js +29 -0
- package/lib/redux/_i18n/index.js.map +1 -0
- package/lib/redux/_i18n/types.js +2 -0
- package/lib/redux/_i18n/types.js.map +1 -0
- package/lib/redux/_modularui/ModularUIActions.js +168 -0
- package/lib/redux/_modularui/ModularUIActions.js.map +1 -0
- package/lib/redux/_modularui/ModularUIConnector.js +123 -0
- package/lib/redux/_modularui/ModularUIConnector.js.map +1 -0
- package/lib/redux/_modularui/ModularUIMiddleware.js +107 -0
- package/lib/redux/_modularui/ModularUIMiddleware.js.map +1 -0
- package/lib/redux/_modularui/ModularUIReducer.js +157 -0
- package/lib/redux/_modularui/ModularUIReducer.js.map +1 -0
- package/lib/redux/_modularui/ModularUISelectors.js +270 -0
- package/lib/redux/_modularui/ModularUISelectors.js.map +1 -0
- package/lib/redux/_modularui/ModularUIUtils.js +83 -0
- package/lib/redux/_modularui/ModularUIUtils.js.map +1 -0
- package/lib/redux/_modularui/index.js +86 -0
- package/lib/redux/_modularui/index.js.map +1 -0
- package/lib/redux/_modularui/types.js +2 -0
- package/lib/redux/_modularui/types.js.map +1 -0
- package/lib/redux/_modularui/withModularUI.js +41 -0
- package/lib/redux/_modularui/withModularUI.js.map +1 -0
- package/lib/redux/_router/RouterActions.js +67 -0
- package/lib/redux/_router/RouterActions.js.map +1 -0
- package/lib/redux/_router/RouterConnectors.js +42 -0
- package/lib/redux/_router/RouterConnectors.js.map +1 -0
- package/lib/redux/_router/RouterMiddleware.js +38 -0
- package/lib/redux/_router/RouterMiddleware.js.map +1 -0
- package/lib/redux/_router/RouterReducer.js +22 -0
- package/lib/redux/_router/RouterReducer.js.map +1 -0
- package/lib/redux/_router/index.js +51 -0
- package/lib/redux/_router/index.js.map +1 -0
- package/lib/redux/_router/types.js +2 -0
- package/lib/redux/_router/types.js.map +1 -0
- package/lib/redux/actions/Application.js +38 -0
- package/lib/redux/actions/Application.js.map +1 -0
- package/lib/redux/actions/Authorization.js +55 -0
- package/lib/redux/actions/Authorization.js.map +1 -0
- package/lib/redux/actions/Error.js +74 -0
- package/lib/redux/actions/Error.js.map +1 -0
- package/lib/redux/actions/Form.js +39 -0
- package/lib/redux/actions/Form.js.map +1 -0
- package/lib/redux/actions/FormAttributeSet.js +69 -0
- package/lib/redux/actions/FormAttributeSet.js.map +1 -0
- package/lib/redux/actions/FormAttributeSetRepeatable.js +35 -0
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -0
- package/lib/redux/actions/FormAutosave.js +60 -0
- package/lib/redux/actions/FormAutosave.js.map +1 -0
- package/lib/redux/actions/FormAutosubmit.js +38 -0
- package/lib/redux/actions/FormAutosubmit.js.map +1 -0
- package/lib/redux/actions/FormAutoupdate.js +37 -0
- package/lib/redux/actions/FormAutoupdate.js.map +1 -0
- package/lib/redux/actions/FormValidations.js +51 -0
- package/lib/redux/actions/FormValidations.js.map +1 -0
- package/lib/redux/actions/Modals.js +22 -0
- package/lib/redux/actions/Modals.js.map +1 -0
- package/lib/redux/actions/ModelCatalog.js +15 -0
- package/lib/redux/actions/ModelCatalog.js.map +1 -0
- package/lib/redux/actions/Notification.js +76 -0
- package/lib/redux/actions/Notification.js.map +1 -0
- package/lib/redux/actions/Preferences.js +128 -0
- package/lib/redux/actions/Preferences.js.map +1 -0
- package/lib/redux/actions/ProgressIndicator.js +42 -0
- package/lib/redux/actions/ProgressIndicator.js.map +1 -0
- package/lib/redux/actions/SignIn.js +90 -0
- package/lib/redux/actions/SignIn.js.map +1 -0
- package/lib/redux/actions/SignOut.js +30 -0
- package/lib/redux/actions/SignOut.js.map +1 -0
- package/lib/redux/actions/index.js +183 -0
- package/lib/redux/actions/index.js.map +1 -0
- package/lib/redux/connectors/Application.js +14 -0
- package/lib/redux/connectors/Application.js.map +1 -0
- package/lib/redux/connectors/Breadcrumb.js +16 -0
- package/lib/redux/connectors/Breadcrumb.js.map +1 -0
- package/lib/redux/connectors/CaseView.js +19 -0
- package/lib/redux/connectors/CaseView.js.map +1 -0
- package/lib/redux/connectors/ConceptDetail.js +20 -0
- package/lib/redux/connectors/ConceptDetail.js.map +1 -0
- package/lib/redux/connectors/ContentBrowser.js +19 -0
- package/lib/redux/connectors/ContentBrowser.js.map +1 -0
- package/lib/redux/connectors/ContentDetail.js +20 -0
- package/lib/redux/connectors/ContentDetail.js.map +1 -0
- package/lib/redux/connectors/ContentDetailSection.js +22 -0
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -0
- package/lib/redux/connectors/Form.js +43 -0
- package/lib/redux/connectors/Form.js.map +1 -0
- package/lib/redux/connectors/FormAttributeSet.js +27 -0
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -0
- package/lib/redux/connectors/ListDetail.js +21 -0
- package/lib/redux/connectors/ListDetail.js.map +1 -0
- package/lib/redux/connectors/Modal.js +27 -0
- package/lib/redux/connectors/Modal.js.map +1 -0
- package/lib/redux/connectors/ModelCatalog.js +19 -0
- package/lib/redux/connectors/ModelCatalog.js.map +1 -0
- package/lib/redux/connectors/Notification.js +22 -0
- package/lib/redux/connectors/Notification.js.map +1 -0
- package/lib/redux/connectors/PanelRenderer.js +29 -0
- package/lib/redux/connectors/PanelRenderer.js.map +1 -0
- package/lib/redux/connectors/Preferences.js +29 -0
- package/lib/redux/connectors/Preferences.js.map +1 -0
- package/lib/redux/connectors/Progress.js +19 -0
- package/lib/redux/connectors/Progress.js.map +1 -0
- package/lib/redux/connectors/ProgressIndicator.js +19 -0
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -0
- package/lib/redux/connectors/QuickSearch.js +27 -0
- package/lib/redux/connectors/QuickSearch.js.map +1 -0
- package/lib/redux/connectors/SignIn.js +24 -0
- package/lib/redux/connectors/SignIn.js.map +1 -0
- package/lib/redux/connectors/SignOut.js +20 -0
- package/lib/redux/connectors/SignOut.js.map +1 -0
- package/lib/redux/connectors/Tab.js +19 -0
- package/lib/redux/connectors/Tab.js.map +1 -0
- package/lib/redux/connectors/index.js +153 -0
- package/lib/redux/connectors/index.js.map +1 -0
- package/lib/redux/index.js +102 -0
- package/lib/redux/index.js.map +1 -0
- package/lib/redux/reducers/AuthReducer.js +59 -0
- package/lib/redux/reducers/AuthReducer.js.map +1 -0
- package/lib/redux/reducers/ErrorReducer.js +22 -0
- package/lib/redux/reducers/ErrorReducer.js.map +1 -0
- package/lib/redux/reducers/ModalsReducer.js +58 -0
- package/lib/redux/reducers/ModalsReducer.js.map +1 -0
- package/lib/redux/reducers/ModelCatalogReducer.js +34 -0
- package/lib/redux/reducers/ModelCatalogReducer.js.map +1 -0
- package/lib/redux/reducers/NotificationReducer.js +43 -0
- package/lib/redux/reducers/NotificationReducer.js.map +1 -0
- package/lib/redux/reducers/PreferencesReducer.js +30 -0
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -0
- package/lib/redux/reducers/ProgressIndicatorReducer.js +55 -0
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -0
- package/lib/redux/reducers/createReducer.js +33 -0
- package/lib/redux/reducers/createReducer.js.map +1 -0
- package/lib/redux/reducers/index.js +78 -0
- package/lib/redux/reducers/index.js.map +1 -0
- package/lib/redux/selectors/i18n.js +20 -0
- package/lib/redux/selectors/i18n.js.map +1 -0
- package/lib/redux/selectors/index.js +29 -0
- package/lib/redux/selectors/index.js.map +1 -0
- package/lib/redux/selectors/modelcatalog.js +14 -0
- package/lib/redux/selectors/modelcatalog.js.map +1 -0
- package/lib/redux/store/beforeRenderHooks.js +24 -0
- package/lib/redux/store/beforeRenderHooks.js.map +1 -0
- package/lib/redux/store/configureStore.js +42 -0
- package/lib/redux/store/configureStore.js.map +1 -0
- package/lib/redux/types.js +2 -0
- package/lib/redux/types.js.map +1 -0
- package/lib/utils/browser/Cache.js +151 -0
- package/lib/utils/browser/Cache.js.map +1 -0
- package/lib/utils/browser/Cookies.js +38 -0
- package/lib/utils/browser/Cookies.js.map +1 -0
- package/lib/utils/datetime/DateTimeUtil.js +648 -0
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -0
- package/lib/utils/fetch/serverFetch.js +32 -0
- package/lib/utils/fetch/serverFetch.js.map +1 -0
- package/lib/utils/fetch/types.js +2 -0
- package/lib/utils/fetch/types.js.map +1 -0
- package/lib/utils/fetch/universalFetch.js +94 -0
- package/lib/utils/fetch/universalFetch.js.map +1 -0
- package/lib/utils/fetch/xhr.js +358 -0
- package/lib/utils/fetch/xhr.js.map +1 -0
- package/lib/utils/helpers/checkResource.js +46 -0
- package/lib/utils/helpers/checkResource.js.map +1 -0
- package/lib/utils/helpers/createHash.js +28 -0
- package/lib/utils/helpers/createHash.js.map +1 -0
- package/lib/utils/helpers/createHref.js +101 -0
- package/lib/utils/helpers/createHref.js.map +1 -0
- package/lib/utils/helpers/createUUID.js +18 -0
- package/lib/utils/helpers/createUUID.js.map +1 -0
- package/lib/utils/helpers/index.js +102 -0
- package/lib/utils/helpers/index.js.map +1 -0
- package/lib/utils/helpers/objects.js +36 -0
- package/lib/utils/helpers/objects.js.map +1 -0
- package/lib/utils/helpers/repositoryResource.js +26 -0
- package/lib/utils/helpers/repositoryResource.js.map +1 -0
- package/lib/utils/helpers/sanitizeHtml.js +44 -0
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -0
- package/lib/utils/helpers/text.js +23 -0
- package/lib/utils/helpers/text.js.map +1 -0
- package/lib/utils/index.js +106 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/number/DecimalFormat.js +333 -0
- package/lib/utils/number/DecimalFormat.js.map +1 -0
- package/lib/utils/number/formatValue.js +47 -0
- package/lib/utils/number/formatValue.js.map +1 -0
- package/lib/utils/number/parseNumbers.js +70 -0
- package/lib/utils/number/parseNumbers.js.map +1 -0
- package/package.json +59 -143
- package/builder/package.json +0 -12
- package/constants/package.json +0 -12
- package/exceptions/package.json +0 -12
- package/hooks/package.json +0 -12
- package/i18n/package.json +0 -12
- package/lib/builder/index.cjs +0 -18
- package/lib/builder/index.cjs.map +0 -1
- package/lib/builder/mergeLayoutHintConfigurations.cjs +0 -60
- package/lib/builder/mergeLayoutHintConfigurations.cjs.map +0 -1
- package/lib/constants/Constants.cjs +0 -189
- package/lib/constants/Constants.cjs.map +0 -1
- package/lib/constants/LayoutHintConfig.cjs +0 -173
- package/lib/constants/LayoutHintConfig.cjs.map +0 -1
- package/lib/constants/LayoutHints.cjs +0 -135
- package/lib/constants/LayoutHints.cjs.map +0 -1
- package/lib/constants/Settings.cjs +0 -219
- package/lib/constants/Settings.cjs.map +0 -1
- package/lib/constants/index.cjs +0 -40
- package/lib/constants/index.cjs.map +0 -1
- package/lib/exceptions/ConfigurationException.cjs +0 -17
- package/lib/exceptions/ConfigurationException.cjs.map +0 -1
- package/lib/exceptions/FetchException.cjs +0 -72
- package/lib/exceptions/FetchException.cjs.map +0 -1
- package/lib/exceptions/IllegalArgumentException.cjs +0 -17
- package/lib/exceptions/IllegalArgumentException.cjs.map +0 -1
- package/lib/exceptions/IllegalReturnException.cjs +0 -16
- package/lib/exceptions/IllegalReturnException.cjs.map +0 -1
- package/lib/exceptions/IllegalStateException.cjs +0 -17
- package/lib/exceptions/IllegalStateException.cjs.map +0 -1
- package/lib/exceptions/JsonParseException.cjs +0 -17
- package/lib/exceptions/JsonParseException.cjs.map +0 -1
- package/lib/exceptions/MissingPropertyException.cjs +0 -17
- package/lib/exceptions/MissingPropertyException.cjs.map +0 -1
- package/lib/exceptions/NetworkException.cjs +0 -23
- package/lib/exceptions/NetworkException.cjs.map +0 -1
- package/lib/exceptions/NotAllowedUriException.cjs +0 -17
- package/lib/exceptions/NotAllowedUriException.cjs.map +0 -1
- package/lib/exceptions/NotFoundException.cjs +0 -26
- package/lib/exceptions/NotFoundException.cjs.map +0 -1
- package/lib/exceptions/ServerRequestException.cjs +0 -17
- package/lib/exceptions/ServerRequestException.cjs.map +0 -1
- package/lib/exceptions/ThemePropertyException.cjs +0 -17
- package/lib/exceptions/ThemePropertyException.cjs.map +0 -1
- package/lib/exceptions/TimeoutException.cjs +0 -17
- package/lib/exceptions/TimeoutException.cjs.map +0 -1
- package/lib/exceptions/UnauthorizedException.cjs +0 -25
- package/lib/exceptions/UnauthorizedException.cjs.map +0 -1
- package/lib/exceptions/UnsupportedOperationException.cjs +0 -17
- package/lib/exceptions/UnsupportedOperationException.cjs.map +0 -1
- package/lib/exceptions/index.cjs +0 -112
- package/lib/exceptions/index.cjs.map +0 -1
- package/lib/hooks/index.cjs +0 -183
- package/lib/hooks/index.cjs.map +0 -1
- package/lib/hooks/useAllFormsOnModel.cjs +0 -81
- package/lib/hooks/useAllFormsOnModel.cjs.map +0 -1
- package/lib/hooks/useAuthentication.cjs +0 -66
- package/lib/hooks/useAuthentication.cjs.map +0 -1
- package/lib/hooks/useContent.cjs +0 -49
- package/lib/hooks/useContent.cjs.map +0 -1
- package/lib/hooks/useDeepCompareEffect.cjs +0 -35
- package/lib/hooks/useDeepCompareEffect.cjs.map +0 -1
- package/lib/hooks/useForm.cjs +0 -98
- package/lib/hooks/useForm.cjs.map +0 -1
- package/lib/hooks/useI18n.cjs +0 -42
- package/lib/hooks/useI18n.cjs.map +0 -1
- package/lib/hooks/useModal.cjs +0 -43
- package/lib/hooks/useModal.cjs.map +0 -1
- package/lib/hooks/useModelCatalog.cjs +0 -179
- package/lib/hooks/useModelCatalog.cjs.map +0 -1
- package/lib/hooks/useModels.cjs +0 -45
- package/lib/hooks/useModels.cjs.map +0 -1
- package/lib/hooks/useModularUI.cjs +0 -69
- package/lib/hooks/useModularUI.cjs.map +0 -1
- package/lib/hooks/useModularUIBasic.cjs +0 -81
- package/lib/hooks/useModularUIBasic.cjs.map +0 -1
- package/lib/hooks/useModularUIModel.cjs +0 -128
- package/lib/hooks/useModularUIModel.cjs.map +0 -1
- package/lib/hooks/useModularUIRequest.cjs +0 -25
- package/lib/hooks/useModularUIRequest.cjs.map +0 -1
- package/lib/hooks/useNotification.cjs +0 -39
- package/lib/hooks/useNotification.cjs.map +0 -1
- package/lib/hooks/usePreference.cjs +0 -23
- package/lib/hooks/usePreference.cjs.map +0 -1
- package/lib/hooks/useProgressIndicator.cjs +0 -23
- package/lib/hooks/useProgressIndicator.cjs.map +0 -1
- package/lib/hooks/useRouter.cjs +0 -42
- package/lib/hooks/useRouter.cjs.map +0 -1
- package/lib/i18n/Locale.cjs +0 -128
- package/lib/i18n/Locale.cjs.map +0 -1
- package/lib/i18n/Locales.cjs +0 -140
- package/lib/i18n/Locales.cjs.map +0 -1
- package/lib/i18n/Message.cjs +0 -50
- package/lib/i18n/Message.cjs.map +0 -1
- package/lib/i18n/index.cjs +0 -57
- package/lib/i18n/index.cjs.map +0 -1
- package/lib/i18n/languages.cjs +0 -212
- package/lib/i18n/languages.cjs.map +0 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.cjs +0 -104
- package/lib/i18n/translations/beinformed_error_messages_en.nl.cjs.map +0 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.cjs +0 -104
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.cjs.map +0 -1
- package/lib/i18n/types.cjs +0 -2
- package/lib/i18n/types.cjs.map +0 -1
- package/lib/i18n/withMessage.cjs +0 -27
- package/lib/i18n/withMessage.cjs.map +0 -1
- package/lib/index.cjs +0 -73
- package/lib/index.cjs.map +0 -1
- package/lib/models/actions/ActionCollection.cjs +0 -90
- package/lib/models/actions/ActionCollection.cjs.map +0 -1
- package/lib/models/actions/ActionModel.cjs +0 -194
- package/lib/models/actions/ActionModel.cjs.map +0 -1
- package/lib/models/application/ApplicationModel.cjs +0 -133
- package/lib/models/application/ApplicationModel.cjs.map +0 -1
- package/lib/models/attributes/AttributeCollection.cjs +0 -282
- package/lib/models/attributes/AttributeCollection.cjs.map +0 -1
- package/lib/models/attributes/AttributeContent.cjs +0 -203
- package/lib/models/attributes/AttributeContent.cjs.map +0 -1
- package/lib/models/attributes/AttributeDataHelper.cjs +0 -267
- package/lib/models/attributes/AttributeDataHelper.cjs.map +0 -1
- package/lib/models/attributes/AttributeModel.cjs +0 -824
- package/lib/models/attributes/AttributeModel.cjs.map +0 -1
- package/lib/models/attributes/AttributeSetModel.cjs +0 -105
- package/lib/models/attributes/AttributeSetModel.cjs.map +0 -1
- package/lib/models/attributes/BooleanAttributeModel.cjs +0 -295
- package/lib/models/attributes/BooleanAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/CaptchaAttributeModel.cjs +0 -60
- package/lib/models/attributes/CaptchaAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/ChoiceAttributeModel.cjs +0 -411
- package/lib/models/attributes/ChoiceAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.cjs +0 -300
- package/lib/models/attributes/ChoiceAttributeOptionCollection.cjs.map +0 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.cjs +0 -342
- package/lib/models/attributes/ChoiceAttributeOptionModel.cjs.map +0 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.cjs +0 -189
- package/lib/models/attributes/CompositeAttributeChildCollection.cjs.map +0 -1
- package/lib/models/attributes/CompositeAttributeModel.cjs +0 -380
- package/lib/models/attributes/CompositeAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/DatetimeAttributeModel.cjs +0 -465
- package/lib/models/attributes/DatetimeAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/HelptextAttributeModel.cjs +0 -55
- package/lib/models/attributes/HelptextAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/LabelAttributeModel.cjs +0 -41
- package/lib/models/attributes/LabelAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/MemoAttributeModel.cjs +0 -49
- package/lib/models/attributes/MemoAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/MoneyAttributeModel.cjs +0 -49
- package/lib/models/attributes/MoneyAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/NumberAttributeModel.cjs +0 -201
- package/lib/models/attributes/NumberAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/PasswordAttributeModel.cjs +0 -217
- package/lib/models/attributes/PasswordAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/StringAttributeModel.cjs +0 -284
- package/lib/models/attributes/StringAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/UploadAttributeModel.cjs +0 -223
- package/lib/models/attributes/UploadAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/XMLAttributeModel.cjs +0 -53
- package/lib/models/attributes/XMLAttributeModel.cjs.map +0 -1
- package/lib/models/attributes/_createAttribute.cjs +0 -93
- package/lib/models/attributes/_createAttribute.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.cjs +0 -72
- package/lib/models/attributes/input-constraints/BSNConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.cjs +0 -50
- package/lib/models/attributes/input-constraints/ConstraintCollection.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.cjs +0 -74
- package/lib/models/attributes/input-constraints/ConstraintModel.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.cjs +0 -205
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.cjs +0 -76
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.cjs +0 -76
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.cjs +0 -122
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.cjs +0 -66
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.cjs +0 -98
- package/lib/models/attributes/input-constraints/FileSizeConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.cjs +0 -49
- package/lib/models/attributes/input-constraints/IBANConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.cjs +0 -53
- package/lib/models/attributes/input-constraints/MandatoryConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.cjs +0 -85
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.cjs +0 -177
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.cjs +0 -132
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.cjs +0 -126
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.cjs +0 -72
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.cjs +0 -47
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.cjs +0 -64
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.cjs +0 -64
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.cjs +0 -78
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.cjs +0 -143
- package/lib/models/attributes/input-constraints/RangeConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.cjs +0 -67
- package/lib/models/attributes/input-constraints/RegexConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.cjs +0 -178
- package/lib/models/attributes/input-constraints/StringLengthConstraint.cjs.map +0 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.cjs +0 -62
- package/lib/models/attributes/input-constraints/XMLConstraint.cjs.map +0 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.cjs +0 -66
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.cjs.map +0 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.cjs +0 -200
- package/lib/models/attributes/layouthint-rules/DependentAttribute.cjs.map +0 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.cjs +0 -88
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.cjs.map +0 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.cjs +0 -51
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.cjs.map +0 -1
- package/lib/models/base/BaseCollection.cjs +0 -186
- package/lib/models/base/BaseCollection.cjs.map +0 -1
- package/lib/models/base/BaseModel.cjs +0 -149
- package/lib/models/base/BaseModel.cjs.map +0 -1
- package/lib/models/base/ResourceCollection.cjs +0 -41
- package/lib/models/base/ResourceCollection.cjs.map +0 -1
- package/lib/models/base/ResourceModel.cjs +0 -209
- package/lib/models/base/ResourceModel.cjs.map +0 -1
- package/lib/models/caseview/CaseViewModel.cjs +0 -163
- package/lib/models/caseview/CaseViewModel.cjs.map +0 -1
- package/lib/models/concepts/BusinessScenarioModel.cjs +0 -122
- package/lib/models/concepts/BusinessScenarioModel.cjs.map +0 -1
- package/lib/models/concepts/ConceptDetailModel.cjs +0 -281
- package/lib/models/concepts/ConceptDetailModel.cjs.map +0 -1
- package/lib/models/concepts/ConceptIndexModel.cjs +0 -150
- package/lib/models/concepts/ConceptIndexModel.cjs.map +0 -1
- package/lib/models/concepts/ConceptLinkModel.cjs +0 -152
- package/lib/models/concepts/ConceptLinkModel.cjs.map +0 -1
- package/lib/models/concepts/ConceptRelationCollection.cjs +0 -82
- package/lib/models/concepts/ConceptRelationCollection.cjs.map +0 -1
- package/lib/models/concepts/ConceptRelationModel.cjs +0 -115
- package/lib/models/concepts/ConceptRelationModel.cjs.map +0 -1
- package/lib/models/concepts/ConceptTypeDetailModel.cjs +0 -128
- package/lib/models/concepts/ConceptTypeDetailModel.cjs.map +0 -1
- package/lib/models/concepts/SourceReferenceCollection.cjs +0 -35
- package/lib/models/concepts/SourceReferenceCollection.cjs.map +0 -1
- package/lib/models/concepts/SourceReferenceModel.cjs +0 -73
- package/lib/models/concepts/SourceReferenceModel.cjs.map +0 -1
- package/lib/models/content/ContentIndexModel.cjs +0 -142
- package/lib/models/content/ContentIndexModel.cjs.map +0 -1
- package/lib/models/content/ContentLinkModel.cjs +0 -193
- package/lib/models/content/ContentLinkModel.cjs.map +0 -1
- package/lib/models/content/ContentModel.cjs +0 -207
- package/lib/models/content/ContentModel.cjs.map +0 -1
- package/lib/models/content/ContentTOCModel.cjs +0 -163
- package/lib/models/content/ContentTOCModel.cjs.map +0 -1
- package/lib/models/content/ContentTypeModel.cjs +0 -74
- package/lib/models/content/ContentTypeModel.cjs.map +0 -1
- package/lib/models/content/SectionModel.cjs +0 -180
- package/lib/models/content/SectionModel.cjs.map +0 -1
- package/lib/models/content/SubSectionModel.cjs +0 -167
- package/lib/models/content/SubSectionModel.cjs.map +0 -1
- package/lib/models/contentconfiguration/ContentConfiguration.cjs +0 -75
- package/lib/models/contentconfiguration/ContentConfiguration.cjs.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.cjs +0 -143
- package/lib/models/contentconfiguration/ContentConfigurationElements.cjs.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.cjs +0 -49
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.cjs.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.cjs +0 -54
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.cjs.map +0 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.cjs +0 -103
- package/lib/models/contentconfiguration/ContentConfigurationResults.cjs.map +0 -1
- package/lib/models/detail/DetailModel.cjs +0 -219
- package/lib/models/detail/DetailModel.cjs.map +0 -1
- package/lib/models/error/ErrorCollection.cjs +0 -111
- package/lib/models/error/ErrorCollection.cjs.map +0 -1
- package/lib/models/error/ErrorModel.cjs +0 -81
- package/lib/models/error/ErrorModel.cjs.map +0 -1
- package/lib/models/error/ErrorResponse.cjs +0 -304
- package/lib/models/error/ErrorResponse.cjs.map +0 -1
- package/lib/models/filters/AssignmentFilterModel.cjs +0 -161
- package/lib/models/filters/AssignmentFilterModel.cjs.map +0 -1
- package/lib/models/filters/BaseFilterModel.cjs +0 -210
- package/lib/models/filters/BaseFilterModel.cjs.map +0 -1
- package/lib/models/filters/ConceptIndexFilterModel.cjs +0 -36
- package/lib/models/filters/ConceptIndexFilterModel.cjs.map +0 -1
- package/lib/models/filters/FilterCollection.cjs +0 -155
- package/lib/models/filters/FilterCollection.cjs.map +0 -1
- package/lib/models/filters/FilterModel.cjs +0 -13
- package/lib/models/filters/FilterModel.cjs.map +0 -1
- package/lib/models/filters/RangeFilterModel.cjs +0 -44
- package/lib/models/filters/RangeFilterModel.cjs.map +0 -1
- package/lib/models/filters/StringFilterModel.cjs +0 -147
- package/lib/models/filters/StringFilterModel.cjs.map +0 -1
- package/lib/models/form/FormModel.cjs +0 -1038
- package/lib/models/form/FormModel.cjs.map +0 -1
- package/lib/models/form/FormObjectModel.cjs +0 -474
- package/lib/models/form/FormObjectModel.cjs.map +0 -1
- package/lib/models/grouping/GroupingModel.cjs +0 -191
- package/lib/models/grouping/GroupingModel.cjs.map +0 -1
- package/lib/models/href/Href.cjs +0 -496
- package/lib/models/href/Href.cjs.map +0 -1
- package/lib/models/href/ListHref.cjs +0 -135
- package/lib/models/href/ListHref.cjs.map +0 -1
- package/lib/models/index.cjs +0 -687
- package/lib/models/index.cjs.map +0 -1
- package/lib/models/layouthint/LayoutHintCollection.cjs +0 -118
- package/lib/models/layouthint/LayoutHintCollection.cjs.map +0 -1
- package/lib/models/links/LinkCollection.cjs +0 -171
- package/lib/models/links/LinkCollection.cjs.map +0 -1
- package/lib/models/links/LinkModel.cjs +0 -216
- package/lib/models/links/LinkModel.cjs.map +0 -1
- package/lib/models/links/normalizeLinkJSON.cjs +0 -107
- package/lib/models/links/normalizeLinkJSON.cjs.map +0 -1
- package/lib/models/list/ListDetailModel.cjs +0 -266
- package/lib/models/list/ListDetailModel.cjs.map +0 -1
- package/lib/models/list/ListHeaderModel.cjs +0 -95
- package/lib/models/list/ListHeaderModel.cjs.map +0 -1
- package/lib/models/list/ListItemCollection.cjs +0 -67
- package/lib/models/list/ListItemCollection.cjs.map +0 -1
- package/lib/models/list/ListItemModel.cjs +0 -95
- package/lib/models/list/ListItemModel.cjs.map +0 -1
- package/lib/models/list/ListModel.cjs +0 -385
- package/lib/models/list/ListModel.cjs.map +0 -1
- package/lib/models/lookup/LookupOptionCollection.cjs +0 -45
- package/lib/models/lookup/LookupOptionCollection.cjs.map +0 -1
- package/lib/models/lookup/LookupOptionsModel.cjs +0 -71
- package/lib/models/lookup/LookupOptionsModel.cjs.map +0 -1
- package/lib/models/modelcatalog/ModelCatalogModel.cjs +0 -69
- package/lib/models/modelcatalog/ModelCatalogModel.cjs.map +0 -1
- package/lib/models/modelcatalog/ModelCategoryCollection.cjs +0 -24
- package/lib/models/modelcatalog/ModelCategoryCollection.cjs.map +0 -1
- package/lib/models/modelcatalog/ModelCategoryModel.cjs +0 -60
- package/lib/models/modelcatalog/ModelCategoryModel.cjs.map +0 -1
- package/lib/models/paging/PagesizeModel.cjs +0 -50
- package/lib/models/paging/PagesizeModel.cjs.map +0 -1
- package/lib/models/paging/PagingModel.cjs +0 -95
- package/lib/models/paging/PagingModel.cjs.map +0 -1
- package/lib/models/panels/GroupingPanelModel.cjs +0 -143
- package/lib/models/panels/GroupingPanelModel.cjs.map +0 -1
- package/lib/models/parameter/Parameter.cjs +0 -108
- package/lib/models/parameter/Parameter.cjs.map +0 -1
- package/lib/models/process/ProcessStatusSettingsModel.cjs +0 -85
- package/lib/models/process/ProcessStatusSettingsModel.cjs.map +0 -1
- package/lib/models/resolveModel.cjs +0 -57
- package/lib/models/resolveModel.cjs.map +0 -1
- package/lib/models/search/CaseSearchModel.cjs +0 -47
- package/lib/models/search/CaseSearchModel.cjs.map +0 -1
- package/lib/models/sorting/SortOptionModel.cjs +0 -106
- package/lib/models/sorting/SortOptionModel.cjs.map +0 -1
- package/lib/models/sorting/SortingModel.cjs +0 -112
- package/lib/models/sorting/SortingModel.cjs.map +0 -1
- package/lib/models/tab/TabModel.cjs +0 -143
- package/lib/models/tab/TabModel.cjs.map +0 -1
- package/lib/models/taskgroup/TaskGroupCollection.cjs +0 -21
- package/lib/models/taskgroup/TaskGroupCollection.cjs.map +0 -1
- package/lib/models/taskgroup/TaskGroupModel.cjs +0 -87
- package/lib/models/taskgroup/TaskGroupModel.cjs.map +0 -1
- package/lib/models/types.cjs +0 -2
- package/lib/models/types.cjs.map +0 -1
- package/lib/models/user/UserModel.cjs +0 -59
- package/lib/models/user/UserModel.cjs.map +0 -1
- package/lib/models/user/UserProfileModel.cjs +0 -55
- package/lib/models/user/UserProfileModel.cjs.map +0 -1
- package/lib/models/user/UserServicesModel.cjs +0 -126
- package/lib/models/user/UserServicesModel.cjs.map +0 -1
- package/lib/modularui/Authenticate.cjs +0 -183
- package/lib/modularui/Authenticate.cjs.map +0 -1
- package/lib/modularui/CaptchaRequest.cjs +0 -71
- package/lib/modularui/CaptchaRequest.cjs.map +0 -1
- package/lib/modularui/ModularUIError.cjs +0 -30
- package/lib/modularui/ModularUIError.cjs.map +0 -1
- package/lib/modularui/ModularUIRequest.cjs +0 -716
- package/lib/modularui/ModularUIRequest.cjs.map +0 -1
- package/lib/modularui/ModularUIResponse.cjs +0 -147
- package/lib/modularui/ModularUIResponse.cjs.map +0 -1
- package/lib/modularui/UploadRequest.cjs +0 -103
- package/lib/modularui/UploadRequest.cjs.map +0 -1
- package/lib/modularui/index.cjs +0 -42
- package/lib/modularui/index.cjs.map +0 -1
- package/lib/modularui/types.cjs +0 -2
- package/lib/modularui/types.cjs.map +0 -1
- package/lib/react/ErrorBoundary.cjs +0 -56
- package/lib/react/ErrorBoundary.cjs.map +0 -1
- package/lib/react/ErrorBoundaryFallback.cjs +0 -41
- package/lib/react/ErrorBoundaryFallback.cjs.map +0 -1
- package/lib/react/index.cjs +0 -29
- package/lib/react/index.cjs.map +0 -1
- package/lib/react/utils.cjs +0 -32
- package/lib/react/utils.cjs.map +0 -1
- package/lib/react-client/Init.cjs +0 -44
- package/lib/react-client/Init.cjs.map +0 -1
- package/lib/react-client/client.cjs +0 -216
- package/lib/react-client/client.cjs.map +0 -1
- package/lib/react-client/contextPath.cjs +0 -26
- package/lib/react-client/contextPath.cjs.map +0 -1
- package/lib/react-client/index.cjs +0 -40
- package/lib/react-client/index.cjs.map +0 -1
- package/lib/react-client/rehydrate.cjs +0 -73
- package/lib/react-client/rehydrate.cjs.map +0 -1
- package/lib/react-server/contextPath.cjs +0 -10
- package/lib/react-server/contextPath.cjs.map +0 -1
- package/lib/react-server/createSSRComplete.cjs +0 -61
- package/lib/react-server/createSSRComplete.cjs.map +0 -1
- package/lib/react-server/htmlpage.cjs +0 -54
- package/lib/react-server/htmlpage.cjs.map +0 -1
- package/lib/react-server/index.cjs +0 -82
- package/lib/react-server/index.cjs.map +0 -1
- package/lib/react-server/renderSSRComplete.cjs +0 -91
- package/lib/react-server/renderSSRComplete.cjs.map +0 -1
- package/lib/react-server/renderSSRMinimal.cjs +0 -47
- package/lib/react-server/renderSSRMinimal.cjs.map +0 -1
- package/lib/react-server/requestInformation.cjs +0 -46
- package/lib/react-server/requestInformation.cjs.map +0 -1
- package/lib/react-server/serverNoSSR.cjs +0 -63
- package/lib/react-server/serverNoSSR.cjs.map +0 -1
- package/lib/react-server/serverSSR.cjs +0 -51
- package/lib/react-server/serverSSR.cjs.map +0 -1
- package/lib/react-server/serverUtil.cjs +0 -218
- package/lib/react-server/serverUtil.cjs.map +0 -1
- package/lib/react-theme/ThemeProvider.cjs +0 -33
- package/lib/react-theme/ThemeProvider.cjs.map +0 -1
- package/lib/react-theme/createTheme.cjs +0 -115
- package/lib/react-theme/createTheme.cjs.map +0 -1
- package/lib/react-theme/index.cjs +0 -110
- package/lib/react-theme/index.cjs.map +0 -1
- package/lib/react-theme/types.cjs +0 -2
- package/lib/react-theme/types.cjs.map +0 -1
- package/lib/react-theme/useTheme.cjs +0 -15
- package/lib/react-theme/useTheme.cjs.map +0 -1
- package/lib/react-theme/utils/background.cjs +0 -21
- package/lib/react-theme/utils/background.cjs.map +0 -1
- package/lib/react-theme/utils/colors.cjs +0 -45
- package/lib/react-theme/utils/colors.cjs.map +0 -1
- package/lib/react-theme/utils/contrast.cjs +0 -95
- package/lib/react-theme/utils/contrast.cjs.map +0 -1
- package/lib/react-theme/utils/corners.cjs +0 -34
- package/lib/react-theme/utils/corners.cjs.map +0 -1
- package/lib/react-theme/utils/spacers.cjs +0 -89
- package/lib/react-theme/utils/spacers.cjs.map +0 -1
- package/lib/react-theme/utils/themeProps.cjs +0 -75
- package/lib/react-theme/utils/themeProps.cjs.map +0 -1
- package/lib/redux/_i18n/I18nActions.cjs +0 -37
- package/lib/redux/_i18n/I18nActions.cjs.map +0 -1
- package/lib/redux/_i18n/I18nReducer.cjs +0 -78
- package/lib/redux/_i18n/I18nReducer.cjs.map +0 -1
- package/lib/redux/_i18n/index.cjs +0 -29
- package/lib/redux/_i18n/index.cjs.map +0 -1
- package/lib/redux/_i18n/types.cjs +0 -2
- package/lib/redux/_i18n/types.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUIActions.cjs +0 -168
- package/lib/redux/_modularui/ModularUIActions.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUIConnector.cjs +0 -123
- package/lib/redux/_modularui/ModularUIConnector.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUIMiddleware.cjs +0 -107
- package/lib/redux/_modularui/ModularUIMiddleware.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUIReducer.cjs +0 -157
- package/lib/redux/_modularui/ModularUIReducer.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUISelectors.cjs +0 -270
- package/lib/redux/_modularui/ModularUISelectors.cjs.map +0 -1
- package/lib/redux/_modularui/ModularUIUtils.cjs +0 -83
- package/lib/redux/_modularui/ModularUIUtils.cjs.map +0 -1
- package/lib/redux/_modularui/index.cjs +0 -86
- package/lib/redux/_modularui/index.cjs.map +0 -1
- package/lib/redux/_modularui/types.cjs +0 -2
- package/lib/redux/_modularui/types.cjs.map +0 -1
- package/lib/redux/_modularui/withModularUI.cjs +0 -41
- package/lib/redux/_modularui/withModularUI.cjs.map +0 -1
- package/lib/redux/_router/RouterActions.cjs +0 -67
- package/lib/redux/_router/RouterActions.cjs.map +0 -1
- package/lib/redux/_router/RouterConnectors.cjs +0 -42
- package/lib/redux/_router/RouterConnectors.cjs.map +0 -1
- package/lib/redux/_router/RouterMiddleware.cjs +0 -38
- package/lib/redux/_router/RouterMiddleware.cjs.map +0 -1
- package/lib/redux/_router/RouterReducer.cjs +0 -22
- package/lib/redux/_router/RouterReducer.cjs.map +0 -1
- package/lib/redux/_router/index.cjs +0 -51
- package/lib/redux/_router/index.cjs.map +0 -1
- package/lib/redux/_router/types.cjs +0 -2
- package/lib/redux/_router/types.cjs.map +0 -1
- package/lib/redux/actions/Application.cjs +0 -38
- package/lib/redux/actions/Application.cjs.map +0 -1
- package/lib/redux/actions/Authorization.cjs +0 -55
- package/lib/redux/actions/Authorization.cjs.map +0 -1
- package/lib/redux/actions/Error.cjs +0 -74
- package/lib/redux/actions/Error.cjs.map +0 -1
- package/lib/redux/actions/Form.cjs +0 -39
- package/lib/redux/actions/Form.cjs.map +0 -1
- package/lib/redux/actions/FormAttributeSet.cjs +0 -69
- package/lib/redux/actions/FormAttributeSet.cjs.map +0 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.cjs +0 -35
- package/lib/redux/actions/FormAttributeSetRepeatable.cjs.map +0 -1
- package/lib/redux/actions/FormAutosave.cjs +0 -60
- package/lib/redux/actions/FormAutosave.cjs.map +0 -1
- package/lib/redux/actions/FormAutosubmit.cjs +0 -38
- package/lib/redux/actions/FormAutosubmit.cjs.map +0 -1
- package/lib/redux/actions/FormAutoupdate.cjs +0 -37
- package/lib/redux/actions/FormAutoupdate.cjs.map +0 -1
- package/lib/redux/actions/FormValidations.cjs +0 -51
- package/lib/redux/actions/FormValidations.cjs.map +0 -1
- package/lib/redux/actions/Modals.cjs +0 -22
- package/lib/redux/actions/Modals.cjs.map +0 -1
- package/lib/redux/actions/ModelCatalog.cjs +0 -15
- package/lib/redux/actions/ModelCatalog.cjs.map +0 -1
- package/lib/redux/actions/Notification.cjs +0 -76
- package/lib/redux/actions/Notification.cjs.map +0 -1
- package/lib/redux/actions/Preferences.cjs +0 -128
- package/lib/redux/actions/Preferences.cjs.map +0 -1
- package/lib/redux/actions/ProgressIndicator.cjs +0 -42
- package/lib/redux/actions/ProgressIndicator.cjs.map +0 -1
- package/lib/redux/actions/SignIn.cjs +0 -90
- package/lib/redux/actions/SignIn.cjs.map +0 -1
- package/lib/redux/actions/SignOut.cjs +0 -30
- package/lib/redux/actions/SignOut.cjs.map +0 -1
- package/lib/redux/actions/index.cjs +0 -183
- package/lib/redux/actions/index.cjs.map +0 -1
- package/lib/redux/connectors/Application.cjs +0 -14
- package/lib/redux/connectors/Application.cjs.map +0 -1
- package/lib/redux/connectors/Breadcrumb.cjs +0 -16
- package/lib/redux/connectors/Breadcrumb.cjs.map +0 -1
- package/lib/redux/connectors/CaseView.cjs +0 -19
- package/lib/redux/connectors/CaseView.cjs.map +0 -1
- package/lib/redux/connectors/ConceptDetail.cjs +0 -20
- package/lib/redux/connectors/ConceptDetail.cjs.map +0 -1
- package/lib/redux/connectors/ContentBrowser.cjs +0 -19
- package/lib/redux/connectors/ContentBrowser.cjs.map +0 -1
- package/lib/redux/connectors/ContentDetail.cjs +0 -20
- package/lib/redux/connectors/ContentDetail.cjs.map +0 -1
- package/lib/redux/connectors/ContentDetailSection.cjs +0 -22
- package/lib/redux/connectors/ContentDetailSection.cjs.map +0 -1
- package/lib/redux/connectors/Form.cjs +0 -43
- package/lib/redux/connectors/Form.cjs.map +0 -1
- package/lib/redux/connectors/FormAttributeSet.cjs +0 -27
- package/lib/redux/connectors/FormAttributeSet.cjs.map +0 -1
- package/lib/redux/connectors/ListDetail.cjs +0 -21
- package/lib/redux/connectors/ListDetail.cjs.map +0 -1
- package/lib/redux/connectors/Modal.cjs +0 -27
- package/lib/redux/connectors/Modal.cjs.map +0 -1
- package/lib/redux/connectors/ModelCatalog.cjs +0 -19
- package/lib/redux/connectors/ModelCatalog.cjs.map +0 -1
- package/lib/redux/connectors/Notification.cjs +0 -22
- package/lib/redux/connectors/Notification.cjs.map +0 -1
- package/lib/redux/connectors/PanelRenderer.cjs +0 -29
- package/lib/redux/connectors/PanelRenderer.cjs.map +0 -1
- package/lib/redux/connectors/Preferences.cjs +0 -29
- package/lib/redux/connectors/Preferences.cjs.map +0 -1
- package/lib/redux/connectors/Progress.cjs +0 -19
- package/lib/redux/connectors/Progress.cjs.map +0 -1
- package/lib/redux/connectors/ProgressIndicator.cjs +0 -19
- package/lib/redux/connectors/ProgressIndicator.cjs.map +0 -1
- package/lib/redux/connectors/QuickSearch.cjs +0 -27
- package/lib/redux/connectors/QuickSearch.cjs.map +0 -1
- package/lib/redux/connectors/SignIn.cjs +0 -24
- package/lib/redux/connectors/SignIn.cjs.map +0 -1
- package/lib/redux/connectors/SignOut.cjs +0 -20
- package/lib/redux/connectors/SignOut.cjs.map +0 -1
- package/lib/redux/connectors/Tab.cjs +0 -19
- package/lib/redux/connectors/Tab.cjs.map +0 -1
- package/lib/redux/connectors/index.cjs +0 -153
- package/lib/redux/connectors/index.cjs.map +0 -1
- package/lib/redux/index.cjs +0 -102
- package/lib/redux/index.cjs.map +0 -1
- package/lib/redux/reducers/AuthReducer.cjs +0 -59
- package/lib/redux/reducers/AuthReducer.cjs.map +0 -1
- package/lib/redux/reducers/ErrorReducer.cjs +0 -22
- package/lib/redux/reducers/ErrorReducer.cjs.map +0 -1
- package/lib/redux/reducers/ModalsReducer.cjs +0 -58
- package/lib/redux/reducers/ModalsReducer.cjs.map +0 -1
- package/lib/redux/reducers/ModelCatalogReducer.cjs +0 -34
- package/lib/redux/reducers/ModelCatalogReducer.cjs.map +0 -1
- package/lib/redux/reducers/NotificationReducer.cjs +0 -43
- package/lib/redux/reducers/NotificationReducer.cjs.map +0 -1
- package/lib/redux/reducers/PreferencesReducer.cjs +0 -30
- package/lib/redux/reducers/PreferencesReducer.cjs.map +0 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.cjs +0 -55
- package/lib/redux/reducers/ProgressIndicatorReducer.cjs.map +0 -1
- package/lib/redux/reducers/createReducer.cjs +0 -33
- package/lib/redux/reducers/createReducer.cjs.map +0 -1
- package/lib/redux/reducers/index.cjs +0 -78
- package/lib/redux/reducers/index.cjs.map +0 -1
- package/lib/redux/selectors/i18n.cjs +0 -20
- package/lib/redux/selectors/i18n.cjs.map +0 -1
- package/lib/redux/selectors/index.cjs +0 -29
- package/lib/redux/selectors/index.cjs.map +0 -1
- package/lib/redux/selectors/modelcatalog.cjs +0 -14
- package/lib/redux/selectors/modelcatalog.cjs.map +0 -1
- package/lib/redux/store/beforeRenderHooks.cjs +0 -24
- package/lib/redux/store/beforeRenderHooks.cjs.map +0 -1
- package/lib/redux/store/configureStore.cjs +0 -42
- package/lib/redux/store/configureStore.cjs.map +0 -1
- package/lib/redux/types.cjs +0 -2
- package/lib/redux/types.cjs.map +0 -1
- package/lib/utils/browser/Cache.cjs +0 -151
- package/lib/utils/browser/Cache.cjs.map +0 -1
- package/lib/utils/browser/Cookies.cjs +0 -38
- package/lib/utils/browser/Cookies.cjs.map +0 -1
- package/lib/utils/datetime/DateTimeUtil.cjs +0 -648
- package/lib/utils/datetime/DateTimeUtil.cjs.map +0 -1
- package/lib/utils/fetch/serverFetch.cjs +0 -32
- package/lib/utils/fetch/serverFetch.cjs.map +0 -1
- package/lib/utils/fetch/types.cjs +0 -2
- package/lib/utils/fetch/types.cjs.map +0 -1
- package/lib/utils/fetch/universalFetch.cjs +0 -94
- package/lib/utils/fetch/universalFetch.cjs.map +0 -1
- package/lib/utils/fetch/xhr.cjs +0 -358
- package/lib/utils/fetch/xhr.cjs.map +0 -1
- package/lib/utils/helpers/checkResource.cjs +0 -46
- package/lib/utils/helpers/checkResource.cjs.map +0 -1
- package/lib/utils/helpers/createHash.cjs +0 -28
- package/lib/utils/helpers/createHash.cjs.map +0 -1
- package/lib/utils/helpers/createHref.cjs +0 -101
- package/lib/utils/helpers/createHref.cjs.map +0 -1
- package/lib/utils/helpers/createUUID.cjs +0 -18
- package/lib/utils/helpers/createUUID.cjs.map +0 -1
- package/lib/utils/helpers/index.cjs +0 -102
- package/lib/utils/helpers/index.cjs.map +0 -1
- package/lib/utils/helpers/objects.cjs +0 -36
- package/lib/utils/helpers/objects.cjs.map +0 -1
- package/lib/utils/helpers/repositoryResource.cjs +0 -26
- package/lib/utils/helpers/repositoryResource.cjs.map +0 -1
- package/lib/utils/helpers/sanitizeHtml.cjs +0 -44
- package/lib/utils/helpers/sanitizeHtml.cjs.map +0 -1
- package/lib/utils/helpers/text.cjs +0 -23
- package/lib/utils/helpers/text.cjs.map +0 -1
- package/lib/utils/index.cjs +0 -106
- package/lib/utils/index.cjs.map +0 -1
- package/lib/utils/number/DecimalFormat.cjs +0 -333
- package/lib/utils/number/DecimalFormat.cjs.map +0 -1
- package/lib/utils/number/formatValue.cjs +0 -47
- package/lib/utils/number/formatValue.cjs.map +0 -1
- package/lib/utils/number/parseNumbers.cjs +0 -70
- package/lib/utils/number/parseNumbers.cjs.map +0 -1
- package/models/package.json +0 -12
- package/modularui/package.json +0 -12
- package/react/package.json +0 -12
- package/react-client/package.json +0 -12
- package/react-server/package.json +0 -12
- package/react-theme/package.json +0 -12
- package/redux/package.json +0 -12
- package/tsconfig.json +0 -29
- package/utils/package.json +0 -12
- /package/lib/builder/{index.d.cts → index.d.ts} +0 -0
- /package/lib/builder/{mergeLayoutHintConfigurations.d.cts → mergeLayoutHintConfigurations.d.ts} +0 -0
- /package/lib/constants/{Constants.d.cts → Constants.d.ts} +0 -0
- /package/lib/constants/{LayoutHintConfig.d.cts → LayoutHintConfig.d.ts} +0 -0
- /package/lib/constants/{LayoutHints.d.cts → LayoutHints.d.ts} +0 -0
- /package/lib/constants/{Settings.d.cts → Settings.d.ts} +0 -0
- /package/lib/constants/{index.d.cts → index.d.ts} +0 -0
- /package/lib/exceptions/{ConfigurationException.d.cts → ConfigurationException.d.ts} +0 -0
- /package/lib/exceptions/{FetchException.d.cts → FetchException.d.ts} +0 -0
- /package/lib/exceptions/{IllegalArgumentException.d.cts → IllegalArgumentException.d.ts} +0 -0
- /package/lib/exceptions/{IllegalReturnException.d.cts → IllegalReturnException.d.ts} +0 -0
- /package/lib/exceptions/{IllegalStateException.d.cts → IllegalStateException.d.ts} +0 -0
- /package/lib/exceptions/{JsonParseException.d.cts → JsonParseException.d.ts} +0 -0
- /package/lib/exceptions/{MissingPropertyException.d.cts → MissingPropertyException.d.ts} +0 -0
- /package/lib/exceptions/{NetworkException.d.cts → NetworkException.d.ts} +0 -0
- /package/lib/exceptions/{NotAllowedUriException.d.cts → NotAllowedUriException.d.ts} +0 -0
- /package/lib/exceptions/{NotFoundException.d.cts → NotFoundException.d.ts} +0 -0
- /package/lib/exceptions/{ServerRequestException.d.cts → ServerRequestException.d.ts} +0 -0
- /package/lib/exceptions/{ThemePropertyException.d.cts → ThemePropertyException.d.ts} +0 -0
- /package/lib/exceptions/{TimeoutException.d.cts → TimeoutException.d.ts} +0 -0
- /package/lib/exceptions/{UnauthorizedException.d.cts → UnauthorizedException.d.ts} +0 -0
- /package/lib/exceptions/{UnsupportedOperationException.d.cts → UnsupportedOperationException.d.ts} +0 -0
- /package/lib/exceptions/{index.d.cts → index.d.ts} +0 -0
- /package/lib/hooks/{index.d.cts → index.d.ts} +0 -0
- /package/lib/hooks/{useAllFormsOnModel.d.cts → useAllFormsOnModel.d.ts} +0 -0
- /package/lib/hooks/{useAuthentication.d.cts → useAuthentication.d.ts} +0 -0
- /package/lib/hooks/{useContent.d.cts → useContent.d.ts} +0 -0
- /package/lib/hooks/{useDeepCompareEffect.d.cts → useDeepCompareEffect.d.ts} +0 -0
- /package/lib/hooks/{useForm.d.cts → useForm.d.ts} +0 -0
- /package/lib/hooks/{useI18n.d.cts → useI18n.d.ts} +0 -0
- /package/lib/hooks/{useModal.d.cts → useModal.d.ts} +0 -0
- /package/lib/hooks/{useModelCatalog.d.cts → useModelCatalog.d.ts} +0 -0
- /package/lib/hooks/{useModels.d.cts → useModels.d.ts} +0 -0
- /package/lib/hooks/{useModularUI.d.cts → useModularUI.d.ts} +0 -0
- /package/lib/hooks/{useModularUIBasic.d.cts → useModularUIBasic.d.ts} +0 -0
- /package/lib/hooks/{useModularUIModel.d.cts → useModularUIModel.d.ts} +0 -0
- /package/lib/hooks/{useModularUIRequest.d.cts → useModularUIRequest.d.ts} +0 -0
- /package/lib/hooks/{useNotification.d.cts → useNotification.d.ts} +0 -0
- /package/lib/hooks/{usePreference.d.cts → usePreference.d.ts} +0 -0
- /package/lib/hooks/{useProgressIndicator.d.cts → useProgressIndicator.d.ts} +0 -0
- /package/lib/hooks/{useRouter.d.cts → useRouter.d.ts} +0 -0
- /package/lib/i18n/{Locale.d.cts → Locale.d.ts} +0 -0
- /package/lib/i18n/{Locales.d.cts → Locales.d.ts} +0 -0
- /package/lib/i18n/{Message.d.cts → Message.d.ts} +0 -0
- /package/lib/i18n/{index.d.cts → index.d.ts} +0 -0
- /package/lib/i18n/{languages.d.cts → languages.d.ts} +0 -0
- /package/lib/i18n/translations/{beinformed_error_messages_en.nl.d.cts → beinformed_error_messages_en.nl.d.ts} +0 -0
- /package/lib/i18n/translations/{beinformed_error_messages_nl.nl.d.cts → beinformed_error_messages_nl.nl.d.ts} +0 -0
- /package/lib/i18n/{types.d.cts → types.d.ts} +0 -0
- /package/lib/i18n/{withMessage.d.cts → withMessage.d.ts} +0 -0
- /package/lib/{index.d.cts → index.d.ts} +0 -0
- /package/lib/models/actions/{ActionCollection.d.cts → ActionCollection.d.ts} +0 -0
- /package/lib/models/actions/{ActionModel.d.cts → ActionModel.d.ts} +0 -0
- /package/lib/models/application/{ApplicationModel.d.cts → ApplicationModel.d.ts} +0 -0
- /package/lib/models/attributes/{AttributeCollection.d.cts → AttributeCollection.d.ts} +0 -0
- /package/lib/models/attributes/{AttributeContent.d.cts → AttributeContent.d.ts} +0 -0
- /package/lib/models/attributes/{AttributeDataHelper.d.cts → AttributeDataHelper.d.ts} +0 -0
- /package/lib/models/attributes/{AttributeModel.d.cts → AttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{AttributeSetModel.d.cts → AttributeSetModel.d.ts} +0 -0
- /package/lib/models/attributes/{BooleanAttributeModel.d.cts → BooleanAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{CaptchaAttributeModel.d.cts → CaptchaAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{ChoiceAttributeModel.d.cts → ChoiceAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{ChoiceAttributeOptionCollection.d.cts → ChoiceAttributeOptionCollection.d.ts} +0 -0
- /package/lib/models/attributes/{ChoiceAttributeOptionModel.d.cts → ChoiceAttributeOptionModel.d.ts} +0 -0
- /package/lib/models/attributes/{CompositeAttributeChildCollection.d.cts → CompositeAttributeChildCollection.d.ts} +0 -0
- /package/lib/models/attributes/{CompositeAttributeModel.d.cts → CompositeAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{DatetimeAttributeModel.d.cts → DatetimeAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{HelptextAttributeModel.d.cts → HelptextAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{LabelAttributeModel.d.cts → LabelAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{MemoAttributeModel.d.cts → MemoAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{MoneyAttributeModel.d.cts → MoneyAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{NumberAttributeModel.d.cts → NumberAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{PasswordAttributeModel.d.cts → PasswordAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{StringAttributeModel.d.cts → StringAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{UploadAttributeModel.d.cts → UploadAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{XMLAttributeModel.d.cts → XMLAttributeModel.d.ts} +0 -0
- /package/lib/models/attributes/{_createAttribute.d.cts → _createAttribute.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{BSNConstraint.d.cts → BSNConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{ConstraintCollection.d.cts → ConstraintCollection.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{ConstraintModel.d.cts → ConstraintModel.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{DateBoundaryConstraint.d.cts → DateBoundaryConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{DateTimeDateFormatConstraint.d.cts → DateTimeDateFormatConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{DateTimeTimeFormatConstraint.d.cts → DateTimeTimeFormatConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{DatetimeFormatConstraint.d.cts → DatetimeFormatConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{FileExtensionConstraint.d.cts → FileExtensionConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{FileSizeConstraint.d.cts → FileSizeConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{IBANConstraint.d.cts → IBANConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{MandatoryConstraint.d.cts → MandatoryConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{MandatoryRangeConstraint.d.cts → MandatoryRangeConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{NumberBoundaryConstraint.d.cts → NumberBoundaryConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{NumberFormatConstraint.d.cts → NumberFormatConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{NumberGroupingConstraint.d.cts → NumberGroupingConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{PasswordConfirmConstraint.d.cts → PasswordConfirmConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{PasswordLowerAndUpperCaseConstraint.d.cts → PasswordLowerAndUpperCaseConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{PasswordMinNumericCharactersConstraint.d.cts → PasswordMinNumericCharactersConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{PasswordMinSpecialCharactersConstraint.d.cts → PasswordMinSpecialCharactersConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.cts → PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{RangeConstraint.d.cts → RangeConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{RegexConstraint.d.cts → RegexConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{StringLengthConstraint.d.cts → StringLengthConstraint.d.ts} +0 -0
- /package/lib/models/attributes/input-constraints/{XMLConstraint.d.cts → XMLConstraint.d.ts} +0 -0
- /package/lib/models/attributes/layouthint-rules/{BaseLayoutHintRule.d.cts → BaseLayoutHintRule.d.ts} +0 -0
- /package/lib/models/attributes/layouthint-rules/{DependentAttribute.d.cts → DependentAttribute.d.ts} +0 -0
- /package/lib/models/attributes/layouthint-rules/{LayoutHintRuleCollection.d.cts → LayoutHintRuleCollection.d.ts} +0 -0
- /package/lib/models/attributes/layouthint-rules/{RemainingTotalUploadSize.d.cts → RemainingTotalUploadSize.d.ts} +0 -0
- /package/lib/models/base/{BaseCollection.d.cts → BaseCollection.d.ts} +0 -0
- /package/lib/models/base/{BaseModel.d.cts → BaseModel.d.ts} +0 -0
- /package/lib/models/base/{ResourceCollection.d.cts → ResourceCollection.d.ts} +0 -0
- /package/lib/models/base/{ResourceModel.d.cts → ResourceModel.d.ts} +0 -0
- /package/lib/models/caseview/{CaseViewModel.d.cts → CaseViewModel.d.ts} +0 -0
- /package/lib/models/concepts/{BusinessScenarioModel.d.cts → BusinessScenarioModel.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptDetailModel.d.cts → ConceptDetailModel.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptIndexModel.d.cts → ConceptIndexModel.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptLinkModel.d.cts → ConceptLinkModel.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptRelationCollection.d.cts → ConceptRelationCollection.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptRelationModel.d.cts → ConceptRelationModel.d.ts} +0 -0
- /package/lib/models/concepts/{ConceptTypeDetailModel.d.cts → ConceptTypeDetailModel.d.ts} +0 -0
- /package/lib/models/concepts/{SourceReferenceCollection.d.cts → SourceReferenceCollection.d.ts} +0 -0
- /package/lib/models/concepts/{SourceReferenceModel.d.cts → SourceReferenceModel.d.ts} +0 -0
- /package/lib/models/content/{ContentIndexModel.d.cts → ContentIndexModel.d.ts} +0 -0
- /package/lib/models/content/{ContentLinkModel.d.cts → ContentLinkModel.d.ts} +0 -0
- /package/lib/models/content/{ContentModel.d.cts → ContentModel.d.ts} +0 -0
- /package/lib/models/content/{ContentTOCModel.d.cts → ContentTOCModel.d.ts} +0 -0
- /package/lib/models/content/{ContentTypeModel.d.cts → ContentTypeModel.d.ts} +0 -0
- /package/lib/models/content/{SectionModel.d.cts → SectionModel.d.ts} +0 -0
- /package/lib/models/content/{SubSectionModel.d.cts → SubSectionModel.d.ts} +0 -0
- /package/lib/models/contentconfiguration/{ContentConfiguration.d.cts → ContentConfiguration.d.ts} +0 -0
- /package/lib/models/contentconfiguration/{ContentConfigurationElements.d.cts → ContentConfigurationElements.d.ts} +0 -0
- /package/lib/models/contentconfiguration/{ContentConfigurationEndResults.d.cts → ContentConfigurationEndResults.d.ts} +0 -0
- /package/lib/models/contentconfiguration/{ContentConfigurationQuestions.d.cts → ContentConfigurationQuestions.d.ts} +0 -0
- /package/lib/models/contentconfiguration/{ContentConfigurationResults.d.cts → ContentConfigurationResults.d.ts} +0 -0
- /package/lib/models/detail/{DetailModel.d.cts → DetailModel.d.ts} +0 -0
- /package/lib/models/error/{ErrorCollection.d.cts → ErrorCollection.d.ts} +0 -0
- /package/lib/models/error/{ErrorModel.d.cts → ErrorModel.d.ts} +0 -0
- /package/lib/models/error/{ErrorResponse.d.cts → ErrorResponse.d.ts} +0 -0
- /package/lib/models/filters/{AssignmentFilterModel.d.cts → AssignmentFilterModel.d.ts} +0 -0
- /package/lib/models/filters/{BaseFilterModel.d.cts → BaseFilterModel.d.ts} +0 -0
- /package/lib/models/filters/{ConceptIndexFilterModel.d.cts → ConceptIndexFilterModel.d.ts} +0 -0
- /package/lib/models/filters/{FilterCollection.d.cts → FilterCollection.d.ts} +0 -0
- /package/lib/models/filters/{FilterModel.d.cts → FilterModel.d.ts} +0 -0
- /package/lib/models/filters/{RangeFilterModel.d.cts → RangeFilterModel.d.ts} +0 -0
- /package/lib/models/filters/{StringFilterModel.d.cts → StringFilterModel.d.ts} +0 -0
- /package/lib/models/form/{FormModel.d.cts → FormModel.d.ts} +0 -0
- /package/lib/models/form/{FormObjectModel.d.cts → FormObjectModel.d.ts} +0 -0
- /package/lib/models/grouping/{GroupingModel.d.cts → GroupingModel.d.ts} +0 -0
- /package/lib/models/href/{Href.d.cts → Href.d.ts} +0 -0
- /package/lib/models/href/{ListHref.d.cts → ListHref.d.ts} +0 -0
- /package/lib/models/{index.d.cts → index.d.ts} +0 -0
- /package/lib/models/layouthint/{LayoutHintCollection.d.cts → LayoutHintCollection.d.ts} +0 -0
- /package/lib/models/links/{LinkCollection.d.cts → LinkCollection.d.ts} +0 -0
- /package/lib/models/links/{LinkModel.d.cts → LinkModel.d.ts} +0 -0
- /package/lib/models/links/{normalizeLinkJSON.d.cts → normalizeLinkJSON.d.ts} +0 -0
- /package/lib/models/list/{ListDetailModel.d.cts → ListDetailModel.d.ts} +0 -0
- /package/lib/models/list/{ListHeaderModel.d.cts → ListHeaderModel.d.ts} +0 -0
- /package/lib/models/list/{ListItemCollection.d.cts → ListItemCollection.d.ts} +0 -0
- /package/lib/models/list/{ListItemModel.d.cts → ListItemModel.d.ts} +0 -0
- /package/lib/models/list/{ListModel.d.cts → ListModel.d.ts} +0 -0
- /package/lib/models/lookup/{LookupOptionCollection.d.cts → LookupOptionCollection.d.ts} +0 -0
- /package/lib/models/lookup/{LookupOptionsModel.d.cts → LookupOptionsModel.d.ts} +0 -0
- /package/lib/models/modelcatalog/{ModelCatalogModel.d.cts → ModelCatalogModel.d.ts} +0 -0
- /package/lib/models/modelcatalog/{ModelCategoryCollection.d.cts → ModelCategoryCollection.d.ts} +0 -0
- /package/lib/models/modelcatalog/{ModelCategoryModel.d.cts → ModelCategoryModel.d.ts} +0 -0
- /package/lib/models/paging/{PagesizeModel.d.cts → PagesizeModel.d.ts} +0 -0
- /package/lib/models/paging/{PagingModel.d.cts → PagingModel.d.ts} +0 -0
- /package/lib/models/panels/{GroupingPanelModel.d.cts → GroupingPanelModel.d.ts} +0 -0
- /package/lib/models/parameter/{Parameter.d.cts → Parameter.d.ts} +0 -0
- /package/lib/models/process/{ProcessStatusSettingsModel.d.cts → ProcessStatusSettingsModel.d.ts} +0 -0
- /package/lib/models/{resolveModel.d.cts → resolveModel.d.ts} +0 -0
- /package/lib/models/search/{CaseSearchModel.d.cts → CaseSearchModel.d.ts} +0 -0
- /package/lib/models/sorting/{SortOptionModel.d.cts → SortOptionModel.d.ts} +0 -0
- /package/lib/models/sorting/{SortingModel.d.cts → SortingModel.d.ts} +0 -0
- /package/lib/models/tab/{TabModel.d.cts → TabModel.d.ts} +0 -0
- /package/lib/models/taskgroup/{TaskGroupCollection.d.cts → TaskGroupCollection.d.ts} +0 -0
- /package/lib/models/taskgroup/{TaskGroupModel.d.cts → TaskGroupModel.d.ts} +0 -0
- /package/lib/models/{types.d.cts → types.d.ts} +0 -0
- /package/lib/models/user/{UserModel.d.cts → UserModel.d.ts} +0 -0
- /package/lib/models/user/{UserProfileModel.d.cts → UserProfileModel.d.ts} +0 -0
- /package/lib/models/user/{UserServicesModel.d.cts → UserServicesModel.d.ts} +0 -0
- /package/lib/modularui/{Authenticate.d.cts → Authenticate.d.ts} +0 -0
- /package/lib/modularui/{CaptchaRequest.d.cts → CaptchaRequest.d.ts} +0 -0
- /package/lib/modularui/{ModularUIError.d.cts → ModularUIError.d.ts} +0 -0
- /package/lib/modularui/{ModularUIRequest.d.cts → ModularUIRequest.d.ts} +0 -0
- /package/lib/modularui/{ModularUIResponse.d.cts → ModularUIResponse.d.ts} +0 -0
- /package/lib/modularui/{UploadRequest.d.cts → UploadRequest.d.ts} +0 -0
- /package/lib/modularui/{index.d.cts → index.d.ts} +0 -0
- /package/lib/modularui/{types.d.cts → types.d.ts} +0 -0
- /package/lib/react/{ErrorBoundary.d.cts → ErrorBoundary.d.ts} +0 -0
- /package/lib/react/{ErrorBoundaryFallback.d.cts → ErrorBoundaryFallback.d.ts} +0 -0
- /package/lib/react/{index.d.cts → index.d.ts} +0 -0
- /package/lib/react/{utils.d.cts → utils.d.ts} +0 -0
- /package/lib/react-client/{Init.d.cts → Init.d.ts} +0 -0
- /package/lib/react-client/{client.d.cts → client.d.ts} +0 -0
- /package/lib/react-client/{contextPath.d.cts → contextPath.d.ts} +0 -0
- /package/lib/react-client/{index.d.cts → index.d.ts} +0 -0
- /package/lib/react-client/{rehydrate.d.cts → rehydrate.d.ts} +0 -0
- /package/lib/react-server/{contextPath.d.cts → contextPath.d.ts} +0 -0
- /package/lib/react-server/{createSSRComplete.d.cts → createSSRComplete.d.ts} +0 -0
- /package/lib/react-server/{htmlpage.d.cts → htmlpage.d.ts} +0 -0
- /package/lib/react-server/{index.d.cts → index.d.ts} +0 -0
- /package/lib/react-server/{renderSSRComplete.d.cts → renderSSRComplete.d.ts} +0 -0
- /package/lib/react-server/{renderSSRMinimal.d.cts → renderSSRMinimal.d.ts} +0 -0
- /package/lib/react-server/{requestInformation.d.cts → requestInformation.d.ts} +0 -0
- /package/lib/react-server/{serverNoSSR.d.cts → serverNoSSR.d.ts} +0 -0
- /package/lib/react-server/{serverSSR.d.cts → serverSSR.d.ts} +0 -0
- /package/lib/react-server/{serverUtil.d.cts → serverUtil.d.ts} +0 -0
- /package/lib/react-theme/{ThemeProvider.d.cts → ThemeProvider.d.ts} +0 -0
- /package/lib/react-theme/{createTheme.d.cts → createTheme.d.ts} +0 -0
- /package/lib/react-theme/{index.d.cts → index.d.ts} +0 -0
- /package/lib/react-theme/{types.d.cts → types.d.ts} +0 -0
- /package/lib/react-theme/{useTheme.d.cts → useTheme.d.ts} +0 -0
- /package/lib/react-theme/utils/{background.d.cts → background.d.ts} +0 -0
- /package/lib/react-theme/utils/{colors.d.cts → colors.d.ts} +0 -0
- /package/lib/react-theme/utils/{contrast.d.cts → contrast.d.ts} +0 -0
- /package/lib/react-theme/utils/{corners.d.cts → corners.d.ts} +0 -0
- /package/lib/react-theme/utils/{spacers.d.cts → spacers.d.ts} +0 -0
- /package/lib/react-theme/utils/{themeProps.d.cts → themeProps.d.ts} +0 -0
- /package/lib/redux/_i18n/{I18nActions.d.cts → I18nActions.d.ts} +0 -0
- /package/lib/redux/_i18n/{I18nReducer.d.cts → I18nReducer.d.ts} +0 -0
- /package/lib/redux/_i18n/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/_i18n/{types.d.cts → types.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUIActions.d.cts → ModularUIActions.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUIConnector.d.cts → ModularUIConnector.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUIMiddleware.d.cts → ModularUIMiddleware.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUIReducer.d.cts → ModularUIReducer.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUISelectors.d.cts → ModularUISelectors.d.ts} +0 -0
- /package/lib/redux/_modularui/{ModularUIUtils.d.cts → ModularUIUtils.d.ts} +0 -0
- /package/lib/redux/_modularui/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/_modularui/{types.d.cts → types.d.ts} +0 -0
- /package/lib/redux/_modularui/{withModularUI.d.cts → withModularUI.d.ts} +0 -0
- /package/lib/redux/_router/{RouterActions.d.cts → RouterActions.d.ts} +0 -0
- /package/lib/redux/_router/{RouterConnectors.d.cts → RouterConnectors.d.ts} +0 -0
- /package/lib/redux/_router/{RouterMiddleware.d.cts → RouterMiddleware.d.ts} +0 -0
- /package/lib/redux/_router/{RouterReducer.d.cts → RouterReducer.d.ts} +0 -0
- /package/lib/redux/_router/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/_router/{types.d.cts → types.d.ts} +0 -0
- /package/lib/redux/actions/{Application.d.cts → Application.d.ts} +0 -0
- /package/lib/redux/actions/{Authorization.d.cts → Authorization.d.ts} +0 -0
- /package/lib/redux/actions/{Error.d.cts → Error.d.ts} +0 -0
- /package/lib/redux/actions/{Form.d.cts → Form.d.ts} +0 -0
- /package/lib/redux/actions/{FormAttributeSet.d.cts → FormAttributeSet.d.ts} +0 -0
- /package/lib/redux/actions/{FormAttributeSetRepeatable.d.cts → FormAttributeSetRepeatable.d.ts} +0 -0
- /package/lib/redux/actions/{FormAutosave.d.cts → FormAutosave.d.ts} +0 -0
- /package/lib/redux/actions/{FormAutosubmit.d.cts → FormAutosubmit.d.ts} +0 -0
- /package/lib/redux/actions/{FormAutoupdate.d.cts → FormAutoupdate.d.ts} +0 -0
- /package/lib/redux/actions/{FormValidations.d.cts → FormValidations.d.ts} +0 -0
- /package/lib/redux/actions/{Modals.d.cts → Modals.d.ts} +0 -0
- /package/lib/redux/actions/{ModelCatalog.d.cts → ModelCatalog.d.ts} +0 -0
- /package/lib/redux/actions/{Notification.d.cts → Notification.d.ts} +0 -0
- /package/lib/redux/actions/{Preferences.d.cts → Preferences.d.ts} +0 -0
- /package/lib/redux/actions/{ProgressIndicator.d.cts → ProgressIndicator.d.ts} +0 -0
- /package/lib/redux/actions/{SignIn.d.cts → SignIn.d.ts} +0 -0
- /package/lib/redux/actions/{SignOut.d.cts → SignOut.d.ts} +0 -0
- /package/lib/redux/actions/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/connectors/{Application.d.cts → Application.d.ts} +0 -0
- /package/lib/redux/connectors/{Breadcrumb.d.cts → Breadcrumb.d.ts} +0 -0
- /package/lib/redux/connectors/{CaseView.d.cts → CaseView.d.ts} +0 -0
- /package/lib/redux/connectors/{ConceptDetail.d.cts → ConceptDetail.d.ts} +0 -0
- /package/lib/redux/connectors/{ContentBrowser.d.cts → ContentBrowser.d.ts} +0 -0
- /package/lib/redux/connectors/{ContentDetail.d.cts → ContentDetail.d.ts} +0 -0
- /package/lib/redux/connectors/{ContentDetailSection.d.cts → ContentDetailSection.d.ts} +0 -0
- /package/lib/redux/connectors/{Form.d.cts → Form.d.ts} +0 -0
- /package/lib/redux/connectors/{FormAttributeSet.d.cts → FormAttributeSet.d.ts} +0 -0
- /package/lib/redux/connectors/{ListDetail.d.cts → ListDetail.d.ts} +0 -0
- /package/lib/redux/connectors/{Modal.d.cts → Modal.d.ts} +0 -0
- /package/lib/redux/connectors/{ModelCatalog.d.cts → ModelCatalog.d.ts} +0 -0
- /package/lib/redux/connectors/{Notification.d.cts → Notification.d.ts} +0 -0
- /package/lib/redux/connectors/{PanelRenderer.d.cts → PanelRenderer.d.ts} +0 -0
- /package/lib/redux/connectors/{Preferences.d.cts → Preferences.d.ts} +0 -0
- /package/lib/redux/connectors/{Progress.d.cts → Progress.d.ts} +0 -0
- /package/lib/redux/connectors/{ProgressIndicator.d.cts → ProgressIndicator.d.ts} +0 -0
- /package/lib/redux/connectors/{QuickSearch.d.cts → QuickSearch.d.ts} +0 -0
- /package/lib/redux/connectors/{SignIn.d.cts → SignIn.d.ts} +0 -0
- /package/lib/redux/connectors/{SignOut.d.cts → SignOut.d.ts} +0 -0
- /package/lib/redux/connectors/{Tab.d.cts → Tab.d.ts} +0 -0
- /package/lib/redux/connectors/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/reducers/{AuthReducer.d.cts → AuthReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{ErrorReducer.d.cts → ErrorReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{ModalsReducer.d.cts → ModalsReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{ModelCatalogReducer.d.cts → ModelCatalogReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{NotificationReducer.d.cts → NotificationReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{PreferencesReducer.d.cts → PreferencesReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{ProgressIndicatorReducer.d.cts → ProgressIndicatorReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{createReducer.d.cts → createReducer.d.ts} +0 -0
- /package/lib/redux/reducers/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/selectors/{i18n.d.cts → i18n.d.ts} +0 -0
- /package/lib/redux/selectors/{index.d.cts → index.d.ts} +0 -0
- /package/lib/redux/selectors/{modelcatalog.d.cts → modelcatalog.d.ts} +0 -0
- /package/lib/redux/store/{beforeRenderHooks.d.cts → beforeRenderHooks.d.ts} +0 -0
- /package/lib/redux/store/{configureStore.d.cts → configureStore.d.ts} +0 -0
- /package/lib/redux/{types.d.cts → types.d.ts} +0 -0
- /package/lib/utils/browser/{Cache.d.cts → Cache.d.ts} +0 -0
- /package/lib/utils/browser/{Cookies.d.cts → Cookies.d.ts} +0 -0
- /package/lib/utils/datetime/{DateTimeUtil.d.cts → DateTimeUtil.d.ts} +0 -0
- /package/lib/utils/fetch/__mocks__/{universalFetch.d.cts → universalFetch.d.ts} +0 -0
- /package/lib/utils/fetch/{serverFetch.d.cts → serverFetch.d.ts} +0 -0
- /package/lib/utils/fetch/{types.d.cts → types.d.ts} +0 -0
- /package/lib/utils/fetch/{universalFetch.d.cts → universalFetch.d.ts} +0 -0
- /package/lib/utils/fetch/{xhr.d.cts → xhr.d.ts} +0 -0
- /package/lib/utils/helpers/{checkResource.d.cts → checkResource.d.ts} +0 -0
- /package/lib/utils/helpers/{createHash.d.cts → createHash.d.ts} +0 -0
- /package/lib/utils/helpers/{createHref.d.cts → createHref.d.ts} +0 -0
- /package/lib/utils/helpers/{createUUID.d.cts → createUUID.d.ts} +0 -0
- /package/lib/utils/helpers/{index.d.cts → index.d.ts} +0 -0
- /package/lib/utils/helpers/{objects.d.cts → objects.d.ts} +0 -0
- /package/lib/utils/helpers/{repositoryResource.d.cts → repositoryResource.d.ts} +0 -0
- /package/lib/utils/helpers/{sanitizeHtml.d.cts → sanitizeHtml.d.ts} +0 -0
- /package/lib/utils/helpers/{text.d.cts → text.d.ts} +0 -0
- /package/lib/utils/{index.d.cts → index.d.ts} +0 -0
- /package/lib/utils/number/{DecimalFormat.d.cts → DecimalFormat.d.ts} +0 -0
- /package/lib/utils/number/{formatValue.d.cts → formatValue.d.ts} +0 -0
- /package/lib/utils/number/{parseNumbers.d.cts → parseNumbers.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useContent.cjs","names":["_react","require","_SourceReferenceCollection","_interopRequireDefault","_ModularUIRequest","_useProgressIndicator","_useI18n","useContentFromSourceReferences","sourceReferences","renderChildSections","_context","_context2","content","setContent","useState","localeCode","useLocale","start","finish","useProgressIndicator","hrefs","_map","default","_filter","call","sourceReference","link","selfhref","href","index","self","indexOf","toString","allHrefs","_stringify","useEffect","_context3","requests","JSON","parse","modularuiRequest","ModularUIRequest","locale","fetchContent","_promise","all","then","responseContent","exports"],"sources":["../../src/hooks/useContent.js"],"sourcesContent":["// @flow\nimport { useState, useEffect } from \"react\";\n\nimport SourceReferenceCollection from \"../models/concepts/SourceReferenceCollection\";\nimport ModularUIRequest from \"../modularui/ModularUIRequest\";\n\nimport { useProgressIndicator } from \"../hooks/useProgressIndicator\";\nimport { useLocale } from \"../hooks/useI18n\";\n\nimport type ContentModel from \"../models/content/ContentModel\";\n\n/**\n * Hook to retrieve multiple source references at once\n */\nexport const useContentFromSourceReferences = (\n sourceReferences: SourceReferenceCollection,\n renderChildSections: boolean,\n): Array<ContentModel> => {\n const [content, setContent] = useState([]);\n const localeCode = useLocale();\n\n const { start, finish } = useProgressIndicator();\n\n const hrefs = sourceReferences\n .map((sourceReference) => sourceReference.link.selfhref.href)\n .filter((href, index, self) => self.indexOf(href) === index)\n .map((href) => href.toString());\n\n const allHrefs = JSON.stringify(hrefs);\n useEffect(() => {\n const requests = JSON.parse(allHrefs).map((href) => {\n const modularuiRequest = new ModularUIRequest(href);\n modularuiRequest.locale = localeCode;\n return modularuiRequest.fetchContent(renderChildSections);\n });\n\n start();\n Promise.all(requests).then((responseContent) => {\n setContent(responseContent);\n finish();\n });\n\n // start and finish don't change\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [allHrefs, localeCode, renderChildSections]);\n\n return content;\n};\n"],"mappings":";;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,qBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAIA;AACA;AACA;AACO,MAAMM,8BAA8B,GAAGA,CAC5CC,gBAA2C,EAC3CC,mBAA4B,KACJ;EAAA,IAAAC,QAAA,EAAAC,SAAA;EACxB,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EAC1C,MAAMC,UAAU,GAAG,IAAAC,kBAAS,EAAC,CAAC;EAE9B,MAAM;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAG,IAAAC,0CAAoB,EAAC,CAAC;EAEhD,MAAMC,KAAK,GAAG,IAAAC,IAAA,CAAAC,OAAA,EAAAZ,QAAA,OAAAa,OAAA,CAAAD,OAAA,EAAAX,SAAA,OAAAU,IAAA,CAAAC,OAAA,EAAAd,gBAAgB,EAAAgB,IAAA,CAAhBhB,gBAAgB,EACtBiB,eAAe,IAAKA,eAAe,CAACC,IAAI,CAACC,QAAQ,CAACC,IAAI,CAAC,EAAAJ,IAAA,CAAAb,SAAA,EACrD,CAACiB,IAAI,EAAEC,KAAK,EAAEC,IAAI,KAAKA,IAAI,CAACC,OAAO,CAACH,IAAI,CAAC,KAAKC,KAAK,CAAC,EAAAL,IAAA,CAAAd,QAAA,EACtDkB,IAAI,IAAKA,IAAI,CAACI,QAAQ,CAAC,CAAC,CAAC;EAEjC,MAAMC,QAAQ,GAAG,IAAAC,UAAA,CAAAZ,OAAA,EAAeF,KAAK,CAAC;EACtC,IAAAe,gBAAS,EAAC,MAAM;IAAA,IAAAC,SAAA;IACd,MAAMC,QAAQ,GAAG,IAAAhB,IAAA,CAAAC,OAAA,EAAAc,SAAA,GAAAE,IAAI,CAACC,KAAK,CAACN,QAAQ,CAAC,EAAAT,IAAA,CAAAY,SAAA,EAAMR,IAAI,IAAK;MAClD,MAAMY,gBAAgB,GAAG,IAAIC,yBAAgB,CAACb,IAAI,CAAC;MACnDY,gBAAgB,CAACE,MAAM,GAAG3B,UAAU;MACpC,OAAOyB,gBAAgB,CAACG,YAAY,CAAClC,mBAAmB,CAAC;IAC3D,CAAC,CAAC;IAEFQ,KAAK,CAAC,CAAC;IACP2B,QAAA,CAAAtB,OAAA,CAAQuB,GAAG,CAACR,QAAQ,CAAC,CAACS,IAAI,CAAEC,eAAe,IAAK;MAC9ClC,UAAU,CAACkC,eAAe,CAAC;MAC3B7B,MAAM,CAAC,CAAC;IACV,CAAC,CAAC;;IAEF;IACA;EACF,CAAC,EAAE,CAACe,QAAQ,EAAElB,UAAU,EAAEN,mBAAmB,CAAC,CAAC;EAE/C,OAAOG,OAAO;AAChB,CAAC;AAACoC,OAAA,CAAAzC,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
|
|
4
|
-
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
exports.useDeepCompareEffect = useDeepCompareEffect;
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _lite = require("dequal/lite");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
/**
|
|
15
|
-
* As copied from https://github.com/kentcdodds/use-deep-compare-effect/
|
|
16
|
-
* Need to copy this, because the dependency on dequal breaks in ie11
|
|
17
|
-
*/
|
|
18
|
-
const useDeepCompareMemoize = value => {
|
|
19
|
-
const ref = React.useRef(null); // NOSONAR
|
|
20
|
-
const signalRef = React.useRef(0);
|
|
21
|
-
if (!(0, _lite.dequal)(value, ref.current)) {
|
|
22
|
-
ref.current = value;
|
|
23
|
-
signalRef.current += 1;
|
|
24
|
-
}
|
|
25
|
-
return [signalRef.current];
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
*/
|
|
30
|
-
function useDeepCompareEffect(callback, dependencies) {
|
|
31
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
-
return React.useEffect(callback, useDeepCompareMemoize(dependencies));
|
|
33
|
-
}
|
|
34
|
-
var _default = exports.default = useDeepCompareEffect;
|
|
35
|
-
//# sourceMappingURL=useDeepCompareEffect.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeepCompareEffect.cjs","names":["React","_interopRequireWildcard","require","_lite","_getRequireWildcardCache","e","_WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","_Object$getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useDeepCompareMemoize","value","ref","useRef","signalRef","deepEqual","current","useDeepCompareEffect","callback","dependencies","useEffect","_default","exports"],"sources":["../../src/hooks/useDeepCompareEffect.js"],"sourcesContent":["// @flow\nimport * as React from \"react\";\nimport { dequal as deepEqual } from \"dequal/lite\";\n\ntype Callback = () => void | (() => void);\ntype DependencyList = Array<mixed>;\n\n/**\n * As copied from https://github.com/kentcdodds/use-deep-compare-effect/\n * Need to copy this, because the dependency on dequal breaks in ie11\n */\nconst useDeepCompareMemoize = (value: DependencyList) => {\n const ref = React.useRef<DependencyList | null>(null); // NOSONAR\n const signalRef = React.useRef<number>(0);\n\n if (!deepEqual(value, ref.current)) {\n ref.current = value;\n signalRef.current += 1;\n }\n\n return [signalRef.current];\n};\n\n/**\n */\nexport function useDeepCompareEffect(\n callback: Callback,\n dependencies: DependencyList,\n): void {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n return React.useEffect(callback, useDeepCompareMemoize(dependencies));\n}\n\nexport default useDeepCompareEffect;\n"],"mappings":";;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAkD,SAAAE,yBAAAC,CAAA,6BAAAC,QAAA,mBAAAC,CAAA,OAAAD,QAAA,IAAAE,CAAA,OAAAF,QAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAC,gCAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAG,gCAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAKlD;AACA;AACA;AACA;AACA,MAAMW,qBAAqB,GAAIC,KAAqB,IAAK;EACvD,MAAMC,GAAG,GAAG1B,KAAK,CAAC2B,MAAM,CAAwB,IAAI,CAAC,CAAC,CAAC;EACvD,MAAMC,SAAS,GAAG5B,KAAK,CAAC2B,MAAM,CAAS,CAAC,CAAC;EAEzC,IAAI,CAAC,IAAAE,YAAS,EAACJ,KAAK,EAAEC,GAAG,CAACI,OAAO,CAAC,EAAE;IAClCJ,GAAG,CAACI,OAAO,GAAGL,KAAK;IACnBG,SAAS,CAACE,OAAO,IAAI,CAAC;EACxB;EAEA,OAAO,CAACF,SAAS,CAACE,OAAO,CAAC;AAC5B,CAAC;;AAED;AACA;AACO,SAASC,oBAAoBA,CAClCC,QAAkB,EAClBC,YAA4B,EACtB;EACN;EACA,OAAOjC,KAAK,CAACkC,SAAS,CAACF,QAAQ,EAAER,qBAAqB,CAACS,YAAY,CAAC,CAAC;AACvE;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAA1B,OAAA,GAEcqB,oBAAoB","ignoreList":[]}
|
package/lib/hooks/useForm.cjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useFormNavigation = exports.useForm = exports.useAttributeUpdate = exports.useAttributeSet = void 0;
|
|
8
|
-
var _reactRedux = require("react-redux");
|
|
9
|
-
var _Href = _interopRequireDefault(require("../models/href/Href"));
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
var _modularui = require("../redux/_modularui");
|
|
12
|
-
var _useModularUI = require("./useModularUI");
|
|
13
|
-
var _actions = require("../redux/actions");
|
|
14
|
-
var _FormModel = _interopRequireDefault(require("../models/form/FormModel"));
|
|
15
|
-
/**
|
|
16
|
-
* Load a form by href
|
|
17
|
-
*/
|
|
18
|
-
const useForm = (href, data) => {
|
|
19
|
-
const formHref = new _Href.default(href);
|
|
20
|
-
if (!(0, _constants.getSetting)("ALWAYS_COMMIT_FORM")) {
|
|
21
|
-
formHref.addParameter("commit", "false");
|
|
22
|
-
}
|
|
23
|
-
const form = (0, _useModularUI.useModularUI)("form", formHref, {
|
|
24
|
-
method: _constants.HTTP_METHODS.POST,
|
|
25
|
-
targetModel: _FormModel.default,
|
|
26
|
-
removeOnUnmount: true,
|
|
27
|
-
data,
|
|
28
|
-
origin: formHref.origin,
|
|
29
|
-
contextPath: formHref.contextPath
|
|
30
|
-
});
|
|
31
|
-
if (form?.model) {
|
|
32
|
-
return form.model;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Form navigation methods
|
|
38
|
-
*/
|
|
39
|
-
exports.useForm = useForm;
|
|
40
|
-
const useFormNavigation = () => {
|
|
41
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
42
|
-
const previous = form => dispatch((0, _actions.previousObject)(form));
|
|
43
|
-
const cancel = form => dispatch((0, _actions.cancelForm)(form));
|
|
44
|
-
const submit = form => dispatch((0, _modularui.loadModularUI)(form.connectKey, form.selfhref, {
|
|
45
|
-
method: _constants.HTTP_METHODS.POST,
|
|
46
|
-
data: form.formdata,
|
|
47
|
-
updateHandler: newModel => {
|
|
48
|
-
if (newModel instanceof _FormModel.default) {
|
|
49
|
-
const clonedModel = form.clone();
|
|
50
|
-
clonedModel.update(newModel);
|
|
51
|
-
return clonedModel;
|
|
52
|
-
}
|
|
53
|
-
return newModel;
|
|
54
|
-
},
|
|
55
|
-
targetModel: _FormModel.default
|
|
56
|
-
}));
|
|
57
|
-
const remove = form => dispatch((0, _modularui.removeModelByKey)(form.connectKey));
|
|
58
|
-
const showFormNotificationAction = form => dispatch((0, _actions.showFormNotification)(form));
|
|
59
|
-
return {
|
|
60
|
-
previous,
|
|
61
|
-
cancel,
|
|
62
|
-
submit,
|
|
63
|
-
remove,
|
|
64
|
-
showFormNotification: showFormNotificationAction
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Hook that returns a function to update attributes of a form object.
|
|
70
|
-
* <br >
|
|
71
|
-
* The returned function accepts the following options:
|
|
72
|
-
*
|
|
73
|
-
* - autosubmit: Automatically submit the form after a change
|
|
74
|
-
* - autosav: Automatically save the form (in the background) after a change
|
|
75
|
-
* - autoupdate: Automatically update the current form object after a change
|
|
76
|
-
* - forceUpdate: Force the update even if conditions are not met.
|
|
77
|
-
* - validate: Activate/deactivate the form object validation by an update.
|
|
78
|
-
*/
|
|
79
|
-
exports.useFormNavigation = useFormNavigation;
|
|
80
|
-
const useAttributeUpdate = (form, object) => {
|
|
81
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
82
|
-
return (attribute, value, options) => dispatch((0, _actions.updateFormAttribute)(form, object, attribute, value, options));
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Attributeset actions
|
|
87
|
-
*/
|
|
88
|
-
exports.useAttributeUpdate = useAttributeUpdate;
|
|
89
|
-
const useAttributeSet = form => {
|
|
90
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
91
|
-
return {
|
|
92
|
-
save: () => dispatch((0, _actions.addRepeatableAttributeSet)(form)),
|
|
93
|
-
cancel: object => dispatch((0, _actions.cancelRepeatableAttributeSet)(form, object)),
|
|
94
|
-
remove: object => dispatch((0, _actions.removeRepeatableAttributeSet)(form, object))
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
exports.useAttributeSet = useAttributeSet;
|
|
98
|
-
//# sourceMappingURL=useForm.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.cjs","names":["_reactRedux","require","_Href","_interopRequireDefault","_constants","_modularui","_useModularUI","_actions","_FormModel","useForm","href","data","formHref","Href","getSetting","addParameter","form","useModularUI","method","HTTP_METHODS","POST","targetModel","FormModel","removeOnUnmount","origin","contextPath","model","exports","useFormNavigation","dispatch","useDispatch","previous","previousObject","cancel","cancelForm","submit","loadModularUI","connectKey","selfhref","formdata","updateHandler","newModel","clonedModel","clone","update","remove","removeModelByKey","showFormNotificationAction","showFormNotification","useAttributeUpdate","object","attribute","value","options","updateFormAttribute","useAttributeSet","save","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet"],"sources":["../../src/hooks/useForm.js"],"sourcesContent":["// @flow\nimport { useDispatch } from \"react-redux\";\n\nimport Href from \"../models/href/Href\";\n\nimport { getSetting, HTTP_METHODS } from \"../constants\";\n\nimport type {\n RemoveModelByKeyAction,\n UpdateFormAction,\n} from \"../redux/_modularui\";\nimport { loadModularUI, removeModelByKey } from \"../redux/_modularui\";\nimport { useModularUI } from \"./useModularUI\";\n\nimport {\n addRepeatableAttributeSet,\n cancelForm,\n cancelRepeatableAttributeSet,\n previousObject,\n removeRepeatableAttributeSet,\n showFormNotification,\n updateFormAttribute,\n} from \"../redux/actions\";\n\nimport FormModel from \"../models/form/FormModel\";\n\nimport type { AttributeType, FormObjectModel, ModularUIModel } from \"../models\";\nimport type { UpdateFormOptions } from \"../redux/types\";\n\ntype FormNavigationHook = {\n previous: (form: FormModel) => UpdateFormAction,\n cancel: (form: FormModel) => void,\n submit: (form: FormModel) => void,\n showFormNotification: (form: FormModel) => void,\n remove: (form: FormModel) => RemoveModelByKeyAction,\n};\n\ntype AttributeSetHook = {\n save: () => UpdateFormAction,\n cancel: (object: FormObjectModel) => UpdateFormAction,\n remove: (object: FormObjectModel) => UpdateFormAction,\n};\n\ntype AttributeUpdateHook = (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions,\n) => void;\n\n/**\n * Load a form by href\n */\nexport const useForm = (href: string | Href, data?: Object): ?FormModel => {\n const formHref = new Href(href);\n\n if (!getSetting(\"ALWAYS_COMMIT_FORM\")) {\n formHref.addParameter(\"commit\", \"false\");\n }\n\n const form = useModularUI(\"form\", formHref, {\n method: HTTP_METHODS.POST,\n targetModel: FormModel,\n removeOnUnmount: true,\n data,\n origin: formHref.origin,\n contextPath: formHref.contextPath,\n });\n\n if (form?.model) {\n return form.model;\n }\n};\n\n/**\n * Form navigation methods\n */\nexport const useFormNavigation = (): FormNavigationHook => {\n const dispatch = useDispatch();\n\n const previous = (form: FormModel) => dispatch(previousObject(form));\n\n const cancel = (form: FormModel) => dispatch(cancelForm(form));\n\n const submit = (form: FormModel) =>\n dispatch(\n loadModularUI(form.connectKey, form.selfhref, {\n method: HTTP_METHODS.POST,\n data: form.formdata,\n updateHandler: (newModel: ModularUIModel): ModularUIModel => {\n if (newModel instanceof FormModel) {\n const clonedModel: FormModel = form.clone();\n clonedModel.update(newModel);\n return clonedModel;\n }\n return newModel;\n },\n targetModel: FormModel,\n }),\n );\n\n const remove = (form: FormModel) =>\n dispatch(removeModelByKey(form.connectKey));\n\n const showFormNotificationAction = (form: FormModel) =>\n dispatch(showFormNotification(form));\n\n return {\n previous,\n cancel,\n submit,\n remove,\n showFormNotification: showFormNotificationAction,\n };\n};\n\n/**\n * Hook that returns a function to update attributes of a form object.\n * <br >\n * The returned function accepts the following options:\n *\n * - autosubmit: Automatically submit the form after a change\n * - autosav: Automatically save the form (in the background) after a change\n * - autoupdate: Automatically update the current form object after a change\n * - forceUpdate: Force the update even if conditions are not met.\n * - validate: Activate/deactivate the form object validation by an update.\n */\nexport const useAttributeUpdate = (\n form: FormModel,\n object: FormObjectModel,\n): AttributeUpdateHook => {\n const dispatch = useDispatch();\n\n return (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions,\n ) => dispatch(updateFormAttribute(form, object, attribute, value, options));\n};\n\n/**\n * Attributeset actions\n */\nexport const useAttributeSet = (form: FormModel): AttributeSetHook => {\n const dispatch = useDispatch();\n\n return {\n save: () => dispatch(addRepeatableAttributeSet(form)),\n cancel: (object: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(form, object)),\n remove: (object: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(form, object)),\n };\n};\n"],"mappings":"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","ignoreList":[]}
|
package/lib/hooks/useI18n.cjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useTranslate = exports.useMessage = exports.useLocaleCodes = exports.useLocale = void 0;
|
|
8
|
-
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
|
|
9
|
-
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
11
|
-
var _reselect = require("reselect");
|
|
12
|
-
var _memoize = _interopRequireDefault(require("lodash/memoize"));
|
|
13
|
-
var _i18n = require("../redux/selectors/i18n");
|
|
14
|
-
const getMessage = (0, _reselect.createSelector)([_i18n.getLocales, _i18n.getLocale], (locales, localeCode) => (0, _memoize.default)((id, defaultMessage, placeholders) => locales.getLocale(localeCode).getMessage(id, defaultMessage, placeholders), function () {
|
|
15
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
16
|
-
args[_key] = arguments[_key];
|
|
17
|
-
}
|
|
18
|
-
return (0, _stringify.default)(args);
|
|
19
|
-
}));
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
*/
|
|
23
|
-
const useMessage = (id, defaultMessage, placeholders) => (0, _reactRedux.useSelector)(getMessage)(id, defaultMessage, placeholders);
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
*/
|
|
27
|
-
exports.useMessage = useMessage;
|
|
28
|
-
const useTranslate = () => (0, _reactRedux.useSelector)(getMessage);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
*/
|
|
32
|
-
exports.useTranslate = useTranslate;
|
|
33
|
-
const useLocale = () => (0, _reactRedux.useSelector)(_i18n.getLocale);
|
|
34
|
-
exports.useLocale = useLocale;
|
|
35
|
-
const getLocaleCodes = (0, _reselect.createSelector)(state => state.i18n.locales, locales => (0, _map.default)(locales).call(locales, locale => locale.code));
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Retrieve all available locale codes
|
|
39
|
-
*/
|
|
40
|
-
const useLocaleCodes = () => (0, _reactRedux.useSelector)(getLocaleCodes);
|
|
41
|
-
exports.useLocaleCodes = useLocaleCodes;
|
|
42
|
-
//# sourceMappingURL=useI18n.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.cjs","names":["_reactRedux","require","_reselect","_memoize","_interopRequireDefault","_i18n","getMessage","createSelector","getLocales","getLocale","locales","localeCode","memoize","id","defaultMessage","placeholders","_len","arguments","length","args","Array","_key","_stringify","default","useMessage","useSelector","exports","useTranslate","useLocale","getLocaleCodes","state","i18n","_map","call","locale","code","useLocaleCodes"],"sources":["../../src/hooks/useI18n.js"],"sourcesContent":["// @flow\nimport { useSelector } from \"react-redux\";\nimport { createSelector } from \"reselect\";\nimport memoize from \"lodash/memoize\";\n\nimport { getLocales, getLocale } from \"../redux/selectors/i18n\";\n\nconst getMessage = createSelector(\n [getLocales, getLocale],\n (locales, localeCode) =>\n memoize(\n (id: string, defaultMessage?: string, placeholders?: Object) =>\n locales\n .getLocale(localeCode)\n .getMessage(id, defaultMessage, placeholders),\n (...args) => JSON.stringify(args),\n ),\n);\n\n/**\n */\nconst useMessage = (\n id: string,\n defaultMessage?: string,\n placeholders?: Object | null,\n): any => useSelector(getMessage)(id, defaultMessage, placeholders);\n\n/**\n */\nconst useTranslate = (): ((...any) => any) => useSelector(getMessage);\n\n/**\n */\nconst useLocale = (): string => useSelector(getLocale);\n\nconst getLocaleCodes = createSelector(\n (state) => state.i18n.locales,\n (locales) => locales.map((locale) => locale.code),\n);\n\n/**\n * Retrieve all available locale codes\n */\nconst useLocaleCodes = (): Array<string> => useSelector(getLocaleCodes);\n\nexport { useTranslate, useMessage, useLocale, useLocaleCodes };\n"],"mappings":";;;;;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAJ,OAAA;AAEA,MAAMK,UAAU,GAAG,IAAAC,wBAAc,EAC/B,CAACC,gBAAU,EAAEC,eAAS,CAAC,EACvB,CAACC,OAAO,EAAEC,UAAU,KAClB,IAAAC,gBAAO,EACL,CAACC,EAAU,EAAEC,cAAuB,EAAEC,YAAqB,KACzDL,OAAO,CACJD,SAAS,CAACE,UAAU,CAAC,CACrBL,UAAU,CAACO,EAAE,EAAEC,cAAc,EAAEC,YAAY,CAAC,EACjD;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAIC,IAAI,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAAJF,IAAI,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA;EAAA;EAAA,OAAK,IAAAC,UAAA,CAAAC,OAAA,EAAeJ,IAAI,CAAC;AAAA,CACnC,CACJ,CAAC;;AAED;AACA;AACA,MAAMK,UAAU,GAAGA,CACjBX,EAAU,EACVC,cAAuB,EACvBC,YAA4B,KACpB,IAAAU,uBAAW,EAACnB,UAAU,CAAC,CAACO,EAAE,EAAEC,cAAc,EAAEC,YAAY,CAAC;;AAEnE;AACA;AADAW,OAAA,CAAAF,UAAA,GAAAA,UAAA;AAEA,MAAMG,YAAY,GAAGA,CAAA,KAAyB,IAAAF,uBAAW,EAACnB,UAAU,CAAC;;AAErE;AACA;AADAoB,OAAA,CAAAC,YAAA,GAAAA,YAAA;AAEA,MAAMC,SAAS,GAAGA,CAAA,KAAc,IAAAH,uBAAW,EAAChB,eAAS,CAAC;AAACiB,OAAA,CAAAE,SAAA,GAAAA,SAAA;AAEvD,MAAMC,cAAc,GAAG,IAAAtB,wBAAc,EAClCuB,KAAK,IAAKA,KAAK,CAACC,IAAI,CAACrB,OAAO,EAC5BA,OAAO,IAAK,IAAAsB,IAAA,CAAAT,OAAA,EAAAb,OAAO,EAAAuB,IAAA,CAAPvB,OAAO,EAAMwB,MAAM,IAAKA,MAAM,CAACC,IAAI,CAClD,CAAC;;AAED;AACA;AACA;AACA,MAAMC,cAAc,GAAGA,CAAA,KAAqB,IAAAX,uBAAW,EAACI,cAAc,CAAC;AAACH,OAAA,CAAAU,cAAA,GAAAA,cAAA","ignoreList":[]}
|
package/lib/hooks/useModal.cjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useModal = void 0;
|
|
8
|
-
var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
11
|
-
var _Modals = require("../redux/actions/Modals");
|
|
12
|
-
var _exceptions = require("../exceptions");
|
|
13
|
-
/**
|
|
14
|
-
* Manage modals
|
|
15
|
-
*/
|
|
16
|
-
const useModal = modalId => {
|
|
17
|
-
if (!modalId) {
|
|
18
|
-
throw new _exceptions.IllegalArgumentException("Missing modalId argument for useModal hook");
|
|
19
|
-
}
|
|
20
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
21
|
-
const modal = (0, _reactRedux.useSelector)(_ref => {
|
|
22
|
-
var _context;
|
|
23
|
-
let {
|
|
24
|
-
modals
|
|
25
|
-
} = _ref;
|
|
26
|
-
return (0, _find.default)(_context = modals.modals).call(_context, m => m.key === modalId);
|
|
27
|
-
});
|
|
28
|
-
const show = (0, _react.useCallback)(() => {
|
|
29
|
-
dispatch((0, _Modals.showModal)(modalId));
|
|
30
|
-
}, [dispatch, modalId]);
|
|
31
|
-
const close = (0, _react.useCallback)(() => {
|
|
32
|
-
dispatch((0, _Modals.closeModal)(modalId));
|
|
33
|
-
}, [dispatch, modalId]);
|
|
34
|
-
return {
|
|
35
|
-
key: modal ? modal.key : null,
|
|
36
|
-
size: modal ? modal.size : null,
|
|
37
|
-
visible: modal ? modal.visible : false,
|
|
38
|
-
show,
|
|
39
|
-
close
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
exports.useModal = useModal;
|
|
43
|
-
//# sourceMappingURL=useModal.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useModal.cjs","names":["_react","require","_reactRedux","_Modals","_exceptions","useModal","modalId","IllegalArgumentException","dispatch","useDispatch","modal","useSelector","_ref","_context","modals","_find","default","call","m","key","show","useCallback","showModal","close","closeModal","size","visible","exports"],"sources":["../../src/hooks/useModal.js"],"sourcesContent":["// @flow\nimport { useCallback } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../redux/actions/Modals\";\nimport { IllegalArgumentException } from \"../exceptions\";\n\ntype ModalHook = (modalId: string) => {\n key: string | null,\n size: string | null,\n visible: boolean,\n show: () => void,\n close: () => void,\n};\n\n/**\n * Manage modals\n */\nexport const useModal: ModalHook = (modalId: string) => {\n if (!modalId) {\n throw new IllegalArgumentException(\n \"Missing modalId argument for useModal hook\",\n );\n }\n\n const dispatch = useDispatch();\n const modal = useSelector(({ modals }) =>\n modals.modals.find((m) => m.key === modalId),\n );\n\n const show = useCallback(() => {\n dispatch(showModal(modalId));\n }, [dispatch, modalId]);\n\n const close = useCallback(() => {\n dispatch(closeModal(modalId));\n }, [dispatch, modalId]);\n\n return {\n key: modal ? modal.key : null,\n size: modal ? modal.size : null,\n visible: modal ? modal.visible : false,\n show,\n close,\n };\n};\n"],"mappings":";;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAUA;AACA;AACA;AACO,MAAMI,QAAmB,GAAIC,OAAe,IAAK;EACtD,IAAI,CAACA,OAAO,EAAE;IACZ,MAAM,IAAIC,oCAAwB,CAChC,4CACF,CAAC;EACH;EAEA,MAAMC,QAAQ,GAAG,IAAAC,uBAAW,EAAC,CAAC;EAC9B,MAAMC,KAAK,GAAG,IAAAC,uBAAW,EAACC,IAAA;IAAA,IAAAC,QAAA;IAAA,IAAC;MAAEC;IAAO,CAAC,GAAAF,IAAA;IAAA,OACnC,IAAAG,KAAA,CAAAC,OAAA,EAAAH,QAAA,GAAAC,MAAM,CAACA,MAAM,EAAAG,IAAA,CAAAJ,QAAA,EAAOK,CAAC,IAAKA,CAAC,CAACC,GAAG,KAAKb,OAAO,CAAC;EAAA,CAC9C,CAAC;EAED,MAAMc,IAAI,GAAG,IAAAC,kBAAW,EAAC,MAAM;IAC7Bb,QAAQ,CAAC,IAAAc,iBAAS,EAAChB,OAAO,CAAC,CAAC;EAC9B,CAAC,EAAE,CAACE,QAAQ,EAAEF,OAAO,CAAC,CAAC;EAEvB,MAAMiB,KAAK,GAAG,IAAAF,kBAAW,EAAC,MAAM;IAC9Bb,QAAQ,CAAC,IAAAgB,kBAAU,EAAClB,OAAO,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACE,QAAQ,EAAEF,OAAO,CAAC,CAAC;EAEvB,OAAO;IACLa,GAAG,EAAET,KAAK,GAAGA,KAAK,CAACS,GAAG,GAAG,IAAI;IAC7BM,IAAI,EAAEf,KAAK,GAAGA,KAAK,CAACe,IAAI,GAAG,IAAI;IAC/BC,OAAO,EAAEhB,KAAK,GAAGA,KAAK,CAACgB,OAAO,GAAG,KAAK;IACtCN,IAAI;IACJG;EACF,CAAC;AACH,CAAC;AAACI,OAAA,CAAAtB,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useModelCatalog = exports.useEntryDate = exports.useContentType = exports.useContentTOC = exports.useContentSearch = exports.useContentIndex = exports.useContent = exports.useConceptSearch = exports.useConceptIndex = exports.useConceptDetail = void 0;
|
|
8
|
-
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
|
|
9
|
-
var _reactRedux = require("react-redux");
|
|
10
|
-
var _useRouter = require("./useRouter");
|
|
11
|
-
var _createHref = require("../utils/helpers/createHref");
|
|
12
|
-
var _ModelCatalogModel = _interopRequireDefault(require("../models/modelcatalog/ModelCatalogModel"));
|
|
13
|
-
var _ConceptIndexModel = _interopRequireDefault(require("../models/concepts/ConceptIndexModel"));
|
|
14
|
-
var _ConceptDetailModel = _interopRequireDefault(require("../models/concepts/ConceptDetailModel"));
|
|
15
|
-
var _BusinessScenarioModel = _interopRequireDefault(require("../models/concepts/BusinessScenarioModel"));
|
|
16
|
-
var _ContentIndexModel = _interopRequireDefault(require("../models/content/ContentIndexModel"));
|
|
17
|
-
var _ContentTOCModel = _interopRequireDefault(require("../models/content/ContentTOCModel"));
|
|
18
|
-
var _ContentModel = _interopRequireDefault(require("../models/content/ContentModel"));
|
|
19
|
-
var _useModularUIBasic = require("./useModularUIBasic");
|
|
20
|
-
var _models = require("../models");
|
|
21
|
-
var _modelcatalog = require("../redux/selectors/modelcatalog");
|
|
22
|
-
var _ModelCatalog = require("../redux/actions/ModelCatalog");
|
|
23
|
-
/**
|
|
24
|
-
*/
|
|
25
|
-
const useModelCatalog = options => (0, _useModularUIBasic.useModularUIBasic)("modelcatalog", "/modelcatalog", {
|
|
26
|
-
expectedModels: ["ModelCatalog"],
|
|
27
|
-
targetModel: _ModelCatalogModel.default,
|
|
28
|
-
...options
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*/
|
|
33
|
-
exports.useModelCatalog = useModelCatalog;
|
|
34
|
-
const useConceptIndex = function (href) {
|
|
35
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "conceptindex";
|
|
36
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
37
|
-
const {
|
|
38
|
-
entryDate
|
|
39
|
-
} = useEntryDate();
|
|
40
|
-
const url = (0, _createHref.filterParameters)(href, ["index", "label", "modelcategory", "type"]);
|
|
41
|
-
url.setParameter("entryDate", entryDate);
|
|
42
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, url, {
|
|
43
|
-
expectedModels: ["ConceptIndex"],
|
|
44
|
-
targetModel: _ConceptIndexModel.default,
|
|
45
|
-
...options
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
*/
|
|
51
|
-
exports.useConceptIndex = useConceptIndex;
|
|
52
|
-
const useConceptDetail = function (concept) {
|
|
53
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "conceptdetail";
|
|
54
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
55
|
-
const {
|
|
56
|
-
entryDate
|
|
57
|
-
} = useEntryDate();
|
|
58
|
-
const location = (0, _useRouter.useLocation)();
|
|
59
|
-
const href = (0, _createHref.createHref)("concepts", concept, entryDate, location, []);
|
|
60
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, href, {
|
|
61
|
-
expectedModels: ["ConceptDetail", "BusinessScenario"],
|
|
62
|
-
...options
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
*/
|
|
68
|
-
exports.useConceptDetail = useConceptDetail;
|
|
69
|
-
const useContentIndex = function (href) {
|
|
70
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "contentindex";
|
|
71
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
72
|
-
const url = (0, _createHref.filterParameters)(href, ["index", "label", "type"]);
|
|
73
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, url, {
|
|
74
|
-
expectedModels: ["ContentIndex"],
|
|
75
|
-
targetModel: _ContentIndexModel.default,
|
|
76
|
-
...options
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
*/
|
|
82
|
-
exports.useContentIndex = useContentIndex;
|
|
83
|
-
const useContentTOC = function (content) {
|
|
84
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "contenttoc";
|
|
85
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
86
|
-
const {
|
|
87
|
-
entryDate
|
|
88
|
-
} = useEntryDate();
|
|
89
|
-
const location = (0, _useRouter.useLocation)();
|
|
90
|
-
const href = (0, _createHref.createHref)("content", content, entryDate, location, []);
|
|
91
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, href, {
|
|
92
|
-
expectedModels: ["ContentTOC"],
|
|
93
|
-
targetModel: _ContentTOCModel.default,
|
|
94
|
-
...options
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
*/
|
|
100
|
-
exports.useContentTOC = useContentTOC;
|
|
101
|
-
const useContent = function (contentSection) {
|
|
102
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "content";
|
|
103
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
104
|
-
const {
|
|
105
|
-
entryDate
|
|
106
|
-
} = useEntryDate();
|
|
107
|
-
const href = (0, _createHref.createHref)("content", contentSection, entryDate, null, []);
|
|
108
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, href, {
|
|
109
|
-
expectedModels: ["Content"],
|
|
110
|
-
targetModel: _ContentModel.default,
|
|
111
|
-
...options
|
|
112
|
-
});
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
*/
|
|
117
|
-
exports.useContent = useContent;
|
|
118
|
-
const useContentType = function (contentType) {
|
|
119
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "contenttypes";
|
|
120
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
121
|
-
const href = (0, _createHref.createHref)("contenttypes", contentType, null, null, []);
|
|
122
|
-
return (0, _useModularUIBasic.useModularUIBasic)(key, href, {
|
|
123
|
-
expectedModels: ["ContentType"],
|
|
124
|
-
targetModel: _models.ContentTypeModel,
|
|
125
|
-
...options
|
|
126
|
-
});
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
*/
|
|
131
|
-
exports.useContentType = useContentType;
|
|
132
|
-
const getSearchHref = (uri, filters) => {
|
|
133
|
-
const filterString = [];
|
|
134
|
-
for (const key of (0, _keys.default)(filters)) {
|
|
135
|
-
const filterValue = filters[key];
|
|
136
|
-
if (filterValue) {
|
|
137
|
-
let value = Array.isArray(filterValue) ? filterValue.join(",") : filterValue;
|
|
138
|
-
if (key === "type") {
|
|
139
|
-
value = value.replace("#", "%23"); // handles un-encoded #
|
|
140
|
-
}
|
|
141
|
-
filterString.push(`${key}=${value}`);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return filterString.length ? `${uri}?${filterString.join("&")}` : uri;
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
*/
|
|
149
|
-
const useConceptSearch = function (filters) {
|
|
150
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "conceptSearch";
|
|
151
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
152
|
-
const href = getSearchHref("/concepts", filters);
|
|
153
|
-
return useConceptIndex(href, key, options);
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
*/
|
|
158
|
-
exports.useConceptSearch = useConceptSearch;
|
|
159
|
-
const useContentSearch = function (filters) {
|
|
160
|
-
let key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "contentSearch";
|
|
161
|
-
let options = arguments.length > 2 ? arguments[2] : undefined;
|
|
162
|
-
const href = getSearchHref("/content", filters);
|
|
163
|
-
return useContentIndex(href, key, options);
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Retrieve and update the entrydate for the modelcatalog
|
|
168
|
-
*/
|
|
169
|
-
exports.useContentSearch = useContentSearch;
|
|
170
|
-
const useEntryDate = () => {
|
|
171
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
172
|
-
const entryDate = (0, _reactRedux.useSelector)(_modelcatalog.getEntryDate);
|
|
173
|
-
return {
|
|
174
|
-
entryDate,
|
|
175
|
-
setEntryDate: entryDate => dispatch((0, _ModelCatalog.updateEntryDate)(entryDate))
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
exports.useEntryDate = useEntryDate;
|
|
179
|
-
//# sourceMappingURL=useModelCatalog.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useModelCatalog.cjs","names":["_reactRedux","require","_useRouter","_createHref","_ModelCatalogModel","_interopRequireDefault","_ConceptIndexModel","_ConceptDetailModel","_BusinessScenarioModel","_ContentIndexModel","_ContentTOCModel","_ContentModel","_useModularUIBasic","_models","_modelcatalog","_ModelCatalog","useModelCatalog","options","useModularUIBasic","expectedModels","targetModel","ModelCatalogModel","exports","useConceptIndex","href","key","arguments","length","undefined","entryDate","useEntryDate","url","filterParameters","setParameter","ConceptIndexModel","useConceptDetail","concept","location","useLocation","createHref","useContentIndex","ContentIndexModel","useContentTOC","content","ContentTOCModel","useContent","contentSection","ContentModel","useContentType","contentType","ContentTypeModel","getSearchHref","uri","filters","filterString","_keys","default","filterValue","value","Array","isArray","join","replace","push","useConceptSearch","useContentSearch","dispatch","useDispatch","useSelector","getEntryDate","setEntryDate","updateEntryDate"],"sources":["../../src/hooks/useModelCatalog.js"],"sourcesContent":["// @flow\nimport { useSelector, useDispatch } from \"react-redux\";\nimport { useLocation } from \"./useRouter\";\n\nimport { createHref, filterParameters } from \"../utils/helpers/createHref\";\n\nimport ModelCatalogModel from \"../models/modelcatalog/ModelCatalogModel\";\nimport ConceptIndexModel from \"../models/concepts/ConceptIndexModel\";\nimport ConceptDetailModel from \"../models/concepts/ConceptDetailModel\";\nimport { default as BusinessScenarioModel } from \"../models/concepts/BusinessScenarioModel\";\nimport ContentIndexModel from \"../models/content/ContentIndexModel\";\nimport ContentTOCModel from \"../models/content/ContentTOCModel\";\nimport ContentModel from \"../models/content/ContentModel\";\n\nimport { useModularUIBasic } from \"./useModularUIBasic\";\nimport { ContentTypeModel } from \"../models\";\n\nimport { getEntryDate } from \"../redux/selectors/modelcatalog\";\nimport { updateEntryDate } from \"../redux/actions/ModelCatalog\";\n\nimport type Href from \"../models/href/Href\";\nimport type { UseModularUIBasicOptions } from \"./useModularUIBasic\";\nimport type { UpdateEntryDateAction } from \"../redux\";\nexport type SearchFilter = {\n index?: string,\n label?: string,\n type?: string | Array<string>,\n modelCategory?: string | Array<string>,\n entryDate?: string,\n};\n\n/**\n */\nexport const useModelCatalog = (\n options?: UseModularUIBasicOptions<ModelCatalogModel>,\n): ?ModelCatalogModel =>\n useModularUIBasic(\"modelcatalog\", \"/modelcatalog\", {\n expectedModels: [\"ModelCatalog\"],\n targetModel: ModelCatalogModel,\n ...options,\n });\n\n/**\n */\nexport const useConceptIndex = (\n href: string | Href,\n key?: string = \"conceptindex\",\n options?: UseModularUIBasicOptions<ConceptIndexModel>,\n): ?ConceptIndexModel => {\n const { entryDate } = useEntryDate();\n const url = filterParameters(href, [\n \"index\",\n \"label\",\n \"modelcategory\",\n \"type\",\n ]);\n url.setParameter(\"entryDate\", entryDate);\n\n return useModularUIBasic(key, url, {\n expectedModels: [\"ConceptIndex\"],\n targetModel: ConceptIndexModel,\n ...options,\n });\n};\n\n/**\n */\nexport const useConceptDetail = (\n concept: string | Href,\n key?: string = \"conceptdetail\",\n options?: UseModularUIBasicOptions<\n ConceptDetailModel | BusinessScenarioModel,\n >,\n): ?ConceptDetailModel | ?BusinessScenarioModel => {\n const { entryDate } = useEntryDate();\n const location = useLocation();\n\n const href = createHref(\"concepts\", concept, entryDate, location, []);\n\n return useModularUIBasic(key, href, {\n expectedModels: [\"ConceptDetail\", \"BusinessScenario\"],\n ...options,\n });\n};\n\n/**\n */\nexport const useContentIndex = (\n href: string | Href,\n key?: string = \"contentindex\",\n options?: UseModularUIBasicOptions<ContentIndexModel>,\n): ?ContentIndexModel => {\n const url = filterParameters(href, [\"index\", \"label\", \"type\"]);\n return useModularUIBasic(key, url, {\n expectedModels: [\"ContentIndex\"],\n targetModel: ContentIndexModel,\n ...options,\n });\n};\n\n/**\n */\nexport const useContentTOC = (\n content: string | Href,\n key?: string = \"contenttoc\",\n options?: UseModularUIBasicOptions<ContentTOCModel>,\n): ?ContentTOCModel => {\n const { entryDate } = useEntryDate();\n const location = useLocation();\n\n const href = createHref(\"content\", content, entryDate, location, []);\n\n return useModularUIBasic(key, href, {\n expectedModels: [\"ContentTOC\"],\n targetModel: ContentTOCModel,\n ...options,\n });\n};\n\n/**\n */\nexport const useContent = (\n contentSection: string | Href,\n key?: string = \"content\",\n options?: UseModularUIBasicOptions<ContentModel>,\n): ?ContentModel => {\n const { entryDate } = useEntryDate();\n\n const href = createHref(\"content\", contentSection, entryDate, null, []);\n\n return useModularUIBasic(key, href, {\n expectedModels: [\"Content\"],\n targetModel: ContentModel,\n ...options,\n });\n};\n\n/**\n */\nexport const useContentType = (\n contentType: string | Href,\n key?: string = \"contenttypes\",\n options?: UseModularUIBasicOptions<ContentTypeModel>,\n): ?ContentTypeModel => {\n const href = createHref(\"contenttypes\", contentType, null, null, []);\n return useModularUIBasic(key, href, {\n expectedModels: [\"ContentType\"],\n targetModel: ContentTypeModel,\n ...options,\n });\n};\n\n/**\n */\nconst getSearchHref = (uri: string, filters: SearchFilter): string => {\n const filterString = [];\n\n for (const key of Object.keys(filters)) {\n const filterValue = filters[key];\n if (filterValue) {\n let value: string = Array.isArray(filterValue)\n ? filterValue.join(\",\")\n : filterValue;\n if (key === \"type\") {\n value = value.replace(\"#\", \"%23\"); // handles un-encoded #\n }\n filterString.push(`${key}=${value}`);\n }\n }\n\n return filterString.length ? `${uri}?${filterString.join(\"&\")}` : uri;\n};\n\n/**\n */\nexport const useConceptSearch = (\n filters: SearchFilter,\n key?: string = \"conceptSearch\",\n options?: UseModularUIBasicOptions<ConceptIndexModel>,\n): ?ConceptIndexModel => {\n const href = getSearchHref(\"/concepts\", filters);\n return useConceptIndex(href, key, options);\n};\n\n/**\n */\nexport const useContentSearch = (\n filters: SearchFilter,\n key?: string = \"contentSearch\",\n options?: UseModularUIBasicOptions<ContentIndexModel>,\n): ?ContentIndexModel => {\n const href = getSearchHref(\"/content\", filters);\n return useContentIndex(href, key, options);\n};\n\n/**\n * Retrieve and update the entrydate for the modelcatalog\n */\nexport const useEntryDate = (): ({\n entryDate: ISO_DATE,\n setEntryDate: (entryDate: ISO_DATE) => UpdateEntryDateAction,\n}) => {\n const dispatch = useDispatch();\n const entryDate = useSelector(getEntryDate);\n\n return {\n entryDate,\n setEntryDate: (entryDate: ISO_DATE) => dispatch(updateEntryDate(entryDate)),\n };\n};\n"],"mappings":"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","ignoreList":[]}
|
package/lib/hooks/useModels.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useModels = void 0;
|
|
8
|
-
var _keys = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/keys"));
|
|
9
|
-
var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
|
|
10
|
-
var _reselect = require("reselect");
|
|
11
|
-
var _reactRedux = require("react-redux");
|
|
12
|
-
var _ModularUIActions = require("../redux/_modularui/ModularUIActions");
|
|
13
|
-
var _Constants = require("../constants/Constants");
|
|
14
|
-
/**
|
|
15
|
-
* Hook that contains the reload property that can be used to reload a model
|
|
16
|
-
*/
|
|
17
|
-
const useModels = () => {
|
|
18
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
19
|
-
const selectModularUI = state => state.modularui;
|
|
20
|
-
const selector = (0, _reselect.createSelector)([selectModularUI], modularui => {
|
|
21
|
-
const models = [];
|
|
22
|
-
const keys = (0, _keys.default)(modularui);
|
|
23
|
-
for (const key of keys) {
|
|
24
|
-
const model = modularui[key];
|
|
25
|
-
if (model?.status === _Constants.MODULARUI_STATUS.FINISHED) {
|
|
26
|
-
models.push(model.model);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return models;
|
|
30
|
-
});
|
|
31
|
-
const modularuiModels = (0, _reactRedux.useSelector)(selector);
|
|
32
|
-
return {
|
|
33
|
-
reload: (model, options) => {
|
|
34
|
-
dispatch((0, _ModularUIActions.reloadModel)(model, options));
|
|
35
|
-
},
|
|
36
|
-
reloadWithFilter: (callbackFn, options) => {
|
|
37
|
-
const modelsToReload = (0, _filter.default)(modularuiModels).call(modularuiModels, callbackFn);
|
|
38
|
-
for (const modelToReload of modelsToReload) {
|
|
39
|
-
dispatch((0, _ModularUIActions.reloadModel)(modelToReload, options));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
exports.useModels = useModels;
|
|
45
|
-
//# sourceMappingURL=useModels.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useModels.cjs","names":["_reselect","require","_reactRedux","_ModularUIActions","_Constants","useModels","dispatch","useDispatch","selectModularUI","state","modularui","selector","createSelector","models","keys","_keys","default","key","model","status","MODULARUI_STATUS","FINISHED","push","modularuiModels","useSelector","reload","options","reloadModel","reloadWithFilter","callbackFn","modelsToReload","_filter","call","modelToReload","exports"],"sources":["../../src/hooks/useModels.js"],"sourcesContent":["// @flow\nimport { createSelector } from \"reselect\";\nimport { useSelector, useDispatch } from \"react-redux\";\n\nimport { reloadModel } from \"../redux/_modularui/ModularUIActions\";\nimport { MODULARUI_STATUS } from \"../constants/Constants\";\n\nimport type { ModularUIModel } from \"../models/types\";\nimport type { ReduxState, ModelEntry } from \"../redux\";\n\ntype ReloadCallback = (model: ModularUIModel) => boolean;\n\ntype UseModels = () => {\n reload: (model: ModularUIModel, options?: any) => void,\n reloadWithFilter: (callbackFn: ReloadCallback, options?: any) => void,\n};\n\n/**\n * Hook that contains the reload property that can be used to reload a model\n */\nexport const useModels: UseModels = () => {\n const dispatch = useDispatch();\n\n const selectModularUI = (state: ReduxState) => state.modularui;\n const selector = createSelector([selectModularUI], (modularui) => {\n const models = [];\n const keys = Object.keys(modularui);\n for (const key of keys) {\n const model: ModelEntry = modularui[key];\n if (model?.status === MODULARUI_STATUS.FINISHED) {\n models.push(model.model);\n }\n }\n return models;\n });\n\n const modularuiModels = useSelector(selector);\n\n return {\n reload: (model: ModularUIModel, options?: Object) => {\n dispatch(reloadModel(model, options));\n },\n reloadWithFilter: (callbackFn: ReloadCallback, options?: Object) => {\n const modelsToReload = modularuiModels.filter(callbackFn);\n for (const modelToReload of modelsToReload) {\n dispatch(reloadModel(modelToReload, options));\n }\n },\n };\n};\n"],"mappings":";;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAYA;AACA;AACA;AACO,MAAMI,SAAoB,GAAGA,CAAA,KAAM;EACxC,MAAMC,QAAQ,GAAG,IAAAC,uBAAW,EAAC,CAAC;EAE9B,MAAMC,eAAe,GAAIC,KAAiB,IAAKA,KAAK,CAACC,SAAS;EAC9D,MAAMC,QAAQ,GAAG,IAAAC,wBAAc,EAAC,CAACJ,eAAe,CAAC,EAAGE,SAAS,IAAK;IAChE,MAAMG,MAAM,GAAG,EAAE;IACjB,MAAMC,IAAI,GAAG,IAAAC,KAAA,CAAAC,OAAA,EAAYN,SAAS,CAAC;IACnC,KAAK,MAAMO,GAAG,IAAIH,IAAI,EAAE;MACtB,MAAMI,KAAiB,GAAGR,SAAS,CAACO,GAAG,CAAC;MACxC,IAAIC,KAAK,EAAEC,MAAM,KAAKC,2BAAgB,CAACC,QAAQ,EAAE;QAC/CR,MAAM,CAACS,IAAI,CAACJ,KAAK,CAACA,KAAK,CAAC;MAC1B;IACF;IACA,OAAOL,MAAM;EACf,CAAC,CAAC;EAEF,MAAMU,eAAe,GAAG,IAAAC,uBAAW,EAACb,QAAQ,CAAC;EAE7C,OAAO;IACLc,MAAM,EAAEA,CAACP,KAAqB,EAAEQ,OAAgB,KAAK;MACnDpB,QAAQ,CAAC,IAAAqB,6BAAW,EAACT,KAAK,EAAEQ,OAAO,CAAC,CAAC;IACvC,CAAC;IACDE,gBAAgB,EAAEA,CAACC,UAA0B,EAAEH,OAAgB,KAAK;MAClE,MAAMI,cAAc,GAAG,IAAAC,OAAA,CAAAf,OAAA,EAAAO,eAAe,EAAAS,IAAA,CAAfT,eAAe,EAAQM,UAAU,CAAC;MACzD,KAAK,MAAMI,aAAa,IAAIH,cAAc,EAAE;QAC1CxB,QAAQ,CAAC,IAAAqB,6BAAW,EAACM,aAAa,EAAEP,OAAO,CAAC,CAAC;MAC/C;IACF;EACF,CAAC;AACH,CAAC;AAACQ,OAAA,CAAA7B,SAAA,GAAAA,SAAA","ignoreList":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useModularUI = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _reactRedux = require("react-redux");
|
|
10
|
-
var _reactRouter = require("react-router");
|
|
11
|
-
var _constants = require("../constants");
|
|
12
|
-
var _ModularUIActions = require("../redux/_modularui/ModularUIActions");
|
|
13
|
-
var _useDeepCompareEffect = _interopRequireDefault(require("./useDeepCompareEffect"));
|
|
14
|
-
var _useI18n = require("./useI18n");
|
|
15
|
-
var _Href = _interopRequireDefault(require("../models/href/Href"));
|
|
16
|
-
/**
|
|
17
|
-
*/
|
|
18
|
-
const useKeyForHook = (modelKey, url) => {
|
|
19
|
-
const locale = (0, _useI18n.useLocale)();
|
|
20
|
-
return (0, _react.useMemo)(() => `${modelKey}(${url.split("?")[0]})(${locale})`, [modelKey, url, locale]);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Use redux action and selector to retrieve the correct modular ui service model
|
|
25
|
-
*/
|
|
26
|
-
const useModularUI = function (modelKey, url) {
|
|
27
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
28
|
-
method: _constants.HTTP_METHODS.GET,
|
|
29
|
-
removeOnUnmount: false
|
|
30
|
-
};
|
|
31
|
-
const dispatch = (0, _reactRedux.useDispatch)();
|
|
32
|
-
const href = (0, _react.useMemo)(() => url?.toString() || "", [url]);
|
|
33
|
-
const key = useKeyForHook(modelKey, href);
|
|
34
|
-
const modelSelector = (0, _react.useMemo)(() => state => state.modularui[key], [key]);
|
|
35
|
-
const model = (0, _reactRedux.useSelector)(modelSelector);
|
|
36
|
-
if (url instanceof _Href.default) {
|
|
37
|
-
options.origin = options.origin ?? url.origin;
|
|
38
|
-
options.contextPath = options.contextPath ?? url.contextPath;
|
|
39
|
-
}
|
|
40
|
-
const location = (0, _reactRouter.useLocation)();
|
|
41
|
-
const redirectLocation = location.state?.redirectLocation;
|
|
42
|
-
const forceLoad = model == null || (redirectLocation instanceof _Href.default ? redirectLocation?.equals(href) : false);
|
|
43
|
-
const prevOptions = (0, _react.useRef)(options);
|
|
44
|
-
const prevHref = (0, _react.useRef)(href);
|
|
45
|
-
const prevForceLoad = (0, _react.useRef)(forceLoad);
|
|
46
|
-
|
|
47
|
-
// dispatch loadModularUI
|
|
48
|
-
(0, _useDeepCompareEffect.default)(() => {
|
|
49
|
-
// prevent reloads when previous option had the isReload, but the new options not
|
|
50
|
-
const isOldReload = prevHref.current === href && prevOptions.current.isReload && !options.isReload;
|
|
51
|
-
const doForceLoad = forceLoad && !prevForceLoad.current;
|
|
52
|
-
if (href !== "" && (doForceLoad || !isOldReload)) {
|
|
53
|
-
dispatch((0, _ModularUIActions.loadModularUI)(key, href, options));
|
|
54
|
-
}
|
|
55
|
-
prevOptions.current = options;
|
|
56
|
-
prevHref.current = href;
|
|
57
|
-
prevForceLoad.current = forceLoad;
|
|
58
|
-
}, [key, href, options, forceLoad]);
|
|
59
|
-
(0, _react.useEffect)(() => {
|
|
60
|
-
if (options.removeOnUnmount) {
|
|
61
|
-
return () => {
|
|
62
|
-
dispatch((0, _ModularUIActions.removeModelByKey)(key));
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
}, [dispatch, key, options.removeOnUnmount]);
|
|
66
|
-
return model;
|
|
67
|
-
};
|
|
68
|
-
exports.useModularUI = useModularUI;
|
|
69
|
-
//# sourceMappingURL=useModularUI.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useModularUI.cjs","names":["_react","require","_reactRedux","_reactRouter","_constants","_ModularUIActions","_useDeepCompareEffect","_interopRequireDefault","_useI18n","_Href","useKeyForHook","modelKey","url","locale","useLocale","useMemo","split","useModularUI","options","arguments","length","undefined","method","HTTP_METHODS","GET","removeOnUnmount","dispatch","useDispatch","href","toString","key","modelSelector","state","modularui","model","useSelector","Href","origin","contextPath","location","useLocation","redirectLocation","forceLoad","equals","prevOptions","useRef","prevHref","prevForceLoad","useDeepCompareEffect","isOldReload","current","isReload","doForceLoad","loadModularUI","useEffect","removeModelByKey","exports"],"sources":["../../src/hooks/useModularUI.js"],"sourcesContent":["// @flow\nimport { useEffect, useRef, useMemo } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { useLocation } from \"react-router\";\n\nimport { HTTP_METHODS } from \"../constants\";\nimport {\n loadModularUI,\n removeModelByKey,\n} from \"../redux/_modularui/ModularUIActions\";\n\nimport useDeepCompareEffect from \"./useDeepCompareEffect\";\n\nimport { useLocale } from \"./useI18n\";\nimport Href from \"../models/href/Href\";\n\nimport type { RequestModularUIOptions } from \"../utils\";\n\n/**\n */\nconst useKeyForHook = (modelKey: string, url: string) => {\n const locale = useLocale();\n return useMemo(\n () => `${modelKey}(${url.split(\"?\")[0]})(${locale})`,\n [modelKey, url, locale],\n );\n};\n\n/**\n * Use redux action and selector to retrieve the correct modular ui service model\n */\nexport const useModularUI = (\n modelKey: string,\n url: string | Href,\n options: RequestModularUIOptions = {\n method: HTTP_METHODS.GET,\n removeOnUnmount: false,\n },\n): any => {\n const dispatch = useDispatch();\n const href = useMemo(() => url?.toString() || \"\", [url]);\n const key = useKeyForHook(modelKey, href);\n\n const modelSelector = useMemo(() => (state) => state.modularui[key], [key]);\n const model = useSelector(modelSelector);\n\n if (url instanceof Href) {\n options.origin = options.origin ?? url.origin;\n options.contextPath = options.contextPath ?? url.contextPath;\n }\n\n const location = useLocation();\n const redirectLocation = location.state?.redirectLocation;\n const forceLoad =\n model == null ||\n (redirectLocation instanceof Href ? redirectLocation?.equals(href) : false);\n\n const prevOptions = useRef(options);\n const prevHref = useRef(href);\n const prevForceLoad = useRef(forceLoad);\n\n // dispatch loadModularUI\n useDeepCompareEffect(() => {\n // prevent reloads when previous option had the isReload, but the new options not\n const isOldReload =\n prevHref.current === href &&\n prevOptions.current.isReload &&\n !options.isReload;\n\n const doForceLoad = forceLoad && !prevForceLoad.current;\n\n if (href !== \"\" && (doForceLoad || !isOldReload)) {\n dispatch(loadModularUI(key, href, options));\n }\n\n prevOptions.current = options;\n prevHref.current = href;\n prevForceLoad.current = forceLoad;\n }, [key, href, options, forceLoad]);\n\n useEffect(() => {\n if (options.removeOnUnmount) {\n return () => {\n dispatch(removeModelByKey(key));\n };\n }\n }, [dispatch, key, options.removeOnUnmount]);\n\n return model;\n};\n"],"mappings":"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","ignoreList":[]}
|