@beinformed/ui 1.62.7 → 1.62.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 (680) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/esm/constants/Settings.js +4 -0
  3. package/esm/constants/Settings.js.flow +5 -1
  4. package/esm/constants/Settings.js.map +1 -1
  5. package/esm/react-client/client.js +19 -0
  6. package/esm/react-client/client.js.flow +23 -1
  7. package/esm/react-client/client.js.map +1 -1
  8. package/esm/react-server/__tests__/requestInformation.spec.js.flow +265 -0
  9. package/esm/react-server/requestInformation.js +6 -3
  10. package/esm/react-server/requestInformation.js.flow +8 -3
  11. package/esm/react-server/requestInformation.js.map +1 -1
  12. package/esm/react-server/serverUtil.js +2 -2
  13. package/esm/react-server/serverUtil.js.flow +2 -2
  14. package/esm/react-server/serverUtil.js.map +1 -1
  15. package/esm/redux/_i18n/I18nActions.js.flow +0 -1
  16. package/esm/redux/_i18n/I18nActions.js.map +1 -1
  17. package/esm/redux/_i18n/I18nReducer.js +11 -3
  18. package/esm/redux/_i18n/I18nReducer.js.flow +11 -3
  19. package/esm/redux/_i18n/I18nReducer.js.map +1 -1
  20. package/esm/redux/reducers/createReducer.js +2 -2
  21. package/esm/redux/reducers/createReducer.js.flow +1 -1
  22. package/esm/redux/reducers/createReducer.js.map +1 -1
  23. package/esm/redux/store/configureStore.js +0 -5
  24. package/esm/redux/store/configureStore.js.flow +0 -7
  25. package/esm/redux/store/configureStore.js.map +1 -1
  26. package/esm/utils/datetime/DateTimeUtil.js +3 -2
  27. package/esm/utils/datetime/DateTimeUtil.js.flow +3 -1
  28. package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
  29. package/lib/constants/Settings.js +7 -2
  30. package/lib/constants/Settings.js.map +1 -1
  31. package/lib/react-client/client.js +20 -1
  32. package/lib/react-client/client.js.map +1 -1
  33. package/lib/react-server/requestInformation.js +6 -3
  34. package/lib/react-server/requestInformation.js.map +1 -1
  35. package/lib/react-server/serverUtil.js +1 -1
  36. package/lib/react-server/serverUtil.js.map +1 -1
  37. package/lib/redux/_i18n/I18nActions.js.map +1 -1
  38. package/lib/redux/_i18n/I18nReducer.js +10 -2
  39. package/lib/redux/_i18n/I18nReducer.js.map +1 -1
  40. package/lib/redux/reducers/createReducer.js +2 -2
  41. package/lib/redux/reducers/createReducer.js.map +1 -1
  42. package/lib/redux/store/configureStore.js +0 -5
  43. package/lib/redux/store/configureStore.js.map +1 -1
  44. package/lib/utils/datetime/DateTimeUtil.js +2 -1
  45. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  46. package/package.json +10 -10
  47. package/src/constants/Settings.js +5 -1
  48. package/src/react-client/client.js +23 -1
  49. package/src/react-server/__tests__/requestInformation.spec.js +265 -0
  50. package/src/react-server/requestInformation.js +8 -3
  51. package/src/react-server/serverUtil.js +2 -2
  52. package/src/redux/_i18n/I18nActions.js +0 -1
  53. package/src/redux/_i18n/I18nReducer.js +11 -3
  54. package/src/redux/reducers/createReducer.js +1 -1
  55. package/src/redux/store/configureStore.js +0 -7
  56. package/src/utils/datetime/DateTimeUtil.js +3 -1
  57. package/esm/builder/index.d.ts +0 -1
  58. package/esm/builder/mergeLayoutHintConfigurations.d.ts +0 -1
  59. package/esm/constants/Constants.d.ts +0 -158
  60. package/esm/constants/LayoutHintConfig.d.ts +0 -267
  61. package/esm/constants/LayoutHints.d.ts +0 -83
  62. package/esm/constants/Settings.d.ts +0 -32
  63. package/esm/constants/index.d.ts +0 -3
  64. package/esm/exceptions/ConfigurationException.d.ts +0 -7
  65. package/esm/exceptions/FetchException.d.ts +0 -31
  66. package/esm/exceptions/IllegalArgumentException.d.ts +0 -7
  67. package/esm/exceptions/IllegalReturnException.d.ts +0 -6
  68. package/esm/exceptions/IllegalStateException.d.ts +0 -7
  69. package/esm/exceptions/JsonParseException.d.ts +0 -7
  70. package/esm/exceptions/MissingPropertyException.d.ts +0 -7
  71. package/esm/exceptions/NetworkException.d.ts +0 -9
  72. package/esm/exceptions/NotAllowedUriException.d.ts +0 -7
  73. package/esm/exceptions/NotFoundException.d.ts +0 -10
  74. package/esm/exceptions/ServerRequestException.d.ts +0 -7
  75. package/esm/exceptions/ThemePropertyException.d.ts +0 -7
  76. package/esm/exceptions/TimeoutException.d.ts +0 -7
  77. package/esm/exceptions/UnauthorizedException.d.ts +0 -11
  78. package/esm/exceptions/UnsupportedOperationException.d.ts +0 -7
  79. package/esm/exceptions/index.d.ts +0 -15
  80. package/esm/hooks/index.d.ts +0 -16
  81. package/esm/hooks/useAllFormsOnModel.d.ts +0 -7
  82. package/esm/hooks/useAuthentication.d.ts +0 -16
  83. package/esm/hooks/useContent.d.ts +0 -3
  84. package/esm/hooks/useDeepCompareEffect.d.ts +0 -6
  85. package/esm/hooks/useForm.d.ts +0 -21
  86. package/esm/hooks/useI18n.d.ts +0 -13
  87. package/esm/hooks/useModal.d.ts +0 -12
  88. package/esm/hooks/useModelCatalog.d.ts +0 -34
  89. package/esm/hooks/useModels.d.ts +0 -10
  90. package/esm/hooks/useModularUI.d.ts +0 -3
  91. package/esm/hooks/useModularUIBasic.d.ts +0 -9
  92. package/esm/hooks/useModularUIModel.d.ts +0 -27
  93. package/esm/hooks/useModularUIRequest.d.ts +0 -4
  94. package/esm/hooks/useNotification.d.ts +0 -8
  95. package/esm/hooks/usePreference.d.ts +0 -2
  96. package/esm/hooks/useProgressIndicator.d.ts +0 -9
  97. package/esm/hooks/useRouter.d.ts +0 -23
  98. package/esm/i18n/Locale.d.ts +0 -53
  99. package/esm/i18n/Locales.d.ts +0 -59
  100. package/esm/i18n/Message.d.ts +0 -6
  101. package/esm/i18n/index.d.ts +0 -5
  102. package/esm/i18n/languages.d.ts +0 -215
  103. package/esm/i18n/translations/beinformed_error_messages_en.nl.d.ts +0 -97
  104. package/esm/i18n/translations/beinformed_error_messages_nl.nl.d.ts +0 -97
  105. package/esm/i18n/types.d.ts +0 -11
  106. package/esm/i18n/withMessage.d.ts +0 -3
  107. package/esm/index.d.ts +0 -6
  108. package/esm/models/actions/ActionCollection.d.ts +0 -30
  109. package/esm/models/actions/ActionModel.d.ts +0 -82
  110. package/esm/models/application/ApplicationModel.d.ts +0 -48
  111. package/esm/models/attributes/AttributeCollection.d.ts +0 -102
  112. package/esm/models/attributes/AttributeContent.d.ts +0 -64
  113. package/esm/models/attributes/AttributeDataHelper.d.ts +0 -67
  114. package/esm/models/attributes/AttributeModel.d.ts +0 -398
  115. package/esm/models/attributes/AttributeSetModel.d.ts +0 -36
  116. package/esm/models/attributes/BooleanAttributeModel.d.ts +0 -69
  117. package/esm/models/attributes/CaptchaAttributeModel.d.ts +0 -19
  118. package/esm/models/attributes/ChoiceAttributeModel.d.ts +0 -85
  119. package/esm/models/attributes/ChoiceAttributeOptionCollection.d.ts +0 -87
  120. package/esm/models/attributes/ChoiceAttributeOptionModel.d.ts +0 -151
  121. package/esm/models/attributes/CompositeAttributeChildCollection.d.ts +0 -57
  122. package/esm/models/attributes/CompositeAttributeModel.d.ts +0 -42
  123. package/esm/models/attributes/DatetimeAttributeModel.d.ts +0 -85
  124. package/esm/models/attributes/HelptextAttributeModel.d.ts +0 -16
  125. package/esm/models/attributes/LabelAttributeModel.d.ts +0 -12
  126. package/esm/models/attributes/MemoAttributeModel.d.ts +0 -14
  127. package/esm/models/attributes/MoneyAttributeModel.d.ts +0 -14
  128. package/esm/models/attributes/NumberAttributeModel.d.ts +0 -49
  129. package/esm/models/attributes/PasswordAttributeModel.d.ts +0 -62
  130. package/esm/models/attributes/StringAttributeModel.d.ts +0 -65
  131. package/esm/models/attributes/UploadAttributeModel.d.ts +0 -60
  132. package/esm/models/attributes/XMLAttributeModel.d.ts +0 -10
  133. package/esm/models/attributes/_createAttribute.d.ts +0 -7
  134. package/esm/models/attributes/input-constraints/BSNConstraint.d.ts +0 -26
  135. package/esm/models/attributes/input-constraints/ConstraintCollection.d.ts +0 -24
  136. package/esm/models/attributes/input-constraints/ConstraintModel.d.ts +0 -34
  137. package/esm/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +0 -65
  138. package/esm/models/attributes/input-constraints/DateTimeDateFormatConstraint.d.ts +0 -36
  139. package/esm/models/attributes/input-constraints/DateTimeTimeFormatConstraint.d.ts +0 -36
  140. package/esm/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +0 -50
  141. package/esm/models/attributes/input-constraints/FileExtensionConstraint.d.ts +0 -33
  142. package/esm/models/attributes/input-constraints/FileSizeConstraint.d.ts +0 -42
  143. package/esm/models/attributes/input-constraints/IBANConstraint.d.ts +0 -23
  144. package/esm/models/attributes/input-constraints/MandatoryConstraint.d.ts +0 -23
  145. package/esm/models/attributes/input-constraints/MandatoryRangeConstraint.d.ts +0 -36
  146. package/esm/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +0 -61
  147. package/esm/models/attributes/input-constraints/NumberFormatConstraint.d.ts +0 -52
  148. package/esm/models/attributes/input-constraints/NumberGroupingConstraint.d.ts +0 -46
  149. package/esm/models/attributes/input-constraints/PasswordConfirmConstraint.d.ts +0 -36
  150. package/esm/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.d.ts +0 -23
  151. package/esm/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.d.ts +0 -32
  152. package/esm/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.d.ts +0 -32
  153. package/esm/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts +0 -35
  154. package/esm/models/attributes/input-constraints/RangeConstraint.d.ts +0 -51
  155. package/esm/models/attributes/input-constraints/RegexConstraint.d.ts +0 -37
  156. package/esm/models/attributes/input-constraints/StringLengthConstraint.d.ts +0 -46
  157. package/esm/models/attributes/input-constraints/XMLConstraint.d.ts +0 -26
  158. package/esm/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +0 -45
  159. package/esm/models/attributes/layouthint-rules/DependentAttribute.d.ts +0 -57
  160. package/esm/models/attributes/layouthint-rules/LayoutHintRuleCollection.d.ts +0 -27
  161. package/esm/models/attributes/layouthint-rules/RemainingTotalUploadSize.d.ts +0 -17
  162. package/esm/models/base/BaseCollection.d.ts +0 -89
  163. package/esm/models/base/BaseModel.d.ts +0 -78
  164. package/esm/models/base/ResourceCollection.d.ts +0 -20
  165. package/esm/models/base/ResourceModel.d.ts +0 -102
  166. package/esm/models/caseview/CaseViewModel.d.ts +0 -46
  167. package/esm/models/concepts/BusinessScenarioModel.d.ts +0 -20
  168. package/esm/models/concepts/ConceptDetailModel.d.ts +0 -86
  169. package/esm/models/concepts/ConceptIndexModel.d.ts +0 -44
  170. package/esm/models/concepts/ConceptLinkModel.d.ts +0 -82
  171. package/esm/models/concepts/ConceptRelationCollection.d.ts +0 -36
  172. package/esm/models/concepts/ConceptRelationModel.d.ts +0 -61
  173. package/esm/models/concepts/ConceptTypeDetailModel.d.ts +0 -54
  174. package/esm/models/concepts/SourceReferenceCollection.d.ts +0 -14
  175. package/esm/models/concepts/SourceReferenceModel.d.ts +0 -48
  176. package/esm/models/content/ContentIndexModel.d.ts +0 -41
  177. package/esm/models/content/ContentLinkModel.d.ts +0 -102
  178. package/esm/models/content/ContentModel.d.ts +0 -80
  179. package/esm/models/content/ContentTOCModel.d.ts +0 -56
  180. package/esm/models/content/ContentTypeModel.d.ts +0 -26
  181. package/esm/models/content/SectionModel.d.ts +0 -79
  182. package/esm/models/content/SubSectionModel.d.ts +0 -69
  183. package/esm/models/contentconfiguration/ContentConfiguration.d.ts +0 -28
  184. package/esm/models/contentconfiguration/ContentConfigurationElements.d.ts +0 -47
  185. package/esm/models/contentconfiguration/ContentConfigurationEndResults.d.ts +0 -16
  186. package/esm/models/contentconfiguration/ContentConfigurationQuestions.d.ts +0 -22
  187. package/esm/models/contentconfiguration/ContentConfigurationResults.d.ts +0 -39
  188. package/esm/models/detail/DetailModel.d.ts +0 -80
  189. package/esm/models/error/ErrorCollection.d.ts +0 -51
  190. package/esm/models/error/ErrorModel.d.ts +0 -41
  191. package/esm/models/error/ErrorResponse.d.ts +0 -156
  192. package/esm/models/filters/AssignmentFilterModel.d.ts +0 -35
  193. package/esm/models/filters/BaseFilterModel.d.ts +0 -101
  194. package/esm/models/filters/ConceptIndexFilterModel.d.ts +0 -6
  195. package/esm/models/filters/FilterCollection.d.ts +0 -49
  196. package/esm/models/filters/FilterModel.d.ts +0 -5
  197. package/esm/models/filters/RangeFilterModel.d.ts +0 -6
  198. package/esm/models/filters/StringFilterModel.d.ts +0 -30
  199. package/esm/models/form/FormModel.d.ts +0 -350
  200. package/esm/models/form/FormObjectModel.d.ts +0 -210
  201. package/esm/models/grouping/GroupingModel.d.ts +0 -86
  202. package/esm/models/href/Href.d.ts +0 -218
  203. package/esm/models/href/ListHref.d.ts +0 -64
  204. package/esm/models/index.d.ts +0 -96
  205. package/esm/models/layouthint/LayoutHintCollection.d.ts +0 -43
  206. package/esm/models/links/LinkCollection.d.ts +0 -71
  207. package/esm/models/links/LinkModel.d.ts +0 -93
  208. package/esm/models/links/normalizeLinkJSON.d.ts +0 -9
  209. package/esm/models/list/ListDetailModel.d.ts +0 -69
  210. package/esm/models/list/ListHeaderModel.d.ts +0 -53
  211. package/esm/models/list/ListItemCollection.d.ts +0 -21
  212. package/esm/models/list/ListItemModel.d.ts +0 -35
  213. package/esm/models/list/ListModel.d.ts +0 -143
  214. package/esm/models/lookup/LookupOptionCollection.d.ts +0 -15
  215. package/esm/models/lookup/LookupOptionsModel.d.ts +0 -23
  216. package/esm/models/modelcatalog/ModelCatalogModel.d.ts +0 -23
  217. package/esm/models/modelcatalog/ModelCategoryCollection.d.ts +0 -11
  218. package/esm/models/modelcatalog/ModelCategoryModel.d.ts +0 -39
  219. package/esm/models/paging/PagesizeModel.d.ts +0 -25
  220. package/esm/models/paging/PagingModel.d.ts +0 -49
  221. package/esm/models/panels/GroupingPanelModel.d.ts +0 -49
  222. package/esm/models/parameter/Parameter.d.ts +0 -40
  223. package/esm/models/process/ProcessStatusSettingsModel.d.ts +0 -38
  224. package/esm/models/resolveModel.d.ts +0 -7
  225. package/esm/models/search/CaseSearchModel.d.ts +0 -14
  226. package/esm/models/sorting/SortOptionModel.d.ts +0 -48
  227. package/esm/models/sorting/SortingModel.d.ts +0 -42
  228. package/esm/models/tab/TabModel.d.ts +0 -53
  229. package/esm/models/taskgroup/TaskGroupCollection.d.ts +0 -12
  230. package/esm/models/taskgroup/TaskGroupModel.d.ts +0 -25
  231. package/esm/models/types.d.ts +0 -171
  232. package/esm/models/user/UserModel.d.ts +0 -18
  233. package/esm/models/user/UserProfileModel.d.ts +0 -17
  234. package/esm/models/user/UserServicesModel.d.ts +0 -39
  235. package/esm/modularui/Authenticate.d.ts +0 -46
  236. package/esm/modularui/CaptchaRequest.d.ts +0 -54
  237. package/esm/modularui/ModularUIError.d.ts +0 -10
  238. package/esm/modularui/ModularUIRequest.d.ts +0 -207
  239. package/esm/modularui/ModularUIResponse.d.ts +0 -78
  240. package/esm/modularui/UploadRequest.d.ts +0 -41
  241. package/esm/modularui/index.d.ts +0 -5
  242. package/esm/modularui/types.d.ts +0 -2
  243. package/esm/react/ErrorBoundary.d.ts +0 -31
  244. package/esm/react/ErrorBoundaryFallback.d.ts +0 -8
  245. package/esm/react/index.d.ts +0 -2
  246. package/esm/react/utils.d.ts +0 -5
  247. package/esm/react-client/Init.d.ts +0 -6
  248. package/esm/react-client/client.d.ts +0 -25
  249. package/esm/react-client/contextPath.d.ts +0 -1
  250. package/esm/react-client/index.d.ts +0 -3
  251. package/esm/react-client/rehydrate.d.ts +0 -5
  252. package/esm/react-server/contextPath.d.ts +0 -1
  253. package/esm/react-server/createSSRComplete.d.ts +0 -5
  254. package/esm/react-server/htmlpage.d.ts +0 -11
  255. package/esm/react-server/index.d.ts +0 -8
  256. package/esm/react-server/renderSSRComplete.d.ts +0 -13
  257. package/esm/react-server/renderSSRMinimal.d.ts +0 -11
  258. package/esm/react-server/requestInformation.d.ts +0 -6
  259. package/esm/react-server/serverNoSSR.d.ts +0 -15
  260. package/esm/react-server/serverSSR.d.ts +0 -15
  261. package/esm/react-server/serverUtil.d.ts +0 -46
  262. package/esm/react-theme/ThemeProvider.d.ts +0 -8
  263. package/esm/react-theme/createTheme.d.ts +0 -53
  264. package/esm/react-theme/index.d.ts +0 -10
  265. package/esm/react-theme/types.d.ts +0 -13
  266. package/esm/react-theme/useTheme.d.ts +0 -4
  267. package/esm/react-theme/utils/background.d.ts +0 -4
  268. package/esm/react-theme/utils/colors.d.ts +0 -9
  269. package/esm/react-theme/utils/contrast.d.ts +0 -18
  270. package/esm/react-theme/utils/corners.d.ts +0 -3
  271. package/esm/react-theme/utils/spacers.d.ts +0 -9
  272. package/esm/react-theme/utils/themeProps.d.ts +0 -7
  273. package/esm/redux/_i18n/I18nActions.d.ts +0 -7
  274. package/esm/redux/_i18n/I18nReducer.d.ts +0 -7
  275. package/esm/redux/_i18n/index.d.ts +0 -3
  276. package/esm/redux/_i18n/types.d.ts +0 -13
  277. package/esm/redux/_modularui/ModularUIActions.d.ts +0 -26
  278. package/esm/redux/_modularui/ModularUIConnector.d.ts +0 -7
  279. package/esm/redux/_modularui/ModularUIMiddleware.d.ts +0 -7
  280. package/esm/redux/_modularui/ModularUIReducer.d.ts +0 -7
  281. package/esm/redux/_modularui/ModularUISelectors.d.ts +0 -3
  282. package/esm/redux/_modularui/ModularUIUtils.d.ts +0 -5
  283. package/esm/redux/_modularui/index.d.ts +0 -8
  284. package/esm/redux/_modularui/types.d.ts +0 -84
  285. package/esm/redux/_modularui/withModularUI.d.ts +0 -3
  286. package/esm/redux/_router/RouterActions.d.ts +0 -10
  287. package/esm/redux/_router/RouterConnectors.d.ts +0 -6
  288. package/esm/redux/_router/RouterMiddleware.d.ts +0 -5
  289. package/esm/redux/_router/RouterReducer.d.ts +0 -7
  290. package/esm/redux/_router/index.d.ts +0 -5
  291. package/esm/redux/_router/types.d.ts +0 -35
  292. package/esm/redux/actions/Application.d.ts +0 -4
  293. package/esm/redux/actions/Authorization.d.ts +0 -3
  294. package/esm/redux/actions/Error.d.ts +0 -7
  295. package/esm/redux/actions/Form.d.ts +0 -5
  296. package/esm/redux/actions/FormAttributeSet.d.ts +0 -6
  297. package/esm/redux/actions/FormAttributeSetRepeatable.d.ts +0 -6
  298. package/esm/redux/actions/FormAutosave.d.ts +0 -3
  299. package/esm/redux/actions/FormAutosubmit.d.ts +0 -4
  300. package/esm/redux/actions/FormAutoupdate.d.ts +0 -4
  301. package/esm/redux/actions/FormValidations.d.ts +0 -3
  302. package/esm/redux/actions/Modals.d.ts +0 -4
  303. package/esm/redux/actions/ModelCatalog.d.ts +0 -2
  304. package/esm/redux/actions/Notification.d.ts +0 -10
  305. package/esm/redux/actions/Preferences.d.ts +0 -11
  306. package/esm/redux/actions/ProgressIndicator.d.ts +0 -8
  307. package/esm/redux/actions/SignIn.d.ts +0 -10
  308. package/esm/redux/actions/SignOut.d.ts +0 -4
  309. package/esm/redux/actions/index.d.ts +0 -16
  310. package/esm/redux/connectors/Application.d.ts +0 -4
  311. package/esm/redux/connectors/Breadcrumb.d.ts +0 -3
  312. package/esm/redux/connectors/CaseView.d.ts +0 -4
  313. package/esm/redux/connectors/ConceptDetail.d.ts +0 -4
  314. package/esm/redux/connectors/ContentBrowser.d.ts +0 -4
  315. package/esm/redux/connectors/ContentDetail.d.ts +0 -4
  316. package/esm/redux/connectors/ContentDetailSection.d.ts +0 -4
  317. package/esm/redux/connectors/Form.d.ts +0 -16
  318. package/esm/redux/connectors/FormAttributeSet.d.ts +0 -5
  319. package/esm/redux/connectors/ListDetail.d.ts +0 -4
  320. package/esm/redux/connectors/Modal.d.ts +0 -4
  321. package/esm/redux/connectors/ModelCatalog.d.ts +0 -4
  322. package/esm/redux/connectors/Notification.d.ts +0 -4
  323. package/esm/redux/connectors/PanelRenderer.d.ts +0 -4
  324. package/esm/redux/connectors/Preferences.d.ts +0 -2
  325. package/esm/redux/connectors/Progress.d.ts +0 -3
  326. package/esm/redux/connectors/ProgressIndicator.d.ts +0 -3
  327. package/esm/redux/connectors/QuickSearch.d.ts +0 -11
  328. package/esm/redux/connectors/SignIn.d.ts +0 -4
  329. package/esm/redux/connectors/SignOut.d.ts +0 -4
  330. package/esm/redux/connectors/Tab.d.ts +0 -4
  331. package/esm/redux/connectors/index.d.ts +0 -21
  332. package/esm/redux/index.d.ts +0 -9
  333. package/esm/redux/reducers/AuthReducer.d.ts +0 -8
  334. package/esm/redux/reducers/ErrorReducer.d.ts +0 -8
  335. package/esm/redux/reducers/ModalsReducer.d.ts +0 -8
  336. package/esm/redux/reducers/ModelCatalogReducer.d.ts +0 -8
  337. package/esm/redux/reducers/NotificationReducer.d.ts +0 -8
  338. package/esm/redux/reducers/PreferencesReducer.d.ts +0 -8
  339. package/esm/redux/reducers/ProgressIndicatorReducer.d.ts +0 -8
  340. package/esm/redux/reducers/createReducer.d.ts +0 -14
  341. package/esm/redux/reducers/index.d.ts +0 -8
  342. package/esm/redux/selectors/i18n.d.ts +0 -4
  343. package/esm/redux/selectors/index.d.ts +0 -2
  344. package/esm/redux/selectors/modelcatalog.d.ts +0 -2
  345. package/esm/redux/store/beforeRenderHooks.d.ts +0 -7
  346. package/esm/redux/store/configureStore.d.ts +0 -9
  347. package/esm/redux/types.d.ts +0 -113
  348. package/esm/utils/browser/Cache.d.ts +0 -45
  349. package/esm/utils/browser/Cookies.d.ts +0 -9
  350. package/esm/utils/datetime/DateTimeUtil.d.ts +0 -214
  351. package/esm/utils/fetch/__mocks__/universalFetch.d.ts +0 -3
  352. package/esm/utils/fetch/serverFetch.d.ts +0 -5
  353. package/esm/utils/fetch/types.d.ts +0 -44
  354. package/esm/utils/fetch/universalFetch.d.ts +0 -7
  355. package/esm/utils/fetch/xhr.d.ts +0 -5
  356. package/esm/utils/helpers/checkResource.d.ts +0 -3
  357. package/esm/utils/helpers/createHash.d.ts +0 -9
  358. package/esm/utils/helpers/createHref.d.ts +0 -8
  359. package/esm/utils/helpers/createUUID.d.ts +0 -4
  360. package/esm/utils/helpers/index.d.ts +0 -8
  361. package/esm/utils/helpers/objects.d.ts +0 -11
  362. package/esm/utils/helpers/repositoryResource.d.ts +0 -1
  363. package/esm/utils/helpers/sanitizeHtml.d.ts +0 -9
  364. package/esm/utils/helpers/text.d.ts +0 -7
  365. package/esm/utils/index.d.ts +0 -11
  366. package/esm/utils/number/DecimalFormat.d.ts +0 -90
  367. package/esm/utils/number/formatValue.d.ts +0 -4
  368. package/esm/utils/number/parseNumbers.d.ts +0 -9
  369. package/lib/builder/index.d.ts +0 -1
  370. package/lib/builder/mergeLayoutHintConfigurations.d.ts +0 -1
  371. package/lib/constants/Constants.d.ts +0 -158
  372. package/lib/constants/LayoutHintConfig.d.ts +0 -267
  373. package/lib/constants/LayoutHints.d.ts +0 -83
  374. package/lib/constants/Settings.d.ts +0 -32
  375. package/lib/constants/index.d.ts +0 -3
  376. package/lib/exceptions/ConfigurationException.d.ts +0 -7
  377. package/lib/exceptions/FetchException.d.ts +0 -31
  378. package/lib/exceptions/IllegalArgumentException.d.ts +0 -7
  379. package/lib/exceptions/IllegalReturnException.d.ts +0 -6
  380. package/lib/exceptions/IllegalStateException.d.ts +0 -7
  381. package/lib/exceptions/JsonParseException.d.ts +0 -7
  382. package/lib/exceptions/MissingPropertyException.d.ts +0 -7
  383. package/lib/exceptions/NetworkException.d.ts +0 -9
  384. package/lib/exceptions/NotAllowedUriException.d.ts +0 -7
  385. package/lib/exceptions/NotFoundException.d.ts +0 -10
  386. package/lib/exceptions/ServerRequestException.d.ts +0 -7
  387. package/lib/exceptions/ThemePropertyException.d.ts +0 -7
  388. package/lib/exceptions/TimeoutException.d.ts +0 -7
  389. package/lib/exceptions/UnauthorizedException.d.ts +0 -11
  390. package/lib/exceptions/UnsupportedOperationException.d.ts +0 -7
  391. package/lib/exceptions/index.d.ts +0 -15
  392. package/lib/hooks/index.d.ts +0 -16
  393. package/lib/hooks/useAllFormsOnModel.d.ts +0 -7
  394. package/lib/hooks/useAuthentication.d.ts +0 -16
  395. package/lib/hooks/useContent.d.ts +0 -3
  396. package/lib/hooks/useDeepCompareEffect.d.ts +0 -6
  397. package/lib/hooks/useForm.d.ts +0 -21
  398. package/lib/hooks/useI18n.d.ts +0 -13
  399. package/lib/hooks/useModal.d.ts +0 -12
  400. package/lib/hooks/useModelCatalog.d.ts +0 -34
  401. package/lib/hooks/useModels.d.ts +0 -10
  402. package/lib/hooks/useModularUI.d.ts +0 -3
  403. package/lib/hooks/useModularUIBasic.d.ts +0 -9
  404. package/lib/hooks/useModularUIModel.d.ts +0 -27
  405. package/lib/hooks/useModularUIRequest.d.ts +0 -4
  406. package/lib/hooks/useNotification.d.ts +0 -8
  407. package/lib/hooks/usePreference.d.ts +0 -2
  408. package/lib/hooks/useProgressIndicator.d.ts +0 -9
  409. package/lib/hooks/useRouter.d.ts +0 -23
  410. package/lib/i18n/Locale.d.ts +0 -53
  411. package/lib/i18n/Locales.d.ts +0 -59
  412. package/lib/i18n/Message.d.ts +0 -6
  413. package/lib/i18n/index.d.ts +0 -5
  414. package/lib/i18n/languages.d.ts +0 -215
  415. package/lib/i18n/translations/beinformed_error_messages_en.nl.d.ts +0 -97
  416. package/lib/i18n/translations/beinformed_error_messages_nl.nl.d.ts +0 -97
  417. package/lib/i18n/types.d.ts +0 -11
  418. package/lib/i18n/withMessage.d.ts +0 -3
  419. package/lib/index.d.ts +0 -6
  420. package/lib/models/actions/ActionCollection.d.ts +0 -30
  421. package/lib/models/actions/ActionModel.d.ts +0 -82
  422. package/lib/models/application/ApplicationModel.d.ts +0 -48
  423. package/lib/models/attributes/AttributeCollection.d.ts +0 -102
  424. package/lib/models/attributes/AttributeContent.d.ts +0 -64
  425. package/lib/models/attributes/AttributeDataHelper.d.ts +0 -67
  426. package/lib/models/attributes/AttributeModel.d.ts +0 -398
  427. package/lib/models/attributes/AttributeSetModel.d.ts +0 -36
  428. package/lib/models/attributes/BooleanAttributeModel.d.ts +0 -69
  429. package/lib/models/attributes/CaptchaAttributeModel.d.ts +0 -19
  430. package/lib/models/attributes/ChoiceAttributeModel.d.ts +0 -85
  431. package/lib/models/attributes/ChoiceAttributeOptionCollection.d.ts +0 -87
  432. package/lib/models/attributes/ChoiceAttributeOptionModel.d.ts +0 -151
  433. package/lib/models/attributes/CompositeAttributeChildCollection.d.ts +0 -57
  434. package/lib/models/attributes/CompositeAttributeModel.d.ts +0 -42
  435. package/lib/models/attributes/DatetimeAttributeModel.d.ts +0 -85
  436. package/lib/models/attributes/HelptextAttributeModel.d.ts +0 -16
  437. package/lib/models/attributes/LabelAttributeModel.d.ts +0 -12
  438. package/lib/models/attributes/MemoAttributeModel.d.ts +0 -14
  439. package/lib/models/attributes/MoneyAttributeModel.d.ts +0 -14
  440. package/lib/models/attributes/NumberAttributeModel.d.ts +0 -49
  441. package/lib/models/attributes/PasswordAttributeModel.d.ts +0 -62
  442. package/lib/models/attributes/StringAttributeModel.d.ts +0 -65
  443. package/lib/models/attributes/UploadAttributeModel.d.ts +0 -60
  444. package/lib/models/attributes/XMLAttributeModel.d.ts +0 -10
  445. package/lib/models/attributes/_createAttribute.d.ts +0 -7
  446. package/lib/models/attributes/input-constraints/BSNConstraint.d.ts +0 -26
  447. package/lib/models/attributes/input-constraints/ConstraintCollection.d.ts +0 -24
  448. package/lib/models/attributes/input-constraints/ConstraintModel.d.ts +0 -34
  449. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +0 -65
  450. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.d.ts +0 -36
  451. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.d.ts +0 -36
  452. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +0 -50
  453. package/lib/models/attributes/input-constraints/FileExtensionConstraint.d.ts +0 -33
  454. package/lib/models/attributes/input-constraints/FileSizeConstraint.d.ts +0 -42
  455. package/lib/models/attributes/input-constraints/IBANConstraint.d.ts +0 -23
  456. package/lib/models/attributes/input-constraints/MandatoryConstraint.d.ts +0 -23
  457. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.d.ts +0 -36
  458. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.d.ts +0 -61
  459. package/lib/models/attributes/input-constraints/NumberFormatConstraint.d.ts +0 -52
  460. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.d.ts +0 -46
  461. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.d.ts +0 -36
  462. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.d.ts +0 -23
  463. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.d.ts +0 -32
  464. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.d.ts +0 -32
  465. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.d.ts +0 -35
  466. package/lib/models/attributes/input-constraints/RangeConstraint.d.ts +0 -51
  467. package/lib/models/attributes/input-constraints/RegexConstraint.d.ts +0 -37
  468. package/lib/models/attributes/input-constraints/StringLengthConstraint.d.ts +0 -46
  469. package/lib/models/attributes/input-constraints/XMLConstraint.d.ts +0 -26
  470. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +0 -45
  471. package/lib/models/attributes/layouthint-rules/DependentAttribute.d.ts +0 -57
  472. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.d.ts +0 -27
  473. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.d.ts +0 -17
  474. package/lib/models/base/BaseCollection.d.ts +0 -89
  475. package/lib/models/base/BaseModel.d.ts +0 -78
  476. package/lib/models/base/ResourceCollection.d.ts +0 -20
  477. package/lib/models/base/ResourceModel.d.ts +0 -102
  478. package/lib/models/caseview/CaseViewModel.d.ts +0 -46
  479. package/lib/models/concepts/BusinessScenarioModel.d.ts +0 -20
  480. package/lib/models/concepts/ConceptDetailModel.d.ts +0 -86
  481. package/lib/models/concepts/ConceptIndexModel.d.ts +0 -44
  482. package/lib/models/concepts/ConceptLinkModel.d.ts +0 -82
  483. package/lib/models/concepts/ConceptRelationCollection.d.ts +0 -36
  484. package/lib/models/concepts/ConceptRelationModel.d.ts +0 -61
  485. package/lib/models/concepts/ConceptTypeDetailModel.d.ts +0 -54
  486. package/lib/models/concepts/SourceReferenceCollection.d.ts +0 -14
  487. package/lib/models/concepts/SourceReferenceModel.d.ts +0 -48
  488. package/lib/models/content/ContentIndexModel.d.ts +0 -41
  489. package/lib/models/content/ContentLinkModel.d.ts +0 -102
  490. package/lib/models/content/ContentModel.d.ts +0 -80
  491. package/lib/models/content/ContentTOCModel.d.ts +0 -56
  492. package/lib/models/content/ContentTypeModel.d.ts +0 -26
  493. package/lib/models/content/SectionModel.d.ts +0 -79
  494. package/lib/models/content/SubSectionModel.d.ts +0 -69
  495. package/lib/models/contentconfiguration/ContentConfiguration.d.ts +0 -28
  496. package/lib/models/contentconfiguration/ContentConfigurationElements.d.ts +0 -47
  497. package/lib/models/contentconfiguration/ContentConfigurationEndResults.d.ts +0 -16
  498. package/lib/models/contentconfiguration/ContentConfigurationQuestions.d.ts +0 -22
  499. package/lib/models/contentconfiguration/ContentConfigurationResults.d.ts +0 -39
  500. package/lib/models/detail/DetailModel.d.ts +0 -80
  501. package/lib/models/error/ErrorCollection.d.ts +0 -51
  502. package/lib/models/error/ErrorModel.d.ts +0 -41
  503. package/lib/models/error/ErrorResponse.d.ts +0 -156
  504. package/lib/models/filters/AssignmentFilterModel.d.ts +0 -35
  505. package/lib/models/filters/BaseFilterModel.d.ts +0 -101
  506. package/lib/models/filters/ConceptIndexFilterModel.d.ts +0 -6
  507. package/lib/models/filters/FilterCollection.d.ts +0 -49
  508. package/lib/models/filters/FilterModel.d.ts +0 -5
  509. package/lib/models/filters/RangeFilterModel.d.ts +0 -6
  510. package/lib/models/filters/StringFilterModel.d.ts +0 -30
  511. package/lib/models/form/FormModel.d.ts +0 -350
  512. package/lib/models/form/FormObjectModel.d.ts +0 -210
  513. package/lib/models/grouping/GroupingModel.d.ts +0 -86
  514. package/lib/models/href/Href.d.ts +0 -218
  515. package/lib/models/href/ListHref.d.ts +0 -64
  516. package/lib/models/index.d.ts +0 -96
  517. package/lib/models/layouthint/LayoutHintCollection.d.ts +0 -43
  518. package/lib/models/links/LinkCollection.d.ts +0 -71
  519. package/lib/models/links/LinkModel.d.ts +0 -93
  520. package/lib/models/links/normalizeLinkJSON.d.ts +0 -9
  521. package/lib/models/list/ListDetailModel.d.ts +0 -69
  522. package/lib/models/list/ListHeaderModel.d.ts +0 -53
  523. package/lib/models/list/ListItemCollection.d.ts +0 -21
  524. package/lib/models/list/ListItemModel.d.ts +0 -35
  525. package/lib/models/list/ListModel.d.ts +0 -143
  526. package/lib/models/lookup/LookupOptionCollection.d.ts +0 -15
  527. package/lib/models/lookup/LookupOptionsModel.d.ts +0 -23
  528. package/lib/models/modelcatalog/ModelCatalogModel.d.ts +0 -23
  529. package/lib/models/modelcatalog/ModelCategoryCollection.d.ts +0 -11
  530. package/lib/models/modelcatalog/ModelCategoryModel.d.ts +0 -39
  531. package/lib/models/paging/PagesizeModel.d.ts +0 -25
  532. package/lib/models/paging/PagingModel.d.ts +0 -49
  533. package/lib/models/panels/GroupingPanelModel.d.ts +0 -49
  534. package/lib/models/parameter/Parameter.d.ts +0 -40
  535. package/lib/models/process/ProcessStatusSettingsModel.d.ts +0 -38
  536. package/lib/models/resolveModel.d.ts +0 -7
  537. package/lib/models/search/CaseSearchModel.d.ts +0 -14
  538. package/lib/models/sorting/SortOptionModel.d.ts +0 -48
  539. package/lib/models/sorting/SortingModel.d.ts +0 -42
  540. package/lib/models/tab/TabModel.d.ts +0 -53
  541. package/lib/models/taskgroup/TaskGroupCollection.d.ts +0 -12
  542. package/lib/models/taskgroup/TaskGroupModel.d.ts +0 -25
  543. package/lib/models/types.d.ts +0 -171
  544. package/lib/models/user/UserModel.d.ts +0 -18
  545. package/lib/models/user/UserProfileModel.d.ts +0 -17
  546. package/lib/models/user/UserServicesModel.d.ts +0 -39
  547. package/lib/modularui/Authenticate.d.ts +0 -46
  548. package/lib/modularui/CaptchaRequest.d.ts +0 -54
  549. package/lib/modularui/ModularUIError.d.ts +0 -10
  550. package/lib/modularui/ModularUIRequest.d.ts +0 -207
  551. package/lib/modularui/ModularUIResponse.d.ts +0 -78
  552. package/lib/modularui/UploadRequest.d.ts +0 -41
  553. package/lib/modularui/index.d.ts +0 -5
  554. package/lib/modularui/types.d.ts +0 -2
  555. package/lib/react/ErrorBoundary.d.ts +0 -31
  556. package/lib/react/ErrorBoundaryFallback.d.ts +0 -8
  557. package/lib/react/index.d.ts +0 -2
  558. package/lib/react/utils.d.ts +0 -5
  559. package/lib/react-client/Init.d.ts +0 -6
  560. package/lib/react-client/client.d.ts +0 -25
  561. package/lib/react-client/contextPath.d.ts +0 -1
  562. package/lib/react-client/index.d.ts +0 -3
  563. package/lib/react-client/rehydrate.d.ts +0 -5
  564. package/lib/react-server/contextPath.d.ts +0 -1
  565. package/lib/react-server/createSSRComplete.d.ts +0 -5
  566. package/lib/react-server/htmlpage.d.ts +0 -11
  567. package/lib/react-server/index.d.ts +0 -8
  568. package/lib/react-server/renderSSRComplete.d.ts +0 -13
  569. package/lib/react-server/renderSSRMinimal.d.ts +0 -11
  570. package/lib/react-server/requestInformation.d.ts +0 -6
  571. package/lib/react-server/serverNoSSR.d.ts +0 -15
  572. package/lib/react-server/serverSSR.d.ts +0 -15
  573. package/lib/react-server/serverUtil.d.ts +0 -46
  574. package/lib/react-theme/ThemeProvider.d.ts +0 -8
  575. package/lib/react-theme/createTheme.d.ts +0 -53
  576. package/lib/react-theme/index.d.ts +0 -10
  577. package/lib/react-theme/types.d.ts +0 -13
  578. package/lib/react-theme/useTheme.d.ts +0 -4
  579. package/lib/react-theme/utils/background.d.ts +0 -4
  580. package/lib/react-theme/utils/colors.d.ts +0 -9
  581. package/lib/react-theme/utils/contrast.d.ts +0 -18
  582. package/lib/react-theme/utils/corners.d.ts +0 -3
  583. package/lib/react-theme/utils/spacers.d.ts +0 -9
  584. package/lib/react-theme/utils/themeProps.d.ts +0 -7
  585. package/lib/redux/_i18n/I18nActions.d.ts +0 -7
  586. package/lib/redux/_i18n/I18nReducer.d.ts +0 -7
  587. package/lib/redux/_i18n/index.d.ts +0 -3
  588. package/lib/redux/_i18n/types.d.ts +0 -13
  589. package/lib/redux/_modularui/ModularUIActions.d.ts +0 -26
  590. package/lib/redux/_modularui/ModularUIConnector.d.ts +0 -7
  591. package/lib/redux/_modularui/ModularUIMiddleware.d.ts +0 -7
  592. package/lib/redux/_modularui/ModularUIReducer.d.ts +0 -7
  593. package/lib/redux/_modularui/ModularUISelectors.d.ts +0 -3
  594. package/lib/redux/_modularui/ModularUIUtils.d.ts +0 -5
  595. package/lib/redux/_modularui/index.d.ts +0 -8
  596. package/lib/redux/_modularui/types.d.ts +0 -84
  597. package/lib/redux/_modularui/withModularUI.d.ts +0 -3
  598. package/lib/redux/_router/RouterActions.d.ts +0 -10
  599. package/lib/redux/_router/RouterConnectors.d.ts +0 -6
  600. package/lib/redux/_router/RouterMiddleware.d.ts +0 -5
  601. package/lib/redux/_router/RouterReducer.d.ts +0 -7
  602. package/lib/redux/_router/index.d.ts +0 -5
  603. package/lib/redux/_router/types.d.ts +0 -35
  604. package/lib/redux/actions/Application.d.ts +0 -4
  605. package/lib/redux/actions/Authorization.d.ts +0 -3
  606. package/lib/redux/actions/Error.d.ts +0 -7
  607. package/lib/redux/actions/Form.d.ts +0 -5
  608. package/lib/redux/actions/FormAttributeSet.d.ts +0 -6
  609. package/lib/redux/actions/FormAttributeSetRepeatable.d.ts +0 -6
  610. package/lib/redux/actions/FormAutosave.d.ts +0 -3
  611. package/lib/redux/actions/FormAutosubmit.d.ts +0 -4
  612. package/lib/redux/actions/FormAutoupdate.d.ts +0 -4
  613. package/lib/redux/actions/FormValidations.d.ts +0 -3
  614. package/lib/redux/actions/Modals.d.ts +0 -4
  615. package/lib/redux/actions/ModelCatalog.d.ts +0 -2
  616. package/lib/redux/actions/Notification.d.ts +0 -10
  617. package/lib/redux/actions/Preferences.d.ts +0 -11
  618. package/lib/redux/actions/ProgressIndicator.d.ts +0 -8
  619. package/lib/redux/actions/SignIn.d.ts +0 -10
  620. package/lib/redux/actions/SignOut.d.ts +0 -4
  621. package/lib/redux/actions/index.d.ts +0 -16
  622. package/lib/redux/connectors/Application.d.ts +0 -4
  623. package/lib/redux/connectors/Breadcrumb.d.ts +0 -3
  624. package/lib/redux/connectors/CaseView.d.ts +0 -4
  625. package/lib/redux/connectors/ConceptDetail.d.ts +0 -4
  626. package/lib/redux/connectors/ContentBrowser.d.ts +0 -4
  627. package/lib/redux/connectors/ContentDetail.d.ts +0 -4
  628. package/lib/redux/connectors/ContentDetailSection.d.ts +0 -4
  629. package/lib/redux/connectors/Form.d.ts +0 -16
  630. package/lib/redux/connectors/FormAttributeSet.d.ts +0 -5
  631. package/lib/redux/connectors/ListDetail.d.ts +0 -4
  632. package/lib/redux/connectors/Modal.d.ts +0 -4
  633. package/lib/redux/connectors/ModelCatalog.d.ts +0 -4
  634. package/lib/redux/connectors/Notification.d.ts +0 -4
  635. package/lib/redux/connectors/PanelRenderer.d.ts +0 -4
  636. package/lib/redux/connectors/Preferences.d.ts +0 -2
  637. package/lib/redux/connectors/Progress.d.ts +0 -3
  638. package/lib/redux/connectors/ProgressIndicator.d.ts +0 -3
  639. package/lib/redux/connectors/QuickSearch.d.ts +0 -11
  640. package/lib/redux/connectors/SignIn.d.ts +0 -4
  641. package/lib/redux/connectors/SignOut.d.ts +0 -4
  642. package/lib/redux/connectors/Tab.d.ts +0 -4
  643. package/lib/redux/connectors/index.d.ts +0 -21
  644. package/lib/redux/index.d.ts +0 -9
  645. package/lib/redux/reducers/AuthReducer.d.ts +0 -8
  646. package/lib/redux/reducers/ErrorReducer.d.ts +0 -8
  647. package/lib/redux/reducers/ModalsReducer.d.ts +0 -8
  648. package/lib/redux/reducers/ModelCatalogReducer.d.ts +0 -8
  649. package/lib/redux/reducers/NotificationReducer.d.ts +0 -8
  650. package/lib/redux/reducers/PreferencesReducer.d.ts +0 -8
  651. package/lib/redux/reducers/ProgressIndicatorReducer.d.ts +0 -8
  652. package/lib/redux/reducers/createReducer.d.ts +0 -14
  653. package/lib/redux/reducers/index.d.ts +0 -8
  654. package/lib/redux/selectors/i18n.d.ts +0 -4
  655. package/lib/redux/selectors/index.d.ts +0 -2
  656. package/lib/redux/selectors/modelcatalog.d.ts +0 -2
  657. package/lib/redux/store/beforeRenderHooks.d.ts +0 -7
  658. package/lib/redux/store/configureStore.d.ts +0 -9
  659. package/lib/redux/types.d.ts +0 -113
  660. package/lib/utils/browser/Cache.d.ts +0 -45
  661. package/lib/utils/browser/Cookies.d.ts +0 -9
  662. package/lib/utils/datetime/DateTimeUtil.d.ts +0 -214
  663. package/lib/utils/fetch/__mocks__/universalFetch.d.ts +0 -3
  664. package/lib/utils/fetch/serverFetch.d.ts +0 -5
  665. package/lib/utils/fetch/types.d.ts +0 -44
  666. package/lib/utils/fetch/universalFetch.d.ts +0 -7
  667. package/lib/utils/fetch/xhr.d.ts +0 -5
  668. package/lib/utils/helpers/checkResource.d.ts +0 -3
  669. package/lib/utils/helpers/createHash.d.ts +0 -9
  670. package/lib/utils/helpers/createHref.d.ts +0 -8
  671. package/lib/utils/helpers/createUUID.d.ts +0 -4
  672. package/lib/utils/helpers/index.d.ts +0 -8
  673. package/lib/utils/helpers/objects.d.ts +0 -11
  674. package/lib/utils/helpers/repositoryResource.d.ts +0 -1
  675. package/lib/utils/helpers/sanitizeHtml.d.ts +0 -9
  676. package/lib/utils/helpers/text.d.ts +0 -7
  677. package/lib/utils/index.d.ts +0 -11
  678. package/lib/utils/number/DecimalFormat.d.ts +0 -90
  679. package/lib/utils/number/formatValue.d.ts +0 -4
  680. package/lib/utils/number/parseNumbers.d.ts +0 -9
