@beinformed/ui 1.59.21-beta.2 → 1.59.21-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/package.json +83 -17
- package/types/builder/index.d.ts +1 -0
- package/types/builder/mergeLayoutHintConfigurations.d.ts +1 -0
- package/types/exceptions/ConfigurationException.d.ts +1 -0
- package/types/exceptions/IllegalArgumentException.d.ts +1 -0
- package/types/exceptions/IllegalReturnException.d.ts +1 -0
- package/types/exceptions/IllegalStateException.d.ts +1 -0
- package/types/exceptions/JsonParseException.d.ts +1 -0
- package/types/exceptions/MissingPropertyException.d.ts +1 -0
- package/types/exceptions/NotAllowedUriException.d.ts +1 -0
- package/types/exceptions/ServerRequestException.d.ts +1 -0
- package/types/exceptions/ThemePropertyException.d.ts +1 -0
- package/types/exceptions/UnsupportedOperationException.d.ts +1 -0
- package/types/hooks/index.d.ts +16 -0
- package/types/hooks/useAllFormsOnModel.d.ts +7 -0
- package/types/hooks/useAuthentication.d.ts +16 -0
- package/types/hooks/useContent.d.ts +3 -0
- package/types/hooks/useDeepCompareEffect.d.ts +6 -0
- package/types/hooks/useForm.d.ts +21 -0
- package/types/hooks/useModal.d.ts +12 -0
- package/types/hooks/useModelCatalog.d.ts +31 -0
- package/types/hooks/useModels.d.ts +10 -0
- package/types/hooks/useModularUI.d.ts +3 -0
- package/types/hooks/useModularUIBasic.d.ts +9 -0
- package/types/hooks/useModularUIModel.d.ts +27 -0
- package/types/hooks/useModularUIRequest.d.ts +4 -0
- package/types/hooks/useNotification.d.ts +8 -0
- package/types/hooks/usePreference.d.ts +2 -0
- package/types/hooks/useProgressIndicator.d.ts +9 -0
- package/types/hooks/useRouter.d.ts +23 -0
- package/types/i18n/types.d.ts +2 -2
- package/types/models/actions/ActionModel.d.ts +1 -1
- package/types/models/application/ApplicationModel.d.ts +3 -3
- package/types/models/attributes/AttributeCollection.d.ts +1 -1
- package/types/models/attributes/AttributeContent.d.ts +1 -1
- package/types/models/attributes/AttributeModel.d.ts +12 -12
- package/types/models/attributes/AttributeSetModel.d.ts +1 -1
- package/types/models/attributes/BooleanAttributeModel.d.ts +1 -1
- package/types/models/attributes/ChoiceAttributeModel.d.ts +4 -4
- package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +5 -5
- package/types/models/attributes/CompositeAttributeModel.d.ts +1 -1
- package/types/models/attributes/DatetimeAttributeModel.d.ts +30 -19
- package/types/models/attributes/HelptextAttributeModel.d.ts +1 -1
- package/types/models/attributes/NumberAttributeModel.d.ts +2 -2
- package/types/models/attributes/PasswordAttributeModel.d.ts +8 -8
- package/types/models/attributes/StringAttributeModel.d.ts +5 -2
- package/types/models/attributes/UploadAttributeModel.d.ts +1 -1
- package/types/models/attributes/input-constraints/ConstraintModel.d.ts +1 -1
- package/types/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +20 -18
- package/types/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +19 -19
- package/types/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +3 -3
- package/types/models/attributes/input-constraints/RangeConstraint.d.ts +19 -17
- package/types/models/attributes/input-constraints/RegexConstraint.d.ts +1 -1
- package/types/models/attributes/input-constraints/StringLengthConstraint.d.ts +2 -2
- package/types/models/base/BaseCollection.d.ts +2 -2
- package/types/models/base/ResourceModel.d.ts +1 -1
- package/types/models/caseview/CaseViewModel.d.ts +1 -1
- package/types/models/concepts/ConceptDetailModel.d.ts +7 -3
- package/types/models/concepts/ConceptIndexModel.d.ts +8 -4
- package/types/models/concepts/ConceptLinkModel.d.ts +6 -6
- package/types/models/concepts/ConceptRelationCollection.d.ts +2 -2
- package/types/models/concepts/ConceptRelationModel.d.ts +1 -1
- package/types/models/concepts/ConceptTypeDetailModel.d.ts +1 -1
- package/types/models/concepts/SourceReferenceCollection.d.ts +1 -1
- package/types/models/concepts/SourceReferenceModel.d.ts +2 -2
- package/types/models/content/ContentIndexModel.d.ts +5 -1
- package/types/models/content/ContentLinkModel.d.ts +7 -7
- package/types/models/content/ContentModel.d.ts +7 -5
- package/types/models/content/ContentTOCModel.d.ts +2 -2
- package/types/models/content/ContentTypeModel.d.ts +5 -5
- package/types/models/content/SectionModel.d.ts +2 -2
- package/types/models/content/SubSectionModel.d.ts +6 -6
- package/types/models/contentconfiguration/ContentConfiguration.d.ts +3 -3
- package/types/models/contentconfiguration/ContentConfigurationResults.d.ts +2 -2
- package/types/models/detail/DetailModel.d.ts +6 -2
- package/types/models/error/ErrorModel.d.ts +2 -2
- package/types/models/error/ErrorResponse.d.ts +4 -4
- package/types/models/filters/AssignmentFilterModel.d.ts +3 -3
- package/types/models/filters/BaseFilterModel.d.ts +2 -2
- package/types/models/form/FormModel.d.ts +9 -6
- package/types/models/form/FormObjectModel.d.ts +2 -2
- package/types/models/grouping/GroupingModel.d.ts +1 -1
- package/types/models/href/Href.d.ts +2 -2
- package/types/models/href/ListHref.d.ts +5 -5
- package/types/models/links/LinkModel.d.ts +4 -4
- package/types/models/list/ListDetailModel.d.ts +2 -2
- package/types/models/list/ListHeaderModel.d.ts +1 -1
- package/types/models/list/ListModel.d.ts +2 -2
- package/types/models/lookup/LookupOptionsModel.d.ts +5 -1
- package/types/models/panels/GroupingPanelModel.d.ts +5 -0
- package/types/models/parameter/Parameter.d.ts +2 -2
- package/types/models/process/ProcessStatusSettingsModel.d.ts +4 -4
- package/types/models/sorting/SortOptionModel.d.ts +1 -1
- package/types/models/tab/TabModel.d.ts +5 -1
- package/types/models/taskgroup/TaskGroupModel.d.ts +4 -0
- package/types/models/types.d.ts +26 -26
- package/types/models/user/UserModel.d.ts +1 -1
- package/types/models/user/UserProfileModel.d.ts +5 -0
- package/types/models/user/UserServicesModel.d.ts +5 -5
- package/types/modularui/CaptchaRequest.d.ts +3 -3
- package/types/modularui/ModularUIRequest.d.ts +4 -0
- package/types/modularui/UploadRequest.d.ts +2 -2
- package/types/react/ErrorBoundary.d.ts +31 -0
- package/types/react/ErrorBoundaryFallback.d.ts +8 -0
- package/types/react/index.d.ts +2 -0
- package/types/react/utils.d.ts +5 -0
- package/types/react-client/Init.d.ts +6 -0
- package/types/react-client/client.d.ts +25 -0
- package/types/react-client/contextPath.d.ts +1 -0
- package/types/react-client/index.d.ts +3 -0
- package/types/react-client/rehydrate.d.ts +5 -0
- package/types/react-server/contextPath.d.ts +1 -0
- package/types/react-server/createSSRComplete.d.ts +5 -0
- package/types/react-server/htmlpage.d.ts +11 -0
- package/types/react-server/index.d.ts +8 -0
- package/types/react-server/renderSSRComplete.d.ts +13 -0
- package/types/react-server/renderSSRMinimal.d.ts +11 -0
- package/types/react-server/requestInformation.d.ts +6 -0
- package/types/react-server/serverNoSSR.d.ts +15 -0
- package/types/react-server/serverSSR.d.ts +15 -0
- package/types/react-server/serverUtil.d.ts +45 -0
- package/types/react-theme/ThemeProvider.d.ts +8 -0
- package/types/react-theme/createTheme.d.ts +53 -0
- package/types/react-theme/index.d.ts +10 -0
- package/types/react-theme/types.d.ts +13 -0
- package/types/react-theme/useTheme.d.ts +4 -0
- package/types/react-theme/utils/background.d.ts +5 -0
- package/types/react-theme/utils/colors.d.ts +10 -0
- package/types/react-theme/utils/contrast.d.ts +19 -0
- package/types/react-theme/utils/corners.d.ts +4 -0
- package/types/react-theme/utils/spacers.d.ts +10 -0
- package/types/react-theme/utils/themeProps.d.ts +7 -0
- package/types/redux/_i18n/I18nActions.d.ts +7 -0
- package/types/redux/_i18n/I18nReducer.d.ts +7 -0
- package/types/redux/_i18n/index.d.ts +3 -0
- package/types/redux/_modularui/ModularUIActions.d.ts +29 -0
- package/types/redux/_modularui/ModularUIConnector.d.ts +7 -0
- package/types/redux/_modularui/ModularUIMiddleware.d.ts +7 -0
- package/types/redux/_modularui/ModularUIReducer.d.ts +7 -0
- package/types/redux/_modularui/ModularUISelectors.d.ts +3 -0
- package/types/redux/_modularui/ModularUIUtils.d.ts +5 -0
- package/types/redux/_modularui/index.d.ts +8 -0
- package/types/redux/_modularui/types.d.ts +26 -10
- package/types/redux/_modularui/withModularUI.d.ts +3 -0
- package/types/redux/_router/RouterActions.d.ts +10 -0
- package/types/redux/_router/RouterConnectors.d.ts +6 -0
- package/types/redux/_router/RouterMiddleware.d.ts +5 -0
- package/types/redux/_router/RouterReducer.d.ts +7 -0
- package/types/redux/_router/index.d.ts +5 -0
- package/types/redux/_router/types.d.ts +2 -2
- package/types/redux/actions/Application.d.ts +4 -0
- package/types/redux/actions/Authorization.d.ts +3 -0
- package/types/redux/actions/Error.d.ts +7 -0
- package/types/redux/actions/Form.d.ts +5 -0
- package/types/redux/actions/FormAttributeSet.d.ts +6 -0
- package/types/redux/actions/FormAttributeSetRepeatable.d.ts +6 -0
- package/types/redux/actions/FormAutosave.d.ts +3 -0
- package/types/redux/actions/FormAutosubmit.d.ts +4 -0
- package/types/redux/actions/FormAutoupdate.d.ts +4 -0
- package/types/redux/actions/FormValidations.d.ts +3 -0
- package/types/redux/actions/Modals.d.ts +4 -0
- package/types/redux/actions/ModelCatalog.d.ts +2 -0
- package/types/redux/actions/Notification.d.ts +14 -0
- package/types/redux/actions/Preferences.d.ts +11 -0
- package/types/redux/actions/ProgressIndicator.d.ts +8 -0
- package/types/redux/actions/SignIn.d.ts +10 -0
- package/types/redux/actions/SignOut.d.ts +4 -0
- package/types/redux/actions/index.d.ts +16 -0
- package/types/redux/connectors/Application.d.ts +4 -0
- package/types/redux/connectors/Breadcrumb.d.ts +3 -0
- package/types/redux/connectors/CaseView.d.ts +4 -0
- package/types/redux/connectors/ConceptDetail.d.ts +4 -0
- package/types/redux/connectors/ContentBrowser.d.ts +4 -0
- package/types/redux/connectors/ContentDetail.d.ts +4 -0
- package/types/redux/connectors/ContentDetailSection.d.ts +4 -0
- package/types/redux/connectors/Form.d.ts +16 -0
- package/types/redux/connectors/FormAttributeSet.d.ts +5 -0
- package/types/redux/connectors/ListDetail.d.ts +4 -0
- package/types/redux/connectors/Modal.d.ts +4 -0
- package/types/redux/connectors/ModelCatalog.d.ts +4 -0
- package/types/redux/connectors/Notification.d.ts +4 -0
- package/types/redux/connectors/PanelRenderer.d.ts +4 -0
- package/types/redux/connectors/Preferences.d.ts +2 -0
- package/types/redux/connectors/Progress.d.ts +3 -0
- package/types/redux/connectors/ProgressIndicator.d.ts +3 -0
- package/types/redux/connectors/QuickSearch.d.ts +11 -0
- package/types/redux/connectors/SignIn.d.ts +4 -0
- package/types/redux/connectors/SignOut.d.ts +4 -0
- package/types/redux/connectors/Tab.d.ts +4 -0
- package/types/redux/connectors/index.d.ts +21 -0
- package/types/redux/index.d.ts +9 -0
- package/types/redux/reducers/AuthReducer.d.ts +8 -0
- package/types/redux/reducers/ErrorReducer.d.ts +8 -0
- package/types/redux/reducers/ModalsReducer.d.ts +8 -0
- package/types/redux/reducers/ModelCatalogReducer.d.ts +8 -0
- package/types/redux/reducers/NotificationReducer.d.ts +8 -0
- package/types/redux/reducers/PreferencesReducer.d.ts +8 -0
- package/types/redux/reducers/ProgressIndicatorReducer.d.ts +8 -0
- package/types/redux/reducers/createReducer.d.ts +14 -0
- package/types/redux/reducers/index.d.ts +8 -0
- package/types/redux/selectors/index.d.ts +2 -0
- package/types/redux/selectors/modelcatalog.d.ts +2 -0
- package/types/redux/store/beforeRenderHooks.d.ts +7 -0
- package/types/redux/store/configureStore.d.ts +8 -0
- package/types/redux/types.d.ts +5 -5
- package/types/utils/browser/Cookies.d.ts +3 -3
- package/types/utils/datetime/DateTimeUtil.d.ts +8 -3
- package/types/utils/fetch/__mocks__/universalFetch.d.ts +3 -0
- package/types/utils/fetch/types.d.ts +24 -23
- package/types/utils/helpers/createHref.d.ts +1 -1
- package/types/utils/helpers/sanitizeHtml.d.ts +1 -1
- package/esm/package.json +0 -3
- package/lib/package.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.59.21-beta.4](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.59.21-beta.3...v1.59.21-beta.4) (2025-02-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **types:** improve typescript declaration files to prevent deep imports ([68e0c5d](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/68e0c5d7b6f45a248c96c29b758cdbeea1ba0c8f))
|
|
11
|
+
|
|
12
|
+
## [1.59.21-beta.3](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.59.21-beta.2...v1.59.21-beta.3) (2025-02-13)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **dependencies:** force the use of esm bundles when building for browsers ([7a1e2b0](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/7a1e2b0a483e9ddfd3b19178a034241922b6e6b0))
|
|
18
|
+
|
|
5
19
|
## [1.59.21-beta.2](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.59.21-beta.1...v1.59.21-beta.2) (2025-02-13)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beinformed/ui",
|
|
3
|
-
"version": "1.59.21-beta.
|
|
3
|
+
"version": "1.59.21-beta.4",
|
|
4
4
|
"description": "Toolbox for be informed javascript layouts",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"bugs": "http://support.beinformed.com",
|
|
@@ -11,22 +11,16 @@
|
|
|
11
11
|
"node": "^14.13.1 || >=16.0.0"
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
|
-
"exports": {
|
|
15
|
-
"import": "./esm/index.js",
|
|
16
|
-
"require": "./lib/index.js",
|
|
17
|
-
"default": "./esm/index.js"
|
|
18
|
-
},
|
|
19
14
|
"scripts": {
|
|
20
15
|
"start": "npm run watch:esm",
|
|
21
16
|
"watch:lib": "babel src --watch --out-dir lib --ignore \"**/__tests__/**\" --ignore \"**/__mock__/**\" --ignore \"**/__mocks__/**\"",
|
|
22
17
|
"watch:esm": "cross-env BABEL_ENV=esm babel --watch src --out-dir esm --ignore \"**/__tests__/**\" --ignore \"**/__mock__/**\" --ignore \"**/__mocks__/**\"",
|
|
23
18
|
"quality": "npm run lint && npm run flow && npm run test",
|
|
24
|
-
"dev": "npm run clean && npm run build:lib && npm run build:flow && npm run build:proxies && npm run build:esm
|
|
25
|
-
"build": "npm run quality && npm run clean && npm run build:lib && npm run build:flow && npm run build:proxies && npm run build:esm
|
|
19
|
+
"dev": "npm run clean && npm run build:lib && npm run build:flow && npm run build:proxies && npm run build:esm",
|
|
20
|
+
"build": "npm run quality && npm run clean && npm run build:lib && npm run build:flow && npm run build:proxies && npm run build:esm",
|
|
26
21
|
"build:lib": "babel src --out-dir lib --ignore \"**/__tests__/**\" --ignore \"**/__mock__/**\" --ignore \"**/__mocks__/**\" --source-maps",
|
|
27
22
|
"build:esm": "cross-env BABEL_ENV=esm babel src --out-dir esm --ignore \"**/__tests__/**\" --ignore \"**/__mock__/**\" --ignore \"**/__mocks__/**\" --source-maps",
|
|
28
23
|
"build:proxies": "node .build/proxies.js",
|
|
29
|
-
"build:fixup": "node .build/fixup.js",
|
|
30
24
|
"build:flow": "flow-copy-source ./src ./lib",
|
|
31
25
|
"clean": "rimraf lib dist esm coverage && npm run clean:proxies",
|
|
32
26
|
"clean:proxies": "node .build/proxies.js --clean",
|
|
@@ -42,10 +36,10 @@
|
|
|
42
36
|
"release": "commit-and-tag-version",
|
|
43
37
|
"beta-release": "commit-and-tag-version --prerelease beta",
|
|
44
38
|
"prepublishOnly": "npm run build",
|
|
45
|
-
"docs": "node ./.build/docs.mjs",
|
|
39
|
+
"docs": "rimraf docs && node ./.build/docs.mjs",
|
|
46
40
|
"prepare": "husky",
|
|
47
41
|
"security-audit": "auditjs ossi --xml > npm-audit.xml",
|
|
48
|
-
"generate-ts": "npx -p typescript tsc
|
|
42
|
+
"generate-ts": "rimraf types && npx -p typescript tsc"
|
|
49
43
|
},
|
|
50
44
|
"repository": {
|
|
51
45
|
"type": "git",
|
|
@@ -88,7 +82,7 @@
|
|
|
88
82
|
"styled-components": "^5.0.0"
|
|
89
83
|
},
|
|
90
84
|
"dependencies": {
|
|
91
|
-
"@babel/runtime-corejs3": "^7.26.
|
|
85
|
+
"@babel/runtime-corejs3": "^7.26.9",
|
|
92
86
|
"@date-fns/tz": "^1.2.0",
|
|
93
87
|
"big.js": "^6.2.2",
|
|
94
88
|
"date-fns": "^4.1.0",
|
|
@@ -107,13 +101,13 @@
|
|
|
107
101
|
},
|
|
108
102
|
"devDependencies": {
|
|
109
103
|
"@babel/cli": "^7.26.4",
|
|
110
|
-
"@babel/core": "^7.26.
|
|
104
|
+
"@babel/core": "^7.26.9",
|
|
111
105
|
"@babel/eslint-parser": "^7.26.8",
|
|
112
106
|
"@babel/eslint-plugin": "^7.25.9",
|
|
113
107
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
114
108
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
115
|
-
"@babel/plugin-transform-runtime": "^7.26.
|
|
116
|
-
"@babel/preset-env": "^7.26.
|
|
109
|
+
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
110
|
+
"@babel/preset-env": "^7.26.9",
|
|
117
111
|
"@babel/preset-flow": "^7.25.9",
|
|
118
112
|
"@babel/preset-react": "^7.26.3",
|
|
119
113
|
"@commitlint/cli": "^19.7.1",
|
|
@@ -149,7 +143,7 @@
|
|
|
149
143
|
"jscodeshift": "^17.1.2",
|
|
150
144
|
"lint-staged": "^15.4.3",
|
|
151
145
|
"polished": "^4.0.0",
|
|
152
|
-
"prettier": "^3.5.
|
|
146
|
+
"prettier": "^3.5.1",
|
|
153
147
|
"react": "^18.3.1",
|
|
154
148
|
"react-dom": "^18.3.1",
|
|
155
149
|
"react-helmet-async": "^2.0.5",
|
|
@@ -170,5 +164,77 @@
|
|
|
170
164
|
"*.js": "eslint --cache --fix",
|
|
171
165
|
"*.{js,css,md}": "prettier --write"
|
|
172
166
|
},
|
|
173
|
-
"types": "./types/index.d.ts"
|
|
167
|
+
"types": "./types/index.d.ts",
|
|
168
|
+
"exports": {
|
|
169
|
+
".": {
|
|
170
|
+
"import": "./esm/index.js",
|
|
171
|
+
"require": "./lib/index.js",
|
|
172
|
+
"default": "./esm/index.js"
|
|
173
|
+
},
|
|
174
|
+
"./builder": {
|
|
175
|
+
"import": "./esm/builder/index.js",
|
|
176
|
+
"require": "./lib/builder/index.js",
|
|
177
|
+
"default": "./esm/builder/index.js"
|
|
178
|
+
},
|
|
179
|
+
"./constants": {
|
|
180
|
+
"import": "./esm/constants/index.js",
|
|
181
|
+
"require": "./lib/constants/index.js",
|
|
182
|
+
"default": "./esm/constants/index.js"
|
|
183
|
+
},
|
|
184
|
+
"./exceptions": {
|
|
185
|
+
"import": "./esm/exceptions/index.js",
|
|
186
|
+
"require": "./lib/exceptions/index.js",
|
|
187
|
+
"default": "./esm/exceptions/index.js"
|
|
188
|
+
},
|
|
189
|
+
"./hooks": {
|
|
190
|
+
"import": "./esm/hooks/index.js",
|
|
191
|
+
"require": "./lib/hooks/index.js",
|
|
192
|
+
"default": "./esm/hooks/index.js"
|
|
193
|
+
},
|
|
194
|
+
"./i18n": {
|
|
195
|
+
"import": "./esm/i18n/index.js",
|
|
196
|
+
"require": "./lib/i18n/index.js",
|
|
197
|
+
"default": "./esm/i18n/index.js"
|
|
198
|
+
},
|
|
199
|
+
"./models": {
|
|
200
|
+
"import": "./esm/models/index.js",
|
|
201
|
+
"require": "./lib/models/index.js",
|
|
202
|
+
"default": "./esm/models/index.js"
|
|
203
|
+
},
|
|
204
|
+
"./modularui": {
|
|
205
|
+
"import": "./esm/modularui/index.js",
|
|
206
|
+
"require": "./lib/modularui/index.js",
|
|
207
|
+
"default": "./esm/modularui/index.js"
|
|
208
|
+
},
|
|
209
|
+
"./react": {
|
|
210
|
+
"import": "./esm/react/index.js",
|
|
211
|
+
"require": "./lib/react/index.js",
|
|
212
|
+
"default": "./esm/react/index.js"
|
|
213
|
+
},
|
|
214
|
+
"./react-client": {
|
|
215
|
+
"import": "./esm/react-client/index.js",
|
|
216
|
+
"require": "./lib/react-client/index.js",
|
|
217
|
+
"default": "./esm/react-client/index.js"
|
|
218
|
+
},
|
|
219
|
+
"./react-server": {
|
|
220
|
+
"import": "./esm/react-server/index.js",
|
|
221
|
+
"require": "./lib/react-server/index.js",
|
|
222
|
+
"default": "./esm/react-server/index.js"
|
|
223
|
+
},
|
|
224
|
+
"./react-theme": {
|
|
225
|
+
"import": "./esm/react-theme/index.js",
|
|
226
|
+
"require": "./lib/react-theme/index.js",
|
|
227
|
+
"default": "./esm/react-theme/index.js"
|
|
228
|
+
},
|
|
229
|
+
"./redux": {
|
|
230
|
+
"import": "./esm/redux/index.js",
|
|
231
|
+
"require": "./lib/redux/index.js",
|
|
232
|
+
"default": "./esm/redux/index.js"
|
|
233
|
+
},
|
|
234
|
+
"./utils": {
|
|
235
|
+
"import": "./esm/utils/index.js",
|
|
236
|
+
"require": "./lib/utils/index.js",
|
|
237
|
+
"default": "./esm/utils/index.js"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
174
240
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./mergeLayoutHintConfigurations";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function mergeLayoutHintConfigurations(srcFolder: string, outputFolder: string): Promise<void>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./useAuthentication";
|
|
2
|
+
export * from "./useContent";
|
|
3
|
+
export * from "./useForm";
|
|
4
|
+
export * from "./useI18n";
|
|
5
|
+
export * from "./useModal";
|
|
6
|
+
export * from "./useModelCatalog";
|
|
7
|
+
export * from "./useModels";
|
|
8
|
+
export * from "./useModularUI";
|
|
9
|
+
export * from "./useModularUIBasic";
|
|
10
|
+
export * from "./useModularUIModel";
|
|
11
|
+
export * from "./useModularUIRequest";
|
|
12
|
+
export * from "./useNotification";
|
|
13
|
+
export * from "./usePreference";
|
|
14
|
+
export * from "./useProgressIndicator";
|
|
15
|
+
export * from "./useRouter";
|
|
16
|
+
export * from "./useAllFormsOnModel";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export function useRetrieveFormsOnModel(model: ListModel | DetailModel | TabModel): null | {
|
|
2
|
+
[actionName: string]: FormModel;
|
|
3
|
+
};
|
|
4
|
+
import ListModel from "../models/list/ListModel";
|
|
5
|
+
import DetailModel from "../models/detail/DetailModel";
|
|
6
|
+
import TabModel from "../models/tab/TabModel";
|
|
7
|
+
import FormModel from "../models/form/FormModel";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function useLogin(): LoginHook;
|
|
2
|
+
export function useLogout(): LogoutHook;
|
|
3
|
+
type LoginHook = {
|
|
4
|
+
isAuthenticated: boolean;
|
|
5
|
+
authenticationTypes: AuthenticationType[];
|
|
6
|
+
errorMessage: string | null;
|
|
7
|
+
resetErrors: () => ResetAuthErrorsAction;
|
|
8
|
+
login: (username: string, password: string) => void;
|
|
9
|
+
redirectLogin: (authenticationType: AuthenticationType) => void;
|
|
10
|
+
};
|
|
11
|
+
type LogoutHook = {
|
|
12
|
+
isAuthenticated: boolean;
|
|
13
|
+
authenticationTypes: AuthenticationType[];
|
|
14
|
+
logout: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export function useContentFromSourceReferences(sourceReferences: SourceReferenceCollection, renderChildSections: boolean): Array<ContentModel>;
|
|
2
|
+
import SourceReferenceCollection from "../models/concepts/SourceReferenceCollection";
|
|
3
|
+
import ContentModel from "../models/content/ContentModel";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function useForm(href: string | Href, data?: Object): FormModel | null;
|
|
2
|
+
export function useFormNavigation(): FormNavigationHook;
|
|
3
|
+
export function useAttributeUpdate(form: FormModel, object: FormObjectModel): AttributeUpdateHook;
|
|
4
|
+
export function useAttributeSet(form: FormModel): AttributeSetHook;
|
|
5
|
+
import Href from "../models/href/Href";
|
|
6
|
+
import FormModel from "../models/form/FormModel";
|
|
7
|
+
type FormNavigationHook = {
|
|
8
|
+
previous: (form: FormModel) => UpdateFormAction;
|
|
9
|
+
cancel: (form: FormModel) => void;
|
|
10
|
+
submit: (form: FormModel) => void;
|
|
11
|
+
showFormNotification: (form: FormModel) => void;
|
|
12
|
+
remove: (form: FormModel) => RemoveModelByKeyAction;
|
|
13
|
+
};
|
|
14
|
+
import { FormObjectModel } from "../models";
|
|
15
|
+
type AttributeUpdateHook = (attribute: AttributeType, value: string, options: UpdateFormOptions) => void;
|
|
16
|
+
type AttributeSetHook = {
|
|
17
|
+
save: () => UpdateFormAction;
|
|
18
|
+
cancel: (object: FormObjectModel) => UpdateFormAction;
|
|
19
|
+
remove: (object: FormObjectModel) => UpdateFormAction;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type SearchFilter = {
|
|
2
|
+
index?: string | undefined;
|
|
3
|
+
label?: string | undefined;
|
|
4
|
+
type?: string | string[] | undefined;
|
|
5
|
+
modelCategory?: string | string[] | undefined;
|
|
6
|
+
entryDate?: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
export function useModelCatalog(options?: any): ModelCatalogModel | null;
|
|
9
|
+
export function useConceptIndex(href: string | Href, key?: string, options?: any): ConceptIndexModel | null;
|
|
10
|
+
export function useConceptDetail(concept: string | Href, key?: string, options?: any): (ConceptDetailModel | (BusinessScenarioModel | null)) | null;
|
|
11
|
+
export function useContentIndex(href: string | Href, key?: string, options?: any): ContentIndexModel | null;
|
|
12
|
+
export function useContentTOC(content: string | Href, key?: string, options?: any): ContentTOCModel | null;
|
|
13
|
+
export function useContent(contentSection: string | Href, key?: string, options?: any): ContentModel | null;
|
|
14
|
+
export function useContentType(contentType: string | Href, key?: string, options?: any): ContentTypeModel | null;
|
|
15
|
+
export function useConceptSearch(filters: SearchFilter, key?: string, options?: any): ConceptIndexModel | null;
|
|
16
|
+
export function useContentSearch(filters: SearchFilter, key?: string, options?: any): ContentIndexModel | null;
|
|
17
|
+
export function useEntryDate(): ({
|
|
18
|
+
entryDate: ISO_DATE;
|
|
19
|
+
setEntryDate: (entryDate: ISO_DATE) => UpdateEntryDateAction;
|
|
20
|
+
});
|
|
21
|
+
import ModelCatalogModel from "../models/modelcatalog/ModelCatalogModel";
|
|
22
|
+
import Href from "../models/href/Href";
|
|
23
|
+
import ConceptIndexModel from "../models/concepts/ConceptIndexModel";
|
|
24
|
+
import ConceptDetailModel from "../models/concepts/ConceptDetailModel";
|
|
25
|
+
import { default as BusinessScenarioModel } from "../models/concepts/BusinessScenarioModel";
|
|
26
|
+
import ContentIndexModel from "../models/content/ContentIndexModel";
|
|
27
|
+
import ContentTOCModel from "../models/content/ContentTOCModel";
|
|
28
|
+
import ContentModel from "../models/content/ContentModel";
|
|
29
|
+
import { ContentTypeModel } from "../models";
|
|
30
|
+
import { UpdateEntryDateAction } from "../redux";
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that contains the reload property that can be used to reload a model
|
|
3
|
+
*/
|
|
4
|
+
export const useModels: UseModels;
|
|
5
|
+
type UseModels = () => {
|
|
6
|
+
reload: (model: ModularUIModel, options?: any) => void;
|
|
7
|
+
reloadWithFilter: (callbackFn: ReloadCallback, options?: any) => void;
|
|
8
|
+
};
|
|
9
|
+
type ReloadCallback = (model: ModularUIModel) => boolean;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type UseModularUIBasicOptions<T, ModularUIModel> = {
|
|
2
|
+
expectedModels?: string[] | undefined;
|
|
3
|
+
targetModel?: any;
|
|
4
|
+
forceTargetModel?: boolean | undefined;
|
|
5
|
+
origin?: string | undefined;
|
|
6
|
+
contextPath?: string | undefined;
|
|
7
|
+
cache?: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function useApplication(options?: HookOptions): ApplicationModel | null;
|
|
2
|
+
export function useTab(href: string | Href, options?: HookOptions): TabModel | null;
|
|
3
|
+
export function useCaseView(href: string | Href, options?: HookOptions): CaseViewModel | null;
|
|
4
|
+
export function usePanel(href: string | Href, options?: HookOptions): ListModel | GroupingPanelModel | DetailModel | null;
|
|
5
|
+
export function useList(href: string | Href, options?: HookOptions): ListModel | null;
|
|
6
|
+
export function useListOrDetail(href: string | Href, options?: HookOptions): ListModel | DetailModel | null;
|
|
7
|
+
export function useListDetail(href: string | Href, options?: HookOptions): ListDetailModel | null;
|
|
8
|
+
export function useGroupingPanel(href: string | Href, options?: HookOptions): GroupingPanelModel | null;
|
|
9
|
+
export function useDetailPanel(href: string | Href, options?: HookOptions): DetailModel | null;
|
|
10
|
+
export function useQuicksearch(href: string | Href, options?: HookOptions): CaseSearchModel | null;
|
|
11
|
+
export function useSearch(href: string | Href, options?: HookOptions): CaseSearchModel | null;
|
|
12
|
+
export function useUserProfile(href: string | Href, options?: HookOptions): UserProfileModel | null;
|
|
13
|
+
type HookOptions = {
|
|
14
|
+
origin?: string | undefined;
|
|
15
|
+
contextPath?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
import ApplicationModel from "../models/application/ApplicationModel";
|
|
18
|
+
import Href from "../models/href/Href";
|
|
19
|
+
import TabModel from "../models/tab/TabModel";
|
|
20
|
+
import CaseViewModel from "../models/caseview/CaseViewModel";
|
|
21
|
+
import ListModel from "../models/list/ListModel";
|
|
22
|
+
import GroupingPanelModel from "../models/panels/GroupingPanelModel";
|
|
23
|
+
import DetailModel from "../models/detail/DetailModel";
|
|
24
|
+
import ListDetailModel from "../models/list/ListDetailModel";
|
|
25
|
+
import CaseSearchModel from "../models/search/CaseSearchModel";
|
|
26
|
+
import UserProfileModel from "../models/user/UserProfileModel";
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export function useModularUIRequest(): ((href: Href, options?: $Shape<RequestModularUIOptions>) => ModularUIRequest);
|
|
2
|
+
import Href from "../models/href/Href";
|
|
3
|
+
import { RequestModularUIOptions } from "../utils";
|
|
4
|
+
import ModularUIRequest from "../modularui/ModularUIRequest";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function useNotification(): NotificationHook;
|
|
2
|
+
export function useErrorNotification(): ErrorNotificationHook;
|
|
3
|
+
type NotificationHook = {
|
|
4
|
+
NotificationState: any;
|
|
5
|
+
dismiss: () => DismissNotificationAction;
|
|
6
|
+
};
|
|
7
|
+
type ErrorNotificationHook = (message: MessageObject, error?: ErrorResponse | null | undefined) => ShowNotificationAction;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*/
|
|
3
|
+
export const useLocation: UseLocationHook;
|
|
4
|
+
/**
|
|
5
|
+
*/
|
|
6
|
+
export const useLocationKey: UseLocationKeyHook;
|
|
7
|
+
/**
|
|
8
|
+
*/
|
|
9
|
+
export const useQuerystring: UseQuerystringHook;
|
|
10
|
+
/**
|
|
11
|
+
*/
|
|
12
|
+
export const usePathname: UsePathnameHook;
|
|
13
|
+
/**
|
|
14
|
+
*/
|
|
15
|
+
export const useNavigation: UseNavigationHook;
|
|
16
|
+
type UseLocationHook = () => Location;
|
|
17
|
+
type UseLocationKeyHook = () => string;
|
|
18
|
+
type UseQuerystringHook = () => string;
|
|
19
|
+
type UsePathnameHook = () => string;
|
|
20
|
+
type UseNavigationHook = () => {
|
|
21
|
+
push: (location: any, state?: {} | undefined, ...: any[]) => any;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
package/types/i18n/types.d.ts
CHANGED
|
@@ -9,11 +9,11 @@ export default class ApplicationModel extends ResourceModel {
|
|
|
9
9
|
/**
|
|
10
10
|
* Set the userservices for this application
|
|
11
11
|
*/
|
|
12
|
-
set userServices(model: UserServicesModel);
|
|
12
|
+
set userServices(model: UserServicesModel | null);
|
|
13
13
|
/**
|
|
14
14
|
* returns the userservices configured for this application
|
|
15
15
|
*/
|
|
16
|
-
get userServices(): UserServicesModel;
|
|
16
|
+
get userServices(): UserServicesModel | null;
|
|
17
17
|
/**
|
|
18
18
|
* Getting the authentication types of the application
|
|
19
19
|
*/
|
|
@@ -34,7 +34,7 @@ export default class ApplicationModel extends ResourceModel {
|
|
|
34
34
|
* Retrieve link to the user information,
|
|
35
35
|
* only available when the user services are available
|
|
36
36
|
*/
|
|
37
|
-
get userHref(): Href;
|
|
37
|
+
get userHref(): Href | null;
|
|
38
38
|
/**
|
|
39
39
|
*/
|
|
40
40
|
get userMustChangePassword(): boolean;
|
|
@@ -82,7 +82,7 @@ declare class AttributeCollection extends ResourceCollection<AttributeType, any>
|
|
|
82
82
|
* Generate formdata object for current collection based on formdata of attributes
|
|
83
83
|
* Skip attributes that are readonly, the confirmation password or null
|
|
84
84
|
*/
|
|
85
|
-
get formdata(): {};
|
|
85
|
+
get formdata(): {} | null;
|
|
86
86
|
/**
|
|
87
87
|
*/
|
|
88
88
|
getFormData(validationData?: boolean): {
|