@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.
Files changed (213) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +11 -9
  3. package/tsconfig.json +29 -0
  4. package/types/builder/index.d.ts +1 -0
  5. package/types/builder/mergeLayoutHintConfigurations.d.ts +1 -0
  6. package/types/exceptions/ConfigurationException.d.ts +1 -0
  7. package/types/exceptions/IllegalArgumentException.d.ts +1 -0
  8. package/types/exceptions/IllegalReturnException.d.ts +1 -0
  9. package/types/exceptions/IllegalStateException.d.ts +1 -0
  10. package/types/exceptions/JsonParseException.d.ts +1 -0
  11. package/types/exceptions/MissingPropertyException.d.ts +1 -0
  12. package/types/exceptions/NotAllowedUriException.d.ts +1 -0
  13. package/types/exceptions/ServerRequestException.d.ts +1 -0
  14. package/types/exceptions/ThemePropertyException.d.ts +1 -0
  15. package/types/exceptions/UnsupportedOperationException.d.ts +1 -0
  16. package/types/hooks/index.d.ts +16 -0
  17. package/types/hooks/useAllFormsOnModel.d.ts +7 -0
  18. package/types/hooks/useAuthentication.d.ts +16 -0
  19. package/types/hooks/useContent.d.ts +3 -0
  20. package/types/hooks/useDeepCompareEffect.d.ts +6 -0
  21. package/types/hooks/useForm.d.ts +21 -0
  22. package/types/hooks/useModal.d.ts +12 -0
  23. package/types/hooks/useModelCatalog.d.ts +31 -0
  24. package/types/hooks/useModels.d.ts +10 -0
  25. package/types/hooks/useModularUI.d.ts +3 -0
  26. package/types/hooks/useModularUIBasic.d.ts +9 -0
  27. package/types/hooks/useModularUIModel.d.ts +27 -0
  28. package/types/hooks/useModularUIRequest.d.ts +4 -0
  29. package/types/hooks/useNotification.d.ts +8 -0
  30. package/types/hooks/usePreference.d.ts +2 -0
  31. package/types/hooks/useProgressIndicator.d.ts +9 -0
  32. package/types/hooks/useRouter.d.ts +23 -0
  33. package/types/i18n/types.d.ts +2 -2
  34. package/types/models/actions/ActionModel.d.ts +1 -1
  35. package/types/models/application/ApplicationModel.d.ts +3 -3
  36. package/types/models/attributes/AttributeCollection.d.ts +1 -1
  37. package/types/models/attributes/AttributeContent.d.ts +1 -1
  38. package/types/models/attributes/AttributeModel.d.ts +12 -12
  39. package/types/models/attributes/AttributeSetModel.d.ts +1 -1
  40. package/types/models/attributes/BooleanAttributeModel.d.ts +1 -1
  41. package/types/models/attributes/ChoiceAttributeModel.d.ts +4 -4
  42. package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +5 -5
  43. package/types/models/attributes/CompositeAttributeModel.d.ts +1 -1
  44. package/types/models/attributes/DatetimeAttributeModel.d.ts +30 -19
  45. package/types/models/attributes/HelptextAttributeModel.d.ts +1 -1
  46. package/types/models/attributes/NumberAttributeModel.d.ts +2 -2
  47. package/types/models/attributes/PasswordAttributeModel.d.ts +8 -8
  48. package/types/models/attributes/StringAttributeModel.d.ts +5 -2
  49. package/types/models/attributes/UploadAttributeModel.d.ts +1 -1
  50. package/types/models/attributes/input-constraints/ConstraintModel.d.ts +1 -1
  51. package/types/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +20 -18
  52. package/types/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +19 -19
  53. package/types/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +3 -3
  54. package/types/models/attributes/input-constraints/RangeConstraint.d.ts +19 -17
  55. package/types/models/attributes/input-constraints/RegexConstraint.d.ts +1 -1
  56. package/types/models/attributes/input-constraints/StringLengthConstraint.d.ts +2 -2
  57. package/types/models/base/BaseCollection.d.ts +2 -2
  58. package/types/models/base/ResourceModel.d.ts +1 -1
  59. package/types/models/caseview/CaseViewModel.d.ts +1 -1
  60. package/types/models/concepts/ConceptDetailModel.d.ts +7 -3
  61. package/types/models/concepts/ConceptIndexModel.d.ts +8 -4
  62. package/types/models/concepts/ConceptLinkModel.d.ts +6 -6
  63. package/types/models/concepts/ConceptRelationCollection.d.ts +2 -2
  64. package/types/models/concepts/ConceptRelationModel.d.ts +1 -1
  65. package/types/models/concepts/ConceptTypeDetailModel.d.ts +1 -1
  66. package/types/models/concepts/SourceReferenceCollection.d.ts +1 -1
  67. package/types/models/concepts/SourceReferenceModel.d.ts +2 -2
  68. package/types/models/content/ContentIndexModel.d.ts +5 -1
  69. package/types/models/content/ContentLinkModel.d.ts +7 -7
  70. package/types/models/content/ContentModel.d.ts +7 -5
  71. package/types/models/content/ContentTOCModel.d.ts +2 -2
  72. package/types/models/content/ContentTypeModel.d.ts +5 -5
  73. package/types/models/content/SectionModel.d.ts +2 -2
  74. package/types/models/content/SubSectionModel.d.ts +6 -6
  75. package/types/models/contentconfiguration/ContentConfiguration.d.ts +3 -3
  76. package/types/models/contentconfiguration/ContentConfigurationResults.d.ts +2 -2
  77. package/types/models/detail/DetailModel.d.ts +6 -2
  78. package/types/models/error/ErrorModel.d.ts +2 -2
  79. package/types/models/error/ErrorResponse.d.ts +4 -4
  80. package/types/models/filters/AssignmentFilterModel.d.ts +3 -3
  81. package/types/models/filters/BaseFilterModel.d.ts +2 -2
  82. package/types/models/form/FormModel.d.ts +9 -6
  83. package/types/models/form/FormObjectModel.d.ts +2 -2
  84. package/types/models/grouping/GroupingModel.d.ts +1 -1
  85. package/types/models/href/Href.d.ts +2 -2
  86. package/types/models/href/ListHref.d.ts +5 -5
  87. package/types/models/links/LinkModel.d.ts +4 -4
  88. package/types/models/list/ListDetailModel.d.ts +2 -2
  89. package/types/models/list/ListHeaderModel.d.ts +1 -1
  90. package/types/models/list/ListModel.d.ts +2 -2
  91. package/types/models/lookup/LookupOptionsModel.d.ts +5 -1
  92. package/types/models/panels/GroupingPanelModel.d.ts +5 -0
  93. package/types/models/parameter/Parameter.d.ts +2 -2
  94. package/types/models/process/ProcessStatusSettingsModel.d.ts +4 -4
  95. package/types/models/sorting/SortOptionModel.d.ts +1 -1
  96. package/types/models/tab/TabModel.d.ts +5 -1
  97. package/types/models/taskgroup/TaskGroupModel.d.ts +4 -0
  98. package/types/models/types.d.ts +26 -26
  99. package/types/models/user/UserModel.d.ts +1 -1
  100. package/types/models/user/UserProfileModel.d.ts +5 -0
  101. package/types/models/user/UserServicesModel.d.ts +5 -5
  102. package/types/modularui/CaptchaRequest.d.ts +3 -3
  103. package/types/modularui/ModularUIRequest.d.ts +4 -0
  104. package/types/modularui/UploadRequest.d.ts +2 -2
  105. package/types/react/ErrorBoundary.d.ts +31 -0
  106. package/types/react/ErrorBoundaryFallback.d.ts +8 -0
  107. package/types/react/index.d.ts +2 -0
  108. package/types/react/utils.d.ts +5 -0
  109. package/types/react-client/Init.d.ts +6 -0
  110. package/types/react-client/client.d.ts +25 -0
  111. package/types/react-client/contextPath.d.ts +1 -0
  112. package/types/react-client/index.d.ts +3 -0
  113. package/types/react-client/rehydrate.d.ts +5 -0
  114. package/types/react-server/contextPath.d.ts +1 -0
  115. package/types/react-server/createSSRComplete.d.ts +5 -0
  116. package/types/react-server/htmlpage.d.ts +11 -0
  117. package/types/react-server/index.d.ts +8 -0
  118. package/types/react-server/renderSSRComplete.d.ts +13 -0
  119. package/types/react-server/renderSSRMinimal.d.ts +11 -0
  120. package/types/react-server/requestInformation.d.ts +6 -0
  121. package/types/react-server/serverNoSSR.d.ts +15 -0
  122. package/types/react-server/serverSSR.d.ts +15 -0
  123. package/types/react-server/serverUtil.d.ts +45 -0
  124. package/types/react-theme/ThemeProvider.d.ts +8 -0
  125. package/types/react-theme/createTheme.d.ts +53 -0
  126. package/types/react-theme/index.d.ts +10 -0
  127. package/types/react-theme/types.d.ts +13 -0
  128. package/types/react-theme/useTheme.d.ts +4 -0
  129. package/types/react-theme/utils/background.d.ts +5 -0
  130. package/types/react-theme/utils/colors.d.ts +10 -0
  131. package/types/react-theme/utils/contrast.d.ts +19 -0
  132. package/types/react-theme/utils/corners.d.ts +4 -0
  133. package/types/react-theme/utils/spacers.d.ts +10 -0
  134. package/types/react-theme/utils/themeProps.d.ts +7 -0
  135. package/types/redux/_i18n/I18nActions.d.ts +7 -0
  136. package/types/redux/_i18n/I18nReducer.d.ts +7 -0
  137. package/types/redux/_i18n/index.d.ts +3 -0
  138. package/types/redux/_modularui/ModularUIActions.d.ts +29 -0
  139. package/types/redux/_modularui/ModularUIConnector.d.ts +7 -0
  140. package/types/redux/_modularui/ModularUIMiddleware.d.ts +7 -0
  141. package/types/redux/_modularui/ModularUIReducer.d.ts +7 -0
  142. package/types/redux/_modularui/ModularUISelectors.d.ts +3 -0
  143. package/types/redux/_modularui/ModularUIUtils.d.ts +5 -0
  144. package/types/redux/_modularui/index.d.ts +8 -0
  145. package/types/redux/_modularui/types.d.ts +26 -10
  146. package/types/redux/_modularui/withModularUI.d.ts +3 -0
  147. package/types/redux/_router/RouterActions.d.ts +10 -0
  148. package/types/redux/_router/RouterConnectors.d.ts +6 -0
  149. package/types/redux/_router/RouterMiddleware.d.ts +5 -0
  150. package/types/redux/_router/RouterReducer.d.ts +7 -0
  151. package/types/redux/_router/index.d.ts +5 -0
  152. package/types/redux/_router/types.d.ts +2 -2
  153. package/types/redux/actions/Application.d.ts +4 -0
  154. package/types/redux/actions/Authorization.d.ts +3 -0
  155. package/types/redux/actions/Error.d.ts +7 -0
  156. package/types/redux/actions/Form.d.ts +5 -0
  157. package/types/redux/actions/FormAttributeSet.d.ts +6 -0
  158. package/types/redux/actions/FormAttributeSetRepeatable.d.ts +6 -0
  159. package/types/redux/actions/FormAutosave.d.ts +3 -0
  160. package/types/redux/actions/FormAutosubmit.d.ts +4 -0
  161. package/types/redux/actions/FormAutoupdate.d.ts +4 -0
  162. package/types/redux/actions/FormValidations.d.ts +3 -0
  163. package/types/redux/actions/Modals.d.ts +4 -0
  164. package/types/redux/actions/ModelCatalog.d.ts +2 -0
  165. package/types/redux/actions/Notification.d.ts +14 -0
  166. package/types/redux/actions/Preferences.d.ts +11 -0
  167. package/types/redux/actions/ProgressIndicator.d.ts +8 -0
  168. package/types/redux/actions/SignIn.d.ts +10 -0
  169. package/types/redux/actions/SignOut.d.ts +4 -0
  170. package/types/redux/actions/index.d.ts +16 -0
  171. package/types/redux/connectors/Application.d.ts +4 -0
  172. package/types/redux/connectors/Breadcrumb.d.ts +3 -0
  173. package/types/redux/connectors/CaseView.d.ts +4 -0
  174. package/types/redux/connectors/ConceptDetail.d.ts +4 -0
  175. package/types/redux/connectors/ContentBrowser.d.ts +4 -0
  176. package/types/redux/connectors/ContentDetail.d.ts +4 -0
  177. package/types/redux/connectors/ContentDetailSection.d.ts +4 -0
  178. package/types/redux/connectors/Form.d.ts +16 -0
  179. package/types/redux/connectors/FormAttributeSet.d.ts +5 -0
  180. package/types/redux/connectors/ListDetail.d.ts +4 -0
  181. package/types/redux/connectors/Modal.d.ts +4 -0
  182. package/types/redux/connectors/ModelCatalog.d.ts +4 -0
  183. package/types/redux/connectors/Notification.d.ts +4 -0
  184. package/types/redux/connectors/PanelRenderer.d.ts +4 -0
  185. package/types/redux/connectors/Preferences.d.ts +2 -0
  186. package/types/redux/connectors/Progress.d.ts +3 -0
  187. package/types/redux/connectors/ProgressIndicator.d.ts +3 -0
  188. package/types/redux/connectors/QuickSearch.d.ts +11 -0
  189. package/types/redux/connectors/SignIn.d.ts +4 -0
  190. package/types/redux/connectors/SignOut.d.ts +4 -0
  191. package/types/redux/connectors/Tab.d.ts +4 -0
  192. package/types/redux/connectors/index.d.ts +21 -0
  193. package/types/redux/index.d.ts +9 -0
  194. package/types/redux/reducers/AuthReducer.d.ts +8 -0
  195. package/types/redux/reducers/ErrorReducer.d.ts +8 -0
  196. package/types/redux/reducers/ModalsReducer.d.ts +8 -0
  197. package/types/redux/reducers/ModelCatalogReducer.d.ts +8 -0
  198. package/types/redux/reducers/NotificationReducer.d.ts +8 -0
  199. package/types/redux/reducers/PreferencesReducer.d.ts +8 -0
  200. package/types/redux/reducers/ProgressIndicatorReducer.d.ts +8 -0
  201. package/types/redux/reducers/createReducer.d.ts +14 -0
  202. package/types/redux/reducers/index.d.ts +8 -0
  203. package/types/redux/selectors/index.d.ts +2 -0
  204. package/types/redux/selectors/modelcatalog.d.ts +2 -0
  205. package/types/redux/store/beforeRenderHooks.d.ts +7 -0
  206. package/types/redux/store/configureStore.d.ts +8 -0
  207. package/types/redux/types.d.ts +5 -5
  208. package/types/utils/browser/Cookies.d.ts +3 -3
  209. package/types/utils/datetime/DateTimeUtil.d.ts +8 -3
  210. package/types/utils/fetch/__mocks__/universalFetch.d.ts +3 -0
  211. package/types/utils/fetch/types.d.ts +24 -23
  212. package/types/utils/helpers/createHref.d.ts +1 -1
  213. 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",
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": "^14.13.1 || >=16.0.0"
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 src/index.js --declaration --allowJs --emitDeclarationOnly --outDir types"
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.7",
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.8",
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.8",
110
- "@babel/preset-env": "^7.26.8",
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.0",
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>;
@@ -3,4 +3,5 @@ export default ConfigurationException;
3
3
  * ConfigurationException