@@ -13,7 +13,7 @@ import Locales from "../i18n/Locales";
13
13
  import { getPreferredLocale } from "./requestInformation";
14
14
  import { setLocales } from "../redux/_i18n/I18nActions";
15
15
  import { setServerPreference, setThemePreference, setPreference, setAllContentInDataSetting, setLoginPreferences, setDateTimeSettings } from "../redux/actions/Preferences";
16
- import { getSetting } from "../constants/Settings";
16
+ import { getEnabledLocales } from "../constants/Settings";
17
17
  import { IllegalArgumentException } from "../exceptions";
18
18
  import { initModels } from "../redux";
19
19
  import { getLocale } from "../redux/selectors/i18n";
@@ -57,7 +57,7 @@ const setI18n = function (store) {
57
57
  });
58
58
  const enabledLocales = _filterInstanceProperty(mergedLocales).call(mergedLocales, locale => {
59
59
  var _context;
60
- return _includesInstanceProperty(_context = getSetting("ENABLED_LOCALES")).call(_context, locale.code);
60
+ return _includesInstanceProperty(_context = getEnabledLocales()).call(_context, locale.code);
61
61
  });
62
62
  const localesInstance = new Locales(enabledLocales);
63
63
  const preferredLocale = getPreferredLocale(request, localesInstance);
