@beinformed/ui 1.20.8 → 1.20.9

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 (1093) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/esm/builder/mergeLayoutHintConfigurations.js +34 -59
  3. package/esm/builder/mergeLayoutHintConfigurations.js.map +1 -1
  4. package/esm/constants/Constants.js +37 -37
  5. package/esm/constants/Constants.js.map +1 -1
  6. package/esm/constants/LayoutHintConfig.js +1 -1
  7. package/esm/constants/LayoutHintConfig.js.map +1 -1
  8. package/esm/constants/LayoutHints.js +20 -22
  9. package/esm/constants/LayoutHints.js.map +1 -1
  10. package/esm/constants/Settings.js +12 -26
  11. package/esm/constants/Settings.js.map +1 -1
  12. package/esm/exceptions/ConfigurationException.js +5 -27
  13. package/esm/exceptions/ConfigurationException.js.map +1 -1
  14. package/esm/exceptions/FetchException.js +33 -65
  15. package/esm/exceptions/FetchException.js.map +1 -1
  16. package/esm/exceptions/IllegalArgumentException.js +5 -27
  17. package/esm/exceptions/IllegalArgumentException.js.map +1 -1
  18. package/esm/exceptions/IllegalReturnException.js +5 -27
  19. package/esm/exceptions/IllegalReturnException.js.map +1 -1
  20. package/esm/exceptions/IllegalStateException.js +5 -27
  21. package/esm/exceptions/IllegalStateException.js.map +1 -1
  22. package/esm/exceptions/JsonParseException.js +5 -27
  23. package/esm/exceptions/JsonParseException.js.map +1 -1
  24. package/esm/exceptions/MissingPropertyException.js +5 -27
  25. package/esm/exceptions/MissingPropertyException.js.map +1 -1
  26. package/esm/exceptions/NetworkException.js +9 -31
  27. package/esm/exceptions/NetworkException.js.map +1 -1
  28. package/esm/exceptions/NotAllowedUriException.js +5 -27
  29. package/esm/exceptions/NotAllowedUriException.js.map +1 -1
  30. package/esm/exceptions/NotFoundException.js +12 -35
  31. package/esm/exceptions/NotFoundException.js.map +1 -1
  32. package/esm/exceptions/ServerRequestException.js +5 -27
  33. package/esm/exceptions/ServerRequestException.js.map +1 -1
  34. package/esm/exceptions/ThemePropertyException.js +5 -27
  35. package/esm/exceptions/ThemePropertyException.js.map +1 -1
  36. package/esm/exceptions/TimeoutException.js +5 -26
  37. package/esm/exceptions/TimeoutException.js.map +1 -1
  38. package/esm/exceptions/UnauthorizedException.js +11 -33
  39. package/esm/exceptions/UnauthorizedException.js.map +1 -1
  40. package/esm/exceptions/UnsupportedOperationException.js +5 -27
  41. package/esm/exceptions/UnsupportedOperationException.js.map +1 -1
  42. package/esm/hooks/useAllFormsOnModel.js +25 -46
  43. package/esm/hooks/useAllFormsOnModel.js.map +1 -1
  44. package/esm/hooks/useAuthentication.js +20 -26
  45. package/esm/hooks/useAuthentication.js.map +1 -1
  46. package/esm/hooks/useContent.js +13 -24
  47. package/esm/hooks/useContent.js.map +1 -1
  48. package/esm/hooks/useDeepCompareEffect.js +3 -3
  49. package/esm/hooks/useDeepCompareEffect.js.map +1 -1
  50. package/esm/hooks/useForm.js +27 -45
  51. package/esm/hooks/useForm.js.map +1 -1
  52. package/esm/hooks/useI18n.js +9 -19
  53. package/esm/hooks/useI18n.js.map +1 -1
  54. package/esm/hooks/useModal.js +11 -11
  55. package/esm/hooks/useModal.js.map +1 -1
  56. package/esm/hooks/useModelCatalog.js +24 -30
  57. package/esm/hooks/useModelCatalog.js.map +1 -1
  58. package/esm/hooks/useModels.js +3 -3
  59. package/esm/hooks/useModels.js.map +1 -1
  60. package/esm/hooks/useModularUI.js +17 -16
  61. package/esm/hooks/useModularUI.js.map +1 -1
  62. package/esm/hooks/useModularUIBasic.js +9 -7
  63. package/esm/hooks/useModularUIBasic.js.map +1 -1
  64. package/esm/hooks/useModularUIModel.js +39 -59
  65. package/esm/hooks/useModularUIModel.js.map +1 -1
  66. package/esm/hooks/useModularUIRequest.js +4 -6
  67. package/esm/hooks/useModularUIRequest.js.map +1 -1
  68. package/esm/hooks/useNotification.js +16 -21
  69. package/esm/hooks/useNotification.js.map +1 -1
  70. package/esm/hooks/usePreference.js +3 -5
  71. package/esm/hooks/usePreference.js.map +1 -1
  72. package/esm/hooks/useProgressIndicator.js +9 -30
  73. package/esm/hooks/useProgressIndicator.js.map +1 -1
  74. package/esm/hooks/useRouter.js +12 -26
  75. package/esm/hooks/useRouter.js.map +1 -1
  76. package/esm/i18n/Locale.js +96 -135
  77. package/esm/i18n/Locale.js.map +1 -1
  78. package/esm/i18n/Locales.js +94 -148
  79. package/esm/i18n/Locales.js.map +1 -1
  80. package/esm/i18n/Message.js +13 -24
  81. package/esm/i18n/Message.js.map +1 -1
  82. package/esm/i18n/languages.js +1 -1
  83. package/esm/i18n/languages.js.map +1 -1
  84. package/esm/i18n/withMessage.js +10 -16
  85. package/esm/i18n/withMessage.js.map +1 -1
  86. package/esm/models/actions/ActionCollection.js +55 -100
  87. package/esm/models/actions/ActionCollection.js.map +1 -1
  88. package/esm/models/actions/ActionModel.js +165 -204
  89. package/esm/models/actions/ActionModel.js.map +1 -1
  90. package/esm/models/application/ApplicationModel.js +104 -153
  91. package/esm/models/application/ApplicationModel.js.map +1 -1
  92. package/esm/models/attributes/AttributeCollection.js +246 -331
  93. package/esm/models/attributes/AttributeCollection.js.map +1 -1
  94. package/esm/models/attributes/AttributeContent.js +181 -246
  95. package/esm/models/attributes/AttributeContent.js.map +1 -1
  96. package/esm/models/attributes/AttributeDataHelper.js +202 -250
  97. package/esm/models/attributes/AttributeDataHelper.js.map +1 -1
  98. package/esm/models/attributes/AttributeModel.js +832 -941
  99. package/esm/models/attributes/AttributeModel.js.map +1 -1
  100. package/esm/models/attributes/AttributeSetModel.js +46 -77
  101. package/esm/models/attributes/AttributeSetModel.js.map +1 -1
  102. package/esm/models/attributes/BooleanAttributeModel.js +259 -325
  103. package/esm/models/attributes/BooleanAttributeModel.js.map +1 -1
  104. package/esm/models/attributes/CaptchaAttributeModel.js +24 -55
  105. package/esm/models/attributes/CaptchaAttributeModel.js.map +1 -1
  106. package/esm/models/attributes/ChoiceAttributeModel.js +337 -424
  107. package/esm/models/attributes/ChoiceAttributeModel.js.map +1 -1
  108. package/esm/models/attributes/ChoiceAttributeOptionCollection.js +271 -361
  109. package/esm/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  110. package/esm/models/attributes/ChoiceAttributeOptionModel.js +297 -351
  111. package/esm/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  112. package/esm/models/attributes/CompositeAttributeChildCollection.js +180 -257
  113. package/esm/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  114. package/esm/models/attributes/CompositeAttributeModel.js +326 -401
  115. package/esm/models/attributes/CompositeAttributeModel.js.map +1 -1
  116. package/esm/models/attributes/DatetimeAttributeModel.js +368 -419
  117. package/esm/models/attributes/DatetimeAttributeModel.js.map +1 -1
  118. package/esm/models/attributes/HelptextAttributeModel.js +38 -70
  119. package/esm/models/attributes/HelptextAttributeModel.js.map +1 -1
  120. package/esm/models/attributes/LabelAttributeModel.js +23 -54
  121. package/esm/models/attributes/LabelAttributeModel.js.map +1 -1
  122. package/esm/models/attributes/MemoAttributeModel.js +31 -63
  123. package/esm/models/attributes/MemoAttributeModel.js.map +1 -1
  124. package/esm/models/attributes/MoneyAttributeModel.js +30 -62
  125. package/esm/models/attributes/MoneyAttributeModel.js.map +1 -1
  126. package/esm/models/attributes/NumberAttributeModel.js +178 -225
  127. package/esm/models/attributes/NumberAttributeModel.js.map +1 -1
  128. package/esm/models/attributes/PasswordAttributeModel.js +197 -246
  129. package/esm/models/attributes/PasswordAttributeModel.js.map +1 -1
  130. package/esm/models/attributes/StringAttributeModel.js +234 -282
  131. package/esm/models/attributes/StringAttributeModel.js.map +1 -1
  132. package/esm/models/attributes/UploadAttributeModel.js +181 -238
  133. package/esm/models/attributes/UploadAttributeModel.js.map +1 -1
  134. package/esm/models/attributes/XMLAttributeModel.js +32 -64
  135. package/esm/models/attributes/XMLAttributeModel.js.map +1 -1
  136. package/esm/models/attributes/_createAttribute.js +21 -36
  137. package/esm/models/attributes/_createAttribute.js.map +1 -1
  138. package/esm/models/attributes/input-constraints/BSNConstraint.js +63 -81
  139. package/esm/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  140. package/esm/models/attributes/input-constraints/ConstraintCollection.js +29 -66
  141. package/esm/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  142. package/esm/models/attributes/input-constraints/ConstraintModel.js +44 -59
  143. package/esm/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  144. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +170 -192
  145. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  146. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +52 -67
  147. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  148. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +52 -67
  149. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  150. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js +66 -83
  151. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  152. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js +53 -69
  153. package/esm/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  154. package/esm/models/attributes/input-constraints/FileSizeConstraint.js +78 -94
  155. package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  156. package/esm/models/attributes/input-constraints/IBANConstraint.js +35 -51
  157. package/esm/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  158. package/esm/models/attributes/input-constraints/MandatoryConstraint.js +39 -57
  159. package/esm/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  160. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js +62 -81
  161. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  162. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js +149 -171
  163. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  164. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js +104 -124
  165. package/esm/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  166. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js +91 -113
  167. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  168. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js +58 -73
  169. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  170. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +35 -52
  171. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  172. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +51 -65
  173. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  174. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +51 -65
  175. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  176. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +65 -83
  177. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  178. package/esm/models/attributes/input-constraints/RangeConstraint.js +115 -134
  179. package/esm/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  180. package/esm/models/attributes/input-constraints/RegexConstraint.js +47 -61
  181. package/esm/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  182. package/esm/models/attributes/input-constraints/StringLengthConstraint.js +157 -176
  183. package/esm/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  184. package/esm/models/attributes/input-constraints/XMLConstraint.js +48 -66
  185. package/esm/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  186. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js +49 -64
  187. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  188. package/esm/models/attributes/layouthint-rules/DependentAttribute.js +167 -209
  189. package/esm/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  190. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +40 -68
  191. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  192. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +30 -59
  193. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  194. package/esm/models/base/BaseCollection.js +169 -203
  195. package/esm/models/base/BaseCollection.js.map +1 -1
  196. package/esm/models/base/BaseModel.js +97 -112
  197. package/esm/models/base/BaseModel.js.map +1 -1
  198. package/esm/models/base/ResourceCollection.js +27 -55
  199. package/esm/models/base/ResourceCollection.js.map +1 -1
  200. package/esm/models/base/ResourceModel.js +167 -217
  201. package/esm/models/base/ResourceModel.js.map +1 -1
  202. package/esm/models/caseview/CaseViewModel.js +132 -180
  203. package/esm/models/caseview/CaseViewModel.js.map +1 -1
  204. package/esm/models/concepts/BusinessScenarioModel.js +98 -147
  205. package/esm/models/concepts/BusinessScenarioModel.js.map +1 -1
  206. package/esm/models/concepts/ConceptDetailModel.js +239 -316
  207. package/esm/models/concepts/ConceptDetailModel.js.map +1 -1
  208. package/esm/models/concepts/ConceptIndexModel.js +114 -150
  209. package/esm/models/concepts/ConceptIndexModel.js.map +1 -1
  210. package/esm/models/concepts/ConceptLinkModel.js +118 -158
  211. package/esm/models/concepts/ConceptLinkModel.js.map +1 -1
  212. package/esm/models/concepts/ConceptRelationCollection.js +56 -103
  213. package/esm/models/concepts/ConceptRelationCollection.js.map +1 -1
  214. package/esm/models/concepts/ConceptRelationModel.js +60 -75
  215. package/esm/models/concepts/ConceptRelationModel.js.map +1 -1
  216. package/esm/models/concepts/ConceptTypeDetailModel.js +89 -126
  217. package/esm/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  218. package/esm/models/concepts/SourceReferenceCollection.js +11 -42
  219. package/esm/models/concepts/SourceReferenceCollection.js.map +1 -1
  220. package/esm/models/concepts/SourceReferenceModel.js +47 -70
  221. package/esm/models/concepts/SourceReferenceModel.js.map +1 -1
  222. package/esm/models/content/ContentIndexModel.js +108 -150
  223. package/esm/models/content/ContentIndexModel.js.map +1 -1
  224. package/esm/models/content/ContentLinkModel.js +157 -199
  225. package/esm/models/content/ContentLinkModel.js.map +1 -1
  226. package/esm/models/content/ContentModel.js +184 -228
  227. package/esm/models/content/ContentModel.js.map +1 -1
  228. package/esm/models/content/ContentTOCModel.js +132 -196
  229. package/esm/models/content/ContentTOCModel.js.map +1 -1
  230. package/esm/models/content/ContentTypeModel.js +58 -93
  231. package/esm/models/content/ContentTypeModel.js.map +1 -1
  232. package/esm/models/content/SectionModel.js +161 -247
  233. package/esm/models/content/SectionModel.js.map +1 -1
  234. package/esm/models/content/SubSectionModel.js +122 -188
  235. package/esm/models/content/SubSectionModel.js.map +1 -1
  236. package/esm/models/contentconfiguration/ContentConfiguration.js +44 -58
  237. package/esm/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  238. package/esm/models/contentconfiguration/ContentConfigurationElements.js +123 -162
  239. package/esm/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  240. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js +24 -38
  241. package/esm/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  242. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js +30 -41
  243. package/esm/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  244. package/esm/models/contentconfiguration/ContentConfigurationResults.js +73 -95
  245. package/esm/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  246. package/esm/models/detail/DetailModel.js +174 -225
  247. package/esm/models/detail/DetailModel.js.map +1 -1
  248. package/esm/models/error/ErrorCollection.js +79 -132
  249. package/esm/models/error/ErrorCollection.js.map +1 -1
  250. package/esm/models/error/ErrorModel.js +36 -48
  251. package/esm/models/error/ErrorModel.js.map +1 -1
  252. package/esm/models/error/ErrorResponse.js +175 -204
  253. package/esm/models/error/ErrorResponse.js.map +1 -1
  254. package/esm/models/filters/AssignmentFilterModel.js +142 -186
  255. package/esm/models/filters/AssignmentFilterModel.js.map +1 -1
  256. package/esm/models/filters/BaseFilterModel.js +170 -220
  257. package/esm/models/filters/BaseFilterModel.js.map +1 -1
  258. package/esm/models/filters/ConceptIndexFilterModel.js +8 -36
  259. package/esm/models/filters/ConceptIndexFilterModel.js.map +1 -1
  260. package/esm/models/filters/FilterCollection.js +106 -165
  261. package/esm/models/filters/FilterCollection.js.map +1 -1
  262. package/esm/models/filters/FilterModel.js +1 -26
  263. package/esm/models/filters/FilterModel.js.map +1 -1
  264. package/esm/models/filters/RangeFilterModel.js +29 -58
  265. package/esm/models/filters/RangeFilterModel.js.map +1 -1
  266. package/esm/models/form/FormModel.js +957 -1133
  267. package/esm/models/form/FormModel.js.map +1 -1
  268. package/esm/models/form/FormObjectModel.js +412 -506
  269. package/esm/models/form/FormObjectModel.js.map +1 -1
  270. package/esm/models/grouping/GroupingModel.js +115 -163
  271. package/esm/models/grouping/GroupingModel.js.map +1 -1
  272. package/esm/models/href/Href.js +391 -450
  273. package/esm/models/href/Href.js.map +1 -1
  274. package/esm/models/href/ListHref.js +116 -155
  275. package/esm/models/href/ListHref.js.map +1 -1
  276. package/esm/models/layouthint/LayoutHintCollection.js +91 -136
  277. package/esm/models/layouthint/LayoutHintCollection.js.map +1 -1
  278. package/esm/models/links/LinkCollection.js +127 -185
  279. package/esm/models/links/LinkCollection.js.map +1 -1
  280. package/esm/models/links/LinkModel.js +189 -228
  281. package/esm/models/links/LinkModel.js.map +1 -1
  282. package/esm/models/links/normalizeLinkJSON.js +30 -57
  283. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  284. package/esm/models/list/ListDetailModel.js +226 -289
  285. package/esm/models/list/ListDetailModel.js.map +1 -1
  286. package/esm/models/list/ListHeaderModel.js +74 -97
  287. package/esm/models/list/ListHeaderModel.js.map +1 -1
  288. package/esm/models/list/ListItemCollection.js +49 -85
  289. package/esm/models/list/ListItemCollection.js.map +1 -1
  290. package/esm/models/list/ListItemModel.js +73 -110
  291. package/esm/models/list/ListItemModel.js.map +1 -1
  292. package/esm/models/list/ListModel.js +342 -421
  293. package/esm/models/list/ListModel.js.map +1 -1
  294. package/esm/models/lookup/LookupOptionCollection.js +15 -51
  295. package/esm/models/lookup/LookupOptionCollection.js.map +1 -1
  296. package/esm/models/lookup/LookupOptionsModel.js +42 -71
  297. package/esm/models/lookup/LookupOptionsModel.js.map +1 -1
  298. package/esm/models/modelcatalog/ModelCatalogModel.js +35 -67
  299. package/esm/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  300. package/esm/models/paging/PagesizeModel.js +31 -42
  301. package/esm/models/paging/PagesizeModel.js.map +1 -1
  302. package/esm/models/paging/PagingModel.js +77 -94
  303. package/esm/models/paging/PagingModel.js.map +1 -1
  304. package/esm/models/panels/GroupingPanelModel.js +116 -160
  305. package/esm/models/panels/GroupingPanelModel.js.map +1 -1
  306. package/esm/models/parameter/Parameter.js +82 -97
  307. package/esm/models/parameter/Parameter.js.map +1 -1
  308. package/esm/models/process/ProcessStatusSettingsModel.js +63 -100
  309. package/esm/models/process/ProcessStatusSettingsModel.js.map +1 -1
  310. package/esm/models/resolveModel.js +3 -5
  311. package/esm/models/resolveModel.js.map +1 -1
  312. package/esm/models/search/CaseSearchModel.js +23 -56
  313. package/esm/models/search/CaseSearchModel.js.map +1 -1
  314. package/esm/models/sorting/SortOptionModel.js +76 -90
  315. package/esm/models/sorting/SortOptionModel.js.map +1 -1
  316. package/esm/models/sorting/SortingModel.js +86 -134
  317. package/esm/models/sorting/SortingModel.js.map +1 -1
  318. package/esm/models/tab/TabModel.js +118 -163
  319. package/esm/models/tab/TabModel.js.map +1 -1
  320. package/esm/models/taskgroup/TaskGroupCollection.js +7 -37
  321. package/esm/models/taskgroup/TaskGroupCollection.js.map +1 -1
  322. package/esm/models/taskgroup/TaskGroupModel.js +51 -83
  323. package/esm/models/taskgroup/TaskGroupModel.js.map +1 -1
  324. package/esm/models/user/UserModel.js +29 -61
  325. package/esm/models/user/UserModel.js.map +1 -1
  326. package/esm/models/user/UserProfileModel.js +19 -50
  327. package/esm/models/user/UserProfileModel.js.map +1 -1
  328. package/esm/models/user/UserServicesModel.js +79 -123
  329. package/esm/models/user/UserServicesModel.js.map +1 -1
  330. package/esm/modularui/Authenticate.js +143 -156
  331. package/esm/modularui/Authenticate.js.map +1 -1
  332. package/esm/modularui/ModularUIError.js +9 -32
  333. package/esm/modularui/ModularUIError.js.map +1 -1
  334. package/esm/modularui/ModularUIRequest.js +476 -630
  335. package/esm/modularui/ModularUIRequest.js.map +1 -1
  336. package/esm/modularui/ModularUIResponse.js +104 -119
  337. package/esm/modularui/ModularUIResponse.js.map +1 -1
  338. package/esm/react/ErrorBoundary.js +32 -65
  339. package/esm/react/ErrorBoundary.js.map +1 -1
  340. package/esm/react/ErrorBoundaryFallback.js +8 -6
  341. package/esm/react/ErrorBoundaryFallback.js.map +1 -1
  342. package/esm/react/utils.js +12 -15
  343. package/esm/react/utils.js.map +1 -1
  344. package/esm/react-client/Init.js +9 -7
  345. package/esm/react-client/Init.js.map +1 -1
  346. package/esm/react-client/client.js +21 -22
  347. package/esm/react-client/client.js.map +1 -1
  348. package/esm/react-client/contextPath.js +4 -4
  349. package/esm/react-client/contextPath.js.map +1 -1
  350. package/esm/react-client/rehydrate.js +14 -21
  351. package/esm/react-client/rehydrate.js.map +1 -1
  352. package/esm/react-server/createSSRComplete.js +10 -14
  353. package/esm/react-server/createSSRComplete.js.map +1 -1
  354. package/esm/react-server/htmlpage.js +5 -8
  355. package/esm/react-server/htmlpage.js.map +1 -1
  356. package/esm/react-server/renderSSRComplete.js +50 -55
  357. package/esm/react-server/renderSSRComplete.js.map +1 -1
  358. package/esm/react-server/renderSSRMinimal.js +13 -13
  359. package/esm/react-server/renderSSRMinimal.js.map +1 -1
  360. package/esm/react-server/requestInformation.js +8 -10
  361. package/esm/react-server/requestInformation.js.map +1 -1
  362. package/esm/react-server/serverNoSSR.js +22 -21
  363. package/esm/react-server/serverNoSSR.js.map +1 -1
  364. package/esm/react-server/serverSSR.js +24 -24
  365. package/esm/react-server/serverSSR.js.map +1 -1
  366. package/esm/react-server/serverUtil.js +45 -61
  367. package/esm/react-server/serverUtil.js.map +1 -1
  368. package/esm/react-theme/ThemeProvider.js +10 -7
  369. package/esm/react-theme/ThemeProvider.js.map +1 -1
  370. package/esm/react-theme/createTheme.js +15 -35
  371. package/esm/react-theme/createTheme.js.map +1 -1
  372. package/esm/react-theme/useTheme.js +1 -1
  373. package/esm/react-theme/useTheme.js.map +1 -1
  374. package/esm/react-theme/utils/background.js +9 -9
  375. package/esm/react-theme/utils/background.js.map +1 -1
  376. package/esm/react-theme/utils/colors.js +12 -12
  377. package/esm/react-theme/utils/colors.js.map +1 -1
  378. package/esm/react-theme/utils/contrast.js +27 -27
  379. package/esm/react-theme/utils/contrast.js.map +1 -1
  380. package/esm/react-theme/utils/corners.js +10 -9
  381. package/esm/react-theme/utils/corners.js.map +1 -1
  382. package/esm/react-theme/utils/spacers.js +23 -22
  383. package/esm/react-theme/utils/spacers.js.map +1 -1
  384. package/esm/react-theme/utils/themeProps.js +28 -29
  385. package/esm/react-theme/utils/themeProps.js.map +1 -1
  386. package/esm/redux/_i18n/actions.js +15 -21
  387. package/esm/redux/_i18n/actions.js.map +1 -1
  388. package/esm/redux/_i18n/reducer.js +20 -29
  389. package/esm/redux/_i18n/reducer.js.map +1 -1
  390. package/esm/redux/_modularui/actions.js +40 -67
  391. package/esm/redux/_modularui/actions.js.map +1 -1
  392. package/esm/redux/_modularui/connector.js +46 -50
  393. package/esm/redux/_modularui/connector.js.map +1 -1
  394. package/esm/redux/_modularui/middleware.js +23 -36
  395. package/esm/redux/_modularui/middleware.js.map +1 -1
  396. package/esm/redux/_modularui/modularuiUtils.js +16 -23
  397. package/esm/redux/_modularui/modularuiUtils.js.map +1 -1
  398. package/esm/redux/_modularui/reducer.js +42 -53
  399. package/esm/redux/_modularui/reducer.js.map +1 -1
  400. package/esm/redux/_modularui/selectors.js +89 -99
  401. package/esm/redux/_modularui/selectors.js.map +1 -1
  402. package/esm/redux/_modularui/withModularUI.js +15 -19
  403. package/esm/redux/_modularui/withModularUI.js.map +1 -1
  404. package/esm/redux/_router/actions.js +29 -39
  405. package/esm/redux/_router/actions.js.map +1 -1
  406. package/esm/redux/_router/connectors.js +12 -14
  407. package/esm/redux/_router/connectors.js.map +1 -1
  408. package/esm/redux/_router/middleware.js +27 -29
  409. package/esm/redux/_router/middleware.js.map +1 -1
  410. package/esm/redux/_router/reducer.js +4 -4
  411. package/esm/redux/_router/reducer.js.map +1 -1
  412. package/esm/redux/actions/Application.js +9 -32
  413. package/esm/redux/actions/Application.js.map +1 -1
  414. package/esm/redux/actions/Authorization.js +31 -33
  415. package/esm/redux/actions/Authorization.js.map +1 -1
  416. package/esm/redux/actions/Error.js +33 -43
  417. package/esm/redux/actions/Error.js.map +1 -1
  418. package/esm/redux/actions/Form.js +13 -15
  419. package/esm/redux/actions/Form.js.map +1 -1
  420. package/esm/redux/actions/FormAttributeSet.js +6 -6
  421. package/esm/redux/actions/FormAttributeSet.js.map +1 -1
  422. package/esm/redux/actions/FormAttributeSetRepeatable.js +6 -6
  423. package/esm/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  424. package/esm/redux/actions/FormAutosave.js +12 -18
  425. package/esm/redux/actions/FormAutosave.js.map +1 -1
  426. package/esm/redux/actions/FormAutosubmit.js +2 -2
  427. package/esm/redux/actions/FormAutosubmit.js.map +1 -1
  428. package/esm/redux/actions/FormValidations.js +12 -20
  429. package/esm/redux/actions/FormValidations.js.map +1 -1
  430. package/esm/redux/actions/Modals.js +8 -12
  431. package/esm/redux/actions/Modals.js.map +1 -1
  432. package/esm/redux/actions/Notification.js +32 -42
  433. package/esm/redux/actions/Notification.js.map +1 -1
  434. package/esm/redux/actions/Preferences.js +32 -38
  435. package/esm/redux/actions/Preferences.js.map +1 -1
  436. package/esm/redux/actions/ProgressIndicator.js +15 -23
  437. package/esm/redux/actions/ProgressIndicator.js.map +1 -1
  438. package/esm/redux/actions/SignIn.js +39 -53
  439. package/esm/redux/actions/SignIn.js.map +1 -1
  440. package/esm/redux/actions/SignOut.js +9 -17
  441. package/esm/redux/actions/SignOut.js.map +1 -1
  442. package/esm/redux/connectors/Application.js +1 -1
  443. package/esm/redux/connectors/Application.js.map +1 -1
  444. package/esm/redux/connectors/Breadcrumb.js +4 -6
  445. package/esm/redux/connectors/Breadcrumb.js.map +1 -1
  446. package/esm/redux/connectors/CaseView.js +4 -2
  447. package/esm/redux/connectors/CaseView.js.map +1 -1
  448. package/esm/redux/connectors/ConceptDetail.js +5 -3
  449. package/esm/redux/connectors/ConceptDetail.js.map +1 -1
  450. package/esm/redux/connectors/ContentBrowser.js +4 -2
  451. package/esm/redux/connectors/ContentBrowser.js.map +1 -1
  452. package/esm/redux/connectors/ContentDetail.js +5 -3
  453. package/esm/redux/connectors/ContentDetail.js.map +1 -1
  454. package/esm/redux/connectors/ContentDetailSection.js +6 -4
  455. package/esm/redux/connectors/ContentDetailSection.js.map +1 -1
  456. package/esm/redux/connectors/Form.js +11 -9
  457. package/esm/redux/connectors/Form.js.map +1 -1
  458. package/esm/redux/connectors/FormAttributeSet.js +13 -21
  459. package/esm/redux/connectors/FormAttributeSet.js.map +1 -1
  460. package/esm/redux/connectors/ListDetail.js +4 -2
  461. package/esm/redux/connectors/ListDetail.js.map +1 -1
  462. package/esm/redux/connectors/Modal.js +4 -6
  463. package/esm/redux/connectors/Modal.js.map +1 -1
  464. package/esm/redux/connectors/ModelCatalog.js +4 -2
  465. package/esm/redux/connectors/ModelCatalog.js.map +1 -1
  466. package/esm/redux/connectors/Notification.js +8 -10
  467. package/esm/redux/connectors/Notification.js.map +1 -1
  468. package/esm/redux/connectors/PanelRenderer.js +7 -6
  469. package/esm/redux/connectors/PanelRenderer.js.map +1 -1
  470. package/esm/redux/connectors/Preferences.js +6 -8
  471. package/esm/redux/connectors/Preferences.js.map +1 -1
  472. package/esm/redux/connectors/Progress.js +2 -2
  473. package/esm/redux/connectors/Progress.js.map +1 -1
  474. package/esm/redux/connectors/ProgressIndicator.js +6 -8
  475. package/esm/redux/connectors/ProgressIndicator.js.map +1 -1
  476. package/esm/redux/connectors/QuickSearch.js +6 -4
  477. package/esm/redux/connectors/QuickSearch.js.map +1 -1
  478. package/esm/redux/connectors/SignIn.js +4 -4
  479. package/esm/redux/connectors/SignIn.js.map +1 -1
  480. package/esm/redux/connectors/SignOut.js +3 -3
  481. package/esm/redux/connectors/SignOut.js.map +1 -1
  482. package/esm/redux/connectors/Tab.js +4 -2
  483. package/esm/redux/connectors/Tab.js.map +1 -1
  484. package/esm/redux/reducers/AuthReducer.js +14 -25
  485. package/esm/redux/reducers/AuthReducer.js.map +1 -1
  486. package/esm/redux/reducers/ErrorReducer.js +4 -4
  487. package/esm/redux/reducers/ErrorReducer.js.map +1 -1
  488. package/esm/redux/reducers/ModalsReducer.js +19 -37
  489. package/esm/redux/reducers/ModalsReducer.js.map +1 -1
  490. package/esm/redux/reducers/NotificationReducer.js +8 -19
  491. package/esm/redux/reducers/NotificationReducer.js.map +1 -1
  492. package/esm/redux/reducers/PreferencesReducer.js +10 -17
  493. package/esm/redux/reducers/PreferencesReducer.js.map +1 -1
  494. package/esm/redux/reducers/ProgressIndicatorReducer.js +14 -25
  495. package/esm/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  496. package/esm/redux/reducers/createReducer.js +11 -13
  497. package/esm/redux/reducers/createReducer.js.map +1 -1
  498. package/esm/redux/selectors/i18n.js +2 -4
  499. package/esm/redux/selectors/i18n.js.map +1 -1
  500. package/esm/redux/store/beforeRenderHooks.js +5 -26
  501. package/esm/redux/store/beforeRenderHooks.js.map +1 -1
  502. package/esm/redux/store/configureStore.js +10 -19
  503. package/esm/redux/store/configureStore.js.map +1 -1
  504. package/esm/utils/browser/Cache.js +122 -156
  505. package/esm/utils/browser/Cache.js.map +1 -1
  506. package/esm/utils/browser/Cookies.js +4 -4
  507. package/esm/utils/browser/Cookies.js.map +1 -1
  508. package/esm/utils/datetime/DateTimeUtil.js +363 -418
  509. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  510. package/esm/utils/fetch/serverFetch.js +5 -5
  511. package/esm/utils/fetch/serverFetch.js.map +1 -1
  512. package/esm/utils/fetch/universalFetch.js +13 -14
  513. package/esm/utils/fetch/universalFetch.js.map +1 -1
  514. package/esm/utils/fetch/xhr.js +281 -358
  515. package/esm/utils/fetch/xhr.js.map +1 -1
  516. package/esm/utils/helpers/checkResource.js +7 -7
  517. package/esm/utils/helpers/checkResource.js.map +1 -1
  518. package/esm/utils/helpers/createHash.js +5 -5
  519. package/esm/utils/helpers/createHash.js.map +1 -1
  520. package/esm/utils/helpers/createUUID.js +4 -4
  521. package/esm/utils/helpers/createUUID.js.map +1 -1
  522. package/esm/utils/helpers/objects.js +9 -14
  523. package/esm/utils/helpers/objects.js.map +1 -1
  524. package/esm/utils/helpers/sanitizeHtml.js +13 -13
  525. package/esm/utils/helpers/sanitizeHtml.js.map +1 -1
  526. package/esm/utils/helpers/text.js +1 -1
  527. package/esm/utils/helpers/text.js.map +1 -1
  528. package/esm/utils/number/DecimalFormat.js +297 -327
  529. package/esm/utils/number/DecimalFormat.js.map +1 -1
  530. package/esm/utils/number/formatValue.js +10 -16
  531. package/esm/utils/number/formatValue.js.map +1 -1
  532. package/esm/utils/number/parseNumbers.js +13 -13
  533. package/esm/utils/number/parseNumbers.js.map +1 -1
  534. package/lib/builder/index.js +1 -1
  535. package/lib/builder/mergeLayoutHintConfigurations.js +34 -64
  536. package/lib/builder/mergeLayoutHintConfigurations.js.map +1 -1
  537. package/lib/constants/Constants.js +37 -37
  538. package/lib/constants/Constants.js.map +1 -1
  539. package/lib/constants/LayoutHintConfig.js +1 -1
  540. package/lib/constants/LayoutHintConfig.js.map +1 -1
  541. package/lib/constants/LayoutHints.js +20 -22
  542. package/lib/constants/LayoutHints.js.map +1 -1
  543. package/lib/constants/Settings.js +12 -26
  544. package/lib/constants/Settings.js.map +1 -1
  545. package/lib/constants/index.js +3 -3
  546. package/lib/exceptions/ConfigurationException.js +5 -34
  547. package/lib/exceptions/ConfigurationException.js.map +1 -1
  548. package/lib/exceptions/FetchException.js +32 -75
  549. package/lib/exceptions/FetchException.js.map +1 -1
  550. package/lib/exceptions/IllegalArgumentException.js +5 -34
  551. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  552. package/lib/exceptions/IllegalReturnException.js +5 -34
  553. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  554. package/lib/exceptions/IllegalStateException.js +5 -34
  555. package/lib/exceptions/IllegalStateException.js.map +1 -1
  556. package/lib/exceptions/JsonParseException.js +5 -34
  557. package/lib/exceptions/JsonParseException.js.map +1 -1
  558. package/lib/exceptions/MissingPropertyException.js +5 -34
  559. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  560. package/lib/exceptions/NetworkException.js +9 -38
  561. package/lib/exceptions/NetworkException.js.map +1 -1
  562. package/lib/exceptions/NotAllowedUriException.js +5 -34
  563. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  564. package/lib/exceptions/NotFoundException.js +12 -41
  565. package/lib/exceptions/NotFoundException.js.map +1 -1
  566. package/lib/exceptions/ServerRequestException.js +5 -34
  567. package/lib/exceptions/ServerRequestException.js.map +1 -1
  568. package/lib/exceptions/ThemePropertyException.js +5 -34
  569. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  570. package/lib/exceptions/TimeoutException.js +5 -32
  571. package/lib/exceptions/TimeoutException.js.map +1 -1
  572. package/lib/exceptions/UnauthorizedException.js +11 -40
  573. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  574. package/lib/exceptions/UnsupportedOperationException.js +5 -34
  575. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  576. package/lib/exceptions/index.js +15 -15
  577. package/lib/hooks/index.js +16 -16
  578. package/lib/hooks/useAllFormsOnModel.js +25 -51
  579. package/lib/hooks/useAllFormsOnModel.js.map +1 -1
  580. package/lib/hooks/useAuthentication.js +18 -24
  581. package/lib/hooks/useAuthentication.js.map +1 -1
  582. package/lib/hooks/useContent.js +14 -27
  583. package/lib/hooks/useContent.js.map +1 -1
  584. package/lib/hooks/useDeepCompareEffect.js +5 -7
  585. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  586. package/lib/hooks/useForm.js +27 -45
  587. package/lib/hooks/useForm.js.map +1 -1
  588. package/lib/hooks/useI18n.js +10 -20
  589. package/lib/hooks/useI18n.js.map +1 -1
  590. package/lib/hooks/useModal.js +11 -11
  591. package/lib/hooks/useModal.js.map +1 -1
  592. package/lib/hooks/useModelCatalog.js +24 -30
  593. package/lib/hooks/useModelCatalog.js.map +1 -1
  594. package/lib/hooks/useModels.js +3 -3
  595. package/lib/hooks/useModels.js.map +1 -1
  596. package/lib/hooks/useModularUI.js +17 -16
  597. package/lib/hooks/useModularUI.js.map +1 -1
  598. package/lib/hooks/useModularUIBasic.js +9 -7
  599. package/lib/hooks/useModularUIBasic.js.map +1 -1
  600. package/lib/hooks/useModularUIModel.js +39 -59
  601. package/lib/hooks/useModularUIModel.js.map +1 -1
  602. package/lib/hooks/useModularUIRequest.js +4 -6
  603. package/lib/hooks/useModularUIRequest.js.map +1 -1
  604. package/lib/hooks/useNotification.js +16 -21
  605. package/lib/hooks/useNotification.js.map +1 -1
  606. package/lib/hooks/usePreference.js +3 -5
  607. package/lib/hooks/usePreference.js.map +1 -1
  608. package/lib/hooks/useProgressIndicator.js +9 -37
  609. package/lib/hooks/useProgressIndicator.js.map +1 -1
  610. package/lib/hooks/useRouter.js +11 -25
  611. package/lib/hooks/useRouter.js.map +1 -1
  612. package/lib/i18n/Locale.js +97 -144
  613. package/lib/i18n/Locale.js.map +1 -1
  614. package/lib/i18n/Locales.js +97 -160
  615. package/lib/i18n/Locales.js.map +1 -1
  616. package/lib/i18n/Message.js +13 -31
  617. package/lib/i18n/Message.js.map +1 -1
  618. package/lib/i18n/index.js +9 -11
  619. package/lib/i18n/index.js.map +1 -1
  620. package/lib/i18n/languages.js +1 -1
  621. package/lib/i18n/languages.js.map +1 -1
  622. package/lib/i18n/withMessage.js +11 -17
  623. package/lib/i18n/withMessage.js.map +1 -1
  624. package/lib/index.js +6 -6
  625. package/lib/models/actions/ActionCollection.js +58 -104
  626. package/lib/models/actions/ActionCollection.js.map +1 -1
  627. package/lib/models/actions/ActionModel.js +169 -210
  628. package/lib/models/actions/ActionModel.js.map +1 -1
  629. package/lib/models/application/ApplicationModel.js +107 -159
  630. package/lib/models/application/ApplicationModel.js.map +1 -1
  631. package/lib/models/attributes/AttributeCollection.js +245 -341
  632. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  633. package/lib/models/attributes/AttributeContent.js +182 -257
  634. package/lib/models/attributes/AttributeContent.js.map +1 -1
  635. package/lib/models/attributes/AttributeDataHelper.js +203 -257
  636. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  637. package/lib/models/attributes/AttributeModel.js +838 -950
  638. package/lib/models/attributes/AttributeModel.js.map +1 -1
  639. package/lib/models/attributes/AttributeSetModel.js +49 -83
  640. package/lib/models/attributes/AttributeSetModel.js.map +1 -1
  641. package/lib/models/attributes/BooleanAttributeModel.js +267 -339
  642. package/lib/models/attributes/BooleanAttributeModel.js.map +1 -1
  643. package/lib/models/attributes/CaptchaAttributeModel.js +27 -59
  644. package/lib/models/attributes/CaptchaAttributeModel.js.map +1 -1
  645. package/lib/models/attributes/ChoiceAttributeModel.js +343 -437
  646. package/lib/models/attributes/ChoiceAttributeModel.js.map +1 -1
  647. package/lib/models/attributes/ChoiceAttributeOptionCollection.js +268 -369
  648. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  649. package/lib/models/attributes/ChoiceAttributeOptionModel.js +299 -357
  650. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  651. package/lib/models/attributes/CompositeAttributeChildCollection.js +181 -270
  652. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  653. package/lib/models/attributes/CompositeAttributeModel.js +331 -411
  654. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  655. package/lib/models/attributes/DatetimeAttributeModel.js +371 -425
  656. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  657. package/lib/models/attributes/HelptextAttributeModel.js +41 -74
  658. package/lib/models/attributes/HelptextAttributeModel.js.map +1 -1
  659. package/lib/models/attributes/LabelAttributeModel.js +26 -58
  660. package/lib/models/attributes/LabelAttributeModel.js.map +1 -1
  661. package/lib/models/attributes/MemoAttributeModel.js +34 -67
  662. package/lib/models/attributes/MemoAttributeModel.js.map +1 -1
  663. package/lib/models/attributes/MoneyAttributeModel.js +34 -67
  664. package/lib/models/attributes/MoneyAttributeModel.js.map +1 -1
  665. package/lib/models/attributes/NumberAttributeModel.js +181 -231
  666. package/lib/models/attributes/NumberAttributeModel.js.map +1 -1
  667. package/lib/models/attributes/PasswordAttributeModel.js +201 -253
  668. package/lib/models/attributes/PasswordAttributeModel.js.map +1 -1
  669. package/lib/models/attributes/StringAttributeModel.js +239 -289
  670. package/lib/models/attributes/StringAttributeModel.js.map +1 -1
  671. package/lib/models/attributes/UploadAttributeModel.js +183 -243
  672. package/lib/models/attributes/UploadAttributeModel.js.map +1 -1
  673. package/lib/models/attributes/XMLAttributeModel.js +38 -71
  674. package/lib/models/attributes/XMLAttributeModel.js.map +1 -1
  675. package/lib/models/attributes/_createAttribute.js +20 -43
  676. package/lib/models/attributes/_createAttribute.js.map +1 -1
  677. package/lib/models/attributes/input-constraints/BSNConstraint.js +64 -84
  678. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  679. package/lib/models/attributes/input-constraints/ConstraintCollection.js +36 -74
  680. package/lib/models/attributes/input-constraints/ConstraintCollection.js.map +1 -1
  681. package/lib/models/attributes/input-constraints/ConstraintModel.js +46 -59
  682. package/lib/models/attributes/input-constraints/ConstraintModel.js.map +1 -1
  683. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +171 -193
  684. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  685. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +53 -68
  686. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  687. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +53 -68
  688. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  689. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +67 -84
  690. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  691. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +53 -69
  692. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  693. package/lib/models/attributes/input-constraints/FileSizeConstraint.js +79 -95
  694. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  695. package/lib/models/attributes/input-constraints/IBANConstraint.js +41 -58
  696. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  697. package/lib/models/attributes/input-constraints/MandatoryConstraint.js +39 -60
  698. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  699. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +63 -82
  700. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  701. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +150 -172
  702. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  703. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +105 -125
  704. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  705. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +92 -114
  706. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  707. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +58 -73
  708. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  709. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +36 -55
  710. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  711. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +51 -65
  712. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  713. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +51 -65
  714. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  715. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +64 -82
  716. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  717. package/lib/models/attributes/input-constraints/RangeConstraint.js +116 -135
  718. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  719. package/lib/models/attributes/input-constraints/RegexConstraint.js +48 -62
  720. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  721. package/lib/models/attributes/input-constraints/StringLengthConstraint.js +158 -177
  722. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  723. package/lib/models/attributes/input-constraints/XMLConstraint.js +49 -69
  724. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  725. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +54 -70
  726. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  727. package/lib/models/attributes/layouthint-rules/DependentAttribute.js +172 -218
  728. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  729. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +43 -74
  730. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  731. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +32 -64
  732. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  733. package/lib/models/base/BaseCollection.js +170 -206
  734. package/lib/models/base/BaseCollection.js.map +1 -1
  735. package/lib/models/base/BaseModel.js +98 -113
  736. package/lib/models/base/BaseModel.js.map +1 -1
  737. package/lib/models/base/ResourceCollection.js +28 -60
  738. package/lib/models/base/ResourceCollection.js.map +1 -1
  739. package/lib/models/base/ResourceModel.js +171 -231
  740. package/lib/models/base/ResourceModel.js.map +1 -1
  741. package/lib/models/caseview/CaseViewModel.js +137 -188
  742. package/lib/models/caseview/CaseViewModel.js.map +1 -1
  743. package/lib/models/concepts/BusinessScenarioModel.js +97 -153
  744. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  745. package/lib/models/concepts/ConceptDetailModel.js +243 -329
  746. package/lib/models/concepts/ConceptDetailModel.js.map +1 -1
  747. package/lib/models/concepts/ConceptIndexModel.js +118 -156
  748. package/lib/models/concepts/ConceptIndexModel.js.map +1 -1
  749. package/lib/models/concepts/ConceptLinkModel.js +122 -163
  750. package/lib/models/concepts/ConceptLinkModel.js.map +1 -1
  751. package/lib/models/concepts/ConceptRelationCollection.js +57 -105
  752. package/lib/models/concepts/ConceptRelationCollection.js.map +1 -1
  753. package/lib/models/concepts/ConceptRelationModel.js +62 -75
  754. package/lib/models/concepts/ConceptRelationModel.js.map +1 -1
  755. package/lib/models/concepts/ConceptTypeDetailModel.js +87 -127
  756. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  757. package/lib/models/concepts/SourceReferenceCollection.js +13 -44
  758. package/lib/models/concepts/SourceReferenceCollection.js.map +1 -1
  759. package/lib/models/concepts/SourceReferenceModel.js +47 -74
  760. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  761. package/lib/models/content/ContentIndexModel.js +112 -156
  762. package/lib/models/content/ContentIndexModel.js.map +1 -1
  763. package/lib/models/content/ContentLinkModel.js +162 -205
  764. package/lib/models/content/ContentLinkModel.js.map +1 -1
  765. package/lib/models/content/ContentModel.js +188 -235
  766. package/lib/models/content/ContentModel.js.map +1 -1
  767. package/lib/models/content/ContentTOCModel.js +133 -209
  768. package/lib/models/content/ContentTOCModel.js.map +1 -1
  769. package/lib/models/content/ContentTypeModel.js +56 -92
  770. package/lib/models/content/ContentTypeModel.js.map +1 -1
  771. package/lib/models/content/SectionModel.js +160 -254
  772. package/lib/models/content/SectionModel.js.map +1 -1
  773. package/lib/models/content/SubSectionModel.js +125 -196
  774. package/lib/models/content/SubSectionModel.js.map +1 -1
  775. package/lib/models/contentconfiguration/ContentConfiguration.js +46 -58
  776. package/lib/models/contentconfiguration/ContentConfiguration.js.map +1 -1
  777. package/lib/models/contentconfiguration/ContentConfigurationElements.js +127 -171
  778. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  779. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +28 -45
  780. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  781. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +31 -42
  782. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  783. package/lib/models/contentconfiguration/ContentConfigurationResults.js +74 -98
  784. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  785. package/lib/models/detail/DetailModel.js +176 -232
  786. package/lib/models/detail/DetailModel.js.map +1 -1
  787. package/lib/models/error/ErrorCollection.js +82 -139
  788. package/lib/models/error/ErrorCollection.js.map +1 -1
  789. package/lib/models/error/ErrorModel.js +36 -48
  790. package/lib/models/error/ErrorModel.js.map +1 -1
  791. package/lib/models/error/ErrorResponse.js +177 -205
  792. package/lib/models/error/ErrorResponse.js.map +1 -1
  793. package/lib/models/filters/AssignmentFilterModel.js +144 -195
  794. package/lib/models/filters/AssignmentFilterModel.js.map +1 -1
  795. package/lib/models/filters/BaseFilterModel.js +171 -228
  796. package/lib/models/filters/BaseFilterModel.js.map +1 -1
  797. package/lib/models/filters/ConceptIndexFilterModel.js +9 -39
  798. package/lib/models/filters/ConceptIndexFilterModel.js.map +1 -1
  799. package/lib/models/filters/FilterCollection.js +109 -177
  800. package/lib/models/filters/FilterCollection.js.map +1 -1
  801. package/lib/models/filters/FilterModel.js +2 -29
  802. package/lib/models/filters/FilterModel.js.map +1 -1
  803. package/lib/models/filters/RangeFilterModel.js +30 -60
  804. package/lib/models/filters/RangeFilterModel.js.map +1 -1
  805. package/lib/models/form/FormModel.js +961 -1150
  806. package/lib/models/form/FormModel.js.map +1 -1
  807. package/lib/models/form/FormObjectModel.js +411 -517
  808. package/lib/models/form/FormObjectModel.js.map +1 -1
  809. package/lib/models/grouping/GroupingModel.js +117 -165
  810. package/lib/models/grouping/GroupingModel.js.map +1 -1
  811. package/lib/models/href/Href.js +392 -452
  812. package/lib/models/href/Href.js.map +1 -1
  813. package/lib/models/href/ListHref.js +119 -159
  814. package/lib/models/href/ListHref.js.map +1 -1
  815. package/lib/models/index.js +97 -99
  816. package/lib/models/index.js.map +1 -1
  817. package/lib/models/layouthint/LayoutHintCollection.js +94 -140
  818. package/lib/models/layouthint/LayoutHintCollection.js.map +1 -1
  819. package/lib/models/links/LinkCollection.js +136 -196
  820. package/lib/models/links/LinkCollection.js.map +1 -1
  821. package/lib/models/links/LinkModel.js +191 -235
  822. package/lib/models/links/LinkModel.js.map +1 -1
  823. package/lib/models/links/normalizeLinkJSON.js +30 -66
  824. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  825. package/lib/models/list/ListDetailModel.js +229 -302
  826. package/lib/models/list/ListDetailModel.js.map +1 -1
  827. package/lib/models/list/ListHeaderModel.js +73 -97
  828. package/lib/models/list/ListHeaderModel.js.map +1 -1
  829. package/lib/models/list/ListItemCollection.js +49 -91
  830. package/lib/models/list/ListItemCollection.js.map +1 -1
  831. package/lib/models/list/ListItemModel.js +76 -114
  832. package/lib/models/list/ListItemModel.js.map +1 -1
  833. package/lib/models/list/ListModel.js +347 -435
  834. package/lib/models/list/ListModel.js.map +1 -1
  835. package/lib/models/lookup/LookupOptionCollection.js +16 -61
  836. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  837. package/lib/models/lookup/LookupOptionsModel.js +48 -79
  838. package/lib/models/lookup/LookupOptionsModel.js.map +1 -1
  839. package/lib/models/modelcatalog/ModelCatalogModel.js +39 -72
  840. package/lib/models/modelcatalog/ModelCatalogModel.js.map +1 -1
  841. package/lib/models/paging/PagesizeModel.js +29 -38
  842. package/lib/models/paging/PagesizeModel.js.map +1 -1
  843. package/lib/models/paging/PagingModel.js +77 -92
  844. package/lib/models/paging/PagingModel.js.map +1 -1
  845. package/lib/models/panels/GroupingPanelModel.js +117 -164
  846. package/lib/models/panels/GroupingPanelModel.js.map +1 -1
  847. package/lib/models/parameter/Parameter.js +83 -99
  848. package/lib/models/parameter/Parameter.js.map +1 -1
  849. package/lib/models/process/ProcessStatusSettingsModel.js +67 -105
  850. package/lib/models/process/ProcessStatusSettingsModel.js.map +1 -1
  851. package/lib/models/resolveModel.js +3 -5
  852. package/lib/models/resolveModel.js.map +1 -1
  853. package/lib/models/search/CaseSearchModel.js +26 -60
  854. package/lib/models/search/CaseSearchModel.js.map +1 -1
  855. package/lib/models/sorting/SortOptionModel.js +77 -91
  856. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  857. package/lib/models/sorting/SortingModel.js +88 -140
  858. package/lib/models/sorting/SortingModel.js.map +1 -1
  859. package/lib/models/tab/TabModel.js +122 -170
  860. package/lib/models/tab/TabModel.js.map +1 -1
  861. package/lib/models/taskgroup/TaskGroupCollection.js +8 -39
  862. package/lib/models/taskgroup/TaskGroupCollection.js.map +1 -1
  863. package/lib/models/taskgroup/TaskGroupModel.js +54 -88
  864. package/lib/models/taskgroup/TaskGroupModel.js.map +1 -1
  865. package/lib/models/user/UserModel.js +32 -65
  866. package/lib/models/user/UserModel.js.map +1 -1
  867. package/lib/models/user/UserProfileModel.js +21 -56
  868. package/lib/models/user/UserProfileModel.js.map +1 -1
  869. package/lib/models/user/UserServicesModel.js +78 -128
  870. package/lib/models/user/UserServicesModel.js.flow +1 -7
  871. package/lib/models/user/UserServicesModel.js.map +1 -1
  872. package/lib/modularui/Authenticate.js +144 -157
  873. package/lib/modularui/Authenticate.js.flow +13 -7
  874. package/lib/modularui/Authenticate.js.map +1 -1
  875. package/lib/modularui/ModularUIError.js +9 -39
  876. package/lib/modularui/ModularUIError.js.map +1 -1
  877. package/lib/modularui/ModularUIRequest.js +477 -647
  878. package/lib/modularui/ModularUIRequest.js.map +1 -1
  879. package/lib/modularui/ModularUIResponse.js +102 -120
  880. package/lib/modularui/ModularUIResponse.js.map +1 -1
  881. package/lib/modularui/index.js +3 -3
  882. package/lib/react/ErrorBoundary.js +33 -71
  883. package/lib/react/ErrorBoundary.js.map +1 -1
  884. package/lib/react/ErrorBoundaryFallback.js +8 -6
  885. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  886. package/lib/react/index.js +2 -2
  887. package/lib/react/utils.js +12 -16
  888. package/lib/react/utils.js.map +1 -1
  889. package/lib/react-client/Init.js +9 -7
  890. package/lib/react-client/Init.js.map +1 -1
  891. package/lib/react-client/client.js +22 -23
  892. package/lib/react-client/client.js.map +1 -1
  893. package/lib/react-client/contextPath.js +4 -4
  894. package/lib/react-client/contextPath.js.map +1 -1
  895. package/lib/react-client/index.js +3 -3
  896. package/lib/react-client/rehydrate.js +14 -22
  897. package/lib/react-client/rehydrate.js.map +1 -1
  898. package/lib/react-server/createSSRComplete.js +10 -14
  899. package/lib/react-server/createSSRComplete.js.map +1 -1
  900. package/lib/react-server/htmlpage.js +5 -8
  901. package/lib/react-server/htmlpage.js.map +1 -1
  902. package/lib/react-server/index.js +8 -8
  903. package/lib/react-server/renderSSRComplete.js +50 -55
  904. package/lib/react-server/renderSSRComplete.js.map +1 -1
  905. package/lib/react-server/renderSSRMinimal.js +13 -13
  906. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  907. package/lib/react-server/requestInformation.js +8 -10
  908. package/lib/react-server/requestInformation.js.map +1 -1
  909. package/lib/react-server/serverNoSSR.js +22 -21
  910. package/lib/react-server/serverNoSSR.js.map +1 -1
  911. package/lib/react-server/serverSSR.js +24 -24
  912. package/lib/react-server/serverSSR.js.map +1 -1
  913. package/lib/react-server/serverUtil.js +49 -74
  914. package/lib/react-server/serverUtil.js.map +1 -1
  915. package/lib/react-theme/ThemeProvider.js +10 -7
  916. package/lib/react-theme/ThemeProvider.js.map +1 -1
  917. package/lib/react-theme/createTheme.js +15 -44
  918. package/lib/react-theme/createTheme.js.map +1 -1
  919. package/lib/react-theme/index.js +9 -9
  920. package/lib/react-theme/useTheme.js +1 -1
  921. package/lib/react-theme/useTheme.js.map +1 -1
  922. package/lib/react-theme/utils/background.js +9 -9
  923. package/lib/react-theme/utils/background.js.map +1 -1
  924. package/lib/react-theme/utils/colors.js +12 -12
  925. package/lib/react-theme/utils/colors.js.map +1 -1
  926. package/lib/react-theme/utils/contrast.js +27 -28
  927. package/lib/react-theme/utils/contrast.js.map +1 -1
  928. package/lib/react-theme/utils/corners.js +10 -9
  929. package/lib/react-theme/utils/corners.js.map +1 -1
  930. package/lib/react-theme/utils/spacers.js +23 -22
  931. package/lib/react-theme/utils/spacers.js.map +1 -1
  932. package/lib/react-theme/utils/themeProps.js +28 -30
  933. package/lib/react-theme/utils/themeProps.js.map +1 -1
  934. package/lib/redux/_i18n/actions.js +15 -21
  935. package/lib/redux/_i18n/actions.js.map +1 -1
  936. package/lib/redux/_i18n/index.js +2 -2
  937. package/lib/redux/_i18n/reducer.js +20 -34
  938. package/lib/redux/_i18n/reducer.js.map +1 -1
  939. package/lib/redux/_modularui/actions.js +40 -72
  940. package/lib/redux/_modularui/actions.js.map +1 -1
  941. package/lib/redux/_modularui/connector.js +46 -55
  942. package/lib/redux/_modularui/connector.js.map +1 -1
  943. package/lib/redux/_modularui/index.js +7 -7
  944. package/lib/redux/_modularui/middleware.js +23 -36
  945. package/lib/redux/_modularui/middleware.js.map +1 -1
  946. package/lib/redux/_modularui/modularuiUtils.js +16 -24
  947. package/lib/redux/_modularui/modularuiUtils.js.map +1 -1
  948. package/lib/redux/_modularui/reducer.js +42 -61
  949. package/lib/redux/_modularui/reducer.js.map +1 -1
  950. package/lib/redux/_modularui/selectors.js +89 -106
  951. package/lib/redux/_modularui/selectors.js.map +1 -1
  952. package/lib/redux/_modularui/withModularUI.js +11 -15
  953. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  954. package/lib/redux/_router/actions.js +29 -39
  955. package/lib/redux/_router/actions.js.map +1 -1
  956. package/lib/redux/_router/connectors.js +7 -9
  957. package/lib/redux/_router/connectors.js.map +1 -1
  958. package/lib/redux/_router/index.js +4 -4
  959. package/lib/redux/_router/middleware.js +27 -29
  960. package/lib/redux/_router/middleware.js.map +1 -1
  961. package/lib/redux/_router/reducer.js +4 -4
  962. package/lib/redux/_router/reducer.js.map +1 -1
  963. package/lib/redux/actions/Application.js +11 -37
  964. package/lib/redux/actions/Application.js.map +1 -1
  965. package/lib/redux/actions/Authorization.js +31 -33
  966. package/lib/redux/actions/Authorization.js.map +1 -1
  967. package/lib/redux/actions/Error.js +33 -43
  968. package/lib/redux/actions/Error.js.map +1 -1
  969. package/lib/redux/actions/Form.js +14 -16
  970. package/lib/redux/actions/Form.js.map +1 -1
  971. package/lib/redux/actions/FormAttributeSet.js +6 -6
  972. package/lib/redux/actions/FormAttributeSet.js.map +1 -1
  973. package/lib/redux/actions/FormAttributeSetRepeatable.js +6 -6
  974. package/lib/redux/actions/FormAttributeSetRepeatable.js.map +1 -1
  975. package/lib/redux/actions/FormAutosave.js +12 -18
  976. package/lib/redux/actions/FormAutosave.js.map +1 -1
  977. package/lib/redux/actions/FormAutosubmit.js +2 -2
  978. package/lib/redux/actions/FormAutosubmit.js.map +1 -1
  979. package/lib/redux/actions/FormValidations.js +12 -20
  980. package/lib/redux/actions/FormValidations.js.map +1 -1
  981. package/lib/redux/actions/Modals.js +8 -12
  982. package/lib/redux/actions/Modals.js.map +1 -1
  983. package/lib/redux/actions/Notification.js +32 -42
  984. package/lib/redux/actions/Notification.js.map +1 -1
  985. package/lib/redux/actions/Preferences.js +32 -43
  986. package/lib/redux/actions/Preferences.js.map +1 -1
  987. package/lib/redux/actions/ProgressIndicator.js +15 -23
  988. package/lib/redux/actions/ProgressIndicator.js.map +1 -1
  989. package/lib/redux/actions/SignIn.js +43 -57
  990. package/lib/redux/actions/SignIn.js.map +1 -1
  991. package/lib/redux/actions/SignOut.js +9 -17
  992. package/lib/redux/actions/SignOut.js.map +1 -1
  993. package/lib/redux/actions/index.js +15 -15
  994. package/lib/redux/connectors/Application.js +1 -1
  995. package/lib/redux/connectors/Application.js.map +1 -1
  996. package/lib/redux/connectors/Breadcrumb.js +4 -6
  997. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  998. package/lib/redux/connectors/CaseView.js +4 -2
  999. package/lib/redux/connectors/CaseView.js.map +1 -1
  1000. package/lib/redux/connectors/ConceptDetail.js +5 -3
  1001. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  1002. package/lib/redux/connectors/ContentBrowser.js +4 -2
  1003. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  1004. package/lib/redux/connectors/ContentDetail.js +5 -3
  1005. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  1006. package/lib/redux/connectors/ContentDetailSection.js +6 -4
  1007. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  1008. package/lib/redux/connectors/Form.js +10 -8
  1009. package/lib/redux/connectors/Form.js.map +1 -1
  1010. package/lib/redux/connectors/FormAttributeSet.js +13 -21
  1011. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  1012. package/lib/redux/connectors/ListDetail.js +4 -2
  1013. package/lib/redux/connectors/ListDetail.js.map +1 -1
  1014. package/lib/redux/connectors/Modal.js +4 -6
  1015. package/lib/redux/connectors/Modal.js.map +1 -1
  1016. package/lib/redux/connectors/ModelCatalog.js +4 -2
  1017. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  1018. package/lib/redux/connectors/Notification.js +8 -10
  1019. package/lib/redux/connectors/Notification.js.map +1 -1
  1020. package/lib/redux/connectors/PanelRenderer.js +7 -6
  1021. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  1022. package/lib/redux/connectors/Preferences.js +6 -8
  1023. package/lib/redux/connectors/Preferences.js.map +1 -1
  1024. package/lib/redux/connectors/Progress.js +2 -2
  1025. package/lib/redux/connectors/Progress.js.map +1 -1
  1026. package/lib/redux/connectors/ProgressIndicator.js +6 -8
  1027. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  1028. package/lib/redux/connectors/QuickSearch.js +5 -3
  1029. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  1030. package/lib/redux/connectors/SignIn.js +4 -4
  1031. package/lib/redux/connectors/SignIn.js.map +1 -1
  1032. package/lib/redux/connectors/SignOut.js +3 -3
  1033. package/lib/redux/connectors/SignOut.js.map +1 -1
  1034. package/lib/redux/connectors/Tab.js +4 -2
  1035. package/lib/redux/connectors/Tab.js.map +1 -1
  1036. package/lib/redux/connectors/index.js +21 -21
  1037. package/lib/redux/index.js +8 -8
  1038. package/lib/redux/reducers/AuthReducer.js +14 -33
  1039. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  1040. package/lib/redux/reducers/ErrorReducer.js +4 -4
  1041. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  1042. package/lib/redux/reducers/ModalsReducer.js +19 -45
  1043. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  1044. package/lib/redux/reducers/NotificationReducer.js +8 -27
  1045. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  1046. package/lib/redux/reducers/PreferencesReducer.js +10 -25
  1047. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  1048. package/lib/redux/reducers/ProgressIndicatorReducer.js +14 -33
  1049. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  1050. package/lib/redux/reducers/createReducer.js +11 -13
  1051. package/lib/redux/reducers/createReducer.js.map +1 -1
  1052. package/lib/redux/reducers/index.js +7 -7
  1053. package/lib/redux/selectors/i18n.js +2 -4
  1054. package/lib/redux/selectors/i18n.js.map +1 -1
  1055. package/lib/redux/selectors/index.js +1 -1
  1056. package/lib/redux/store/beforeRenderHooks.js +5 -29
  1057. package/lib/redux/store/beforeRenderHooks.js.map +1 -1
  1058. package/lib/redux/store/configureStore.js +10 -24
  1059. package/lib/redux/store/configureStore.js.map +1 -1
  1060. package/lib/utils/browser/Cache.js +126 -161
  1061. package/lib/utils/browser/Cache.js.map +1 -1
  1062. package/lib/utils/browser/Cookies.js +4 -4
  1063. package/lib/utils/browser/Cookies.js.map +1 -1
  1064. package/lib/utils/datetime/DateTimeUtil.js +364 -418
  1065. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  1066. package/lib/utils/fetch/serverFetch.js +5 -5
  1067. package/lib/utils/fetch/serverFetch.js.map +1 -1
  1068. package/lib/utils/fetch/universalFetch.js +13 -13
  1069. package/lib/utils/fetch/universalFetch.js.map +1 -1
  1070. package/lib/utils/fetch/xhr.js +281 -365
  1071. package/lib/utils/fetch/xhr.js.map +1 -1
  1072. package/lib/utils/helpers/checkResource.js +7 -7
  1073. package/lib/utils/helpers/checkResource.js.map +1 -1
  1074. package/lib/utils/helpers/createHash.js +5 -5
  1075. package/lib/utils/helpers/createHash.js.map +1 -1
  1076. package/lib/utils/helpers/createUUID.js +4 -4
  1077. package/lib/utils/helpers/createUUID.js.map +1 -1
  1078. package/lib/utils/helpers/objects.js +9 -15
  1079. package/lib/utils/helpers/objects.js.map +1 -1
  1080. package/lib/utils/helpers/sanitizeHtml.js +13 -13
  1081. package/lib/utils/helpers/sanitizeHtml.js.map +1 -1
  1082. package/lib/utils/helpers/text.js +1 -1
  1083. package/lib/utils/helpers/text.js.map +1 -1
  1084. package/lib/utils/index.js +15 -15
  1085. package/lib/utils/number/DecimalFormat.js +298 -328
  1086. package/lib/utils/number/DecimalFormat.js.map +1 -1
  1087. package/lib/utils/number/formatValue.js +10 -17
  1088. package/lib/utils/number/formatValue.js.map +1 -1
  1089. package/lib/utils/number/parseNumbers.js +13 -13
  1090. package/lib/utils/number/parseNumbers.js.map +1 -1
  1091. package/package.json +13 -13
  1092. package/src/models/user/UserServicesModel.js +1 -7
  1093. package/src/modularui/Authenticate.js +13 -7