4
4
  */
5
5
  declare class ConfigurationException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default IllegalArgumentException;
3
3
  * IllegalArgumentException
4
4
  */
5
5
  declare class IllegalArgumentException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -2,4 +2,5 @@ export default IllegalReturnException;
2
2
  /**
3
3
  */
4
4
  declare class IllegalReturnException extends Error {
5
+ constructor(message: string);
5
6
  }
@@ -3,4 +3,5 @@ export default IllegalStateException;
3
3
  * IllegalStateException
4
4
  */
5
5
  declare class IllegalStateException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default JsonParseException;
3
3
  * JsonParseException
4
4
  */
5
5
  declare class JsonParseException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default MissingPropertyException;
3
3
  * MissingPropertyException
4
4
  */
5
5
  declare class MissingPropertyException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default NotAllowedUriException;
3
3
  * NotAllowedUriException
4
4
  */
5
5
  declare class NotAllowedUriException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default ServerRequestException;
3
3
  * ServerRequestException
4
4
  */
5
5
  declare class ServerRequestException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default ThemePropertyException;
3
3
  * ThemePropertyException
4
4
  */
5
5
  declare class ThemePropertyException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -3,4 +3,5 @@ export default UnsupportedOperationException;
3
3
  * UnsupportedOperationException
4
4
  */