@@ -20,7 +20,7 @@ import {
20
20
  setDateTimeSettings,
21
21
  } from "../redux/actions/Preferences";
22
22
 
23
- import { getSetting } from "../constants/Settings";
23
+ import { getEnabledLocales } from "../constants/Settings";
24
24
 
25
25
  import { IllegalArgumentException } from "../exceptions";
26
26
 
@@ -89,7 +89,7 @@ const setI18n = (
89
89
  });
90
90
 
91
91
  const enabledLocales = mergedLocales.filter((locale: LocaleConfiguration) =>
92
- getSetting("ENABLED_LOCALES").includes(locale.code),
92
+ getEnabledLocales().includes(locale.code),
93
93
  );
94
94
 
95
95
  const localesInstance = new Locales(enabledLocales);
@@ -1 +1 @@
1
- {"version":3,"file":"serverUtil.js","names":["createMemoryHistory","has","deepmerge","configureStore","availableLocales","Locales","getPreferredLocale","setLocales","setServerPreference","setThemePreference","setPreference","setAllContentInDataSetting","setLoginPreferences","setDateTimeSettings","getSetting","IllegalArgumentException","initModels","getLocale","ModularUIRequest","createReduxStore","requestHref","customReducers","initialState","history","initialEntries","toString","store","setI18n","locales","arguments","length","undefined","request","Array","isArray","mergedLocales","_mapInstanceProperty","call","locale","code","customLocale","_findInstanceProperty","custLocale","forEach","some","push","enabledLocales","_filterInstanceProperty","_context","_includesInstanceProperty","localesInstance","preferredLocale","dispatch","setServerPreferencesFromArray","serverPreferences","serverPreference","name","defaultValue","type","setServerPreferences","preferencesProvider","isStudioContext","setConfigurationTheme","configTheme","configFileLocation","getLayoutConfigFileLocation","configFilePath","_startsWithInstanceProperty","dataFetcher","fetch","Error","setApplication","getState","application","fetchSync","connectKey","key","model","e","handleErrors","state","error","shouldThrowOnServer","dehydrate","modularui","status","lastModification","filteredState","_JSON$stringify","replace","createHead","sheet","UUID","helmetContext","style","getStyleTags","meta","helmet"],"sources":["../../src/react-server/serverUtil.js"],"sourcesContent":["// @flow\nimport { createMemoryHistory } from \"history\";\nimport { has } from \"../utils/helpers/objects\";\nimport deepmerge from \"deepmerge\";\n\nimport configureStore from \"../redux/store/configureStore\";\n\nimport { availableLocales } from \"../i18n/Locales\";\nimport Locales from \"../i18n/Locales\";\n\nimport { getPreferredLocale } from \"./requestInformation\";\nimport { setLocales } from \"../redux/_i18n/I18nActions\";\n\nimport {\n setServerPreference,\n setThemePreference,\n setPreference,\n setAllContentInDataSetting,\n setLoginPreferences,\n setDateTimeSettings,\n} from \"../redux/actions/Preferences\";\n\nimport { getSetting } from \"../constants/Settings\";\n\nimport { IllegalArgumentException } from \"../exceptions\";\n\nimport { initModels } from \"../redux\";\nimport { getLocale } from \"../redux/selectors/i18n\";\n\nimport ModularUIRequest from \"../modularui/ModularUIRequest\";\n\nimport type { LocaleConfiguration } from \"../i18n/types\";\nimport type { ReduxState, ReduxStore } from \"../redux/types\";\nimport type Href from \"../models/href/Href\";\nimport type { RouterHistory } from \"react-router\";\n\nexport type PreferenceValue = {\n name: string,\n defaultValue?: string | null,\n type?: string,\n};\n\n/**\n */\nconst createReduxStore = (\n requestHref: Href,\n customReducers: Object,\n initialState?: $Shape<ReduxState>,\n): ReduxStore => {\n // $FlowExpectedError\n const history: RouterHistory = createMemoryHistory({\n initialEntries: [requestHref.toString()],\n });\n\n const { store } = configureStore(history, customReducers, initialState);\n\n return store;\n};\n\n/**\n */\nconst setI18n = (\n store: ReduxStore,\n locales: Array<LocaleConfiguration> = [],\n request: HttpServletRequestJava,\n) => {\n if (!Array.isArray(locales)) {\n throw new IllegalArgumentException(\"locales must be an array of objects\");\n }\n if (!request) {\n throw new IllegalArgumentException(\"missing request argument\");\n }\n\n const mergedLocales = availableLocales.map((locale) => {\n const code = locale.code;\n const customLocale = locales.find((custLocale) => custLocale.code === code);\n\n if (customLocale) {\n return deepmerge(locale, customLocale);\n }\n\n return locale;\n });\n\n locales.forEach((customLocale) => {\n if (!mergedLocales.some((locale) => locale.code === customLocale.code)) {\n mergedLocales.push(customLocale);\n }\n });\n\n const enabledLocales = mergedLocales.filter((locale: LocaleConfiguration) =>\n getSetting(\"ENABLED_LOCALES\").includes(locale.code),\n );\n\n const localesInstance = new Locales(enabledLocales);\n const preferredLocale = getPreferredLocale(request, localesInstance);\n store.dispatch(setLocales(localesInstance, preferredLocale ?? \"en\"));\n};\n\nconst setServerPreferencesFromArray = (\n store: ReduxStore,\n serverPreferences: Array<string | PreferenceValue>,\n) => {\n serverPreferences.forEach((serverPreference) => {\n if (typeof serverPreference === \"object\") {\n const { name, defaultValue, type } = serverPreference;\n store.dispatch(setServerPreference(name, defaultValue, type));\n } else {\n store.dispatch(setServerPreference(serverPreference, null));\n }\n });\n};\n\n/**\n * Server preferences can be suplied by an array of preference names,\n * or an array of objects which has the name, an optional default value and an optional type.<br>\n * When the type is set to string, a comma separated value is not converted to an array:\n *\n * @example\n * // value becomes an array [default1, default2]\n * { name: \"prefName\", defaultValue: \"default1, default2\" }\n * // value remains a string \"default1, default2\"\n * { name: \"prefName\", defaultValue: \"default1, default2\", type: \"string\" }\n *\n * @param store\n * @param serverPreferences\n */\nconst setServerPreferences = (\n store: ReduxStore,\n serverPreferences: Array<string | PreferenceValue>,\n) => {\n if (Array.isArray(serverPreferences)) {\n setServerPreferencesFromArray(store, serverPreferences);\n }\n\n store.dispatch(setAllContentInDataSetting());\n store.dispatch(setLoginPreferences());\n store.dispatch(setDateTimeSettings());\n\n if (\n preferencesProvider &&\n preferencesProvider.isStudioContext &&\n preferencesProvider.isStudioContext()\n ) {\n store.dispatch(setPreference(\"isStudioContext\", true));\n }\n};\n\n/**\n */\nconst setConfigurationTheme = (store: ReduxStore) => {\n let configTheme = null;\n\n const configFileLocation = preferencesProvider.getLayoutConfigFileLocation();\n if (typeof configFileLocation === \"string\") {\n const configFilePath = configFileLocation.startsWith(\"/\")\n ? `/resource${configFileLocation}`\n : `/resource/${configFileLocation}`;\n\n configTheme = dataFetcher.fetch(configFilePath);\n\n if (configTheme) {\n store.dispatch(setThemePreference(configTheme));\n } else {\n throw new Error(\n `Could not read theme configuration file from: ${configFilePath}`,\n );\n }\n }\n};\n\n/**\n */\nconst setApplication = (store: ReduxStore) => {\n try {\n const locale = getLocale(store.getState());\n const application = new ModularUIRequest(\"/\", {\n locale: locale,\n }).fetchSync();\n\n application.connectKey = `application(/)(${locale})`;\n\n store.dispatch(\n initModels([\n {\n key: `application(/)(${locale})`,\n model: application,\n },\n ]),\n );\n } catch (e) {\n // swallow error, in this case we just don't pre-cache the webapplication,\n // which has not much difference for the end user\n }\n};\n\n/**\n */\nconst handleErrors = (store: ReduxStore) => {\n const state = store.getState();\n\n if (\n state.error &&\n (state.error.shouldThrowOnServer ||\n !has(state.error, \"shouldThrowOnServer\"))\n ) {\n throw state.error;\n }\n};\n\n/**\n */\nconst dehydrate = (store: ReduxStore): string => {\n const state = store.getState();\n\n const modularui: {\n [key: string]: { status: string, lastModification: number, model: ?Object },\n } = {};\n\n for (const key in state.modularui) {\n const { status, model, lastModification } = state.modularui[key];\n\n if (model) {\n modularui[key] = {\n status,\n lastModification,\n model: model.dehydrate(),\n };\n } else {\n modularui[key] = {\n status,\n lastModification,\n model: undefined,\n };\n }\n }\n\n const filteredState = {\n ...state,\n modularui,\n };\n\n return JSON.stringify(filteredState).replace(/</g, \"\\\\u003c\");\n};\n\n/**\n */\nconst createHead = (\n sheet: any,\n UUID: string,\n helmetContext?: Object,\n): Object => {\n const style = sheet.getStyleTags();\n const meta = helmetContext ? [...helmetContext.helmet.meta] : [];\n\n if (helmetContext) {\n return {\n ...helmetContext.helmet,\n style,\n meta,\n };\n }\n\n return {\n style,\n meta,\n };\n};\n\nexport {\n createReduxStore,\n setI18n,\n setApplication,\n setServerPreferences,\n setConfigurationTheme,\n createHead,\n handleErrors,\n dehydrate,\n};\n"],"mappings":";;;;;;AACA,SAASA,mBAAmB,QAAQ,SAAS;AAC7C,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,OAAOC,SAAS,MAAM,WAAW;AAEjC,OAAOC,cAAc,MAAM,+BAA+B;AAE1D,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,OAAOC,OAAO,MAAM,iBAAiB;AAErC,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,UAAU,QAAQ,4BAA4B;AAEvD,SACEC,mBAAmB,EACnBC,kBAAkB,EAClBC,aAAa,EACbC,0BAA0B,EAC1BC,mBAAmB,EACnBC,mBAAmB,QACd,8BAA8B;AAErC,SAASC,UAAU,QAAQ,uBAAuB;AAElD,SAASC,wBAAwB,QAAQ,eAAe;AAExD,SAASC,UAAU,QAAQ,UAAU;AACrC,SAASC,SAAS,QAAQ,yBAAyB;AAEnD,OAAOC,gBAAgB,MAAM,+BAA+B;AAa5D;AACA;AACA,MAAMC,gBAAgB,GAAGA,CACvBC,WAAiB,EACjBC,cAAsB,EACtBC,YAAiC,KAClB;EACf;EACA,MAAMC,OAAsB,GAAGvB,mBAAmB,CAAC;IACjDwB,cAAc,EAAE,CAACJ,WAAW,CAACK,QAAQ,CAAC,CAAC;EACzC,CAAC,CAAC;EAEF,MAAM;IAAEC;EAAM,CAAC,GAAGvB,cAAc,CAACoB,OAAO,EAAEF,cAAc,EAAEC,YAAY,CAAC;EAEvE,OAAOI,KAAK;AACd,CAAC;;AAED;AACA;AACA,MAAMC,OAAO,GAAG,SAAAA,CACdD,KAAiB,EAGd;EAAA,IAFHE,OAAmC,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EA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,IAAIH,aAAa,EAAE;IACjB,OAAO;MACL,GAAGA,aAAa,CAACI,MAAM;MACvBH,KAAK;MACLE;IACF,CAAC;EACH;EAEA,OAAO;IACLF,KAAK;IACLE;EACF,CAAC;AACH,CAAC;AAED,SACE7E,gBAAgB,EAChBQ,OAAO,EACP4C,cAAc,EACdZ,oBAAoB,EACpBG,qBAAqB,EACrB4B,UAAU,EACVX,YAAY,EACZI,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"serverUtil.js","names":["createMemoryHistory","has","deepmerge","configureStore","availableLocales","Locales","getPreferredLocale","setLocales","setServerPreference","setThemePreference","setPreference","setAllContentInDataSetting","setLoginPreferences","setDateTimeSettings","getEnabledLocales","IllegalArgumentException","initModels","getLocale","ModularUIRequest","createReduxStore","requestHref","customReducers","initialState","history","initialEntries","toString","store","setI18n","locales","arguments","length","undefined","request","Array","isArray","mergedLocales","_mapInstanceProperty","call","locale","code","customLocale","_findInstanceProperty","custLocale","forEach","some","push","enabledLocales","_filterInstanceProperty","_context","_includesInstanceProperty","localesInstance","preferredLocale","dispatch","setServerPreferencesFromArray","serverPreferences","serverPreference","name","defaultValue","type","setServerPreferences","preferencesProvider","isStudioContext","setConfigurationTheme","configTheme","configFileLocation","getLayoutConfigFileLocation","configFilePath","_startsWithInstanceProperty","dataFetcher","fetch","Error","setApplication","getState","application","fetchSync","connectKey","key","model","e","handleErrors","state","error","shouldThrowOnServer","dehydrate","modularui","status","lastModification","filteredState","_JSON$stringify","replace","createHead","sheet","UUID","helmetContext","style","getStyleTags","meta","helmet"],"sources":["../../src/react-server/serverUtil.js"],"sourcesContent":["// @flow\nimport { createMemoryHistory } from \"history\";\nimport { has } from \"../utils/helpers/objects\";\nimport deepmerge from \"deepmerge\";\n\nimport configureStore from \"../redux/store/configureStore\";\n\nimport { availableLocales } from \"../i18n/Locales\";\nimport Locales from \"../i18n/Locales\";\n\nimport { getPreferredLocale } from \"./requestInformation\";\nimport { setLocales } from \"../redux/_i18n/I18nActions\";\n\nimport {\n setServerPreference,\n setThemePreference,\n setPreference,\n setAllContentInDataSetting,\n setLoginPreferences,\n setDateTimeSettings,\n} from \"../redux/actions/Preferences\";\n\nimport { getEnabledLocales } from \"../constants/Settings\";\n\nimport { IllegalArgumentException } from \"../exceptions\";\n\nimport { initModels } from \"../redux\";\nimport { getLocale } from \"../redux/selectors/i18n\";\n\nimport ModularUIRequest from \"../modularui/ModularUIRequest\";\n\nimport type { LocaleConfiguration } from \"../i18n/types\";\nimport type { ReduxState, ReduxStore } from \"../redux/types\";\nimport type Href from \"../models/href/Href\";\nimport type { RouterHistory } from \"react-router\";\n\nexport type PreferenceValue = {\n name: string,\n defaultValue?: string | null,\n type?: string,\n};\n\n/**\n */\nconst createReduxStore = (\n requestHref: Href,\n customReducers: Object,\n initialState?: $Shape<ReduxState>,\n): ReduxStore => {\n // $FlowExpectedError\n const history: RouterHistory = createMemoryHistory({\n initialEntries: [requestHref.toString()],\n });\n\n const { store } = configureStore(history, customReducers, initialState);\n\n return store;\n};\n\n/**\n */\nconst setI18n = (\n store: ReduxStore,\n locales: Array<LocaleConfiguration> = [],\n request: HttpServletRequestJava,\n) => {\n if (!Array.isArray(locales)) {\n throw new IllegalArgumentException(\"locales must be an array of objects\");\n }\n if (!request) {\n throw new IllegalArgumentException(\"missing request argument\");\n }\n\n const mergedLocales = availableLocales.map((locale) => {\n const code = locale.code;\n const customLocale = locales.find((custLocale) => custLocale.code === code);\n\n if (customLocale) {\n return deepmerge(locale, customLocale);\n }\n\n return locale;\n });\n\n locales.forEach((customLocale) => {\n if (!mergedLocales.some((locale) => locale.code === customLocale.code)) {\n mergedLocales.push(customLocale);\n }\n });\n\n const enabledLocales = mergedLocales.filter((locale: LocaleConfiguration) =>\n getEnabledLocales().includes(locale.code),\n );\n\n const localesInstance = new Locales(enabledLocales);\n const preferredLocale = getPreferredLocale(request, localesInstance);\n store.dispatch(setLocales(localesInstance, preferredLocale ?? \"en\"));\n};\n\nconst setServerPreferencesFromArray = (\n store: ReduxStore,\n serverPreferences: Array<string | PreferenceValue>,\n) => {\n serverPreferences.forEach((serverPreference) => {\n if (typeof serverPreference === \"object\") {\n const { name, defaultValue, type } = serverPreference;\n store.dispatch(setServerPreference(name, defaultValue, type));\n } else {\n store.dispatch(setServerPreference(serverPreference, null));\n }\n });\n};\n\n/**\n * Server preferences can be suplied by an array of preference names,\n * or an array of objects which has the name, an optional default value and an optional type.<br>\n * When the type is set to string, a comma separated value is not converted to an array:\n *\n * @example\n * // value becomes an array [default1, default2]\n * { name: \"prefName\", defaultValue: \"default1, default2\" }\n * // value remains a string \"default1, default2\"\n * { name: \"prefName\", defaultValue: \"default1, default2\", type: \"string\" }\n *\n * @param store\n * @param serverPreferences\n */\nconst setServerPreferences = (\n store: ReduxStore,\n serverPreferences: Array<string | PreferenceValue>,\n) => {\n if (Array.isArray(serverPreferences)) {\n setServerPreferencesFromArray(store, serverPreferences);\n }\n\n store.dispatch(setAllContentInDataSetting());\n store.dispatch(setLoginPreferences());\n store.dispatch(setDateTimeSettings());\n\n if (\n preferencesProvider &&\n preferencesProvider.isStudioContext &&\n preferencesProvider.isStudioContext()\n ) {\n store.dispatch(setPreference(\"isStudioContext\", true));\n }\n};\n\n/**\n */\nconst setConfigurationTheme = (store: ReduxStore) => {\n let configTheme = null;\n\n const configFileLocation = preferencesProvider.getLayoutConfigFileLocation();\n if (typeof configFileLocation === \"string\") {\n const configFilePath = configFileLocation.startsWith(\"/\")\n ? `/resource${configFileLocation}`\n : `/resource/${configFileLocation}`;\n\n configTheme = dataFetcher.fetch(configFilePath);\n\n if (configTheme) {\n store.dispatch(setThemePreference(configTheme));\n } else {\n throw new Error(\n `Could not read theme configuration file from: ${configFilePath}`,\n );\n }\n }\n};\n\n/**\n */\nconst setApplication = (store: ReduxStore) => {\n try {\n const locale = getLocale(store.getState());\n const application = new ModularUIRequest(\"/\", {\n locale: locale,\n }).fetchSync();\n\n application.connectKey = `application(/)(${locale})`;\n\n store.dispatch(\n initModels([\n {\n key: `application(/)(${locale})`,\n model: application,\n },\n ]),\n );\n } catch (e) {\n // swallow error, in this case we just don't pre-cache the webapplication,\n // which has not much difference for the end user\n }\n};\n\n/**\n */\nconst handleErrors = (store: ReduxStore) => {\n const state = store.getState();\n\n if (\n state.error &&\n (state.error.shouldThrowOnServer ||\n !has(state.error, \"shouldThrowOnServer\"))\n ) {\n throw state.error;\n }\n};\n\n/**\n */\nconst dehydrate = (store: ReduxStore): string => {\n const state = store.getState();\n\n const modularui: {\n [key: string]: { status: string, lastModification: number, model: ?Object },\n } = {};\n\n for (const key in state.modularui) {\n const { status, model, lastModification } = state.modularui[key];\n\n if (model) {\n modularui[key] = {\n status,\n lastModification,\n model: model.dehydrate(),\n };\n } else {\n modularui[key] = {\n status,\n lastModification,\n model: undefined,\n };\n }\n }\n\n const filteredState = {\n ...state,\n modularui,\n };\n\n return JSON.stringify(filteredState).replace(/</g, \"\\\\u003c\");\n};\n\n/**\n */\nconst createHead = (\n sheet: any,\n UUID: string,\n helmetContext?: Object,\n): Object => {\n const style = sheet.getStyleTags();\n const meta = helmetContext ? [...helmetContext.helmet.meta] : [];\n\n if (helmetContext) {\n return {\n ...helmetContext.helmet,\n style,\n meta,\n };\n }\n\n return {\n style,\n meta,\n };\n};\n\nexport {\n createReduxStore,\n setI18n,\n setApplication,\n setServerPreferences,\n setConfigurationTheme,\n createHead,\n handleErrors,\n dehydrate,\n};\n"],"mappings":";;;;;;AACA,SAASA,mBAAmB,QAAQ,SAAS;AAC7C,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,OAAOC,SAAS,MAAM,WAAW;AAEjC,OAAOC,cAAc,MAAM,+BAA+B;AAE1D,SAASC,gBAAgB,QAAQ,iBAAiB;AAClD,OAAOC,OAAO,MAAM,iBAAiB;AAErC,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,UAAU,QAAQ,4BAA4B;AAEvD,SACEC,mBAAmB,EACnBC,kBAAkB,EAClBC,aAAa,EACbC,0BAA0B,EAC1BC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AAGN,KAAK,CAACI,SAAS,CAACR,GAAG,CAAC;IAEhE,IAAIC,KAAK,EAAE;MACTO,SAAS,CAACR,GAAG,CAAC,GAAG;QACfS,MAAM;QACNC,gBAAgB;QAChBT,KAAK,EAAEA,KAAK,CAACM,SAAS,CAAC;MACzB,CAAC;IACH,CAAC,MAAM;MACLC,SAAS,CAACR,GAAG,CAAC,GAAG;QACfS,MAAM;QACNC,gBAAgB;QAChBT,KAAK,EAAE9C;MACT,CAAC;IACH;EACF;EAEA,MAAMwD,aAAa,GAAG;IACpB,GAAGP,KAAK;IACRI;EACF,CAAC;EAED,OAAOI,eAAA,CAAeD,aAAa,CAAC,CAACE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC;AAC/D,CAAC;;AAED;AACA;AACA,MAAMC,UAAU,GAAGA,CACjBC,KAAU,EACVC,IAAY,EACZC,aAAsB,KACX;EACX,MAAMC,KAAK,GAAGH,KAAK,CAACI,YAAY,CAAC,CAAC;EAClC,MAAMC,IAAI,GAAGH,aAAa,GAAG,CAAC,GAAGA,aAAa,CAACI,MAAM,CAACD,IAAI,CAAC,GAAG,EAAE;EAEhE,IAAIH,aAAa,EAAE;IACjB,OAAO;MACL,GAAGA,aAAa,CAACI,MAAM;MACvBH,KAAK;MACLE;IACF,CAAC;EACH;EAEA,OAAO;IACLF,KAAK;IACLE;EACF,CAAC;AACH,CAAC;AAED,SACE7E,gBAAgB,EAChBQ,OAAO,EACP4C,cAAc,EACdZ,oBAAoB,EACpBG,qBAAqB,EACrB4B,UAAU,EACVX,YAAY,EACZI,SAAS","ignoreList":[]}
@@ -21,7 +21,6 @@ export const updateLocale =
21
21
  (dispatch) => {
22
22
  dispatch(startProgress());
23
23
  dispatch(receiveLocale(locale));
24
-
25
24
  dispatch(finishProgress());
26
25
  };
27
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"I18nActions.js","names":["startProgress","finishProgress","receiveLocale","locale","type","payload","updateLocale","dispatch","setLocales","locales"],"sources":["../../../src/redux/_i18n/I18nActions.js"],"sourcesContent":["// @flow\nimport { startProgress, finishProgress } from \"../actions/ProgressIndicator\";\n\nimport type Locales from \"../../i18n/Locales\";\nimport type { SetLocalesAction, UpdateLocaleAction } from \"./types\";\nimport type { ThunkAction } from \"../types\";\n\n/**\n * Update current locale\n */\nexport const receiveLocale = (locale: string): UpdateLocaleAction => ({\n type: \"UPDATE_LOCALE\",\n payload: locale,\n});\n\n/**\n * Change locale of application and redirect\n */\nexport const updateLocale =\n (locale: string): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n dispatch(receiveLocale(locale));\n\n dispatch(finishProgress());\n };\n\n/**\n */\nexport const setLocales = (\n locales: Locales,\n locale: string,\n): SetLocalesAction => ({\n type: \"SET_LOCALES\",\n payload: {\n locales,\n locale,\n },\n});\n"],"mappings":"AACA,SAASA,aAAa,EAAEC,cAAc,QAAQ,8BAA8B;AAM5E;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,MAAc,KAA0B;EACpEC,IAAI,EAAE,eAAe;EACrBC,OAAO,EAAEF;AACX,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMG,YAAY,GACtBH,MAAc,IACdI,QAAQ,IAAK;EACZA,QAAQ,CAACP,aAAa,CAAC,CAAC,CAAC;EACzBO,QAAQ,CAACL,aAAa,CAACC,MAAM,CAAC,CAAC;EAE/BI,QAAQ,CAACN,cAAc,CAAC,CAAC,CAAC;AAC5B,CAAC;;AAEH;AACA;AACA,OAAO,MAAMO,UAAU,GAAGA,CACxBC,OAAgB,EAChBN,MAAc,MACQ;EACtBC,IAAI,EAAE,aAAa;EACnBC,OAAO,EAAE;IACPI,OAAO;IACPN;EACF;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"I18nActions.js","names":["startProgress","finishProgress","receiveLocale","locale","type","payload","updateLocale","dispatch","setLocales","locales"],"sources":["../../../src/redux/_i18n/I18nActions.js"],"sourcesContent":["// @flow\nimport { startProgress, finishProgress } from \"../actions/ProgressIndicator\";\n\nimport type Locales from \"../../i18n/Locales\";\nimport type { SetLocalesAction, UpdateLocaleAction } from \"./types\";\nimport type { ThunkAction } from \"../types\";\n\n/**\n * Update current locale\n */\nexport const receiveLocale = (locale: string): UpdateLocaleAction => ({\n type: \"UPDATE_LOCALE\",\n payload: locale,\n});\n\n/**\n * Change locale of application and redirect\n */\nexport const updateLocale =\n (locale: string): ThunkAction =>\n (dispatch) => {\n dispatch(startProgress());\n dispatch(receiveLocale(locale));\n dispatch(finishProgress());\n };\n\n/**\n */\nexport const setLocales = (\n locales: Locales,\n locale: string,\n): SetLocalesAction => ({\n type: \"SET_LOCALES\",\n payload: {\n locales,\n locale,\n },\n});\n"],"mappings":"AACA,SAASA,aAAa,EAAEC,cAAc,QAAQ,8BAA8B;AAM5E;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAIC,MAAc,KAA0B;EACpEC,IAAI,EAAE,eAAe;EACrBC,OAAO,EAAEF;AACX,CAAC,CAAC;;AAEF;AACA;AACA;AACA,OAAO,MAAMG,YAAY,GACtBH,MAAc,IACdI,QAAQ,IAAK;EACZA,QAAQ,CAACP,aAAa,CAAC,CAAC,CAAC;EACzBO,QAAQ,CAACL,aAAa,CAACC,MAAM,CAAC,CAAC;EAC/BI,QAAQ,CAACN,cAAc,CAAC,CAAC,CAAC;AAC5B,CAAC;;AAEH;AACA;AACA,OAAO,MAAMO,UAAU,GAAGA,CACxBC,OAAgB,EAChBN,MAAc,MACQ;EACtBC,IAAI,EAAE,aAAa;EACnBC,OAAO,EAAE;IACPI,OAAO;IACPN;EACF;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,11 +1,15 @@
1
1
  import Cache from "../../utils/browser/Cache";
2
- import { setCookie } from "../../utils/browser/Cookies";
2
+ import { setCookie, clearCookie } from "../../utils/browser/Cookies";
3
3
  import Locales from "../../i18n/Locales";
4
4
  /**
5
5
  */
6
6
  const updateLocale = (state, locale) => {
7
7
  // set locale in cookie
8
- setCookie("locale", locale);
8
+ if (state.locales?.length > 1) {
9
+ setCookie("locale", locale);
10
+ } else {
11
+ clearCookie("locale");
12
+ }
9
13
 
10
14
  // clear cache because of cached contributions
11
15
  Cache.clear();
@@ -23,7 +27,11 @@ const setLocales = (state, _ref) => {
23
27
  locales
24
28
  } = _ref;
25
29
  // set locale in cookie
26
- setCookie("locale", locale);
30
+ if (state.locales.length > 1) {
31
+ setCookie("locale", locale);
32
+ } else {
33
+ clearCookie("locale");
34
+ }
27
35
  if (locale) {
28
36
  return {
29
37
  ...state,
@@ -1,6 +1,6 @@
1
1
  // @flow
2
2
  import Cache from "../../utils/browser/Cache";
3
- import { setCookie } from "../../utils/browser/Cookies";
3
+ import { setCookie, clearCookie } from "../../utils/browser/Cookies";
4
4
 
5
5
  import Locales from "../../i18n/Locales";
6
6
 
@@ -12,7 +12,11 @@ import type { ReduxAction } from "../types";
12
12
  */
13
13
  const updateLocale = (state: I18nState, locale: string) => {
14
14
  // set locale in cookie
15
- setCookie("locale", locale);
15
+ if (state.locales?.length > 1) {
16
+ setCookie("locale", locale);
17
+ } else {
18
+ clearCookie("locale");
19
+ }
16
20
 
17
21
  // clear cache because of cached contributions
18
22
  Cache.clear();
@@ -30,7 +34,11 @@ const setLocales = (
30
34
  { locale, locales }: { locale: string, locales: Locales },
31
35
  ) => {
32
36
  // set locale in cookie
33
- setCookie("locale", locale);
37
+ if (state.locales.length > 1) {
38
+ setCookie("locale", locale);
39
+ } else {
40
+ clearCookie("locale");
41
+ }
34
42
 
35
43
  if (locale) {
36
44
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"I18nReducer.js","names":["Cache","setCookie","Locales","updateLocale","state","locale","clear","setLocales","_ref","locales","getDefaultLocale","navigator","language","split","initialState","I18nReducer","arguments","length","undefined","action","type","payload"],"sources":["../../../src/redux/_i18n/I18nReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\nimport { setCookie } from \"../../utils/browser/Cookies\";\n\nimport Locales from \"../../i18n/Locales\";\n\nimport type { Reducer } from \"redux\";\nimport type { I18nState } from \"./types\";\nimport type { ReduxAction } from \"../types\";\n\n/**\n */\nconst updateLocale = (state: I18nState, locale: string) => {\n // set locale in cookie\n setCookie(\"locale\", locale);\n\n // clear cache because of cached contributions\n Cache.clear();\n\n return {\n ...state,\n locale,\n };\n};\n\n/**\n */\nconst setLocales = (\n state: I18nState,\n { locale, locales }: { locale: string, locales: Locales },\n) => {\n // set locale in cookie\n setCookie(\"locale\", locale);\n\n if (locale) {\n return {\n ...state,\n locales,\n locale,\n };\n }\n\n return {\n ...state,\n locales,\n };\n};\n\nconst getDefaultLocale = () => {\n if (typeof navigator !== \"undefined\" && navigator?.language) {\n return navigator?.language.split(\"-\")[0] || \"en\";\n }\n return \"en\";\n};\n\n// REDUCER\nconst initialState: I18nState = {\n locales: new Locales(),\n locale: getDefaultLocale(),\n};\n\n/**\n * Form reducer\n */\nexport const I18nReducer: Reducer<I18nState, ReduxAction> = (\n state = initialState,\n action = void 0,\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SET_LOCALES\":\n return setLocales(state, action.payload);\n\n case \"UPDATE_LOCALE\":\n return updateLocale(state, action.payload);\n\n default:\n return state;\n }\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,2BAA2B;AAC7C,SAASC,SAAS,QAAQ,6BAA6B;AAEvD,OAAOC,OAAO,MAAM,oBAAoB;AAMxC;AACA;AACA,MAAMC,YAAY,GAAGA,CAACC,KAAgB,EAAEC,MAAc,KAAK;EACzD;EACAJ,SAAS,CAAC,QAAQ,EAAEI,MAAM,CAAC;;EAE3B;EACAL,KAAK,CAACM,KAAK,CAAC,CAAC;EAEb,OAAO;IACL,GAAGF,KAAK;IACRC;EACF,CAAC;AACH,CAAC;;AAED;AACA;AACA,MAAME,UAAU,GAAGA,CACjBH,KAAgB,EAAAI,IAAA,KAEb;EAAA,IADH;IAAEH,MAAM;IAAEI;EAA8C,CAAC,GAAAD,IAAA;EAEzD;EACAP,SAAS,CAAC,QAAQ,EAAEI,MAAM,CAAC;EAE3B,IAAIA,MAAM,EAAE;IACV,OAAO;MACL,GAAGD,KAAK;MACRK,OAAO;MACPJ;IACF,CAAC;EACH;EAEA,OAAO;IACL,GAAGD,KAAK;IACRK;EACF,CAAC;AACH,CAAC;AAED,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EAC7B,IAAI,OAAOC,SAAS,KAAK,WAAW,IAAIA,SAAS,EAAEC,QAAQ,EAAE;IAC3D,OAAOD,SAAS,EAAEC,QAAQ,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI;EAClD;EACA,OAAO,IAAI;AACb,CAAC;;AAED;AACA,MAAMC,YAAuB,GAAG;EAC9BL,OAAO,EAAE,IAAIP,OAAO,CAAC,CAAC;EACtBG,MAAM,EAAEK,gBAAgB,CAAC;AAC3B,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMK,WAA4C,GAAG,SAAAA,CAAA,EAGvD;EAAA,IAFHX,KAAK,GAAAY,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGF,YAAY;EAAA,IACpBK,MAAM,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK,CAAC;EAEf,IAAI,CAACG,MAAM,EAAE;IACX,OAAOf,KAAK;EACd;EAEA,QAAQe,MAAM,CAACC,IAAI;IACjB,KAAK,aAAa;MAChB,OAAOb,UAAU,CAACH,KAAK,EAAEe,MAAM,CAACE,OAAO,CAAC;IAE1C,KAAK,eAAe;MAClB,OAAOlB,YAAY,CAACC,KAAK,EAAEe,MAAM,CAACE,OAAO,CAAC;IAE5C;MACE,OAAOjB,KAAK;EAChB;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"I18nReducer.js","names":["Cache","setCookie","clearCookie","Locales","updateLocale","state","locale","locales","length","clear","setLocales","_ref","getDefaultLocale","navigator","language","split","initialState","I18nReducer","arguments","undefined","action","type","payload"],"sources":["../../../src/redux/_i18n/I18nReducer.js"],"sourcesContent":["// @flow\nimport Cache from \"../../utils/browser/Cache\";\nimport { setCookie, clearCookie } from \"../../utils/browser/Cookies\";\n\nimport Locales from \"../../i18n/Locales\";\n\nimport type { Reducer } from \"redux\";\nimport type { I18nState } from \"./types\";\nimport type { ReduxAction } from \"../types\";\n\n/**\n */\nconst updateLocale = (state: I18nState, locale: string) => {\n // set locale in cookie\n if (state.locales?.length > 1) {\n setCookie(\"locale\", locale);\n } else {\n clearCookie(\"locale\");\n }\n\n // clear cache because of cached contributions\n Cache.clear();\n\n return {\n ...state,\n locale,\n };\n};\n\n/**\n */\nconst setLocales = (\n state: I18nState,\n { locale, locales }: { locale: string, locales: Locales },\n) => {\n // set locale in cookie\n if (state.locales.length > 1) {\n setCookie(\"locale\", locale);\n } else {\n clearCookie(\"locale\");\n }\n\n if (locale) {\n return {\n ...state,\n locales,\n locale,\n };\n }\n\n return {\n ...state,\n locales,\n };\n};\n\nconst getDefaultLocale = () => {\n if (typeof navigator !== \"undefined\" && navigator?.language) {\n return navigator?.language.split(\"-\")[0] || \"en\";\n }\n return \"en\";\n};\n\n// REDUCER\nconst initialState: I18nState = {\n locales: new Locales(),\n locale: getDefaultLocale(),\n};\n\n/**\n * Form reducer\n */\nexport const I18nReducer: Reducer<I18nState, ReduxAction> = (\n state = initialState,\n action = void 0,\n) => {\n if (!action) {\n return state;\n }\n\n switch (action.type) {\n case \"SET_LOCALES\":\n return setLocales(state, action.payload);\n\n case \"UPDATE_LOCALE\":\n return updateLocale(state, action.payload);\n\n default:\n return state;\n }\n};\n"],"mappings":"AACA,OAAOA,KAAK,MAAM,2BAA2B;AAC7C,SAASC,SAAS,EAAEC,WAAW,QAAQ,6BAA6B;AAEpE,OAAOC,OAAO,MAAM,oBAAoB;AAMxC;AACA;AACA,MAAMC,YAAY,GAAGA,CAACC,KAAgB,EAAEC,MAAc,KAAK;EACzD;EAC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AGF,YAAY;EAAA,IACpBI,MAAM,GAAAF,SAAA,CAAAV,MAAA,QAAAU,SAAA,QAAAC,SAAA,GAAAD,SAAA,MAAG,KAAK,CAAC;EAEf,IAAI,CAACE,MAAM,EAAE;IACX,OAAOf,KAAK;EACd;EAEA,QAAQe,MAAM,CAACC,IAAI;IACjB,KAAK,aAAa;MAChB,OAAOX,UAAU,CAACL,KAAK,EAAEe,MAAM,CAACE,OAAO,CAAC;IAE1C,KAAK,eAAe;MAClB,OAAOlB,YAAY,CAACC,KAAK,EAAEe,MAAM,CAACE,OAAO,CAAC;IAE5C;MACE,OAAOjB,KAAK;EAChB;AACF,CAAC","ignoreList":[]}
@@ -11,6 +11,7 @@ import PreferencesReducer from "./PreferencesReducer";
11
11
  /**
12
12
  */
13
13
  export const createReducer = () => ({
14
+ preferences: PreferencesReducer,
14
15
  router: RouterReducer,
15
16
  modularui: ModularUIReducer,
16
17
  i18n: I18nReducer,
@@ -19,7 +20,6 @@ export const createReducer = () => ({
19
20
  modals: ModalsReducer,
20
21
  modelcatalog: ModelCatalogReducer,
21
22
  notification: NotificationReducer,
22
- progressindicator: ProgressIndicatorReducer,
23
- preferences: PreferencesReducer
23
+ progressindicator: ProgressIndicatorReducer
24
24
  });
25
25
  //# sourceMappingURL=createReducer.js.map
@@ -42,6 +42,7 @@ type Reducers = {
42
42
  /**
43
43
  */
44
44
  export const createReducer = (): Reducers => ({
45
+ preferences: PreferencesReducer,
45
46
  router: RouterReducer,
46
47
  modularui: ModularUIReducer,
47
48
  i18n: I18nReducer,
@@ -51,5 +52,4 @@ export const createReducer = (): Reducers => ({
51
52
  modelcatalog: ModelCatalogReducer,
52
53
  notification: NotificationReducer,
53
54
  progressindicator: ProgressIndicatorReducer,
54
- preferences: PreferencesReducer,
55
55
  });
@@ -1 +1 @@
1
- {"version":3,"file":"createReducer.js","names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","ModelCatalogReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","router","modularui","i18n","auth","error","modals","modelcatalog","notification","progressindicator","preferences"],"sources":["../../../src/redux/reducers/createReducer.js"],"sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/RouterReducer\";\nimport { ModularUIReducer } from \"../_modularui/ModularUIReducer\";\nimport { I18nReducer } from \"../_i18n/I18nReducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport ModelCatalogReducer from \"./ModelCatalogReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n ModelCatalogState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modelcatalog: Reducer<ModelCatalogState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n modelcatalog: ModelCatalogReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n preferences: PreferencesReducer,\n});\n"],"mappings":"AACA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,gBAAgB,QAAQ,gCAAgC;AACjE,SAASC,WAAW,QAAQ,sBAAsB;AAElD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,OAAOC,wBAAwB,MAAM,4BAA4B;AACjE,OAAOC,kBAAkB,MAAM,sBAAsB;AA8BrD;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAA,MAAiB;EAC5CC,MAAM,EAAEX,aAAa;EACrBY,SAAS,EAAEX,gBAAgB;EAC3BY,IAAI,EAAEX,WAAW;EACjBY,IAAI,EAAEV,WAAW;EACjBW,KAAK,EAAEV,YAAY;EACnBW,MAAM,EAAEb,aAAa;EACrBc,YAAY,EAAEX,mBAAmB;EACjCY,YAAY,EAAEX,mBAAmB;EACjCY,iBAAiB,EAAEX,wBAAwB;EAC3CY,WAAW,EAAEX;AACf,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"createReducer.js","names":["RouterReducer","ModularUIReducer","I18nReducer","ModalsReducer","AuthReducer","ErrorReducer","ModelCatalogReducer","NotificationReducer","ProgressIndicatorReducer","PreferencesReducer","createReducer","preferences","router","modularui","i18n","auth","error","modals","modelcatalog","notification","progressindicator"],"sources":["../../../src/redux/reducers/createReducer.js"],"sourcesContent":["// @flow\nimport { RouterReducer } from \"../_router/RouterReducer\";\nimport { ModularUIReducer } from \"../_modularui/ModularUIReducer\";\nimport { I18nReducer } from \"../_i18n/I18nReducer\";\n\nimport ModalsReducer from \"./ModalsReducer\";\nimport AuthReducer from \"./AuthReducer\";\nimport ErrorReducer from \"./ErrorReducer\";\nimport ModelCatalogReducer from \"./ModelCatalogReducer\";\nimport NotificationReducer from \"./NotificationReducer\";\nimport ProgressIndicatorReducer from \"./ProgressIndicatorReducer\";\nimport PreferencesReducer from \"./PreferencesReducer\";\n\nimport type { Reducer } from \"redux\";\nimport type {\n ReduxAction,\n ProgressIndicatorState,\n PreferencesState,\n NotificationState,\n ModalsState,\n ErrorState,\n AuthState,\n ModelCatalogState,\n} from \"../types\";\nimport type { RouterState } from \"../_router/types\";\nimport type { ModularUIState } from \"../_modularui/types\";\nimport type { I18nState } from \"../_i18n/types\";\n\ntype Reducers = {\n auth: Reducer<AuthState, ReduxAction>,\n error: Reducer<ErrorState, ReduxAction>,\n i18n: Reducer<I18nState, ReduxAction>,\n modals: Reducer<ModalsState, ReduxAction>,\n modelcatalog: Reducer<ModelCatalogState, ReduxAction>,\n modularui: Reducer<ModularUIState, ReduxAction>,\n notification: Reducer<NotificationState, ReduxAction>,\n preferences: Reducer<PreferencesState, ReduxAction>,\n progressindicator: Reducer<ProgressIndicatorState, ReduxAction>,\n router: Reducer<RouterState, ReduxAction>,\n};\n\n/**\n */\nexport const createReducer = (): Reducers => ({\n preferences: PreferencesReducer,\n router: RouterReducer,\n modularui: ModularUIReducer,\n i18n: I18nReducer,\n auth: AuthReducer,\n error: ErrorReducer,\n modals: ModalsReducer,\n modelcatalog: ModelCatalogReducer,\n notification: NotificationReducer,\n progressindicator: ProgressIndicatorReducer,\n});\n"],"mappings":"AACA,SAASA,aAAa,QAAQ,0BAA0B;AACxD,SAASC,gBAAgB,QAAQ,gCAAgC;AACjE,SAASC,WAAW,QAAQ,sBAAsB;AAElD,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,OAAOC,WAAW,MAAM,eAAe;AACvC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,OAAOC,wBAAwB,MAAM,4BAA4B;AACjE,OAAOC,kBAAkB,MAAM,sBAAsB;AA8BrD;AACA;AACA,OAAO,MAAMC,aAAa,GAAGA,CAAA,MAAiB;EAC5CC,WAAW,EAAEF,kBAAkB;EAC/BG,MAAM,EAAEZ,aAAa;EACrBa,SAAS,EAAEZ,gBAAgB;EAC3Ba,IAAI,EAAEZ,WAAW;EACjBa,IAAI,EAAEX,WAAW;EACjBY,KAAK,EAAEX,YAAY;EACnBY,MAAM,EAAEd,aAAa;EACrBe,YAAY,EAAEZ,mBAAmB;EACjCa,YAAY,EAAEZ,mBAAmB;EACjCa,iBAAiB,EAAEZ;AACrB,CAAC,CAAC","ignoreList":[]}
@@ -4,7 +4,6 @@ import { routerMiddleware } from "../_router/RouterMiddleware";
4
4
  import { modularUIMiddleware } from "../_modularui/ModularUIMiddleware";
5
5
  import { createReducer } from "../reducers/createReducer";
6
6
  import { locationChange } from "../_router/RouterActions";
7
- import { updateLocale } from "../_i18n/I18nActions";
8
7
  /**
9
8
  */
10
9
  const configureStore = (routerHistory, customReducers, initialState) => {
@@ -22,10 +21,6 @@ const configureStore = (routerHistory, customReducers, initialState) => {
22
21
  if (!initialState?.router) {
23
22
  store.dispatch(locationChange(routerHistory.location, "PUSH"));
24
23
  }
25
- const locale = initialState?.i18n.locale;
26
- if (locale) {
27
- store.dispatch(updateLocale(locale));
28
- }
29
24
  return {
30
25
  routerHistory,
31
26
  store
@@ -13,8 +13,6 @@ import { modularUIMiddleware } from "../_modularui/ModularUIMiddleware";
13
13
  import { createReducer } from "../reducers/createReducer";
14
14
  import { locationChange } from "../_router/RouterActions";
15
15
 
16
- import { updateLocale } from "../_i18n/I18nActions";
17
-
18
16
  import type { RouterHistory } from "react-router";
19
17
  import type { ReduxAction, ReduxState, ReduxStore } from "../types";
20
18
  import type { Reducer } from "redux";
@@ -55,11 +53,6 @@ const configureStore = (
55
53
  store.dispatch(locationChange(routerHistory.location, "PUSH"));
56
54
  }
57
55
 
58
- const locale = initialState?.i18n.locale;
59
- if (locale) {
60
- store.dispatch(updateLocale(locale));
61
- }
62
-
63
56
  return { routerHistory, store };
64
57
  };
65
58
 
@@ -1 +1 @@
1
- {"version":3,"file":"configureStore.js","names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularUIMiddleware","createReducer","locationChange","updateLocale","configureStore","routerHistory","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","router","dispatch","location","locale","i18n"],"sources":["../../../src/redux/store/configureStore.js"],"sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/RouterMiddleware\";\nimport { modularUIMiddleware } from \"../_modularui/ModularUIMiddleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/RouterActions\";\n\nimport { updateLocale } from \"../_i18n/I18nActions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n routerHistory: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>,\n): { routerHistory: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularUIMiddleware,\n routerMiddleware(routerHistory),\n thunk,\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers,\n );\n\n if (!initialState?.router) {\n store.dispatch(locationChange(routerHistory.location, \"PUSH\"));\n }\n\n const locale = initialState?.i18n.locale;\n if (locale) {\n store.dispatch(updateLocale(locale));\n }\n\n return { routerHistory, store };\n};\n\nexport default configureStore;\n"],"mappings":"AACA,SACEA,eAAe,EACfC,OAAO,EACPC,eAAe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,eAAeb,cAAc","ignoreList":[]}
1
+ {"version":3,"file":"configureStore.js","names":["applyMiddleware","compose","combineReducers","createStore","createReduxStore","thunk","routerMiddleware","modularUIMiddleware","createReducer","locationChange","configureStore","routerHistory","customReducers","initialState","composeEnhancers","process","env","NODE_ENV","window","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","combinedReducers","middleware","enhancers","store","router","dispatch","location"],"sources":["../../../src/redux/store/configureStore.js"],"sourcesContent":["// @flow\nimport {\n applyMiddleware,\n compose,\n combineReducers,\n createStore as createReduxStore,\n} from \"redux\";\nimport thunk from \"redux-thunk\";\n\nimport { routerMiddleware } from \"../_router/RouterMiddleware\";\nimport { modularUIMiddleware } from \"../_modularui/ModularUIMiddleware\";\n\nimport { createReducer } from \"../reducers/createReducer\";\nimport { locationChange } from \"../_router/RouterActions\";\n\nimport type { RouterHistory } from \"react-router\";\nimport type { ReduxAction, ReduxState, ReduxStore } from \"../types\";\nimport type { Reducer } from \"redux\";\n\n/**\n */\nconst configureStore = (\n routerHistory: RouterHistory,\n customReducers?: Object,\n initialState?: $Shape<ReduxState>,\n): { routerHistory: RouterHistory, store: ReduxStore } => {\n let composeEnhancers = compose;\n\n if (process.env.NODE_ENV !== \"production\" && typeof window !== \"undefined\") {\n composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\n }\n\n const combinedReducers: Reducer<ReduxState, ReduxAction> = combineReducers({\n ...customReducers,\n ...createReducer(),\n });\n\n const middleware = applyMiddleware(\n modularUIMiddleware,\n routerMiddleware(routerHistory),\n thunk,\n );\n\n const enhancers = composeEnhancers(middleware);\n\n const store: ReduxStore = createReduxStore(\n combinedReducers,\n initialState,\n enhancers,\n );\n\n if (!initialState?.router) {\n store.dispatch(locationChange(routerHistory.location, \"PUSH\"));\n }\n\n return { routerHistory, store };\n};\n\nexport default configureStore;\n"],"mappings":"AACA,SACEA,eAAe,EACfC,OAAO,EACPC,eAAe,EACfC,WAAW,IAAIC,gBAAgB,QAC1B,OAAO;AACd,OAAOC,KAAK,MAAM,aAAa;AAE/B,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D,SAASC,mBAAmB,QAAQ,mCAAmC;AAEvE,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,cAAc,QAAQ,0BAA0B;AAMzD;AACA;AACA,MAAMC,cAAc,GAAGA,CACrBC,aAA4B,EAC5BC,cAAuB,EACvBC,YAAiC,KACuB;EACxD,IAAIC,gBAAgB,GAAGb,OAAO;EAE9B,IAAIc,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IAC1EJ,gBAAgB,GAAGI,MAAM,CAACC,oCAAoC,IAAIlB,OAAO;EAC3E;EAEA,MAAMmB,gBAAkD,GAAGlB,eAAe,CAAC;IACzE,GAAGU,cAAc;IACjB,GAAGJ,aAAa,CAAC;EACnB,CAAC,CAAC;EAEF,MAAMa,UAAU,GAAGrB,eAAe,CAChCO,mBAAmB,EACnBD,gBAAgB,CAACK,aAAa,CAAC,EAC/BN,KACF,CAAC;EAED,MAAMiB,SAAS,GAAGR,gBAAgB,CAACO,UAAU,CAAC;EAE9C,MAAME,KAAiB,GAAGnB,gBAAgB,CACxCgB,gBAAgB,EAChBP,YAAY,EACZS,SACF,CAAC;EAED,IAAI,CAACT,YAAY,EAAEW,MAAM,EAAE;IACzBD,KAAK,CAACE,QAAQ,CAAChB,cAAc,CAACE,aAAa,CAACe,QAAQ,EAAE,MAAM,CAAC,CAAC;EAChE;EAEA,OAAO;IAAEf,aAAa;IAAEY;EAAM,CAAC;AACjC,CAAC;AAED,eAAeb,cAAc","ignoreList":[]}
@@ -23,7 +23,7 @@ import { getWeek } from "date-fns/getWeek";
23
23
  import { enGB, nl } from "date-fns/locale";
24
24
  import { tz } from "@date-fns/tz";
25
25
  import soft from "timezone-soft";
26
- import { DATETIME_OFFSET_FORMAT, DEFAULT_FIRST_WEEK_CONTAINS_DATE, DEFAULT_WEEK_STARTS_ON, getSetting, IS_GRAALJS, isIncludeTimeOffsetInDateTimes, ISO_DATE_FORMAT, ISO_DATETIME_FORMAT, ISO_TIME_FORMAT, ISO_TIMESTAMP_FORMAT } from "../../constants";
26
+ import { DATETIME_OFFSET_FORMAT, DEFAULT_FIRST_WEEK_CONTAINS_DATE, DEFAULT_WEEK_STARTS_ON, getEnabledLocales, getSetting, IS_GRAALJS, isIncludeTimeOffsetInDateTimes, ISO_DATE_FORMAT, ISO_DATETIME_FORMAT, ISO_TIME_FORMAT, ISO_TIMESTAMP_FORMAT } from "../../constants";
27
27
  import { getCookie } from "../browser/Cookies";
28
28
  /**
29
29
  * @hideconstructor
@@ -98,7 +98,8 @@ class BaseDateTimeUtil {
98
98
  /**
99
99
  */
100
100
  getLocale() {
101
- const locale = getCookie("locale") ?? "en";
101
+ const defaultLocale = getEnabledLocales()[0];
102
+ const locale = getCookie("locale") ?? defaultLocale ?? "en";
102
103
  if (locale === "nl") {
103
104
  return nl;
104
105
  }
@@ -25,6 +25,7 @@ import {
25
25
  DATETIME_OFFSET_FORMAT,
26
26
  DEFAULT_FIRST_WEEK_CONTAINS_DATE,
27
27
  DEFAULT_WEEK_STARTS_ON,
28
+ getEnabledLocales,
28
29
  getSetting,
29
30
  IS_GRAALJS,
30
31
  isIncludeTimeOffsetInDateTimes,
@@ -136,7 +137,8 @@ class BaseDateTimeUtil {
136
137
  /**
137
138
  */
138
139
  getLocale(): typeof nl | typeof enGB {
139
- const locale = getCookie("locale") ?? "en";
140
+ const defaultLocale = getEnabledLocales()[0];
141
+ const locale = getCookie("locale") ?? defaultLocale ?? "en";
140
142
 
141
143
  if (locale === "nl") {
142
144
  return nl;
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimeUtil.js","names":["format","isAfter","isBefore","isSameDay","isValid","parse","add","sub","set","startOfMonth","endOfMonth","startOfWeek","getHours","getMinutes","getDay","getWeek","enGB","nl","tz","soft","DATETIME_OFFSET_FORMAT","DEFAULT_FIRST_WEEK_CONTAINS_DATE","DEFAULT_WEEK_STARTS_ON","getSetting","IS_GRAALJS","isIncludeTimeOffsetInDateTimes","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","getCookie","BaseDateTimeUtil","constructor","isoFormat","doOffsets","arguments","length","undefined","_defineProperty","Intl","DateTimeFormat","resolvedOptions","timeZone","_isoFormat","_doOffsets","getOptions","weekStartsOn","firstWeekContainsDate","getIsoFormat","convertFormat","javaFormat","_context","javaToUTS35Map","ZZZ","ZZ","Z","uts35Format","sortedKeys","_sortInstanceProperty","_Object$keys","call","a","b","javaToken","uts35Token","regex","RegExp","replace","getLocale","locale","toDate","date","inputFormat","Date","in","getDateFnsContext","toFormat","targetFormat","parsedDate","toISO","sourceFormat","now","hasFormat","formattedValue","isOutsideRange","toUpperCase","inputDate","afterISODate","isSameOrAfter","isSame","beforeISODate","isSameOrBefore","compareDate","getTime","isOther","isWeekend","SATURDAY_NUMBER","SUNDAY_NUMBER","weekDay","isAmbiguous","dateTime","t","_mapInstanceProperty","x","newDate","minutes","time","indexOf","_calculate","calculationFn","property","value","addSeconds","amount","addMinutes","addHours","addDays","addWeeks","addMonths","addYears","subtractSeconds","subtractMinutes","subtractHours","subtractDays","subtractWeeks","subtractMonths","subtractYears","_get","method","options","_set","setYear","year","setMonth","month","setDay","day","setHour","hour","setMinute","minute","setSecond","second","setMilliseconds","millisecond","setTime","hours","seconds","milliseconds","getTimeZone","_timeZone","setTimeZone","getOffset","dateOffset","offsets","getTimezoneOffsets","daylight","standard","createOffsetObject","info","_context2","_context3","sign","offset","absOffset","Math","abs","_Math$trunc","round","offsetString","_padStartInstanceProperty","String","label","name","abbr","timezone","DateUtil","DateTimeUtil","TimeUtil","TimestampUtil"],"sources":["../../../src/utils/datetime/DateTimeUtil.js"],"sourcesContent":["// @flow\nimport { format } from \"date-fns/format\";\nimport { isAfter } from \"date-fns/isAfter\";\nimport { isBefore } from \"date-fns/isBefore\";\nimport { isSameDay } from \"date-fns/isSameDay\";\nimport { isValid } from \"date-fns/isValid\";\nimport { parse } from \"date-fns/parse\";\nimport { add } from \"date-fns/add\";\nimport { sub } from \"date-fns/sub\";\nimport { set } from \"date-fns/set\";\nimport { startOfMonth } from \"date-fns/startOfMonth\";\nimport { endOfMonth } from \"date-fns/endOfMonth\";\nimport { startOfWeek } from \"date-fns/startOfWeek\";\nimport { getHours } from \"date-fns/getHours\";\nimport { getMinutes } from \"date-fns/getMinutes\";\nimport { getDay } from \"date-fns/getDay\";\nimport { getWeek } from \"date-fns/getWeek\";\n\nimport { enGB, nl } from \"date-fns/locale\";\nimport { tz } from \"@date-fns/tz\";\n\nimport soft from \"timezone-soft\";\n\nimport {\n DATETIME_OFFSET_FORMAT,\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n DEFAULT_WEEK_STARTS_ON,\n getSetting,\n IS_GRAALJS,\n isIncludeTimeOffsetInDateTimes,\n ISO_DATE_FORMAT,\n ISO_DATETIME_FORMAT,\n ISO_TIME_FORMAT,\n ISO_TIMESTAMP_FORMAT,\n} from \"../../constants\";\n\nimport { getCookie } from \"../browser/Cookies\";\n\ntype OffsetInfoInput = {\n abbr: string,\n offset: number,\n name: string,\n};\n\nexport type OffsetInfo = {\n abbr: string,\n label: string,\n value: string,\n};\n\n/**\n * @hideconstructor\n */\nclass BaseDateTimeUtil {\n _isoFormat: string;\n _doOffsets: boolean;\n\n _timeZone: string =\n typeof Intl === \"undefined\"\n ? \"Etc/UTC\"\n : Intl.DateTimeFormat().resolvedOptions().timeZone || \"Etc/UTC\";\n\n constructor(isoFormat: string, doOffsets: boolean = false) {\n this._isoFormat = isoFormat;\n this._doOffsets = doOffsets;\n }\n\n /**\n * Indicates if offsets and timezones are relevant\n */\n get doOffsets(): boolean {\n return this._doOffsets ? isIncludeTimeOffsetInDateTimes() : false;\n }\n\n /**\n * Returns the options defined in settings\n */\n getOptions(): {\n weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6,\n firstWeekContainsDate: 1 | 2 | 3 | 4 | 5 | 6 | 7,\n } {\n // indicates on what day the week starts\n const weekStartsOn = getSetting(\n \"CALENDAR_WEEK_STARTS_ON\",\n DEFAULT_WEEK_STARTS_ON,\n );\n\n // indicates which date indicates the first week of the year\n const firstWeekContainsDate = getSetting(\n \"CALENDAR_FIRST_WEEK_CONTAINS_DATE\",\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n );\n\n return { weekStartsOn, firstWeekContainsDate };\n }\n\n /**\n */\n getIsoFormat(): string {\n if (this.doOffsets) {\n return this._isoFormat + DATETIME_OFFSET_FORMAT;\n }\n return this._isoFormat;\n }\n\n /**\n */\n convertFormat(javaFormat: string): string {\n if (!javaFormat) {\n return this.getIsoFormat();\n }\n\n const javaToUTS35Map = {\n ZZZ: \"xxx\",\n ZZ: \"xx\",\n Z: \"x\",\n };\n\n // Replace Java pattern tokens with UTS #35 tokens\n let uts35Format = javaFormat;\n\n // Sort keys by length (descending) to handle multi-character tokens first\n const sortedKeys = Object.keys(javaToUTS35Map).sort(\n (a, b) => b.length - a.length,\n );\n\n for (const javaToken of sortedKeys) {\n const uts35Token = javaToUTS35Map[javaToken];\n const regex = new RegExp(javaToken, \"g\"); // Match all occurrences\n uts35Format = uts35Format.replace(regex, uts35Token);\n }\n\n return uts35Format;\n }\n\n /**\n */\n getLocale(): typeof nl | typeof enGB {\n const locale = getCookie(\"locale\") ?? \"en\";\n\n if (locale === \"nl\") {\n return nl;\n }\n\n return enGB;\n }\n\n /**\n */\n toDate(date: string | Date, inputFormat: string = this.getIsoFormat()): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return parse(date, inputFormat, new Date(), {\n in: this.getDateFnsContext(),\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n */\n toFormat(\n date: string | Date,\n targetFormat: string,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate = this.toDate(date, inputFormat);\n\n if (isValid(parsedDate)) {\n return format(parsedDate, targetFormat, {\n in: this.getDateFnsContext(),\n weekStartsOn,\n locale: this.getLocale(),\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n toISO(\n date: string | Date,\n sourceFormat: string = this.getIsoFormat(),\n ): string {\n return this.toFormat(date, this.getIsoFormat(), sourceFormat);\n }\n\n /**\n */\n now(): string {\n return this.toISO(new Date());\n }\n\n //////////// VALIDATION\n\n /**\n */\n hasFormat(date: string, sourceFormat: string): boolean {\n const parsedDate = this.toDate(date, sourceFormat);\n\n const formattedValue = this.toFormat(parsedDate, sourceFormat);\n if (formattedValue === \"Invalid Date\") {\n return false;\n }\n\n const isOutsideRange =\n isBefore(parsedDate, new Date(1000, 1, 1)) ||\n isAfter(parsedDate, new Date(9999, 11, 31));\n if (isOutsideRange) {\n return false;\n }\n\n return (\n formattedValue.replace(/0/gu, \"\").toUpperCase() ===\n date.replace(/0/gu, \"\").toUpperCase()\n );\n }\n\n /**\n */\n isValid(\n date: string | Date | null | void,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n if (!date) {\n return false;\n }\n\n const parsedDate = this.toDate(date, inputFormat);\n return isValid(parsedDate);\n }\n\n /**\n */\n isAfter(\n inputDate: string | Date,\n afterISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n afterISODate != null &&\n isAfter(this.toDate(inputDate, inputFormat), this.toDate(afterISODate))\n );\n }\n\n /**\n */\n isSameOrAfter(\n inputDate: string | Date,\n afterISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n afterISODate != null &&\n (this.isAfter(inputDate, afterISODate, inputFormat) ||\n this.isSame(inputDate, afterISODate, inputFormat))\n );\n }\n\n /**\n */\n isBefore(\n inputDate: string | Date,\n beforeISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n beforeISODate != null &&\n isBefore(this.toDate(inputDate, inputFormat), this.toDate(beforeISODate))\n );\n }\n\n /**\n */\n isSameOrBefore(\n inputDate: string | Date,\n beforeISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n beforeISODate != null &&\n (this.isBefore(inputDate, beforeISODate, inputFormat) ||\n this.isSame(inputDate, beforeISODate, inputFormat))\n );\n }\n\n /**\n */\n isSame(\n inputDate: string | Date,\n compareDate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n compareDate != null &&\n this.toDate(inputDate, inputFormat).getTime() ===\n this.toDate(compareDate).getTime()\n );\n }\n\n /**\n */\n isSameDay(\n inputDate: string | Date,\n compareDate: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n compareDate != null &&\n isSameDay(\n this.toDate(inputDate, inputFormat),\n this.toDate(compareDate, inputFormat),\n )\n );\n }\n\n /**\n */\n isOther(\n inputDate: string | Date,\n compareDate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return !this.isSame(inputDate, compareDate, inputFormat);\n }\n\n /**\n */\n isWeekend(inputDate: string | Date): boolean {\n const SATURDAY_NUMBER = 6;\n const SUNDAY_NUMBER = 0;\n const weekDay = getDay(this.toDate(inputDate));\n\n return weekDay === SATURDAY_NUMBER || weekDay === SUNDAY_NUMBER;\n }\n\n /**\n * Checks if a given local date and time is ambiguous in the specified timezone.\n * Ambiguity happens during the end of daylight saving time (DST) transitions.\n */\n isAmbiguous(\n inputDate: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n if (inputDate == null || typeof Intl === \"undefined\") {\n return false;\n }\n\n const dateTime = this.toDate(inputDate, inputFormat);\n if (!isValid(dateTime)) {\n return false;\n }\n\n const t = [60, -60, 30, -30];\n const a = t.map((x) => {\n const newDate = add(dateTime, { minutes: x });\n return format(newDate, \"HH:mm\");\n });\n const time = format(dateTime, \"HH:mm\");\n return a.indexOf(time) > -1;\n }\n\n //////////// CALCULATIONS\n\n /**\n * @private\n */\n _calculate(\n date: string | Date,\n calculationFn: Function,\n property: string,\n value: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n calculationFn(\n parsedDate,\n { [property]: value },\n {\n in: this.getDateFnsContext(),\n },\n ),\n );\n }\n\n /**\n */\n addSeconds(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"seconds\", amount, inputFormat);\n }\n\n /**\n */\n addMinutes(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"minutes\", amount, inputFormat);\n }\n\n /**\n */\n addHours(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"hours\", amount, inputFormat);\n }\n\n /**\n */\n addDays(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"days\", amount, inputFormat);\n }\n\n /**\n */\n addWeeks(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"weeks\", amount, inputFormat);\n }\n\n /**\n */\n addMonths(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"months\", amount, inputFormat);\n }\n\n /**\n */\n addYears(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"years\", amount, inputFormat);\n }\n\n /**\n */\n subtractSeconds(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"seconds\", amount, inputFormat);\n }\n\n /**\n */\n subtractMinutes(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"minutes\", amount, inputFormat);\n }\n\n /**\n */\n subtractHours(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"hours\", amount, inputFormat);\n }\n\n /**\n */\n subtractDays(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"days\", amount, inputFormat);\n }\n\n /**\n */\n subtractWeeks(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"weeks\", amount, inputFormat);\n }\n\n /**\n */\n subtractMonths(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"months\", amount, inputFormat);\n }\n\n /**\n */\n subtractYears(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"years\", amount, inputFormat);\n }\n\n //////////// GETTERS\n\n /**\n * @private\n */\n _get(\n date: string | Date,\n method: Function,\n inputFormat: string = this.getIsoFormat(),\n options: Object = {},\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n method(parsedDate, {\n in: this.getDateFnsContext(),\n ...options,\n }),\n );\n }\n\n /**\n */\n startOfMonth(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._get(date, startOfMonth, inputFormat);\n }\n\n /**\n */\n endOfMonth(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._get(date, endOfMonth, inputFormat);\n }\n\n /**\n */\n startOfWeek(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const { weekStartsOn } = this.getOptions();\n return this._get(date, startOfWeek, inputFormat, {\n weekStartsOn,\n });\n }\n\n /**\n */\n getHours(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const parsedDate = this.toDate(date, inputFormat);\n return getHours(parsedDate, { in: this.getDateFnsContext() });\n }\n\n /**\n */\n getMinutes(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const parsedDate = this.toDate(date, inputFormat);\n return getMinutes(parsedDate, { in: this.getDateFnsContext() });\n }\n\n /**\n */\n getWeek(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n const parsedDate = this.toDate(date, inputFormat);\n return getWeek(parsedDate, {\n in: this.getDateFnsContext(),\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n //////////// SETTERS\n\n /**\n * @private\n */\n _set(\n date: string | Date,\n property: string,\n value: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n set(\n parsedDate,\n { [property]: value },\n // {\n // in: this.getDateFnsContext(),\n // },\n ),\n );\n }\n\n /**\n */\n setYear(\n date: string | Date,\n year: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"year\", year, inputFormat);\n }\n\n /**\n */\n setMonth(\n date: string | Date,\n month: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"month\", month, inputFormat);\n }\n\n /**\n */\n setDay(\n date: string | Date,\n day: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"date\", day, inputFormat);\n }\n\n /**\n */\n setHour(\n date: string | Date,\n hour: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"hours\", hour, inputFormat);\n }\n\n /**\n */\n setMinute(\n date: string | Date,\n minute: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"minutes\", minute, inputFormat);\n }\n\n /**\n */\n setSecond(\n date: string | Date,\n second: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"seconds\", second, inputFormat);\n }\n\n /**\n */\n setMilliseconds(\n date: string | Date,\n millisecond: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"milliseconds\", millisecond, inputFormat);\n }\n\n /**\n */\n setTime(\n date: string,\n hours: number,\n minutes: number,\n seconds: number,\n milliseconds: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n set(\n parsedDate,\n { hours, minutes, seconds, milliseconds },\n {\n in: this.getDateFnsContext(),\n },\n ),\n );\n }\n\n //////////// Timezone related\n\n /**\n */\n getTimeZone(): string {\n return this._timeZone;\n }\n\n /**\n */\n setTimeZone(timeZone: string) {\n this._timeZone = timeZone;\n }\n\n /**\n */\n getDateFnsContext(): null | Function {\n if (this.doOffsets && !IS_GRAALJS) {\n return tz(this.getTimeZone());\n }\n return undefined;\n }\n\n //////////// Offsets\n\n /**\n */\n getOffset(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): OffsetInfo | null {\n const parsedDate = this.toDate(date, inputFormat);\n if (isValid(parsedDate)) {\n const dateOffset = this.toFormat(parsedDate, DATETIME_OFFSET_FORMAT);\n const offsets = this.getTimezoneOffsets();\n if (\n typeof offsets.daylight !== \"undefined\" &&\n offsets.daylight.value === dateOffset\n ) {\n return offsets.daylight;\n } else if (\n typeof offsets.standard !== \"undefined\" &&\n offsets.standard.value === dateOffset\n ) {\n return offsets.standard;\n }\n }\n return null;\n }\n\n /**\n */\n getTimezoneOffsets(): {\n standard?: OffsetInfo,\n daylight?: OffsetInfo,\n } {\n const createOffsetObject = (info: OffsetInfoInput): OffsetInfo => {\n const sign = info.offset < 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(info.offset);\n const hours = Math.trunc(absOffset);\n const minutes = Math.round((absOffset % 1) * 60);\n\n const offsetString = `${sign}${String(hours + (minutes === 60 ? 1 : 0)).padStart(2, \"0\")}:${String(minutes % 60).padStart(2, \"0\")}`;\n\n return {\n label: info.name,\n abbr: info.abbr,\n value: offsetString,\n };\n };\n\n const timezone = soft(this.getTimeZone());\n\n if (timezone.length === 0) {\n return {\n standard: {\n label: \"Etc/UTC\",\n abbr: \"Etc/UTC\",\n value: \"+00:00\",\n },\n };\n }\n\n const { daylight, standard } = timezone[0];\n\n if (daylight) {\n return {\n daylight: createOffsetObject(daylight),\n standard: createOffsetObject(standard),\n };\n }\n\n return { standard: createOffsetObject(standard) };\n }\n}\n\n/**\n * DateUtil\n */\nconst DateUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_DATE_FORMAT);\n\n/**\n * DateTimeUtil\n */\nconst DateTimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_DATETIME_FORMAT,\n true,\n);\n\n/**\n * TimeUtil\n */\nconst TimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_TIME_FORMAT);\n\n/**\n * TimestampUtil\n */\nconst TimestampUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_TIMESTAMP_FORMAT,\n true,\n);\n\nexport { DateUtil, DateTimeUtil, TimeUtil, TimestampUtil };\n"],"mappings":";;;;;;AACA,SAASA,MAAM,QAAQ,iBAAiB;AACxC,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,KAAK,QAAQ,gBAAgB;AACtC,SAASC,GAAG,QAAQ,cAAc;AAClC,SAASC,GAAG,QAAQ,cAAc;AAClC,SAASC,GAAG,QAAQ,cAAc;AAClC,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,WAAW,QAAQ,sBAAsB;AAClD,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,UAAU,QAAQ,qBAAqB;AAChD,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,OAAO,QAAQ,kBAAkB;AAE1C,SAASC,IAAI,EAAEC,EAAE,QAAQ,iBAAiB;AAC1C,SAASC,EAAE,QAAQ,cAAc;AAEjC,OAAOC,IAAI,MAAM,eAAe;AAEhC,SACEC,sBAAsB,EACtBC,gCAAgC,EAChCC,sBAAsB,EACtBC,UAAU,EACVC,UAAU,EACVC,8BAA8B,EAC9BC,eAAe,EAC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,gBAAgB,CAACL,eAAe,CAAC;;AAExE;AACA;AACA;AACA,MAAMuJ,YAA8B,GAAG,IAAIlJ,gBAAgB,CACzDJ,mBAAmB,EACnB,IACF,CAAC;;AAED;AACA;AACA;AACA,MAAMuJ,QAA0B,GAAG,IAAInJ,gBAAgB,CAACH,eAAe,CAAC;;AAExE;AACA;AACA;AACA,MAAMuJ,aAA+B,GAAG,IAAIpJ,gBAAgB,CAC1DF,oBAAoB,EACpB,IACF,CAAC;AAED,SAASmJ,QAAQ,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"DateTimeUtil.js","names":["format","isAfter","isBefore","isSameDay","isValid","parse","add","sub","set","startOfMonth","endOfMonth","startOfWeek","getHours","getMinutes","getDay","getWeek","enGB","nl","tz","soft","DATETIME_OFFSET_FORMAT","DEFAULT_FIRST_WEEK_CONTAINS_DATE","DEFAULT_WEEK_STARTS_ON","getEnabledLocales","getSetting","IS_GRAALJS","isIncludeTimeOffsetInDateTimes","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","getCookie","BaseDateTimeUtil","constructor","isoFormat","doOffsets","arguments","length","undefined","_defineProperty","Intl","DateTimeFormat","resolvedOptions","timeZone","_isoFormat","_doOffsets","getOptions","weekStartsOn","firstWeekContainsDate","getIsoFormat","convertFormat","javaFormat","_context","javaToUTS35Map","ZZZ","ZZ","Z","uts35Format","sortedKeys","_sortInstanceProperty","_Object$keys","call","a","b","javaToken","uts35Token","regex","RegExp","replace","getLocale","defaultLocale","locale","toDate","date","inputFormat","Date","in","getDateFnsContext","toFormat","targetFormat","parsedDate","toISO","sourceFormat","now","hasFormat","formattedValue","isOutsideRange","toUpperCase","inputDate","afterISODate","isSameOrAfter","isSame","beforeISODate","isSameOrBefore","compareDate","getTime","isOther","isWeekend","SATURDAY_NUMBER","SUNDAY_NUMBER","weekDay","isAmbiguous","dateTime","t","_mapInstanceProperty","x","newDate","minutes","time","indexOf","_calculate","calculationFn","property","value","addSeconds","amount","addMinutes","addHours","addDays","addWeeks","addMonths","addYears","subtractSeconds","subtractMinutes","subtractHours","subtractDays","subtractWeeks","subtractMonths","subtractYears","_get","method","options","_set","setYear","year","setMonth","month","setDay","day","setHour","hour","setMinute","minute","setSecond","second","setMilliseconds","millisecond","setTime","hours","seconds","milliseconds","getTimeZone","_timeZone","setTimeZone","getOffset","dateOffset","offsets","getTimezoneOffsets","daylight","standard","createOffsetObject","info","_context2","_context3","sign","offset","absOffset","Math","abs","_Math$trunc","round","offsetString","_padStartInstanceProperty","String","label","name","abbr","timezone","DateUtil","DateTimeUtil","TimeUtil","TimestampUtil"],"sources":["../../../src/utils/datetime/DateTimeUtil.js"],"sourcesContent":["// @flow\nimport { format } from \"date-fns/format\";\nimport { isAfter } from \"date-fns/isAfter\";\nimport { isBefore } from \"date-fns/isBefore\";\nimport { isSameDay } from \"date-fns/isSameDay\";\nimport { isValid } from \"date-fns/isValid\";\nimport { parse } from \"date-fns/parse\";\nimport { add } from \"date-fns/add\";\nimport { sub } from \"date-fns/sub\";\nimport { set } from \"date-fns/set\";\nimport { startOfMonth } from \"date-fns/startOfMonth\";\nimport { endOfMonth } from \"date-fns/endOfMonth\";\nimport { startOfWeek } from \"date-fns/startOfWeek\";\nimport { getHours } from \"date-fns/getHours\";\nimport { getMinutes } from \"date-fns/getMinutes\";\nimport { getDay } from \"date-fns/getDay\";\nimport { getWeek } from \"date-fns/getWeek\";\n\nimport { enGB, nl } from \"date-fns/locale\";\nimport { tz } from \"@date-fns/tz\";\n\nimport soft from \"timezone-soft\";\n\nimport {\n DATETIME_OFFSET_FORMAT,\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n DEFAULT_WEEK_STARTS_ON,\n getEnabledLocales,\n getSetting,\n IS_GRAALJS,\n isIncludeTimeOffsetInDateTimes,\n ISO_DATE_FORMAT,\n ISO_DATETIME_FORMAT,\n ISO_TIME_FORMAT,\n ISO_TIMESTAMP_FORMAT,\n} from \"../../constants\";\n\nimport { getCookie } from \"../browser/Cookies\";\n\ntype OffsetInfoInput = {\n abbr: string,\n offset: number,\n name: string,\n};\n\nexport type OffsetInfo = {\n abbr: string,\n label: string,\n value: string,\n};\n\n/**\n * @hideconstructor\n */\nclass BaseDateTimeUtil {\n _isoFormat: string;\n _doOffsets: boolean;\n\n _timeZone: string =\n typeof Intl === \"undefined\"\n ? \"Etc/UTC\"\n : Intl.DateTimeFormat().resolvedOptions().timeZone || \"Etc/UTC\";\n\n constructor(isoFormat: string, doOffsets: boolean = false) {\n this._isoFormat = isoFormat;\n this._doOffsets = doOffsets;\n }\n\n /**\n * Indicates if offsets and timezones are relevant\n */\n get doOffsets(): boolean {\n return this._doOffsets ? isIncludeTimeOffsetInDateTimes() : false;\n }\n\n /**\n * Returns the options defined in settings\n */\n getOptions(): {\n weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6,\n firstWeekContainsDate: 1 | 2 | 3 | 4 | 5 | 6 | 7,\n } {\n // indicates on what day the week starts\n const weekStartsOn = getSetting(\n \"CALENDAR_WEEK_STARTS_ON\",\n DEFAULT_WEEK_STARTS_ON,\n );\n\n // indicates which date indicates the first week of the year\n const firstWeekContainsDate = getSetting(\n \"CALENDAR_FIRST_WEEK_CONTAINS_DATE\",\n DEFAULT_FIRST_WEEK_CONTAINS_DATE,\n );\n\n return { weekStartsOn, firstWeekContainsDate };\n }\n\n /**\n */\n getIsoFormat(): string {\n if (this.doOffsets) {\n return this._isoFormat + DATETIME_OFFSET_FORMAT;\n }\n return this._isoFormat;\n }\n\n /**\n */\n convertFormat(javaFormat: string): string {\n if (!javaFormat) {\n return this.getIsoFormat();\n }\n\n const javaToUTS35Map = {\n ZZZ: \"xxx\",\n ZZ: \"xx\",\n Z: \"x\",\n };\n\n // Replace Java pattern tokens with UTS #35 tokens\n let uts35Format = javaFormat;\n\n // Sort keys by length (descending) to handle multi-character tokens first\n const sortedKeys = Object.keys(javaToUTS35Map).sort(\n (a, b) => b.length - a.length,\n );\n\n for (const javaToken of sortedKeys) {\n const uts35Token = javaToUTS35Map[javaToken];\n const regex = new RegExp(javaToken, \"g\"); // Match all occurrences\n uts35Format = uts35Format.replace(regex, uts35Token);\n }\n\n return uts35Format;\n }\n\n /**\n */\n getLocale(): typeof nl | typeof enGB {\n const defaultLocale = getEnabledLocales()[0];\n const locale = getCookie(\"locale\") ?? defaultLocale ?? \"en\";\n\n if (locale === \"nl\") {\n return nl;\n }\n\n return enGB;\n }\n\n /**\n */\n toDate(date: string | Date, inputFormat: string = this.getIsoFormat()): Date {\n if (date instanceof Date) {\n return date;\n }\n\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n\n return parse(date, inputFormat, new Date(), {\n in: this.getDateFnsContext(),\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n /**\n */\n toFormat(\n date: string | Date,\n targetFormat: string,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const { weekStartsOn } = this.getOptions();\n\n const parsedDate = this.toDate(date, inputFormat);\n\n if (isValid(parsedDate)) {\n return format(parsedDate, targetFormat, {\n in: this.getDateFnsContext(),\n weekStartsOn,\n locale: this.getLocale(),\n });\n }\n\n return \"Invalid Date\";\n }\n\n /**\n */\n toISO(\n date: string | Date,\n sourceFormat: string = this.getIsoFormat(),\n ): string {\n return this.toFormat(date, this.getIsoFormat(), sourceFormat);\n }\n\n /**\n */\n now(): string {\n return this.toISO(new Date());\n }\n\n //////////// VALIDATION\n\n /**\n */\n hasFormat(date: string, sourceFormat: string): boolean {\n const parsedDate = this.toDate(date, sourceFormat);\n\n const formattedValue = this.toFormat(parsedDate, sourceFormat);\n if (formattedValue === \"Invalid Date\") {\n return false;\n }\n\n const isOutsideRange =\n isBefore(parsedDate, new Date(1000, 1, 1)) ||\n isAfter(parsedDate, new Date(9999, 11, 31));\n if (isOutsideRange) {\n return false;\n }\n\n return (\n formattedValue.replace(/0/gu, \"\").toUpperCase() ===\n date.replace(/0/gu, \"\").toUpperCase()\n );\n }\n\n /**\n */\n isValid(\n date: string | Date | null | void,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n if (!date) {\n return false;\n }\n\n const parsedDate = this.toDate(date, inputFormat);\n return isValid(parsedDate);\n }\n\n /**\n */\n isAfter(\n inputDate: string | Date,\n afterISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n afterISODate != null &&\n isAfter(this.toDate(inputDate, inputFormat), this.toDate(afterISODate))\n );\n }\n\n /**\n */\n isSameOrAfter(\n inputDate: string | Date,\n afterISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n afterISODate != null &&\n (this.isAfter(inputDate, afterISODate, inputFormat) ||\n this.isSame(inputDate, afterISODate, inputFormat))\n );\n }\n\n /**\n */\n isBefore(\n inputDate: string | Date,\n beforeISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n beforeISODate != null &&\n isBefore(this.toDate(inputDate, inputFormat), this.toDate(beforeISODate))\n );\n }\n\n /**\n */\n isSameOrBefore(\n inputDate: string | Date,\n beforeISODate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n beforeISODate != null &&\n (this.isBefore(inputDate, beforeISODate, inputFormat) ||\n this.isSame(inputDate, beforeISODate, inputFormat))\n );\n }\n\n /**\n */\n isSame(\n inputDate: string | Date,\n compareDate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n compareDate != null &&\n this.toDate(inputDate, inputFormat).getTime() ===\n this.toDate(compareDate).getTime()\n );\n }\n\n /**\n */\n isSameDay(\n inputDate: string | Date,\n compareDate: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return (\n compareDate != null &&\n isSameDay(\n this.toDate(inputDate, inputFormat),\n this.toDate(compareDate, inputFormat),\n )\n );\n }\n\n /**\n */\n isOther(\n inputDate: string | Date,\n compareDate: ?string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n return !this.isSame(inputDate, compareDate, inputFormat);\n }\n\n /**\n */\n isWeekend(inputDate: string | Date): boolean {\n const SATURDAY_NUMBER = 6;\n const SUNDAY_NUMBER = 0;\n const weekDay = getDay(this.toDate(inputDate));\n\n return weekDay === SATURDAY_NUMBER || weekDay === SUNDAY_NUMBER;\n }\n\n /**\n * Checks if a given local date and time is ambiguous in the specified timezone.\n * Ambiguity happens during the end of daylight saving time (DST) transitions.\n */\n isAmbiguous(\n inputDate: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): boolean {\n if (inputDate == null || typeof Intl === \"undefined\") {\n return false;\n }\n\n const dateTime = this.toDate(inputDate, inputFormat);\n if (!isValid(dateTime)) {\n return false;\n }\n\n const t = [60, -60, 30, -30];\n const a = t.map((x) => {\n const newDate = add(dateTime, { minutes: x });\n return format(newDate, \"HH:mm\");\n });\n const time = format(dateTime, \"HH:mm\");\n return a.indexOf(time) > -1;\n }\n\n //////////// CALCULATIONS\n\n /**\n * @private\n */\n _calculate(\n date: string | Date,\n calculationFn: Function,\n property: string,\n value: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n calculationFn(\n parsedDate,\n { [property]: value },\n {\n in: this.getDateFnsContext(),\n },\n ),\n );\n }\n\n /**\n */\n addSeconds(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"seconds\", amount, inputFormat);\n }\n\n /**\n */\n addMinutes(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"minutes\", amount, inputFormat);\n }\n\n /**\n */\n addHours(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"hours\", amount, inputFormat);\n }\n\n /**\n */\n addDays(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"days\", amount, inputFormat);\n }\n\n /**\n */\n addWeeks(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"weeks\", amount, inputFormat);\n }\n\n /**\n */\n addMonths(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"months\", amount, inputFormat);\n }\n\n /**\n */\n addYears(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, add, \"years\", amount, inputFormat);\n }\n\n /**\n */\n subtractSeconds(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"seconds\", amount, inputFormat);\n }\n\n /**\n */\n subtractMinutes(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"minutes\", amount, inputFormat);\n }\n\n /**\n */\n subtractHours(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"hours\", amount, inputFormat);\n }\n\n /**\n */\n subtractDays(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"days\", amount, inputFormat);\n }\n\n /**\n */\n subtractWeeks(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"weeks\", amount, inputFormat);\n }\n\n /**\n */\n subtractMonths(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"months\", amount, inputFormat);\n }\n\n /**\n */\n subtractYears(\n date: string,\n amount: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._calculate(date, sub, \"years\", amount, inputFormat);\n }\n\n //////////// GETTERS\n\n /**\n * @private\n */\n _get(\n date: string | Date,\n method: Function,\n inputFormat: string = this.getIsoFormat(),\n options: Object = {},\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n method(parsedDate, {\n in: this.getDateFnsContext(),\n ...options,\n }),\n );\n }\n\n /**\n */\n startOfMonth(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._get(date, startOfMonth, inputFormat);\n }\n\n /**\n */\n endOfMonth(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._get(date, endOfMonth, inputFormat);\n }\n\n /**\n */\n startOfWeek(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const { weekStartsOn } = this.getOptions();\n return this._get(date, startOfWeek, inputFormat, {\n weekStartsOn,\n });\n }\n\n /**\n */\n getHours(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const parsedDate = this.toDate(date, inputFormat);\n return getHours(parsedDate, { in: this.getDateFnsContext() });\n }\n\n /**\n */\n getMinutes(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const parsedDate = this.toDate(date, inputFormat);\n return getMinutes(parsedDate, { in: this.getDateFnsContext() });\n }\n\n /**\n */\n getWeek(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): number {\n const { weekStartsOn, firstWeekContainsDate } = this.getOptions();\n const parsedDate = this.toDate(date, inputFormat);\n return getWeek(parsedDate, {\n in: this.getDateFnsContext(),\n weekStartsOn,\n firstWeekContainsDate,\n });\n }\n\n //////////// SETTERS\n\n /**\n * @private\n */\n _set(\n date: string | Date,\n property: string,\n value: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n set(\n parsedDate,\n { [property]: value },\n // {\n // in: this.getDateFnsContext(),\n // },\n ),\n );\n }\n\n /**\n */\n setYear(\n date: string | Date,\n year: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"year\", year, inputFormat);\n }\n\n /**\n */\n setMonth(\n date: string | Date,\n month: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"month\", month, inputFormat);\n }\n\n /**\n */\n setDay(\n date: string | Date,\n day: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"date\", day, inputFormat);\n }\n\n /**\n */\n setHour(\n date: string | Date,\n hour: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"hours\", hour, inputFormat);\n }\n\n /**\n */\n setMinute(\n date: string | Date,\n minute: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"minutes\", minute, inputFormat);\n }\n\n /**\n */\n setSecond(\n date: string | Date,\n second: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"seconds\", second, inputFormat);\n }\n\n /**\n */\n setMilliseconds(\n date: string | Date,\n millisecond: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n return this._set(date, \"milliseconds\", millisecond, inputFormat);\n }\n\n /**\n */\n setTime(\n date: string,\n hours: number,\n minutes: number,\n seconds: number,\n milliseconds: number,\n inputFormat: string = this.getIsoFormat(),\n ): string {\n const parsedDate = this.toDate(date, inputFormat);\n return this.toISO(\n set(\n parsedDate,\n { hours, minutes, seconds, milliseconds },\n {\n in: this.getDateFnsContext(),\n },\n ),\n );\n }\n\n //////////// Timezone related\n\n /**\n */\n getTimeZone(): string {\n return this._timeZone;\n }\n\n /**\n */\n setTimeZone(timeZone: string) {\n this._timeZone = timeZone;\n }\n\n /**\n */\n getDateFnsContext(): null | Function {\n if (this.doOffsets && !IS_GRAALJS) {\n return tz(this.getTimeZone());\n }\n return undefined;\n }\n\n //////////// Offsets\n\n /**\n */\n getOffset(\n date: string | Date,\n inputFormat: string = this.getIsoFormat(),\n ): OffsetInfo | null {\n const parsedDate = this.toDate(date, inputFormat);\n if (isValid(parsedDate)) {\n const dateOffset = this.toFormat(parsedDate, DATETIME_OFFSET_FORMAT);\n const offsets = this.getTimezoneOffsets();\n if (\n typeof offsets.daylight !== \"undefined\" &&\n offsets.daylight.value === dateOffset\n ) {\n return offsets.daylight;\n } else if (\n typeof offsets.standard !== \"undefined\" &&\n offsets.standard.value === dateOffset\n ) {\n return offsets.standard;\n }\n }\n return null;\n }\n\n /**\n */\n getTimezoneOffsets(): {\n standard?: OffsetInfo,\n daylight?: OffsetInfo,\n } {\n const createOffsetObject = (info: OffsetInfoInput): OffsetInfo => {\n const sign = info.offset < 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(info.offset);\n const hours = Math.trunc(absOffset);\n const minutes = Math.round((absOffset % 1) * 60);\n\n const offsetString = `${sign}${String(hours + (minutes === 60 ? 1 : 0)).padStart(2, \"0\")}:${String(minutes % 60).padStart(2, \"0\")}`;\n\n return {\n label: info.name,\n abbr: info.abbr,\n value: offsetString,\n };\n };\n\n const timezone = soft(this.getTimeZone());\n\n if (timezone.length === 0) {\n return {\n standard: {\n label: \"Etc/UTC\",\n abbr: \"Etc/UTC\",\n value: \"+00:00\",\n },\n };\n }\n\n const { daylight, standard } = timezone[0];\n\n if (daylight) {\n return {\n daylight: createOffsetObject(daylight),\n standard: createOffsetObject(standard),\n };\n }\n\n return { standard: createOffsetObject(standard) };\n }\n}\n\n/**\n * DateUtil\n */\nconst DateUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_DATE_FORMAT);\n\n/**\n * DateTimeUtil\n */\nconst DateTimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_DATETIME_FORMAT,\n true,\n);\n\n/**\n * TimeUtil\n */\nconst TimeUtil: BaseDateTimeUtil = new BaseDateTimeUtil(ISO_TIME_FORMAT);\n\n/**\n * TimestampUtil\n */\nconst TimestampUtil: BaseDateTimeUtil = new BaseDateTimeUtil(\n ISO_TIMESTAMP_FORMAT,\n true,\n);\n\nexport { DateUtil, DateTimeUtil, TimeUtil, TimestampUtil };\n"],"mappings":";;;;;;AACA,SAASA,MAAM,QAAQ,iBAAiB;AACxC,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,SAAS,QAAQ,oBAAoB;AAC9C,S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