@beinformed/ui 1.17.3 → 1.18.2
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 +21 -0
- package/esm/builder/index.js.map +1 -1
- package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/esm/constants/Constants.js +4 -0
- package/esm/constants/Constants.js.map +1 -1
- package/esm/constants/LayoutHintConfig.js.map +1 -1
- package/esm/constants/LayoutHints.js.map +1 -1
- package/esm/constants/Settings.js +25 -1
- package/esm/constants/Settings.js.map +1 -1
- package/esm/constants/index.js.map +1 -1
- package/esm/exceptions/ConfigurationException.js.map +1 -1
- package/esm/exceptions/FetchException.js.map +1 -1
- package/esm/exceptions/IllegalArgumentException.js.map +1 -1
- package/esm/exceptions/IllegalReturnException.js.map +1 -1
- package/esm/exceptions/IllegalStateException.js.map +1 -1
- package/esm/exceptions/JsonParseException.js.map +1 -1
- package/esm/exceptions/MissingPropertyException.js.map +1 -1
- package/esm/exceptions/NetworkException.js.map +1 -1
- package/esm/exceptions/NotAllowedUriException.js.map +1 -1
- package/esm/exceptions/NotFoundException.js.map +1 -1
- package/esm/exceptions/ServerRequestException.js.map +1 -1
- package/esm/exceptions/ThemePropertyException.js.map +1 -1
- package/esm/exceptions/TimeoutException.js.map +1 -1
- package/esm/exceptions/UnauthorizedException.js.map +1 -1
- package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
- package/esm/exceptions/index.js.map +1 -1
- package/esm/hooks/index.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 +1 -11
- 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/useModels.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.map +1 -1
- package/esm/hooks/useProgressIndicator.js.map +1 -1
- package/esm/hooks/useRouter.js.map +1 -1
- package/esm/i18n/Locale.js +2 -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/index.js.map +1 -1
- package/esm/i18n/languages.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/esm/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/esm/i18n/types.js.map +1 -1
- package/esm/i18n/withMessage.js.map +1 -1
- package/esm/index.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/CaptchaAttributeModel.js.map +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.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/HelptextAttributeModel.js.map +1 -1
- package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
- package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
- package/esm/models/attributes/MoneyAttributeModel.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/XMLAttributeModel.js.map +1 -1
- package/esm/models/attributes/_createAttribute.js.map +1 -1
- package/esm/models/attributes/input-constraints/BSNConstraint.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/DateTimeDateFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.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/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/esm/models/attributes/input-constraints/XMLConstraint.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/ResourceCollection.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/ConceptRelationModel.js.map +1 -1
- package/esm/models/concepts/ConceptTypeDetailModel.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/ContentTypeModel.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/contentconfiguration/ContentConfigurationResults.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/error/ErrorResponse.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/ConceptIndexFilterModel.js.map +1 -1
- package/esm/models/filters/FilterCollection.js.map +1 -1
- package/esm/models/filters/FilterModel.js.map +1 -1
- package/esm/models/filters/RangeFilterModel.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/href/ListHref.js.map +1 -1
- package/esm/models/index.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/ListHeaderModel.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 +2 -2
- 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/PagesizeModel.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/parameter/Parameter.js.map +1 -1
- package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/esm/models/resolveModel.js.map +1 -1
- package/esm/models/search/CaseSearchModel.js.map +1 -1
- package/esm/models/sorting/SortOptionModel.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/TaskGroupCollection.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/UserModel.js.map +1 -1
- package/esm/models/user/UserProfileModel.js.map +1 -1
- package/esm/models/user/UserServicesModel.js.map +1 -1
- package/esm/modularui/Authenticate.js +9 -9
- package/esm/modularui/Authenticate.js.map +1 -1
- package/esm/modularui/ModularUIError.js.map +1 -1
- package/esm/modularui/ModularUIRequest.js.map +1 -1
- package/esm/modularui/ModularUIResponse.js.map +1 -1
- package/esm/modularui/index.js.map +1 -1
- package/esm/react/ErrorBoundary.js.map +1 -1
- package/esm/react/ErrorBoundaryFallback.js.map +1 -1
- package/esm/react/index.js.map +1 -1
- package/esm/react/utils.js.map +1 -1
- package/esm/react-client/Init.js.map +1 -1
- package/esm/react-client/client.js +3 -2
- package/esm/react-client/client.js.map +1 -1
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/index.js.map +1 -1
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/contextPath.js.map +1 -1
- package/esm/react-server/createSSRComplete.js.map +1 -1
- package/esm/react-server/htmlpage.js.map +1 -1
- package/esm/react-server/index.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/serverNoSSR.js.map +1 -1
- package/esm/react-server/serverSSR.js.map +1 -1
- package/esm/react-server/serverUtil.js +2 -1
- package/esm/react-server/serverUtil.js.map +1 -1
- package/esm/react-theme/ThemeProvider.js.map +1 -1
- package/esm/react-theme/createTheme.js.map +1 -1
- package/esm/react-theme/index.js.map +1 -1
- package/esm/react-theme/types.js.map +1 -1
- package/esm/react-theme/useTheme.js.map +1 -1
- package/esm/react-theme/utils/background.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/actions.js.map +1 -1
- package/esm/redux/_i18n/index.js.map +1 -1
- package/esm/redux/_i18n/reducer.js.map +1 -1
- package/esm/redux/_i18n/types.js.map +1 -1
- package/esm/redux/_modularui/actions.js.map +1 -1
- package/esm/redux/_modularui/connector.js.map +1 -1
- package/esm/redux/_modularui/index.js.map +1 -1
- package/esm/redux/_modularui/middleware.js.map +1 -1
- package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
- package/esm/redux/_modularui/reducer.js.map +1 -1
- package/esm/redux/_modularui/selectors.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/actions.js.map +1 -1
- package/esm/redux/_router/connectors.js.map +1 -1
- package/esm/redux/_router/index.js.map +1 -1
- package/esm/redux/_router/middleware.js.map +1 -1
- package/esm/redux/_router/reducer.js.map +1 -1
- package/esm/redux/_router/types.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/Form.js.map +1 -1
- package/esm/redux/actions/FormAttributeSet.js +5 -11
- 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/Modals.js.map +1 -1
- package/esm/redux/actions/Notification.js.map +1 -1
- package/esm/redux/actions/Preferences.js +32 -2
- 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/actions/SignOut.js.map +1 -1
- package/esm/redux/actions/index.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/connectors/index.js.map +1 -1
- package/esm/redux/index.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 +5 -1
- package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
- package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/esm/redux/reducers/createReducer.js.map +1 -1
- package/esm/redux/reducers/index.js.map +1 -1
- package/esm/redux/store/beforeRenderHooks.js.map +1 -1
- package/esm/redux/store/configureStore.js.map +1 -1
- package/esm/redux/types.js.map +1 -1
- package/esm/utils/browser/Cache.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/serverFetch.js.map +1 -1
- package/esm/utils/fetch/types.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/checkResource.js.map +1 -1
- package/esm/utils/helpers/createHash.js.map +1 -1
- package/esm/utils/helpers/createUUID.js.map +1 -1
- package/esm/utils/helpers/objects.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/index.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/index.js.map +1 -1
- package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
- package/lib/constants/Constants.js +9 -1
- package/lib/constants/Constants.js.flow +5 -0
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +37 -1
- package/lib/constants/Settings.js.flow +25 -1
- package/lib/constants/Settings.js.map +1 -1
- package/lib/constants/index.js.map +1 -1
- package/lib/exceptions/ConfigurationException.js.map +1 -1
- package/lib/exceptions/FetchException.js.map +1 -1
- package/lib/exceptions/IllegalArgumentException.js.map +1 -1
- package/lib/exceptions/IllegalReturnException.js.map +1 -1
- package/lib/exceptions/IllegalStateException.js.map +1 -1
- package/lib/exceptions/JsonParseException.js.map +1 -1
- package/lib/exceptions/MissingPropertyException.js.map +1 -1
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/NotAllowedUriException.js.map +1 -1
- package/lib/exceptions/NotFoundException.js.map +1 -1
- package/lib/exceptions/ServerRequestException.js.map +1 -1
- package/lib/exceptions/ThemePropertyException.js.map +1 -1
- package/lib/exceptions/TimeoutException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
- package/lib/exceptions/index.js.map +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAllFormsOnModel.js.map +1 -1
- package/lib/hooks/useAuthentication.js.map +1 -1
- package/lib/hooks/useContent.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/hooks/useForm.js +2 -15
- package/lib/hooks/useForm.js.flow +0 -14
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/hooks/useI18n.js.map +1 -1
- package/lib/hooks/useModal.js.map +1 -1
- package/lib/hooks/useModelCatalog.js.map +1 -1
- package/lib/hooks/useModels.js.map +1 -1
- package/lib/hooks/useModularUI.js.map +1 -1
- package/lib/hooks/useModularUIBasic.js.map +1 -1
- package/lib/hooks/useModularUIModel.js.map +1 -1
- package/lib/hooks/useModularUIRequest.js.map +1 -1
- package/lib/hooks/useNotification.js.map +1 -1
- package/lib/hooks/usePreference.js.map +1 -1
- package/lib/hooks/useProgressIndicator.js.map +1 -1
- package/lib/hooks/useRouter.js.map +1 -1
- package/lib/i18n/Locale.js +2 -1
- package/lib/i18n/Locale.js.flow +4 -2
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/__tests__/Locale.spec.js.flow +3 -2
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/languages.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/i18n/types.js.map +1 -1
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/models/actions/ActionCollection.js.map +1 -1
- package/lib/models/actions/ActionModel.js.map +1 -1
- package/lib/models/application/ApplicationModel.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/AttributeSetModel.js.map +1 -1
- package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
- package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
- package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
- package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
- package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
- package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
- package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
- package/lib/models/attributes/StringAttributeModel.js.map +1 -1
- package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
- package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
- package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceCollection.js.map +1 -1
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/caseview/CaseViewModel.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
- package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
- package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
- package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
- package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/content/ContentIndexModel.js.map +1 -1
- package/lib/models/content/ContentLinkModel.js.map +1 -1
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/ContentTOCModel.js.map +1 -1
- package/lib/models/content/ContentTypeModel.js.map +1 -1
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/lib/models/detail/DetailModel.js.map +1 -1
- package/lib/models/error/ErrorCollection.js.map +1 -1
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/error/ErrorResponse.js.map +1 -1
- package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
- package/lib/models/filters/FilterCollection.js.map +1 -1
- package/lib/models/filters/FilterModel.js.map +1 -1
- package/lib/models/filters/RangeFilterModel.js.map +1 -1
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/form/FormObjectModel.js.map +1 -1
- package/lib/models/grouping/GroupingModel.js.map +1 -1
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/href/ListHref.js.map +1 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
- package/lib/models/links/LinkCollection.js.map +1 -1
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListDetailModel.js.map +1 -1
- package/lib/models/list/ListHeaderModel.js.map +1 -1
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/list/ListItemModel.js.map +1 -1
- package/lib/models/list/ListModel.js +2 -2
- package/lib/models/list/ListModel.js.flow +1 -2
- package/lib/models/list/ListModel.js.map +1 -1
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
- package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
- package/lib/models/paging/PagesizeModel.js.map +1 -1
- package/lib/models/paging/PagingModel.js.map +1 -1
- package/lib/models/panels/GroupingPanelModel.js.map +1 -1
- package/lib/models/parameter/Parameter.js.map +1 -1
- package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/search/CaseSearchModel.js.map +1 -1
- package/lib/models/sorting/SortOptionModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/tab/TabModel.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
- package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
- package/lib/models/types.js.map +1 -1
- package/lib/models/user/UserModel.js.map +1 -1
- package/lib/models/user/UserProfileModel.js.map +1 -1
- package/lib/models/user/UserServicesModel.js.map +1 -1
- package/lib/modularui/Authenticate.js +10 -10
- package/lib/modularui/Authenticate.js.flow +11 -7
- package/lib/modularui/Authenticate.js.map +1 -1
- package/lib/modularui/ModularUIError.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/ModularUIResponse.js.map +1 -1
- package/lib/modularui/index.js.map +1 -1
- package/lib/react/ErrorBoundary.js.map +1 -1
- package/lib/react/ErrorBoundaryFallback.js.map +1 -1
- package/lib/react/index.js.map +1 -1
- package/lib/react/utils.js.map +1 -1
- package/lib/react-client/Init.js.map +1 -1
- package/lib/react-client/client.js +2 -1
- package/lib/react-client/client.js.flow +5 -1
- package/lib/react-client/client.js.map +1 -1
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/index.js.map +1 -1
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/__tests__/serverUtil.spec.js.flow +18 -0
- package/lib/react-server/contextPath.js.map +1 -1
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/htmlpage.js.map +1 -1
- package/lib/react-server/index.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/requestInformation.js.map +1 -1
- package/lib/react-server/serverNoSSR.js.map +1 -1
- package/lib/react-server/serverSSR.js.map +1 -1
- package/lib/react-server/serverUtil.js +1 -0
- package/lib/react-server/serverUtil.js.flow +2 -0
- package/lib/react-server/serverUtil.js.map +1 -1
- package/lib/react-theme/ThemeProvider.js.map +1 -1
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/react-theme/index.js.map +1 -1
- package/lib/react-theme/types.js.map +1 -1
- package/lib/react-theme/useTheme.js.map +1 -1
- package/lib/react-theme/utils/background.js.map +1 -1
- package/lib/react-theme/utils/colors.js.map +1 -1
- package/lib/react-theme/utils/contrast.js.map +1 -1
- package/lib/react-theme/utils/corners.js.map +1 -1
- package/lib/react-theme/utils/spacers.js.map +1 -1
- package/lib/react-theme/utils/themeProps.js.map +1 -1
- package/lib/redux/_i18n/actions.js.map +1 -1
- package/lib/redux/_i18n/index.js.map +1 -1
- package/lib/redux/_i18n/reducer.js.map +1 -1
- package/lib/redux/_i18n/types.js.map +1 -1
- package/lib/redux/_modularui/actions.js.map +1 -1
- package/lib/redux/_modularui/connector.js.map +1 -1
- package/lib/redux/_modularui/index.js.map +1 -1
- package/lib/redux/_modularui/middleware.js.map +1 -1
- package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
- package/lib/redux/_modularui/reducer.js.map +1 -1
- package/lib/redux/_modularui/selectors.js.map +1 -1
- package/lib/redux/_modularui/types.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/actions.js.map +1 -1
- package/lib/redux/_router/connectors.js.map +1 -1
- package/lib/redux/_router/index.js.map +1 -1
- package/lib/redux/_router/middleware.js.map +1 -1
- package/lib/redux/_router/reducer.js.map +1 -1
- package/lib/redux/_router/types.js.map +1 -1
- package/lib/redux/actions/Application.js.map +1 -1
- package/lib/redux/actions/Authorization.js.map +1 -1
- package/lib/redux/actions/Error.js.map +1 -1
- package/lib/redux/actions/Form.js.map +1 -1
- package/lib/redux/actions/FormAttributeSet.js +6 -15
- package/lib/redux/actions/FormAttributeSet.js.flow +3 -16
- package/lib/redux/actions/FormAttributeSet.js.map +1 -1
- package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
- package/lib/redux/actions/FormAutosave.js.map +1 -1
- package/lib/redux/actions/FormAutosubmit.js.map +1 -1
- package/lib/redux/actions/FormValidations.js.map +1 -1
- package/lib/redux/actions/Modals.js.map +1 -1
- package/lib/redux/actions/Notification.js.map +1 -1
- package/lib/redux/actions/Preferences.js +41 -1
- package/lib/redux/actions/Preferences.js.flow +49 -2
- package/lib/redux/actions/Preferences.js.map +1 -1
- package/lib/redux/actions/ProgressIndicator.js.map +1 -1
- package/lib/redux/actions/SignIn.js.map +1 -1
- package/lib/redux/actions/SignOut.js.map +1 -1
- package/lib/redux/actions/__tests__/Preferences.spec.js.flow +11 -0
- package/lib/redux/actions/index.js.map +1 -1
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Preferences.js.map +1 -1
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/connectors/index.js.map +1 -1
- package/lib/redux/index.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js +5 -1
- package/lib/redux/reducers/PreferencesReducer.js.flow +8 -1
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/reducers/__tests__/PreferencesReducer.spec.js.flow +12 -0
- package/lib/redux/reducers/createReducer.js.map +1 -1
- package/lib/redux/reducers/index.js.map +1 -1
- package/lib/redux/store/beforeRenderHooks.js.map +1 -1
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/redux/types.js.flow +5 -0
- package/lib/redux/types.js.map +1 -1
- package/lib/utils/browser/Cache.js.map +1 -1
- package/lib/utils/browser/Cookies.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/fetch/serverFetch.js.map +1 -1
- package/lib/utils/fetch/types.js.map +1 -1
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/checkResource.js.map +1 -1
- package/lib/utils/helpers/createHash.js.map +1 -1
- package/lib/utils/helpers/createUUID.js.map +1 -1
- package/lib/utils/helpers/objects.js.map +1 -1
- package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
- package/lib/utils/helpers/text.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/formatValue.js.map +1 -1
- package/lib/utils/number/parseNumbers.js.map +1 -1
- package/package.json +20 -18
- package/src/constants/Constants.js +5 -0
- package/src/constants/Settings.js +25 -1
- package/src/hooks/useForm.js +0 -14
- package/src/i18n/Locale.js +4 -2
- package/src/i18n/__tests__/Locale.spec.js +3 -2
- package/src/models/list/ListModel.js +1 -2
- package/src/modularui/Authenticate.js +11 -7
- package/src/react-client/client.js +5 -1
- package/src/react-server/__tests__/serverUtil.spec.js +18 -0
- package/src/react-server/serverUtil.js +2 -0
- package/src/redux/actions/FormAttributeSet.js +3 -16
- package/src/redux/actions/Preferences.js +49 -2
- package/src/redux/actions/__tests__/Preferences.spec.js +11 -0
- package/src/redux/reducers/PreferencesReducer.js +8 -1
- package/src/redux/reducers/__tests__/PreferencesReducer.spec.js +12 -0
- package/src/redux/types.js +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Preferences.js","names":["isPlainObject","JsonParseException","setSetting","setSettings","BASE","ALL_CONTENT_IN_DATA_SETTING","LOGIN_PASSWORD_SETTING","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGOUT_PATH_SETTING","getServerPreferenceValue","preferenceName","defaultValue","type","value","preferencesProvider","getPreferenceByName","split","val","setServerPreference","propertyName","setPreference","propertyValue","payload","setPreferences","preferences","setThemePreference","configTheme","themeData","JSON","parse","error","settings","setAllContentInDataSetting","state","allContentInDataSetting","getModularUIContentInData","setLoginPreferences","loginSettings"],"sources":["../../../src/redux/actions/Preferences.js"],"sourcesContent":["// @flow\nimport { isPlainObject } from \"../../utils/helpers/objects\";\n\nimport { JsonParseException } from \"../../exceptions\";\nimport { setSetting, setSettings } from \"../../constants/Settings\";\n\nimport type {\n PreferenceValue,\n ReduxState,\n SetPreferenceAction,\n SetPreferencesAction,\n} from \"../types\";\n\nimport {\n BASE,\n ALL_CONTENT_IN_DATA_SETTING,\n LOGIN_PASSWORD_SETTING,\n LOGIN_PATH_SETTING,\n LOGIN_USERNAME_SETTING,\n LOGOUT_PATH_SETTING,\n} from \"../../constants\";\n\n/**\n */\nconst getServerPreferenceValue = (\n preferenceName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n) => {\n let value = null;\n if (typeof preferencesProvider !== \"undefined\") {\n value = preferencesProvider.getPreferenceByName(preferenceName);\n }\n\n if (value == null) {\n value = defaultValue;\n }\n\n if (typeof value === \"string\" && type !== \"string\" && value.includes(\",\")) {\n value = value.split(\",\").map((val) => val.trim());\n }\n\n return value;\n};\n\n/**\n */\nexport const setServerPreference = (\n propertyName: string,\n defaultValue: PreferenceValue = null,\n type?: string\n): SetPreferenceAction => {\n const value = getServerPreferenceValue(propertyName, defaultValue, type);\n return setPreference(propertyName, value);\n};\n\n/**\n */\nexport const setPreference = (\n propertyName: string,\n propertyValue: PreferenceValue = null\n): SetPreferenceAction => ({\n type: \"SET_PREFERENCE\",\n payload: {\n [propertyName]: propertyValue,\n },\n});\n\n/**\n */\nexport const setPreferences = (preferences: Object): SetPreferencesAction => ({\n type: \"SET_PREFERENCES\",\n payload: {\n ...preferences,\n },\n});\n\n/**\n */\nexport const setThemePreference = (\n configTheme: string\n): SetPreferenceAction => {\n let themeData = {};\n\n try {\n themeData = configTheme ? JSON.parse(configTheme) : null;\n } catch (error) {\n throw new JsonParseException(`Theme file contains invalid JSON: ${error}`);\n }\n\n if (themeData && isPlainObject(themeData)) {\n setSettings(themeData.settings);\n }\n\n return setPreference(\"theme\", themeData);\n};\n\n/**\n * Make modular-ui-content-in-data preference available client side\n */\nexport const setAllContentInDataSetting = (\n state?: ReduxState\n): SetPreferenceAction => {\n let allContentInDataSetting = false;\n\n if (\n typeof preferencesProvider !== \"undefined\" &&\n typeof preferencesProvider.getModularUIContentInData !== \"undefined\"\n ) {\n allContentInDataSetting = preferencesProvider.getModularUIContentInData();\n } else if (typeof state !== \"undefined\") {\n allContentInDataSetting = state.preferences[ALL_CONTENT_IN_DATA_SETTING];\n }\n\n setSetting(ALL_CONTENT_IN_DATA_SETTING, !!allContentInDataSetting);\n return setPreference(ALL_CONTENT_IN_DATA_SETTING, allContentInDataSetting);\n};\n\n/**\n * Retrieves login settings from runtime preferences and sets them as setting in the preference reducer\n */\nexport const setLoginPreferences = (\n state?: ReduxState\n): SetPreferencesAction => {\n const loginSettings = {\n [LOGIN_PATH_SETTING]: getServerPreferenceValue(\n LOGIN_PATH_SETTING,\n state?.preferences[LOGIN_PATH_SETTING] ?? `${BASE}/j_security_check`\n ),\n [LOGIN_USERNAME_SETTING]: getServerPreferenceValue(\n LOGIN_USERNAME_SETTING,\n state?.preferences[LOGIN_USERNAME_SETTING] ?? \"j_username\"\n ),\n [LOGIN_PASSWORD_SETTING]: getServerPreferenceValue(\n LOGIN_PASSWORD_SETTING,\n state?.preferences[LOGIN_PASSWORD_SETTING] ?? \"j_password\"\n ),\n [LOGOUT_PATH_SETTING]: getServerPreferenceValue(\n LOGOUT_PATH_SETTING,\n state?.preferences[LOGOUT_PATH_SETTING] ?? `${BASE}/Logoff`\n ),\n };\n\n setSettings(loginSettings);\n return setPreferences(loginSettings);\n};\n"],"mappings":";;;;;;;;;;;;;;AACA,SAASA,aAAT,QAA8B,6BAA9B;AAEA,SAASC,kBAAT,QAAmC,kBAAnC;AACA,SAASC,UAAT,EAAqBC,WAArB,QAAwC,0BAAxC;AASA,SACEC,IADF,EAEEC,2BAFF,EAGEC,sBAHF,EAIEC,kBAJF,EAKEC,sBALF,EAMEC,mBANF,QAOO,iBAPP;AASA;AACA;;AACA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAA2B,CAC/BC,cAD+B,EAI5B;EAAA,IAFHC,YAEG,uEAF6B,IAE7B;EAAA,IADHC,IACG;EACH,IAAIC,KAAK,GAAG,IAAZ;;EACA,IAAI,OAAOC,mBAAP,KAA+B,WAAnC,EAAgD;IAC9CD,KAAK,GAAGC,mBAAmB,CAACC,mBAApB,CAAwCL,cAAxC,CAAR;EACD;;EAED,IAAIG,KAAK,IAAI,IAAb,EAAmB;IACjBA,KAAK,GAAGF,YAAR;EACD;;EAED,IAAI,OAAOE,KAAP,KAAiB,QAAjB,IAA6BD,IAAI,KAAK,QAAtC,IAAkD,0BAAAC,KAAK,MAAL,CAAAA,KAAK,EAAU,GAAV,CAA3D,EAA2E;IAAA;;IACzEA,KAAK,GAAG,gCAAAA,KAAK,CAACG,KAAN,CAAY,GAAZ,kBAAqB,UAACC,GAAD;MAAA,OAAS,sBAAAA,GAAG,MAAH,CAAAA,GAAG,CAAZ;IAAA,CAArB,CAAR;EACD;;EAED,OAAOJ,KAAP;AACD,CAnBD;AAqBA;AACA;;;AACA,OAAO,IAAMK,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCC,YADiC,EAIT;EAAA,IAFxBR,YAEwB,uEAFQ,IAER;EAAA,IADxBC,IACwB;EACxB,IAAMC,KAAK,GAAGJ,wBAAwB,CAACU,YAAD,EAAeR,YAAf,EAA6BC,IAA7B,CAAtC;EACA,OAAOQ,aAAa,CAACD,YAAD,EAAeN,KAAf,CAApB;AACD,CAPM;AASP;AACA;;AACA,OAAO,IAAMO,aAAa,GAAG,SAAhBA,aAAgB,CAC3BD,YAD2B;EAAA,IAE3BE,aAF2B,uEAEM,IAFN;EAAA,OAGF;IACzBT,IAAI,EAAE,gBADmB;IAEzBU,OAAO,sBACJH,YADI,EACWE,aADX;EAFkB,CAHE;AAAA,CAAtB;AAUP;AACA;;AACA,OAAO,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD;EAAA,OAAgD;IAC5EZ,IAAI,EAAE,iBADsE;IAE5EU,OAAO,oBACFE,WADE;EAFqE,CAAhD;AAAA,CAAvB;AAOP;AACA;;AACA,OAAO,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,WADgC,EAER;EACxB,IAAIC,SAAS,GAAG,EAAhB;;EAEA,IAAI;IACFA,SAAS,GAAGD,WAAW,GAAGE,IAAI,CAACC,KAAL,CAAWH,WAAX,CAAH,GAA6B,IAApD;EACD,CAFD,CAEE,OAAOI,KAAP,EAAc;IACd,MAAM,IAAI9B,kBAAJ,6CAA4D8B,KAA5D,EAAN;EACD;;EAED,IAAIH,SAAS,IAAI5B,aAAa,CAAC4B,SAAD,CAA9B,EAA2C;IACzCzB,WAAW,CAACyB,SAAS,CAACI,QAAX,CAAX;EACD;;EAED,OAAOX,aAAa,CAAC,OAAD,EAAUO,SAAV,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;AACA,OAAO,IAAMK,0BAA0B,GAAG,SAA7BA,0BAA6B,CACxCC,KADwC,EAEhB;EACxB,IAAIC,uBAAuB,GAAG,KAA9B;;EAEA,IACE,OAAOpB,mBAAP,KAA+B,WAA/B,IACA,OAAOA,mBAAmB,CAACqB,yBAA3B,KAAyD,WAF3D,EAGE;IACAD,uBAAuB,GAAGpB,mBAAmB,CAACqB,yBAApB,EAA1B;EACD,CALD,MAKO,IAAI,OAAOF,KAAP,KAAiB,WAArB,EAAkC;IACvCC,uBAAuB,GAAGD,KAAK,CAACT,WAAN,CAAkBpB,2BAAlB,CAA1B;EACD;;EAEDH,UAAU,CAACG,2BAAD,EAA8B,CAAC,CAAC8B,uBAAhC,CAAV;EACA,OAAOd,aAAa,CAAChB,2BAAD,EAA8B8B,uBAA9B,CAApB;AACD,CAhBM;AAkBP;AACA;AACA;;AACA,OAAO,IAAME,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCH,KADiC,EAER;EAAA;;EACzB,IAAMI,aAAa,yDAChB/B,kBADgB,EACKG,wBAAwB,CAC5CH,kBAD4C,2BAE5C2B,KAF4C,aAE5CA,KAF4C,uBAE5CA,KAAK,CAAET,WAAP,CAAmBlB,kBAAnB,CAF4C,mFAECH,IAFD,uBAD7B,mCAKhBI,sBALgB,EAKSE,wBAAwB,CAChDF,sBADgD,4BAEhD0B,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAET,WAAP,CAAmBjB,sBAAnB,CAFgD,2EAEF,YAFE,CALjC,mCAShBF,sBATgB,EASSI,wBAAwB,CAChDJ,sBADgD,4BAEhD4B,KAFgD,aAEhDA,KAFgD,uBAEhDA,KAAK,CAAET,WAAP,CAAmBnB,sBAAnB,CAFgD,2EAEF,YAFE,CATjC,mCAahBG,mBAbgB,EAaMC,wBAAwB,CAC7CD,mBAD6C,4BAE7CyB,KAF6C,aAE7CA,KAF6C,uBAE7CA,KAAK,CAAET,WAAP,CAAmBhB,mBAAnB,CAF6C,qFAECL,IAFD,aAb9B,kBAAnB;EAmBAD,WAAW,CAACmC,aAAD,CAAX;EACA,OAAOd,cAAc,CAACc,aAAD,CAArB;AACD,CAxBM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ProgressIndicator.js","names":["startProgress","type","finishProgress","resetProgress","updateProgress","percentComplete","payload"],"sources":["../../../src/redux/actions/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ResetProgressAction,\n UpdateProgressAction,\n} from \"../types\";\n\n// ACTIONS\n/**\n * Start the progress indicator\n */\nexport const startProgress = (): StartProgressAction => ({\n type: \"START_PROGRESS\",\n});\n\n/**\n * Stop the progress indicator\n */\nexport const finishProgress = (): FinishProgressAction => ({\n type: \"FINISH_PROGRESS\",\n});\n\n/**\n * Reset the progress indicator\n */\nexport const resetProgress = (): ResetProgressAction => ({\n type: \"RESET_PROGRESS\",\n});\n\n/**\n * Update progress complete percentage\n */\nexport const updateProgress = (\n percentComplete: number\n): UpdateProgressAction => ({\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete },\n});\n"],"mappings":"AAQA;;AACA;AACA;AACA;AACA,OAAO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAiB;EAAA,OAA6B;IACzDD,IAAI,EAAE;EADmD,CAA7B;AAAA,CAAvB;AAIP;AACA;AACA;;AACA,OAAO,IAAME,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDF,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;AACA;;AACA,OAAO,IAAMG,cAAc,GAAG,SAAjBA,cAAiB,CAC5BC,eAD4B;EAAA,OAEF;IAC1BJ,IAAI,EAAE,iBADoB;IAE1BK,OAAO,EAAE;MAAED,eAAe,EAAfA;IAAF;EAFiB,CAFE;AAAA,CAAvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SignIn.js","names":["Cache","Authenticate","reloadApplication","startProgress","finishProgress","push","CHANGEPASSWORD_PATH","loginFailed","errorMessage","type","payload","resetAuthErrors","loginSuccess","changePassword","dispatch","getState","isModal","router","location","state","modal","locationFrom","from","login","username","password","then","addItem","catch","error","id","dispatchedReloadApplication","resolve"],"sources":["../../../src/redux/actions/SignIn.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\nimport Authenticate from \"../../modularui/Authenticate\";\n\nimport { reloadApplication } from \"./Application\";\n\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { push } from \"../_router/actions\";\nimport { CHANGEPASSWORD_PATH } from \"../../constants/Constants\";\n\nimport type {\n LoginFailedAction,\n ResetAuthErrorsAction,\n LoginSuccessAction,\n ThunkAction,\n} from \"../types\";\n\n/**\n * Send login failed action\n */\nexport const loginFailed = (errorMessage: string): LoginFailedAction => ({\n type: \"AUTHENTICATION_ERROR\",\n payload: errorMessage,\n});\n\n/**\n * Resets any authentication errors\n */\nexport const resetAuthErrors = (): ResetAuthErrorsAction => ({\n type: \"AUTHENTICATION_RESET_ERRORS\",\n});\n\n/**\n * Send login success action\n */\nexport const loginSuccess = (): LoginSuccessAction => ({\n type: \"AUTHENTICATION_SUCCESS\",\n});\n\n/**\n * Send change password action\n */\nexport const changePassword = (): ThunkAction => (dispatch, getState) => {\n dispatch({\n type: \"CHANGE_PASSWORD\",\n });\n\n const isModal = getState().router.location?.state?.modal;\n const locationFrom = getState().router.location?.state?.from;\n return dispatch(\n push(CHANGEPASSWORD_PATH, {\n from: locationFrom ? locationFrom : getState().router.location,\n modal: isModal,\n })\n );\n};\n\n/**\n */\nexport const login =\n (username: string, password: string): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate()\n .login(username, password)\n .then(() => dispatch(reloadApplication()))\n .then(() => {\n Cache.addItem(\"auth\", true);\n dispatch(loginSuccess());\n\n return dispatch(finishProgress());\n })\n .catch((error) => {\n if (error.id === \"Error.ChangePasswordRequired\") {\n const dispatchedReloadApplication = dispatch(reloadApplication());\n\n return Promise.resolve(dispatchedReloadApplication).then(() => {\n Cache.addItem(\"auth\", true);\n return dispatch(changePassword());\n });\n }\n\n dispatch(loginFailed(error.id));\n return dispatch(finishProgress());\n });\n };\n"],"mappings":";AACA,OAAOA,KAAP,MAAkB,2BAAlB;AACA,OAAOC,YAAP,MAAyB,8BAAzB;AAEA,SAASC,iBAAT,QAAkC,eAAlC;AAEA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,IAAT,QAAqB,oBAArB;AACA,SAASC,mBAAT,QAAoC,2BAApC;;AASA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD;EAAA,OAA8C;IACvEC,IAAI,EAAE,sBADiE;IAEvEC,OAAO,EAAEF;EAF8D,CAA9C;AAAA,CAApB;AAKP;AACA;AACA;;AACA,OAAO,IAAMG,eAAe,GAAG,SAAlBA,eAAkB;EAAA,OAA8B;IAC3DF,IAAI,EAAE;EADqD,CAA9B;AAAA,CAAxB;AAIP;AACA;AACA;;AACA,OAAO,IAAMG,YAAY,GAAG,SAAfA,YAAe;EAAA,OAA2B;IACrDH,IAAI,EAAE;EAD+C,CAA3B;AAAA,CAArB;AAIP;AACA;AACA;;AACA,OAAO,IAAMI,cAAc,GAAG,SAAjBA,cAAiB;EAAA,OAAmB,UAACC,QAAD,EAAWC,QAAX,EAAwB;IAAA;;IACvED,QAAQ,CAAC;MACPL,IAAI,EAAE;IADC,CAAD,CAAR;IAIA,IAAMO,OAAO,4BAAGD,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,oFAAG,sBAA4BC,KAA/B,2DAAG,uBAAmCC,KAAnD;IACA,IAAMC,YAAY,6BAAGN,QAAQ,GAAGE,MAAX,CAAkBC,QAArB,qFAAG,uBAA4BC,KAA/B,2DAAG,uBAAmCG,IAAxD;IACA,OAAOR,QAAQ,CACbT,IAAI,CAACC,mBAAD,EAAsB;MACxBgB,IAAI,EAAED,YAAY,GAAGA,YAAH,GAAkBN,QAAQ,GAAGE,MAAX,CAAkBC,QAD9B;MAExBE,KAAK,EAAEJ;IAFiB,CAAtB,CADS,CAAf;EAMD,CAb6B;AAAA,CAAvB;AAeP;AACA;;AACA,OAAO,IAAMO,KAAK,GAChB,SADWA,KACX,CAACC,QAAD,EAAmBC,QAAnB;EAAA,OACA,UAACX,QAAD,EAAc;IACZA,QAAQ,CAACX,aAAa,EAAd,CAAR;IAEA,OAAO,IAAIF,YAAJ,GACJsB,KADI,CACEC,QADF,EACYC,QADZ,EAEJC,IAFI,CAEC;MAAA,OAAMZ,QAAQ,CAACZ,iBAAiB,EAAlB,CAAd;IAAA,CAFD,EAGJwB,IAHI,CAGC,YAAM;MACV1B,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;MACAb,QAAQ,CAACF,YAAY,EAAb,CAAR;MAEA,OAAOE,QAAQ,CAACV,cAAc,EAAf,CAAf;IACD,CARI,EASJwB,KATI,CASE,UAACC,KAAD,EAAW;MAChB,IAAIA,KAAK,CAACC,EAAN,KAAa,8BAAjB,EAAiD;QAC/C,IAAMC,2BAA2B,GAAGjB,QAAQ,CAACZ,iBAAiB,EAAlB,CAA5C;QAEA,OAAO,SAAQ8B,OAAR,CAAgBD,2BAAhB,EAA6CL,IAA7C,CAAkD,YAAM;UAC7D1B,KAAK,CAAC2B,OAAN,CAAc,MAAd,EAAsB,IAAtB;UACA,OAAOb,QAAQ,CAACD,cAAc,EAAf,CAAf;QACD,CAHM,CAAP;MAID;;MAEDC,QAAQ,CAACP,WAAW,CAACsB,KAAK,CAACC,EAAP,CAAZ,CAAR;MACA,OAAOhB,QAAQ,CAACV,cAAc,EAAf,CAAf;IACD,CArBI,CAAP;EAsBD,CA1BD;AAAA,CADK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SignOut.js","names":["Authenticate","startProgress","finishProgress","resetModularUI","logoutSuccess","type","logout","dispatch","then"],"sources":["../../../src/redux/actions/SignOut.js"],"sourcesContent":["// @flow\nimport Authenticate from \"../../modularui/Authenticate\";\nimport { startProgress, finishProgress } from \"./ProgressIndicator\";\nimport { resetModularUI } from \"../_modularui/actions\";\n\nimport type { Dispatch, LogoutSuccessAction, ThunkAction } from \"../types\";\n\n/**\n * Send logout success action\n */\nexport const logoutSuccess = (): LogoutSuccessAction => ({\n type: \"AUTHENTICATION_LOGOUT\",\n});\n\n/**\n */\nexport const logout = (): ThunkAction => (dispatch: Dispatch) => {\n dispatch(startProgress());\n\n return new Authenticate().logout().then(() => {\n dispatch(resetModularUI());\n dispatch(logoutSuccess());\n return dispatch(finishProgress());\n });\n};\n"],"mappings":"AACA,OAAOA,YAAP,MAAyB,8BAAzB;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,qBAA9C;AACA,SAASC,cAAT,QAA+B,uBAA/B;;AAIA;AACA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAA4B;IACvDC,IAAI,EAAE;EADiD,CAA5B;AAAA,CAAtB;AAIP;AACA;;AACA,OAAO,IAAMC,MAAM,GAAG,SAATA,MAAS;EAAA,OAAmB,UAACC,QAAD,EAAwB;IAC/DA,QAAQ,CAACN,aAAa,EAAd,CAAR;IAEA,OAAO,IAAID,YAAJ,GAAmBM,MAAnB,GAA4BE,IAA5B,CAAiC,YAAM;MAC5CD,QAAQ,CAACJ,cAAc,EAAf,CAAR;MACAI,QAAQ,CAACH,aAAa,EAAd,CAAR;MACA,OAAOG,QAAQ,CAACL,cAAc,EAAf,CAAf;IACD,CAJM,CAAP;EAKD,CARqB;AAAA,CAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/redux/actions/index.js"],"sourcesContent":["// @flow\nexport * from \"./Application\";\nexport * from \"./Authorization\";\nexport * from \"./Error\";\nexport * from \"./Form\";\nexport * from \"./FormAttributeSet\";\nexport * from \"./FormAttributeSetRepeatable\";\nexport * from \"./FormAutosave\";\nexport * from \"./FormAutosubmit\";\nexport * from \"./FormValidations\";\nexport * from \"./Modals\";\nexport * from \"./Notification\";\nexport * from \"./Preferences\";\nexport * from \"./ProgressIndicator\";\nexport * from \"./SignIn\";\nexport * from \"./SignOut\";\n"],"mappings":"AACA,cAAc,eAAd;AACA,cAAc,iBAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,oBAAd;AACA,cAAc,8BAAd;AACA,cAAc,gBAAd;AACA,cAAc,kBAAd;AACA,cAAc,mBAAd;AACA,cAAc,UAAd;AACA,cAAc,gBAAd;AACA,cAAc,eAAd;AACA,cAAc,qBAAd;AACA,cAAc,UAAd;AACA,cAAc,WAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Application.js","names":["modularui","connectApplication","propName"],"sources":["../../../src/redux/connectors/Application.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectApplication: ModularUIConnector = modularui(\n \"Application\",\n \"/\",\n {\n propName: \"application\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,kBAAsC,GAAGD,SAAS,CAC7D,aAD6D,EAE7D,GAF6D,EAG7D;EACEE,QAAQ,EAAE;AADZ,CAH6D,CAAxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Breadcrumb.js","names":["connect","getActiveModels","mapStateToProps","state","items","connectBreadcrumb"],"sources":["../../../src/redux/connectors/Breadcrumb.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { getActiveModels } from \"../_modularui/selectors\";\n\nimport type { ReduxState } from \"../types\";\nimport type Href from \"../../models/href/Href\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n items: Array<{ key: string, href: Href, label: string, type: string }>,\n};\ntype Props = { ...StateProps, ... };\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n items: getActiveModels(state),\n});\n\n/**\n */\nexport const connectBreadcrumb: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n _\n>(mapStateToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,eAAT,QAAgC,yBAAhC;;AAWA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,KAAK,EAAEH,eAAe,CAACE,KAAD;EADoC,CAApC;AAAA,CAAxB;AAIA;AACA;;;AACA,OAAO,IAAME,iBAAqC,GAAGL,OAAO,CAO1DE,eAP0D,CAArD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"CaseView.js","names":["modularui","connectCaseView","match","url","propName"],"sources":["../../../src/redux/connectors/CaseView.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectCaseView: ModularUIConnector = modularui(\n \"CaseView\",\n ({ match }) => match.url,\n {\n propName: \"caseview\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,eAAmC,GAAGD,SAAS,CAC1D,UAD0D,EAE1D;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF0D,EAG1D;EACEC,QAAQ,EAAE;AADZ,CAH0D,CAArD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ConceptDetail.js","names":["modularui","connectConceptDetail","concept","location","search","propName"],"sources":["../../../src/redux/connectors/ConceptDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectConceptDetail: ModularUIConnector = modularui(\n \"ConceptDetail\",\n ({ concept, location }) => `/concepts/${concept}${location.search}`,\n { propName: \"conceptDetail\" }\n);\n"],"mappings":";AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;EAAA;;EAAA,IAAGE,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,8DAAwCD,OAAxC,kBAAkDC,QAAQ,CAACC,MAA3D;AAAA,CAF+D,EAG/D;EAAEC,QAAQ,EAAE;AAAZ,CAH+D,CAA1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ContentBrowser.js","names":["modularui","connectContentBrowser","href","propName"],"sources":["../../../src/redux/connectors/ContentBrowser.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentBrowser: ModularUIConnector = modularui(\n \"ContentBrowser\",\n ({ href }) => href,\n {\n propName: \"contentindex\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,qBAAyC,GAAGD,SAAS,CAChE,gBADgE,EAEhE;EAAA,IAAGE,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAFgE,EAGhE;EACEC,QAAQ,EAAE;AADZ,CAHgE,CAA3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ContentDetail.js","names":["modularui","connectContentDetail","content","location","decodeURIComponent","search","propName"],"sources":["../../../src/redux/connectors/ContentDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetail: ModularUIConnector = modularui(\n \"ContentDetail\",\n ({ content, location }) =>\n `/content/${decodeURIComponent(content)}${location.search}`,\n { propName: \"contentTOC\" }\n);\n"],"mappings":";AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,oBAAwC,GAAGD,SAAS,CAC/D,eAD+D,EAE/D;EAAA;;EAAA,IAAGE,OAAH,QAAGA,OAAH;EAAA,IAAYC,QAAZ,QAAYA,QAAZ;EAAA,6DACcC,kBAAkB,CAACF,OAAD,CADhC,kBAC4CC,QAAQ,CAACE,MADrD;AAAA,CAF+D,EAI/D;EAAEC,QAAQ,EAAE;AAAZ,CAJ+D,CAA1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ContentDetailSection.js","names":["Href","modularui","connectContentDetailSection","sectioncontent","section","entryDate","decodeURIComponent","addParameter","propName"],"sources":["../../../src/redux/connectors/ContentDetailSection.js"],"sourcesContent":["// @flow\nimport Href from \"../../models/href/Href\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectContentDetailSection: ModularUIConnector = modularui(\n \"ContentDetailSection\",\n ({ sectioncontent, section, entryDate }) =>\n new Href(\n `/content/${decodeURIComponent(sectioncontent)}/${section}`\n ).addParameter(\"entryDate\", entryDate),\n { propName: \"content\" }\n);\n"],"mappings":";AACA,OAAOA,IAAP,MAAiB,wBAAjB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,2BAA+C,GAAGD,SAAS,CACtE,sBADsE,EAEtE;EAAA;;EAAA,IAAGE,cAAH,QAAGA,cAAH;EAAA,IAAmBC,OAAnB,QAAmBA,OAAnB;EAAA,IAA4BC,SAA5B,QAA4BA,SAA5B;EAAA,OACE,IAAIL,IAAJ,uDACcM,kBAAkB,CAACH,cAAD,CADhC,uBACoDC,OADpD,GAEEG,YAFF,CAEe,WAFf,EAE4BF,SAF5B,CADF;AAAA,CAFsE,EAMtE;EAAEG,QAAQ,EAAE;AAAZ,CANsE,CAAjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Form.js","names":["compose","connect","modularui","HTTP_METHODS","getSetting","cancelForm","previousObject","showFormNotification","Href","mapStateToProps","state","ownProps","isModal","router","location","modal","mapDispatchToProps","onPrevious","onCancel","reduxConnectedForm","moduiConnectedForm","href","formHref","pathname","search","addParameter","propName","method","POST","connectForm"],"sources":["../../../src/redux/connectors/Form.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\n\nimport { HTTP_METHODS } from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\nimport { cancelForm, previousObject } from \"../actions/Form\";\nimport { showFormNotification } from \"../actions/Notification\";\n\nimport Href from \"../../models/href/Href\";\n\nimport type { AbstractComponent } from \"react\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type { ContextRouter } from \"react-router\";\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type {\n ModularUIConnector,\n UpdateModelAction,\n} from \"../_modularui/types\";\n\ntype OwnProps = {\n ...?ContextRouter,\n href?: Href,\n isModal?: boolean,\n redirectTo?: string,\n};\n\ntype StateProps = {\n isModal: boolean,\n};\n\ntype DispatchProps = {\n onPrevious: (form: FormModel) => UpdateModelAction,\n onCancel: (form: FormModel) => ThunkAction,\n showFormNotification: (form: FormModel) => ThunkAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (\n state: ReduxState,\n ownProps: OwnProps\n): StateProps => ({\n isModal: state.router.location?.state?.modal || ownProps.isModal || false,\n});\n\nconst mapDispatchToProps: DispatchProps = {\n onPrevious: previousObject,\n onCancel: cancelForm,\n showFormNotification,\n};\n\nconst reduxConnectedForm = connect<Props, OwnProps, StateProps, _, _, _>(\n mapStateToProps,\n mapDispatchToProps\n);\n\nconst moduiConnectedForm: ModularUIConnector = modularui(\n \"Form\",\n ({ href, location }) => {\n const formHref = href || new Href(`${location.pathname}${location.search}`);\n\n if (getSetting(\"ALWAYS_COMMIT_FORM\")) {\n return formHref;\n }\n\n return formHref.addParameter(\"commit\", \"false\");\n },\n { propName: \"form\", method: HTTP_METHODS.POST }\n);\n\n/**\n */\nexport const connectForm: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n moduiConnectedForm,\n reduxConnectedForm\n);\n"],"mappings":";AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AAEA,SAASC,YAAT,QAA6B,2BAA7B;AACA,SAASC,UAAT,QAA2B,0BAA3B;AAEA,SAASC,UAAT,EAAqBC,cAArB,QAA2C,iBAA3C;AACA,SAASC,oBAAT,QAAqC,yBAArC;AAEA,OAAOC,IAAP,MAAiB,wBAAjB;;AAkCA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CACtBC,KADsB,EAEtBC,QAFsB;EAAA;;EAAA,OAGN;IAChBC,OAAO,EAAE,0BAAAF,KAAK,CAACG,MAAN,CAAaC,QAAb,0GAAuBJ,KAAvB,kFAA8BK,KAA9B,KAAuCJ,QAAQ,CAACC,OAAhD,IAA2D;EADpD,CAHM;AAAA,CAAxB;;AAOA,IAAMI,kBAAiC,GAAG;EACxCC,UAAU,EAAEX,cAD4B;EAExCY,QAAQ,EAAEb,UAF8B;EAGxCE,oBAAoB,EAApBA;AAHwC,CAA1C;AAMA,IAAMY,kBAAkB,GAAGlB,OAAO,CAChCQ,eADgC,EAEhCO,kBAFgC,CAAlC;AAKA,IAAMI,kBAAsC,GAAGlB,SAAS,CACtD,MADsD,EAEtD,gBAAwB;EAAA;;EAAA,IAArBmB,IAAqB,QAArBA,IAAqB;EAAA,IAAfP,QAAe,QAAfA,QAAe;EACtB,IAAMQ,QAAQ,GAAGD,IAAI,IAAI,IAAIb,IAAJ,8CAAYM,QAAQ,CAACS,QAArB,kBAAgCT,QAAQ,CAACU,MAAzC,EAAzB;;EAEA,IAAIpB,UAAU,CAAC,oBAAD,CAAd,EAAsC;IACpC,OAAOkB,QAAP;EACD;;EAED,OAAOA,QAAQ,CAACG,YAAT,CAAsB,QAAtB,EAAgC,OAAhC,CAAP;AACD,CAVqD,EAWtD;EAAEC,QAAQ,EAAE,MAAZ;EAAoBC,MAAM,EAAExB,YAAY,CAACyB;AAAzC,CAXsD,CAAxD;AAcA;AACA;;AACA,OAAO,IAAMC,WAEmB,GAAG7B,OAAO,CACxCoB,kBADwC,EAExCD,kBAFwC,CAFnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"FormAttributeSet.js","names":["connect","updateFormAttribute","addRepeatableAttributeSet","cancelRepeatableAttributeSet","removeRepeatableAttributeSet","mapDispatchToProps","dispatch","ownProps","onAttributeChange","attribute","value","options","autosubmit","autosave","form","object","onAddAttributeSetClick","onCancelAttributeSetClick","formObject","onRemoveAttributeSetClick","connectFormAttributeSet"],"sources":["../../../src/redux/connectors/FormAttributeSet.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { updateFormAttribute } from \"../actions/FormAttributeSet\";\nimport {\n addRepeatableAttributeSet,\n cancelRepeatableAttributeSet,\n removeRepeatableAttributeSet,\n} from \"../actions/FormAttributeSetRepeatable\";\n\nimport type { ThunkAction, UpdateFormOptions } from \"../types\";\nimport type { UpdateModelAction } from \"../_modularui/types\";\nimport type { AttributeType } from \"../../models/types\";\nimport type FormModel from \"../../models/form/FormModel\";\nimport type FormObjectModel from \"../../models/form/FormObjectModel\";\nimport type { DispatchAPI } from \"redux\";\nimport type { ComponentType } from \"react\";\n\ntype Dispatch = DispatchAPI<UpdateModelAction> & DispatchAPI<ThunkAction>;\n\ntype OwnProps = {\n form: FormModel,\n object: FormObjectModel,\n formLayout?: \"vertical\" | \"horizontal\" | \"compact\",\n autosubmit?: boolean,\n autosave?: boolean,\n};\n\ntype DispatchProps = {\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions\n ) => ThunkAction,\n onAddAttributeSetClick: () => UpdateModelAction,\n onCancelAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n onRemoveAttributeSetClick: (formObject: FormObjectModel) => UpdateModelAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps = (\n dispatch: Dispatch,\n ownProps: OwnProps\n): DispatchProps => ({\n onAttributeChange: (\n attribute: AttributeType,\n value: string,\n options: UpdateFormOptions = {\n autosubmit: ownProps.autosubmit || false,\n autosave: ownProps.autosave || false,\n }\n ) =>\n dispatch(\n updateFormAttribute(\n ownProps.form,\n ownProps.object,\n attribute,\n value,\n options\n )\n ),\n onAddAttributeSetClick: () =>\n dispatch(addRepeatableAttributeSet(ownProps.form)),\n onCancelAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(cancelRepeatableAttributeSet(ownProps.form, formObject)),\n onRemoveAttributeSetClick: (formObject: FormObjectModel) =>\n dispatch(removeRepeatableAttributeSet(ownProps.form, formObject)),\n});\n\n/**\n */\nexport const connectFormAttributeSet: ComponentType<any> = connect<\n Props,\n OwnProps,\n _,\n DispatchProps,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,6BAApC;AACA,SACEC,yBADF,EAEEC,4BAFF,EAGEC,4BAHF,QAIO,uCAJP;;AAwCA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CACzBC,QADyB,EAEzBC,QAFyB;EAAA,OAGN;IACnBC,iBAAiB,EAAE,2BACjBC,SADiB,EAEjBC,KAFiB;MAAA,IAGjBC,OAHiB,uEAGY;QAC3BC,UAAU,EAAEL,QAAQ,CAACK,UAAT,IAAuB,KADR;QAE3BC,QAAQ,EAAEN,QAAQ,CAACM,QAAT,IAAqB;MAFJ,CAHZ;MAAA,OAQjBP,QAAQ,CACNL,mBAAmB,CACjBM,QAAQ,CAACO,IADQ,EAEjBP,QAAQ,CAACQ,MAFQ,EAGjBN,SAHiB,EAIjBC,KAJiB,EAKjBC,OALiB,CADb,CARS;IAAA,CADA;IAkBnBK,sBAAsB,EAAE;MAAA,OACtBV,QAAQ,CAACJ,yBAAyB,CAACK,QAAQ,CAACO,IAAV,CAA1B,CADc;IAAA,CAlBL;IAoBnBG,yBAAyB,EAAE,mCAACC,UAAD;MAAA,OACzBZ,QAAQ,CAACH,4BAA4B,CAACI,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;IAAA,CApBR;IAsBnBC,yBAAyB,EAAE,mCAACD,UAAD;MAAA,OACzBZ,QAAQ,CAACF,4BAA4B,CAACG,QAAQ,CAACO,IAAV,EAAgBI,UAAhB,CAA7B,CADiB;IAAA;EAtBR,CAHM;AAAA,CAA3B;AA6BA;AACA;;;AACA,OAAO,IAAME,uBAA2C,GAAGpB,OAAO,CAOhE,IAPgE,EAO1DK,kBAP0D,CAA3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ListDetail.js","names":["modularui","ListDetailModel","connectListDetail","href","propName","targetModel"],"sources":["../../../src/redux/connectors/ListDetail.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport ListDetailModel from \"../../models/list/ListDetailModel\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectListDetail: ModularUIConnector = modularui(\n \"ListDetail\",\n ({ href }) => href,\n {\n propName: \"detail\",\n targetModel: ListDetailModel,\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,eAAP,MAA4B,mCAA5B;;AAIA;AACA;AACA,OAAO,IAAMC,iBAAqC,GAAGF,SAAS,CAC5D,YAD4D,EAE5D;EAAA,IAAGG,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAF4D,EAG5D;EACEC,QAAQ,EAAE,QADZ;EAEEC,WAAW,EAAEJ;AAFf,CAH4D,CAAvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Modal.js","names":["connect","showModal","closeModal","mapStateToProps","state","visibleModal","modals","modal","visible","visibleModalKey","key","visibleModalSize","size","mapDispatchToProps","onShowModal","onCloseModal","connectModal"],"sources":["../../../src/redux/connectors/Modal.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { showModal, closeModal } from \"../actions/Modals\";\n\nimport type { ReduxState, ShowModalAction, CloseModalAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n visibleModalKey: string | null,\n visibleModalSize?: string | null,\n};\n\ntype DispatchProps = {\n onShowModal: (modalKey: string) => ShowModalAction,\n onCloseModal: (modalKey: string) => CloseModalAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const visibleModal = state.modals.modals.find((modal) => modal.visible);\n\n return {\n visibleModalKey: visibleModal ? visibleModal.key : null,\n visibleModalSize: visibleModal ? visibleModal.size : null,\n };\n};\n\nconst mapDispatchToProps = {\n onShowModal: showModal,\n onCloseModal: closeModal,\n};\n\n/**\n */\nexport const connectModal: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":";AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,mBAAtC;;AAoBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EAAA;;EACzD,IAAMC,YAAY,GAAG,iCAAAD,KAAK,CAACE,MAAN,CAAaA,MAAb,iBAAyB,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACC,OAAjB;EAAA,CAAzB,CAArB;;EAEA,OAAO;IACLC,eAAe,EAAEJ,YAAY,GAAGA,YAAY,CAACK,GAAhB,GAAsB,IAD9C;IAELC,gBAAgB,EAAEN,YAAY,GAAGA,YAAY,CAACO,IAAhB,GAAuB;EAFhD,CAAP;AAID,CAPD;;AASA,IAAMC,kBAAkB,GAAG;EACzBC,WAAW,EAAEb,SADY;EAEzBc,YAAY,EAAEb;AAFW,CAA3B;AAKA;AACA;;AACA,OAAO,IAAMc,YAAgC,GAAGhB,OAAO,CAOrDG,eAPqD,EAOpCU,kBAPoC,CAAhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ModelCatalog.js","names":["modularui","connectModelCatalog","match","url","propName"],"sources":["../../../src/redux/connectors/ModelCatalog.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectModelCatalog: ModularUIConnector = modularui(\n \"ModelCatalog\",\n ({ match }) => match.url,\n {\n propName: \"modelcatalog\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,mBAAuC,GAAGD,SAAS,CAC9D,cAD8D,EAE9D;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAF8D,EAG9D;EACEC,QAAQ,EAAE;AADZ,CAH8D,CAAzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["connect","dismissNotification","mapStateToProps","state","messageType","notification","message","error","render","mapDispatchToProps","onDismiss","connectNotification"],"sources":["../../../src/redux/connectors/Notification.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { dismissNotification } from \"../actions/Notification\";\n\nimport type { ReduxState, DismissNotificationAction } from \"../types\";\nimport type { MessageObject } from \"../../i18n/types\";\nimport type ErrorResponse from \"../../models/error/ErrorResponse\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n messageType: string | null,\n message: MessageObject | null,\n error: ?ErrorResponse,\n render: boolean,\n};\n\ntype DispatchProps = {\n onDismiss: () => DismissNotificationAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => ({\n messageType: state.notification.messageType,\n message: state.notification.message,\n error: state.notification.error,\n render: state.notification.render,\n});\n\nconst mapDispatchToProps = {\n onDismiss: dismissNotification,\n};\n\n/**\n */\nexport const connectNotification: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,mBAAT,QAAoC,yBAApC;;AAuBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAoC;IAC1DC,WAAW,EAAED,KAAK,CAACE,YAAN,CAAmBD,WAD0B;IAE1DE,OAAO,EAAEH,KAAK,CAACE,YAAN,CAAmBC,OAF8B;IAG1DC,KAAK,EAAEJ,KAAK,CAACE,YAAN,CAAmBE,KAHgC;IAI1DC,MAAM,EAAEL,KAAK,CAACE,YAAN,CAAmBG;EAJ+B,CAApC;AAAA,CAAxB;;AAOA,IAAMC,kBAAkB,GAAG;EACzBC,SAAS,EAAET;AADc,CAA3B;AAIA;AACA;;AACA,OAAO,IAAMU,mBAAuC,GAAGX,OAAO,CAO5DE,eAP4D,EAO3CO,kBAP2C,CAAvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"PanelRenderer.js","names":["modularui","Href","connectPanel","href","match","querystring","Error","panelHref","url","isExact","addParametersFromString","propName"],"sources":["../../../src/redux/connectors/PanelRenderer.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\nimport Href from \"../../models/href/Href\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectPanel: ModularUIConnector = modularui(\n \"PanelRenderer\",\n ({ href, match, querystring = \"\" }) => {\n if (!href && !match) {\n throw new Error(\n \"Cannot determine panel url because of missing href and match\"\n );\n }\n\n const panelHref = href ? new Href(href) : new Href(match.url);\n\n if (match && match.isExact) {\n panelHref.addParametersFromString(querystring);\n }\n\n return panelHref;\n },\n {\n propName: \"panel\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;AACA,OAAOC,IAAP,MAAiB,wBAAjB;;AAIA;AACA;AACA,OAAO,IAAMC,YAAgC,GAAGF,SAAS,CACvD,eADuD,EAEvD,gBAAuC;EAAA,IAApCG,IAAoC,QAApCA,IAAoC;EAAA,IAA9BC,KAA8B,QAA9BA,KAA8B;EAAA,4BAAvBC,WAAuB;EAAA,IAAvBA,WAAuB,iCAAT,EAAS;;EACrC,IAAI,CAACF,IAAD,IAAS,CAACC,KAAd,EAAqB;IACnB,MAAM,IAAIE,KAAJ,CACJ,8DADI,CAAN;EAGD;;EAED,IAAMC,SAAS,GAAGJ,IAAI,GAAG,IAAIF,IAAJ,CAASE,IAAT,CAAH,GAAoB,IAAIF,IAAJ,CAASG,KAAK,CAACI,GAAf,CAA1C;;EAEA,IAAIJ,KAAK,IAAIA,KAAK,CAACK,OAAnB,EAA4B;IAC1BF,SAAS,CAACG,uBAAV,CAAkCL,WAAlC;EACD;;EAED,OAAOE,SAAP;AACD,CAhBsD,EAiBvD;EACEI,QAAQ,EAAE;AADZ,CAjBuD,CAAlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Preferences.js","names":["connect","getPreferences","preferences","preferenceName","requestedPreferences","Array","isArray","prefs","forEach","prefName","connectPreferences","WrappedComponent","mapStateToProps","state"],"sources":["../../../src/redux/connectors/Preferences.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { AbstractComponent, ComponentType } from \"react\";\nimport type { ReduxState, PreferenceValue } from \"../types\";\n\ntype StateProps = {\n [prefName: string]: PreferenceValue,\n};\n\ntype OwnProps = {};\n\ntype Props = {\n ...StateProps,\n ...OwnProps,\n dispatch: void,\n};\n\n/**\n */\nconst getPreferences = (preferences, preferenceName) => {\n const requestedPreferences = Array.isArray(preferenceName)\n ? preferenceName\n : [preferenceName];\n\n const prefs: $Shape<StateProps> = {};\n\n requestedPreferences.forEach((prefName) => {\n prefs[prefName] = preferences[prefName];\n });\n\n return prefs;\n};\n\n/**\n * Injects a preference by name into a react component\n */\nexport const connectPreferences = (\n WrappedComponent: AbstractComponent<any>,\n preferenceName: string | Array<string>\n): ComponentType<any> => {\n /**\n */\n const mapStateToProps = (state: ReduxState): StateProps =>\n getPreferences(state.preferences, preferenceName);\n\n return connect<Props, OwnProps, _, _, _, _>(mapStateToProps)(\n WrappedComponent\n );\n};\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAiBA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,WAAD,EAAcC,cAAd,EAAiC;EACtD,IAAMC,oBAAoB,GAAGC,KAAK,CAACC,OAAN,CAAcH,cAAd,IACzBA,cADyB,GAEzB,CAACA,cAAD,CAFJ;EAIA,IAAMI,KAAyB,GAAG,EAAlC;EAEAH,oBAAoB,CAACI,OAArB,CAA6B,UAACC,QAAD,EAAc;IACzCF,KAAK,CAACE,QAAD,CAAL,GAAkBP,WAAW,CAACO,QAAD,CAA7B;EACD,CAFD;EAIA,OAAOF,KAAP;AACD,CAZD;AAcA;AACA;AACA;;;AACA,OAAO,IAAMG,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,gBADgC,EAEhCR,cAFgC,EAGT;EACvB;AACF;EACE,IAAMS,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;IAAA,OACtBZ,cAAc,CAACY,KAAK,CAACX,WAAP,EAAoBC,cAApB,CADQ;EAAA,CAAxB;;EAGA,OAAOH,OAAO,CAA8BY,eAA9B,CAAP,CACLD,gBADK,CAAP;AAGD,CAZM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Progress.js","names":["connect","finishProgress","startProgress","handleError","mapDispatchToProps","onStartProgress","onFinishProgress","onError","connectProgress"],"sources":["../../../src/redux/connectors/Progress.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\nimport { finishProgress, startProgress } from \"../actions/ProgressIndicator\";\nimport { handleError } from \"../actions/Error\";\n\nimport type {\n StartProgressAction,\n FinishProgressAction,\n ThunkAction,\n} from \"../types\";\nimport type FetchException from \"../../exceptions/FetchException\";\nimport type { ComponentType } from \"react\";\n\ntype DispatchProps = {\n onStartProgress: () => StartProgressAction,\n onFinishProgress: () => FinishProgressAction,\n onError: (error: Error | FetchException) => ThunkAction,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onStartProgress: startProgress,\n onFinishProgress: finishProgress,\n onError: handleError,\n};\n\n/**\n */\nexport const connectProgress: ComponentType<any> = connect<\n DispatchProps,\n {},\n _,\n _,\n _,\n _\n>(null, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AACA,SAASC,cAAT,EAAyBC,aAAzB,QAA8C,8BAA9C;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAgBA,IAAMC,kBAAiC,GAAG;EACxCC,eAAe,EAAEH,aADuB;EAExCI,gBAAgB,EAAEL,cAFsB;EAGxCM,OAAO,EAAEJ;AAH+B,CAA1C;AAMA;AACA;;AACA,OAAO,IAAMK,eAAmC,GAAGR,OAAO,CAOxD,IAPwD,EAOlDI,kBAPkD,CAAnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ProgressIndicator.js","names":["connect","mapStateToProps","state","count","progressindicator","timestamp","percentComplete","connectProgressIndicator"],"sources":["../../../src/redux/connectors/ProgressIndicator.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport type { ReduxState } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n count: number,\n timestamp: number,\n percentComplete: number,\n};\n\ntype Props = {\n ...StateProps,\n ...\n};\n\n/**\n */\nconst mapStateToProps = (state: ReduxState) => ({\n count: state.progressindicator.count,\n timestamp: state.progressindicator.timestamp,\n percentComplete: state.progressindicator.percentComplete,\n});\n\n/**\n */\nexport const connectProgressIndicator: ComponentType<any> = connect<\n Props,\n {},\n _,\n _,\n _,\n void\n>(mapStateToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;;AAgBA;AACA;AACA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,KAAK,EAAED,KAAK,CAACE,iBAAN,CAAwBD,KADe;IAE9CE,SAAS,EAAEH,KAAK,CAACE,iBAAN,CAAwBC,SAFW;IAG9CC,eAAe,EAAEJ,KAAK,CAACE,iBAAN,CAAwBE;EAHK,CAAxB;AAAA,CAAxB;AAMA;AACA;;;AACA,OAAO,IAAMC,wBAA4C,GAAGP,OAAO,CAOjEC,eAPiE,CAA5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"QuickSearch.js","names":["compose","connect","modularui","push","Href","mapDispatchToProps","connectQuickSearch","href","propName"],"sources":["../../../src/redux/connectors/QuickSearch.js"],"sourcesContent":["// @flow\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\n\nimport modularui from \"../_modularui/connector\";\nimport { push } from \"../_router/actions\";\n\nimport type { PushAction } from \"../_router/types\";\nimport type { LocationShape } from \"react-router\";\nimport type { AbstractComponent } from \"react\";\nimport Href from \"../../models/href/Href\";\n\ntype OwnProps = { href: Href };\ntype DispatchProps = {\n push: (location: LocationShape | string, state?: { ... }) => PushAction,\n};\n\ntype Props = {\n ...OwnProps,\n ...DispatchProps,\n};\n\nconst mapDispatchToProps: DispatchProps = {\n push,\n};\n\n/**\n */\nexport const connectQuickSearch: (\n Component: AbstractComponent<Props>\n) => AbstractComponent<OwnProps> = compose(\n connect<Props, OwnProps, _, _, _, _>(null, mapDispatchToProps),\n modularui(\"QuickSearch\", ({ href }) => href, {\n propName: \"search\",\n })\n);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,OAAxB;AACA,SAASC,OAAT,QAAwB,aAAxB;AAEA,OAAOC,SAAP,MAAsB,yBAAtB;AACA,SAASC,IAAT,QAAqB,oBAArB;AAKA,OAAOC,IAAP,MAAiB,wBAAjB;AAYA,IAAMC,kBAAiC,GAAG;EACxCF,IAAI,EAAJA;AADwC,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMG,kBAEmB,GAAGN,OAAO,CACxCC,OAAO,CAA8B,IAA9B,EAAoCI,kBAApC,CADiC,EAExCH,SAAS,CAAC,aAAD,EAAgB;EAAA,IAAGK,IAAH,QAAGA,IAAH;EAAA,OAAcA,IAAd;AAAA,CAAhB,EAAoC;EAC3CC,QAAQ,EAAE;AADiC,CAApC,CAF+B,CAFnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SignIn.js","names":["connect","login","getApplication","UserServicesModel","mapStateToProps","state","application","isAuthenticated","auth","userServices","isLoggedIn","errorMessage","error","mapDispatchToProps","onSubmit","connectSignIn"],"sources":["../../../src/redux/connectors/SignIn.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { login } from \"../actions/SignIn\";\n\nimport { getApplication } from \"../_modularui/selectors\";\n\nimport UserServicesModel from \"../../models/user/UserServicesModel\";\n\nimport type { ReduxState, ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n errorMessage: ?string,\n};\n\ntype DispatchProps = {\n onSubmit: (username: string, password: string) => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state: ReduxState): StateProps => {\n const application = getApplication(state);\n\n return {\n isAuthenticated:\n state.auth.isAuthenticated &&\n application?.userServices instanceof UserServicesModel &&\n application.userServices.isLoggedIn,\n errorMessage: state.auth.error,\n };\n};\n\nconst mapDispatchToProps: DispatchProps = {\n onSubmit: login,\n};\n\n/**\n */\nexport const connectSignIn: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,KAAT,QAAsB,mBAAtB;AAEA,SAASC,cAAT,QAA+B,yBAA/B;AAEA,OAAOC,iBAAP,MAA8B,qCAA9B;;AAmBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD,EAAmC;EACzD,IAAMC,WAAW,GAAGJ,cAAc,CAACG,KAAD,CAAlC;EAEA,OAAO;IACLE,eAAe,EACbF,KAAK,CAACG,IAAN,CAAWD,eAAX,IACA,CAAAD,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEG,YAAb,aAAqCN,iBADrC,IAEAG,WAAW,CAACG,YAAZ,CAAyBC,UAJtB;IAKLC,YAAY,EAAEN,KAAK,CAACG,IAAN,CAAWI;EALpB,CAAP;AAOD,CAVD;;AAYA,IAAMC,kBAAiC,GAAG;EACxCC,QAAQ,EAAEb;AAD8B,CAA1C;AAIA;AACA;;AACA,OAAO,IAAMc,aAAiC,GAAGf,OAAO,CAOtDI,eAPsD,EAOrCS,kBAPqC,CAAjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"SignOut.js","names":["connect","logout","mapStateToProps","state","isAuthenticated","auth","mapDispatchToProps","doLogout","connectSignOut"],"sources":["../../../src/redux/connectors/SignOut.js"],"sourcesContent":["// @flow\nimport { connect } from \"react-redux\";\n\nimport { logout } from \"../actions/SignOut\";\n\nimport type { ThunkAction } from \"../types\";\nimport type { ComponentType } from \"react\";\n\ntype StateProps = {\n isAuthenticated: boolean,\n};\n\ntype DispatchProps = {\n doLogout: () => ThunkAction,\n};\n\ntype Props = {\n ...StateProps,\n ...DispatchProps,\n};\n\nconst mapStateToProps = (state): StateProps => ({\n isAuthenticated: state.auth.isAuthenticated,\n});\n\nconst mapDispatchToProps = { doLogout: logout };\n\n/**\n */\nexport const connectSignOut: ComponentType<any> = connect<\n Props,\n {},\n StateProps,\n _,\n _,\n _\n>(mapStateToProps, mapDispatchToProps);\n"],"mappings":"AACA,SAASA,OAAT,QAAwB,aAAxB;AAEA,SAASC,MAAT,QAAuB,oBAAvB;;AAkBA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB,CAACC,KAAD;EAAA,OAAwB;IAC9CC,eAAe,EAAED,KAAK,CAACE,IAAN,CAAWD;EADkB,CAAxB;AAAA,CAAxB;;AAIA,IAAME,kBAAkB,GAAG;EAAEC,QAAQ,EAAEN;AAAZ,CAA3B;AAEA;AACA;;AACA,OAAO,IAAMO,cAAkC,GAAGR,OAAO,CAOvDE,eAPuD,EAOtCI,kBAPsC,CAAlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Tab.js","names":["modularui","connectTab","match","url","propName"],"sources":["../../../src/redux/connectors/Tab.js"],"sourcesContent":["// @flow\nimport modularui from \"../_modularui/connector\";\n\nimport type { ModularUIConnector } from \"../_modularui/types\";\n\n/**\n */\nexport const connectTab: ModularUIConnector = modularui(\n \"Tab\",\n ({ match }) => match.url,\n {\n propName: \"tab\",\n }\n);\n"],"mappings":"AACA,OAAOA,SAAP,MAAsB,yBAAtB;;AAIA;AACA;AACA,OAAO,IAAMC,UAA8B,GAAGD,SAAS,CACrD,KADqD,EAErD;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,GAArB;AAAA,CAFqD,EAGrD;EACEC,QAAQ,EAAE;AADZ,CAHqD,CAAhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["connectApplication","connectBreadcrumb","connectCaseView","connectConceptDetail","connectContentBrowser","connectContentDetail","connectContentDetailSection","connectForm","connectFormAttributeSet","connectListDetail","connectModal","connectModelCatalog","connectNotification","connectPanel","connectPreferences","connectProgress","connectProgressIndicator","connectQuickSearch","connectSignIn","connectSignOut","connectTab"],"sources":["../../../src/redux/connectors/index.js"],"sourcesContent":["// @flow\nexport { connectApplication } from \"./Application\";\nexport { connectBreadcrumb } from \"./Breadcrumb\";\nexport { connectCaseView } from \"./CaseView\";\nexport { connectConceptDetail } from \"./ConceptDetail\";\nexport { connectContentBrowser } from \"./ContentBrowser\";\nexport { connectContentDetail } from \"./ContentDetail\";\nexport { connectContentDetailSection } from \"./ContentDetailSection\";\nexport { connectForm } from \"./Form\";\nexport { connectFormAttributeSet } from \"./FormAttributeSet\";\nexport { connectListDetail } from \"./ListDetail\";\nexport { connectModal } from \"./Modal\";\nexport { connectModelCatalog } from \"./ModelCatalog\";\nexport { connectNotification } from \"./Notification\";\nexport { connectPanel } from \"./PanelRenderer\";\nexport { connectPreferences } from \"./Preferences\";\nexport { connectProgress } from \"./Progress\";\nexport { connectProgressIndicator } from \"./ProgressIndicator\";\nexport { connectQuickSearch } from \"./QuickSearch\";\nexport { connectSignIn } from \"./SignIn\";\nexport { connectSignOut } from \"./SignOut\";\nexport { connectTab } from \"./Tab\";\n"],"mappings":"AACA,SAASA,kBAAT,QAAmC,eAAnC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,qBAAT,QAAsC,kBAAtC;AACA,SAASC,oBAAT,QAAqC,iBAArC;AACA,SAASC,2BAAT,QAA4C,wBAA5C;AACA,SAASC,WAAT,QAA4B,QAA5B;AACA,SAASC,uBAAT,QAAwC,oBAAxC;AACA,SAASC,iBAAT,QAAkC,cAAlC;AACA,SAASC,YAAT,QAA6B,SAA7B;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,mBAAT,QAAoC,gBAApC;AACA,SAASC,YAAT,QAA6B,iBAA7B;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,eAAT,QAAgC,YAAhC;AACA,SAASC,wBAAT,QAAyC,qBAAzC;AACA,SAASC,kBAAT,QAAmC,eAAnC;AACA,SAASC,aAAT,QAA8B,UAA9B;AACA,SAASC,cAAT,QAA+B,WAA/B;AACA,SAASC,UAAT,QAA2B,OAA3B"}
|
package/esm/redux/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","configureStore"],"sources":["../../src/redux/index.js"],"sourcesContent":["// @flow\n\n// ROUTER\nexport * from \"./_router/index\";\n\n// I18N\nexport * from \"./_i18n/index\";\n\n// MODULAR UI\nexport * from \"./_modularui/index\";\n\n// STORE\nexport { default as configureStore } from \"./store/configureStore\";\n\n// ACTIONS\nexport * from \"./actions/index\";\n\n// CONNECTORS\nexport * from \"./connectors/index\";\n\n// REDUCERS\nexport * from \"./reducers/index\";\n\nexport type * from \"./types\";\n"],"mappings":"AAEA;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,eAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,SAASA,OAAO,IAAIC,cAApB,QAA0C,wBAA1C,C,CAEA;;AACA,cAAc,iBAAd,C,CAEA;;AACA,cAAc,oBAAd,C,CAEA;;AACA,cAAc,kBAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"AuthReducer.js","names":["Cache","initialState","isAuthenticated","mustChangePassword","error","AuthReducer","state","action","type","payload","clear"],"sources":["../../../src/redux/reducers/AuthReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\n\nimport type { Reducer } from \"redux\";\nimport type { AuthState, ReduxAction } from \"../types\";\n\n// REDUCER\nconst initialState: AuthState = {\n isAuthenticated: false,\n mustChangePassword: false,\n error: null,\n};\n\n/**\n * Auth reducer\n */\nconst AuthReducer: Reducer<AuthState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"AUTHENTICATION_SUCCESS\":\n return {\n ...state,\n isAuthenticated: true,\n error: null,\n mustChangePassword: false,\n };\n\n case \"AUTHENTICATION_ERROR\":\n return { ...state, mustChangePassword: false, error: action.payload };\n\n case \"AUTHENTICATION_RESET_ERRORS\":\n return { ...state, error: null };\n\n case \"AUTHENTICATION_LOGOUT\": {\n // clear cache because of cached contributions\n if (state.isAuthenticated) {\n Cache.clear();\n }\n\n return {\n ...state,\n mustChangePassword: false,\n isAuthenticated: false,\n error: null,\n };\n }\n\n case \"CHANGE_PASSWORD\":\n return {\n ...state,\n isAuthenticated: true,\n mustChangePassword: true,\n error: null,\n };\n\n default:\n return state;\n }\n};\n\nexport default AuthReducer;\n"],"mappings":";;;;;;;;;;;AACA,OAAOA,KAAP,MAAkB,2BAAlB;AAKA;AACA,IAAMC,YAAuB,GAAG;EAC9BC,eAAe,EAAE,KADa;EAE9BC,kBAAkB,EAAE,KAFU;EAG9BC,KAAK,EAAE;AAHuB,CAAhC;AAMA;AACA;AACA;;AACA,IAAMC,WAA4C,GAAG,SAA/CA,WAA+C,GAGhD;EAAA,IAFHC,KAEG,uEAFKL,YAEL;EAAA,IADHM,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,wBAAL;MACE,uCACKF,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEE,KAAK,EAAE,IAHT;QAIED,kBAAkB,EAAE;MAJtB;;IAOF,KAAK,sBAAL;MACE,uCAAYG,KAAZ;QAAmBH,kBAAkB,EAAE,KAAvC;QAA8CC,KAAK,EAAEG,MAAM,CAACE;MAA5D;;IAEF,KAAK,6BAAL;MACE,uCAAYH,KAAZ;QAAmBF,KAAK,EAAE;MAA1B;;IAEF,KAAK,uBAAL;MAA8B;QAC5B;QACA,IAAIE,KAAK,CAACJ,eAAV,EAA2B;UACzBF,KAAK,CAACU,KAAN;QACD;;QAED,uCACKJ,KADL;UAEEH,kBAAkB,EAAE,KAFtB;UAGED,eAAe,EAAE,KAHnB;UAIEE,KAAK,EAAE;QAJT;MAMD;;IAED,KAAK,iBAAL;MACE,uCACKE,KADL;QAEEJ,eAAe,EAAE,IAFnB;QAGEC,kBAAkB,EAAE,IAHtB;QAIEC,KAAK,EAAE;MAJT;;IAOF;MACE,OAAOE,KAAP;EAtCJ;AAwCD,CAhDD;;AAkDA,eAAeD,WAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ErrorReducer.js","names":["initialState","ErrorReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/ErrorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ErrorState } from \"../types\";\n\n// REDUCER\nconst initialState: ErrorState = null;\n\n/**\n * Error reducer\n */\nconst ErrorReducer: Reducer<ErrorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action && action.type === \"SAVE_ERROR\") {\n return action.payload;\n }\n\n return state;\n};\n\nexport default ErrorReducer;\n"],"mappings":"AAIA;AACA,IAAMA,YAAwB,GAAG,IAAjC;AAEA;AACA;AACA;;AACA,IAAMC,YAA8C,GAAG,SAAjDA,YAAiD,GAGlD;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAIA,MAAM,IAAIA,MAAM,CAACC,IAAP,KAAgB,YAA9B,EAA4C;IAC1C,OAAOD,MAAM,CAACE,OAAd;EACD;;EAED,OAAOH,KAAP;AACD,CATD;;AAWA,eAAeD,YAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ModalsReducer.js","names":["showModal","state","modalKey","modals","modal","visible","key","closeModal","idx","arr","length","initialState","ModalsReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ModalsReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ModalsState } from \"../types\";\n\nconst showModal = (state, modalKey) => [\n ...state.modals.map((modal) => ({\n ...modal,\n visible: false,\n })),\n {\n key: modalKey,\n visible: true,\n },\n];\n\nconst closeModal = (state, modalKey) =>\n state.modals\n .filter((modal) => modal.key !== modalKey)\n .map((modal, idx, arr) => ({\n ...modal,\n visible: arr.length === idx + 1,\n }));\n\n// REDUCER\nconst initialState: ModalsState = {\n modals: [],\n};\n\n/**\n * Modals reducer\n */\nconst ModalsReducer: Reducer<ModalsState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SHOW_MODAL\":\n return {\n ...state,\n modals: showModal(state, action.payload),\n };\n\n case \"CLOSE_MODAL\":\n return {\n ...state,\n modals: closeModal(state, action.payload),\n };\n\n default:\n return state;\n }\n};\n\nexport default ModalsReducer;\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,KAAD,EAAQC,QAAR;EAAA;;EAAA,gFACb,iCAAAD,KAAK,CAACE,MAAN,kBAAiB,UAACC,KAAD;IAAA,uCACfA,KADe;MAElBC,OAAO,EAAE;IAFS;EAAA,CAAjB,CADa,IAKhB;IACEC,GAAG,EAAEJ,QADP;IAEEG,OAAO,EAAE;EAFX,CALgB;AAAA,CAAlB;;AAWA,IAAME,UAAU,GAAG,SAAbA,UAAa,CAACN,KAAD,EAAQC,QAAR;EAAA;;EAAA,OACjB,qEAAAD,KAAK,CAACE,MAAN,kBACU,UAACC,KAAD;IAAA,OAAWA,KAAK,CAACE,GAAN,KAAcJ,QAAzB;EAAA,CADV,mBAEO,UAACE,KAAD,EAAQI,GAAR,EAAaC,GAAb;IAAA,uCACAL,KADA;MAEHC,OAAO,EAAEI,GAAG,CAACC,MAAJ,KAAeF,GAAG,GAAG;IAF3B;EAAA,CAFP,CADiB;AAAA,CAAnB,C,CAQA;;;AACA,IAAMG,YAAyB,GAAG;EAChCR,MAAM,EAAE;AADwB,CAAlC;AAIA;AACA;AACA;;AACA,IAAMS,aAAgD,GAAG,SAAnDA,aAAmD,GAGpD;EAAA,IAFHX,KAEG,uEAFKU,YAEL;EAAA,IADHE,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOZ,KAAP;EACD;;EAED,QAAQY,MAAM,CAACC,IAAf;IACE,KAAK,YAAL;MACE,uCACKb,KADL;QAEEE,MAAM,EAAEH,SAAS,CAACC,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFnB;;IAKF,KAAK,aAAL;MACE,uCACKd,KADL;QAEEE,MAAM,EAAEI,UAAU,CAACN,KAAD,EAAQY,MAAM,CAACE,OAAf;MAFpB;;IAKF;MACE,OAAOd,KAAP;EAdJ;AAgBD,CAxBD;;AA0BA,eAAeW,aAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"NotificationReducer.js","names":["initialState","render","messageType","message","error","NotificationReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/NotificationReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, NotificationState } from \"../types\";\n\n// REDUCER\nconst initialState: NotificationState = {\n render: false,\n messageType: null,\n message: null,\n error: null,\n};\n\n/**\n * Form reducer\n */\nconst NotificationReducer: Reducer<NotificationState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"DISMISS_NOTIFICATION\":\n return {\n ...state,\n render: false,\n };\n\n case \"SHOW_NOTIFICATION\":\n return {\n ...state,\n render: true,\n messageType: action.payload.type,\n message: action.payload.message,\n error: action.payload.error,\n };\n\n default:\n return state;\n }\n};\n\nexport default NotificationReducer;\n"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAA+B,GAAG;EACtCC,MAAM,EAAE,KAD8B;EAEtCC,WAAW,EAAE,IAFyB;EAGtCC,OAAO,EAAE,IAH6B;EAItCC,KAAK,EAAE;AAJ+B,CAAxC;AAOA;AACA;AACA;;AACA,IAAMC,mBAA4D,GAAG,SAA/DA,mBAA+D,GAGhE;EAAA,IAFHC,KAEG,uEAFKN,YAEL;EAAA,IADHO,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOD,KAAP;EACD;;EAED,QAAQC,MAAM,CAACC,IAAf;IACE,KAAK,sBAAL;MACE,uCACKF,KADL;QAEEL,MAAM,EAAE;MAFV;;IAKF,KAAK,mBAAL;MACE,uCACKK,KADL;QAEEL,MAAM,EAAE,IAFV;QAGEC,WAAW,EAAEK,MAAM,CAACE,OAAP,CAAeD,IAH9B;QAIEL,OAAO,EAAEI,MAAM,CAACE,OAAP,CAAeN,OAJ1B;QAKEC,KAAK,EAAEG,MAAM,CAACE,OAAP,CAAeL;MALxB;;IAQF;MACE,OAAOE,KAAP;EAjBJ;AAmBD,CA3BD;;AA6BA,eAAeD,mBAAf"}
|
|
@@ -18,7 +18,11 @@ var PreferencesReducer = function PreferencesReducer() {
|
|
|
18
18
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
19
19
|
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
20
20
|
|
|
21
|
-
if (action
|
|
21
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === "SET_PREFERENCE") {
|
|
22
|
+
return _objectSpread(_objectSpread({}, state), action.payload);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if ((action === null || action === void 0 ? void 0 : action.type) === "SET_PREFERENCES") {
|
|
22
26
|
return _objectSpread(_objectSpread({}, state), action.payload);
|
|
23
27
|
}
|
|
24
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"PreferencesReducer.js","names":["initialState","PreferencesReducer","state","action","type","payload"],"sources":["../../../src/redux/reducers/PreferencesReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, PreferencesState } from \"../types\";\n\nconst initialState: $Shape<PreferencesState> = {};\n\n/**\n * Pref reducer\n */\nconst PreferencesReducer: Reducer<PreferencesState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (action?.type === \"SET_PREFERENCE\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n if (action?.type === \"SET_PREFERENCES\") {\n return {\n ...state,\n ...action.payload,\n };\n }\n\n return state;\n};\n\nexport default PreferencesReducer;\n"],"mappings":";;;;;;;;;;;AAIA,IAAMA,YAAsC,GAAG,EAA/C;AAEA;AACA;AACA;;AACA,IAAMC,kBAA0D,GAAG,SAA7DA,kBAA6D,GAG9D;EAAA,IAFHC,KAEG,uEAFKF,YAEL;EAAA,IADHG,MACG;;EACH,IAAI,CAAAA,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,gBAArB,EAAuC;IACrC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,IAAI,CAAAF,MAAM,SAAN,IAAAA,MAAM,WAAN,YAAAA,MAAM,CAAEC,IAAR,MAAiB,iBAArB,EAAwC;IACtC,uCACKF,KADL,GAEKC,MAAM,CAACE,OAFZ;EAID;;EAED,OAAOH,KAAP;AACD,CAnBD;;AAqBA,eAAeD,kBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"ProgressIndicatorReducer.js","names":["initialState","count","timestamp","percentComplete","finishProgress","state","isFinalFinish","Date","now","progressIndicatorReducer","action","type","payload"],"sources":["../../../src/redux/reducers/ProgressIndicatorReducer.js"],"sourcesContent":["// @flow\nimport type { Reducer } from \"redux\";\nimport type { ReduxAction, ProgressIndicatorState } from \"../types\";\n\n// REDUCER\nconst initialState: ProgressIndicatorState = {\n count: 0,\n timestamp: 0,\n percentComplete: 0,\n};\n\nconst finishProgress = (state) => {\n const isFinalFinish = state.count - 1 === 0;\n return {\n ...state,\n count: state.count <= 0 ? 0 : state.count - 1,\n timestamp: isFinalFinish ? Date.now() : state.timestamp,\n percentComplete: isFinalFinish ? 0 : state.percentComplete,\n };\n};\n\n/**\n * Keep state for the progress indicator\n */\nconst progressIndicatorReducer: Reducer<ProgressIndicatorState, ReduxAction> = (\n state = initialState,\n action\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"UPDATE_PROGRESS\":\n return {\n ...state,\n percentComplete: action.payload?.percentComplete,\n };\n\n case \"FINISH_PROGRESS\":\n return finishProgress(state);\n\n case \"START_PROGRESS\":\n return {\n ...state,\n count: state.count + 1,\n };\n\n case \"RESET_PROGRESS\":\n return {\n ...state,\n count: 0,\n };\n\n default:\n return state;\n }\n};\n\nexport default progressIndicatorReducer;\n"],"mappings":";;;;;;;;;;;AAIA;AACA,IAAMA,YAAoC,GAAG;EAC3CC,KAAK,EAAE,CADoC;EAE3CC,SAAS,EAAE,CAFgC;EAG3CC,eAAe,EAAE;AAH0B,CAA7C;;AAMA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CAACC,KAAD,EAAW;EAChC,IAAMC,aAAa,GAAGD,KAAK,CAACJ,KAAN,GAAc,CAAd,KAAoB,CAA1C;EACA,uCACKI,KADL;IAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,IAAe,CAAf,GAAmB,CAAnB,GAAuBI,KAAK,CAACJ,KAAN,GAAc,CAF9C;IAGEC,SAAS,EAAEI,aAAa,GAAGC,IAAI,CAACC,GAAL,EAAH,GAAgBH,KAAK,CAACH,SAHhD;IAIEC,eAAe,EAAEG,aAAa,GAAG,CAAH,GAAOD,KAAK,CAACF;EAJ7C;AAMD,CARD;AAUA;AACA;AACA;;;AACA,IAAMM,wBAAsE,GAAG,SAAzEA,wBAAyE,GAG1E;EAAA;;EAAA,IAFHJ,KAEG,uEAFKL,YAEL;EAAA,IADHU,MACG;;EACH,IAAI,CAACA,MAAL,EAAa;IACX,OAAOL,KAAP;EACD;;EAED,QAAQK,MAAM,CAACC,IAAf;IACE,KAAK,iBAAL;MACE,uCACKN,KADL;QAEEF,eAAe,qBAAEO,MAAM,CAACE,OAAT,oDAAE,gBAAgBT;MAFnC;;IAKF,KAAK,iBAAL;MACE,OAAOC,cAAc,CAACC,KAAD,CAArB;;IAEF,KAAK,gBAAL;MACE,uCACKA,KADL;QAEEJ,KAAK,EAAEI,KAAK,CAACJ,KAAN,GAAc;MAFvB;;IAKF,KAAK,gBAAL;MACE,uCACKI,KADL;QAEEJ,KAAK,EAAE;MAFT;;IAKF;MACE,OAAOI,KAAP;EAvBJ;AAyBD,CAjCD;;AAmCA,eAAeI,wBAAf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"createReducer.js","names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","notification","progressindicator","preferences"],"sources":["../../../src/redux/reducers/createReducer.js"],"sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/reducer\";\nimport { ModularUIReducer } from \"../_modularui/reducer\";\nimport { I18nReducer } from \"../_i18n/reducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"mappings":"AACA,SAASA,aAAT,QAA8B,oBAA9B;AACA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,WAAT,QAA4B,kBAA5B;AAEA,OAAOC,aAAP,MAA0B,iBAA1B;AACA,OAAOC,WAAP,MAAwB,eAAxB;AACA,OAAOC,YAAP,MAAyB,gBAAzB;AACA,OAAOC,mBAAP,MAAgC,uBAAhC;AACA,OAAOC,wBAAP,MAAqC,4BAArC;AACA,OAAOC,kBAAP,MAA+B,sBAA/B;;AA4BA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;EAAA,OAAiB;IAC5CC,MAAM,EAAEV,aADoC;IAE5CW,SAAS,EAAEV,gBAFiC;IAG5CW,IAAI,EAAEV,WAHsC;IAI5CW,IAAI,EAAET,WAJsC;IAK5CU,KAAK,EAAET,YALqC;IAM5CU,MAAM,EAAEZ,aANoC;IAO5Ca,YAAY,EAAEV,mBAP8B;IAQ5CW,iBAAiB,EAAEV,wBARyB;IAS5CW,WAAW,EAAEV;EAT+B,CAAjB;AAAA,CAAtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","AuthReducer","ErrorReducer","ModalsReducer","NotificationReducer","PreferencesReducer","ProgressIndicatorReducer"],"sources":["../../../src/redux/reducers/index.js"],"sourcesContent":["// @flow\nexport * from \"./createReducer\";\n\nexport { default as AuthReducer } from \"./AuthReducer\";\nexport { default as ErrorReducer } from \"./ErrorReducer\";\nexport { default as ModalsReducer } from \"./ModalsReducer\";\nexport { default as NotificationReducer } from \"./NotificationReducer\";\nexport { default as PreferencesReducer } from \"./PreferencesReducer\";\nexport { default as ProgressIndicatorReducer } from \"./ProgressIndicatorReducer\";\n"],"mappings":"AACA,cAAc,iBAAd;AAEA,SAASA,OAAO,IAAIC,WAApB,QAAuC,eAAvC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,gBAAxC;AACA,SAASF,OAAO,IAAIG,aAApB,QAAyC,iBAAzC;AACA,SAASH,OAAO,IAAII,mBAApB,QAA+C,uBAA/C;AACA,SAASJ,OAAO,IAAIK,kBAApB,QAA8C,sBAA9C;AACA,SAASL,OAAO,IAAIM,wBAApB,QAAoD,4BAApD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"beforeRenderHooks.js","names":["handleBeforeRenderHooks","beforeRenderHooks","props","length","beforeRenderHook"],"sources":["../../../src/redux/store/beforeRenderHooks.js"],"sourcesContent":["// @flow\nimport type { ReduxStore } from \"../types\";\n\nexport type BeforeRenderHookProps = {\n store: ReduxStore,\n request?: HttpServletRequestJava,\n};\nexport type BeforeRenderHook = (props: BeforeRenderHookProps) => void;\n\n/**\n * Process handlers that need to be run before the react application starts,\n * for example to start a third party service<br>\n * An object with the store is available to make it possible to read state available in the redux store,\n * for example server preferences, and the request is available to retrieve request information\n *\n */\nexport const handleBeforeRenderHooks = (\n beforeRenderHooks: Array<BeforeRenderHook> = [],\n props: BeforeRenderHookProps\n) => {\n if (beforeRenderHooks.length > 0) {\n for (const beforeRenderHook of beforeRenderHooks) {\n beforeRenderHook(props);\n }\n }\n};\n"],"mappings":";;;;;;;;;;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMA,uBAAuB,GAAG,SAA1BA,uBAA0B,GAGlC;EAAA,IAFHC,iBAEG,uEAF0C,EAE1C;EAAA,IADHC,KACG;;EACH,IAAID,iBAAiB,CAACE,MAAlB,GAA2B,CAA/B,EAAkC;IAAA,2CACDF,iBADC;IAAA;;IAAA;MAChC,oDAAkD;QAAA,IAAvCG,gBAAuC;QAChDA,gBAAgB,CAACF,KAAD,CAAhB;MACD;IAH+B;MAAA;IAAA;MAAA;IAAA;EAIjC;AACF,CATM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"configureStore.js","names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularuiMiddleware","createReducer","locationChange","configureStore","history","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","dispatch","location"],"sources":["../../../src/redux/store/configureStore.js"],"sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/middleware\";\nimport { modularuiMiddleware } from \"../_modularui/middleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/actions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n history: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>\n): { history: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularuiMiddleware,\n routerMiddleware(history),\n thunk\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers\n );\n\n if (!initialState) {\n store.dispatch(locationChange(history.location, \"PUSH\"));\n }\n return { history, store };\n};\n\nexport default configureStore;\n"],"mappings":";;;;;;;;;;;AACA,SACEA,eADF,EAEEC,OAFF,EAGEC,eAHF,EAIEC,WAAW,IAAIC,gBAJjB,QAKO,OALP;AAMA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,SAASC,gBAAT,QAAiC,uBAAjC;AACA,SAASC,mBAAT,QAAoC,0BAApC;AAEA,SAASC,aAAT,QAA8B,2BAA9B;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAMA;AACA;AACA,IAAMC,cAAc,GAAG,SAAjBA,cAAiB,CACrBC,OADqB,EAErBC,cAFqB,EAGrBC,YAHqB,EAI6B;EAClD,IAAIC,gBAAgB,GAAGb,OAAvB;;EAEA,IAAIc,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,IAAyC,OAAOC,MAAP,KAAkB,WAA/D,EAA4E;IAC1EJ,gBAAgB,GAAGI,MAAM,CAACC,oCAAP,IAA+ClB,OAAlE;EACD;;EAED,IAAMmB,gBAAkD,GAAGlB,eAAe,iCACrEU,cADqE,GAErEJ,aAAa,EAFwD,EAA1E;EAKA,IAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBADgC,EAEhCD,gBAAgB,CAACK,OAAD,CAFgB,EAGhCN,KAHgC,CAAlC;EAMA,IAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAD,CAAlC;EAEA,IAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBADwC,EAExCP,YAFwC,EAGxCS,SAHwC,CAA1C;;EAMA,IAAI,CAACT,YAAL,EAAmB;IACjBU,KAAK,CAACC,QAAN,CAAef,cAAc,CAACE,OAAO,CAACc,QAAT,EAAmB,MAAnB,CAA7B;EACD;;EACD,OAAO;IAAEd,OAAO,EAAPA,OAAF;IAAWY,KAAK,EAALA;EAAX,CAAP;AACD,CAlCD;;AAoCA,eAAeb,cAAf"}
|
package/esm/redux/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../src/redux/types.js"],"sourcesContent":["// @flow\nimport type { Store, DispatchAPI } from \"redux\";\n\nimport type ErrorResponse from \"../models/error/ErrorResponse\";\n\nimport type FormModel from \"../models/form/FormModel\";\nimport typeof {\n NOTIFICATION_TYPES,\n AUTOSAVE_STATUS,\n} from \"../constants/Constants\";\n\nimport type { MessageObject } from \"../i18n/types\";\nimport type {\n I18nState,\n UpdateLocaleAction,\n SetLocalesAction,\n} from \"./_i18n/types\";\nimport type {\n ModularUIState,\n ModularUIAction,\n UpdateStatusAction,\n SetModelAction,\n UpdateModelAction,\n RemoveModelByKeyAction,\n ResetModularUIAction,\n} from \"./_modularui/types\";\nimport type {\n RouterState,\n LocationChangeAction,\n PushAction,\n ReplaceAction,\n GoAction,\n GoBackAction,\n GoForwardAction,\n} from \"./_router/types\";\n\nexport type PreferenceValue =\n | null\n | string\n | boolean\n | { [key: string]: any }\n | Array<PreferenceValue>;\n\nexport type UpdateFormOptions = {\n autosubmit: boolean,\n autosave: boolean,\n forceUpdate?: boolean,\n /** Default true: Activate/deactivate the form object validate by an update */\n validate?: boolean,\n};\n\nexport type NoAction = {\n type: \"NO_ACTION\",\n};\n\nexport type SaveErrorAction = {\n type: \"SAVE_ERROR\",\n payload: ErrorResponse,\n};\n\nexport type ShowModalAction = {\n type: \"SHOW_MODAL\",\n payload: string,\n};\n\nexport type CloseModalAction = {\n type: \"CLOSE_MODAL\",\n payload: string,\n};\n\nexport type DismissNotificationAction = {\n type: \"DISMISS_NOTIFICATION\",\n};\nexport type ShowNotificationAction = {\n type: \"SHOW_NOTIFICATION\",\n payload: {\n type: $Keys<NOTIFICATION_TYPES>,\n message: MessageObject,\n error: ?ErrorResponse,\n },\n};\n\nexport type SetPreferenceAction = {\n type: \"SET_PREFERENCE\",\n payload: { [name: string]: PreferenceValue },\n};\nexport type SetPreferencesAction = {\n type: \"SET_PREFERENCES\",\n payload: { [name: string]: PreferenceValue },\n};\n\nexport type StartProgressAction = {\n type: \"START_PROGRESS\",\n};\nexport type FinishProgressAction = {\n type: \"FINISH_PROGRESS\",\n};\nexport type ResetProgressAction = {\n type: \"RESET_PROGRESS\",\n};\nexport type UpdateProgressAction = {\n type: \"UPDATE_PROGRESS\",\n payload: { percentComplete: number },\n};\n\nexport type LoginFailedAction = {\n type: \"AUTHENTICATION_ERROR\",\n payload: string,\n};\n\nexport type ResetAuthErrorsAction = {\n type: \"AUTHENTICATION_RESET_ERRORS\",\n};\n\nexport type LoginSuccessAction = {\n type: \"AUTHENTICATION_SUCCESS\",\n};\n\nexport type ChangePasswordAction = {\n type: \"CHANGE_PASSWORD\",\n};\n\nexport type LogoutSuccessAction = {\n type: \"AUTHENTICATION_LOGOUT\",\n};\n\nexport type UpdateAutosaveAction = {\n type: \"UPDATE_AUTOSAVE_STATUS\",\n payload: {\n status: $Keys<AUTOSAVE_STATUS>,\n model: FormModel,\n },\n};\n\nexport type ReduxAction =\n | UpdateStatusAction\n | SetModelAction\n | UpdateModelAction\n | RemoveModelByKeyAction\n | ResetModularUIAction\n | SaveErrorAction\n | UpdateLocaleAction\n | SetLocalesAction\n | ShowModalAction\n | CloseModalAction\n | DismissNotificationAction\n | ShowNotificationAction\n | SetPreferenceAction\n | SetPreferencesAction\n | StartProgressAction\n | FinishProgressAction\n | ResetProgressAction\n | UpdateProgressAction\n | LoginFailedAction\n | ResetAuthErrorsAction\n | LoginSuccessAction\n | ChangePasswordAction\n | LogoutSuccessAction\n | UpdateAutosaveAction\n | LocationChangeAction\n | PushAction\n | ReplaceAction\n | GoAction\n | GoBackAction\n | GoForwardAction\n | ModularUIAction\n | NoAction;\n\n// Redux state\nexport type AuthState = {\n +isAuthenticated: boolean,\n +mustChangePassword: boolean,\n +error: ?string,\n};\n\nexport type ErrorState = null | ErrorResponse;\n\nexport type ModalState = {\n +key: string,\n +visible: boolean,\n +size?: string,\n};\n\nexport type ModalsState = {\n +modals: Array<ModalState>,\n};\n\nexport type NotificationState = {\n +render: boolean,\n +messageType: string | null,\n +message: MessageObject | null,\n +error: ?ErrorResponse | null,\n};\n\nexport type PreferencesState = {\n +[name: string]: PreferenceValue,\n};\n\nexport type ProgressIndicatorState = {\n +count: number,\n +timestamp: number,\n +percentComplete: number,\n};\n\nexport type ReduxState = {\n +router: RouterState,\n +modularui: ModularUIState,\n +i18n: I18nState,\n +auth: AuthState,\n +error: ErrorState,\n +modals: ModalsState,\n +notification: NotificationState,\n +progressindicator: ProgressIndicatorState,\n +preferences: PreferencesState,\n ...\n};\n\nexport type GetState = () => ReduxState;\nexport type ThunkAction = (dispatch: Dispatch, getState: GetState) => any;\nexport type PromiseAction = Promise<PossibleAction>;\nexport type Dispatch = DispatchAPI<PossibleAction>;\nexport type ReduxStore = Store<ReduxState, ReduxAction, Dispatch>;\n\nexport type PossibleAction = ReduxAction | ThunkAction | PromiseAction;\n\nexport type CustomReducers = { [reducerKey: string]: any };\n"],"mappings":""}
|