@beinformed/ui 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/esm/models/filters/StringFilterModel.js +3 -2
- package/esm/models/filters/StringFilterModel.js.map +1 -1
- package/esm/react-server/serverNoSSR.js +4 -0
- package/esm/react-server/serverNoSSR.js.map +1 -1
- package/lib/constants/Constants.js +66 -33
- package/lib/constants/Constants.js.map +1 -1
- package/lib/constants/LayoutHintConfig.js +2 -1
- package/lib/constants/LayoutHintConfig.js.map +1 -1
- package/lib/constants/LayoutHints.js +36 -18
- package/lib/constants/LayoutHints.js.map +1 -1
- package/lib/constants/Settings.js +6 -3
- package/lib/constants/Settings.js.map +1 -1
- package/lib/exceptions/ConfigurationException.js +2 -1
- package/lib/exceptions/ConfigurationException.js.map +1 -1
- package/lib/exceptions/IllegalArgumentException.js +2 -1
- package/lib/exceptions/IllegalArgumentException.js.map +1 -1
- package/lib/exceptions/IllegalReturnException.js +2 -1
- package/lib/exceptions/IllegalReturnException.js.map +1 -1
- package/lib/exceptions/IllegalStateException.js +2 -1
- package/lib/exceptions/IllegalStateException.js.map +1 -1
- package/lib/exceptions/JsonParseException.js +2 -1
- package/lib/exceptions/JsonParseException.js.map +1 -1
- package/lib/exceptions/MissingPropertyException.js +2 -1
- package/lib/exceptions/MissingPropertyException.js.map +1 -1
- package/lib/exceptions/NetworkException.js +2 -1
- package/lib/exceptions/NetworkException.js.map +1 -1
- package/lib/exceptions/NotAllowedUriException.js +2 -1
- package/lib/exceptions/NotAllowedUriException.js.map +1 -1
- package/lib/exceptions/NotFoundException.js +2 -1
- package/lib/exceptions/NotFoundException.js.map +1 -1
- package/lib/exceptions/ServerRequestException.js +2 -1
- package/lib/exceptions/ServerRequestException.js.map +1 -1
- package/lib/exceptions/ThemePropertyException.js +2 -1
- package/lib/exceptions/ThemePropertyException.js.map +1 -1
- package/lib/exceptions/TimeoutException.js +2 -1
- package/lib/exceptions/TimeoutException.js.map +1 -1
- package/lib/exceptions/UnauthorizedException.js +2 -1
- package/lib/exceptions/UnauthorizedException.js.map +1 -1
- package/lib/exceptions/UnsupportedOperationException.js +2 -1
- package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
- package/lib/hooks/useDeepCompareEffect.js +2 -1
- package/lib/hooks/useDeepCompareEffect.js.map +1 -1
- package/lib/i18n/Locale.js +2 -1
- package/lib/i18n/Locale.js.map +1 -1
- package/lib/i18n/Locales.js +4 -2
- package/lib/i18n/Locales.js.map +1 -1
- package/lib/i18n/Message.js +2 -1
- package/lib/i18n/Message.js.map +1 -1
- package/lib/i18n/languages.js +2 -1
- package/lib/i18n/languages.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js +2 -1
- package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +2 -1
- package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
- package/lib/i18n/withMessage.js +2 -1
- package/lib/i18n/withMessage.js.map +1 -1
- package/lib/models/attributes/AttributeCollection.js +2 -1
- package/lib/models/attributes/AttributeCollection.js.map +1 -1
- package/lib/models/attributes/AttributeContent.js +2 -1
- package/lib/models/attributes/AttributeContent.js.map +1 -1
- package/lib/models/attributes/AttributeDataHelper.js +2 -1
- package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js +2 -1
- package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js +2 -1
- package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js +2 -1
- package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
- package/lib/models/attributes/CompositeAttributeModel.js +2 -1
- package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
- package/lib/models/attributes/DatetimeAttributeModel.js +2 -1
- package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
- package/lib/models/attributes/_createAttribute.js +2 -1
- package/lib/models/attributes/_createAttribute.js.map +1 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js +2 -1
- package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +2 -1
- package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js +2 -1
- package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +2 -1
- package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +2 -1
- package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
- package/lib/models/base/BaseCollection.js +2 -1
- package/lib/models/base/BaseCollection.js.map +1 -1
- package/lib/models/base/BaseModel.js +2 -1
- package/lib/models/base/BaseModel.js.map +1 -1
- package/lib/models/base/ResourceCollection.js +2 -1
- package/lib/models/base/ResourceCollection.js.map +1 -1
- package/lib/models/base/ResourceModel.js +2 -1
- package/lib/models/base/ResourceModel.js.map +1 -1
- package/lib/models/concepts/BusinessScenarioModel.js +2 -1
- package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js +2 -1
- package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
- package/lib/models/concepts/SourceReferenceModel.js +2 -1
- package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
- package/lib/models/content/SectionModel.js +2 -1
- package/lib/models/content/SectionModel.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js +2 -1
- package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +2 -1
- package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +2 -1
- package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js +2 -1
- package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
- package/lib/models/error/ErrorModel.js +2 -1
- package/lib/models/error/ErrorModel.js.map +1 -1
- package/lib/models/filters/StringFilterModel.js +2 -2
- package/lib/models/filters/StringFilterModel.js.flow +2 -2
- package/lib/models/filters/StringFilterModel.js.map +1 -1
- package/lib/models/form/FormModel.js +2 -1
- package/lib/models/form/FormModel.js.map +1 -1
- package/lib/models/href/Href.js +2 -1
- package/lib/models/href/Href.js.map +1 -1
- package/lib/models/links/LinkModel.js +2 -1
- package/lib/models/links/LinkModel.js.map +1 -1
- package/lib/models/links/normalizeLinkJSON.js +2 -1
- package/lib/models/links/normalizeLinkJSON.js.map +1 -1
- package/lib/models/list/ListItemCollection.js +2 -1
- package/lib/models/list/ListItemCollection.js.map +1 -1
- package/lib/models/lookup/LookupOptionCollection.js +2 -1
- package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
- package/lib/models/parameter/Parameter.js +2 -1
- package/lib/models/parameter/Parameter.js.map +1 -1
- package/lib/models/resolveModel.js +2 -1
- package/lib/models/resolveModel.js.map +1 -1
- package/lib/models/sorting/SortOptionModel.js +2 -1
- package/lib/models/sorting/SortOptionModel.js.map +1 -1
- package/lib/models/sorting/SortingModel.js +2 -1
- package/lib/models/sorting/SortingModel.js.map +1 -1
- package/lib/models/user/UserServicesModel.js +2 -1
- package/lib/models/user/UserServicesModel.js.map +1 -1
- package/lib/modularui/Authenticate.js +2 -1
- package/lib/modularui/Authenticate.js.map +1 -1
- package/lib/modularui/CaptchaRequest.js +2 -1
- package/lib/modularui/CaptchaRequest.js.map +1 -1
- package/lib/modularui/ModularUIError.js +2 -1
- package/lib/modularui/ModularUIError.js.map +1 -1
- package/lib/modularui/ModularUIRequest.js +2 -1
- package/lib/modularui/ModularUIRequest.js.map +1 -1
- package/lib/modularui/ModularUIResponse.js +2 -1
- package/lib/modularui/ModularUIResponse.js.map +1 -1
- package/lib/modularui/UploadRequest.js +2 -1
- package/lib/modularui/UploadRequest.js.map +1 -1
- package/lib/react/ErrorBoundary.js +2 -1
- package/lib/react/ErrorBoundary.js.map +1 -1
- package/lib/react/ErrorBoundaryFallback.js +2 -1
- package/lib/react/ErrorBoundaryFallback.js.map +1 -1
- package/lib/react-client/rehydrate.js +2 -1
- package/lib/react-client/rehydrate.js.map +1 -1
- package/lib/react-server/createSSRComplete.js +2 -1
- package/lib/react-server/createSSRComplete.js.map +1 -1
- package/lib/react-server/htmlpage.js +2 -1
- package/lib/react-server/htmlpage.js.map +1 -1
- package/lib/react-server/renderSSRComplete.js +2 -1
- package/lib/react-server/renderSSRComplete.js.map +1 -1
- package/lib/react-server/renderSSRMinimal.js +2 -1
- package/lib/react-server/renderSSRMinimal.js.map +1 -1
- package/lib/react-server/serverNoSSR.js +6 -1
- package/lib/react-server/serverNoSSR.js.flow +5 -0
- package/lib/react-server/serverNoSSR.js.map +1 -1
- package/lib/react-server/serverSSR.js +2 -1
- package/lib/react-server/serverSSR.js.map +1 -1
- package/lib/react-theme/ThemeProvider.js +2 -1
- package/lib/react-theme/ThemeProvider.js.map +1 -1
- package/lib/react-theme/createTheme.js +2 -1
- package/lib/react-theme/createTheme.js.map +1 -1
- package/lib/redux/_modularui/ModularUIConnector.js +2 -1
- package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
- package/lib/redux/_modularui/ModularUISelectors.js +2 -1
- package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
- package/lib/redux/_modularui/withModularUI.js +2 -1
- package/lib/redux/_modularui/withModularUI.js.map +1 -1
- package/lib/redux/_router/RouterConnectors.js +10 -5
- package/lib/redux/_router/RouterConnectors.js.map +1 -1
- package/lib/redux/connectors/Application.js +2 -1
- package/lib/redux/connectors/Application.js.map +1 -1
- package/lib/redux/connectors/Breadcrumb.js +2 -1
- package/lib/redux/connectors/Breadcrumb.js.map +1 -1
- package/lib/redux/connectors/CaseView.js +2 -1
- package/lib/redux/connectors/CaseView.js.map +1 -1
- package/lib/redux/connectors/ConceptDetail.js +2 -1
- package/lib/redux/connectors/ConceptDetail.js.map +1 -1
- package/lib/redux/connectors/ContentBrowser.js +2 -1
- package/lib/redux/connectors/ContentBrowser.js.map +1 -1
- package/lib/redux/connectors/ContentDetail.js +2 -1
- package/lib/redux/connectors/ContentDetail.js.map +1 -1
- package/lib/redux/connectors/ContentDetailSection.js +2 -1
- package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
- package/lib/redux/connectors/Form.js +2 -1
- package/lib/redux/connectors/Form.js.map +1 -1
- package/lib/redux/connectors/FormAttributeSet.js +2 -1
- package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
- package/lib/redux/connectors/ListDetail.js +2 -1
- package/lib/redux/connectors/ListDetail.js.map +1 -1
- package/lib/redux/connectors/Modal.js +2 -1
- package/lib/redux/connectors/Modal.js.map +1 -1
- package/lib/redux/connectors/ModelCatalog.js +2 -1
- package/lib/redux/connectors/ModelCatalog.js.map +1 -1
- package/lib/redux/connectors/Notification.js +2 -1
- package/lib/redux/connectors/Notification.js.map +1 -1
- package/lib/redux/connectors/PanelRenderer.js +2 -1
- package/lib/redux/connectors/PanelRenderer.js.map +1 -1
- package/lib/redux/connectors/Progress.js +2 -1
- package/lib/redux/connectors/Progress.js.map +1 -1
- package/lib/redux/connectors/ProgressIndicator.js +2 -1
- package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
- package/lib/redux/connectors/QuickSearch.js +2 -1
- package/lib/redux/connectors/QuickSearch.js.map +1 -1
- package/lib/redux/connectors/SignIn.js +2 -1
- package/lib/redux/connectors/SignIn.js.map +1 -1
- package/lib/redux/connectors/SignOut.js +2 -1
- package/lib/redux/connectors/SignOut.js.map +1 -1
- package/lib/redux/connectors/Tab.js +2 -1
- package/lib/redux/connectors/Tab.js.map +1 -1
- package/lib/redux/reducers/AuthReducer.js +2 -1
- package/lib/redux/reducers/AuthReducer.js.map +1 -1
- package/lib/redux/reducers/ErrorReducer.js +2 -1
- package/lib/redux/reducers/ErrorReducer.js.map +1 -1
- package/lib/redux/reducers/ModalsReducer.js +2 -1
- package/lib/redux/reducers/ModalsReducer.js.map +1 -1
- package/lib/redux/reducers/NotificationReducer.js +2 -1
- package/lib/redux/reducers/NotificationReducer.js.map +1 -1
- package/lib/redux/reducers/PreferencesReducer.js +2 -1
- package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js +2 -1
- package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
- package/lib/redux/store/configureStore.js +2 -1
- package/lib/redux/store/configureStore.js.map +1 -1
- package/lib/utils/browser/Cache.js +2 -1
- package/lib/utils/browser/Cache.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js +8 -4
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/utils/fetch/universalFetch.js +2 -1
- package/lib/utils/fetch/universalFetch.js.map +1 -1
- package/lib/utils/fetch/xhr.js +2 -1
- package/lib/utils/fetch/xhr.js.map +1 -1
- package/lib/utils/helpers/createUUID.js +2 -1
- package/lib/utils/helpers/createUUID.js.map +1 -1
- package/lib/utils/number/DecimalFormat.js +2 -1
- package/lib/utils/number/DecimalFormat.js.map +1 -1
- package/lib/utils/number/formatValue.js +2 -1
- package/lib/utils/number/formatValue.js.map +1 -1
- package/package.json +1 -1
- package/src/models/filters/StringFilterModel.js +2 -2
- package/src/react-server/serverNoSSR.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.35.0](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.34.2...v1.35.0) (2023-10-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **preview-check:** shortcut preview check for better perf ([68aaf2c](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/68aaf2c8a76f50aeaa61595b6502ba2105a711e1))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **StringFilterModel:** Extend StringFilterModel with FilterModel and BaseFilterModel ([d7c6b8d](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/d7c6b8da5ff4cf8be2b32a5b9ee94eb57cb45dbb))
|
|
16
|
+
|
|
5
17
|
## [1.34.2](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.34.1...v1.34.2) (2023-10-02)
|
|
6
18
|
|
|
7
19
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
2
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
3
3
|
import _trimInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/trim";
|
|
4
|
-
import
|
|
4
|
+
import FilterModel from "./FilterModel";
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* StringFilterModel can handle string filters with multiple setting
|
|
7
8
|
*/
|
|
8
|
-
export default class StringFilterModel extends
|
|
9
|
+
export default class StringFilterModel extends FilterModel {
|
|
9
10
|
/**
|
|
10
11
|
*/
|
|
11
12
|
constructor(data, contributions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringFilterModel.js","names":["
|
|
1
|
+
{"version":3,"file":"StringFilterModel.js","names":["FilterModel","StringFilterModel","constructor","data","contributions","_defineProperty","update","attribute","value","_inputvalue","_value","params","param","name","removeFormat","inputvalue","reset","isValid","_isValid","toString","shouldHandleFormat","_context","_context2","values","isMultiple","_mapInstanceProperty","split","call","val","_trimInstanceProperty","outputValues","formattedValue","formatValue","push","validate","join","operator","getContribution","isBSN","layouthint","has","isIBAN","isZipcode","replace"],"sources":["../../../src/models/filters/StringFilterModel.js"],"sourcesContent":["// @flow\n\nimport type { AttributeType, FilterType } from \"../types\";\nimport FilterModel from \"./FilterModel\";\n\n/**\n * StringFilterModel can handle string filters with multiple setting\n */\nexport default class StringFilterModel extends FilterModel {\n _isValid: boolean = true;\n _value: string | null;\n _inputvalue: string;\n\n /**\n */\n constructor(data: Object, contributions: Object) {\n super(data, contributions);\n\n this.update(this.attribute, data.value ?? \"\");\n\n // when formatted value set this to initial input value\n this._inputvalue = this._value ?? \"\";\n }\n\n /**\n * Retrieve the parameters with its value for this filter\n */\n get params(): Array<{ name: string, value: ?string }> {\n if (!this.param) {\n return [];\n }\n\n return [\n {\n name: this.param,\n value: this.removeFormat(this.value),\n },\n ];\n }\n\n /**\n * Getting the value of the filter\n */\n get value(): string | null {\n return this._value;\n }\n\n /**\n */\n get inputvalue(): string {\n return this._inputvalue;\n }\n\n /**\n * Reset the value of this filter to undefined\n */\n reset(): FilterType {\n this._inputvalue = \"\";\n this._value = null;\n\n return this;\n }\n\n /**\n */\n get isValid(): boolean {\n return this._isValid;\n }\n\n /**\n * Update this filter with input name and value\n */\n update(attribute: AttributeType, value: string) {\n this._isValid = true;\n this._inputvalue = typeof value !== \"string\" ? value.toString() : value;\n\n if (this.shouldHandleFormat()) {\n const values = this.isMultiple\n ? this._inputvalue.split(\",\").map((val) => val.trim())\n : [this._inputvalue.trim()];\n\n const outputValues = [];\n for (const val of values) {\n const formattedValue = this.formatValue(val);\n if (formattedValue !== \"\") {\n outputValues.push(formattedValue);\n\n if (!this.attribute.validate(formattedValue)) {\n this._isValid = false;\n }\n }\n }\n\n this._value = outputValues.join(\",\");\n } else {\n this._value = value;\n }\n }\n\n /**\n */\n get operator(): string {\n return this.getContribution(\"operator\", \"\");\n }\n\n /**\n */\n formatValue(value: string): string {\n if (this.shouldHandleFormat()) {\n return this.attribute.formatValue(value);\n }\n return value;\n }\n\n /**\n */\n isBSN(): boolean {\n return this.layouthint.has(\"bsn\");\n }\n\n /**\n */\n isIBAN(): boolean {\n return this.layouthint.has(\"iban\");\n }\n\n /**\n */\n isZipcode(): boolean {\n return this.layouthint.has(\"zipcode\");\n }\n\n /**\n */\n removeFormat(value: ?string): string {\n if (value == null || value.toString() === \"\") {\n return \"\";\n }\n\n if (this.shouldHandleFormat()) {\n return value.replace(/[^a-z0-9,]/gi, \"\");\n }\n\n return value;\n }\n\n /**\n */\n shouldHandleFormat(): boolean {\n return (\n (this.operator === \"exactly\" || this.operator === \"isNot\") &&\n (this.isIBAN() || this.isZipcode() || this.isBSN())\n );\n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AAK;EACd;;EAEA;AACF;EACE8B,KAAKA,CAAA,EAAY;IACf,OAAO,IAAI,CAACC,UAAU,CAACC,GAAG,CAAC,KAAK,CAAC;EACnC;;EAEA;AACF;EACEC,MAAMA,CAAA,EAAY;IAChB,OAAO,IAAI,CAACF,UAAU,CAACC,GAAG,CAAC,MAAM,CAAC;EACpC;;EAEA;AACF;EACEE,SAASA,CAAA,EAAY;IACnB,OAAO,IAAI,CAACH,UAAU,CAACC,GAAG,CAAC,SAAS,CAAC;EACvC;;EAEA;AACF;EACE1B,YAAYA,CAACN,KAAc,EAAU;IACnC,IAAIA,KAAK,IAAI,IAAI,IAAIA,KAAK,CAACW,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;MAC5C,OAAO,EAAE;IACX;IAEA,IAAI,IAAI,CAACC,kBAAkB,CAAC,CAAC,EAAE;MAC7B,OAAOZ,KAAK,CAACmC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;IAC1C;IAEA,OAAOnC,KAAK;EACd;;EAEA;AACF;EACEY,kBAAkBA,CAAA,EAAY;IAC5B,OACE,CAAC,IAAI,CAACgB,QAAQ,KAAK,SAAS,IAAI,IAAI,CAACA,QAAQ,KAAK,OAAO,MACxD,IAAI,CAACK,MAAM,CAAC,CAAC,IAAI,IAAI,CAACC,SAAS,CAAC,CAAC,IAAI,IAAI,CAACJ,KAAK,CAAC,CAAC,CAAC;EAEvD;AACF"}
|
|
@@ -19,6 +19,10 @@ const serverNoSSR = _ref => {
|
|
|
19
19
|
beforeRenderHooks,
|
|
20
20
|
preloadApplication = true
|
|
21
21
|
} = _ref;
|
|
22
|
+
const isPreviewCheck = request.getHeader("X-BI-Preview-Available");
|
|
23
|
+
if (isPreviewCheck) {
|
|
24
|
+
return "<h1>Preview Available</h1>";
|
|
25
|
+
}
|
|
22
26
|
const UUID = createUUID();
|
|
23
27
|
__webpack_nonce__ = UUID; // NOSONAR
|
|
24
28
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverNoSSR.js","names":["createUUID","getFullRequestHref","createReduxStore","setI18n","setApplication","setServerPreferences","setConfigurationTheme","handleErrors","handleBeforeRenderHooks","renderSSRMinimal","createTheme","serverNoSSR","_ref","request","locales","customReducers","serverPreferences","theme","render","template","beforeRenderHooks","preloadApplication","UUID","__webpack_nonce__","requestHref","store","storedTheme","getState","preferences"],"sources":["../../src/react-server/serverNoSSR.js"],"sourcesContent":["// @flow\nimport \"./contextPath\";\n\nimport createUUID from \"../utils/helpers/createUUID\";\nimport { getFullRequestHref } from \"./requestInformation\";\n\nimport {\n createReduxStore,\n setI18n,\n setApplication,\n setServerPreferences,\n setConfigurationTheme,\n handleErrors,\n} from \"./serverUtil\";\n\nimport { handleBeforeRenderHooks } from \"../redux/store/beforeRenderHooks\";\n\nimport renderSSRMinimal from \"./renderSSRMinimal\";\n\nimport createTheme from \"../react-theme/createTheme\";\n\nimport type { TemplateProps } from \"./htmlpage\";\nimport type { BeforeRenderHook } from \"../redux/store/beforeRenderHooks\";\nimport type { PreferenceValue } from \"./serverUtil\";\nimport type { LocaleConfiguration } from \"../i18n/types\";\nimport type { Theme } from \"../react-theme/types\";\n\ntype serverProps = {\n request: HttpServletRequestJava,\n locales?: Array<LocaleConfiguration>,\n customReducers?: Object,\n theme?: Theme | Array<Theme>,\n serverPreferences?: Array<string | PreferenceValue>,\n render: Function,\n template?: (TemplateProps) => string,\n beforeRenderHooks?: Array<BeforeRenderHook>,\n preloadApplication?: boolean,\n};\n\n/**\n */\nconst serverNoSSR = ({\n request,\n locales,\n customReducers,\n serverPreferences = [],\n theme,\n render,\n template,\n beforeRenderHooks,\n preloadApplication = true,\n}: serverProps): string => {\n const UUID = createUUID();\n __webpack_nonce__ = UUID; // NOSONAR\n\n const requestHref = getFullRequestHref(request);\n\n const store = createReduxStore(requestHref, customReducers);\n\n setServerPreferences(store, serverPreferences);\n setConfigurationTheme(store);\n\n if (theme) {\n const storedTheme = store.getState()?.preferences?.theme;\n //$FlowFixMe[incompatible-call]\n createTheme(storedTheme, theme);\n }\n\n setI18n(store, locales, request);\n\n if (preloadApplication) {\n setApplication(store);\n }\n\n handleErrors(store);\n\n handleBeforeRenderHooks(beforeRenderHooks, { store, request });\n\n return renderSSRMinimal({ store, theme, UUID, render, template });\n};\n\nexport default serverNoSSR;\n"],"mappings":"AACA,OAAO,eAAe;AAEtB,OAAOA,UAAU,MAAM,6BAA6B;AACpD,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,SACEC,gBAAgB,EAChBC,OAAO,EACPC,cAAc,EACdC,oBAAoB,EACpBC,qBAAqB,EACrBC,YAAY,QACP,cAAc;AAErB,SAASC,uBAAuB,QAAQ,kCAAkC;AAE1E,OAAOC,gBAAgB,MAAM,oBAAoB;AAEjD,OAAOC,WAAW,MAAM,4BAA4B;AAoBpD;AACA;AACA,MAAMC,WAAW,GAAGC,IAAA,IAUO;EAAA,IAVN;IACnBC,OAAO;IACPC,OAAO;IACPC,cAAc;IACdC,iBAAiB,GAAG,EAAE;IACtBC,KAAK;IACLC,MAAM;IACNC,QAAQ;IACRC,iBAAiB;IACjBC,kBAAkB,GAAG;EACV,CAAC,GAAAT,IAAA;EACZ,MAAMU,IAAI,
|
|
1
|
+
{"version":3,"file":"serverNoSSR.js","names":["createUUID","getFullRequestHref","createReduxStore","setI18n","setApplication","setServerPreferences","setConfigurationTheme","handleErrors","handleBeforeRenderHooks","renderSSRMinimal","createTheme","serverNoSSR","_ref","request","locales","customReducers","serverPreferences","theme","render","template","beforeRenderHooks","preloadApplication","isPreviewCheck","getHeader","UUID","__webpack_nonce__","requestHref","store","storedTheme","getState","preferences"],"sources":["../../src/react-server/serverNoSSR.js"],"sourcesContent":["// @flow\nimport \"./contextPath\";\n\nimport createUUID from \"../utils/helpers/createUUID\";\nimport { getFullRequestHref } from \"./requestInformation\";\n\nimport {\n createReduxStore,\n setI18n,\n setApplication,\n setServerPreferences,\n setConfigurationTheme,\n handleErrors,\n} from \"./serverUtil\";\n\nimport { handleBeforeRenderHooks } from \"../redux/store/beforeRenderHooks\";\n\nimport renderSSRMinimal from \"./renderSSRMinimal\";\n\nimport createTheme from \"../react-theme/createTheme\";\n\nimport type { TemplateProps } from \"./htmlpage\";\nimport type { BeforeRenderHook } from \"../redux/store/beforeRenderHooks\";\nimport type { PreferenceValue } from \"./serverUtil\";\nimport type { LocaleConfiguration } from \"../i18n/types\";\nimport type { Theme } from \"../react-theme/types\";\n\ntype serverProps = {\n request: HttpServletRequestJava,\n locales?: Array<LocaleConfiguration>,\n customReducers?: Object,\n theme?: Theme | Array<Theme>,\n serverPreferences?: Array<string | PreferenceValue>,\n render: Function,\n template?: (TemplateProps) => string,\n beforeRenderHooks?: Array<BeforeRenderHook>,\n preloadApplication?: boolean,\n};\n\n/**\n */\nconst serverNoSSR = ({\n request,\n locales,\n customReducers,\n serverPreferences = [],\n theme,\n render,\n template,\n beforeRenderHooks,\n preloadApplication = true,\n}: serverProps): string => {\n const isPreviewCheck = request.getHeader(\"X-BI-Preview-Available\");\n if (isPreviewCheck) {\n return \"<h1>Preview Available</h1>\";\n }\n\n const UUID = createUUID();\n __webpack_nonce__ = UUID; // NOSONAR\n\n const requestHref = getFullRequestHref(request);\n\n const store = createReduxStore(requestHref, customReducers);\n\n setServerPreferences(store, serverPreferences);\n setConfigurationTheme(store);\n\n if (theme) {\n const storedTheme = store.getState()?.preferences?.theme;\n //$FlowFixMe[incompatible-call]\n createTheme(storedTheme, theme);\n }\n\n setI18n(store, locales, request);\n\n if (preloadApplication) {\n setApplication(store);\n }\n\n handleErrors(store);\n\n handleBeforeRenderHooks(beforeRenderHooks, { store, request });\n\n return renderSSRMinimal({ store, theme, UUID, render, template });\n};\n\nexport default serverNoSSR;\n"],"mappings":"AACA,OAAO,eAAe;AAEtB,OAAOA,UAAU,MAAM,6BAA6B;AACpD,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,SACEC,gBAAgB,EAChBC,OAAO,EACPC,cAAc,EACdC,oBAAoB,EACpBC,qBAA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AAK;IAAEO,IAAI;IAAEN,MAAM;IAAEC;EAAS,CAAC,CAAC;AACnE,CAAC;AAED,eAAeR,WAAW"}
|
|
@@ -7,75 +7,90 @@ exports.VALIDATE_DEBOUNCE_TIMEOUT = exports.USERPROFILE_PATH = exports.UPLOAD_PA
|
|
|
7
7
|
/**
|
|
8
8
|
* path to content service
|
|
9
9
|
*/
|
|
10
|
-
const CONTENT_PATH =
|
|
10
|
+
const CONTENT_PATH = `/content`;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Upload Path
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
exports.CONTENT_PATH = CONTENT_PATH;
|
|
16
|
+
const UPLOAD_PATH = `/uploadFile`;
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Captcha Path
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
exports.UPLOAD_PATH = UPLOAD_PATH;
|
|
22
|
+
const CAPTCHA_PATH = `/captchaServices`;
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* Path to change password page / component
|
|
24
26
|
*/
|
|
25
|
-
|
|
27
|
+
exports.CAPTCHA_PATH = CAPTCHA_PATH;
|
|
28
|
+
const CHANGEPASSWORD_PATH = "/change-password";
|
|
26
29
|
|
|
27
30
|
/**
|
|
28
31
|
* Path to user profile page / component
|
|
29
32
|
*/
|
|
30
|
-
|
|
33
|
+
exports.CHANGEPASSWORD_PATH = CHANGEPASSWORD_PATH;
|
|
34
|
+
const USERPROFILE_PATH = "/user";
|
|
31
35
|
|
|
32
36
|
/**
|
|
33
37
|
* Path to resources in the Be Informed repository
|
|
34
38
|
*/
|
|
35
|
-
|
|
39
|
+
exports.USERPROFILE_PATH = USERPROFILE_PATH;
|
|
40
|
+
const RESOURCE_PATH = "/resource";
|
|
36
41
|
|
|
37
42
|
/**
|
|
38
43
|
* Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment
|
|
39
44
|
*/
|
|
40
|
-
|
|
45
|
+
exports.RESOURCE_PATH = RESOURCE_PATH;
|
|
46
|
+
const PARAMETER_SEPARATOR = "~";
|
|
41
47
|
|
|
42
48
|
/**
|
|
43
49
|
* Timeversion filter name
|
|
44
50
|
*/
|
|
45
|
-
|
|
51
|
+
exports.PARAMETER_SEPARATOR = PARAMETER_SEPARATOR;
|
|
52
|
+
const TIMEVERSION_FILTER_NAME = "entryDate";
|
|
53
|
+
exports.TIMEVERSION_FILTER_NAME = TIMEVERSION_FILTER_NAME;
|
|
46
54
|
const PARAMETER_OVERVIEW_VIEWTYPE = "viewType";
|
|
47
55
|
/**
|
|
48
56
|
* Parameter name for the viewtype toggle
|
|
49
57
|
*/
|
|
50
|
-
const DEFAULT_UI_PARAMETERS =
|
|
58
|
+
const DEFAULT_UI_PARAMETERS = [PARAMETER_OVERVIEW_VIEWTYPE];
|
|
51
59
|
|
|
52
60
|
/**
|
|
53
61
|
*/
|
|
54
|
-
|
|
62
|
+
exports.DEFAULT_UI_PARAMETERS = DEFAULT_UI_PARAMETERS;
|
|
63
|
+
const ISO_DATE_FORMAT = "yyyy-MM-dd";
|
|
55
64
|
/**
|
|
56
65
|
*/
|
|
57
|
-
|
|
66
|
+
exports.ISO_DATE_FORMAT = ISO_DATE_FORMAT;
|
|
67
|
+
const ISO_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
|
|
58
68
|
/**
|
|
59
69
|
*/
|
|
60
|
-
|
|
70
|
+
exports.ISO_DATETIME_FORMAT = ISO_DATETIME_FORMAT;
|
|
71
|
+
const ISO_TIME_FORMAT = "HH:mm:ss";
|
|
61
72
|
/**
|
|
62
73
|
*/
|
|
63
|
-
|
|
74
|
+
exports.ISO_TIME_FORMAT = ISO_TIME_FORMAT;
|
|
75
|
+
const ISO_TIMESTAMP_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS";
|
|
64
76
|
/**
|
|
65
77
|
* week starts on monday by default
|
|
66
78
|
*/
|
|
67
|
-
|
|
79
|
+
exports.ISO_TIMESTAMP_FORMAT = ISO_TIMESTAMP_FORMAT;
|
|
80
|
+
const DEFAULT_WEEK_STARTS_ON = 1;
|
|
68
81
|
|
|
69
82
|
/**
|
|
70
83
|
* first week indicated by the 1st of january
|
|
71
84
|
*/
|
|
72
|
-
|
|
85
|
+
exports.DEFAULT_WEEK_STARTS_ON = DEFAULT_WEEK_STARTS_ON;
|
|
86
|
+
const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;
|
|
73
87
|
|
|
74
88
|
/**
|
|
75
89
|
* Key codes
|
|
76
90
|
* @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}
|
|
77
91
|
*/
|
|
78
|
-
|
|
92
|
+
exports.DEFAULT_FIRST_WEEK_CONTAINS_DATE = DEFAULT_FIRST_WEEK_CONTAINS_DATE;
|
|
93
|
+
const KEYCODES = {
|
|
79
94
|
TAB: 9,
|
|
80
95
|
ENTER: 13,
|
|
81
96
|
ESCAPE: 27,
|
|
@@ -91,16 +106,19 @@ const KEYCODES = exports.KEYCODES = {
|
|
|
91
106
|
/**
|
|
92
107
|
* @type {boolean}
|
|
93
108
|
*/
|
|
94
|
-
|
|
109
|
+
exports.KEYCODES = KEYCODES;
|
|
110
|
+
const IS_SYNC = typeof dataFetcher !== "undefined";
|
|
95
111
|
/**
|
|
96
112
|
* @type {boolean}
|
|
97
113
|
*/
|
|
98
|
-
|
|
114
|
+
exports.IS_SYNC = IS_SYNC;
|
|
115
|
+
const IS_SERVER = IS_SYNC;
|
|
99
116
|
|
|
100
117
|
/**
|
|
101
118
|
* @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}
|
|
102
119
|
*/
|
|
103
|
-
|
|
120
|
+
exports.IS_SERVER = IS_SERVER;
|
|
121
|
+
const NOTIFICATION_TYPES = {
|
|
104
122
|
SUCCESS: "SUCCESS",
|
|
105
123
|
INFO: "INFO",
|
|
106
124
|
WARNING: "WARNING",
|
|
@@ -111,7 +129,8 @@ const NOTIFICATION_TYPES = exports.NOTIFICATION_TYPES = {
|
|
|
111
129
|
* SUPPORTED HTTP METHODS
|
|
112
130
|
* @type {{POST: string, GET: string}}
|
|
113
131
|
*/
|
|
114
|
-
|
|
132
|
+
exports.NOTIFICATION_TYPES = NOTIFICATION_TYPES;
|
|
133
|
+
const HTTP_METHODS = {
|
|
115
134
|
GET: "GET",
|
|
116
135
|
POST: "POST"
|
|
117
136
|
};
|
|
@@ -120,7 +139,8 @@ const HTTP_METHODS = exports.HTTP_METHODS = {
|
|
|
120
139
|
* POSSIBLE MODULARUI STATUSSES
|
|
121
140
|
* @type {{LOADING: string, ERROR: string, FINISHED: string}}
|
|
122
141
|
*/
|
|
123
|
-
|
|
142
|
+
exports.HTTP_METHODS = HTTP_METHODS;
|
|
143
|
+
const MODULARUI_STATUS = {
|
|
124
144
|
LOADING: "LOADING",
|
|
125
145
|
FINISHED: "FINISHED",
|
|
126
146
|
ERROR: "ERROR"
|
|
@@ -130,7 +150,8 @@ const MODULARUI_STATUS = exports.MODULARUI_STATUS = {
|
|
|
130
150
|
* POSSIBLE AUTOSAVE STATUSSES
|
|
131
151
|
* @type {{START: string, FINISHED: string}}
|
|
132
152
|
*/
|
|
133
|
-
|
|
153
|
+
exports.MODULARUI_STATUS = MODULARUI_STATUS;
|
|
154
|
+
const AUTOSAVE_STATUS = {
|
|
134
155
|
START: "START",
|
|
135
156
|
FINISHED: "FINISHED"
|
|
136
157
|
};
|
|
@@ -138,37 +159,49 @@ const AUTOSAVE_STATUS = exports.AUTOSAVE_STATUS = {
|
|
|
138
159
|
/**
|
|
139
160
|
* DEBOUNCE INPUT TIMEOUT
|
|
140
161
|
*/
|
|
141
|
-
|
|
162
|
+
exports.AUTOSAVE_STATUS = AUTOSAVE_STATUS;
|
|
163
|
+
const INPUT_DEBOUNCE_TIMEOUT = 100;
|
|
142
164
|
|
|
143
165
|
/**
|
|
144
166
|
* DEBOUNCE VALIDATION TIMEOUT
|
|
145
167
|
*/
|
|
146
|
-
|
|
168
|
+
exports.INPUT_DEBOUNCE_TIMEOUT = INPUT_DEBOUNCE_TIMEOUT;
|
|
169
|
+
const VALIDATE_DEBOUNCE_TIMEOUT = 500;
|
|
147
170
|
|
|
148
171
|
/**
|
|
149
172
|
* ATTRIBUTE WIDTH
|
|
150
173
|
*/
|
|
151
|
-
|
|
174
|
+
exports.VALIDATE_DEBOUNCE_TIMEOUT = VALIDATE_DEBOUNCE_TIMEOUT;
|
|
175
|
+
const ATTRIBUTE_WIDTH = {
|
|
152
176
|
EXTRA_SMALL: "EXTRA_SMALL",
|
|
153
177
|
SMALL: "SMALL",
|
|
154
178
|
MEDIUM: "MEDIUM",
|
|
155
179
|
LARGE: "LARGE",
|
|
156
180
|
EXTRA_LARGE: "EXTRA_LARGE"
|
|
157
181
|
};
|
|
158
|
-
|
|
159
|
-
const
|
|
182
|
+
exports.ATTRIBUTE_WIDTH = ATTRIBUTE_WIDTH;
|
|
183
|
+
const ALL_CONTENT_IN_DATA_SETTING = "hasAllContentInData";
|
|
184
|
+
exports.ALL_CONTENT_IN_DATA_SETTING = ALL_CONTENT_IN_DATA_SETTING;
|
|
185
|
+
const INTERNAL_LOGIN_TYPE = {
|
|
160
186
|
JAAS: "JAAS",
|
|
161
187
|
PAC4J_FORM: "PAC4J_FORM",
|
|
162
188
|
PAC4J_BASIC: "PAC4J_BASIC"
|
|
163
189
|
};
|
|
164
|
-
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
const
|
|
190
|
+
exports.INTERNAL_LOGIN_TYPE = INTERNAL_LOGIN_TYPE;
|
|
191
|
+
const LOGIN_TYPE = "security.clients";
|
|
192
|
+
exports.LOGIN_TYPE = LOGIN_TYPE;
|
|
193
|
+
const LOGIN_PATH_SETTING = "FormClient.login_url";
|
|
194
|
+
exports.LOGIN_PATH_SETTING = LOGIN_PATH_SETTING;
|
|
195
|
+
const LOGIN_USERNAME_SETTING = "FormClient.username_field_name";
|
|
196
|
+
exports.LOGIN_USERNAME_SETTING = LOGIN_USERNAME_SETTING;
|
|
197
|
+
const LOGIN_PASSWORD_SETTING = "FormClient.password_field_name";
|
|
198
|
+
exports.LOGIN_PASSWORD_SETTING = LOGIN_PASSWORD_SETTING;
|
|
199
|
+
const LOGOUT_PATH_SETTING = "FormClient.logout_url";
|
|
200
|
+
exports.LOGOUT_PATH_SETTING = LOGOUT_PATH_SETTING;
|
|
201
|
+
const DEFAULT_AUTHENTICATION_TYPE = {
|
|
170
202
|
name: "Form based authentication",
|
|
171
203
|
authentication: "DefaultFormClient",
|
|
172
204
|
isPrimary: true
|
|
173
205
|
};
|
|
206
|
+
exports.DEFAULT_AUTHENTICATION_TYPE = DEFAULT_AUTHENTICATION_TYPE;
|
|
174
207
|
//# sourceMappingURL=Constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","names":["CONTENT_PATH","exports","UPLOAD_PATH","CAPTCHA_PATH","CHANGEPASSWORD_PATH","USERPROFILE_PATH","RESOURCE_PATH","PARAMETER_SEPARATOR","TIMEVERSION_FILTER_NAME","PARAMETER_OVERVIEW_VIEWTYPE","DEFAULT_UI_PARAMETERS","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","KEYCODES","TAB","ENTER","ESCAPE","SPACE","PAGE_UP","PAGE_DOWN","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","IS_SYNC","dataFetcher","IS_SERVER","NOTIFICATION_TYPES","SUCCESS","INFO","WARNING","ERROR","HTTP_METHODS","GET","POST","MODULARUI_STATUS","LOADING","FINISHED","AUTOSAVE_STATUS","START","INPUT_DEBOUNCE_TIMEOUT","VALIDATE_DEBOUNCE_TIMEOUT","ATTRIBUTE_WIDTH","EXTRA_SMALL","SMALL","MEDIUM","LARGE","EXTRA_LARGE","ALL_CONTENT_IN_DATA_SETTING","INTERNAL_LOGIN_TYPE","JAAS","PAC4J_FORM","PAC4J_BASIC","LOGIN_TYPE","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING","DEFAULT_AUTHENTICATION_TYPE","name","authentication","isPrimary"],"sources":["../../src/constants/Constants.js"],"sourcesContent":["// @flow\n/**\n * path to content service\n */\nexport const CONTENT_PATH = `/content`;\n\n/**\n * Upload Path\n */\nexport const UPLOAD_PATH = `/uploadFile`;\n\n/**\n * Captcha Path\n */\nexport const CAPTCHA_PATH = `/captchaServices`;\n\n/**\n * Path to change password page / component\n */\nexport const CHANGEPASSWORD_PATH = \"/change-password\";\n\n/**\n * Path to user profile page / component\n */\nexport const USERPROFILE_PATH = \"/user\";\n\n/**\n * Path to resources in the Be Informed repository\n */\nexport const RESOURCE_PATH = \"/resource\";\n\n/**\n * Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment\n */\nexport const PARAMETER_SEPARATOR = \"~\";\n\n/**\n * Timeversion filter name\n */\nexport const TIMEVERSION_FILTER_NAME = \"entryDate\";\n\nconst PARAMETER_OVERVIEW_VIEWTYPE = \"viewType\";\n/**\n * Parameter name for the viewtype toggle\n */\nexport const DEFAULT_UI_PARAMETERS: Array<string> = [\n PARAMETER_OVERVIEW_VIEWTYPE,\n];\n\n/**\n */\nexport const ISO_DATE_FORMAT = \"yyyy-MM-dd\";\n/**\n */\nexport const ISO_DATETIME_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss\";\n/**\n */\nexport const ISO_TIME_FORMAT = \"HH:mm:ss\";\n/**\n */\nexport const ISO_TIMESTAMP_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss.SSS\";\n/**\n * week starts on monday by default\n */\nexport const DEFAULT_WEEK_STARTS_ON = 1;\n\n/**\n * first week indicated by the 1st of january\n */\nexport const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;\n\n/**\n * Key codes\n * @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}\n */\nexport const KEYCODES = {\n TAB: 9,\n ENTER: 13,\n ESCAPE: 27,\n SPACE: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n};\n\n/**\n * @type {boolean}\n */\nexport const IS_SYNC = typeof dataFetcher !== \"undefined\";\n/**\n * @type {boolean}\n */\nexport const IS_SERVER = IS_SYNC;\n\n/**\n * @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}\n */\nexport const NOTIFICATION_TYPES = {\n SUCCESS: \"SUCCESS\",\n INFO: \"INFO\",\n WARNING: \"WARNING\",\n ERROR: \"ERROR\",\n};\n\n/**\n * SUPPORTED HTTP METHODS\n * @type {{POST: string, GET: string}}\n */\nexport const HTTP_METHODS = {\n GET: \"GET\",\n POST: \"POST\",\n};\n\n/**\n * POSSIBLE MODULARUI STATUSSES\n * @type {{LOADING: string, ERROR: string, FINISHED: string}}\n */\nexport const MODULARUI_STATUS = {\n LOADING: \"LOADING\",\n FINISHED: \"FINISHED\",\n ERROR: \"ERROR\",\n};\n\n/**\n * POSSIBLE AUTOSAVE STATUSSES\n * @type {{START: string, FINISHED: string}}\n */\nexport const AUTOSAVE_STATUS = {\n START: \"START\",\n FINISHED: \"FINISHED\",\n};\n\n/**\n * DEBOUNCE INPUT TIMEOUT\n */\nexport const INPUT_DEBOUNCE_TIMEOUT = 100;\n\n/**\n * DEBOUNCE VALIDATION TIMEOUT\n */\nexport const VALIDATE_DEBOUNCE_TIMEOUT = 500;\n\n/**\n * ATTRIBUTE WIDTH\n */\nexport const ATTRIBUTE_WIDTH = {\n EXTRA_SMALL: \"EXTRA_SMALL\",\n SMALL: \"SMALL\",\n MEDIUM: \"MEDIUM\",\n LARGE: \"LARGE\",\n EXTRA_LARGE: \"EXTRA_LARGE\",\n};\n\nexport const ALL_CONTENT_IN_DATA_SETTING = \"hasAllContentInData\";\n\nexport const INTERNAL_LOGIN_TYPE = {\n JAAS: \"JAAS\",\n PAC4J_FORM: \"PAC4J_FORM\",\n PAC4J_BASIC: \"PAC4J_BASIC\",\n};\nexport const LOGIN_TYPE = \"security.clients\";\nexport const LOGIN_PATH_SETTING = \"FormClient.login_url\";\nexport const LOGIN_USERNAME_SETTING = \"FormClient.username_field_name\";\nexport const LOGIN_PASSWORD_SETTING = \"FormClient.password_field_name\";\nexport const LOGOUT_PATH_SETTING = \"FormClient.logout_url\";\n\nexport const DEFAULT_AUTHENTICATION_TYPE = {\n name: \"Form based authentication\",\n authentication: \"DefaultFormClient\",\n isPrimary: true,\n};\n"],"mappings":";;;;;;AACA;AACA;AACA;AACO,MAAMA,YAAY,
|
|
1
|
+
{"version":3,"file":"Constants.js","names":["CONTENT_PATH","exports","UPLOAD_PATH","CAPTCHA_PATH","CHANGEPASSWORD_PATH","USERPROFILE_PATH","RESOURCE_PATH","PARAMETER_SEPARATOR","TIMEVERSION_FILTER_NAME","PARAMETER_OVERVIEW_VIEWTYPE","DEFAULT_UI_PARAMETERS","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","KEYCODES","TAB","ENTER","ESCAPE","SPACE","PAGE_UP","PAGE_DOWN","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","IS_SYNC","dataFetcher","IS_SERVER","NOTIFICATION_TYPES","SUCCESS","INFO","WARNING","ERROR","HTTP_METHODS","GET","POST","MODULARUI_STATUS","LOADING","FINISHED","AUTOSAVE_STATUS","START","INPUT_DEBOUNCE_TIMEOUT","VALIDATE_DEBOUNCE_TIMEOUT","ATTRIBUTE_WIDTH","EXTRA_SMALL","SMALL","MEDIUM","LARGE","EXTRA_LARGE","ALL_CONTENT_IN_DATA_SETTING","INTERNAL_LOGIN_TYPE","JAAS","PAC4J_FORM","PAC4J_BASIC","LOGIN_TYPE","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING","DEFAULT_AUTHENTICATION_TYPE","name","authentication","isPrimary"],"sources":["../../src/constants/Constants.js"],"sourcesContent":["// @flow\n/**\n * path to content service\n */\nexport const CONTENT_PATH = `/content`;\n\n/**\n * Upload Path\n */\nexport const UPLOAD_PATH = `/uploadFile`;\n\n/**\n * Captcha Path\n */\nexport const CAPTCHA_PATH = `/captchaServices`;\n\n/**\n * Path to change password page / component\n */\nexport const CHANGEPASSWORD_PATH = \"/change-password\";\n\n/**\n * Path to user profile page / component\n */\nexport const USERPROFILE_PATH = \"/user\";\n\n/**\n * Path to resources in the Be Informed repository\n */\nexport const RESOURCE_PATH = \"/resource\";\n\n/**\n * Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment\n */\nexport const PARAMETER_SEPARATOR = \"~\";\n\n/**\n * Timeversion filter name\n */\nexport const TIMEVERSION_FILTER_NAME = \"entryDate\";\n\nconst PARAMETER_OVERVIEW_VIEWTYPE = \"viewType\";\n/**\n * Parameter name for the viewtype toggle\n */\nexport const DEFAULT_UI_PARAMETERS: Array<string> = [\n PARAMETER_OVERVIEW_VIEWTYPE,\n];\n\n/**\n */\nexport const ISO_DATE_FORMAT = \"yyyy-MM-dd\";\n/**\n */\nexport const ISO_DATETIME_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss\";\n/**\n */\nexport const ISO_TIME_FORMAT = \"HH:mm:ss\";\n/**\n */\nexport const ISO_TIMESTAMP_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss.SSS\";\n/**\n * week starts on monday by default\n */\nexport const DEFAULT_WEEK_STARTS_ON = 1;\n\n/**\n * first week indicated by the 1st of january\n */\nexport const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;\n\n/**\n * Key codes\n * @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}\n */\nexport const KEYCODES = {\n TAB: 9,\n ENTER: 13,\n ESCAPE: 27,\n SPACE: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n};\n\n/**\n * @type {boolean}\n */\nexport const IS_SYNC = typeof dataFetcher !== \"undefined\";\n/**\n * @type {boolean}\n */\nexport const IS_SERVER = IS_SYNC;\n\n/**\n * @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}\n */\nexport const NOTIFICATION_TYPES = {\n SUCCESS: \"SUCCESS\",\n INFO: \"INFO\",\n WARNING: \"WARNING\",\n ERROR: \"ERROR\",\n};\n\n/**\n * SUPPORTED HTTP METHODS\n * @type {{POST: string, GET: string}}\n */\nexport const HTTP_METHODS = {\n GET: \"GET\",\n POST: \"POST\",\n};\n\n/**\n * POSSIBLE MODULARUI STATUSSES\n * @type {{LOADING: string, ERROR: string, FINISHED: string}}\n */\nexport const MODULARUI_STATUS = {\n LOADING: \"LOADING\",\n FINISHED: \"FINISHED\",\n ERROR: \"ERROR\",\n};\n\n/**\n * POSSIBLE AUTOSAVE STATUSSES\n * @type {{START: string, FINISHED: string}}\n */\nexport const AUTOSAVE_STATUS = {\n START: \"START\",\n FINISHED: \"FINISHED\",\n};\n\n/**\n * DEBOUNCE INPUT TIMEOUT\n */\nexport const INPUT_DEBOUNCE_TIMEOUT = 100;\n\n/**\n * DEBOUNCE VALIDATION TIMEOUT\n */\nexport const VALIDATE_DEBOUNCE_TIMEOUT = 500;\n\n/**\n * ATTRIBUTE WIDTH\n */\nexport const ATTRIBUTE_WIDTH = {\n EXTRA_SMALL: \"EXTRA_SMALL\",\n SMALL: \"SMALL\",\n MEDIUM: \"MEDIUM\",\n LARGE: \"LARGE\",\n EXTRA_LARGE: \"EXTRA_LARGE\",\n};\n\nexport const ALL_CONTENT_IN_DATA_SETTING = \"hasAllContentInData\";\n\nexport const INTERNAL_LOGIN_TYPE = {\n JAAS: \"JAAS\",\n PAC4J_FORM: \"PAC4J_FORM\",\n PAC4J_BASIC: \"PAC4J_BASIC\",\n};\nexport const LOGIN_TYPE = \"security.clients\";\nexport const LOGIN_PATH_SETTING = \"FormClient.login_url\";\nexport const LOGIN_USERNAME_SETTING = \"FormClient.username_field_name\";\nexport const LOGIN_PASSWORD_SETTING = \"FormClient.password_field_name\";\nexport const LOGOUT_PATH_SETTING = \"FormClient.logout_url\";\n\nexport const DEFAULT_AUTHENTICATION_TYPE = {\n name: \"Form based authentication\",\n authentication: \"DefaultFormClient\",\n isPrimary: true,\n};\n"],"mappings":";;;;;;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAI,UAAS;;AAEtC;AACA;AACA;AAFAC,OAAA,CAAAD,YAAA,GAAAA,YAAA;AAGO,MAAME,WAAW,GAAI,aAAY;;AAExC;AACA;AACA;AAFAD,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAGO,MAAMC,YAAY,GAAI,kBAAiB;;AAE9C;AACA;AACA;AAFAF,OAAA,CAAAE,YAAA,GAAAA,YAAA;AAGO,MAAMC,mBAAmB,GAAG,kBAAkB;;AAErD;AACA;AACA;AAFAH,OAAA,CAAAG,mBAAA,GAAAA,mBAAA;AAGO,MAAMC,gBAAgB,GAAG,OAAO;;AAEvC;AACA;AACA;AAFAJ,OAAA,CAAAI,gBAAA,GAAAA,gBAAA;AAGO,MAAMC,aAAa,GAAG,WAAW;;AAExC;AACA;AACA;AAFAL,OAAA,CAAAK,aAAA,GAAAA,aAAA;AAGO,MAAMC,mBAAmB,GAAG,GAAG;;AAEtC;AACA;AACA;AAFAN,OA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MAAMC,mBAAmB,GAAG;EACjCC,IAAI,EAAE,MAAM;EACZC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE;AACf,CAAC;AAACvD,OAAA,CAAAoD,mBAAA,GAAAA,mBAAA;AACK,MAAMI,UAAU,GAAG,kBAAkB;AAACxD,OAAA,CAAAwD,UAAA,GAAAA,UAAA;AACtC,MAAMC,kBAAkB,GAAG,sBAAsB;AAACzD,OAAA,CAAAyD,kBAAA,GAAAA,kBAAA;AAClD,MAAMC,sBAAsB,GAAG,gCAAgC;AAAC1D,OAAA,CAAA0D,sBAAA,GAAAA,sBAAA;AAChE,MAAMC,sBAAsB,GAAG,gCAAgC;AAAC3D,OAAA,CAAA2D,sBAAA,GAAAA,sBAAA;AAChE,MAAMC,mBAAmB,GAAG,uBAAuB;AAAC5D,OAAA,CAAA4D,mBAAA,GAAAA,mBAAA;AAEpD,MAAMC,2BAA2B,GAAG;EACzCC,IAAI,EAAE,2BAA2B;EACjCC,cAAc,EAAE,mBAAmB;EACnCC,SAAS,EAAE;AACb,CAAC;AAAChE,OAAA,CAAA6D,2BAAA,GAAAA,2BAAA"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.LayoutHintConfiguration = void 0;
|
|
7
|
-
const LayoutHintConfiguration =
|
|
7
|
+
const LayoutHintConfiguration = {
|
|
8
8
|
MANDATORY: {
|
|
9
9
|
hint: "mandatory",
|
|
10
10
|
description: {
|
|
@@ -145,4 +145,5 @@ const LayoutHintConfiguration = exports.LayoutHintConfiguration = {
|
|
|
145
145
|
component: ["attribute"]
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
|
+
exports.LayoutHintConfiguration = LayoutHintConfiguration;
|
|
148
149
|
//# sourceMappingURL=LayoutHintConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutHintConfig.js","names":["LayoutHintConfiguration","
|
|
1
|
+
{"version":3,"file":"LayoutHintConfig.js","names":["LayoutHintConfiguration","MANDATORY","hint","description","NL","EN","link","component","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE_ACTION","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CONFIRM_PASSWORD","TITLE","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","CREATE_ACTION","UPDATE_ACTION","DELETE_ACTION","SORT_OPTIONS","CASEVIEW_LINK","DISABLED","exports"],"sources":["../../src/constants/LayoutHintConfig.js"],"sourcesContent":["// @flow\nexport const LayoutHintConfiguration = {\n MANDATORY: {\n hint: \"mandatory\",\n description: {\n NL: \"Geeft aan of een attribuut verplicht is. Dient samen met de dependency hint gebruikt te worden.\",\n EN: \"Indicates a mandatory attribute.\\nShould be used together with the dependency hint.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n DEPENDENT_ATTRIBUTE_CONTROL: {\n hint: \"dependent-control:${unique-control-id}\",\n description: {\n NL: \"Geeft aan dat dit het attribuut is waar attributen van afhankelijk zijn. Het unique-control-id is een uniek id dat kan worden gebruikt in the hint voor de show|hide actie op het afhankelijke attribuut.\",\n EN: \"Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\",\n },\n link: \"\",\n component: [\"attribute/boolean\", \"attribute/choice\"],\n },\n DEPENDENT_ATTRIBUTE_ACTION: {\n hint: \"dependent-attribute:(show|hide) when dependent-control:${unique-control-id} (equals|includes|notEquals|notIncludes) [${codemaps}]\",\n description: {\n NL: \"Toon of verberg een attribute dat afhankelijk is van de geselecteerde opties van een keuze attribute\",\n EN: \"To show or hide an attribute dependent on options of the choice control codemap that are selected or not selected.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n SHOW_ONE_RESULT_AS_DETAIL: {\n hint: \"show-one-result-as-detail\",\n description: {\n NL: \"Een lijst met maar één item mag direct als detail getoond worden.\",\n EN: \"A list with only one detail must be shown as a detail.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n HIDE_WHEN_EMPTY: {\n hint: \"hide-when-empty\",\n description: {\n NL: \"Een lijst zonder lijst-items en lijst-taken dient niet getoond worden.\",\n EN: \"A list without list-items and list-tasks should not be shown.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n INITIAL_FILTER: {\n hint: \"initial-filter:${filter-name}=${initial-value}\",\n description: {\n NL: \"Laad de lijst met een standaardwaarde voor een filter, er is geen controle op het bestaan van het filter. Als het filter niet is geconfigureerd, treedt er een fout op. Houd er rekening mee dat filters hoofdlettergevoelig zijn.\",\n EN: \"Load the list with a default value for a filter, there is no check for the existence of the filter. If the filter is not configured, an error occurs. Keep in mind that filters are case sensitive.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n CONFIRM_PASSWORD: {\n hint: \"confirm-password\",\n description: {\n NL: \"Wachtwoord attribuut moet bevestigd worden dmv een tweede wachtwoord attribuut.\",\n EN: \"Password attribute must be confirmed using a second password attribute.\",\n },\n link: \"\",\n component: [\"attribute/password\"],\n },\n TITLE: {\n hint: \"title\",\n description: {\n NL: \"Markeert een attribuut als een titel attribuut\",\n EN: \"Marks an attribute as a title attribute\",\n },\n link: \"\",\n component: [\n \"caseview_table\",\n \"codemap\",\n \"list/appointment_table\",\n \"list/assignment_table\",\n \"list/caseproperties_table\",\n \"list/document_table\",\n \"list/timelimit_table\",\n \"list/eventhistory_table\",\n \"list/note_table\",\n \"list/record_table\",\n \"list/case_table\",\n \"list/casesearch_table\",\n \"list/datastore_table\",\n \"list/datastoreview_table\",\n \"list/instrumentresult_table\",\n \"list/event_table\",\n \"list/user_table\",\n \"list/organization_table\",\n ],\n },\n INITIAL_TOTAL_FILESIZE: {\n hint: \"initial-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de reeds gebruikte file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n MAX_TOTAL_FILESIZE: {\n hint: \"max-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de maximaal toegestane file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n CREATE_ACTION: {\n hint: \"create\",\n description: {\n NL: \"Markeer taak als creëer taak.\",\n EN: \"Mark task as create task\",\n },\n component: [\"form\"],\n },\n UPDATE_ACTION: {\n hint: \"update\",\n description: {\n NL: \"Markeer taak als bewerk taak.\",\n EN: \"Mark task as update task\",\n },\n component: [\"form\"],\n },\n DELETE_ACTION: {\n hint: \"delete\",\n description: {\n NL: \"Markeer taak als verwijder taak.\",\n EN: \"Mark task as delete task\",\n },\n component: [\"form\"],\n },\n SORT_OPTIONS: {\n hint: \"sort-options\",\n description: {\n NL: \"Sorteer opties alfabetisch\",\n EN: \"Sort options alphabetically\",\n },\n component: [\"attribute/choice\"],\n },\n CASEVIEW_LINK: {\n hint: \"case-view-link\",\n description: {\n NL: \"Markeer een case id reference attribute als de referentie naar de case view. Vervangt de self link van een lijst item\",\n EN: \"Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\",\n },\n component: [\"attribute/reference\", \"list/datastore_table\"],\n },\n DISABLED: {\n hint: \"disabled\",\n description: {\n NL: \"Geeft aan of een attribuut uitgeschakeld is.\",\n EN: \"Indicates a disabled attribute.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n};\n"],"mappings":";;;;;;AACO,MAAMA,uBAAuB,GAAG;EACrCC,SAAS,EAAE;IACTC,IAAI,EAAE,WAAW;IACjBC,WAAW,EAAE;MACXC,EAAE,EAAE,iGAAiG;MACrGC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB,CA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AC;EACDa,YAAY,EAAE;IACZlB,IAAI,EAAE,cAAc;IACpBC,WAAW,EAAE;MACXC,EAAE,EAAE,4BAA4B;MAChCC,EAAE,EAAE;IACN,CAAC;IACDE,SAAS,EAAE,CAAC,kBAAkB;EAChC,CAAC;EACDc,aAAa,EAAE;IACbnB,IAAI,EAAE,gBAAgB;IACtBC,WAAW,EAAE;MACXC,EAAE,EAAE,uHAAuH;MAC3HC,EAAE,EAAE;IACN,CAAC;IACDE,SAAS,EAAE,CAAC,qBAAqB,EAAE,sBAAsB;EAC3D,CAAC;EACDe,QAAQ,EAAE;IACRpB,IAAI,EAAE,UAAU;IAChBC,WAAW,EAAE;MACXC,EAAE,EAAE,8CAA8C;MAClDC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB;AACF,CAAC;AAACgB,OAAA,CAAAvB,uBAAA,GAAAA,uBAAA"}
|
|
@@ -18,13 +18,14 @@ const getHint = hint => {
|
|
|
18
18
|
/**
|
|
19
19
|
* Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.
|
|
20
20
|
*/
|
|
21
|
-
const MANDATORY =
|
|
21
|
+
const MANDATORY = getHint("MANDATORY");
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Layout-hint: Indicates a disabled attribute.
|
|
25
25
|
* @constant
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
exports.MANDATORY = MANDATORY;
|
|
28
|
+
const DISABLED = getHint("DISABLED");
|
|
28
29
|
|
|
29
30
|
/*
|
|
30
31
|
* --------------------------------
|
|
@@ -34,10 +35,12 @@ const DISABLED = exports.DISABLED = getHint("DISABLED");
|
|
|
34
35
|
/**
|
|
35
36
|
* Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.
|
|
36
37
|
*/
|
|
37
|
-
|
|
38
|
+
exports.DISABLED = DISABLED;
|
|
39
|
+
const DEPENDENT_ATTRIBUTE_CONTROL = "dependent-control";
|
|
38
40
|
/**
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
exports.DEPENDENT_ATTRIBUTE_CONTROL = DEPENDENT_ATTRIBUTE_CONTROL;
|
|
43
|
+
const DEPENDENT_ATTRIBUTE = "dependent-attribute:";
|
|
41
44
|
|
|
42
45
|
/*
|
|
43
46
|
* --------------------------------
|
|
@@ -47,15 +50,18 @@ const DEPENDENT_ATTRIBUTE = exports.DEPENDENT_ATTRIBUTE = "dependent-attribute:"
|
|
|
47
50
|
/**
|
|
48
51
|
* Layout-hint: Password attribute must be confirmed using a second password attribute.
|
|
49
52
|
*/
|
|
50
|
-
|
|
53
|
+
exports.DEPENDENT_ATTRIBUTE = DEPENDENT_ATTRIBUTE;
|
|
54
|
+
const CONFIRM_PASSWORD = getHint("CONFIRM_PASSWORD");
|
|
51
55
|
/**
|
|
52
56
|
* Layout-hint: Sort options alphabetically
|
|
53
57
|
*/
|
|
54
|
-
|
|
58
|
+
exports.CONFIRM_PASSWORD = CONFIRM_PASSWORD;
|
|
59
|
+
const SORT_OPTIONS = getHint("SORT_OPTIONS");
|
|
55
60
|
/**
|
|
56
61
|
* Layout-hint: Marks an attribute as a title attribute
|
|
57
62
|
*/
|
|
58
|
-
|
|
63
|
+
exports.SORT_OPTIONS = SORT_OPTIONS;
|
|
64
|
+
const TITLE = getHint("TITLE");
|
|
59
65
|
|
|
60
66
|
/*
|
|
61
67
|
* --------------------------------
|
|
@@ -65,15 +71,18 @@ const TITLE = exports.TITLE = getHint("TITLE");
|
|
|
65
71
|
/**
|
|
66
72
|
* Layout-hint: Mark task as delete task
|
|
67
73
|
*/
|
|
68
|
-
|
|
74
|
+
exports.TITLE = TITLE;
|
|
75
|
+
const DELETE_ACTION = getHint("DELETE_ACTION");
|
|
69
76
|
/**
|
|
70
77
|
* Layout-hint: Mark task as update task
|
|
71
78
|
*/
|
|
72
|
-
|
|
79
|
+
exports.DELETE_ACTION = DELETE_ACTION;
|
|
80
|
+
const UPDATE_ACTION = getHint("UPDATE_ACTION");
|
|
73
81
|
/**
|
|
74
82
|
* Layout-hint: Mark task as create task
|
|
75
83
|
*/
|
|
76
|
-
|
|
84
|
+
exports.UPDATE_ACTION = UPDATE_ACTION;
|
|
85
|
+
const CREATE_ACTION = getHint("CREATE_ACTION");
|
|
77
86
|
|
|
78
87
|
/*
|
|
79
88
|
* --------------------------------
|
|
@@ -83,11 +92,13 @@ const CREATE_ACTION = exports.CREATE_ACTION = getHint("CREATE_ACTION");
|
|
|
83
92
|
/**
|
|
84
93
|
* Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.
|
|
85
94
|
*/
|
|
86
|
-
|
|
95
|
+
exports.CREATE_ACTION = CREATE_ACTION;
|
|
96
|
+
const INITIAL_TOTAL_FILESIZE = getHint("INITIAL_TOTAL_FILESIZE");
|
|
87
97
|
/**
|
|
88
98
|
* Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.
|
|
89
99
|
*/
|
|
90
|
-
|
|
100
|
+
exports.INITIAL_TOTAL_FILESIZE = INITIAL_TOTAL_FILESIZE;
|
|
101
|
+
const MAX_TOTAL_FILESIZE = getHint("MAX_TOTAL_FILESIZE");
|
|
91
102
|
|
|
92
103
|
/*
|
|
93
104
|
* --------------------------------
|
|
@@ -97,28 +108,35 @@ const MAX_TOTAL_FILESIZE = exports.MAX_TOTAL_FILESIZE = getHint("MAX_TOTAL_FILES
|
|
|
97
108
|
/**
|
|
98
109
|
* Layout-hint: A list with only one detail must be shown as a detail
|
|
99
110
|
*/
|
|
100
|
-
|
|
111
|
+
exports.MAX_TOTAL_FILESIZE = MAX_TOTAL_FILESIZE;
|
|
112
|
+
const SHOW_ONE_RESULT_AS_DETAIL = getHint("SHOW_ONE_RESULT_AS_DETAIL");
|
|
101
113
|
/**
|
|
102
114
|
* Layout-hint: A list without list-items and list-tasks should not be shown.
|
|
103
115
|
*/
|
|
104
|
-
|
|
116
|
+
exports.SHOW_ONE_RESULT_AS_DETAIL = SHOW_ONE_RESULT_AS_DETAIL;
|
|
117
|
+
const HIDE_WHEN_EMPTY = getHint("HIDE_WHEN_EMPTY");
|
|
105
118
|
/**
|
|
106
119
|
* Layout-hint: Sets a default value on a filter
|
|
107
120
|
*/
|
|
108
|
-
|
|
121
|
+
exports.HIDE_WHEN_EMPTY = HIDE_WHEN_EMPTY;
|
|
122
|
+
const INITIAL_FILTER = "initial-filter:";
|
|
109
123
|
/**
|
|
110
124
|
* Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item
|
|
111
125
|
*/
|
|
112
|
-
|
|
126
|
+
exports.INITIAL_FILTER = INITIAL_FILTER;
|
|
127
|
+
const CASEVIEW_LINK = getHint("CASEVIEW_LINK");
|
|
113
128
|
|
|
114
129
|
/**
|
|
115
130
|
* Layout-hint: Set on configuration of instruments to show content in a popover on a label
|
|
116
131
|
*/
|
|
117
|
-
|
|
132
|
+
exports.CASEVIEW_LINK = CASEVIEW_LINK;
|
|
133
|
+
const RENDER_SECTION_LABEL = "render-section-label";
|
|
118
134
|
|
|
119
135
|
/**
|
|
120
136
|
*/
|
|
137
|
+
exports.RENDER_SECTION_LABEL = RENDER_SECTION_LABEL;
|
|
121
138
|
const getLayoutHintConfiguration = () => _LayoutHintConfig.LayoutHintConfiguration;
|
|
122
139
|
exports.getLayoutHintConfiguration = getLayoutHintConfiguration;
|
|
123
|
-
var _default =
|
|
140
|
+
var _default = getHint;
|
|
141
|
+
exports.default = _default;
|
|
124
142
|
//# sourceMappingURL=LayoutHints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutHints.js","names":["_LayoutHintConfig","require","getHint","hint","LayoutHintConfiguration","MANDATORY","exports","DISABLED","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE","CONFIRM_PASSWORD","SORT_OPTIONS","TITLE","DELETE_ACTION","UPDATE_ACTION","CREATE_ACTION","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CASEVIEW_LINK","RENDER_SECTION_LABEL","getLayoutHintConfiguration","_default","default"],"sources":["../../src/constants/LayoutHints.js"],"sourcesContent":["// @flow\nimport { LayoutHintConfiguration } from \"./LayoutHintConfig\";\n\n/**\n * Retrieve layout hint by id from the layout hint configuration\n */\nconst getHint = (hint: string): string => {\n if (LayoutHintConfiguration[hint]) {\n return LayoutHintConfiguration[hint].hint;\n }\n\n return \"\";\n};\n\n/**\n * Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.\n */\nexport const MANDATORY: string = getHint(\"MANDATORY\");\n\n/**\n * Layout-hint: Indicates a disabled attribute.\n * @constant\n */\nexport const DISABLED: string = getHint(\"DISABLED\");\n\n/*\n * --------------------------------\n * SELECT DEPENDENT ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\n */\nexport const DEPENDENT_ATTRIBUTE_CONTROL = \"dependent-control\";\n/**\n */\nexport const DEPENDENT_ATTRIBUTE = \"dependent-attribute:\";\n\n/*\n * --------------------------------\n * ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Password attribute must be confirmed using a second password attribute.\n */\nexport const CONFIRM_PASSWORD: string = getHint(\"CONFIRM_PASSWORD\");\n/**\n * Layout-hint: Sort options alphabetically\n */\nexport const SORT_OPTIONS: string = getHint(\"SORT_OPTIONS\");\n/**\n * Layout-hint: Marks an attribute as a title attribute\n */\nexport const TITLE: string = getHint(\"TITLE\");\n\n/*\n * --------------------------------\n * FORM\n * --------------------------------\n */\n/**\n * Layout-hint: Mark task as delete task\n */\nexport const DELETE_ACTION: string = getHint(\"DELETE_ACTION\");\n/**\n * Layout-hint: Mark task as update task\n */\nexport const UPDATE_ACTION: string = getHint(\"UPDATE_ACTION\");\n/**\n * Layout-hint: Mark task as create task\n */\nexport const CREATE_ACTION: string = getHint(\"CREATE_ACTION\");\n\n/*\n * --------------------------------\n * UPLOAD TOTAL FILE SIZE\n * --------------------------------\n */\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\n */\nexport const INITIAL_TOTAL_FILESIZE: string = getHint(\"INITIAL_TOTAL_FILESIZE\");\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\n */\nexport const MAX_TOTAL_FILESIZE: string = getHint(\"MAX_TOTAL_FILESIZE\");\n\n/*\n * --------------------------------\n * LISTS\n * --------------------------------\n */\n/**\n * Layout-hint: A list with only one detail must be shown as a detail\n */\nexport const SHOW_ONE_RESULT_AS_DETAIL: string = getHint(\n \"SHOW_ONE_RESULT_AS_DETAIL\",\n);\n/**\n * Layout-hint: A list without list-items and list-tasks should not be shown.\n */\nexport const HIDE_WHEN_EMPTY: string = getHint(\"HIDE_WHEN_EMPTY\");\n/**\n * Layout-hint: Sets a default value on a filter\n */\nexport const INITIAL_FILTER: string = \"initial-filter:\";\n/**\n * Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\n */\nexport const CASEVIEW_LINK: string = getHint(\"CASEVIEW_LINK\");\n\n/**\n * Layout-hint: Set on configuration of instruments to show content in a popover on a label\n */\nexport const RENDER_SECTION_LABEL = \"render-section-label\";\n\n/**\n */\nexport const getLayoutHintConfiguration = (): Object => LayoutHintConfiguration;\n\nexport default getHint;\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA,MAAMC,OAAO,GAAIC,IAAY,IAAa;EACxC,IAAIC,yCAAuB,CAACD,IAAI,CAAC,EAAE;IACjC,OAAOC,yCAAuB,CAACD,IAAI,CAAC,CAACA,IAAI;EAC3C;EAEA,OAAO,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACO,MAAME,SAAiB,
|
|
1
|
+
{"version":3,"file":"LayoutHints.js","names":["_LayoutHintConfig","require","getHint","hint","LayoutHintConfiguration","MANDATORY","exports","DISABLED","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE","CONFIRM_PASSWORD","SORT_OPTIONS","TITLE","DELETE_ACTION","UPDATE_ACTION","CREATE_ACTION","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CASEVIEW_LINK","RENDER_SECTION_LABEL","getLayoutHintConfiguration","_default","default"],"sources":["../../src/constants/LayoutHints.js"],"sourcesContent":["// @flow\nimport { LayoutHintConfiguration } from \"./LayoutHintConfig\";\n\n/**\n * Retrieve layout hint by id from the layout hint configuration\n */\nconst getHint = (hint: string): string => {\n if (LayoutHintConfiguration[hint]) {\n return LayoutHintConfiguration[hint].hint;\n }\n\n return \"\";\n};\n\n/**\n * Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.\n */\nexport const MANDATORY: string = getHint(\"MANDATORY\");\n\n/**\n * Layout-hint: Indicates a disabled attribute.\n * @constant\n */\nexport const DISABLED: string = getHint(\"DISABLED\");\n\n/*\n * --------------------------------\n * SELECT DEPENDENT ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\n */\nexport const DEPENDENT_ATTRIBUTE_CONTROL = \"dependent-control\";\n/**\n */\nexport const DEPENDENT_ATTRIBUTE = \"dependent-attribute:\";\n\n/*\n * --------------------------------\n * ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Password attribute must be confirmed using a second password attribute.\n */\nexport const CONFIRM_PASSWORD: string = getHint(\"CONFIRM_PASSWORD\");\n/**\n * Layout-hint: Sort options alphabetically\n */\nexport const SORT_OPTIONS: string = getHint(\"SORT_OPTIONS\");\n/**\n * Layout-hint: Marks an attribute as a title attribute\n */\nexport const TITLE: string = getHint(\"TITLE\");\n\n/*\n * --------------------------------\n * FORM\n * --------------------------------\n */\n/**\n * Layout-hint: Mark task as delete task\n */\nexport const DELETE_ACTION: string = getHint(\"DELETE_ACTION\");\n/**\n * Layout-hint: Mark task as update task\n */\nexport const UPDATE_ACTION: string = getHint(\"UPDATE_ACTION\");\n/**\n * Layout-hint: Mark task as create task\n */\nexport const CREATE_ACTION: string = getHint(\"CREATE_ACTION\");\n\n/*\n * --------------------------------\n * UPLOAD TOTAL FILE SIZE\n * --------------------------------\n */\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\n */\nexport const INITIAL_TOTAL_FILESIZE: string = getHint(\"INITIAL_TOTAL_FILESIZE\");\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\n */\nexport const MAX_TOTAL_FILESIZE: string = getHint(\"MAX_TOTAL_FILESIZE\");\n\n/*\n * --------------------------------\n * LISTS\n * --------------------------------\n */\n/**\n * Layout-hint: A list with only one detail must be shown as a detail\n */\nexport const SHOW_ONE_RESULT_AS_DETAIL: string = getHint(\n \"SHOW_ONE_RESULT_AS_DETAIL\",\n);\n/**\n * Layout-hint: A list without list-items and list-tasks should not be shown.\n */\nexport const HIDE_WHEN_EMPTY: string = getHint(\"HIDE_WHEN_EMPTY\");\n/**\n * Layout-hint: Sets a default value on a filter\n */\nexport const INITIAL_FILTER: string = \"initial-filter:\";\n/**\n * Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\n */\nexport const CASEVIEW_LINK: string = getHint(\"CASEVIEW_LINK\");\n\n/**\n * Layout-hint: Set on configuration of instruments to show content in a popover on a label\n */\nexport const RENDER_SECTION_LABEL = \"render-section-label\";\n\n/**\n */\nexport const getLayoutHintConfiguration = (): Object => LayoutHintConfiguration;\n\nexport default getHint;\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAEA;A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