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