@beinformed/ui 1.31.0 → 1.31.3
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 +20 -0
- package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js.map +1 -1
- package/esm/exceptions/FetchException.js.map +1 -1
- package/esm/exceptions/NetworkException.js.map +1 -1
- package/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/esm/hooks/useAllFormsOnModel.js.map +1 -1
- package/esm/hooks/useAuthentication.js.map +1 -1
- package/esm/hooks/useContent.js.map +1 -1
- package/esm/hooks/useDeepCompareEffect.js.map +1 -1
- package/esm/hooks/useForm.js.map +1 -1
- package/esm/hooks/useI18n.js.map +1 -1
- package/esm/hooks/useModal.js.map +1 -1
- package/esm/hooks/useModelCatalog.js.map +1 -1
- package/esm/hooks/useModularUI.js.map +1 -1
- package/esm/hooks/useModularUIBasic.js.map +1 -1
- package/esm/hooks/useModularUIModel.js.map +1 -1
- package/esm/hooks/useModularUIRequest.js.map +1 -1
- package/esm/hooks/useNotification.js.map +1 -1
- package/esm/hooks/usePreference.js +8 -2
- package/esm/hooks/usePreference.js.map +1 -1
- package/esm/i18n/Locale.js.map +1 -1
- package/esm/i18n/Locales.js.map +1 -1
- package/esm/i18n/Message.js.map +1 -1
- package/esm/i18n/withMessage.js.map +1 -1
- package/esm/models/actions/ActionCollection.js.map +1 -1
- package/esm/models/actions/ActionModel.js.map +1 -1
- package/esm/models/application/ApplicationModel.js.map +1 -1
- package/esm/models/attributes/AttributeCollection.js.map +1 -1
- package/esm/models/attributes/AttributeContent.js.map +1 -1
- package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
- package/esm/models/attributes/AttributeModel.js.map +1 -1
- package/esm/models/attributes/AttributeSetModel.js.map +1 -1
- package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeModel.js +1 -1
- package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/esm/models/attributes/ChoiceAttributeOptionModel.js +8 -0
- package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
- package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/esm/models/attributes/StringAttributeModel.js.map +1 -1
- package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
- package/esm/models/attributes/_createAttribute.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/esm/models/base/BaseCollection.js.map +1 -1
- package/esm/models/base/BaseModel.js.map +1 -1
- package/esm/models/base/ResourceModel.js.map +1 -1
- package/esm/models/caseview/CaseViewModel.js.map +1 -1
- package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
- package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
- package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
- package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
- package/esm/models/content/ContentIndexModel.js.map +1 -1
- package/esm/models/content/ContentLinkModel.js.map +1 -1
- package/esm/models/content/ContentModel.js.map +1 -1
- package/esm/models/content/ContentTOCModel.js.map +1 -1
- package/esm/models/content/SectionModel.js.map +1 -1
- package/esm/models/content/SubSectionModel.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/esm/models/detail/DetailModel.js.map +1 -1
- package/esm/models/error/ErrorCollection.js.map +1 -1
- package/esm/models/error/ErrorModel.js.map +1 -1
- package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
- package/esm/models/filters/BaseFilterModel.js.map +1 -1
- package/esm/models/filters/FilterCollection.js.map +1 -1
- package/esm/models/form/FormModel.js.map +1 -1
- package/esm/models/form/FormObjectModel.js.map +1 -1
- package/esm/models/grouping/GroupingModel.js.map +1 -1
- package/esm/models/href/Href.js.map +1 -1
- package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/esm/models/links/LinkCollection.js.map +1 -1
- package/esm/models/links/LinkModel.js.map +1 -1
- package/esm/models/links/normalizeLinkJSON.js.map +1 -1
- package/esm/models/list/ListDetailModel.js.map +1 -1
- package/esm/models/list/ListItemCollection.js.map +1 -1
- package/esm/models/list/ListItemModel.js.map +1 -1
- package/esm/models/list/ListModel.js.map +1 -1
- package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
- package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
- package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/esm/models/paging/PagingModel.js.map +1 -1
- package/esm/models/panels/GroupingPanelModel.js.map +1 -1
- package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/esm/models/resolveModel.js.map +1 -1
- package/esm/models/sorting/SortingModel.js.map +1 -1
- package/esm/models/tab/TabModel.js.map +1 -1
- package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/esm/models/types.js.map +1 -1
- package/esm/models/user/UserProfileModel.js.map +1 -1
- package/esm/modularui/CaptchaRequest.js.map +1 -1
- package/esm/modularui/ModularUIRequest.js.map +1 -1
- package/esm/modularui/UploadRequest.js.map +1 -1
- package/esm/react/utils.js.map +1 -1
- package/esm/react-client/client.js +1 -0
- package/esm/react-client/client.js.map +1 -1
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/createSSRComplete.js.map +1 -1
- package/esm/react-server/renderSSRComplete.js.map +1 -1
- package/esm/react-server/renderSSRMinimal.js.map +1 -1
- package/esm/react-server/requestInformation.js.map +1 -1
- package/esm/react-server/serverUtil.js.map +1 -1
- package/esm/react-theme/createTheme.js.map +1 -1
- package/esm/react-theme/utils/colors.js.map +1 -1
- package/esm/react-theme/utils/contrast.js.map +1 -1
- package/esm/react-theme/utils/corners.js.map +1 -1
- package/esm/react-theme/utils/spacers.js.map +1 -1
- package/esm/react-theme/utils/themeProps.js.map +1 -1
- package/esm/redux/_i18n/I18nActions.js.map +1 -1
- package/esm/redux/_i18n/I18nReducer.js.map +1 -1
- package/esm/redux/_modularui/ModularUIActions.js.map +1 -1
- package/esm/redux/_modularui/ModularUIConnector.js.map +1 -1
- package/esm/redux/_modularui/ModularUIMiddleware.js.map +1 -1
- package/esm/redux/_modularui/ModularUIReducer.js.map +1 -1
- package/esm/redux/_modularui/ModularUISelectors.js.map +1 -1
- package/esm/redux/_modularui/ModularUIUtils.js.map +1 -1
- package/esm/redux/_modularui/types.js.map +1 -1
- package/esm/redux/_modularui/withModularUI.js.map +1 -1
- package/esm/redux/_router/RouterActions.js.map +1 -1
- package/esm/redux/_router/RouterConnectors.js.map +1 -1
- package/esm/redux/_router/RouterReducer.js.map +1 -1
- package/esm/redux/actions/Application.js.map +1 -1
- package/esm/redux/actions/Authorization.js.map +1 -1
- package/esm/redux/actions/Error.js.map +1 -1
- package/esm/redux/actions/FormAttributeSet.js.map +1 -1
- package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/esm/redux/actions/FormAutosave.js.map +1 -1
- package/esm/redux/actions/FormAutosubmit.js.map +1 -1
- package/esm/redux/actions/FormValidations.js.map +1 -1
- package/esm/redux/actions/Notification.js.map +1 -1
- package/esm/redux/actions/Preferences.js.map +1 -1
- package/esm/redux/actions/ProgressIndicator.js.map +1 -1
- package/esm/redux/actions/SignIn.js.map +1 -1
- package/esm/redux/connectors/Application.js.map +1 -1
- package/esm/redux/connectors/Breadcrumb.js.map +1 -1
- package/esm/redux/connectors/CaseView.js.map +1 -1
- package/esm/redux/connectors/ConceptDetail.js.map +1 -1
- package/esm/redux/connectors/ContentBrowser.js.map +1 -1
- package/esm/redux/connectors/ContentDetail.js.map +1 -1
- package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
- package/esm/redux/connectors/Form.js.map +1 -1
- package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
- package/esm/redux/connectors/ListDetail.js.map +1 -1
- package/esm/redux/connectors/Modal.js.map +1 -1
- package/esm/redux/connectors/ModelCatalog.js.map +1 -1
- package/esm/redux/connectors/Notification.js.map +1 -1
- package/esm/redux/connectors/PanelRenderer.js.map +1 -1
- package/esm/redux/connectors/Preferences.js.map +1 -1
- package/esm/redux/connectors/Progress.js.map +1 -1
- package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
- package/esm/redux/connectors/QuickSearch.js.map +1 -1
- package/esm/redux/connectors/SignIn.js.map +1 -1
- package/esm/redux/connectors/SignOut.js.map +1 -1
- package/esm/redux/connectors/Tab.js.map +1 -1
- package/esm/redux/reducers/AuthReducer.js.map +1 -1
- package/esm/redux/reducers/ErrorReducer.js.map +1 -1
- package/esm/redux/reducers/ModalsReducer.js.map +1 -1
- package/esm/redux/reducers/NotificationReducer.js.map +1 -1
- package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/esm/redux/store/beforeRenderHooks.js.map +1 -1
- package/esm/redux/store/configureStore.js.map +1 -1
- package/esm/utils/browser/Cookies.js.map +1 -1
- package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
- package/esm/utils/fetch/universalFetch.js.map +1 -1
- package/esm/utils/fetch/xhr.js.map +1 -1
- package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
- package/esm/utils/helpers/text.js.map +1 -1
- package/esm/utils/number/DecimalFormat.js.map +1 -1
- package/esm/utils/number/formatValue.js.map +1 -1
- package/esm/utils/number/parseNumbers.js.map +1 -1
- package/lib/builder/__tests__/mergeLayoutHintConfigurations.spec.js.flow +4 -4
- package/lib/builder/mergeLayoutHintConfigurations.js.flow +3 -3
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/lib/constants/LayoutHints.js.flow +1 -1
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js.flow +2 -2
- package/lib/constants/Settings.js.map +1 -1
- package/lib/exceptions/FetchException.js.flow +2 -2
- package/lib/exceptions/FetchException.js.map +1 -1
- package/lib/exceptions/NetworkException.js.flow +1 -1
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js.flow +1 -1
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/hooks/__tests__/UseModularUIModel.spec.js.flow +9 -9
- package/lib/hooks/__tests__/useAuthentication.spec.js.flow +2 -2
- package/lib/hooks/__tests__/useForm.spec.js.flow +2 -2
- package/lib/hooks/__tests__/useModelCatalog.spec.js.flow +7 -7
- package/lib/hooks/__tests__/useModularUIBasic.spec.js.flow +2 -2
- package/lib/hooks/__tests__/usePreference.spec.js.flow +1 -1
- package/lib/hooks/useAllFormsOnModel.js.flow +2 -2
- package/lib/hooks/useAllFormsOnModel.js.map +1 -1
- package/lib/hooks/useAuthentication.js.flow +2 -2
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/hooks/useContent.js.flow +1 -1
- package/lib/hooks/useContent.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js.flow +1 -1
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/hooks/useForm.js.flow +4 -4
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useI18n.js.flow +3 -3
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModal.js.flow +2 -2
- package/lib/hooks/useModal.js.map +1 -1
- package/lib/hooks/useModelCatalog.js.flow +1 -1
- package/lib/hooks/useModelCatalog.js.map +1 -1
- package/lib/hooks/useModularUI.js.flow +1 -1
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js.flow +1 -1
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/hooks/useModularUIModel.js.flow +1 -1
- package/lib/hooks/useModularUIModel.js.map +1 -1
- package/lib/hooks/useModularUIRequest.js.flow +1 -1
- package/lib/hooks/useModularUIRequest.js.map +1 -1
- package/lib/hooks/useNotification.js.flow +2 -2
- package/lib/hooks/useNotification.js.map +1 -1
- package/lib/hooks/usePreference.js +8 -2
- package/lib/hooks/usePreference.js.flow +17 -7
- package/lib/hooks/usePreference.js.map +1 -1
- package/lib/i18n/Locale.js.flow +4 -4
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js.flow +8 -8
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js.flow +2 -2
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/__tests__/Locale.spec.js.flow +3 -3
- package/lib/i18n/__tests__/Locales.spec.js.flow +15 -13
- package/lib/i18n/withMessage.js.flow +4 -4
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/models/actions/ActionCollection.js.flow +4 -4
- package/lib/models/actions/ActionCollection.js.map +1 -1
- package/lib/models/actions/ActionModel.js.flow +4 -4
- package/lib/models/actions/ActionModel.js.map +1 -1
- package/lib/models/actions/__tests__/ActionCollection.spec.js.flow +3 -3
- package/lib/models/actions/__tests__/ActionModel.spec.js.flow +1 -1
- package/lib/models/application/ApplicationModel.js.flow +3 -3
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js.flow +7 -7
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js.flow +9 -9
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js.flow +9 -9
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js.flow +24 -24
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/AttributeSetModel.js.flow +1 -1
- package/lib/models/attributes/AttributeSetModel.js.map +1 -1
- package/lib/models/attributes/BooleanAttributeModel.js.flow +4 -4
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js.flow +7 -7
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.flow +15 -15
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +8 -0
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.flow +19 -11
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js.flow +10 -10
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js.flow +7 -7
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js.flow +6 -6
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/NumberAttributeModel.js.flow +9 -9
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
- package/lib/models/attributes/PasswordAttributeModel.js.flow +8 -8
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/lib/models/attributes/StringAttributeModel.js.flow +3 -3
- package/lib/models/attributes/StringAttributeModel.js.map +1 -1
- package/lib/models/attributes/UploadAttributeModel.js.flow +5 -5
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
- package/lib/models/attributes/__tests__/AttributeCollection.spec.js.flow +11 -11
- package/lib/models/attributes/__tests__/AttributeContent.spec.js.flow +7 -7
- package/lib/models/attributes/__tests__/AttributeModel.spec.js.flow +5 -5
- package/lib/models/attributes/__tests__/AttributeSetModel.spec.js.flow +2 -2
- package/lib/models/attributes/__tests__/BooleanAttributeModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/ChoiceAttributeModel.spec.js.flow +8 -8
- package/lib/models/attributes/__tests__/ChoiceAttributeOptionCollection.spec.js.flow +8 -8
- package/lib/models/attributes/__tests__/ChoiceAttributeOptionModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/DateAttributeModel.spec.js.flow +4 -4
- package/lib/models/attributes/__tests__/DatetimeAttributeModel.spec.js.flow +11 -11
- package/lib/models/attributes/__tests__/HelptextAttributeModel.spec.js.flow +3 -3
- package/lib/models/attributes/__tests__/MemoAttributeModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/MoneyAttributeModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/NumberAttributeModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/PasswordAttributeModel.spec.js.flow +1 -1
- package/lib/models/attributes/__tests__/StringAttributeModel.spec.js.flow +4 -4
- package/lib/models/attributes/__tests__/TimeAttributeModel.spec.js.flow +2 -2
- package/lib/models/attributes/__tests__/TimestampModel.spec.js.flow +2 -2
- package/lib/models/attributes/__tests__/UploadAttributeModel.spec.js.flow +4 -4
- package/lib/models/attributes/__tests__/_createAttribute.spec.js.flow +6 -6
- package/lib/models/attributes/__tests__/createAttributeComposite.spec.js.flow +3 -3
- package/lib/models/attributes/__tests__/createAttributeDynamicSchema.spec.js.flow +3 -3
- package/lib/models/attributes/_createAttribute.js.flow +5 -5
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.flow +5 -5
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js.flow +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.flow +6 -6
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.flow +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.flow +6 -6
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.flow +2 -2
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.flow +2 -2
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/__tests__/ConstraintModel.spec.js.flow +1 -1
- package/lib/models/attributes/input-constraints/__tests__/DateBoundaryConstraint.spec.js.flow +6 -6
- package/lib/models/attributes/input-constraints/__tests__/DateTimeDateFormatConstraint.spec.js.flow +2 -2
- package/lib/models/attributes/input-constraints/__tests__/DateTimeTimeFormatConstraint.spec.js.flow +2 -2
- package/lib/models/attributes/input-constraints/__tests__/DatetimeFormatConstraint.spec.js.flow +5 -5
- package/lib/models/attributes/input-constraints/__tests__/NumberBoundaryConstraint.spec.js.flow +6 -6
- package/lib/models/attributes/input-constraints/__tests__/NumberFormatConstraint.spec.js.flow +3 -3
- package/lib/models/attributes/input-constraints/__tests__/NumberGroupingConstraint.spec.js.flow +2 -2
- package/lib/models/attributes/input-constraints/__tests__/RegexConstraint.spec.js.flow +1 -1
- package/lib/models/attributes/input-constraints/__tests__/StringLengthConstraint.spec.js.flow +4 -4
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.flow +4 -4
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.flow +15 -15
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.flow +2 -2
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.flow +2 -2
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/__tests__/DependentAttribute.spec.js.flow +22 -22
- package/lib/models/attributes/layouthint-rules/__tests__/LayoutHintRuleCollection.spec.js.flow +1 -1
- package/lib/models/attributes/layouthint-rules/__tests__/RemainingTotalUploadSize.spec.js.flow +4 -4
- package/lib/models/base/BaseCollection.js.flow +6 -6
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js.flow +1 -1
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceModel.js.flow +5 -5
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/base/__tests__/ResourceCollection.spec.js.flow +1 -1
- package/lib/models/caseview/CaseViewModel.js.flow +4 -4
- package/lib/models/caseview/CaseViewModel.js.map +1 -1
- package/lib/models/caseview/__tests__/CaseViewModel.spec.js.flow +3 -3
- package/lib/models/concepts/BusinessScenarioModel.js.flow +9 -9
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptDetailModel.js.flow +17 -17
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
- package/lib/models/concepts/ConceptIndexModel.js.flow +2 -2
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
- package/lib/models/concepts/ConceptLinkModel.js.flow +6 -4
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
- package/lib/models/concepts/ConceptRelationCollection.js.flow +5 -5
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceCollection.js.flow +2 -2
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js.flow +2 -2
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/concepts/__tests__/ConceptDetailModel.spec.js.flow +1 -1
- package/lib/models/content/ContentIndexModel.js.flow +3 -3
- package/lib/models/content/ContentIndexModel.js.map +1 -1
- package/lib/models/content/ContentLinkModel.js.flow +11 -9
- package/lib/models/content/ContentLinkModel.js.map +1 -1
- package/lib/models/content/ContentModel.js.flow +2 -2
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/ContentTOCModel.js.flow +4 -4
- package/lib/models/content/ContentTOCModel.js.map +1 -1
- package/lib/models/content/SectionModel.js.flow +4 -4
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js.flow +2 -2
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/content/__tests__/ContentModel.spec.js.flow +16 -16
- package/lib/models/contentconfiguration/ContentConfiguration.js.flow +1 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.flow +5 -5
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.flow +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.flow +2 -2
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/__tests__/ContentConfigurationResults.spec.js.flow +12 -12
- package/lib/models/detail/DetailModel.js.flow +5 -5
- package/lib/models/detail/DetailModel.js.map +1 -1
- package/lib/models/error/ErrorCollection.js.flow +4 -4
- package/lib/models/error/ErrorCollection.js.map +1 -1
- package/lib/models/error/ErrorModel.js.flow +1 -1
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/error/__tests__/ErrorModel.spec.js.flow +1 -1
- package/lib/models/filters/AssignmentFilterModel.js.flow +3 -3
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js.flow +3 -3
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/FilterCollection.js.flow +5 -5
- package/lib/models/filters/FilterCollection.js.map +1 -1
- package/lib/models/filters/__tests__/AssignmentFilterModel.spec.js.flow +4 -4
- package/lib/models/filters/__tests__/FilterCollection.spec.js.flow +11 -11
- package/lib/models/filters/__tests__/FilterModel.spec.js.flow +1 -1
- package/lib/models/filters/__tests__/RangeFilterModel.spec.js.flow +1 -1
- package/lib/models/form/FormModel.js.flow +39 -39
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/form/FormObjectModel.js.flow +16 -16
- package/lib/models/form/FormObjectModel.js.map +1 -1
- package/lib/models/form/__tests__/FormModel.instrument.spec.js.flow +7 -7
- package/lib/models/form/__tests__/FormModel.repeating.spec.js.flow +2 -2
- package/lib/models/form/__tests__/FormModel.selfhref.spec.js.flow +1 -1
- package/lib/models/form/__tests__/FormModel.spec.js.flow +6 -6
- package/lib/models/form/__tests__/FormResultData.spec.js.flow +1 -1
- package/lib/models/form/__tests__/FormWithContent.spec.js.flow +3 -3
- package/lib/models/grouping/GroupingModel.js.flow +7 -7
- package/lib/models/grouping/GroupingModel.js.map +1 -1
- package/lib/models/grouping/__tests__/GroupingModel.spec.js.flow +2 -2
- package/lib/models/href/Href.js.flow +6 -6
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/href/__tests__/Href.spec.js.flow +18 -16
- package/lib/models/layouthint/LayoutHintCollection.js.flow +3 -3
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/lib/models/links/LinkCollection.js.flow +4 -4
- package/lib/models/links/LinkCollection.js.map +1 -1
- package/lib/models/links/LinkModel.js.flow +3 -3
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/__tests__/LinkModel.spec.js.flow +4 -4
- package/lib/models/links/normalizeLinkJSON.js.flow +6 -6
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListDetailModel.js.flow +7 -7
- package/lib/models/list/ListDetailModel.js.map +1 -1
- package/lib/models/list/ListItemCollection.js.flow +2 -2
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/list/ListItemModel.js.flow +2 -2
- package/lib/models/list/ListItemModel.js.map +1 -1
- package/lib/models/list/ListModel.js.flow +6 -6
- package/lib/models/list/ListModel.js.map +1 -1
- package/lib/models/list/__tests__/ListDetailModel.spec.js.flow +4 -4
- package/lib/models/list/__tests__/ListItemCollection.spec.js.flow +1 -1
- package/lib/models/list/__tests__/ListModel.spec.js.flow +3 -3
- package/lib/models/list/__tests__/ListResultDetail.spec.js.flow +3 -3
- package/lib/models/lookup/LookupOptionCollection.js.flow +1 -1
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionsModel.js.flow +4 -4
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
- package/lib/models/lookup/__tests__/LookupOptionsModel.spec.js.flow +3 -3
- package/lib/models/modelcatalog/ModelCatalogModel.js.flow +2 -2
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/lib/models/paging/PagingModel.js.flow +1 -1
- package/lib/models/paging/PagingModel.js.map +1 -1
- package/lib/models/paging/__tests__/PagingModel.spec.js.flow +2 -2
- package/lib/models/panels/GroupingPanelModel.js.flow +5 -5
- package/lib/models/panels/GroupingPanelModel.js.map +1 -1
- package/lib/models/panels/__tests__/GroupingPanelModel.spec.js.flow +8 -8
- package/lib/models/parameter/__tests__/Parameter.spec.js.flow +5 -5
- package/lib/models/process/ProcessStatusSettingsModel.js.flow +1 -1
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/lib/models/process/__tests__/ProcessStatusSettingsModel.spec.js.flow +1 -1
- package/lib/models/resolveModel.js.flow +4 -4
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js.flow +4 -4
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/sorting/__tests__/SortingModel.spec.js.flow +3 -3
- package/lib/models/tab/TabModel.js.flow +3 -3
- package/lib/models/tab/TabModel.js.map +1 -1
- package/lib/models/tab/__tests__/TabModel.spec.js.flow +5 -5
- package/lib/models/taskgroup/TaskGroupModel.js.flow +2 -2
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/lib/models/types.js.flow +1 -1
- package/lib/models/types.js.map +1 -1
- package/lib/models/user/UserProfileModel.js.flow +1 -1
- package/lib/models/user/UserProfileModel.js.map +1 -1
- package/lib/models/user/__tests__/UserModel.spec.js.flow +2 -2
- package/lib/models/user/__tests__/UserProfileModel.spec.js.flow +2 -2
- package/lib/models/user/__tests__/UserServicesModel.spec.js.flow +1 -1
- package/lib/modularui/CaptchaRequest.js.flow +1 -1
- package/lib/modularui/CaptchaRequest.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js.flow +26 -26
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/UploadRequest.js.flow +6 -6
- package/lib/modularui/UploadRequest.js.map +1 -1
- package/lib/modularui/__tests__/ModularUIError.spec.js.flow +1 -1
- package/lib/modularui/__tests__/ModularUIRequest.spec.js.flow +9 -9
- package/lib/react/utils.js.flow +1 -1
- package/lib/react/utils.js.map +1 -1
- package/lib/react-client/client.js +1 -0
- package/lib/react-client/client.js.flow +11 -10
- package/lib/react-client/client.js.map +1 -1
- package/lib/react-client/contextPath.js.flow +2 -2
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/rehydrate.js.flow +1 -1
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/__tests__/serverUtil.spec.js.flow +2 -2
- package/lib/react-server/createSSRComplete.js.flow +3 -3
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js.flow +4 -4
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js.flow +1 -1
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/requestInformation.js.flow +2 -2
- package/lib/react-server/requestInformation.js.map +1 -1
- package/lib/react-server/serverUtil.js.flow +8 -8
- package/lib/react-server/serverUtil.js.map +1 -1
- package/lib/react-theme/__tests__/createTheme.spec.js.flow +4 -4
- package/lib/react-theme/createTheme.js.flow +1 -1
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/react-theme/utils/__tests__/background.spec.js.flow +2 -2
- package/lib/react-theme/utils/__tests__/contrast.spec.js.flow +1 -1
- package/lib/react-theme/utils/__tests__/corners.spec.js.flow +3 -3
- package/lib/react-theme/utils/__tests__/spacers.spec.js.flow +1 -1
- package/lib/react-theme/utils/__tests__/themeProps.spec.js.flow +9 -9
- package/lib/react-theme/utils/colors.js.flow +3 -3
- package/lib/react-theme/utils/colors.js.map +1 -1
- package/lib/react-theme/utils/contrast.js.flow +6 -6
- package/lib/react-theme/utils/contrast.js.map +1 -1
- package/lib/react-theme/utils/corners.js.flow +2 -2
- package/lib/react-theme/utils/corners.js.map +1 -1
- package/lib/react-theme/utils/spacers.js.flow +2 -2
- package/lib/react-theme/utils/spacers.js.map +1 -1
- package/lib/react-theme/utils/themeProps.js.flow +8 -8
- package/lib/react-theme/utils/themeProps.js.map +1 -1
- package/lib/redux/_i18n/I18nActions.js.flow +1 -1
- package/lib/redux/_i18n/I18nActions.js.map +1 -1
- package/lib/redux/_i18n/I18nReducer.js.flow +2 -2
- package/lib/redux/_i18n/I18nReducer.js.map +1 -1
- package/lib/redux/_i18n/__tests__/reducer.spec.js.flow +2 -2
- package/lib/redux/_modularui/ModularUIActions.js.flow +8 -8
- package/lib/redux/_modularui/ModularUIActions.js.map +1 -1
- package/lib/redux/_modularui/ModularUIConnector.js.flow +4 -4
- package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
- package/lib/redux/_modularui/ModularUIMiddleware.js.flow +6 -6
- package/lib/redux/_modularui/ModularUIMiddleware.js.map +1 -1
- package/lib/redux/_modularui/ModularUIReducer.js.flow +5 -5
- package/lib/redux/_modularui/ModularUIReducer.js.map +1 -1
- package/lib/redux/_modularui/ModularUISelectors.js.flow +11 -11
- package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
- package/lib/redux/_modularui/ModularUIUtils.js.flow +1 -1
- package/lib/redux/_modularui/ModularUIUtils.js.map +1 -1
- package/lib/redux/_modularui/__tests__/actions.spec.js.flow +1 -1
- package/lib/redux/_modularui/__tests__/reducer.spec.js.flow +13 -13
- package/lib/redux/_modularui/__tests__/selectors.spec.js.flow +3 -3
- package/lib/redux/_modularui/types.js.flow +4 -4
- package/lib/redux/_modularui/types.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js.flow +3 -3
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/RouterActions.js.flow +3 -3
- package/lib/redux/_router/RouterActions.js.map +1 -1
- package/lib/redux/_router/RouterConnectors.js.flow +5 -5
- package/lib/redux/_router/RouterConnectors.js.map +1 -1
- package/lib/redux/_router/RouterReducer.js.flow +1 -1
- package/lib/redux/_router/RouterReducer.js.map +1 -1
- package/lib/redux/_router/__tests__/reducer.spec.js.flow +2 -2
- package/lib/redux/actions/Application.js.flow +1 -1
- package/lib/redux/actions/Application.js.map +1 -1
- package/lib/redux/actions/Authorization.js.flow +1 -1
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js.flow +3 -3
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/FormAttributeSet.js.flow +2 -2
- package/lib/redux/actions/FormAttributeSet.js.map +1 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js.flow +3 -3
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/lib/redux/actions/FormAutosave.js.flow +1 -1
- package/lib/redux/actions/FormAutosave.js.map +1 -1
- package/lib/redux/actions/FormAutosubmit.js.flow +1 -1
- package/lib/redux/actions/FormAutosubmit.js.map +1 -1
- package/lib/redux/actions/FormValidations.js.flow +3 -3
- package/lib/redux/actions/FormValidations.js.map +1 -1
- package/lib/redux/actions/Notification.js.flow +4 -4
- package/lib/redux/actions/Notification.js.map +1 -1
- package/lib/redux/actions/Preferences.js.flow +11 -11
- package/lib/redux/actions/Preferences.js.map +1 -1
- package/lib/redux/actions/ProgressIndicator.js.flow +1 -1
- package/lib/redux/actions/ProgressIndicator.js.map +1 -1
- package/lib/redux/actions/SignIn.js.flow +3 -3
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/__tests__/Authorization.spec.js.flow +2 -2
- package/lib/redux/actions/__tests__/Error-server.spec.js.flow +13 -13
- package/lib/redux/actions/__tests__/Error.spec.js.flow +6 -6
- package/lib/redux/actions/__tests__/Notification.spec.js.flow +1 -1
- package/lib/redux/actions/__tests__/Preferences.spec.js.flow +2 -2
- package/lib/redux/connectors/Application.js.flow +1 -1
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js.flow +1 -1
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js.flow +1 -1
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js.flow +1 -1
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js.flow +1 -1
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js.flow +1 -1
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js.flow +2 -2
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js.flow +5 -5
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js.flow +6 -6
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js.flow +1 -1
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js.flow +1 -1
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js.flow +1 -1
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js.flow +1 -1
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js.flow +2 -2
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js.flow +3 -3
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js.flow +1 -1
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js.flow +1 -1
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js.flow +2 -2
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js.flow +1 -1
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js.flow +1 -1
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js.flow +1 -1
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js.flow +1 -1
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js.flow +1 -1
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js.flow +1 -1
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js.flow +1 -1
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js.flow +1 -1
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js.flow +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/reducers/__tests__/AuthReducer.spec.js.flow +10 -10
- package/lib/redux/reducers/__tests__/ErrorReducer.spec.js.flow +1 -1
- package/lib/redux/reducers/__tests__/ModalsReducer.spec.js.flow +3 -3
- package/lib/redux/reducers/__tests__/NotificationReducer.spec.js.flow +3 -3
- package/lib/redux/reducers/__tests__/PreferencesReducer.spec.js.flow +2 -2
- package/lib/redux/reducers/__tests__/ProgressIndicatorReducer.spec.js.flow +8 -8
- package/lib/redux/store/beforeRenderHooks.js.flow +1 -1
- package/lib/redux/store/beforeRenderHooks.js.map +1 -1
- package/lib/redux/store/configureStore.js.flow +3 -3
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/utils/browser/Cookies.js.flow +1 -1
- package/lib/utils/browser/Cookies.js.map +1 -1
- package/lib/utils/browser/__tests__/Cookies.spec.js.flow +1 -1
- package/lib/utils/datetime/DateTimeUtil.js.flow +15 -15
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/datetime/__tests__/DateTime.spec.js.flow +84 -81
- package/lib/utils/fetch/__tests__/xhr.spec.js.flow +2 -2
- package/lib/utils/fetch/universalFetch.js.flow +1 -1
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js.flow +6 -6
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/__tests__/sanitizeHTML.spec.js.flow +8 -8
- package/lib/utils/helpers/sanitizeHtml.js.flow +3 -3
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
- package/lib/utils/helpers/text.js.flow +1 -1
- package/lib/utils/helpers/text.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js.flow +2 -2
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/__tests__/formatValue.spec.js.flow +1 -1
- package/lib/utils/number/formatValue.js.flow +2 -2
- package/lib/utils/number/formatValue.js.map +1 -1
- package/lib/utils/number/parseNumbers.js.flow +7 -7
- package/lib/utils/number/parseNumbers.js.map +1 -1
- package/package.json +20 -20
- package/src/builder/__tests__/mergeLayoutHintConfigurations.spec.js +4 -4
- package/src/builder/mergeLayoutHintConfigurations.js +3 -3
- package/src/constants/LayoutHints.js +1 -1
- package/src/constants/Settings.js +2 -2
- package/src/exceptions/FetchException.js +2 -2
- package/src/exceptions/NetworkException.js +1 -1
- package/src/exceptions/UnauthorizedException.js +1 -1
- package/src/hooks/__tests__/UseModularUIModel.spec.js +9 -9
- package/src/hooks/__tests__/useAuthentication.spec.js +2 -2
- package/src/hooks/__tests__/useForm.spec.js +2 -2
- package/src/hooks/__tests__/useModelCatalog.spec.js +7 -7
- package/src/hooks/__tests__/useModularUIBasic.spec.js +2 -2
- package/src/hooks/__tests__/usePreference.spec.js +1 -1
- package/src/hooks/useAllFormsOnModel.js +2 -2
- package/src/hooks/useAuthentication.js +2 -2
- package/src/hooks/useContent.js +1 -1
- package/src/hooks/useDeepCompareEffect.js +1 -1
- package/src/hooks/useForm.js +4 -4
- package/src/hooks/useI18n.js +3 -3
- package/src/hooks/useModal.js +2 -2
- package/src/hooks/useModelCatalog.js +1 -1
- package/src/hooks/useModularUI.js +1 -1
- package/src/hooks/useModularUIBasic.js +1 -1
- package/src/hooks/useModularUIModel.js +1 -1
- package/src/hooks/useModularUIRequest.js +1 -1
- package/src/hooks/useNotification.js +2 -2
- package/src/hooks/usePreference.js +17 -7
- package/src/i18n/Locale.js +4 -4
- package/src/i18n/Locales.js +8 -8
- package/src/i18n/Message.js +2 -2
- package/src/i18n/__tests__/Locale.spec.js +3 -3
- package/src/i18n/__tests__/Locales.spec.js +15 -13
- package/src/i18n/withMessage.js +4 -4
- package/src/models/actions/ActionCollection.js +4 -4
- package/src/models/actions/ActionModel.js +4 -4
- package/src/models/actions/__tests__/ActionCollection.spec.js +3 -3
- package/src/models/actions/__tests__/ActionModel.spec.js +1 -1
- package/src/models/application/ApplicationModel.js +3 -3
- package/src/models/attributes/AttributeCollection.js +7 -7
- package/src/models/attributes/AttributeContent.js +9 -9
- package/src/models/attributes/AttributeDataHelper.js +9 -9
- package/src/models/attributes/AttributeModel.js +24 -24
- package/src/models/attributes/AttributeSetModel.js +1 -1
- package/src/models/attributes/BooleanAttributeModel.js +4 -4
- package/src/models/attributes/ChoiceAttributeModel.js +7 -7
- package/src/models/attributes/ChoiceAttributeOptionCollection.js +15 -15
- package/src/models/attributes/ChoiceAttributeOptionModel.js +19 -11
- package/src/models/attributes/CompositeAttributeChildCollection.js +10 -10
- package/src/models/attributes/CompositeAttributeModel.js +7 -7
- package/src/models/attributes/DatetimeAttributeModel.js +6 -6
- package/src/models/attributes/NumberAttributeModel.js +9 -9
- package/src/models/attributes/PasswordAttributeModel.js +8 -8
- package/src/models/attributes/StringAttributeModel.js +3 -3
- package/src/models/attributes/UploadAttributeModel.js +5 -5
- package/src/models/attributes/__tests__/AttributeCollection.spec.js +11 -11
- package/src/models/attributes/__tests__/AttributeContent.spec.js +7 -7
- package/src/models/attributes/__tests__/AttributeModel.spec.js +5 -5
- package/src/models/attributes/__tests__/AttributeSetModel.spec.js +2 -2
- package/src/models/attributes/__tests__/BooleanAttributeModel.spec.js +1 -1
- package/src/models/attributes/__tests__/ChoiceAttributeModel.spec.js +8 -8
- package/src/models/attributes/__tests__/ChoiceAttributeOptionCollection.spec.js +8 -8
- package/src/models/attributes/__tests__/ChoiceAttributeOptionModel.spec.js +1 -1
- package/src/models/attributes/__tests__/DateAttributeModel.spec.js +4 -4
- package/src/models/attributes/__tests__/DatetimeAttributeModel.spec.js +11 -11
- package/src/models/attributes/__tests__/HelptextAttributeModel.spec.js +3 -3
- package/src/models/attributes/__tests__/MemoAttributeModel.spec.js +1 -1
- package/src/models/attributes/__tests__/MoneyAttributeModel.spec.js +1 -1
- package/src/models/attributes/__tests__/NumberAttributeModel.spec.js +1 -1
- package/src/models/attributes/__tests__/PasswordAttributeModel.spec.js +1 -1
- package/src/models/attributes/__tests__/StringAttributeModel.spec.js +4 -4
- package/src/models/attributes/__tests__/TimeAttributeModel.spec.js +2 -2
- package/src/models/attributes/__tests__/TimestampModel.spec.js +2 -2
- package/src/models/attributes/__tests__/UploadAttributeModel.spec.js +4 -4
- package/src/models/attributes/__tests__/_createAttribute.spec.js +6 -6
- package/src/models/attributes/__tests__/createAttributeComposite.spec.js +3 -3
- package/src/models/attributes/__tests__/createAttributeDynamicSchema.spec.js +3 -3
- package/src/models/attributes/_createAttribute.js +5 -5
- package/src/models/attributes/input-constraints/ConstraintCollection.js +5 -5
- package/src/models/attributes/input-constraints/ConstraintModel.js +1 -1
- package/src/models/attributes/input-constraints/DateBoundaryConstraint.js +6 -6
- package/src/models/attributes/input-constraints/MandatoryConstraint.js +1 -1
- package/src/models/attributes/input-constraints/NumberBoundaryConstraint.js +6 -6
- package/src/models/attributes/input-constraints/NumberFormatConstraint.js +2 -2
- package/src/models/attributes/input-constraints/NumberGroupingConstraint.js +2 -2
- package/src/models/attributes/input-constraints/__tests__/ConstraintModel.spec.js +1 -1
- package/src/models/attributes/input-constraints/__tests__/DateBoundaryConstraint.spec.js +6 -6
- package/src/models/attributes/input-constraints/__tests__/DateTimeDateFormatConstraint.spec.js +2 -2
- package/src/models/attributes/input-constraints/__tests__/DateTimeTimeFormatConstraint.spec.js +2 -2
- package/src/models/attributes/input-constraints/__tests__/DatetimeFormatConstraint.spec.js +5 -5
- package/src/models/attributes/input-constraints/__tests__/NumberBoundaryConstraint.spec.js +6 -6
- package/src/models/attributes/input-constraints/__tests__/NumberFormatConstraint.spec.js +3 -3
- package/src/models/attributes/input-constraints/__tests__/NumberGroupingConstraint.spec.js +2 -2
- package/src/models/attributes/input-constraints/__tests__/RegexConstraint.spec.js +1 -1
- package/src/models/attributes/input-constraints/__tests__/StringLengthConstraint.spec.js +4 -4
- package/src/models/attributes/layouthint-rules/BaseLayoutHintRule.js +4 -4
- package/src/models/attributes/layouthint-rules/DependentAttribute.js +15 -15
- package/src/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +2 -2
- package/src/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +2 -2
- package/src/models/attributes/layouthint-rules/__tests__/DependentAttribute.spec.js +22 -22
- package/src/models/attributes/layouthint-rules/__tests__/LayoutHintRuleCollection.spec.js +1 -1
- package/src/models/attributes/layouthint-rules/__tests__/RemainingTotalUploadSize.spec.js +4 -4
- package/src/models/base/BaseCollection.js +6 -6
- package/src/models/base/BaseModel.js +1 -1
- package/src/models/base/ResourceModel.js +5 -5
- package/src/models/base/__tests__/ResourceCollection.spec.js +1 -1
- package/src/models/caseview/CaseViewModel.js +4 -4
- package/src/models/caseview/__tests__/CaseViewModel.spec.js +3 -3
- package/src/models/concepts/BusinessScenarioModel.js +9 -9
- package/src/models/concepts/ConceptDetailModel.js +17 -17
- package/src/models/concepts/ConceptIndexModel.js +2 -2
- package/src/models/concepts/ConceptLinkModel.js +6 -4
- package/src/models/concepts/ConceptRelationCollection.js +5 -5
- package/src/models/concepts/SourceReferenceCollection.js +2 -2
- package/src/models/concepts/SourceReferenceModel.js +2 -2
- package/src/models/concepts/__tests__/ConceptDetailModel.spec.js +1 -1
- package/src/models/content/ContentIndexModel.js +3 -3
- package/src/models/content/ContentLinkModel.js +11 -9
- package/src/models/content/ContentModel.js +2 -2
- package/src/models/content/ContentTOCModel.js +4 -4
- package/src/models/content/SectionModel.js +4 -4
- package/src/models/content/SubSectionModel.js +2 -2
- package/src/models/content/__tests__/ContentModel.spec.js +16 -16
- package/src/models/contentconfiguration/ContentConfiguration.js +1 -1
- package/src/models/contentconfiguration/ContentConfigurationElements.js +5 -5
- package/src/models/contentconfiguration/ContentConfigurationEndResults.js +1 -1
- package/src/models/contentconfiguration/ContentConfigurationQuestions.js +2 -2
- package/src/models/contentconfiguration/__tests__/ContentConfigurationResults.spec.js +12 -12
- package/src/models/detail/DetailModel.js +5 -5
- package/src/models/error/ErrorCollection.js +4 -4
- package/src/models/error/ErrorModel.js +1 -1
- package/src/models/error/__tests__/ErrorModel.spec.js +1 -1
- package/src/models/filters/AssignmentFilterModel.js +3 -3
- package/src/models/filters/BaseFilterModel.js +3 -3
- package/src/models/filters/FilterCollection.js +5 -5
- package/src/models/filters/__tests__/AssignmentFilterModel.spec.js +4 -4
- package/src/models/filters/__tests__/FilterCollection.spec.js +11 -11
- package/src/models/filters/__tests__/FilterModel.spec.js +1 -1
- package/src/models/filters/__tests__/RangeFilterModel.spec.js +1 -1
- package/src/models/form/FormModel.js +39 -39
- package/src/models/form/FormObjectModel.js +16 -16
- package/src/models/form/__tests__/FormModel.instrument.spec.js +7 -7
- package/src/models/form/__tests__/FormModel.repeating.spec.js +2 -2
- package/src/models/form/__tests__/FormModel.selfhref.spec.js +1 -1
- package/src/models/form/__tests__/FormModel.spec.js +6 -6
- package/src/models/form/__tests__/FormResultData.spec.js +1 -1
- package/src/models/form/__tests__/FormWithContent.spec.js +3 -3
- package/src/models/grouping/GroupingModel.js +7 -7
- package/src/models/grouping/__tests__/GroupingModel.spec.js +2 -2
- package/src/models/href/Href.js +6 -6
- package/src/models/href/__tests__/Href.spec.js +18 -16
- package/src/models/layouthint/LayoutHintCollection.js +3 -3
- package/src/models/links/LinkCollection.js +4 -4
- package/src/models/links/LinkModel.js +3 -3
- package/src/models/links/__tests__/LinkModel.spec.js +4 -4
- package/src/models/links/normalizeLinkJSON.js +6 -6
- package/src/models/list/ListDetailModel.js +7 -7
- package/src/models/list/ListItemCollection.js +2 -2
- package/src/models/list/ListItemModel.js +2 -2
- package/src/models/list/ListModel.js +6 -6
- package/src/models/list/__tests__/ListDetailModel.spec.js +4 -4
- package/src/models/list/__tests__/ListItemCollection.spec.js +1 -1
- package/src/models/list/__tests__/ListModel.spec.js +3 -3
- package/src/models/list/__tests__/ListResultDetail.spec.js +3 -3
- package/src/models/lookup/LookupOptionCollection.js +1 -1
- package/src/models/lookup/LookupOptionsModel.js +4 -4
- package/src/models/lookup/__tests__/LookupOptionsModel.spec.js +3 -3
- package/src/models/modelcatalog/ModelCatalogModel.js +2 -2
- package/src/models/paging/PagingModel.js +1 -1
- package/src/models/paging/__tests__/PagingModel.spec.js +2 -2
- package/src/models/panels/GroupingPanelModel.js +5 -5
- package/src/models/panels/__tests__/GroupingPanelModel.spec.js +8 -8
- package/src/models/parameter/__tests__/Parameter.spec.js +5 -5
- package/src/models/process/ProcessStatusSettingsModel.js +1 -1
- package/src/models/process/__tests__/ProcessStatusSettingsModel.spec.js +1 -1
- package/src/models/resolveModel.js +4 -4
- package/src/models/sorting/SortingModel.js +4 -4
- package/src/models/sorting/__tests__/SortingModel.spec.js +3 -3
- package/src/models/tab/TabModel.js +3 -3
- package/src/models/tab/__tests__/TabModel.spec.js +5 -5
- package/src/models/taskgroup/TaskGroupModel.js +2 -2
- package/src/models/types.js +1 -1
- package/src/models/user/UserProfileModel.js +1 -1
- package/src/models/user/__tests__/UserModel.spec.js +2 -2
- package/src/models/user/__tests__/UserProfileModel.spec.js +2 -2
- package/src/models/user/__tests__/UserServicesModel.spec.js +1 -1
- package/src/modularui/CaptchaRequest.js +1 -1
- package/src/modularui/ModularUIRequest.js +26 -26
- package/src/modularui/UploadRequest.js +6 -6
- package/src/modularui/__tests__/ModularUIError.spec.js +1 -1
- package/src/modularui/__tests__/ModularUIRequest.spec.js +9 -9
- package/src/react/utils.js +1 -1
- package/src/react-client/client.js +11 -10
- package/src/react-client/contextPath.js +2 -2
- package/src/react-client/rehydrate.js +1 -1
- package/src/react-server/__tests__/serverUtil.spec.js +2 -2
- package/src/react-server/createSSRComplete.js +3 -3
- package/src/react-server/renderSSRComplete.js +4 -4
- package/src/react-server/renderSSRMinimal.js +1 -1
- package/src/react-server/requestInformation.js +2 -2
- package/src/react-server/serverUtil.js +8 -8
- package/src/react-theme/__tests__/createTheme.spec.js +4 -4
- package/src/react-theme/createTheme.js +1 -1
- package/src/react-theme/utils/__tests__/background.spec.js +2 -2
- package/src/react-theme/utils/__tests__/contrast.spec.js +1 -1
- package/src/react-theme/utils/__tests__/corners.spec.js +3 -3
- package/src/react-theme/utils/__tests__/spacers.spec.js +1 -1
- package/src/react-theme/utils/__tests__/themeProps.spec.js +9 -9
- package/src/react-theme/utils/colors.js +3 -3
- package/src/react-theme/utils/contrast.js +6 -6
- package/src/react-theme/utils/corners.js +2 -2
- package/src/react-theme/utils/spacers.js +2 -2
- package/src/react-theme/utils/themeProps.js +8 -8
- package/src/redux/_i18n/I18nActions.js +1 -1
- package/src/redux/_i18n/I18nReducer.js +2 -2
- package/src/redux/_i18n/__tests__/reducer.spec.js +2 -2
- package/src/redux/_modularui/ModularUIActions.js +8 -8
- package/src/redux/_modularui/ModularUIConnector.js +4 -4
- package/src/redux/_modularui/ModularUIMiddleware.js +6 -6
- package/src/redux/_modularui/ModularUIReducer.js +5 -5
- package/src/redux/_modularui/ModularUISelectors.js +11 -11
- package/src/redux/_modularui/ModularUIUtils.js +1 -1
- package/src/redux/_modularui/__tests__/actions.spec.js +1 -1
- package/src/redux/_modularui/__tests__/reducer.spec.js +13 -13
- package/src/redux/_modularui/__tests__/selectors.spec.js +3 -3
- package/src/redux/_modularui/types.js +4 -4
- package/src/redux/_modularui/withModularUI.js +3 -3
- package/src/redux/_router/RouterActions.js +3 -3
- package/src/redux/_router/RouterConnectors.js +5 -5
- package/src/redux/_router/RouterReducer.js +1 -1
- package/src/redux/_router/__tests__/reducer.spec.js +2 -2
- package/src/redux/actions/Application.js +1 -1
- package/src/redux/actions/Authorization.js +1 -1
- package/src/redux/actions/Error.js +3 -3
- package/src/redux/actions/FormAttributeSet.js +2 -2
- package/src/redux/actions/FormAttributeSetRepeatable.js +3 -3
- package/src/redux/actions/FormAutosave.js +1 -1
- package/src/redux/actions/FormAutosubmit.js +1 -1
- package/src/redux/actions/FormValidations.js +3 -3
- package/src/redux/actions/Notification.js +4 -4
- package/src/redux/actions/Preferences.js +11 -11
- package/src/redux/actions/ProgressIndicator.js +1 -1
- package/src/redux/actions/SignIn.js +3 -3
- package/src/redux/actions/__tests__/Authorization.spec.js +2 -2
- package/src/redux/actions/__tests__/Error-server.spec.js +13 -13
- package/src/redux/actions/__tests__/Error.spec.js +6 -6
- package/src/redux/actions/__tests__/Notification.spec.js +1 -1
- package/src/redux/actions/__tests__/Preferences.spec.js +2 -2
- package/src/redux/connectors/Application.js +1 -1
- package/src/redux/connectors/Breadcrumb.js +1 -1
- package/src/redux/connectors/CaseView.js +1 -1
- package/src/redux/connectors/ConceptDetail.js +1 -1
- package/src/redux/connectors/ContentBrowser.js +1 -1
- package/src/redux/connectors/ContentDetail.js +1 -1
- package/src/redux/connectors/ContentDetailSection.js +2 -2
- package/src/redux/connectors/Form.js +5 -5
- package/src/redux/connectors/FormAttributeSet.js +6 -6
- package/src/redux/connectors/ListDetail.js +1 -1
- package/src/redux/connectors/Modal.js +1 -1
- package/src/redux/connectors/ModelCatalog.js +1 -1
- package/src/redux/connectors/Notification.js +1 -1
- package/src/redux/connectors/PanelRenderer.js +2 -2
- package/src/redux/connectors/Preferences.js +3 -3
- package/src/redux/connectors/Progress.js +1 -1
- package/src/redux/connectors/ProgressIndicator.js +1 -1
- package/src/redux/connectors/QuickSearch.js +2 -2
- package/src/redux/connectors/SignIn.js +1 -1
- package/src/redux/connectors/SignOut.js +1 -1
- package/src/redux/connectors/Tab.js +1 -1
- package/src/redux/reducers/AuthReducer.js +1 -1
- package/src/redux/reducers/ErrorReducer.js +1 -1
- package/src/redux/reducers/ModalsReducer.js +1 -1
- package/src/redux/reducers/NotificationReducer.js +1 -1
- package/src/redux/reducers/PreferencesReducer.js +1 -1
- package/src/redux/reducers/ProgressIndicatorReducer.js +1 -1
- package/src/redux/reducers/__tests__/AuthReducer.spec.js +10 -10
- package/src/redux/reducers/__tests__/ErrorReducer.spec.js +1 -1
- package/src/redux/reducers/__tests__/ModalsReducer.spec.js +3 -3
- package/src/redux/reducers/__tests__/NotificationReducer.spec.js +3 -3
- package/src/redux/reducers/__tests__/PreferencesReducer.spec.js +2 -2
- package/src/redux/reducers/__tests__/ProgressIndicatorReducer.spec.js +8 -8
- package/src/redux/store/beforeRenderHooks.js +1 -1
- package/src/redux/store/configureStore.js +3 -3
- package/src/utils/browser/Cookies.js +1 -1
- package/src/utils/browser/__tests__/Cookies.spec.js +1 -1
- package/src/utils/datetime/DateTimeUtil.js +15 -15
- package/src/utils/datetime/__tests__/DateTime.spec.js +84 -81
- package/src/utils/fetch/__tests__/xhr.spec.js +2 -2
- package/src/utils/fetch/universalFetch.js +1 -1
- package/src/utils/fetch/xhr.js +6 -6
- package/src/utils/helpers/__tests__/sanitizeHTML.spec.js +8 -8
- package/src/utils/helpers/sanitizeHtml.js +3 -3
- package/src/utils/helpers/text.js +1 -1
- package/src/utils/number/DecimalFormat.js +2 -2
- package/src/utils/number/__tests__/formatValue.spec.js +1 -1
- package/src/utils/number/formatValue.js +2 -2
- package/src/utils/number/parseNumbers.js +7 -7
|
@@ -25,7 +25,7 @@ export const getFullRequestHref = (request: HttpServletRequestJava): Href =>
|
|
|
25
25
|
*/
|
|
26
26
|
export const getCookieFromRequest = (
|
|
27
27
|
request: HttpServletRequestJava,
|
|
28
|
-
cookieName: string
|
|
28
|
+
cookieName: string,
|
|
29
29
|
): null | string => {
|
|
30
30
|
return request.getCookieByName(cookieName);
|
|
31
31
|
};
|
|
@@ -34,7 +34,7 @@ export const getCookieFromRequest = (
|
|
|
34
34
|
*/
|
|
35
35
|
export const getPreferredLocale = (
|
|
36
36
|
request: HttpServletRequestJava,
|
|
37
|
-
locales: Locales
|
|
37
|
+
locales: Locales,
|
|
38
38
|
): void | string => {
|
|
39
39
|
const languageFromCookie = getCookieFromRequest(request, "locale");
|
|
40
40
|
const acceptLanguageHeader =
|
|
@@ -44,7 +44,7 @@ export type PreferenceValue = {
|
|
|
44
44
|
const createReduxStore = (
|
|
45
45
|
requestHref: Href,
|
|
46
46
|
customReducers: Object,
|
|
47
|
-
initialState?: $Shape<ReduxState
|
|
47
|
+
initialState?: $Shape<ReduxState>,
|
|
48
48
|
): ReduxStore => {
|
|
49
49
|
// $FlowExpectedError
|
|
50
50
|
const history: RouterHistory = createMemoryHistory({
|
|
@@ -61,7 +61,7 @@ const createReduxStore = (
|
|
|
61
61
|
const setI18n = (
|
|
62
62
|
store: ReduxStore,
|
|
63
63
|
locales: Array<LocaleConfiguration> = [],
|
|
64
|
-
request: HttpServletRequestJava
|
|
64
|
+
request: HttpServletRequestJava,
|
|
65
65
|
) => {
|
|
66
66
|
if (!Array.isArray(locales)) {
|
|
67
67
|
throw new IllegalArgumentException("locales must be an array of objects");
|
|
@@ -88,7 +88,7 @@ const setI18n = (
|
|
|
88
88
|
});
|
|
89
89
|
|
|
90
90
|
const enabledLocales = mergedLocales.filter((locale: LocaleConfiguration) =>
|
|
91
|
-
getSetting("ENABLED_LOCALES").includes(locale.code)
|
|
91
|
+
getSetting("ENABLED_LOCALES").includes(locale.code),
|
|
92
92
|
);
|
|
93
93
|
|
|
94
94
|
const localesInstance = new Locales(enabledLocales);
|
|
@@ -98,7 +98,7 @@ const setI18n = (
|
|
|
98
98
|
|
|
99
99
|
const setServerPreferencesFromArray = (
|
|
100
100
|
store: ReduxStore,
|
|
101
|
-
serverPreferences: Array<string | PreferenceValue
|
|
101
|
+
serverPreferences: Array<string | PreferenceValue>,
|
|
102
102
|
) => {
|
|
103
103
|
serverPreferences.forEach((serverPreference) => {
|
|
104
104
|
if (typeof serverPreference === "object") {
|
|
@@ -126,7 +126,7 @@ const setServerPreferencesFromArray = (
|
|
|
126
126
|
*/
|
|
127
127
|
const setServerPreferences = (
|
|
128
128
|
store: ReduxStore,
|
|
129
|
-
serverPreferences: Array<string | PreferenceValue
|
|
129
|
+
serverPreferences: Array<string | PreferenceValue>,
|
|
130
130
|
) => {
|
|
131
131
|
if (Array.isArray(serverPreferences)) {
|
|
132
132
|
setServerPreferencesFromArray(store, serverPreferences);
|
|
@@ -161,7 +161,7 @@ const setConfigurationTheme = (store: ReduxStore) => {
|
|
|
161
161
|
store.dispatch(setThemePreference(configTheme));
|
|
162
162
|
} else {
|
|
163
163
|
throw new Error(
|
|
164
|
-
`Could not read theme configuration file from: ${configFilePath}
|
|
164
|
+
`Could not read theme configuration file from: ${configFilePath}`,
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -184,7 +184,7 @@ const setApplication = (store: ReduxStore) => {
|
|
|
184
184
|
key: `application(/)(${locale})`,
|
|
185
185
|
model: application,
|
|
186
186
|
},
|
|
187
|
-
])
|
|
187
|
+
]),
|
|
188
188
|
);
|
|
189
189
|
} catch (e) {
|
|
190
190
|
// swallow error, in this case we just don't pre-cache the webapplication,
|
|
@@ -246,7 +246,7 @@ const dehydrate = (store: ReduxStore): string => {
|
|
|
246
246
|
const createHead = (
|
|
247
247
|
sheet: any,
|
|
248
248
|
UUID: string,
|
|
249
|
-
helmetContext?: Object
|
|
249
|
+
helmetContext?: Object,
|
|
250
250
|
): Object => {
|
|
251
251
|
const style = sheet.getStyleTags();
|
|
252
252
|
const meta = helmetContext ? [...helmetContext.helmet.meta] : [];
|
|
@@ -35,7 +35,7 @@ describe("createTheme", () => {
|
|
|
35
35
|
{},
|
|
36
36
|
[config, themeFn],
|
|
37
37
|
secondConfig,
|
|
38
|
-
secondFn
|
|
38
|
+
secondFn,
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
expect(finalTheme).toStrictEqual(
|
|
@@ -47,7 +47,7 @@ describe("createTheme", () => {
|
|
|
47
47
|
PROP5: "Value 5",
|
|
48
48
|
PROP6: "Value 6",
|
|
49
49
|
PROP7: "Value 6",
|
|
50
|
-
})
|
|
50
|
+
}),
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
|
|
@@ -65,7 +65,7 @@ describe("createTheme", () => {
|
|
|
65
65
|
const themeFn = (
|
|
66
66
|
input = {
|
|
67
67
|
PRIMARY_COLOR: "#0065d1",
|
|
68
|
-
}
|
|
68
|
+
},
|
|
69
69
|
) => ({
|
|
70
70
|
...input,
|
|
71
71
|
...getButtonColor("BUTTON_PRIMARY", input.PRIMARY_COLOR),
|
|
@@ -132,7 +132,7 @@ describe("createTheme", () => {
|
|
|
132
132
|
null,
|
|
133
133
|
DefaultTheme,
|
|
134
134
|
CustomTheme,
|
|
135
|
-
createDefaultTheme
|
|
135
|
+
createDefaultTheme,
|
|
136
136
|
);
|
|
137
137
|
|
|
138
138
|
expect(theme).toStrictEqual({
|
|
@@ -17,14 +17,14 @@ describe("background", () => {
|
|
|
17
17
|
|
|
18
18
|
it("renderBackground", () => {
|
|
19
19
|
expect(renderBackground("SIMPLE_BG", "DEFAULT")({ theme })).toBe(
|
|
20
|
-
"background: #000000"
|
|
20
|
+
"background: #000000",
|
|
21
21
|
);
|
|
22
22
|
expect(renderBackground("GRADIENT_BG", "DEFAULT")({ theme })).toStrictEqual(
|
|
23
23
|
{
|
|
24
24
|
backgroundColor: "#000000",
|
|
25
25
|
backgroundImage:
|
|
26
26
|
"linear-gradient(to bottom, #000000 95%, #000000 100%)",
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
28
|
);
|
|
29
29
|
});
|
|
30
30
|
});
|
|
@@ -14,14 +14,14 @@ describe("corners", () => {
|
|
|
14
14
|
it("roundedCorners", () => {
|
|
15
15
|
expect(roundedCorners()({ theme: { ROUNDED_CORNERS: false } })).toBe("");
|
|
16
16
|
expect(roundedCorners()({ theme: { ROUNDED_CORNERS: true } })).toBe(
|
|
17
|
-
"border-radius: 0.25rem"
|
|
17
|
+
"border-radius: 0.25rem",
|
|
18
18
|
);
|
|
19
19
|
expect(roundedCorners()({ theme })).toBe("border-radius: 0.2rem");
|
|
20
20
|
expect(
|
|
21
|
-
roundedCorners("border-radius", "SECOND_BORDER_RADIUS")({ theme })
|
|
21
|
+
roundedCorners("border-radius", "SECOND_BORDER_RADIUS")({ theme }),
|
|
22
22
|
).toBe("border-radius: 0.4rem");
|
|
23
23
|
expect(
|
|
24
|
-
roundedCorners("left", "THIRD_BORDER_RADIUS", "0.3rem")({ theme })
|
|
24
|
+
roundedCorners("left", "THIRD_BORDER_RADIUS", "0.3rem")({ theme }),
|
|
25
25
|
).toBe("border-left-radius: 0.3rem");
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -22,7 +22,7 @@ describe("createTheme", () => {
|
|
|
22
22
|
|
|
23
23
|
it("getThemeProp", () => {
|
|
24
24
|
expect(getThemeProp(theme, "STRING_PROP", "DEFAULT")).toBe(
|
|
25
|
-
STRING_PROP_VALUE
|
|
25
|
+
STRING_PROP_VALUE,
|
|
26
26
|
);
|
|
27
27
|
expect(getThemeProp(theme, "NUMBER_PROP", "DEFAULT")).toBe(12345);
|
|
28
28
|
expect(getThemeProp(theme, "OBJECT_PROP", "DEFAULT")).toStrictEqual({
|
|
@@ -30,7 +30,7 @@ describe("createTheme", () => {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
expect(() => getThemeProp(theme, "FUNCTION_PROP", "DEFAULT")).toThrow(
|
|
33
|
-
ThemePropertyException
|
|
33
|
+
ThemePropertyException,
|
|
34
34
|
);
|
|
35
35
|
expect(getThemeProp(theme, "NULL_PROP", "DEFAULT")).toBe("DEFAULT");
|
|
36
36
|
expect(getThemeProp(theme, "NOT_EXISTING", "DEFAULT")).toBe("DEFAULT");
|
|
@@ -38,33 +38,33 @@ describe("createTheme", () => {
|
|
|
38
38
|
|
|
39
39
|
it("getThemeStringProp", () => {
|
|
40
40
|
expect(getThemeStringProp(theme, "STRING_PROP", "DEFAULT")).toBe(
|
|
41
|
-
STRING_PROP_VALUE
|
|
41
|
+
STRING_PROP_VALUE,
|
|
42
42
|
);
|
|
43
43
|
expect(getThemeStringProp(theme, "NUMBER_PROP", "DEFAULT")).toBe("12345");
|
|
44
44
|
expect(() => getThemeStringProp(theme, "OBJECT_PROP", "DEFAULT")).toThrow(
|
|
45
|
-
ThemePropertyException
|
|
45
|
+
ThemePropertyException,
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
expect(() => getThemeStringProp(theme, "FUNCTION_PROP", "DEFAULT")).toThrow(
|
|
49
|
-
ThemePropertyException
|
|
49
|
+
ThemePropertyException,
|
|
50
50
|
);
|
|
51
51
|
expect(getThemeStringProp(theme, "NULL_PROP", "DEFAULT")).toBe("DEFAULT");
|
|
52
52
|
expect(getThemeStringProp(theme, "NOT_EXISTING", "DEFAULT")).toBe(
|
|
53
|
-
"DEFAULT"
|
|
53
|
+
"DEFAULT",
|
|
54
54
|
);
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
it("getThemeNumberProp", () => {
|
|
58
58
|
expect(() => getThemeNumberProp(theme, "STRING_PROP", 123)).toThrow(
|
|
59
|
-
ThemePropertyException
|
|
59
|
+
ThemePropertyException,
|
|
60
60
|
);
|
|
61
61
|
expect(getThemeNumberProp(theme, "NUMBER_PROP", 123)).toBe(12345);
|
|
62
62
|
expect(() => getThemeNumberProp(theme, "OBJECT_PROP", 123)).toThrow(
|
|
63
|
-
ThemePropertyException
|
|
63
|
+
ThemePropertyException,
|
|
64
64
|
);
|
|
65
65
|
|
|
66
66
|
expect(() => getThemeNumberProp(theme, "FUNCTION_PROP", 123)).toThrow(
|
|
67
|
-
ThemePropertyException
|
|
67
|
+
ThemePropertyException,
|
|
68
68
|
);
|
|
69
69
|
expect(getThemeNumberProp(theme, "NULL_PROP", 123)).toBe(123);
|
|
70
70
|
expect(getThemeNumberProp(theme, "NOT_EXISTING", 123)).toBe(123);
|
|
@@ -13,7 +13,7 @@ const darkenColor =
|
|
|
13
13
|
(
|
|
14
14
|
amount: number | string,
|
|
15
15
|
path: string,
|
|
16
|
-
defaultValue?: string
|
|
16
|
+
defaultValue?: string,
|
|
17
17
|
): ((UtilThemeProps) => string) =>
|
|
18
18
|
({ theme }: UtilThemeProps) =>
|
|
19
19
|
darken(amount, getThemeProp(theme, path, defaultValue));
|
|
@@ -27,7 +27,7 @@ const lightenColor =
|
|
|
27
27
|
(
|
|
28
28
|
amount: number | string,
|
|
29
29
|
path: string,
|
|
30
|
-
defaultValue?: string
|
|
30
|
+
defaultValue?: string,
|
|
31
31
|
): ((UtilThemeProps) => string) =>
|
|
32
32
|
({ theme }: UtilThemeProps) =>
|
|
33
33
|
lighten(amount, getThemeProp(theme, path, defaultValue));
|
|
@@ -41,7 +41,7 @@ const changeHSL = (
|
|
|
41
41
|
color: string,
|
|
42
42
|
saturation?: number,
|
|
43
43
|
lightness?: number,
|
|
44
|
-
hueAdjustment: number = 0
|
|
44
|
+
hueAdjustment: number = 0,
|
|
45
45
|
): string => hsl(parseToHsl(color).hue + hueAdjustment, saturation, lightness);
|
|
46
46
|
|
|
47
47
|
export { darkenColor, lightenColor, changeHSL };
|
|
@@ -17,7 +17,7 @@ const getColorContrast = (color1: string, color2: string): number => {
|
|
|
17
17
|
(luminance1 > luminance2
|
|
18
18
|
? (luminance1 + 0.05) / (luminance2 + 0.05)
|
|
19
19
|
: (luminance2 + 0.05) / (luminance1 + 0.05)
|
|
20
|
-
).toFixed(2)
|
|
20
|
+
).toFixed(2),
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -43,7 +43,7 @@ const getContrastYIQ = (
|
|
|
43
43
|
color: string,
|
|
44
44
|
dark: string = "#212529",
|
|
45
45
|
light: string = "#fff",
|
|
46
|
-
preferredColor?: string
|
|
46
|
+
preferredColor?: string,
|
|
47
47
|
): string => {
|
|
48
48
|
const yiqColor = getYIQ(color);
|
|
49
49
|
|
|
@@ -73,7 +73,7 @@ const getContrastYIQ = (
|
|
|
73
73
|
const getBackgroundColor = (
|
|
74
74
|
theme: Theme,
|
|
75
75
|
bgColorProperty: string,
|
|
76
|
-
defaultValue: string
|
|
76
|
+
defaultValue: string,
|
|
77
77
|
) => {
|
|
78
78
|
let bgColor = getProp(theme, bgColorProperty, defaultValue);
|
|
79
79
|
|
|
@@ -86,7 +86,7 @@ const getBackgroundColor = (
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
throw new ThemePropertyException(
|
|
89
|
-
`${bgColorProperty} is not a string, but: ${typeof bgColor}
|
|
89
|
+
`${bgColorProperty} is not a string, but: ${typeof bgColor}`,
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -99,7 +99,7 @@ const renderContrastColor =
|
|
|
99
99
|
bgColorProperty: string,
|
|
100
100
|
preferredColorProperty?: string,
|
|
101
101
|
standardDarkProperty: string = "YIQ_DARK_COLOR",
|
|
102
|
-
standardLightProperty: string = "YIQ_LIGHT_COLOR"
|
|
102
|
+
standardLightProperty: string = "YIQ_LIGHT_COLOR",
|
|
103
103
|
): ((UtilThemeProps) => string) =>
|
|
104
104
|
({ theme = { settings: {} } }: UtilThemeProps) => {
|
|
105
105
|
const bgColor = getBackgroundColor(theme, bgColorProperty, "#ffffff");
|
|
@@ -107,7 +107,7 @@ const renderContrastColor =
|
|
|
107
107
|
const darkColor = getThemeStringProp(
|
|
108
108
|
theme,
|
|
109
109
|
standardDarkProperty,
|
|
110
|
-
"#212529"
|
|
110
|
+
"#212529",
|
|
111
111
|
);
|
|
112
112
|
const lightColor = getThemeStringProp(theme, standardLightProperty, "#fff");
|
|
113
113
|
|
|
@@ -15,7 +15,7 @@ const roundedCorners =
|
|
|
15
15
|
(
|
|
16
16
|
property: string = DEFAULT_CORNER_PROPERTY,
|
|
17
17
|
path: string = "BORDER_RADIUS",
|
|
18
|
-
defaultValue: string = "0.25rem"
|
|
18
|
+
defaultValue: string = "0.25rem",
|
|
19
19
|
): ((UtilThemeProps) => string) =>
|
|
20
20
|
({ theme = { settings: {} } }: UtilThemeProps) => {
|
|
21
21
|
if (theme.ROUNDED_CORNERS) {
|
|
@@ -27,7 +27,7 @@ const roundedCorners =
|
|
|
27
27
|
return `${propertyName}: ${getThemeStringProp(
|
|
28
28
|
theme,
|
|
29
29
|
path,
|
|
30
|
-
defaultValue
|
|
30
|
+
defaultValue,
|
|
31
31
|
)}`;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -11,7 +11,7 @@ const getSize = (
|
|
|
11
11
|
theme: Theme,
|
|
12
12
|
ratio: number | string = 1,
|
|
13
13
|
path: string = "SPACER",
|
|
14
|
-
unit: string = "rem"
|
|
14
|
+
unit: string = "rem",
|
|
15
15
|
) => {
|
|
16
16
|
if (typeof ratio === "string") {
|
|
17
17
|
return ratio;
|
|
@@ -26,7 +26,7 @@ const getSize = (
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
throw new IllegalArgumentException(
|
|
29
|
-
`Ratio ${JSON.stringify(ratio)} must be a string or number
|
|
29
|
+
`Ratio ${JSON.stringify(ratio)} must be a string or number`,
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -10,7 +10,7 @@ import type { Theme, ThemePropValue } from "../types";
|
|
|
10
10
|
export const getProp = (
|
|
11
11
|
theme: $Shape<Theme> = {},
|
|
12
12
|
path: string = "",
|
|
13
|
-
defaultValue: ThemePropValue = ""
|
|
13
|
+
defaultValue: ThemePropValue = "",
|
|
14
14
|
): ?ThemePropValue => {
|
|
15
15
|
return path === "" ? defaultValue : get(theme, path, defaultValue);
|
|
16
16
|
};
|
|
@@ -20,7 +20,7 @@ export const getProp = (
|
|
|
20
20
|
export const getThemeProp = (
|
|
21
21
|
theme: $Shape<Theme> = {},
|
|
22
22
|
path: string = "",
|
|
23
|
-
defaultValue: ThemePropValue = ""
|
|
23
|
+
defaultValue: ThemePropValue = "",
|
|
24
24
|
): ThemePropValue => {
|
|
25
25
|
const value = getProp(theme, path, defaultValue);
|
|
26
26
|
|
|
@@ -34,7 +34,7 @@ export const getThemeProp = (
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
throw new ThemePropertyException(
|
|
37
|
-
`${path} is not a string, number or plain object, but: ${typeof value}
|
|
37
|
+
`${path} is not a string, number or plain object, but: ${typeof value}`,
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -43,7 +43,7 @@ export const getThemeProp = (
|
|
|
43
43
|
export const getThemeStringProp = (
|
|
44
44
|
theme: $Shape<Theme> = {},
|
|
45
45
|
path: string = "",
|
|
46
|
-
defaultValue: string = ""
|
|
46
|
+
defaultValue: string = "",
|
|
47
47
|
): string => {
|
|
48
48
|
const value = getProp(theme, path, defaultValue);
|
|
49
49
|
|
|
@@ -54,7 +54,7 @@ export const getThemeStringProp = (
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
throw new ThemePropertyException(
|
|
57
|
-
`${path} is not a string, but: ${typeof value}
|
|
57
|
+
`${path} is not a string, but: ${typeof value}`,
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ export const getThemeStringProp = (
|
|
|
63
63
|
export const getThemeNumberProp = (
|
|
64
64
|
theme: $Shape<Theme> = {},
|
|
65
65
|
path: string = "",
|
|
66
|
-
defaultValue: number = 0
|
|
66
|
+
defaultValue: number = 0,
|
|
67
67
|
): number => {
|
|
68
68
|
const value = getProp(theme, path, defaultValue);
|
|
69
69
|
|
|
@@ -72,7 +72,7 @@ export const getThemeNumberProp = (
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
throw new ThemePropertyException(
|
|
75
|
-
`${path} is not a number, but: ${typeof value}
|
|
75
|
+
`${path} is not a number, but: ${typeof value}`,
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
|
|
@@ -84,7 +84,7 @@ export const getThemeNumberProp = (
|
|
|
84
84
|
export const themeProp =
|
|
85
85
|
(
|
|
86
86
|
path: string,
|
|
87
|
-
defaultValue?: ThemePropValue
|
|
87
|
+
defaultValue?: ThemePropValue,
|
|
88
88
|
): (({ theme: Theme }) => ThemePropValue) =>
|
|
89
89
|
({ theme }: { theme: Theme }) =>
|
|
90
90
|
getThemeProp(theme, path, defaultValue);
|
|
@@ -27,7 +27,7 @@ const updateLocale = (state: I18nState, locale: string) => {
|
|
|
27
27
|
*/
|
|
28
28
|
const setLocales = (
|
|
29
29
|
state: I18nState,
|
|
30
|
-
{ locale, locales }: { locale: string, locales: Locales }
|
|
30
|
+
{ locale, locales }: { locale: string, locales: Locales },
|
|
31
31
|
) => {
|
|
32
32
|
// set locale in cookie
|
|
33
33
|
setCookie("locale", locale);
|
|
@@ -57,7 +57,7 @@ const initialState: I18nState = {
|
|
|
57
57
|
*/
|
|
58
58
|
export const I18nReducer: Reducer<I18nState, ReduxAction> = (
|
|
59
59
|
state = initialState,
|
|
60
|
-
action = void 0
|
|
60
|
+
action = void 0,
|
|
61
61
|
) => {
|
|
62
62
|
if (!action) {
|
|
63
63
|
return state;
|
|
@@ -23,7 +23,7 @@ import type { RequestModularUIOptions } from "../../utils/fetch/types";
|
|
|
23
23
|
*/
|
|
24
24
|
export const setModel = (
|
|
25
25
|
key: string,
|
|
26
|
-
model: ModularUIModel
|
|
26
|
+
model: ModularUIModel,
|
|
27
27
|
): SetModelAction => {
|
|
28
28
|
// set key on model for later reference
|
|
29
29
|
model.connectKey = key;
|
|
@@ -39,7 +39,7 @@ export const setModel = (
|
|
|
39
39
|
/**
|
|
40
40
|
*/
|
|
41
41
|
export const initModels = (
|
|
42
|
-
models: Array<{ key: string, model: ModularUIModel }
|
|
42
|
+
models: Array<{ key: string, model: ModularUIModel }>,
|
|
43
43
|
): InitModelAction => ({
|
|
44
44
|
type: "MODULARUI/INIT",
|
|
45
45
|
payload: models,
|
|
@@ -77,7 +77,7 @@ export const resetModularUI = (): ResetModularUIAction => ({
|
|
|
77
77
|
*/
|
|
78
78
|
export const updateStatus = (
|
|
79
79
|
key: string,
|
|
80
|
-
status: $Keys<typeof MODULARUI_STATUS
|
|
80
|
+
status: $Keys<typeof MODULARUI_STATUS>,
|
|
81
81
|
): UpdateStatusAction => ({
|
|
82
82
|
type: "MODULARUI/STATUS",
|
|
83
83
|
payload: { key, status },
|
|
@@ -88,7 +88,7 @@ export const updateStatus = (
|
|
|
88
88
|
const loadModelSuccessAction = (
|
|
89
89
|
key: string,
|
|
90
90
|
model: ModularUIModel,
|
|
91
|
-
modelToUpdate: ?ModularUIModel
|
|
91
|
+
modelToUpdate: ?ModularUIModel,
|
|
92
92
|
): UpdateModelAction | SetModelAction => {
|
|
93
93
|
if (modelToUpdate) {
|
|
94
94
|
// $FlowFixMe[prop-missing]
|
|
@@ -100,7 +100,7 @@ const loadModelSuccessAction = (
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
throw new Error(
|
|
103
|
-
`loadModel action: updateModel is set as option for ${key}, but the model is missing an update methode
|
|
103
|
+
`loadModel action: updateModel is set as option for ${key}, but the model is missing an update methode`,
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -113,7 +113,7 @@ const loadModelSuccessAction = (
|
|
|
113
113
|
export const loadModel = (
|
|
114
114
|
key: string,
|
|
115
115
|
href: Href | string,
|
|
116
|
-
options?: RequestModularUIOptions
|
|
116
|
+
options?: RequestModularUIOptions,
|
|
117
117
|
): ModularUIAction => ({
|
|
118
118
|
type: "MODULARUI/FETCH",
|
|
119
119
|
payload: {
|
|
@@ -151,7 +151,7 @@ export const loadModularUI =
|
|
|
151
151
|
(
|
|
152
152
|
key: string,
|
|
153
153
|
href: Href | string,
|
|
154
|
-
options?: RequestModularUIOptions
|
|
154
|
+
options?: RequestModularUIOptions,
|
|
155
155
|
): ThunkAction =>
|
|
156
156
|
(dispatch: Dispatch) => {
|
|
157
157
|
dispatch(updateStatus(key, MODULARUI_STATUS.LOADING));
|
|
@@ -174,7 +174,7 @@ export const loadModularUI =
|
|
|
174
174
|
*/
|
|
175
175
|
export const reloadModel = (
|
|
176
176
|
model: ModularUIModel,
|
|
177
|
-
options?: RequestModularUIOptions
|
|
177
|
+
options?: RequestModularUIOptions,
|
|
178
178
|
): ThunkAction =>
|
|
179
179
|
loadModularUI(model.connectKey, model.selfhref, {
|
|
180
180
|
...options,
|
|
@@ -38,7 +38,7 @@ export type InjectedProps = {
|
|
|
38
38
|
const modularUIConnector = (
|
|
39
39
|
name: string,
|
|
40
40
|
resource: string | Function,
|
|
41
|
-
options: ModularUIOptions = { propName: "data", removeOnUnmount: false }
|
|
41
|
+
options: ModularUIOptions = { propName: "data", removeOnUnmount: false },
|
|
42
42
|
): ((Component: ComponentType<any>) => (props: any) => Node) => {
|
|
43
43
|
const {
|
|
44
44
|
propName = "data",
|
|
@@ -61,7 +61,7 @@ const modularUIConnector = (
|
|
|
61
61
|
// handle manual reload of model
|
|
62
62
|
const handleManualReload = (
|
|
63
63
|
model: ModularUIModel,
|
|
64
|
-
reloadOptions?: Object
|
|
64
|
+
reloadOptions?: Object,
|
|
65
65
|
) => {
|
|
66
66
|
dispatch(reloadModel(model, reloadOptions));
|
|
67
67
|
};
|
|
@@ -78,7 +78,7 @@ const modularUIConnector = (
|
|
|
78
78
|
useEffect(() => {
|
|
79
79
|
if (doReload) {
|
|
80
80
|
dispatch(
|
|
81
|
-
loadModularUI(modelKey, url, { ...otherOptions, isReload: true })
|
|
81
|
+
loadModularUI(modelKey, url, { ...otherOptions, isReload: true }),
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
}, [dispatch, doReload, url, modelKey]);
|
|
@@ -111,7 +111,7 @@ const modularUIConnector = (
|
|
|
111
111
|
|
|
112
112
|
WrappedComponent.displayName = `BI.modularui(${getDisplayName(
|
|
113
113
|
WrappedComponent,
|
|
114
|
-
name
|
|
114
|
+
name,
|
|
115
115
|
)}`;
|
|
116
116
|
|
|
117
117
|
return WrappedComponent;
|
|
@@ -55,7 +55,7 @@ const responseHandler = (
|
|
|
55
55
|
next: Dispatch,
|
|
56
56
|
dispatch: Dispatch,
|
|
57
57
|
successAction: SuccessAction,
|
|
58
|
-
model: ModularUIModel
|
|
58
|
+
model: ModularUIModel,
|
|
59
59
|
) => {
|
|
60
60
|
if (successAction) {
|
|
61
61
|
const successResult = successAction(model);
|
|
@@ -73,7 +73,7 @@ const responseHandler = (
|
|
|
73
73
|
dispatch(successResult);
|
|
74
74
|
} catch (error) {
|
|
75
75
|
throw new Error(
|
|
76
|
-
`Result of successResult is not a valid redux action: ${error}
|
|
76
|
+
`Result of successResult is not a valid redux action: ${error}`,
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -88,7 +88,7 @@ const errorHandler = (
|
|
|
88
88
|
next: Dispatch,
|
|
89
89
|
dispatch: Dispatch,
|
|
90
90
|
errorAction: ?ErrorAction,
|
|
91
|
-
err: any
|
|
91
|
+
err: any,
|
|
92
92
|
) => {
|
|
93
93
|
dispatch(finishProgress());
|
|
94
94
|
|
|
@@ -111,7 +111,7 @@ const handleFetch = (
|
|
|
111
111
|
action: ModularUIAction,
|
|
112
112
|
locale: string,
|
|
113
113
|
dispatch: Dispatch,
|
|
114
|
-
next: Dispatch
|
|
114
|
+
next: Dispatch,
|
|
115
115
|
) => {
|
|
116
116
|
dispatch(startProgress());
|
|
117
117
|
|
|
@@ -131,7 +131,7 @@ const handleFetch = (
|
|
|
131
131
|
export const modularUIMiddleware: Middleware<
|
|
132
132
|
ReduxState,
|
|
133
133
|
ReduxAction,
|
|
134
|
-
Dispatch
|
|
134
|
+
Dispatch,
|
|
135
135
|
> =
|
|
136
136
|
(api: MiddlewareAPI<ReduxState, ReduxAction, Dispatch>) =>
|
|
137
137
|
(next: Dispatch) =>
|
|
@@ -142,7 +142,7 @@ export const modularUIMiddleware: Middleware<
|
|
|
142
142
|
action,
|
|
143
143
|
api.getState().i18n.locale,
|
|
144
144
|
api.dispatch,
|
|
145
|
-
next
|
|
145
|
+
next,
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -12,7 +12,7 @@ import type { ModularUIModel } from "../../models";
|
|
|
12
12
|
*/
|
|
13
13
|
const updateStatus = (
|
|
14
14
|
state: ModularUIState,
|
|
15
|
-
{ key, status }: { key: string, status: $Keys<typeof MODULARUI_STATUS> }
|
|
15
|
+
{ key, status }: { key: string, status: $Keys<typeof MODULARUI_STATUS> },
|
|
16
16
|
) => {
|
|
17
17
|
// model should always be available when status is not loading
|
|
18
18
|
if (status !== MODULARUI_STATUS.LOADING && !state[key]) {
|
|
@@ -33,7 +33,7 @@ const updateStatus = (
|
|
|
33
33
|
*/
|
|
34
34
|
const setModel = (
|
|
35
35
|
state: ModularUIState,
|
|
36
|
-
{ key, model }: { key: string, model: ?ModularUIModel }
|
|
36
|
+
{ key, model }: { key: string, model: ?ModularUIModel },
|
|
37
37
|
) => {
|
|
38
38
|
if (!state[key]) {
|
|
39
39
|
return state;
|
|
@@ -57,7 +57,7 @@ const setModel = (
|
|
|
57
57
|
*/
|
|
58
58
|
const initModularUI = (
|
|
59
59
|
state: ModularUIState,
|
|
60
|
-
models: Array<{ key: string, model: ModularUIModel }
|
|
60
|
+
models: Array<{ key: string, model: ModularUIModel }>,
|
|
61
61
|
) => {
|
|
62
62
|
const newState = Object.assign({}, state);
|
|
63
63
|
|
|
@@ -90,7 +90,7 @@ const updateModel = (state: ModularUIState, model: ModularUIModel) => {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
throw new Error(
|
|
93
|
-
`ModularUIReducer: Cannot update model with key ${model.connectKey}
|
|
93
|
+
`ModularUIReducer: Cannot update model with key ${model.connectKey}`,
|
|
94
94
|
);
|
|
95
95
|
};
|
|
96
96
|
|
|
@@ -124,7 +124,7 @@ const initialState: ModularUIState = {};
|
|
|
124
124
|
*/
|
|
125
125
|
export const ModularUIReducer: Reducer<ModularUIState, ReduxAction> = (
|
|
126
126
|
state = initialState,
|
|
127
|
-
action
|
|
127
|
+
action,
|
|
128
128
|
) => {
|
|
129
129
|
if (!action) {
|
|
130
130
|
return state;
|