@@ -1 +1 @@
1
- {"version":3,"file":"ModularUIRequest.js","names":["deepmerge","BASE","HTTP_METHODS","TIMEVERSION_FILTER_NAME","HIDE_WHEN_EMPTY","getSetting","Href","universalFetch","resolveModel","FormModel","ContentModel","ModularUIResponse","ModularUIError","IllegalArgumentException","IllegalStateException","isPlainObject","ModularUIRequest","href","options","GET","_response","locale","parameters","targetModel","method","_contributionsHref","contributionsHref","_locale","_href","_method","_options","childmodels","_targetModel","Model","response","isApplicableModel","contributionsData","contributionsKey","error","handleContributionsError","key","contributions","errorMessage","properties","message","path","toString","data","links","_links","Array","isArray","handleDataError","handleData","url","cache","params","getQuerystringForModularUI","onProgress","processApplicationLinks","processTabLinks","processPanelLinks","resolve","contributionLinks","dataLinks","tab","contributionTabLink","dataTabLinks","dataLink","name","processLinks","components","then","newLinks","replaceApplicationLinks","tabName","tabLink","component","panel","linksPerName","dataLinksPerName","hideWhenEmptyLinks","contributionLink","layouthint","isHiddenListChecks","push","isHiddenList","all","hiddenLinks","newDataLinks","dataLinkKey","HIDE_WHEN_EMPTY_IGNORE_TASKS","_embedded","actions","noListItems","noActions","isHidden","catch","_progressEvent","progressEvent","model","prevData","JSON","parse","newData","validationData","isValidationRequest","currentFormObject","hasDynamicValidations","validationHref","setParameter","getDynamicValidationData","updateValidations","fetchDataService","Error","processDataService","fetchContributionsService","processContributionsService","processAsyncLayoutHints","createModel","loadDynamicValidations","withChildModels","fetchChildModels","fetch","childModelLinks","getInitialChildModelLinks","childModelRequests","childModelLink","request","isCacheable","fetchFromCache","allSettled","childModels","resolvedChildModels","forEach","childModel","status","reason","console","value","addChildModels","withChildSections","childSectionLinks","length","fetchContentChildSections","contentModel","newContentModel","clone","childSectionLink","contentHrefWithEntryDate","selfhref","addParameter","entryDate","fetchContent","sectionModels","childSections"],"sources":["../../src/modularui/ModularUIRequest.js"],"sourcesContent":["// @flow\nimport deepmerge from \"deepmerge\";\n\nimport {\n BASE,\n HTTP_METHODS,\n TIMEVERSION_FILTER_NAME,\n} from \"../constants/Constants\";\n\nimport { HIDE_WHEN_EMPTY } from \"../constants/LayoutHints\";\n\nimport { getSetting } from \"../constants/Settings\";\n\nimport Href from \"../models/href/Href\";\n\nimport universalFetch from \"../utils/fetch/universalFetch\";\nimport resolveModel from \"../models/resolveModel\";\nimport FormModel from \"../models/form/FormModel\";\nimport ContentModel from \"../models/content/ContentModel\";\n\nimport ModularUIResponse from \"./ModularUIResponse\";\n\nimport ModularUIError from \"./ModularUIError\";\nimport { IllegalArgumentException, IllegalStateException } from \"../exceptions\";\n\nimport { isPlainObject } from \"../utils/helpers/objects\";\n\nimport type { RequestBaseOptions } from \"../utils/fetch/types\";\nimport type { ModularUIModel } from \"../models/types\";\n\n/**\n * Helper for fetching data and contributions from the Be Informed modular ui\n * and merge it into a target or resolvable model.\n */\nclass ModularUIRequest {\n _response: ModularUIResponse;\n\n _href: Href;\n _options: RequestBaseOptions;\n _targetModel: ?Class<ModularUIModel>;\n _contributionsHref: string;\n _locale: string;\n _method: $Keys<typeof HTTP_METHODS> = HTTP_METHODS.GET;\n\n _progressEvent: ProgressEventHandler;\n\n /**\n */\n constructor(href: Href | string, options: $Shape<RequestBaseOptions> = {}) {\n if (!href) {\n throw new IllegalArgumentException(\n \"You must pass a href to the resource that is requested\"\n );\n }\n\n this.options = options;\n\n this._response = new ModularUIResponse();\n\n this.href = typeof href === \"string\" ? new Href(href) : href;\n this.locale = options.locale ?? \"en\";\n\n // copy request parameters to response, to be able to use them in the models\n // self links are missing the request parameters\n this._response.parameters = this.href.parameters;\n\n if (options.targetModel) {\n this.targetModel = options.targetModel;\n }\n\n if (options.method) {\n this.method = options.method;\n } else {\n this.method = this.href.method;\n }\n }\n\n /**\n */\n get contributionsHref(): string {\n return this._contributionsHref;\n }\n\n /**\n */\n set contributionsHref(contributionsHref: string) {\n this._contributionsHref = contributionsHref;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n this._response.locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n get response(): ModularUIResponse {\n return this._response;\n }\n\n /**\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n */\n set method(method: $Keys<typeof HTTP_METHODS>) {\n this._method = method;\n }\n\n /**\n */\n get method(): $Keys<typeof HTTP_METHODS> {\n return this._method;\n }\n\n /**\n */\n get options(): RequestBaseOptions {\n return {\n ...this._options,\n locale: this.locale,\n method: this.method,\n };\n }\n\n /**\n */\n set options(options: RequestBaseOptions) {\n this._options = options;\n }\n\n /**\n */\n get withChildModels(): boolean {\n return (\n !(\"childmodels\" in this.options) || this.options.childmodels === true\n );\n }\n\n /**\n */\n set targetModel(targetModel: ?Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n createModel(): ModularUIModel {\n const Model = this.targetModel || resolveModel(this.response);\n\n // check for ResourceModel\n if (Model && Model.isApplicableModel) {\n return new Model(this.response);\n }\n\n throw new IllegalStateException(\n `No model available for data: ${JSON.stringify(this.response)}`\n );\n }\n\n /**\n */\n processContributionsService(contributionsData: Object) {\n if (!isPlainObject(contributionsData)) {\n throw new IllegalArgumentException(\n \"Missing contributions data or contributions is not JSON\"\n );\n }\n\n const [contributionsKey] = Object.keys(contributionsData);\n\n if (contributionsData.error && contributionsKey === \"error\") {\n this.handleContributionsError(contributionsData.error);\n }\n\n // The key of the data service is different from the contributions service for forms\n if (!(this.response.key in contributionsData)) {\n this.response.key = contributionsKey;\n }\n\n this.response.contributions = contributionsData[this.response.key];\n }\n\n /**\n */\n handleContributionsError(error: Object) {\n const errorMessage = error.properties?.message ?? \"Error in contribution\";\n throw new ModularUIError(errorMessage, error, this.contributionsHref);\n }\n\n /**\n */\n handleDataError(error: Object) {\n if (error.properties) {\n const errorMessage = error.properties?.message ?? \"Error in data\";\n throw new ModularUIError(errorMessage, error, this.href.path.toString());\n }\n\n throw new IllegalArgumentException(error);\n }\n\n /**\n */\n handleData(key: string, data: Object) {\n this.response.key = key;\n this.response.data = data;\n\n const links = data._links;\n\n if (links && links.contributions) {\n this.contributionsHref = links.contributions.href;\n } else if (Array.isArray(links) && links[0].contributions) {\n this.contributionsHref = links[0].contributions.href;\n } else {\n throw new IllegalArgumentException(\n `Contributions link not found for data with key ${key}`\n );\n }\n }\n\n /**\n */\n processDataService(data: Object) {\n if (!isPlainObject(data)) {\n throw new IllegalArgumentException(\"Missing data or data is not JSON\");\n }\n\n if (data.error) {\n this.handleDataError(data.error);\n } else {\n const [key] = Object.keys(data);\n this.handleData(key, data[key]);\n }\n }\n\n /**\n */\n fetchContributionsService(): Promise<any> {\n if (!this.contributionsHref) {\n throw new IllegalStateException(\"Missing a contributions href\");\n }\n\n return universalFetch({\n url: `${BASE}${this.contributionsHref}`,\n cache: true,\n locale: this.options.locale,\n });\n }\n\n /**\n */\n fetchDataService(): Promise<any> {\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: this.href.getQuerystringForModularUI(),\n locale: this.options.locale,\n onProgress: this.onProgress,\n });\n }\n\n /**\n * Check if links contain a 'hide-when-empty' layout hint and remove the link from\n * the component when it exists and no results are available\n */\n async processAsyncLayoutHints(): Promise<void> {\n if (getSetting(\"ALLOW_HIDE_WHEN_EMPTY_ON_TABS\")) {\n await this.processApplicationLinks();\n await this.processTabLinks();\n }\n await this.processPanelLinks();\n\n return Promise.resolve();\n }\n\n /**\n * hide application links<br>\n * _links on application data contains an extra level of tab links\n */\n processApplicationLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n const dataLinks = this.response.data._links;\n if (!contributionLinks || !dataLinks) {\n return Promise.resolve();\n }\n\n if (\"tab\" in contributionLinks && \"tab\" in dataLinks) {\n for (const contributionTabLink of contributionLinks.tab) {\n if (\"components\" in contributionTabLink) {\n const dataTabLinks = dataLinks.tab.find(\n (dataLink) => dataLink.name === contributionTabLink.name\n );\n\n if (dataTabLinks && \"components\" in dataTabLinks) {\n return this.processLinks(\n dataTabLinks.components,\n contributionTabLink.components\n ).then((newLinks) =>\n this.replaceApplicationLinks(contributionTabLink.name, newLinks)\n );\n }\n }\n }\n }\n\n return Promise.resolve();\n }\n\n /**\n * Replace hidden link in application link tree\n */\n replaceApplicationLinks(tabName: string, newLinks: Array<Object>): void {\n this.response.data._links.tab = this.response.data._links.tab.map(\n (tabLink) => {\n const key = tabLink.name;\n if (tabName === key) {\n tabLink.components = newLinks;\n }\n return tabLink;\n }\n );\n }\n\n /**\n */\n processTabLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"component\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links.component,\n contributionLinks.component\n ).then((newLinks) => {\n this.response.data._links.component = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n */\n processPanelLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"panel\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links,\n contributionLinks.panel\n ).then((newLinks) => {\n this.response.data._links = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n * Retrieve an object of key: link\n */\n dataLinksPerName(dataLinks: any): { [linkName: string]: any } {\n if (Array.isArray(dataLinks)) {\n const links = {};\n for (const dataLink of dataLinks) {\n links[dataLink.name] = dataLink;\n }\n return links;\n }\n return dataLinks;\n }\n\n /**\n * Check if links are empty and hide them when hide-when-empty hint exists\n */\n processLinks(\n dataLinks: any,\n contributionLinks: any\n ): Promise<Object | Array<Object>> {\n const linksPerName = this.dataLinksPerName(dataLinks);\n const hideWhenEmptyLinks = contributionLinks.filter((contributionLink) =>\n contributionLink.layouthint?.includes(HIDE_WHEN_EMPTY)\n );\n\n const isHiddenListChecks = [];\n\n for (const contributionLink of hideWhenEmptyLinks) {\n const dataLink = linksPerName[contributionLink.name];\n if (dataLink?.href) {\n isHiddenListChecks.push(\n this.isHiddenList(contributionLink.name, dataLink.href)\n );\n }\n }\n\n return Promise.all(isHiddenListChecks).then(\n (hiddenLinks: Array<string>) => {\n if (Array.isArray(dataLinks)) {\n return dataLinks.filter(\n (dataLink) => !hiddenLinks.includes(dataLink.name)\n );\n }\n\n const newDataLinks = {};\n for (const dataLinkKey in dataLinks) {\n if (!hiddenLinks.includes(dataLinkKey)) {\n newDataLinks[dataLinkKey] = dataLinks[dataLinkKey];\n }\n }\n return newDataLinks;\n }\n );\n }\n\n /**\n */\n isHiddenList(name: string, href: string): Promise<string> {\n const HIDE_WHEN_EMPTY_IGNORE_TASKS = getSetting(\n \"HIDE_WHEN_EMPTY_IGNORE_TASKS\",\n false\n );\n\n return universalFetch({\n ...this.options,\n url: `${BASE}${href}`,\n })\n .then((response: Object) => {\n if (isPlainObject(response)) {\n const [key] = Object.keys(response);\n const { _embedded, actions } = response[key];\n\n const noListItems = _embedded === null;\n const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;\n\n const isHidden = noListItems && noActions;\n if (isHidden) {\n return name;\n }\n }\n return \"\";\n })\n .catch(() => {\n return \"\";\n });\n }\n\n /**\n */\n set onProgress(progressEvent: ProgressEventHandler) {\n this._progressEvent = progressEvent;\n }\n\n /**\n */\n get onProgress(): ProgressEventHandler {\n return this._progressEvent || null;\n }\n\n /**\n * Combine previous send request data with new validation data to create a complete request object\n * The received model is new FormModel containing ONLY the current question, not the previously entered questions\n * to create a complete request we append the originally send form objects\n */\n getDynamicValidationData(model: ModularUIModel): string {\n const prevData =\n typeof this.options.data === \"string\"\n ? JSON.parse(this.options.data)\n : this.options.data;\n\n if (model instanceof FormModel) {\n const newData = JSON.parse(model.validationData);\n // $FlowFixMe incompatible-call\n return JSON.stringify(deepmerge(prevData || {}, newData));\n }\n\n return JSON.stringify(prevData) ?? \"{}\";\n }\n\n /**\n * First load of dynamic values when a form is loaded\n */\n loadDynamicValidations(model: ModularUIModel): Promise<ModularUIModel> {\n if (\n !this.options.isValidationRequest &&\n getSetting(\"USE_INSTANT_SERVER_VALIDATION\") &&\n model instanceof FormModel &&\n model.currentFormObject &&\n model.currentFormObject.hasDynamicValidations\n ) {\n const validationHref = this.href.setParameter(\"commit\", \"false\");\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: validationHref.getQuerystringForModularUI(),\n childmodels: false,\n data: this.getDynamicValidationData(model),\n }).then((data) => {\n if (data == null || typeof data !== \"object\") {\n return model;\n }\n\n const [key] = Object.keys(data);\n return model.updateValidations(data[key]);\n });\n }\n\n return Promise.resolve(model);\n }\n\n /**\n */\n fetch(): Promise<ModularUIModel> {\n return this.fetchDataService()\n .then((data) => {\n if (data == null) {\n throw new Error(`No data received for ${this.href.toString()}`);\n }\n\n this.processDataService(data);\n return this.fetchContributionsService();\n })\n .then((contributionsData) => {\n if (contributionsData == null) {\n throw new Error(\n `No contributions data received for ${this.contributionsHref}`\n );\n }\n\n this.processContributionsService(contributionsData);\n return this.processAsyncLayoutHints();\n })\n .then(() => Promise.resolve(this.createModel()))\n .then((model) => this.loadDynamicValidations(model))\n .then((model) => {\n if (this.withChildModels) {\n return this.fetchChildModels(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n */\n fetchFromCache(): Promise<ModularUIModel> {\n this.options = {\n ...this.options,\n cache: true,\n };\n\n return this.fetch();\n }\n\n /**\n */\n fetchChildModels(model: ModularUIModel): Promise<ModularUIModel> {\n const childModelLinks = model.getInitialChildModelLinks();\n\n const childModelRequests = childModelLinks.map((childModelLink) => {\n const request = new ModularUIRequest(childModelLink.href, {\n locale: this.locale,\n });\n\n if (childModelLink.targetModel) {\n request.targetModel = childModelLink.targetModel;\n }\n\n if (childModelLink.isCacheable) {\n return request.fetchFromCache();\n }\n\n return request.fetch();\n });\n\n return Promise.allSettled(childModelRequests).then((childModels) => {\n const resolvedChildModels = [];\n\n childModels.forEach((childModel) => {\n if (childModel.status === \"rejected\") {\n const { reason } = childModel;\n if (reason.name !== \"Error.ChangePasswordRequired\") {\n console.error(\n \"Unexpected error when retrieving child model:\",\n reason\n );\n }\n } else {\n resolvedChildModels.push(childModel.value);\n }\n });\n\n model.addChildModels(resolvedChildModels);\n\n return model;\n });\n }\n\n /**\n */\n fetchContent(withChildSections: boolean): Promise<mixed> {\n return this.fetchFromCache().then((model) => {\n if (\n withChildSections &&\n model instanceof ContentModel &&\n model.childSectionLinks.length > 0\n ) {\n return this.fetchContentChildSections(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n * Recursively return child sections defined on the content model\n */\n fetchContentChildSections(contentModel: ContentModel): Promise<mixed> {\n const newContentModel = contentModel.clone();\n\n return Promise.all(\n contentModel.childSectionLinks.map((childSectionLink) => {\n const contentHrefWithEntryDate = childSectionLink.selfhref.addParameter(\n TIMEVERSION_FILTER_NAME,\n contentModel.entryDate\n );\n\n const request = new ModularUIRequest(contentHrefWithEntryDate, {\n locale: this.locale,\n });\n\n return request.fetchContent(true);\n })\n ).then((sectionModels) => {\n newContentModel.childSections = sectionModels;\n\n return newContentModel;\n });\n }\n}\n\nexport default ModularUIRequest;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAOA,SAAP,MAAsB,WAAtB;AAEA,SACEC,IADF,EAEEC,YAFF,EAGEC,uBAHF,QAIO,wBAJP;AAMA,SAASC,eAAT,QAAgC,0BAAhC;AAEA,SAASC,UAAT,QAA2B,uBAA3B;AAEA,OAAOC,IAAP,MAAiB,qBAAjB;AAEA,OAAOC,cAAP,MAA2B,+BAA3B;AACA,OAAOC,YAAP,MAAyB,wBAAzB;AACA,OAAOC,SAAP,MAAsB,0BAAtB;AACA,OAAOC,YAAP,MAAyB,gCAAzB;AAEA,OAAOC,iBAAP,MAA8B,qBAA9B;AAEA,OAAOC,cAA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gBAAD,EAAsB;QACvD,IAAMC,wBAAwB,GAAGD,gBAAgB,CAACE,QAAjB,CAA0BC,YAA1B,CAC/BpJ,uBAD+B,EAE/B8I,YAAY,CAACO,SAFkB,CAAjC;QAKA,IAAMxB,OAAO,GAAG,IAAIhH,gBAAJ,CAAqBqI,wBAArB,EAA+C;UAC7DhI,MAAM,EAAE,MAAI,CAACA;QADgD,CAA/C,CAAhB;QAIA,OAAO2G,OAAO,CAACyB,YAAR,CAAqB,IAArB,CAAP;MACD,CAXD,CADK,EAaLjF,IAbK,CAaA,UAACkF,aAAD,EAAmB;QACxBR,eAAe,CAACS,aAAhB,GAAgCD,aAAhC;QAEA,OAAOR,eAAP;MACD,CAjBM,CAAP;IAkBD;;;;;;AAGH,eAAelI,gBAAf"}
1
+ {"version":3,"file":"ModularUIRequest.js","names":["deepmerge","BASE","HTTP_METHODS","TIMEVERSION_FILTER_NAME","HIDE_WHEN_EMPTY","getSetting","Href","universalFetch","resolveModel","FormModel","ContentModel","ModularUIResponse","ModularUIError","IllegalArgumentException","IllegalStateException","isPlainObject","ModularUIRequest","constructor","href","options","GET","_response","locale","parameters","targetModel","method","contributionsHref","_contributionsHref","_locale","response","_href","_method","_options","withChildModels","childmodels","_targetModel","createModel","Model","isApplicableModel","processContributionsService","contributionsData","contributionsKey","error","handleContributionsError","key","contributions","errorMessage","properties","message","handleDataError","path","toString","handleData","data","links","_links","Array","isArray","processDataService","fetchContributionsService","url","cache","fetchDataService","params","getQuerystringForModularUI","onProgress","processAsyncLayoutHints","processApplicationLinks","processTabLinks","processPanelLinks","resolve","contributionLinks","dataLinks","contributionTabLink","tab","dataTabLinks","dataLink","name","processLinks","components","then","newLinks","replaceApplicationLinks","tabName","tabLink","component","panel","dataLinksPerName","linksPerName","hideWhenEmptyLinks","contributionLink","layouthint","isHiddenListChecks","push","isHiddenList","all","hiddenLinks","newDataLinks","dataLinkKey","HIDE_WHEN_EMPTY_IGNORE_TASKS","_embedded","actions","noListItems","noActions","isHidden","catch","progressEvent","_progressEvent","getDynamicValidationData","model","prevData","JSON","parse","newData","validationData","loadDynamicValidations","isValidationRequest","currentFormObject","hasDynamicValidations","validationHref","setParameter","updateValidations","fetch","Error","fetchChildModels","fetchFromCache","childModelLinks","getInitialChildModelLinks","childModelRequests","childModelLink","request","isCacheable","allSettled","childModels","resolvedChildModels","forEach","childModel","status","reason","console","value","addChildModels","fetchContent","withChildSections","childSectionLinks","length","fetchContentChildSections","contentModel","newContentModel","clone","childSectionLink","contentHrefWithEntryDate","selfhref","addParameter","entryDate","sectionModels","childSections"],"sources":["../../src/modularui/ModularUIRequest.js"],"sourcesContent":["// @flow\nimport deepmerge from \"deepmerge\";\n\nimport {\n BASE,\n HTTP_METHODS,\n TIMEVERSION_FILTER_NAME,\n} from \"../constants/Constants\";\n\nimport { HIDE_WHEN_EMPTY } from \"../constants/LayoutHints\";\n\nimport { getSetting } from \"../constants/Settings\";\n\nimport Href from \"../models/href/Href\";\n\nimport universalFetch from \"../utils/fetch/universalFetch\";\nimport resolveModel from \"../models/resolveModel\";\nimport FormModel from \"../models/form/FormModel\";\nimport ContentModel from \"../models/content/ContentModel\";\n\nimport ModularUIResponse from \"./ModularUIResponse\";\n\nimport ModularUIError from \"./ModularUIError\";\nimport { IllegalArgumentException, IllegalStateException } from \"../exceptions\";\n\nimport { isPlainObject } from \"../utils/helpers/objects\";\n\nimport type { RequestBaseOptions } from \"../utils/fetch/types\";\nimport type { ModularUIModel } from \"../models/types\";\n\n/**\n * Helper for fetching data and contributions from the Be Informed modular ui\n * and merge it into a target or resolvable model.\n */\nclass ModularUIRequest {\n _response: ModularUIResponse;\n\n _href: Href;\n _options: RequestBaseOptions;\n _targetModel: ?Class<ModularUIModel>;\n _contributionsHref: string;\n _locale: string;\n _method: $Keys<typeof HTTP_METHODS> = HTTP_METHODS.GET;\n\n _progressEvent: ProgressEventHandler;\n\n /**\n */\n constructor(href: Href | string, options: $Shape<RequestBaseOptions> = {}) {\n if (!href) {\n throw new IllegalArgumentException(\n \"You must pass a href to the resource that is requested\"\n );\n }\n\n this.options = options;\n\n this._response = new ModularUIResponse();\n\n this.href = typeof href === \"string\" ? new Href(href) : href;\n this.locale = options.locale ?? \"en\";\n\n // copy request parameters to response, to be able to use them in the models\n // self links are missing the request parameters\n this._response.parameters = this.href.parameters;\n\n if (options.targetModel) {\n this.targetModel = options.targetModel;\n }\n\n if (options.method) {\n this.method = options.method;\n } else {\n this.method = this.href.method;\n }\n }\n\n /**\n */\n get contributionsHref(): string {\n return this._contributionsHref;\n }\n\n /**\n */\n set contributionsHref(contributionsHref: string) {\n this._contributionsHref = contributionsHref;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n this._response.locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n get response(): ModularUIResponse {\n return this._response;\n }\n\n /**\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n */\n set method(method: $Keys<typeof HTTP_METHODS>) {\n this._method = method;\n }\n\n /**\n */\n get method(): $Keys<typeof HTTP_METHODS> {\n return this._method;\n }\n\n /**\n */\n get options(): RequestBaseOptions {\n return {\n ...this._options,\n locale: this.locale,\n method: this.method,\n };\n }\n\n /**\n */\n set options(options: RequestBaseOptions) {\n this._options = options;\n }\n\n /**\n */\n get withChildModels(): boolean {\n return (\n !(\"childmodels\" in this.options) || this.options.childmodels === true\n );\n }\n\n /**\n */\n set targetModel(targetModel: ?Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n createModel(): ModularUIModel {\n const Model = this.targetModel || resolveModel(this.response);\n\n // check for ResourceModel\n if (Model && Model.isApplicableModel) {\n return new Model(this.response);\n }\n\n throw new IllegalStateException(\n `No model available for data: ${JSON.stringify(this.response)}`\n );\n }\n\n /**\n */\n processContributionsService(contributionsData: Object) {\n if (!isPlainObject(contributionsData)) {\n throw new IllegalArgumentException(\n \"Missing contributions data or contributions is not JSON\"\n );\n }\n\n const [contributionsKey] = Object.keys(contributionsData);\n\n if (contributionsData.error && contributionsKey === \"error\") {\n this.handleContributionsError(contributionsData.error);\n }\n\n // The key of the data service is different from the contributions service for forms\n if (!(this.response.key in contributionsData)) {\n this.response.key = contributionsKey;\n }\n\n this.response.contributions = contributionsData[this.response.key];\n }\n\n /**\n */\n handleContributionsError(error: Object) {\n const errorMessage = error.properties?.message ?? \"Error in contribution\";\n throw new ModularUIError(errorMessage, error, this.contributionsHref);\n }\n\n /**\n */\n handleDataError(error: Object) {\n if (error.properties) {\n const errorMessage = error.properties?.message ?? \"Error in data\";\n throw new ModularUIError(errorMessage, error, this.href.path.toString());\n }\n\n throw new IllegalArgumentException(error);\n }\n\n /**\n */\n handleData(key: string, data: Object) {\n this.response.key = key;\n this.response.data = data;\n\n const links = data._links;\n\n if (links && links.contributions) {\n this.contributionsHref = links.contributions.href;\n } else if (Array.isArray(links) && links[0].contributions) {\n this.contributionsHref = links[0].contributions.href;\n } else {\n throw new IllegalArgumentException(\n `Contributions link not found for data with key ${key}`\n );\n }\n }\n\n /**\n */\n processDataService(data: Object) {\n if (!isPlainObject(data)) {\n throw new IllegalArgumentException(\"Missing data or data is not JSON\");\n }\n\n if (data.error) {\n this.handleDataError(data.error);\n } else {\n const [key] = Object.keys(data);\n this.handleData(key, data[key]);\n }\n }\n\n /**\n */\n fetchContributionsService(): Promise<any> {\n if (!this.contributionsHref) {\n throw new IllegalStateException(\"Missing a contributions href\");\n }\n\n return universalFetch({\n url: `${BASE}${this.contributionsHref}`,\n cache: true,\n locale: this.options.locale,\n });\n }\n\n /**\n */\n fetchDataService(): Promise<any> {\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: this.href.getQuerystringForModularUI(),\n locale: this.options.locale,\n onProgress: this.onProgress,\n });\n }\n\n /**\n * Check if links contain a 'hide-when-empty' layout hint and remove the link from\n * the component when it exists and no results are available\n */\n async processAsyncLayoutHints(): Promise<void> {\n if (getSetting(\"ALLOW_HIDE_WHEN_EMPTY_ON_TABS\")) {\n await this.processApplicationLinks();\n await this.processTabLinks();\n }\n await this.processPanelLinks();\n\n return Promise.resolve();\n }\n\n /**\n * hide application links<br>\n * _links on application data contains an extra level of tab links\n */\n processApplicationLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n const dataLinks = this.response.data._links;\n if (!contributionLinks || !dataLinks) {\n return Promise.resolve();\n }\n\n if (\"tab\" in contributionLinks && \"tab\" in dataLinks) {\n for (const contributionTabLink of contributionLinks.tab) {\n if (\"components\" in contributionTabLink) {\n const dataTabLinks = dataLinks.tab.find(\n (dataLink) => dataLink.name === contributionTabLink.name\n );\n\n if (dataTabLinks && \"components\" in dataTabLinks) {\n return this.processLinks(\n dataTabLinks.components,\n contributionTabLink.components\n ).then((newLinks) =>\n this.replaceApplicationLinks(contributionTabLink.name, newLinks)\n );\n }\n }\n }\n }\n\n return Promise.resolve();\n }\n\n /**\n * Replace hidden link in application link tree\n */\n replaceApplicationLinks(tabName: string, newLinks: Array<Object>): void {\n this.response.data._links.tab = this.response.data._links.tab.map(\n (tabLink) => {\n const key = tabLink.name;\n if (tabName === key) {\n tabLink.components = newLinks;\n }\n return tabLink;\n }\n );\n }\n\n /**\n */\n processTabLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"component\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links.component,\n contributionLinks.component\n ).then((newLinks) => {\n this.response.data._links.component = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n */\n processPanelLinks(): Promise<void> {\n const contributionLinks = this.response.contributions._links;\n\n if (!contributionLinks) {\n return Promise.resolve();\n }\n\n if (\"panel\" in contributionLinks) {\n return this.processLinks(\n this.response.data._links,\n contributionLinks.panel\n ).then((newLinks) => {\n this.response.data._links = newLinks;\n });\n }\n\n return Promise.resolve();\n }\n\n /**\n * Retrieve an object of key: link\n */\n dataLinksPerName(dataLinks: any): { [linkName: string]: any } {\n if (Array.isArray(dataLinks)) {\n const links = {};\n for (const dataLink of dataLinks) {\n links[dataLink.name] = dataLink;\n }\n return links;\n }\n return dataLinks;\n }\n\n /**\n * Check if links are empty and hide them when hide-when-empty hint exists\n */\n processLinks(\n dataLinks: any,\n contributionLinks: any\n ): Promise<Object | Array<Object>> {\n const linksPerName = this.dataLinksPerName(dataLinks);\n const hideWhenEmptyLinks = contributionLinks.filter((contributionLink) =>\n contributionLink.layouthint?.includes(HIDE_WHEN_EMPTY)\n );\n\n const isHiddenListChecks = [];\n\n for (const contributionLink of hideWhenEmptyLinks) {\n const dataLink = linksPerName[contributionLink.name];\n if (dataLink?.href) {\n isHiddenListChecks.push(\n this.isHiddenList(contributionLink.name, dataLink.href)\n );\n }\n }\n\n return Promise.all(isHiddenListChecks).then(\n (hiddenLinks: Array<string>) => {\n if (Array.isArray(dataLinks)) {\n return dataLinks.filter(\n (dataLink) => !hiddenLinks.includes(dataLink.name)\n );\n }\n\n const newDataLinks = {};\n for (const dataLinkKey in dataLinks) {\n if (!hiddenLinks.includes(dataLinkKey)) {\n newDataLinks[dataLinkKey] = dataLinks[dataLinkKey];\n }\n }\n return newDataLinks;\n }\n );\n }\n\n /**\n */\n isHiddenList(name: string, href: string): Promise<string> {\n const HIDE_WHEN_EMPTY_IGNORE_TASKS = getSetting(\n \"HIDE_WHEN_EMPTY_IGNORE_TASKS\",\n false\n );\n\n return universalFetch({\n ...this.options,\n url: `${BASE}${href}`,\n })\n .then((response: Object) => {\n if (isPlainObject(response)) {\n const [key] = Object.keys(response);\n const { _embedded, actions } = response[key];\n\n const noListItems = _embedded === null;\n const noActions = actions == null || HIDE_WHEN_EMPTY_IGNORE_TASKS;\n\n const isHidden = noListItems && noActions;\n if (isHidden) {\n return name;\n }\n }\n return \"\";\n })\n .catch(() => {\n return \"\";\n });\n }\n\n /**\n */\n set onProgress(progressEvent: ProgressEventHandler) {\n this._progressEvent = progressEvent;\n }\n\n /**\n */\n get onProgress(): ProgressEventHandler {\n return this._progressEvent || null;\n }\n\n /**\n * Combine previous send request data with new validation data to create a complete request object\n * The received model is new FormModel containing ONLY the current question, not the previously entered questions\n * to create a complete request we append the originally send form objects\n */\n getDynamicValidationData(model: ModularUIModel): string {\n const prevData =\n typeof this.options.data === \"string\"\n ? JSON.parse(this.options.data)\n : this.options.data;\n\n if (model instanceof FormModel) {\n const newData = JSON.parse(model.validationData);\n // $FlowFixMe incompatible-call\n return JSON.stringify(deepmerge(prevData || {}, newData));\n }\n\n return JSON.stringify(prevData) ?? \"{}\";\n }\n\n /**\n * First load of dynamic values when a form is loaded\n */\n loadDynamicValidations(model: ModularUIModel): Promise<ModularUIModel> {\n if (\n !this.options.isValidationRequest &&\n getSetting(\"USE_INSTANT_SERVER_VALIDATION\") &&\n model instanceof FormModel &&\n model.currentFormObject &&\n model.currentFormObject.hasDynamicValidations\n ) {\n const validationHref = this.href.setParameter(\"commit\", \"false\");\n return universalFetch({\n ...this.options,\n url: `${BASE}${this.href.path}`,\n params: validationHref.getQuerystringForModularUI(),\n childmodels: false,\n data: this.getDynamicValidationData(model),\n }).then((data) => {\n if (data == null || typeof data !== \"object\") {\n return model;\n }\n\n const [key] = Object.keys(data);\n return model.updateValidations(data[key]);\n });\n }\n\n return Promise.resolve(model);\n }\n\n /**\n */\n fetch(): Promise<ModularUIModel> {\n return this.fetchDataService()\n .then((data) => {\n if (data == null) {\n throw new Error(`No data received for ${this.href.toString()}`);\n }\n\n this.processDataService(data);\n return this.fetchContributionsService();\n })\n .then((contributionsData) => {\n if (contributionsData == null) {\n throw new Error(\n `No contributions data received for ${this.contributionsHref}`\n );\n }\n\n this.processContributionsService(contributionsData);\n return this.processAsyncLayoutHints();\n })\n .then(() => Promise.resolve(this.createModel()))\n .then((model) => this.loadDynamicValidations(model))\n .then((model) => {\n if (this.withChildModels) {\n return this.fetchChildModels(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n */\n fetchFromCache(): Promise<ModularUIModel> {\n this.options = {\n ...this.options,\n cache: true,\n };\n\n return this.fetch();\n }\n\n /**\n */\n fetchChildModels(model: ModularUIModel): Promise<ModularUIModel> {\n const childModelLinks = model.getInitialChildModelLinks();\n\n const childModelRequests = childModelLinks.map((childModelLink) => {\n const request = new ModularUIRequest(childModelLink.href, {\n locale: this.locale,\n });\n\n if (childModelLink.targetModel) {\n request.targetModel = childModelLink.targetModel;\n }\n\n if (childModelLink.isCacheable) {\n return request.fetchFromCache();\n }\n\n return request.fetch();\n });\n\n return Promise.allSettled(childModelRequests).then((childModels) => {\n const resolvedChildModels = [];\n\n childModels.forEach((childModel) => {\n if (childModel.status === \"rejected\") {\n const { reason } = childModel;\n if (reason.name !== \"Error.ChangePasswordRequired\") {\n console.error(\n \"Unexpected error when retrieving child model:\",\n reason\n );\n }\n } else {\n resolvedChildModels.push(childModel.value);\n }\n });\n\n model.addChildModels(resolvedChildModels);\n\n return model;\n });\n }\n\n /**\n */\n fetchContent(withChildSections: boolean): Promise<mixed> {\n return this.fetchFromCache().then((model) => {\n if (\n withChildSections &&\n model instanceof ContentModel &&\n model.childSectionLinks.length > 0\n ) {\n return this.fetchContentChildSections(model);\n }\n\n return Promise.resolve(model);\n });\n }\n\n /**\n * Recursively return child sections defined on the content model\n */\n fetchContentChildSections(contentModel: ContentModel): Promise<mixed> {\n const newContentModel = contentModel.clone();\n\n return Promise.all(\n contentModel.childSectionLinks.map((childSectionLink) => {\n const contentHrefWithEntryDate = childSectionLink.selfhref.addParameter(\n TIMEVERSION_FILTER_NAME,\n contentModel.entryDate\n );\n\n const request = new ModularUIRequest(contentHrefWithEntryDate, {\n locale: this.locale,\n });\n\n return request.fetchContent(true);\n })\n ).then((sectionModels) => {\n newContentModel.childSections = sectionModels;\n\n return newContentModel;\n });\n }\n}\n\nexport default ModularUIRequest;\n"],"mappings":";;;;;;;;;AACA,OAAOA,SAAP,MAAsB,WAAtB;AAE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YAAY,CAACH,iBAAb,kBAAoCM,gBAAD,IAAsB;MACvD,MAAMC,wBAAwB,GAAGD,gBAAgB,CAACE,QAAjB,CAA0BC,YAA1B,CAC/BtJ,uBAD+B,EAE/BgJ,YAAY,CAACO,SAFkB,CAAjC;MAKA,MAAMxB,OAAO,GAAG,IAAIlH,gBAAJ,CAAqBuI,wBAArB,EAA+C;QAC7DjI,MAAM,EAAE,KAAKA;MADgD,CAA/C,CAAhB;MAIA,OAAO4G,OAAO,CAACY,YAAR,CAAqB,IAArB,CAAP;IACD,CAXD,CADK,EAaL9D,IAbK,CAaC2E,aAAD,IAAmB;MACxBP,eAAe,CAACQ,aAAhB,GAAgCD,aAAhC;MAEA,OAAOP,eAAP;IACD,CAjBM,CAAP;EAkBD;;AAznBoB;;AA4nBvB,eAAepI,gBAAf"}
@@ -1,16 +1,11 @@
1
- import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
2
- import _classCallCheck from "@babel/runtime-corejs3/helpers/esm/classCallCheck";
3
- import _createClass from "@babel/runtime-corejs3/helpers/esm/createClass";
4
1
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
5
- import _Object$keys3 from "@babel/runtime-corejs3/core-js-stable/object/keys";
2
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
6
3
  import { has } from "../utils/helpers/objects";
7
4
 
8
5
  /**
9
6
  */
10
- var ModularUIResponse = /*#__PURE__*/function () {
11
- function ModularUIResponse() {
12
- _classCallCheck(this, ModularUIResponse);
13
-
7
+ class ModularUIResponse {
8
+ constructor() {
14
9
  _defineProperty(this, "_key", "unknown");
15
10
 
16
11
  _defineProperty(this, "_data", void 0);
@@ -22,119 +17,109 @@ var ModularUIResponse = /*#__PURE__*/function () {
22
17
  _defineProperty(this, "_parameters", []);
23
18
  }
24
19
 
25
- _createClass(ModularUIResponse, [{
26
- key: "locale",
27
- get:
28
- /**
29
- */
30
- function get() {
31
- return this._locale;
32
- }
33
- /**
34
- */
35
- ,
36
- set:
37
- /**
38
- */
39
- function set(locale) {
40
- this._locale = locale;
41
- }
42
- }, {
43
- key: "key",
44
- get:
45
- /**
46
- */
47
- function get() {
48
- return this._key;
49
- }
50
- /**
51
- */
52
- ,
53
- set: function set(key) {
54
- this._key = key;
55
- }
56
- }, {
57
- key: "data",
58
- get:
59
- /**
60
- */
61
- function get() {
62
- return this._data;
63
- }
64
- /**
65
- */
66
- ,
67
- set: function set(data) {
68
- this._data = data;
69
- }
70
- }, {
71
- key: "contributions",
72
- get:
73
- /**
74
- */
75
- function get() {
76
- return this._contributions;
77
- }
78
- /**
79
- */
80
- ,
81
- set: function set(contributions) {
82
- this._contributions = contributions;
83
- }
84
- }, {
85
- key: "parameters",
86
- get:
87
- /**
88
- */
89
- function get() {
90
- return this._parameters;
91
- }
92
- /**
93
- */
94
- ,
95
- set: function set(parameters) {
96
- this._parameters = parameters;
97
- }
98
- }], [{
99
- key: "create",
100
- value:
101
- /**
102
- */
103
- function create(input) {
104
- var response = new ModularUIResponse();
105
-
106
- if (has(input, "data") && has(input, "contributions")) {
107
- var _input$key, _input$data, _input$contributions;
108
-
109
- var _Object$keys = _Object$keys3(input.data),
110
- _Object$keys2 = _slicedToArray(_Object$keys, 1),
111
- dataKey = _Object$keys2[0];
112
-
113
- var _Object$keys4 = _Object$keys3(input.contributions),
114
- _Object$keys5 = _slicedToArray(_Object$keys4, 1),
115
- contributionsKey = _Object$keys5[0];
116
-
117
- response.key = (_input$key = input.key) !== null && _input$key !== void 0 ? _input$key : contributionsKey;
118
- response.data = (_input$data = input.data) === null || _input$data === void 0 ? void 0 : _input$data[dataKey];
119
- response.contributions = (_input$contributions = input.contributions) === null || _input$contributions === void 0 ? void 0 : _input$contributions[contributionsKey];
120
- }
121
-
122
- return response;
123
- }
124
- }, {
125
- key: "rehydrate",
126
- value: function rehydrate(data) {
127
- var modelData = new ModularUIResponse();
128
- modelData.locale = data.locale;
129
- modelData.key = data.key;
130
- modelData.data = data.data;
131
- modelData.contributions = data.contributions;
132
- return modelData;
20
+ /**
21
+ */
22
+ static create(input) {
23
+ const response = new ModularUIResponse();
24
+
25
+ if (has(input, "data") && has(input, "contributions")) {
26
+ var _input$key, _input$data, _input$contributions;
27
+
28
+ const [dataKey] = _Object$keys(input.data);
29
+
30
+ const [contributionsKey] = _Object$keys(input.contributions);
31
+
32
+ response.key = (_input$key = input.key) !== null && _input$key !== void 0 ? _input$key : contributionsKey;
33
+ response.data = (_input$data = input.data) === null || _input$data === void 0 ? void 0 : _input$data[dataKey];
34
+ response.contributions = (_input$contributions = input.contributions) === null || _input$contributions === void 0 ? void 0 : _input$contributions[contributionsKey];
133
35
  }
134
- }]);
135
36
 
136
- return ModularUIResponse;
137
- }();
37
+ return response;
38
+ }
39
+ /**
40
+ */
41
+
42
+
43
+ set locale(locale) {
44
+ this._locale = locale;
45
+ }
46
+ /**
47
+ */
48
+
49
+
50
+ get locale() {
51
+ return this._locale;
52
+ }
53
+ /**
54
+ */
55
+
56
+
57
+ set key(key) {
58
+ this._key = key;
59
+ }
60
+ /**
61
+ */
62
+
63
+
64
+ get key() {
65
+ return this._key;
66
+ }
67
+ /**
68
+ */
69
+
70
+
71
+ set data(data) {
72
+ this._data = data;
73
+ }
74
+ /**
75
+ */
76
+
77
+
78
+ get data() {
79
+ return this._data;
80
+ }
81
+ /**
82
+ */
83
+
84
+
85
+ set contributions(contributions) {
86
+ this._contributions = contributions;
87
+ }
88
+ /**
89
+ */
90
+
91
+
92
+ get contributions() {
93
+ return this._contributions;
94
+ }
95
+ /**
96
+ */
97
+
98
+
99
+ set parameters(parameters) {
100
+ this._parameters = parameters;
101
+ }
102
+ /**
103
+ */
104
+
105
+
106
+ get parameters() {
107
+ return this._parameters;
108
+ }
109
+ /**
110
+ */
111
+
112
+
113
+ static rehydrate(data) {
114
+ const modelData = new ModularUIResponse();
115
+ modelData.locale = data.locale;
116
+ modelData.key = data.key;
117
+ modelData.data = data.data;
118
+ modelData.contributions = data.contributions;
119
+ return modelData;
120
+ }
121
+
122
+ }
138
123
 
139
124
  export default ModularUIResponse;
140
125
  //# sourceMappingURL=ModularUIResponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModularUIResponse.js","names":["has","ModularUIResponse","_locale","locale","_key","key","_data","data","_contributions","contributions","_parameters","parameters","input","response","dataKey","contributionsKey","modelData"],"sources":["../../src/modularui/ModularUIResponse.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport type Parameter from \"../models/parameter/Parameter\";\n\n/**\n */\nclass ModularUIResponse {\n _key: string = \"unknown\";\n _data: Object;\n _contributions: Object;\n _locale: string = \"en\";\n _parameters: Array<Parameter> = [];\n\n /**\n */\n static create(input: {\n key: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const response = new ModularUIResponse();\n\n if (has(input, \"data\") && has(input, \"contributions\")) {\n const [dataKey] = Object.keys(input.data);\n const [contributionsKey] = Object.keys(input.contributions);\n\n response.key = input.key ?? contributionsKey;\n response.data = input.data?.[dataKey];\n response.contributions = input.contributions?.[contributionsKey];\n }\n\n return response;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n set key(key: string) {\n this._key = key;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n set data(data: Object) {\n this._data = data;\n }\n\n /**\n */\n get data(): Object {\n return this._data;\n }\n\n /**\n */\n set contributions(contributions: Object) {\n this._contributions = contributions;\n }\n\n /**\n */\n get contributions(): Object {\n return this._contributions;\n }\n\n /**\n */\n set parameters(parameters: Array<Parameter>) {\n this._parameters = parameters;\n }\n\n /**\n */\n get parameters(): Array<Parameter> {\n return this._parameters;\n }\n\n /**\n */\n static rehydrate(data: {\n key: string,\n locale: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const modelData = new ModularUIResponse();\n\n modelData.locale = data.locale;\n modelData.key = data.key;\n modelData.data = data.data;\n modelData.contributions = data.contributions;\n\n return modelData;\n }\n}\n\nexport default ModularUIResponse;\n"],"mappings":";;;;;AACA,SAASA,GAAT,QAAoB,0BAApB;;AAIA;AACA;IACMC,iB;;;;kCACW,S;;;;;;qCAGG,I;;yCACc,E;;;;;;IA6BhC;AACF;IACE,eAAqB;MACnB,OAAO,KAAKC,OAAZ;IACD;IAED;AACF;;;IAbE;AACF;IACE,aAAWC,MAAX,EAA2B;MACzB,KAAKD,OAAL,GAAeC,MAAf;IACD;;;;IAcD;AACF;IACE,eAAkB;MAChB,OAAO,KAAKC,IAAZ;IACD;IAED;AACF;;SAXE,aAAQC,GAAR,EAAqB;MACnB,KAAKD,IAAL,GAAYC,GAAZ;IACD;;;;IAcD;AACF;IACE,eAAmB;MACjB,OAAO,KAAKC,KAAZ;IACD;IAED;AACF;;SAXE,aAASC,IAAT,EAAuB;MACrB,KAAKD,KAAL,GAAaC,IAAb;IACD;;;;IAcD;AACF;IACE,eAA4B;MAC1B,OAAO,KAAKC,cAAZ;IACD;IAED;AACF;;SAXE,aAAkBC,aAAlB,EAAyC;MACvC,KAAKD,cAAL,GAAsBC,aAAtB;IACD;;;;IAcD;AACF;IACE,eAAmC;MACjC,OAAO,KAAKC,WAAZ;IACD;IAED;AACF;;SAXE,aAAeC,UAAf,EAA6C;MAC3C,KAAKD,WAAL,GAAmBC,UAAnB;IACD;;;;IAzED;AACF;IACE,gBAAcC,KAAd,EAIsB;MACpB,IAAMC,QAAQ,GAAG,IAAIZ,iBAAJ,EAAjB;;MAEA,IAAID,GAAG,CAACY,KAAD,EAAQ,MAAR,CAAH,IAAsBZ,GAAG,CAACY,KAAD,EAAQ,eAAR,CAA7B,EAAuD;QAAA;;QACrD,mBAAkB,cAAYA,KAAK,CAACL,IAAlB,CAAlB;QAAA;QAAA,IAAOO,OAAP;;QACA,oBAA2B,cAAYF,KAAK,CAACH,aAAlB,CAA3B;QAAA;QAAA,IAAOM,gBAAP;;QAEAF,QAAQ,CAACR,GAAT,iBAAeO,KAAK,CAACP,GAArB,mDAA4BU,gBAA5B;QACAF,QAAQ,CAACN,IAAT,kBAAgBK,KAAK,CAACL,IAAtB,gDAAgB,YAAaO,OAAb,CAAhB;QACAD,QAAQ,CAACJ,aAAT,2BAAyBG,KAAK,CAACH,aAA/B,yDAAyB,qBAAsBM,gBAAtB,CAAzB;MACD;;MAED,OAAOF,QAAP;IACD;;;WAgED,mBAAiBN,IAAjB,EAKsB;MACpB,IAAMS,SAAS,GAAG,IAAIf,iBAAJ,EAAlB;MAEAe,SAAS,CAACb,MAAV,GAAmBI,IAAI,CAACJ,MAAxB;MACAa,SAAS,CAACX,GAAV,GAAgBE,IAAI,CAACF,GAArB;MACAW,SAAS,CAACT,IAAV,GAAiBA,IAAI,CAACA,IAAtB;MACAS,SAAS,CAACP,aAAV,GAA0BF,IAAI,CAACE,aAA/B;MAEA,OAAOO,SAAP;IACD;;;;;;AAGH,eAAef,iBAAf"}
1
+ {"version":3,"file":"ModularUIResponse.js","names":["has","ModularUIResponse","create","input","response","dataKey","data","contributionsKey","contributions","key","locale","_locale","_key","_data","_contributions","parameters","_parameters","rehydrate","modelData"],"sources":["../../src/modularui/ModularUIResponse.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport type Parameter from \"../models/parameter/Parameter\";\n\n/**\n */\nclass ModularUIResponse {\n _key: string = \"unknown\";\n _data: Object;\n _contributions: Object;\n _locale: string = \"en\";\n _parameters: Array<Parameter> = [];\n\n /**\n */\n static create(input: {\n key: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const response = new ModularUIResponse();\n\n if (has(input, \"data\") && has(input, \"contributions\")) {\n const [dataKey] = Object.keys(input.data);\n const [contributionsKey] = Object.keys(input.contributions);\n\n response.key = input.key ?? contributionsKey;\n response.data = input.data?.[dataKey];\n response.contributions = input.contributions?.[contributionsKey];\n }\n\n return response;\n }\n\n /**\n */\n set locale(locale: string) {\n this._locale = locale;\n }\n\n /**\n */\n get locale(): string {\n return this._locale;\n }\n\n /**\n */\n set key(key: string) {\n this._key = key;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n set data(data: Object) {\n this._data = data;\n }\n\n /**\n */\n get data(): Object {\n return this._data;\n }\n\n /**\n */\n set contributions(contributions: Object) {\n this._contributions = contributions;\n }\n\n /**\n */\n get contributions(): Object {\n return this._contributions;\n }\n\n /**\n */\n set parameters(parameters: Array<Parameter>) {\n this._parameters = parameters;\n }\n\n /**\n */\n get parameters(): Array<Parameter> {\n return this._parameters;\n }\n\n /**\n */\n static rehydrate(data: {\n key: string,\n locale: string,\n data: Object,\n contributions: Object,\n }): ModularUIResponse {\n const modelData = new ModularUIResponse();\n\n modelData.locale = data.locale;\n modelData.key = data.key;\n modelData.data = data.data;\n modelData.contributions = data.contributions;\n\n return modelData;\n }\n}\n\nexport default ModularUIResponse;\n"],"mappings":";;AACA,SAASA,GAAT,QAAoB,0BAApB;;AAIA;AACA;AACA,MAAMC,iBAAN,CAAwB;EAAA;IAAA,8BACP,SADO;;IAAA;;IAAA;;IAAA,iCAIJ,IAJI;;IAAA,qCAKU,EALV;EAAA;;EAOtB;AACF;EACe,OAANC,MAAM,CAACC,KAAD,EAIS;IACpB,MAAMC,QAAQ,GAAG,IAAIH,iBAAJ,EAAjB;;IAEA,IAAID,GAAG,CAACG,KAAD,EAAQ,MAAR,CAAH,IAAsBH,GAAG,CAACG,KAAD,EAAQ,eAAR,CAA7B,EAAuD;MAAA;;MACrD,MAAM,CAACE,OAAD,IAAY,aAAYF,KAAK,CAACG,IAAlB,CAAlB;;MACA,MAAM,CAACC,gBAAD,IAAqB,aAAYJ,KAAK,CAACK,aAAlB,CAA3B;;MAEAJ,QAAQ,CAACK,GAAT,iBAAeN,KAAK,CAACM,GAArB,mDAA4BF,gBAA5B;MACAH,QAAQ,CAACE,IAAT,kBAAgBH,KAAK,CAACG,IAAtB,gDAAgB,YAAaD,OAAb,CAAhB;MACAD,QAAQ,CAACI,aAAT,2BAAyBL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@@ -1,87 +1,54 @@
1
- import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
2
- import _classCallCheck from "@babel/runtime-corejs3/helpers/esm/classCallCheck";
3
- import _createClass from "@babel/runtime-corejs3/helpers/esm/createClass";
4
- import _assertThisInitialized from "@babel/runtime-corejs3/helpers/esm/assertThisInitialized";
5
- import _inherits from "@babel/runtime-corejs3/helpers/esm/inherits";
6
- import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn";
7
- import _getPrototypeOf from "@babel/runtime-corejs3/helpers/esm/getPrototypeOf";
8
1
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
9
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
10
-
11
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
-
13
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
14
-
15
2
  import { Component } from "react";
16
3
  import ErrorBoundaryFallback from "./ErrorBoundaryFallback";
17
4
  import { jsx as _jsx } from "react/jsx-runtime";
18
5
 
19
6
  /**
20
7
  */
21
- var ErrorBoundary = /*#__PURE__*/function (_Component) {
22
- _inherits(ErrorBoundary, _Component);
23
-
24
- var _super = _createSuper(ErrorBoundary);
25
-
26
- function ErrorBoundary() {
27
- var _context;
28
-
29
- var _this;
30
-
31
- _classCallCheck(this, ErrorBoundary);
32
-
33
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34
- args[_key] = arguments[_key];
35
- }
8
+ class ErrorBoundary extends Component {
9
+ constructor() {
10
+ super(...arguments);
36
11
 
37
- _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
38
-
39
- _defineProperty(_assertThisInitialized(_this), "state", {
12
+ _defineProperty(this, "state", {
40
13
  error: null,
41
14
  errorInfo: null
42
15
  });
43
-
44
- return _this;
45
16
  }
46
17
 
47
- _createClass(ErrorBoundary, [{
48
- key: "componentDidCatch",
49
- value:
50
- /**
51
- */
52
- function componentDidCatch(error, errorInfo) {
53
- this.setState({
54
- error: error,
55
- errorInfo: errorInfo
56
- });
57
- }
58
- /**
59
- */
18
+ /**
19
+ */
20
+ componentDidCatch(error, errorInfo) {
21
+ this.setState({
22
+ error,
23
+ errorInfo
24
+ });
25
+ }
26
+ /**
27
+ */
60
28
 
61
- }, {
62
- key: "render",
63
- value: function render() {
64
- var _this$props = this.props,
65
- children = _this$props.children,
66
- FallbackComponent = _this$props.FallbackComponent; // NOSONAR
67
29
 
68
- var _this$state = this.state,
69
- error = _this$state.error,
70
- errorInfo = _this$state.errorInfo;
30
+ render() {
31
+ const {
32
+ children,
33
+ FallbackComponent
34
+ } = this.props; // NOSONAR
71
35
 
72
- if (error != null) {
73
- return /*#__PURE__*/_jsx(FallbackComponent, {
74
- componentStack: errorInfo ? errorInfo.componentStack : "",
75
- error: error
76
- });
77
- }
36
+ const {
37
+ error,
38
+ errorInfo
39
+ } = this.state;
78
40
 
79
- return children !== null && children !== void 0 ? children : null;
41
+ if (error != null) {
42
+ return /*#__PURE__*/_jsx(FallbackComponent, {
43
+ componentStack: errorInfo ? errorInfo.componentStack : "",
44
+ error: error
45
+ });
80
46
  }
81
- }]);
82
47
 
83
- return ErrorBoundary;
84
- }(Component);
48
+ return children !== null && children !== void 0 ? children : null;
49
+ }
50
+
51
+ }
85
52
 
86
53
  _defineProperty(ErrorBoundary, "defaultProps", {
87
54
  FallbackComponent: ErrorBoundaryFallback
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundary.js","names":["Component","ErrorBoundaryFallback","ErrorBoundary","error","errorInfo","setState","props","children","FallbackComponent","state","componentStack","displayName"],"sources":["../../src/react/ErrorBoundary.js"],"sourcesContent":["// @flow\nimport { Component } from \"react\";\n\nimport ErrorBoundaryFallback from \"./ErrorBoundaryFallback\";\n\nimport type { ComponentType, Node } from \"react\";\nimport type { Props as FallbackProps } from \"./ErrorBoundaryFallback\";\nexport type Props = {\n +children: ?Node,\n +FallbackComponent: ComponentType<FallbackProps>,\n};\n\ntype ErrorInfo = {\n componentStack: string,\n ...\n};\n\ntype State = {\n error: ?Error,\n errorInfo: ?ErrorInfo,\n};\n\n/**\n */\nclass ErrorBoundary extends Component<Props, State> {\n static defaultProps: { FallbackComponent: ComponentType<FallbackProps> } = {\n FallbackComponent: ErrorBoundaryFallback,\n };\n\n state: State = {\n error: null,\n errorInfo: null,\n };\n\n /**\n */\n componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n this.setState({ error, errorInfo });\n }\n\n /**\n */\n render(): Node {\n const { children, FallbackComponent } = this.props; // NOSONAR\n const { error, errorInfo } = this.state;\n\n if (error != null) {\n return (\n <FallbackComponent\n componentStack={errorInfo ? errorInfo.componentStack : \"\"}\n error={error}\n />\n );\n }\n\n return children ?? null;\n }\n}\nErrorBoundary.displayName = \"BI.ErrorBoundary\";\n\nexport default ErrorBoundary;\n"],"mappings":";;;;;;;;;;;;;;AACA,SAASA,SAAT,QAA0B,OAA1B;AAEA,OAAOC,qBAAP,MAAkC,yBAAlC;;;AAmBA;AACA;IACMC,a;;;;;;;;;;;;;;;;;;4DAKW;MACbC,KAAK,EAAE,IADM;MAEbC,SAAS,EAAE;IAFE,C;;;;;;;;IAKf;AACF;IACE,2BAAkBD,KAAlB,EAAgCC,SAAhC,EAA4D;MAC1D,KAAKC,QAAL,CAAc;QAAEF,KAAK,EAALA,KAAF;QAASC,SAAS,EAATA;MAAT,CAAd;IACD;IAED;AACF;;;;WACE,kBAAe;MACb,kBAAwC,KAAKE,KAA7C;MAAA,IAAQC,QAAR,eAAQA,QAAR;MAAA,IAAkBC,iBAAlB,eAAkBA,iBAAlB,CADa,CACuC;;MACpD,kBAA6B,KAAKC,KAAlC;MAAA,IAAQN,KAAR,eAAQA,KAAR;MAAA,IAAeC,SAAf,eAAeA,SAAf;;MAEA,IAAID,KAAK,IAAI,IAAb,EAAmB;QACjB,oBACE,KAAC,iBAAD;UACE,cAAc,EAAEC,SAAS,GAAGA,SAAS,CAACM,cAAb,GAA8B,EADzD;UAEE,KAAK,EAAEP;QAFT,EADF;MAMD;;MAED,OAAOI,QAAP,aAAOA,QAAP,cAAOA,QAAP,GAAmB,IAAnB;IACD;;;;EAhCyBP,S;;gBAAtBE,a,kBACuE;EACzEM,iBAAiB,EAAEP;AADsD,C;;AAiC7EC,aAAa,CAACS,WAAd,GAA4B,kBAA5B;AAEA,eAAeT,aAAf"}
1
+ {"version":3,"file":"ErrorBoundary.js","names":["Component","ErrorBoundaryFallback","ErrorBoundary","error","errorInfo","componentDidCatch","setState","render","children","FallbackComponent","props","state","componentStack","displayName"],"sources":["../../src/react/ErrorBoundary.js"],"sourcesContent":["// @flow\nimport { Component } from \"react\";\n\nimport ErrorBoundaryFallback from \"./ErrorBoundaryFallback\";\n\nimport type { ComponentType, Node } from \"react\";\nimport type { Props as FallbackProps } from \"./ErrorBoundaryFallback\";\nexport type Props = {\n +children: ?Node,\n +FallbackComponent: ComponentType<FallbackProps>,\n};\n\ntype ErrorInfo = {\n componentStack: string,\n ...\n};\n\ntype State = {\n error: ?Error,\n errorInfo: ?ErrorInfo,\n};\n\n/**\n */\nclass ErrorBoundary extends Component<Props, State> {\n static defaultProps: { FallbackComponent: ComponentType<FallbackProps> } = {\n FallbackComponent: ErrorBoundaryFallback,\n };\n\n state: State = {\n error: null,\n errorInfo: null,\n };\n\n /**\n */\n componentDidCatch(error: Error, errorInfo: ErrorInfo): void {\n this.setState({ error, errorInfo });\n }\n\n /**\n */\n render(): Node {\n const { children, FallbackComponent } = this.props; // NOSONAR\n const { error, errorInfo } = this.state;\n\n if (error != null) {\n return (\n <FallbackComponent\n componentStack={errorInfo ? errorInfo.componentStack : \"\"}\n error={error}\n />\n );\n }\n\n return children ?? null;\n }\n}\nErrorBoundary.displayName = \"BI.ErrorBoundary\";\n\nexport default ErrorBoundary;\n"],"mappings":";AACA,SAASA,SAAT,QAA0B,OAA1B;AAEA,OAAOC,qBAAP,MAAkC,yBAAlC;;;AAmBA;AACA;AACA,MAAMC,aAAN,SAA4BF,SAA5B,CAAoD;EAAA;IAAA;;IAAA,+BAKnC;MACbG,KAAK,EAAE,IADM;MAEbC,SAAS,EAAE;IAFE,CALmC;EAAA;;EAUlD;AACF;EACEC,iBAAiB,CAACF,KAAD,EAAeC,SAAf,EAA2C;IAC1D,KAAKE,QAAL,CAAc;MAAEH,KAAF;MAASC;IAAT,CAAd;EACD;EAED;AACF;;;EACEG,MAAM,GAAS;IACb,MAAM;MAAEC,QAAF;MAAYC;IAAZ,IAAkC,KAAKC,KAA7C,CADa,CACuC;;IACpD,MAAM;MAAEP,KAAF;MAASC;IAAT,IAAuB,KAAKO,KAAlC;;IAEA,IAAIR,KAAK,IAAI,IAAb,EAAmB;MACjB,oBACE,KAAC,iBAAD;QACE,cAAc,EAAEC,SAAS,GAAGA,SAAS,CAACQ,cAAb,GAA8B,EADzD;QAEE,KAAK,EAAET;MAFT,EADF;IAMD;;IAED,OAAOK,QAAP,aAAOA,QAAP,cAAOA,QAAP,GAAmB,IAAnB;EACD;;AAhCiD;;gBAA9CN,a,kBACuE;EACzEO,iBAAiB,EAAER;AADsD,C;;AAiC7EC,aAAa,CAACW,WAAd,GAA4B,kBAA5B;AAEA,eAAeX,aAAf"}
@@ -2,19 +2,21 @@ import styled from "styled-components";
2
2
  import { spacers, spacer } from "../react-theme/utils/spacers";
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
- var StyledBoundary = /*#__PURE__*/styled.div.withConfig({
5
+ const StyledBoundary = /*#__PURE__*/styled.div.withConfig({
6
6
  componentId: "sc-xsbtpo-0"
7
7
  })(["padding:", ";margin-bottom:", ";background-color:#e9ecef;border-radius:0.3em;"], spacers(2, 1), spacer(2));
8
- var StyledStack = /*#__PURE__*/styled.pre.withConfig({
8
+ const StyledStack = /*#__PURE__*/styled.pre.withConfig({
9
9
  componentId: "sc-xsbtpo-1"
10
10
  })(["display:block;font-size:87.5%;color:#212529;font-style:italic;"]);
11
11
  /**
12
12
  */
13
13
 
14
- var ErrorBoundaryFallback = function ErrorBoundaryFallback(_ref) {
15
- var className = _ref.className,
16
- componentStack = _ref.componentStack,
17
- error = _ref.error;
14
+ const ErrorBoundaryFallback = _ref => {
15
+ let {
16
+ className,
17
+ componentStack,
18
+ error
19
+ } = _ref;
18
20
  return /*#__PURE__*/_jsxs(StyledBoundary, {
19
21
  className: className,
20
22
  children: [/*#__PURE__*/_jsx("h2", {
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundaryFallback.js","names":["styled","spacers","spacer","StyledBoundary","div","StyledStack","pre","ErrorBoundaryFallback","className","componentStack","error","toString","displayName"],"sources":["../../src/react/ErrorBoundaryFallback.js"],"sourcesContent":["// @flow\nimport styled from \"styled-components\";\nimport { spacers, spacer } from \"../react-theme/utils/spacers\";\n\nimport type { StyledComponent } from \"styled-components\";\nimport type { Theme } from \"../react-theme/types\";\nimport type { Node } from \"react\";\n\nexport type Props = {\n +className?: string,\n +componentStack: string,\n +error: Error,\n};\n\nconst StyledBoundary: StyledComponent<{}, Theme, *> = styled.div`\n padding: ${spacers(2, 1)};\n margin-bottom: ${spacer(2)};\n background-color: #e9ecef;\n border-radius: 0.3em;\n`;\n\nconst StyledStack = styled.pre`\n display: block;\n font-size: 87.5%;\n color: #212529;\n font-style: italic;\n`;\n\n/**\n */\nconst ErrorBoundaryFallback = ({\n className,\n componentStack,\n error,\n}: Props): Node => (\n <StyledBoundary className={className}>\n <h2>{error.toString()}</h2>\n <StyledStack className=\"debug\">{componentStack}</StyledStack>\n </StyledBoundary>\n);\n\nErrorBoundaryFallback.displayName = \"BI.ErrorBoundaryFallback\";\n\nexport default ErrorBoundaryFallback;\n"],"mappings":"AACA,OAAOA,MAAP,MAAmB,mBAAnB;AACA,SAASC,OAAT,EAAkBC,MAAlB,QAAgC,8BAAhC;;;AAYA,IAAMC,cAA6C,gBAAGH,MAAM,CAACI,GAAV;EAAA;AAAA,sFACtCH,OAAO,CAAC,CAAD,EAAI,CAAJ,CAD+B,EAEhCC,MAAM,CAAC,CAAD,CAF0B,CAAnD;AAOA,IAAMG,WAAW,gBAAGL,MAAM,CAACM,GAAV;EAAA;AAAA,sEAAjB;AAOA;AACA;;AACA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAwB;EAAA,IAC5BC,SAD4B,QAC5BA,SAD4B;EAAA,IAE5BC,cAF4B,QAE5BA,cAF4B;EAAA,IAG5BC,KAH4B,QAG5BA,KAH4B;EAAA,oBAK5B,MAAC,cAAD;IAAgB,SAAS,EAAEF,SAA3B;IAAA,wBACE;MAAA,UAAKE,KAAK,CAACC,QAAN;IAAL,EADF,eAEE,KAAC,WAAD;MAAa,SAAS,EAAC,OAAvB;MAAA,UAAgCF;IAAhC,EAFF;EAAA,EAL4B;AAAA,CAA9B;;AAWAF,qBAAqB,CAACK,WAAtB,GAAoC,0BAApC;AAEA,eAAeL,qBAAf"}
1
+ {"version":3,"file":"ErrorBoundaryFallback.js","names":["styled","spacers","spacer","StyledBoundary","div","StyledStack","pre","ErrorBoundaryFallback","className","componentStack","error","toString","displayName"],"sources":["../../src/react/ErrorBoundaryFallback.js"],"sourcesContent":["// @flow\nimport styled from \"styled-components\";\nimport { spacers, spacer } from \"../react-theme/utils/spacers\";\n\nimport type { StyledComponent } from \"styled-components\";\nimport type { Theme } from \"../react-theme/types\";\nimport type { Node } from \"react\";\n\nexport type Props = {\n +className?: string,\n +componentStack: string,\n +error: Error,\n};\n\nconst StyledBoundary: StyledComponent<{}, Theme, *> = styled.div`\n padding: ${spacers(2, 1)};\n margin-bottom: ${spacer(2)};\n background-color: #e9ecef;\n border-radius: 0.3em;\n`;\n\nconst StyledStack = styled.pre`\n display: block;\n font-size: 87.5%;\n color: #212529;\n font-style: italic;\n`;\n\n/**\n */\nconst ErrorBoundaryFallback = ({\n className,\n componentStack,\n error,\n}: Props): Node => (\n <StyledBoundary className={className}>\n <h2>{error.toString()}</h2>\n <StyledStack className=\"debug\">{componentStack}</StyledStack>\n </StyledBoundary>\n);\n\nErrorBoundaryFallback.displayName = \"BI.ErrorBoundaryFallback\";\n\nexport default ErrorBoundaryFallback;\n"],"mappings":"AACA,OAAOA,MAAP,MAAmB,mBAAnB;AACA,SAASC,OAAT,EAAkBC,MAAlB,QAAgC,8BAAhC;;;AAYA,MAAMC,cAA6C,gBAAGH,MAAM,CAACI,GAAV;EAAA;AAAA,sFACtCH,OAAO,CAAC,CAAD,EAAI,CAAJ,CAD+B,EAEhCC,MAAM,CAAC,CAAD,CAF0B,CAAnD;AAOA,MAAMG,WAAW,gBAAGL,MAAM,CAACM,GAAV;EAAA;AAAA,sEAAjB;AAOA;AACA;;AACA,MAAMC,qBAAqB,GAAG;EAAA,IAAC;IAC7BC,SAD6B;IAE7BC,cAF6B;IAG7BC;EAH6B,CAAD;EAAA,oBAK5B,MAAC,cAAD;IAAgB,SAAS,EAAEF,SAA3B;IAAA,wBACE;MAAA,UAAKE,KAAK,CAACC,QAAN;IAAL,EADF,eAEE,KAAC,WAAD;MAAa,SAAS,EAAC,OAAvB;MAAA,UAAgCF;IAAhC,EAFF;EAAA,EAL4B;AAAA,CAA9B;;AAWAF,qBAAqB,CAACK,WAAtB,GAAoC,0BAApC;AAEA,eAAeL,qBAAf"}