5
5
  declare class UnsupportedOperationException extends Error {
6
+ constructor(message: string);
6
7
  }
@@ -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,6 @@
1
+ /**
2
+ */
3
+ export function useDeepCompareEffect(callback: Callback, dependencies: DependencyList): void;
4
+ export default useDeepCompareEffect;
5
+ type Callback = () => void | (() => void);
6
+ type DependencyList = mixed[];
@@ -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,12 @@
1
+ /**
2
+ * Manage modals
3
+ */
4
+ export const useModal: ModalHook;
5
+ type ModalHook = (modalId: string) => {
6
+ key: string | null;
7
+ size: string | null;
8
+ visible: boolean;
9
+ show: () => void;
10
+ close: () => void;
11
+ };
12
+ 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,3 @@
1
+ export function useModularUI(modelKey: string, url: string | Href, options?: RequestModularUIOptions): any;
2
+ import Href from "../models/href/Href";
3
+ import { RequestModularUIOptions } from "../utils";
@@ -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,2 @@
1
+ export function usePreference(preferenceNames: string | Array<string>): PreferencesState;
2
+ import { PreferencesState } from "../redux/types";
@@ -0,0 +1,9 @@
1
+ export function useProgressIndicator(): ProgressIndicatorHook;
2
+ type ProgressIndicatorHook = {
3
+ ProgressIndicatorState: any;
4
+ start: () => void;
5
+ finish: () => void;
6
+ reset: () => void;
7
+ update: (percentComplete: number) => void;
8
+ };
9
+ 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 {};
@@ -5,7 +5,7 @@ type MessageObject = {};
5
5
  type LocaleConfiguration = {
6
6
  code: string;
7
7
  messages: Object;
8
- errors?: Object;
9
- nativeName?: string;
8
+ errors?: Object | undefined;
9
+ nativeName?: string | undefined;
10
10
  };
11
11
  export {};
@@ -69,7 +69,7 @@ export default class ActionModel extends BaseModel {
69
69
  get isProcessTask(): boolean;
70
70
  /**
71
71
  */
72
- get processStatus(): ProcessStatusSettingsModel;
72
+ get processStatus(): ProcessStatusSettingsModel | null;
73
73
  /**
74
74
  */
75
75
  set icon(icon: string);
@@ -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): {
@@ -18,7 +18,7 @@ declare class AttributeContent {
18
18
  get elements(): ContentAll;
19
19
  /**
20
20
  */
21
- get label(): string;
21
+ get label(): string | null;
22
22
  /**
23
23
  */
24
24
  getContentElements<T>(elementName: string): T[];
@@ -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(): "center" | "left" | "right";
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(): "center" | "left" | "right";
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
  */
@@ -14,7 +14,7 @@ export default class AttributeSetModel extends BaseModel {
14
14
  get key(): string;
15
15
  /**
16
16
  */
17
- get label(): string;
17
+ get label(): string | null;
18
18
  /**
19
19
  * Set the attributes with a new AttributeCollection
20
20
  */
@@ -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(): "toggle" | "table" | "list" | "checkbox" | "radiobutton" | "combobox" | "listview" | "longlist";
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
  */