@beinformed/ui 1.59.21-beta.3 → 1.59.21-beta.5
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 +11 -9
- package/tsconfig.json +29 -0
- 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/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.5](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.59.21-beta.4...v1.59.21-beta.5) (2025-02-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **types:** improve typescript declaration files to prevent deep imports ([dcc0739](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/dcc0739ffae141b71975b9a1be13cb555bff7e0a))
|
|
11
|
+
|
|
12
|
+
## [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)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **types:** improve typescript declaration files to prevent deep imports ([68e0c5d](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/68e0c5d7b6f45a248c96c29b758cdbeea1ba0c8f))
|
|
18
|
+
|
|
5
19
|
## [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)
|
|
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.5",
|
|
4
4
|
"description": "Toolbox for be informed javascript layouts",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"bugs": "http://support.beinformed.com",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"module": "esm/index.js",
|
|
9
9
|
"browser": "esm/index.js",
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "
|
|
11
|
+
"node": ">=18"
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"scripts": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"release": "commit-and-tag-version",
|
|
37
37
|
"beta-release": "commit-and-tag-version --prerelease beta",
|
|
38
38
|
"prepublishOnly": "npm run build",
|
|
39
|
-
"docs": "node ./.build/docs.mjs",
|
|
39
|
+
"docs": "rimraf docs && node ./.build/docs.mjs",
|
|
40
40
|
"prepare": "husky",
|
|
41
41
|
"security-audit": "auditjs ossi --xml > npm-audit.xml",
|
|
42
|
-
"generate-ts": "npx -p typescript tsc
|
|
42
|
+
"generate-ts": "rimraf types && npx -p typescript tsc"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"README.md",
|
|
50
50
|
"CHANGELOG.md",
|
|
51
|
+
"LICENSE.md",
|
|
52
|
+
"tsconfig.json",
|
|
51
53
|
"src",
|
|
52
54
|
"dist",
|
|
53
55
|
"esm",
|
|
@@ -82,7 +84,7 @@
|
|
|
82
84
|
"styled-components": "^5.0.0"
|
|
83
85
|
},
|
|
84
86
|
"dependencies": {
|
|
85
|
-
"@babel/runtime-corejs3": "^7.26.
|
|
87
|
+
"@babel/runtime-corejs3": "^7.26.9",
|
|
86
88
|
"@date-fns/tz": "^1.2.0",
|
|
87
89
|
"big.js": "^6.2.2",
|
|
88
90
|
"date-fns": "^4.1.0",
|
|
@@ -101,13 +103,13 @@
|
|
|
101
103
|
},
|
|
102
104
|
"devDependencies": {
|
|
103
105
|
"@babel/cli": "^7.26.4",
|
|
104
|
-
"@babel/core": "^7.26.
|
|
106
|
+
"@babel/core": "^7.26.9",
|
|
105
107
|
"@babel/eslint-parser": "^7.26.8",
|
|
106
108
|
"@babel/eslint-plugin": "^7.25.9",
|
|
107
109
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
108
110
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
109
|
-
"@babel/plugin-transform-runtime": "^7.26.
|
|
110
|
-
"@babel/preset-env": "^7.26.
|
|
111
|
+
"@babel/plugin-transform-runtime": "^7.26.9",
|
|
112
|
+
"@babel/preset-env": "^7.26.9",
|
|
111
113
|
"@babel/preset-flow": "^7.25.9",
|
|
112
114
|
"@babel/preset-react": "^7.26.3",
|
|
113
115
|
"@commitlint/cli": "^19.7.1",
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
"jscodeshift": "^17.1.2",
|
|
144
146
|
"lint-staged": "^15.4.3",
|
|
145
147
|
"polished": "^4.0.0",
|
|
146
|
-
"prettier": "^3.5.
|
|
148
|
+
"prettier": "^3.5.1",
|
|
147
149
|
"react": "^18.3.1",
|
|
148
150
|
"react-dom": "^18.3.1",
|
|
149
151
|
"react-helmet-async": "^2.0.5",
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"outDir": "types",
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"emitDeclarationOnly": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"module": "ESNext",
|
|
9
|
+
"moduleResolution": "Node",
|
|
10
|
+
"target": "ES2020",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"skipLibCheck": true,
|
|
13
|
+
"baseUrl": ".",
|
|
14
|
+
"paths": {
|
|
15
|
+
"@beinformed/ui": ["esm/index"],
|
|
16
|
+
"@beinformed/ui/*": ["esm/*"]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"include": ["src"],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist",
|
|
23
|
+
"lib",
|
|
24
|
+
"esm",
|
|
25
|
+
"types",
|
|
26
|
+
"**/__tests__",
|
|
27
|
+
"**/__mock__"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -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): {
|
|
@@ -40,11 +40,11 @@ export default class AttributeModel extends BaseModel {
|
|
|
40
40
|
/**
|
|
41
41
|
* Set the concept
|
|
42
42
|
*/
|
|
43
|
-
set concept(concept: ConceptDetailModel);
|
|
43
|
+
set concept(concept: ConceptDetailModel | null);
|
|
44
44
|
/**
|
|
45
45
|
* Get concept information
|
|
46
46
|
*/
|
|
47
|
-
get concept(): ConceptDetailModel;
|
|
47
|
+
get concept(): ConceptDetailModel | null;
|
|
48
48
|
/**
|
|
49
49
|
* Getting the attribute key
|
|
50
50
|
*/
|
|
@@ -87,11 +87,11 @@ export default class AttributeModel extends BaseModel {
|
|
|
87
87
|
getContentConfiguredLabel(contentConfiguration: ContentConfigurationElements | null): string;
|
|
88
88
|
/**
|
|
89
89
|
*/
|
|
90
|
-
get defaultAlignment(): "
|
|
90
|
+
get defaultAlignment(): "left" | "center" | "right";
|
|
91
91
|
/**
|
|
92
92
|
* Handles layout hint align-left, align-center and align-right
|
|
93
93
|
*/
|
|
94
|
-
get alignment(): "
|
|
94
|
+
get alignment(): "left" | "center" | "right";
|
|
95
95
|
/**
|
|
96
96
|
* Retrieve links of attribute
|
|
97
97
|
*/
|
|
@@ -99,11 +99,11 @@ export default class AttributeModel extends BaseModel {
|
|
|
99
99
|
/**
|
|
100
100
|
* Retrieve link of attribute when available
|
|
101
101
|
*/
|
|
102
|
-
get downloadLink(): LinkModel;
|
|
102
|
+
get downloadLink(): LinkModel | null;
|
|
103
103
|
/**
|
|
104
104
|
* Retrieve concept link of attribute when available
|
|
105
105
|
*/
|
|
106
|
-
get conceptLink(): LinkModel;
|
|
106
|
+
get conceptLink(): LinkModel | null;
|
|
107
107
|
/**
|
|
108
108
|
* Set reference date for concepts and content
|
|
109
109
|
*/
|
|
@@ -159,7 +159,7 @@ export default class AttributeModel extends BaseModel {
|
|
|
159
159
|
} | null;
|
|
160
160
|
/**
|
|
161
161
|
*/
|
|
162
|
-
get formdata(): {};
|
|
162
|
+
get formdata(): {} | null;
|
|
163
163
|
/**
|
|
164
164
|
*/
|
|
165
165
|
getEmptyFormData(): {
|
|
@@ -182,7 +182,7 @@ export default class AttributeModel extends BaseModel {
|
|
|
182
182
|
get mandatory(): boolean;
|
|
183
183
|
/**
|
|
184
184
|
*/
|
|
185
|
-
get configuredMandatory(): boolean;
|
|
185
|
+
get configuredMandatory(): boolean | null;
|
|
186
186
|
/**
|
|
187
187
|
*/
|
|
188
188
|
set readonly(readonly: boolean);
|
|
@@ -204,25 +204,25 @@ export default class AttributeModel extends BaseModel {
|
|
|
204
204
|
/**
|
|
205
205
|
* Getting the display and input format of a attribute
|
|
206
206
|
*/
|
|
207
|
-
get format(): string;
|
|
207
|
+
get format(): string | null;
|
|
208
208
|
/**
|
|
209
209
|
*/
|
|
210
210
|
get formatLabel(): string;
|
|
211
211
|
/**
|
|
212
212
|
* Get minimum string length
|
|
213
213
|
*/
|
|
214
|
-
get minLength(): number;
|
|
214
|
+
get minLength(): number | null;
|
|
215
215
|
/**
|
|
216
216
|
* Get maximum string length
|
|
217
217
|
*/
|
|
218
|
-
get maxLength(): number;
|
|
218
|
+
get maxLength(): number | null;
|
|
219
219
|
/**
|
|
220
220
|
*/
|
|
221
221
|
get operator(): string;
|
|
222
222
|
/**
|
|
223
223
|
* Get assistant message
|
|
224
224
|
*/
|
|
225
|
-
get assistantMessage(): string;
|
|
225
|
+
get assistantMessage(): string | null;
|
|
226
226
|
/**
|
|
227
227
|
* Get valid status
|
|
228
228
|
*/
|
|
@@ -29,7 +29,7 @@ export default class BooleanAttributeModel extends AttributeModel {
|
|
|
29
29
|
* Only applicable for taxonomy element and knowledge codemaps,
|
|
30
30
|
* content configuration for instrument questions is available on the form object
|
|
31
31
|
*/
|
|
32
|
-
get contentConfiguration(): ContentConfigurationElements;
|
|
32
|
+
get contentConfiguration(): ContentConfigurationElements | null;
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve available choice options
|
|
35
35
|
*/
|
|
@@ -12,11 +12,11 @@ export default class ChoiceAttributeModel extends AttributeModel {
|
|
|
12
12
|
/**
|
|
13
13
|
* Retrieve lookup service link
|
|
14
14
|
*/
|
|
15
|
-
get lookupLink(): LinkModel;
|
|
15
|
+
get lookupLink(): LinkModel | null;
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve lookup service as list link
|
|
18
18
|
*/
|
|
19
|
-
get lookupListLink(): LinkModel;
|
|
19
|
+
get lookupListLink(): LinkModel | null;
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
22
|
get lookupListLabel(): string;
|
|
@@ -51,7 +51,7 @@ export default class ChoiceAttributeModel extends AttributeModel {
|
|
|
51
51
|
/**
|
|
52
52
|
* Getting the type of choice filter. For instance checkbox, radiobutton, combobox.
|
|
53
53
|
*/
|
|
54
|
-
get choicetype(): "
|
|
54
|
+
get choicetype(): "list" | "toggle" | "checkbox" | "radiobutton" | "combobox" | "listview" | "table" | "longlist";
|
|
55
55
|
/**
|
|
56
56
|
* Can multiple options be selected
|
|
57
57
|
*/
|
|
@@ -72,7 +72,7 @@ export default class ChoiceAttributeModel extends AttributeModel {
|
|
|
72
72
|
* Only applicable for taxonomy element and knowledge codemaps,
|
|
73
73
|
* content configuration for instrument questions is available on the form object
|
|
74
74
|
*/
|
|
75
|
-
get contentConfiguration(): ContentConfigurationElements;
|
|
75
|
+
get contentConfiguration(): ContentConfigurationElements | null;
|
|
76
76
|
/**
|
|
77
77
|
* Get placeholder text
|
|
78
78
|
*/
|