@beinformed/ui 1.34.1 → 1.34.2

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 (291) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/esm/react-client/client.js +1 -2
  3. package/esm/react-client/client.js.map +1 -1
  4. package/lib/builder/__tests__/mergeLayoutHintConfigurations.spec.js.flow +1 -1
  5. package/lib/constants/Constants.js +33 -66
  6. package/lib/constants/Constants.js.map +1 -1
  7. package/lib/constants/LayoutHintConfig.js +1 -2
  8. package/lib/constants/LayoutHintConfig.js.map +1 -1
  9. package/lib/constants/LayoutHints.js +18 -36
  10. package/lib/constants/LayoutHints.js.map +1 -1
  11. package/lib/constants/Settings.js +3 -6
  12. package/lib/constants/Settings.js.map +1 -1
  13. package/lib/exceptions/ConfigurationException.js +1 -2
  14. package/lib/exceptions/ConfigurationException.js.map +1 -1
  15. package/lib/exceptions/IllegalArgumentException.js +1 -2
  16. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  17. package/lib/exceptions/IllegalReturnException.js +1 -2
  18. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  19. package/lib/exceptions/IllegalStateException.js +1 -2
  20. package/lib/exceptions/IllegalStateException.js.map +1 -1
  21. package/lib/exceptions/JsonParseException.js +1 -2
  22. package/lib/exceptions/JsonParseException.js.map +1 -1
  23. package/lib/exceptions/MissingPropertyException.js +1 -2
  24. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  25. package/lib/exceptions/NetworkException.js +1 -2
  26. package/lib/exceptions/NetworkException.js.map +1 -1
  27. package/lib/exceptions/NotAllowedUriException.js +1 -2
  28. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  29. package/lib/exceptions/NotFoundException.js +1 -2
  30. package/lib/exceptions/NotFoundException.js.map +1 -1
  31. package/lib/exceptions/ServerRequestException.js +1 -2
  32. package/lib/exceptions/ServerRequestException.js.map +1 -1
  33. package/lib/exceptions/ThemePropertyException.js +1 -2
  34. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  35. package/lib/exceptions/TimeoutException.js +1 -2
  36. package/lib/exceptions/TimeoutException.js.map +1 -1
  37. package/lib/exceptions/UnauthorizedException.js +1 -2
  38. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  39. package/lib/exceptions/UnsupportedOperationException.js +1 -2
  40. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  41. package/lib/hooks/useDeepCompareEffect.js +1 -2
  42. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  43. package/lib/i18n/Locale.js +1 -2
  44. package/lib/i18n/Locale.js.map +1 -1
  45. package/lib/i18n/Locales.js +2 -4
  46. package/lib/i18n/Locales.js.map +1 -1
  47. package/lib/i18n/Message.js +1 -2
  48. package/lib/i18n/Message.js.map +1 -1
  49. package/lib/i18n/languages.js +1 -2
  50. package/lib/i18n/languages.js.map +1 -1
  51. package/lib/i18n/translations/beinformed_error_messages_en.nl.js +1 -2
  52. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  53. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +1 -2
  54. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  55. package/lib/i18n/withMessage.js +1 -2
  56. package/lib/i18n/withMessage.js.map +1 -1
  57. package/lib/models/attributes/AttributeCollection.js +1 -2
  58. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  59. package/lib/models/attributes/AttributeContent.js +1 -2
  60. package/lib/models/attributes/AttributeContent.js.map +1 -1
  61. package/lib/models/attributes/AttributeDataHelper.js +1 -2
  62. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  63. package/lib/models/attributes/ChoiceAttributeOptionCollection.js +1 -2
  64. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  65. package/lib/models/attributes/ChoiceAttributeOptionModel.js +1 -2
  66. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  67. package/lib/models/attributes/CompositeAttributeChildCollection.js +1 -2
  68. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  69. package/lib/models/attributes/CompositeAttributeModel.js +1 -2
  70. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  71. package/lib/models/attributes/DatetimeAttributeModel.js +1 -2
  72. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  73. package/lib/models/attributes/_createAttribute.js +1 -2
  74. package/lib/models/attributes/_createAttribute.js.map +1 -1
  75. package/lib/models/attributes/input-constraints/BSNConstraint.js +1 -2
  76. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  77. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +1 -2
  78. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  79. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +1 -2
  80. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  81. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +1 -2
  82. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  83. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +1 -2
  84. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  85. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +1 -2
  86. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  87. package/lib/models/attributes/input-constraints/FileSizeConstraint.js +1 -2
  88. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  89. package/lib/models/attributes/input-constraints/IBANConstraint.js +1 -2
  90. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  91. package/lib/models/attributes/input-constraints/MandatoryConstraint.js +1 -2
  92. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  93. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +1 -2
  94. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  95. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +1 -2
  96. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  97. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +1 -2
  98. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  99. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +1 -2
  100. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  101. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +1 -2
  102. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  103. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +1 -2
  104. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  105. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +1 -2
  106. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  107. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +1 -2
  108. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  109. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +1 -2
  110. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  111. package/lib/models/attributes/input-constraints/RangeConstraint.js +1 -2
  112. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  113. package/lib/models/attributes/input-constraints/RegexConstraint.js +1 -2
  114. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  115. package/lib/models/attributes/input-constraints/StringLengthConstraint.js +1 -2
  116. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  117. package/lib/models/attributes/input-constraints/XMLConstraint.js +1 -2
  118. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  119. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +1 -2
  120. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  121. package/lib/models/attributes/layouthint-rules/DependentAttribute.js +1 -2
  122. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  123. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +1 -2
  124. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  125. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +1 -2
  126. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  127. package/lib/models/base/BaseCollection.js +1 -2
  128. package/lib/models/base/BaseCollection.js.map +1 -1
  129. package/lib/models/base/BaseModel.js +1 -2
  130. package/lib/models/base/BaseModel.js.map +1 -1
  131. package/lib/models/base/ResourceCollection.js +1 -2
  132. package/lib/models/base/ResourceCollection.js.map +1 -1
  133. package/lib/models/base/ResourceModel.js +1 -2
  134. package/lib/models/base/ResourceModel.js.map +1 -1
  135. package/lib/models/concepts/BusinessScenarioModel.js +1 -2
  136. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  137. package/lib/models/concepts/ConceptTypeDetailModel.js +1 -2
  138. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  139. package/lib/models/concepts/SourceReferenceModel.js +1 -2
  140. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  141. package/lib/models/content/SectionModel.js +1 -2
  142. package/lib/models/content/SectionModel.js.map +1 -1
  143. package/lib/models/contentconfiguration/ContentConfigurationElements.js +1 -2
  144. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  145. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +1 -2
  146. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  147. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +1 -2
  148. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  149. package/lib/models/contentconfiguration/ContentConfigurationResults.js +1 -2
  150. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  151. package/lib/models/error/ErrorModel.js +1 -2
  152. package/lib/models/error/ErrorModel.js.map +1 -1
  153. package/lib/models/form/FormModel.js +1 -2
  154. package/lib/models/form/FormModel.js.map +1 -1
  155. package/lib/models/href/Href.js +1 -2
  156. package/lib/models/href/Href.js.map +1 -1
  157. package/lib/models/links/LinkModel.js +1 -2
  158. package/lib/models/links/LinkModel.js.map +1 -1
  159. package/lib/models/links/normalizeLinkJSON.js +1 -2
  160. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  161. package/lib/models/list/ListItemCollection.js +1 -2
  162. package/lib/models/list/ListItemCollection.js.map +1 -1
  163. package/lib/models/lookup/LookupOptionCollection.js +1 -2
  164. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  165. package/lib/models/parameter/Parameter.js +1 -2
  166. package/lib/models/parameter/Parameter.js.map +1 -1
  167. package/lib/models/resolveModel.js +1 -2
  168. package/lib/models/resolveModel.js.map +1 -1
  169. package/lib/models/sorting/SortOptionModel.js +1 -2
  170. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  171. package/lib/models/sorting/SortingModel.js +1 -2
  172. package/lib/models/sorting/SortingModel.js.map +1 -1
  173. package/lib/models/user/UserServicesModel.js +1 -2
  174. package/lib/models/user/UserServicesModel.js.map +1 -1
  175. package/lib/modularui/Authenticate.js +1 -2
  176. package/lib/modularui/Authenticate.js.map +1 -1
  177. package/lib/modularui/CaptchaRequest.js +1 -2
  178. package/lib/modularui/CaptchaRequest.js.map +1 -1
  179. package/lib/modularui/ModularUIError.js +1 -2
  180. package/lib/modularui/ModularUIError.js.map +1 -1
  181. package/lib/modularui/ModularUIRequest.js +1 -2
  182. package/lib/modularui/ModularUIRequest.js.map +1 -1
  183. package/lib/modularui/ModularUIResponse.js +1 -2
  184. package/lib/modularui/ModularUIResponse.js.map +1 -1
  185. package/lib/modularui/UploadRequest.js +1 -2
  186. package/lib/modularui/UploadRequest.js.map +1 -1
  187. package/lib/react/ErrorBoundary.js +1 -2
  188. package/lib/react/ErrorBoundary.js.map +1 -1
  189. package/lib/react/ErrorBoundaryFallback.js +1 -2
  190. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  191. package/lib/react-client/client.js +1 -2
  192. package/lib/react-client/client.js.flow +6 -3
  193. package/lib/react-client/client.js.map +1 -1
  194. package/lib/react-client/rehydrate.js +1 -2
  195. package/lib/react-client/rehydrate.js.map +1 -1
  196. package/lib/react-server/createSSRComplete.js +1 -2
  197. package/lib/react-server/createSSRComplete.js.map +1 -1
  198. package/lib/react-server/htmlpage.js +1 -2
  199. package/lib/react-server/htmlpage.js.map +1 -1
  200. package/lib/react-server/renderSSRComplete.js +1 -2
  201. package/lib/react-server/renderSSRComplete.js.map +1 -1
  202. package/lib/react-server/renderSSRMinimal.js +1 -2
  203. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  204. package/lib/react-server/serverNoSSR.js +1 -2
  205. package/lib/react-server/serverNoSSR.js.map +1 -1
  206. package/lib/react-server/serverSSR.js +1 -2
  207. package/lib/react-server/serverSSR.js.map +1 -1
  208. package/lib/react-theme/ThemeProvider.js +1 -2
  209. package/lib/react-theme/ThemeProvider.js.map +1 -1
  210. package/lib/react-theme/createTheme.js +1 -2
  211. package/lib/react-theme/createTheme.js.map +1 -1
  212. package/lib/redux/_modularui/ModularUIConnector.js +1 -2
  213. package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
  214. package/lib/redux/_modularui/ModularUISelectors.js +1 -2
  215. package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
  216. package/lib/redux/_modularui/withModularUI.js +1 -2
  217. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  218. package/lib/redux/_router/RouterConnectors.js +5 -10
  219. package/lib/redux/_router/RouterConnectors.js.map +1 -1
  220. package/lib/redux/connectors/Application.js +1 -2
  221. package/lib/redux/connectors/Application.js.map +1 -1
  222. package/lib/redux/connectors/Breadcrumb.js +1 -2
  223. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  224. package/lib/redux/connectors/CaseView.js +1 -2
  225. package/lib/redux/connectors/CaseView.js.map +1 -1
  226. package/lib/redux/connectors/ConceptDetail.js +1 -2
  227. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  228. package/lib/redux/connectors/ContentBrowser.js +1 -2
  229. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  230. package/lib/redux/connectors/ContentDetail.js +1 -2
  231. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  232. package/lib/redux/connectors/ContentDetailSection.js +1 -2
  233. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  234. package/lib/redux/connectors/Form.js +1 -2
  235. package/lib/redux/connectors/Form.js.map +1 -1
  236. package/lib/redux/connectors/FormAttributeSet.js +1 -2
  237. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  238. package/lib/redux/connectors/ListDetail.js +1 -2
  239. package/lib/redux/connectors/ListDetail.js.map +1 -1
  240. package/lib/redux/connectors/Modal.js +1 -2
  241. package/lib/redux/connectors/Modal.js.map +1 -1
  242. package/lib/redux/connectors/ModelCatalog.js +1 -2
  243. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  244. package/lib/redux/connectors/Notification.js +1 -2
  245. package/lib/redux/connectors/Notification.js.map +1 -1
  246. package/lib/redux/connectors/PanelRenderer.js +1 -2
  247. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  248. package/lib/redux/connectors/Progress.js +1 -2
  249. package/lib/redux/connectors/Progress.js.map +1 -1
  250. package/lib/redux/connectors/ProgressIndicator.js +1 -2
  251. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  252. package/lib/redux/connectors/QuickSearch.js +1 -2
  253. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  254. package/lib/redux/connectors/SignIn.js +1 -2
  255. package/lib/redux/connectors/SignIn.js.map +1 -1
  256. package/lib/redux/connectors/SignOut.js +1 -2
  257. package/lib/redux/connectors/SignOut.js.map +1 -1
  258. package/lib/redux/connectors/Tab.js +1 -2
  259. package/lib/redux/connectors/Tab.js.map +1 -1
  260. package/lib/redux/reducers/AuthReducer.js +1 -2
  261. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  262. package/lib/redux/reducers/ErrorReducer.js +1 -2
  263. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  264. package/lib/redux/reducers/ModalsReducer.js +1 -2
  265. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  266. package/lib/redux/reducers/NotificationReducer.js +1 -2
  267. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  268. package/lib/redux/reducers/PreferencesReducer.js +1 -2
  269. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  270. package/lib/redux/reducers/ProgressIndicatorReducer.js +1 -2
  271. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  272. package/lib/redux/store/configureStore.js +1 -2
  273. package/lib/redux/store/configureStore.js.map +1 -1
  274. package/lib/utils/browser/Cache.js +1 -2
  275. package/lib/utils/browser/Cache.js.map +1 -1
  276. package/lib/utils/datetime/DateTimeUtil.js +4 -8
  277. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  278. package/lib/utils/fetch/universalFetch.js +1 -2
  279. package/lib/utils/fetch/universalFetch.js.map +1 -1
  280. package/lib/utils/fetch/xhr.js +1 -2
  281. package/lib/utils/fetch/xhr.js.map +1 -1
  282. package/lib/utils/helpers/createUUID.js +1 -2
  283. package/lib/utils/helpers/createUUID.js.map +1 -1
  284. package/lib/utils/number/DecimalFormat.js +1 -2
  285. package/lib/utils/number/DecimalFormat.js.map +1 -1
  286. package/lib/utils/number/formatValue.js +1 -2
  287. package/lib/utils/number/formatValue.js.map +1 -1
  288. package/package.json +12 -12
  289. package/src/builder/__tests__/mergeLayoutHintConfigurations.spec.js +1 -1
  290. package/src/react-client/client.js +6 -3
  291. package/types/models/filters/StringFilterModel.d.ts +15 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [1.34.2](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.34.1...v1.34.2) (2023-10-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **login:** redirect on all UnAuthorized errors ([bb371ec](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/commit/bb371ec20d24e373e127ea276c854ff8f5175318))
11
+
5
12
  ## [1.34.1](https://git.beinformed.com/public/nl.beinformed.bi.layout.lib.ui/compare/v1.34.0...v1.34.1) (2023-09-13)
6
13
 
7
14
 
@@ -18,7 +18,6 @@ import { locationChange, replace } from "../redux/_router/RouterActions";
18
18
  import { JsonParseException, FetchException } from "../exceptions";
19
19
  import { Init } from "./Init";
20
20
  import { handleBeforeRenderHooks } from "../redux/store/beforeRenderHooks";
21
- import UnauthorizedException from "../exceptions/UnauthorizedException";
22
21
  import { jsx as _jsx } from "react/jsx-runtime";
23
22
  /*
24
23
  * deserialize serialized data from the server to provide a smooth dehydration.
@@ -67,7 +66,7 @@ const handleRedirectURI = store => {
67
66
  xhr({
68
67
  url: `${getBasePath()}${redirectURI}`
69
68
  }).catch(e => {
70
- if (e instanceof UnauthorizedException) {
69
+ if (e.id === "UnauthorizedException" || e.id === "Error.NotAuthorized" || e.id === "Error.Authentication.Required" || e.id === "Error.Authentication.InvalidCredentials") {
71
70
  const LOGIN_PATH = getSetting("LOGIN_PATH", "/signin");
72
71
  store.dispatch(replace(LOGIN_PATH, {
73
72
  from: {
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","names":["hydrate","render","has","setImmediate","Cache","xhr","createBrowserHistory","configureStore","rehydrate","getBasePath","getSetting","setAllContentInDataSetting","setLoginPreferences","showXHRErrorNotification","handleError","loginSuccess","locationChange","replace","JsonParseException","FetchException","Init","handleBeforeRenderHooks","UnauthorizedException","jsx","_jsx","parseDataToJSON","data","JSON","parse","error","getDataFromServer","_context","dataElement","document","querySelector","Error","_trimInstanceProperty","textContent","call","setUnhandledRejectionEvent","store","window","onunhandledrejection","event","detail","errorMessage","reason","message","toString","dispatch","handleRedirectURI","urlParams","_URLSearchParams","location","search","redirectURI","get","url","catch","e","LOGIN_PATH","from","pathname","modal","setupClient","customReducers","arguments","length","undefined","beforeRenderHooks","contextPath","clear","browserHistory","basename","routerHistory","getState","loadOtherBrowserTabs","getItem","response","listen","action","body","className","addContentLoadedEvent","theme","ErrorFallbackComponent","mount","addEventListener","applicationNode","children","mountClient","element","isSSR","client","_ref"],"sources":["../../src/react-client/client.js"],"sourcesContent":["// @flow\n// eslint-disable-next-line react/no-deprecated\nimport { hydrate, render } from \"react-dom\";\n\nimport { has } from \"../utils/helpers/objects\";\nimport setImmediate from \"setimmediate\";\n\nimport Cache from \"../utils/browser/Cache\";\n\nimport xhr from \"../utils/fetch/xhr\";\n\nimport { createBrowserHistory } from \"history\";\nimport configureStore from \"../redux/store/configureStore\";\n\nimport rehydrate from \"./rehydrate\";\nimport { getBasePath, getSetting } from \"../constants/Settings\";\n\nimport {\n setAllContentInDataSetting,\n setLoginPreferences,\n} from \"../redux/actions/Preferences\";\nimport { showXHRErrorNotification } from \"../redux/actions/Notification\";\n\nimport { handleError } from \"../redux/actions/Error\";\nimport { loginSuccess } from \"../redux/actions/SignIn\";\n\nimport { locationChange, replace } from \"../redux/_router/RouterActions\";\n\nimport { JsonParseException, FetchException } from \"../exceptions\";\n\nimport { Init } from \"./Init\";\n\nimport { handleBeforeRenderHooks } from \"../redux/store/beforeRenderHooks\";\n\nimport UnauthorizedException from \"../exceptions/UnauthorizedException\";\n\nimport type {\n ComponentType,\n Element as ReactElement,\n ElementType,\n} from \"react\";\nimport type { Theme } from \"../react-theme/types\";\nimport type { CustomReducers, ReduxStore } from \"../redux/types\";\nimport type { RouterHistory } from \"react-router\";\nimport type { BeforeRenderHook } from \"../redux/store/beforeRenderHooks\";\nimport type { Props as FallbackProps } from \"../react/ErrorBoundaryFallback\";\n\ntype RenderFunction = () => ReactElement<ElementType>;\ntype MountFunction = (\n applicationNode: Element,\n element: ReactElement<ElementType>,\n) => void;\ntype Props = {\n customReducers?: CustomReducers,\n theme?: Theme | Array<Theme>,\n render: RenderFunction,\n mount: MountFunction,\n beforeRenderHooks?: Array<BeforeRenderHook>,\n ErrorFallbackComponent?: ComponentType<FallbackProps>,\n};\n\n/*\n * deserialize serialized data from the server to provide a smooth dehydration.\n */\nconst parseDataToJSON = (data: string) => {\n try {\n return JSON.parse(data);\n } catch (error) {\n throw new JsonParseException(`Error parsing content ${data}`);\n }\n};\n\nconst getDataFromServer = () => {\n const dataElement = document.querySelector(\n 'script[type=\"application/json\"][data-app-state=\"app-json\"]',\n );\n\n if (!dataElement) {\n throw new Error(\"Error loading state, json not found\");\n } else if (dataElement.textContent.trim() === \"\") {\n return {};\n }\n\n return parseDataToJSON(dataElement.textContent);\n};\n\n/**\n */\nexport const setUnhandledRejectionEvent = (store: ReduxStore) => {\n window.onunhandledrejection = (event) => {\n if (event.detail) {\n return setImmediate(() => {\n const errorMessage = event.detail.reason.message.toString();\n\n store.dispatch(showXHRErrorNotification(errorMessage));\n throw event.detail.reason;\n });\n }\n\n return event;\n };\n};\n\n/**\n * The redirectURI querystring parameter is available when the server is redirecting an unauthorized deep link\n * @param store\n */\nconst handleRedirectURI = (store: ReduxStore) => {\n const urlParams = new URLSearchParams(window.location.search);\n const redirectURI = urlParams.get(\"redirectURI\");\n if (redirectURI) {\n xhr({ url: `${getBasePath()}${redirectURI}` }).catch((e) => {\n if (e instanceof UnauthorizedException) {\n const LOGIN_PATH = getSetting(\"LOGIN_PATH\", \"/signin\");\n store.dispatch(\n replace(LOGIN_PATH, {\n from: { pathname: redirectURI },\n modal: false,\n }),\n );\n }\n });\n }\n};\n\n/**\n */\nexport const setupClient = (\n customReducers: CustomReducers = {},\n beforeRenderHooks: ?Array<BeforeRenderHook>,\n): { store: ReduxStore, routerHistory: RouterHistory } => {\n if (typeof window.contextPath === \"undefined\") {\n throw new Error(\"Missing contextPath on window object\");\n }\n\n const data = getDataFromServer();\n\n // remove all resources from cache\n Cache.clear(\"^res:\");\n\n // $FlowExpectedError\n const browserHistory: RouterHistory = createBrowserHistory({\n basename: getBasePath(),\n });\n const { routerHistory, store } = configureStore(\n browserHistory,\n customReducers,\n rehydrate(data),\n );\n\n handleRedirectURI(store);\n\n setAllContentInDataSetting(store.getState());\n setLoginPreferences(store.getState());\n\n // load existing cache from other browser tabs\n Cache.loadOtherBrowserTabs(() => {\n if (Cache.getItem(\"auth\")) {\n store.dispatch(loginSuccess());\n }\n });\n\n if (has(data, \"error.name\")) {\n const error = new FetchException(data?.error?.response);\n store.dispatch(handleError(error));\n }\n\n if (Cache.getItem(\"auth\")) {\n store.dispatch(loginSuccess());\n }\n\n // listen to history change and update the redux router store\n routerHistory.listen((location, action) => {\n store.dispatch(locationChange(location, action));\n });\n\n setUnhandledRejectionEvent(store);\n\n if (document.body) {\n document.body.className = \"js\";\n }\n\n if (beforeRenderHooks) {\n handleBeforeRenderHooks(beforeRenderHooks, { store });\n }\n\n return { store, routerHistory };\n};\n\n/**\n */\nexport const addContentLoadedEvent = (\n store: ReduxStore,\n routerHistory: RouterHistory,\n theme?: Theme | Array<Theme>,\n render: RenderFunction,\n ErrorFallbackComponent?: ComponentType<FallbackProps>,\n mount: MountFunction,\n) => {\n window.addEventListener(\"DOMContentLoaded\", () => {\n const applicationNode = document.querySelector(\"#application\");\n if (!applicationNode) {\n throw new Error(\n \"No DOM element with id application found to attach client to\",\n );\n }\n\n mount(\n applicationNode,\n <Init\n store={store}\n routerHistory={routerHistory}\n contextPath={window.contextPath}\n theme={theme}\n ErrorFallbackComponent={ErrorFallbackComponent}\n >\n {render()}\n </Init>,\n );\n });\n};\n\n/**\n */\nconst mountClient = (\n applicationNode: Element,\n element: ReactElement<ElementType>,\n) => {\n const isSSR = applicationNode.querySelector(\".application\");\n if (isSSR) {\n hydrate(element, applicationNode);\n } else {\n render(element, applicationNode);\n }\n};\n\n/**\n * Mount the webapplication to the DOM, setup redux store and caches, add unhandledRejectionEvent, used client side when JavaScript is enabled.\n */\nexport const client = ({\n customReducers,\n theme,\n render,\n beforeRenderHooks,\n ErrorFallbackComponent,\n mount,\n}: Props) => {\n const { store, routerHistory } = setupClient(\n customReducers,\n beforeRenderHooks,\n );\n\n addContentLoadedEvent(\n store,\n routerHistory,\n theme,\n render,\n ErrorFallbackComponent,\n mount ?? mountClient,\n );\n};\n"],"mappings":";;AACA;AACA,SAASA,OAAO,EAAEC,MAAM,QAAQ,WAAW;AAE3C,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,OAAOC,YAAY,MAAM,cAAc;AAEvC,OAAOC,KAAK,MAAM,wBAAwB;AAE1C,OAAOC,GAAG,MAAM,oBAAoB;AAEpC,SAASC,oBAAoB,QAAQ,SAAS;AAC9C,OAAOC,cAAc,MAAM,+BAA+B;AAE1D,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,WAAW,EAAEC,UAAU,QAAQ,uBAAuB;AAE/D,SACEC,0BAA0B,EAC1BC,mBAAmB,QACd,8BAA8B;AACrC,SAASC,wBAAwB,QAAQ,+BAA+B;AAExE,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,YAAY,QAAQ,yBAAyB;AAEtD,SAASC,cAAc,EAAEC,OAAO,QAAQ,gCAAgC;AAExE,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,eAAe;AAElE,SAASC,IAAI,QAAQ,QAAQ;AAE7B,SAASC,uBAAuB,QAAQ,kCAAkC;AAE1E,OAAOC,qBAAqB,MAAM,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA2BxE;AACA;AACA;AACA,MAAMC,eAAe,GAAIC,IAAY,IAAK;EACxC,IAAI;IACF,OAAOC,IAAI,CAACC,KAAK,CAACF,IAAI,CAAC;EACzB,CAAC,CAAC,OAAOG,KAA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,aAAa,CAAC,cAAc,CAAC;IAC9D,IAAI,CAACsD,eAAe,EAAE;MACpB,MAAM,IAAIrD,KAAK,CACb,8DACF,CAAC;IACH;IAEAmD,KAAK,CACHE,eAAe,eACfhE,IAAA,CAACJ,IAAI;MACHoB,KAAK,EAAEA,KAAM;MACbkC,aAAa,EAAEA,aAAc;MAC7BJ,WAAW,EAAE7B,MAAM,CAAC6B,WAAY;MAChCc,KAAK,EAAEA,KAAM;MACbC,sBAAsB,EAAEA,sBAAuB;MAAAI,QAAA,EAE9CxF,MAAM,CAAC;IAAC,CACL,CACR,CAAC;EACH,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA,MAAMyF,WAAW,GAAGA,CAClBF,eAAwB,EACxBG,OAAkC,KAC/B;EACH,MAAMC,KAAK,GAAGJ,eAAe,CAACtD,aAAa,CAAC,cAAc,CAAC;EAC3D,IAAI0D,KAAK,EAAE;IACT5F,OAAO,CAAC2F,OAAO,EAAEH,eAAe,CAAC;EACnC,CAAC,MAAM;IACLvF,MAAM,CAAC0F,OAAO,EAAEH,eAAe,CAAC;EAClC;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMK,MAAM,GAAGC,IAAA,IAOT;EAAA,IAPU;IACrB7B,cAAc;IACdmB,KAAK;IACLnF,MAAM;IACNoE,iBAAiB;IACjBgB,sBAAsB;IACtBC;EACK,CAAC,GAAAQ,IAAA;EACN,MAAM;IAAEtD,KAAK;IAAEkC;EAAc,CAAC,GAAGV,WAAW,CAC1CC,cAAc,EACdI,iBACF,CAAC;EAEDc,qBAAqB,CACnB3C,KAAK,EACLkC,aAAa,EACbU,KAAK,EACLnF,MAAM,EACNoF,sBAAsB,EACtBC,KAAK,IAAII,WACX,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"client.js","names":["hydrate","render","has","setImmediate","Cache","xhr","createBrowserHistory","configureStore","rehydrate","getBasePath","getSetting","setAllContentInDataSetting","setLoginPreferences","showXHRErrorNotification","handleError","loginSuccess","locationChange","replace","JsonParseException","FetchException","Init","handleBeforeRenderHooks","jsx","_jsx","parseDataToJSON","data","JSON","parse","error","getDataFromServer","_context","dataElement","document","querySelector","Error","_trimInstanceProperty","textContent","call","setUnhandledRejectionEvent","store","window","onunhandledrejection","event","detail","errorMessage","reason","message","toString","dispatch","handleRedirectURI","urlParams","_URLSearchParams","location","search","redirectURI","get","url","catch","e","id","LOGIN_PATH","from","pathname","modal","setupClient","customReducers","arguments","length","undefined","beforeRenderHooks","contextPath","clear","browserHistory","basename","routerHistory","getState","loadOtherBrowserTabs","getItem","response","listen","action","body","className","addContentLoadedEvent","theme","ErrorFallbackComponent","mount","addEventListener","applicationNode","children","mountClient","element","isSSR","client","_ref"],"sources":["../../src/react-client/client.js"],"sourcesContent":["// @flow\n// eslint-disable-next-line react/no-deprecated\nimport { hydrate, render } from \"react-dom\";\n\nimport { has } from \"../utils/helpers/objects\";\nimport setImmediate from \"setimmediate\";\n\nimport Cache from \"../utils/browser/Cache\";\n\nimport xhr from \"../utils/fetch/xhr\";\n\nimport { createBrowserHistory } from \"history\";\nimport configureStore from \"../redux/store/configureStore\";\n\nimport rehydrate from \"./rehydrate\";\nimport { getBasePath, getSetting } from \"../constants/Settings\";\n\nimport {\n setAllContentInDataSetting,\n setLoginPreferences,\n} from \"../redux/actions/Preferences\";\nimport { showXHRErrorNotification } from \"../redux/actions/Notification\";\n\nimport { handleError } from \"../redux/actions/Error\";\nimport { loginSuccess } from \"../redux/actions/SignIn\";\n\nimport { locationChange, replace } from \"../redux/_router/RouterActions\";\n\nimport { JsonParseException, FetchException } from \"../exceptions\";\n\nimport { Init } from \"./Init\";\n\nimport { handleBeforeRenderHooks } from \"../redux/store/beforeRenderHooks\";\n\nimport type {\n ComponentType,\n Element as ReactElement,\n ElementType,\n} from \"react\";\nimport type { Theme } from \"../react-theme/types\";\nimport type { CustomReducers, ReduxStore } from \"../redux/types\";\nimport type { RouterHistory } from \"react-router\";\nimport type { BeforeRenderHook } from \"../redux/store/beforeRenderHooks\";\nimport type { Props as FallbackProps } from \"../react/ErrorBoundaryFallback\";\n\ntype RenderFunction = () => ReactElement<ElementType>;\ntype MountFunction = (\n applicationNode: Element,\n element: ReactElement<ElementType>,\n) => void;\ntype Props = {\n customReducers?: CustomReducers,\n theme?: Theme | Array<Theme>,\n render: RenderFunction,\n mount: MountFunction,\n beforeRenderHooks?: Array<BeforeRenderHook>,\n ErrorFallbackComponent?: ComponentType<FallbackProps>,\n};\n\n/*\n * deserialize serialized data from the server to provide a smooth dehydration.\n */\nconst parseDataToJSON = (data: string) => {\n try {\n return JSON.parse(data);\n } catch (error) {\n throw new JsonParseException(`Error parsing content ${data}`);\n }\n};\n\nconst getDataFromServer = () => {\n const dataElement = document.querySelector(\n 'script[type=\"application/json\"][data-app-state=\"app-json\"]',\n );\n\n if (!dataElement) {\n throw new Error(\"Error loading state, json not found\");\n } else if (dataElement.textContent.trim() === \"\") {\n return {};\n }\n\n return parseDataToJSON(dataElement.textContent);\n};\n\n/**\n */\nexport const setUnhandledRejectionEvent = (store: ReduxStore) => {\n window.onunhandledrejection = (event) => {\n if (event.detail) {\n return setImmediate(() => {\n const errorMessage = event.detail.reason.message.toString();\n\n store.dispatch(showXHRErrorNotification(errorMessage));\n throw event.detail.reason;\n });\n }\n\n return event;\n };\n};\n\n/**\n * The redirectURI querystring parameter is available when the server is redirecting an unauthorized deep link\n * @param store\n */\nconst handleRedirectURI = (store: ReduxStore) => {\n const urlParams = new URLSearchParams(window.location.search);\n const redirectURI = urlParams.get(\"redirectURI\");\n if (redirectURI) {\n xhr({ url: `${getBasePath()}${redirectURI}` }).catch((e) => {\n if (\n e.id === \"UnauthorizedException\" ||\n e.id === \"Error.NotAuthorized\" ||\n e.id === \"Error.Authentication.Required\" ||\n e.id === \"Error.Authentication.InvalidCredentials\"\n ) {\n const LOGIN_PATH = getSetting(\"LOGIN_PATH\", \"/signin\");\n store.dispatch(\n replace(LOGIN_PATH, {\n from: { pathname: redirectURI },\n modal: false,\n }),\n );\n }\n });\n }\n};\n\n/**\n */\nexport const setupClient = (\n customReducers: CustomReducers = {},\n beforeRenderHooks: ?Array<BeforeRenderHook>,\n): { store: ReduxStore, routerHistory: RouterHistory } => {\n if (typeof window.contextPath === \"undefined\") {\n throw new Error(\"Missing contextPath on window object\");\n }\n\n const data = getDataFromServer();\n\n // remove all resources from cache\n Cache.clear(\"^res:\");\n\n // $FlowExpectedError\n const browserHistory: RouterHistory = createBrowserHistory({\n basename: getBasePath(),\n });\n const { routerHistory, store } = configureStore(\n browserHistory,\n customReducers,\n rehydrate(data),\n );\n\n handleRedirectURI(store);\n\n setAllContentInDataSetting(store.getState());\n setLoginPreferences(store.getState());\n\n // load existing cache from other browser tabs\n Cache.loadOtherBrowserTabs(() => {\n if (Cache.getItem(\"auth\")) {\n store.dispatch(loginSuccess());\n }\n });\n\n if (has(data, \"error.name\")) {\n const error = new FetchException(data?.error?.response);\n store.dispatch(handleError(error));\n }\n\n if (Cache.getItem(\"auth\")) {\n store.dispatch(loginSuccess());\n }\n\n // listen to history change and update the redux router store\n routerHistory.listen((location, action) => {\n store.dispatch(locationChange(location, action));\n });\n\n setUnhandledRejectionEvent(store);\n\n if (document.body) {\n document.body.className = \"js\";\n }\n\n if (beforeRenderHooks) {\n handleBeforeRenderHooks(beforeRenderHooks, { store });\n }\n\n return { store, routerHistory };\n};\n\n/**\n */\nexport const addContentLoadedEvent = (\n store: ReduxStore,\n routerHistory: RouterHistory,\n theme?: Theme | Array<Theme>,\n render: RenderFunction,\n ErrorFallbackComponent?: ComponentType<FallbackProps>,\n mount: MountFunction,\n) => {\n window.addEventListener(\"DOMContentLoaded\", () => {\n const applicationNode = document.querySelector(\"#application\");\n if (!applicationNode) {\n throw new Error(\n \"No DOM element with id application found to attach client to\",\n );\n }\n\n mount(\n applicationNode,\n <Init\n store={store}\n routerHistory={routerHistory}\n contextPath={window.contextPath}\n theme={theme}\n ErrorFallbackComponent={ErrorFallbackComponent}\n >\n {render()}\n </Init>,\n );\n });\n};\n\n/**\n */\nconst mountClient = (\n applicationNode: Element,\n element: ReactElement<ElementType>,\n) => {\n const isSSR = applicationNode.querySelector(\".application\");\n if (isSSR) {\n hydrate(element, applicationNode);\n } else {\n render(element, applicationNode);\n }\n};\n\n/**\n * Mount the webapplication to the DOM, setup redux store and caches, add unhandledRejectionEvent, used client side when JavaScript is enabled.\n */\nexport const client = ({\n customReducers,\n theme,\n render,\n beforeRenderHooks,\n ErrorFallbackComponent,\n mount,\n}: Props) => {\n const { store, routerHistory } = setupClient(\n customReducers,\n beforeRenderHooks,\n );\n\n addContentLoadedEvent(\n store,\n routerHistory,\n theme,\n render,\n ErrorFallbackComponent,\n mount ?? mountClient,\n );\n};\n"],"mappings":";;AACA;AACA,SAASA,OAAO,EAAEC,MAAM,QAAQ,WAAW;AAE3C,SAASC,GAAG,QAAQ,0BAA0B;AAC9C,OAAOC,YAAY,MAAM,cAAc;AAEvC,OAAOC,KAAK,MAAM,wBAAwB;AAE1C,OAAOC,GAAG,MAAM,oBAAoB;AAEpC,SAASC,oBAAoB,QAAQ,SAAS;AAC9C,OAAOC,cAAc,MAAM,+BAA+B;AAE1D,OAAOC,SAAS,MAAM,aAAa;AACnC,SAASC,WAAW,EAAEC,UAAU,QAAQ,uBAAuB;AAE/D,SACEC,0BAA0B,EAC1BC,mBAAmB,QACd,8BAA8B;AACrC,SAASC,wBAAwB,QAAQ,+BAA+B;AAExE,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,YAAY,QAAQ,yBAAyB;AAEtD,SAASC,cAAc,EAAEC,OAAO,QAAQ,gCAAgC;AAExE,SAASC,kBAAkB,EAAEC,cAAc,QAAQ,eAAe;AAElE,SAASC,IAAI,QAAQ,QAAQ;AAE7B,SAASC,uBAAuB,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AA2B3E;AACA;AACA;AACA,MAAMC,eAAe,GAAIC,IAAY,IAAK;EACxC,IAAI;IACF,OAAOC,IAAI,CAACC,KAAK,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AAII,WACX,CAAC;AACH,CAAC"}
@@ -44,7 +44,7 @@ describe("mergeLayoutHintConfigurations", () => {
44
44
  await mergeLayoutHintConfigurations("./src", "/output");
45
45
 
46
46
  expect(fs.writeFileSync).toHaveBeenCalledWith(
47
- "\\output\\LayoutHintConfig.json",
47
+ expect.stringContaining("LayoutHintConfig.json"),
48
48
  JSON.stringify(expectedJson),
49
49
  );
50
50
  });
@@ -7,90 +7,75 @@ exports.VALIDATE_DEBOUNCE_TIMEOUT = exports.USERPROFILE_PATH = exports.UPLOAD_PA
7
7
  /**
8
8
  * path to content service
9
9
  */
10
- const CONTENT_PATH = `/content`;
10
+ const CONTENT_PATH = exports.CONTENT_PATH = `/content`;
11
11
 
12
12
  /**
13
13
  * Upload Path
14
14
  */
15
- exports.CONTENT_PATH = CONTENT_PATH;
16
- const UPLOAD_PATH = `/uploadFile`;
15
+ const UPLOAD_PATH = exports.UPLOAD_PATH = `/uploadFile`;
17
16
 
18
17
  /**
19
18
  * Captcha Path
20
19
  */
21
- exports.UPLOAD_PATH = UPLOAD_PATH;
22
- const CAPTCHA_PATH = `/captchaServices`;
20
+ const CAPTCHA_PATH = exports.CAPTCHA_PATH = `/captchaServices`;
23
21
 
24
22
  /**
25
23
  * Path to change password page / component
26
24
  */
27
- exports.CAPTCHA_PATH = CAPTCHA_PATH;
28
- const CHANGEPASSWORD_PATH = "/change-password";
25
+ const CHANGEPASSWORD_PATH = exports.CHANGEPASSWORD_PATH = "/change-password";
29
26
 
30
27
  /**
31
28
  * Path to user profile page / component
32
29
  */
33
- exports.CHANGEPASSWORD_PATH = CHANGEPASSWORD_PATH;
34
- const USERPROFILE_PATH = "/user";
30
+ const USERPROFILE_PATH = exports.USERPROFILE_PATH = "/user";
35
31
 
36
32
  /**
37
33
  * Path to resources in the Be Informed repository
38
34
  */
39
- exports.USERPROFILE_PATH = USERPROFILE_PATH;
40
- const RESOURCE_PATH = "/resource";
35
+ const RESOURCE_PATH = exports.RESOURCE_PATH = "/resource";
41
36
 
42
37
  /**
43
38
  * Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment
44
39
  */
45
- exports.RESOURCE_PATH = RESOURCE_PATH;
46
- const PARAMETER_SEPARATOR = "~";
40
+ const PARAMETER_SEPARATOR = exports.PARAMETER_SEPARATOR = "~";
47
41
 
48
42
  /**
49
43
  * Timeversion filter name
50
44
  */
51
- exports.PARAMETER_SEPARATOR = PARAMETER_SEPARATOR;
52
- const TIMEVERSION_FILTER_NAME = "entryDate";
53
- exports.TIMEVERSION_FILTER_NAME = TIMEVERSION_FILTER_NAME;
45
+ const TIMEVERSION_FILTER_NAME = exports.TIMEVERSION_FILTER_NAME = "entryDate";
54
46
  const PARAMETER_OVERVIEW_VIEWTYPE = "viewType";
55
47
  /**
56
48
  * Parameter name for the viewtype toggle
57
49
  */
58
- const DEFAULT_UI_PARAMETERS = [PARAMETER_OVERVIEW_VIEWTYPE];
50
+ const DEFAULT_UI_PARAMETERS = exports.DEFAULT_UI_PARAMETERS = [PARAMETER_OVERVIEW_VIEWTYPE];
59
51
 
60
52
  /**
61
53
  */
62
- exports.DEFAULT_UI_PARAMETERS = DEFAULT_UI_PARAMETERS;
63
- const ISO_DATE_FORMAT = "yyyy-MM-dd";
54
+ const ISO_DATE_FORMAT = exports.ISO_DATE_FORMAT = "yyyy-MM-dd";
64
55
  /**
65
56
  */
66
- exports.ISO_DATE_FORMAT = ISO_DATE_FORMAT;
67
- const ISO_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
57
+ const ISO_DATETIME_FORMAT = exports.ISO_DATETIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
68
58
  /**
69
59
  */
70
- exports.ISO_DATETIME_FORMAT = ISO_DATETIME_FORMAT;
71
- const ISO_TIME_FORMAT = "HH:mm:ss";
60
+ const ISO_TIME_FORMAT = exports.ISO_TIME_FORMAT = "HH:mm:ss";
72
61
  /**
73
62
  */
74
- exports.ISO_TIME_FORMAT = ISO_TIME_FORMAT;
75
- const ISO_TIMESTAMP_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS";
63
+ const ISO_TIMESTAMP_FORMAT = exports.ISO_TIMESTAMP_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS";
76
64
  /**
77
65
  * week starts on monday by default
78
66
  */
79
- exports.ISO_TIMESTAMP_FORMAT = ISO_TIMESTAMP_FORMAT;
80
- const DEFAULT_WEEK_STARTS_ON = 1;
67
+ const DEFAULT_WEEK_STARTS_ON = exports.DEFAULT_WEEK_STARTS_ON = 1;
81
68
 
82
69
  /**
83
70
  * first week indicated by the 1st of january
84
71
  */
85
- exports.DEFAULT_WEEK_STARTS_ON = DEFAULT_WEEK_STARTS_ON;
86
- const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;
72
+ const DEFAULT_FIRST_WEEK_CONTAINS_DATE = exports.DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;
87
73
 
88
74
  /**
89
75
  * Key codes
90
76
  * @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}
91
77
  */
92
- exports.DEFAULT_FIRST_WEEK_CONTAINS_DATE = DEFAULT_FIRST_WEEK_CONTAINS_DATE;
93
- const KEYCODES = {
78
+ const KEYCODES = exports.KEYCODES = {
94
79
  TAB: 9,
95
80
  ENTER: 13,
96
81
  ESCAPE: 27,
@@ -106,19 +91,16 @@ const KEYCODES = {
106
91
  /**
107
92
  * @type {boolean}
108
93
  */
109
- exports.KEYCODES = KEYCODES;
110
- const IS_SYNC = typeof dataFetcher !== "undefined";
94
+ const IS_SYNC = exports.IS_SYNC = typeof dataFetcher !== "undefined";
111
95
  /**
112
96
  * @type {boolean}
113
97
  */
114
- exports.IS_SYNC = IS_SYNC;
115
- const IS_SERVER = IS_SYNC;
98
+ const IS_SERVER = exports.IS_SERVER = IS_SYNC;
116
99
 
117
100
  /**
118
101
  * @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}
119
102
  */
120
- exports.IS_SERVER = IS_SERVER;
121
- const NOTIFICATION_TYPES = {
103
+ const NOTIFICATION_TYPES = exports.NOTIFICATION_TYPES = {
122
104
  SUCCESS: "SUCCESS",
123
105
  INFO: "INFO",
124
106
  WARNING: "WARNING",
@@ -129,8 +111,7 @@ const NOTIFICATION_TYPES = {
129
111
  * SUPPORTED HTTP METHODS
130
112
  * @type {{POST: string, GET: string}}
131
113
  */
132
- exports.NOTIFICATION_TYPES = NOTIFICATION_TYPES;
133
- const HTTP_METHODS = {
114
+ const HTTP_METHODS = exports.HTTP_METHODS = {
134
115
  GET: "GET",
135
116
  POST: "POST"
136
117
  };
@@ -139,8 +120,7 @@ const HTTP_METHODS = {
139
120
  * POSSIBLE MODULARUI STATUSSES
140
121
  * @type {{LOADING: string, ERROR: string, FINISHED: string}}
141
122
  */
142
- exports.HTTP_METHODS = HTTP_METHODS;
143
- const MODULARUI_STATUS = {
123
+ const MODULARUI_STATUS = exports.MODULARUI_STATUS = {
144
124
  LOADING: "LOADING",
145
125
  FINISHED: "FINISHED",
146
126
  ERROR: "ERROR"
@@ -150,8 +130,7 @@ const MODULARUI_STATUS = {
150
130
  * POSSIBLE AUTOSAVE STATUSSES
151
131
  * @type {{START: string, FINISHED: string}}
152
132
  */
153
- exports.MODULARUI_STATUS = MODULARUI_STATUS;
154
- const AUTOSAVE_STATUS = {
133
+ const AUTOSAVE_STATUS = exports.AUTOSAVE_STATUS = {
155
134
  START: "START",
156
135
  FINISHED: "FINISHED"
157
136
  };
@@ -159,49 +138,37 @@ const AUTOSAVE_STATUS = {
159
138
  /**
160
139
  * DEBOUNCE INPUT TIMEOUT
161
140
  */
162
- exports.AUTOSAVE_STATUS = AUTOSAVE_STATUS;
163
- const INPUT_DEBOUNCE_TIMEOUT = 100;
141
+ const INPUT_DEBOUNCE_TIMEOUT = exports.INPUT_DEBOUNCE_TIMEOUT = 100;
164
142
 
165
143
  /**
166
144
  * DEBOUNCE VALIDATION TIMEOUT
167
145
  */
168
- exports.INPUT_DEBOUNCE_TIMEOUT = INPUT_DEBOUNCE_TIMEOUT;
169
- const VALIDATE_DEBOUNCE_TIMEOUT = 500;
146
+ const VALIDATE_DEBOUNCE_TIMEOUT = exports.VALIDATE_DEBOUNCE_TIMEOUT = 500;
170
147
 
171
148
  /**
172
149
  * ATTRIBUTE WIDTH
173
150
  */
174
- exports.VALIDATE_DEBOUNCE_TIMEOUT = VALIDATE_DEBOUNCE_TIMEOUT;
175
- const ATTRIBUTE_WIDTH = {
151
+ const ATTRIBUTE_WIDTH = exports.ATTRIBUTE_WIDTH = {
176
152
  EXTRA_SMALL: "EXTRA_SMALL",
177
153
  SMALL: "SMALL",
178
154
  MEDIUM: "MEDIUM",
179
155
  LARGE: "LARGE",
180
156
  EXTRA_LARGE: "EXTRA_LARGE"
181
157
  };
182
- exports.ATTRIBUTE_WIDTH = ATTRIBUTE_WIDTH;
183
- const ALL_CONTENT_IN_DATA_SETTING = "hasAllContentInData";
184
- exports.ALL_CONTENT_IN_DATA_SETTING = ALL_CONTENT_IN_DATA_SETTING;
185
- const INTERNAL_LOGIN_TYPE = {
158
+ const ALL_CONTENT_IN_DATA_SETTING = exports.ALL_CONTENT_IN_DATA_SETTING = "hasAllContentInData";
159
+ const INTERNAL_LOGIN_TYPE = exports.INTERNAL_LOGIN_TYPE = {
186
160
  JAAS: "JAAS",
187
161
  PAC4J_FORM: "PAC4J_FORM",
188
162
  PAC4J_BASIC: "PAC4J_BASIC"
189
163
  };
190
- exports.INTERNAL_LOGIN_TYPE = INTERNAL_LOGIN_TYPE;
191
- const LOGIN_TYPE = "security.clients";
192
- exports.LOGIN_TYPE = LOGIN_TYPE;
193
- const LOGIN_PATH_SETTING = "FormClient.login_url";
194
- exports.LOGIN_PATH_SETTING = LOGIN_PATH_SETTING;
195
- const LOGIN_USERNAME_SETTING = "FormClient.username_field_name";
196
- exports.LOGIN_USERNAME_SETTING = LOGIN_USERNAME_SETTING;
197
- const LOGIN_PASSWORD_SETTING = "FormClient.password_field_name";
198
- exports.LOGIN_PASSWORD_SETTING = LOGIN_PASSWORD_SETTING;
199
- const LOGOUT_PATH_SETTING = "FormClient.logout_url";
200
- exports.LOGOUT_PATH_SETTING = LOGOUT_PATH_SETTING;
201
- const DEFAULT_AUTHENTICATION_TYPE = {
164
+ const LOGIN_TYPE = exports.LOGIN_TYPE = "security.clients";
165
+ const LOGIN_PATH_SETTING = exports.LOGIN_PATH_SETTING = "FormClient.login_url";
166
+ const LOGIN_USERNAME_SETTING = exports.LOGIN_USERNAME_SETTING = "FormClient.username_field_name";
167
+ const LOGIN_PASSWORD_SETTING = exports.LOGIN_PASSWORD_SETTING = "FormClient.password_field_name";
168
+ const LOGOUT_PATH_SETTING = exports.LOGOUT_PATH_SETTING = "FormClient.logout_url";
169
+ const DEFAULT_AUTHENTICATION_TYPE = exports.DEFAULT_AUTHENTICATION_TYPE = {
202
170
  name: "Form based authentication",
203
171
  authentication: "DefaultFormClient",
204
172
  isPrimary: true
205
173
  };
206
- exports.DEFAULT_AUTHENTICATION_TYPE = DEFAULT_AUTHENTICATION_TYPE;
207
174
  //# sourceMappingURL=Constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.js","names":["CONTENT_PATH","exports","UPLOAD_PATH","CAPTCHA_PATH","CHANGEPASSWORD_PATH","USERPROFILE_PATH","RESOURCE_PATH","PARAMETER_SEPARATOR","TIMEVERSION_FILTER_NAME","PARAMETER_OVERVIEW_VIEWTYPE","DEFAULT_UI_PARAMETERS","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","KEYCODES","TAB","ENTER","ESCAPE","SPACE","PAGE_UP","PAGE_DOWN","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","IS_SYNC","dataFetcher","IS_SERVER","NOTIFICATION_TYPES","SUCCESS","INFO","WARNING","ERROR","HTTP_METHODS","GET","POST","MODULARUI_STATUS","LOADING","FINISHED","AUTOSAVE_STATUS","START","INPUT_DEBOUNCE_TIMEOUT","VALIDATE_DEBOUNCE_TIMEOUT","ATTRIBUTE_WIDTH","EXTRA_SMALL","SMALL","MEDIUM","LARGE","EXTRA_LARGE","ALL_CONTENT_IN_DATA_SETTING","INTERNAL_LOGIN_TYPE","JAAS","PAC4J_FORM","PAC4J_BASIC","LOGIN_TYPE","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING","DEFAULT_AUTHENTICATION_TYPE","name","authentication","isPrimary"],"sources":["../../src/constants/Constants.js"],"sourcesContent":["// @flow\n/**\n * path to content service\n */\nexport const CONTENT_PATH = `/content`;\n\n/**\n * Upload Path\n */\nexport const UPLOAD_PATH = `/uploadFile`;\n\n/**\n * Captcha Path\n */\nexport const CAPTCHA_PATH = `/captchaServices`;\n\n/**\n * Path to change password page / component\n */\nexport const CHANGEPASSWORD_PATH = \"/change-password\";\n\n/**\n * Path to user profile page / component\n */\nexport const USERPROFILE_PATH = \"/user\";\n\n/**\n * Path to resources in the Be Informed repository\n */\nexport const RESOURCE_PATH = \"/resource\";\n\n/**\n * Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment\n */\nexport const PARAMETER_SEPARATOR = \"~\";\n\n/**\n * Timeversion filter name\n */\nexport const TIMEVERSION_FILTER_NAME = \"entryDate\";\n\nconst PARAMETER_OVERVIEW_VIEWTYPE = \"viewType\";\n/**\n * Parameter name for the viewtype toggle\n */\nexport const DEFAULT_UI_PARAMETERS: Array<string> = [\n PARAMETER_OVERVIEW_VIEWTYPE,\n];\n\n/**\n */\nexport const ISO_DATE_FORMAT = \"yyyy-MM-dd\";\n/**\n */\nexport const ISO_DATETIME_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss\";\n/**\n */\nexport const ISO_TIME_FORMAT = \"HH:mm:ss\";\n/**\n */\nexport const ISO_TIMESTAMP_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss.SSS\";\n/**\n * week starts on monday by default\n */\nexport const DEFAULT_WEEK_STARTS_ON = 1;\n\n/**\n * first week indicated by the 1st of january\n */\nexport const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;\n\n/**\n * Key codes\n * @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}\n */\nexport const KEYCODES = {\n TAB: 9,\n ENTER: 13,\n ESCAPE: 27,\n SPACE: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n};\n\n/**\n * @type {boolean}\n */\nexport const IS_SYNC = typeof dataFetcher !== \"undefined\";\n/**\n * @type {boolean}\n */\nexport const IS_SERVER = IS_SYNC;\n\n/**\n * @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}\n */\nexport const NOTIFICATION_TYPES = {\n SUCCESS: \"SUCCESS\",\n INFO: \"INFO\",\n WARNING: \"WARNING\",\n ERROR: \"ERROR\",\n};\n\n/**\n * SUPPORTED HTTP METHODS\n * @type {{POST: string, GET: string}}\n */\nexport const HTTP_METHODS = {\n GET: \"GET\",\n POST: \"POST\",\n};\n\n/**\n * POSSIBLE MODULARUI STATUSSES\n * @type {{LOADING: string, ERROR: string, FINISHED: string}}\n */\nexport const MODULARUI_STATUS = {\n LOADING: \"LOADING\",\n FINISHED: \"FINISHED\",\n ERROR: \"ERROR\",\n};\n\n/**\n * POSSIBLE AUTOSAVE STATUSSES\n * @type {{START: string, FINISHED: string}}\n */\nexport const AUTOSAVE_STATUS = {\n START: \"START\",\n FINISHED: \"FINISHED\",\n};\n\n/**\n * DEBOUNCE INPUT TIMEOUT\n */\nexport const INPUT_DEBOUNCE_TIMEOUT = 100;\n\n/**\n * DEBOUNCE VALIDATION TIMEOUT\n */\nexport const VALIDATE_DEBOUNCE_TIMEOUT = 500;\n\n/**\n * ATTRIBUTE WIDTH\n */\nexport const ATTRIBUTE_WIDTH = {\n EXTRA_SMALL: \"EXTRA_SMALL\",\n SMALL: \"SMALL\",\n MEDIUM: \"MEDIUM\",\n LARGE: \"LARGE\",\n EXTRA_LARGE: \"EXTRA_LARGE\",\n};\n\nexport const ALL_CONTENT_IN_DATA_SETTING = \"hasAllContentInData\";\n\nexport const INTERNAL_LOGIN_TYPE = {\n JAAS: \"JAAS\",\n PAC4J_FORM: \"PAC4J_FORM\",\n PAC4J_BASIC: \"PAC4J_BASIC\",\n};\nexport const LOGIN_TYPE = \"security.clients\";\nexport const LOGIN_PATH_SETTING = \"FormClient.login_url\";\nexport const LOGIN_USERNAME_SETTING = \"FormClient.username_field_name\";\nexport const LOGIN_PASSWORD_SETTING = \"FormClient.password_field_name\";\nexport const LOGOUT_PATH_SETTING = \"FormClient.logout_url\";\n\nexport const DEFAULT_AUTHENTICATION_TYPE = {\n name: \"Form based authentication\",\n authentication: \"DefaultFormClient\",\n isPrimary: true,\n};\n"],"mappings":";;;;;;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAI,UAAS;;AAEtC;AACA;AACA;AAFAC,OAAA,CAAAD,YAAA,GAAAA,YAAA;AAGO,MAAME,WAAW,GAAI,aAAY;;AAExC;AACA;AACA;AAFAD,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAGO,MAAMC,YAAY,GAAI,kBAAiB;;AAE9C;AACA;AACA;AAFAF,OAAA,CAAAE,YAAA,GAAAA,YAAA;AAGO,MAAMC,mBAAmB,GAAG,kBAAkB;;AAErD;AACA;AACA;AAFAH,OAAA,CAAAG,mBAAA,GAAAA,mBAAA;AAGO,MAAMC,gBAAgB,GAAG,OAAO;;AAEvC;AACA;AACA;AAFAJ,OAAA,CAAAI,gBAAA,GAAAA,gBAA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,WAAW,EAAE;AACf,CAAC;AAAClD,OAAA,CAAA6C,eAAA,GAAAA,eAAA;AAEK,MAAMM,2BAA2B,GAAG,qBAAqB;AAACnD,OAAA,CAAAmD,2BAAA,GAAAA,2BAAA;AAE1D,MAAMC,mBAAmB,GAAG;EACjCC,IAAI,EAAE,MAAM;EACZC,UAAU,EAAE,YAAY;EACxBC,WAAW,EAAE;AACf,CAAC;AAACvD,OAAA,CAAAoD,mBAAA,GAAAA,mBAAA;AACK,MAAMI,UAAU,GAAG,kBAAkB;AAACxD,OAAA,CAAAwD,UAAA,GAAAA,UAAA;AACtC,MAAMC,kBAAkB,GAAG,sBAAsB;AAACzD,OAAA,CAAAyD,kBAAA,GAAAA,kBAAA;AAClD,MAAMC,sBAAsB,GAAG,gCAAgC;AAAC1D,OAAA,CAAA0D,sBAAA,GAAAA,sBAAA;AAChE,MAAMC,sBAAsB,GAAG,gCAAgC;AAAC3D,OAAA,CAAA2D,sBAAA,GAAAA,sBAAA;AAChE,MAAMC,mBAAmB,GAAG,uBAAuB;AAAC5D,OAAA,CAAA4D,mBAAA,GAAAA,mBAAA;AAEpD,MAAMC,2BAA2B,GAAG;EACzCC,IAAI,EAAE,2BAA2B;EACjCC,cAAc,EAAE,mBAAmB;EACnCC,SAAS,EAAE;AACb,CAAC;AAAChE,OAAA,CAAA6D,2BAAA,GAAAA,2BAAA"}
1
+ {"version":3,"file":"Constants.js","names":["CONTENT_PATH","exports","UPLOAD_PATH","CAPTCHA_PATH","CHANGEPASSWORD_PATH","USERPROFILE_PATH","RESOURCE_PATH","PARAMETER_SEPARATOR","TIMEVERSION_FILTER_NAME","PARAMETER_OVERVIEW_VIEWTYPE","DEFAULT_UI_PARAMETERS","ISO_DATE_FORMAT","ISO_DATETIME_FORMAT","ISO_TIME_FORMAT","ISO_TIMESTAMP_FORMAT","DEFAULT_WEEK_STARTS_ON","DEFAULT_FIRST_WEEK_CONTAINS_DATE","KEYCODES","TAB","ENTER","ESCAPE","SPACE","PAGE_UP","PAGE_DOWN","ARROW_LEFT","ARROW_UP","ARROW_RIGHT","ARROW_DOWN","IS_SYNC","dataFetcher","IS_SERVER","NOTIFICATION_TYPES","SUCCESS","INFO","WARNING","ERROR","HTTP_METHODS","GET","POST","MODULARUI_STATUS","LOADING","FINISHED","AUTOSAVE_STATUS","START","INPUT_DEBOUNCE_TIMEOUT","VALIDATE_DEBOUNCE_TIMEOUT","ATTRIBUTE_WIDTH","EXTRA_SMALL","SMALL","MEDIUM","LARGE","EXTRA_LARGE","ALL_CONTENT_IN_DATA_SETTING","INTERNAL_LOGIN_TYPE","JAAS","PAC4J_FORM","PAC4J_BASIC","LOGIN_TYPE","LOGIN_PATH_SETTING","LOGIN_USERNAME_SETTING","LOGIN_PASSWORD_SETTING","LOGOUT_PATH_SETTING","DEFAULT_AUTHENTICATION_TYPE","name","authentication","isPrimary"],"sources":["../../src/constants/Constants.js"],"sourcesContent":["// @flow\n/**\n * path to content service\n */\nexport const CONTENT_PATH = `/content`;\n\n/**\n * Upload Path\n */\nexport const UPLOAD_PATH = `/uploadFile`;\n\n/**\n * Captcha Path\n */\nexport const CAPTCHA_PATH = `/captchaServices`;\n\n/**\n * Path to change password page / component\n */\nexport const CHANGEPASSWORD_PATH = \"/change-password\";\n\n/**\n * Path to user profile page / component\n */\nexport const USERPROFILE_PATH = \"/user\";\n\n/**\n * Path to resources in the Be Informed repository\n */\nexport const RESOURCE_PATH = \"/resource\";\n\n/**\n * Separator for parameters of a list, makes it possible to render multiple lists on a page in a non-js environment\n */\nexport const PARAMETER_SEPARATOR = \"~\";\n\n/**\n * Timeversion filter name\n */\nexport const TIMEVERSION_FILTER_NAME = \"entryDate\";\n\nconst PARAMETER_OVERVIEW_VIEWTYPE = \"viewType\";\n/**\n * Parameter name for the viewtype toggle\n */\nexport const DEFAULT_UI_PARAMETERS: Array<string> = [\n PARAMETER_OVERVIEW_VIEWTYPE,\n];\n\n/**\n */\nexport const ISO_DATE_FORMAT = \"yyyy-MM-dd\";\n/**\n */\nexport const ISO_DATETIME_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss\";\n/**\n */\nexport const ISO_TIME_FORMAT = \"HH:mm:ss\";\n/**\n */\nexport const ISO_TIMESTAMP_FORMAT = \"yyyy-MM-dd'T'HH:mm:ss.SSS\";\n/**\n * week starts on monday by default\n */\nexport const DEFAULT_WEEK_STARTS_ON = 1;\n\n/**\n * first week indicated by the 1st of january\n */\nexport const DEFAULT_FIRST_WEEK_CONTAINS_DATE = 1;\n\n/**\n * Key codes\n * @type {{SPACE: number, PAGE_DOWN: number, TAB: number, ARROW_RIGHT: number, ARROW_DOWN: number, ENTER: number, ARROW_UP: number, ARROW_LEFT: number, PAGE_UP: number, ESCAPE: number}}\n */\nexport const KEYCODES = {\n TAB: 9,\n ENTER: 13,\n ESCAPE: 27,\n SPACE: 32,\n PAGE_UP: 33,\n PAGE_DOWN: 34,\n ARROW_LEFT: 37,\n ARROW_UP: 38,\n ARROW_RIGHT: 39,\n ARROW_DOWN: 40,\n};\n\n/**\n * @type {boolean}\n */\nexport const IS_SYNC = typeof dataFetcher !== \"undefined\";\n/**\n * @type {boolean}\n */\nexport const IS_SERVER = IS_SYNC;\n\n/**\n * @type {{SUCCESS: string, ERROR: string, INFO: string, WARNING: string}}\n */\nexport const NOTIFICATION_TYPES = {\n SUCCESS: \"SUCCESS\",\n INFO: \"INFO\",\n WARNING: \"WARNING\",\n ERROR: \"ERROR\",\n};\n\n/**\n * SUPPORTED HTTP METHODS\n * @type {{POST: string, GET: string}}\n */\nexport const HTTP_METHODS = {\n GET: \"GET\",\n POST: \"POST\",\n};\n\n/**\n * POSSIBLE MODULARUI STATUSSES\n * @type {{LOADING: string, ERROR: string, FINISHED: string}}\n */\nexport const MODULARUI_STATUS = {\n LOADING: \"LOADING\",\n FINISHED: \"FINISHED\",\n ERROR: \"ERROR\",\n};\n\n/**\n * POSSIBLE AUTOSAVE STATUSSES\n * @type {{START: string, FINISHED: string}}\n */\nexport const AUTOSAVE_STATUS = {\n START: \"START\",\n FINISHED: \"FINISHED\",\n};\n\n/**\n * DEBOUNCE INPUT TIMEOUT\n */\nexport const INPUT_DEBOUNCE_TIMEOUT = 100;\n\n/**\n * DEBOUNCE VALIDATION TIMEOUT\n */\nexport const VALIDATE_DEBOUNCE_TIMEOUT = 500;\n\n/**\n * ATTRIBUTE WIDTH\n */\nexport const ATTRIBUTE_WIDTH = {\n EXTRA_SMALL: \"EXTRA_SMALL\",\n SMALL: \"SMALL\",\n MEDIUM: \"MEDIUM\",\n LARGE: \"LARGE\",\n EXTRA_LARGE: \"EXTRA_LARGE\",\n};\n\nexport const ALL_CONTENT_IN_DATA_SETTING = \"hasAllContentInData\";\n\nexport const INTERNAL_LOGIN_TYPE = {\n JAAS: \"JAAS\",\n PAC4J_FORM: \"PAC4J_FORM\",\n PAC4J_BASIC: \"PAC4J_BASIC\",\n};\nexport const LOGIN_TYPE = \"security.clients\";\nexport const LOGIN_PATH_SETTING = \"FormClient.login_url\";\nexport const LOGIN_USERNAME_SETTING = \"FormClient.username_field_name\";\nexport const LOGIN_PASSWORD_SETTING = \"FormClient.password_field_name\";\nexport const LOGOUT_PATH_SETTING = \"FormClient.logout_url\";\n\nexport const DEFAULT_AUTHENTICATION_TYPE = {\n name: \"Form based authentication\",\n authentication: \"DefaultFormClient\",\n isPrimary: true,\n};\n"],"mappings":";;;;;;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAI,UAAS;;AAEtC;AACA;AACA;AACO,MAAME,WAAW,GAAAD,OAAA,CAAAC,WAAA,GAAI,aAAY;;AAExC;AACA;AACA;AACO,MAAMC,YAAY,GAAAF,OAAA,CAAAE,YAAA,GAAI,kBAAiB;;AAE9C;AACA;AACA;AACO,MAAMC,mBAAmB,GAAAH,OAAA,CAAAG,mBAAA,GAAG,kBAAkB;;AAErD;AACA;AACA;AACO,MAAMC,gBAAgB,GAAAJ,OAAA,CAAAI,gBAAA,GAAG,OAAO;;AAEvC;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,GAAAxD,OAAA,CAAAwD,UAAA,GAAG,kBAAkB;AACrC,MAAMC,kBAAkB,GAAAzD,OAAA,CAAAyD,kBAAA,GAAG,sBAAsB;AACjD,MAAMC,sBAAsB,GAAA1D,OAAA,CAAA0D,sBAAA,GAAG,gCAAgC;AAC/D,MAAMC,sBAAsB,GAAA3D,OAAA,CAAA2D,sBAAA,GAAG,gCAAgC;AAC/D,MAAMC,mBAAmB,GAAA5D,OAAA,CAAA4D,mBAAA,GAAG,uBAAuB;AAEnD,MAAMC,2BAA2B,GAAA7D,OAAA,CAAA6D,2BAAA,GAAG;EACzCC,IAAI,EAAE,2BAA2B;EACjCC,cAAc,EAAE,mBAAmB;EACnCC,SAAS,EAAE;AACb,CAAC"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.LayoutHintConfiguration = void 0;
7
- const LayoutHintConfiguration = {
7
+ const LayoutHintConfiguration = exports.LayoutHintConfiguration = {
8
8
  MANDATORY: {
9
9
  hint: "mandatory",
10
10
  description: {
@@ -145,5 +145,4 @@ const LayoutHintConfiguration = {
145
145
  component: ["attribute"]
146
146
  }
147
147
  };
148
- exports.LayoutHintConfiguration = LayoutHintConfiguration;
149
148
  //# sourceMappingURL=LayoutHintConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutHintConfig.js","names":["LayoutHintConfiguration","MANDATORY","hint","description","NL","EN","link","component","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE_ACTION","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CONFIRM_PASSWORD","TITLE","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","CREATE_ACTION","UPDATE_ACTION","DELETE_ACTION","SORT_OPTIONS","CASEVIEW_LINK","DISABLED","exports"],"sources":["../../src/constants/LayoutHintConfig.js"],"sourcesContent":["// @flow\nexport const LayoutHintConfiguration = {\n MANDATORY: {\n hint: \"mandatory\",\n description: {\n NL: \"Geeft aan of een attribuut verplicht is. Dient samen met de dependency hint gebruikt te worden.\",\n EN: \"Indicates a mandatory attribute.\\nShould be used together with the dependency hint.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n DEPENDENT_ATTRIBUTE_CONTROL: {\n hint: \"dependent-control:${unique-control-id}\",\n description: {\n NL: \"Geeft aan dat dit het attribuut is waar attributen van afhankelijk zijn. Het unique-control-id is een uniek id dat kan worden gebruikt in the hint voor de show|hide actie op het afhankelijke attribuut.\",\n EN: \"Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\",\n },\n link: \"\",\n component: [\"attribute/boolean\", \"attribute/choice\"],\n },\n DEPENDENT_ATTRIBUTE_ACTION: {\n hint: \"dependent-attribute:(show|hide) when dependent-control:${unique-control-id} (equals|includes|notEquals|notIncludes) [${codemaps}]\",\n description: {\n NL: \"Toon of verberg een attribute dat afhankelijk is van de geselecteerde opties van een keuze attribute\",\n EN: \"To show or hide an attribute dependent on options of the choice control codemap that are selected or not selected.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n SHOW_ONE_RESULT_AS_DETAIL: {\n hint: \"show-one-result-as-detail\",\n description: {\n NL: \"Een lijst met maar één item mag direct als detail getoond worden.\",\n EN: \"A list with only one detail must be shown as a detail.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n HIDE_WHEN_EMPTY: {\n hint: \"hide-when-empty\",\n description: {\n NL: \"Een lijst zonder lijst-items en lijst-taken dient niet getoond worden.\",\n EN: \"A list without list-items and list-tasks should not be shown.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n INITIAL_FILTER: {\n hint: \"initial-filter:${filter-name}=${initial-value}\",\n description: {\n NL: \"Laad de lijst met een standaardwaarde voor een filter, er is geen controle op het bestaan van het filter. Als het filter niet is geconfigureerd, treedt er een fout op. Houd er rekening mee dat filters hoofdlettergevoelig zijn.\",\n EN: \"Load the list with a default value for a filter, there is no check for the existence of the filter. If the filter is not configured, an error occurs. Keep in mind that filters are case sensitive.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n CONFIRM_PASSWORD: {\n hint: \"confirm-password\",\n description: {\n NL: \"Wachtwoord attribuut moet bevestigd worden dmv een tweede wachtwoord attribuut.\",\n EN: \"Password attribute must be confirmed using a second password attribute.\",\n },\n link: \"\",\n component: [\"attribute/password\"],\n },\n TITLE: {\n hint: \"title\",\n description: {\n NL: \"Markeert een attribuut als een titel attribuut\",\n EN: \"Marks an attribute as a title attribute\",\n },\n link: \"\",\n component: [\n \"caseview_table\",\n \"codemap\",\n \"list/appointment_table\",\n \"list/assignment_table\",\n \"list/caseproperties_table\",\n \"list/document_table\",\n \"list/timelimit_table\",\n \"list/eventhistory_table\",\n \"list/note_table\",\n \"list/record_table\",\n \"list/case_table\",\n \"list/casesearch_table\",\n \"list/datastore_table\",\n \"list/datastoreview_table\",\n \"list/instrumentresult_table\",\n \"list/event_table\",\n \"list/user_table\",\n \"list/organization_table\",\n ],\n },\n INITIAL_TOTAL_FILESIZE: {\n hint: \"initial-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de reeds gebruikte file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n MAX_TOTAL_FILESIZE: {\n hint: \"max-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de maximaal toegestane file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n CREATE_ACTION: {\n hint: \"create\",\n description: {\n NL: \"Markeer taak als creëer taak.\",\n EN: \"Mark task as create task\",\n },\n component: [\"form\"],\n },\n UPDATE_ACTION: {\n hint: \"update\",\n description: {\n NL: \"Markeer taak als bewerk taak.\",\n EN: \"Mark task as update task\",\n },\n component: [\"form\"],\n },\n DELETE_ACTION: {\n hint: \"delete\",\n description: {\n NL: \"Markeer taak als verwijder taak.\",\n EN: \"Mark task as delete task\",\n },\n component: [\"form\"],\n },\n SORT_OPTIONS: {\n hint: \"sort-options\",\n description: {\n NL: \"Sorteer opties alfabetisch\",\n EN: \"Sort options alphabetically\",\n },\n component: [\"attribute/choice\"],\n },\n CASEVIEW_LINK: {\n hint: \"case-view-link\",\n description: {\n NL: \"Markeer een case id reference attribute als de referentie naar de case view. Vervangt de self link van een lijst item\",\n EN: \"Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\",\n },\n component: [\"attribute/reference\", \"list/datastore_table\"],\n },\n DISABLED: {\n hint: \"disabled\",\n description: {\n NL: \"Geeft aan of een attribuut uitgeschakeld is.\",\n EN: \"Indicates a disabled attribute.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n};\n"],"mappings":";;;;;;AACO,MAAMA,uBAAuB,GAAG;EACrCC,SAAS,EAAE;IACTC,IAAI,EAAE,WAAW;IACjBC,WAAW,EAAE;MACXC,EAAE,EAAE,iGAAiG;MACrGC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB,CAAC;EACDC,2BAA2B,EAAE;IAC3BN,IAAI,EAAE,wCAAwC;IAC9CC,WAAW,EAAE;MACXC,EAAE,EAAE,2MAA2M;MAC/MC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,mBAAmB,EAAE,kBAAkB;EACrD,CAAC;EACDE,0BAA0B,EAAE;IAC1BP,IAAI,EAAE,mIAAmI;IACzIC,WAAW,EAAE;MACXC,EAAE,EAAE,sGAAsG;MAC1GC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB,CAAC;EACDG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E;MACXC,EAAE,EAAE,8CAA8C;MAClDC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB;AACF,CAAC;AAACgB,OAAA,CAAAvB,uBAAA,GAAAA,uBAAA"}
1
+ {"version":3,"file":"LayoutHintConfig.js","names":["LayoutHintConfiguration","exports","MANDATORY","hint","description","NL","EN","link","component","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE_ACTION","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CONFIRM_PASSWORD","TITLE","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","CREATE_ACTION","UPDATE_ACTION","DELETE_ACTION","SORT_OPTIONS","CASEVIEW_LINK","DISABLED"],"sources":["../../src/constants/LayoutHintConfig.js"],"sourcesContent":["// @flow\nexport const LayoutHintConfiguration = {\n MANDATORY: {\n hint: \"mandatory\",\n description: {\n NL: \"Geeft aan of een attribuut verplicht is. Dient samen met de dependency hint gebruikt te worden.\",\n EN: \"Indicates a mandatory attribute.\\nShould be used together with the dependency hint.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n DEPENDENT_ATTRIBUTE_CONTROL: {\n hint: \"dependent-control:${unique-control-id}\",\n description: {\n NL: \"Geeft aan dat dit het attribuut is waar attributen van afhankelijk zijn. Het unique-control-id is een uniek id dat kan worden gebruikt in the hint voor de show|hide actie op het afhankelijke attribuut.\",\n EN: \"Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\",\n },\n link: \"\",\n component: [\"attribute/boolean\", \"attribute/choice\"],\n },\n DEPENDENT_ATTRIBUTE_ACTION: {\n hint: \"dependent-attribute:(show|hide) when dependent-control:${unique-control-id} (equals|includes|notEquals|notIncludes) [${codemaps}]\",\n description: {\n NL: \"Toon of verberg een attribute dat afhankelijk is van de geselecteerde opties van een keuze attribute\",\n EN: \"To show or hide an attribute dependent on options of the choice control codemap that are selected or not selected.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n SHOW_ONE_RESULT_AS_DETAIL: {\n hint: \"show-one-result-as-detail\",\n description: {\n NL: \"Een lijst met maar één item mag direct als detail getoond worden.\",\n EN: \"A list with only one detail must be shown as a detail.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n HIDE_WHEN_EMPTY: {\n hint: \"hide-when-empty\",\n description: {\n NL: \"Een lijst zonder lijst-items en lijst-taken dient niet getoond worden.\",\n EN: \"A list without list-items and list-tasks should not be shown.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n INITIAL_FILTER: {\n hint: \"initial-filter:${filter-name}=${initial-value}\",\n description: {\n NL: \"Laad de lijst met een standaardwaarde voor een filter, er is geen controle op het bestaan van het filter. Als het filter niet is geconfigureerd, treedt er een fout op. Houd er rekening mee dat filters hoofdlettergevoelig zijn.\",\n EN: \"Load the list with a default value for a filter, there is no check for the existence of the filter. If the filter is not configured, an error occurs. Keep in mind that filters are case sensitive.\",\n },\n link: \"\",\n component: [\"list\"],\n },\n CONFIRM_PASSWORD: {\n hint: \"confirm-password\",\n description: {\n NL: \"Wachtwoord attribuut moet bevestigd worden dmv een tweede wachtwoord attribuut.\",\n EN: \"Password attribute must be confirmed using a second password attribute.\",\n },\n link: \"\",\n component: [\"attribute/password\"],\n },\n TITLE: {\n hint: \"title\",\n description: {\n NL: \"Markeert een attribuut als een titel attribuut\",\n EN: \"Marks an attribute as a title attribute\",\n },\n link: \"\",\n component: [\n \"caseview_table\",\n \"codemap\",\n \"list/appointment_table\",\n \"list/assignment_table\",\n \"list/caseproperties_table\",\n \"list/document_table\",\n \"list/timelimit_table\",\n \"list/eventhistory_table\",\n \"list/note_table\",\n \"list/record_table\",\n \"list/case_table\",\n \"list/casesearch_table\",\n \"list/datastore_table\",\n \"list/datastoreview_table\",\n \"list/instrumentresult_table\",\n \"list/event_table\",\n \"list/user_table\",\n \"list/organization_table\",\n ],\n },\n INITIAL_TOTAL_FILESIZE: {\n hint: \"initial-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de reeds gebruikte file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n MAX_TOTAL_FILESIZE: {\n hint: \"max-total-file-size\",\n description: {\n NL: \"Wordt gebruikt in samenwerking met een upload attribuut, deze hint moet worden gezet op een readonly attribuut dat de maximaal toegestane file grootte bevat.\",\n EN: \"Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\",\n },\n link: \"\",\n component: [\"attribute/number\"],\n },\n CREATE_ACTION: {\n hint: \"create\",\n description: {\n NL: \"Markeer taak als creëer taak.\",\n EN: \"Mark task as create task\",\n },\n component: [\"form\"],\n },\n UPDATE_ACTION: {\n hint: \"update\",\n description: {\n NL: \"Markeer taak als bewerk taak.\",\n EN: \"Mark task as update task\",\n },\n component: [\"form\"],\n },\n DELETE_ACTION: {\n hint: \"delete\",\n description: {\n NL: \"Markeer taak als verwijder taak.\",\n EN: \"Mark task as delete task\",\n },\n component: [\"form\"],\n },\n SORT_OPTIONS: {\n hint: \"sort-options\",\n description: {\n NL: \"Sorteer opties alfabetisch\",\n EN: \"Sort options alphabetically\",\n },\n component: [\"attribute/choice\"],\n },\n CASEVIEW_LINK: {\n hint: \"case-view-link\",\n description: {\n NL: \"Markeer een case id reference attribute als de referentie naar de case view. Vervangt de self link van een lijst item\",\n EN: \"Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\",\n },\n component: [\"attribute/reference\", \"list/datastore_table\"],\n },\n DISABLED: {\n hint: \"disabled\",\n description: {\n NL: \"Geeft aan of een attribuut uitgeschakeld is.\",\n EN: \"Indicates a disabled attribute.\",\n },\n link: \"\",\n component: [\"attribute\"],\n },\n};\n"],"mappings":";;;;;;AACO,MAAMA,uBAAuB,GAAAC,OA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CAAC;IACDE,SAAS,EAAE,CAAC,MAAM;EACpB,CAAC;EACDY,aAAa,EAAE;IACbjB,IAAI,EAAE,QAAQ;IACdC,WAAW,EAAE;MACXC,EAAE,EAAE,kCAAkC;MACtCC,EAAE,EAAE;IACN,CAAC;IACDE,SAAS,EAAE,CAAC,MAAM;EACpB,CAAC;EACDa,YAAY,EAAE;IACZlB,IAAI,EAAE,cAAc;IACpBC,WAAW,EAAE;MACXC,EAAE,EAAE,4BAA4B;MAChCC,EAAE,EAAE;IACN,CAAC;IACDE,SAAS,EAAE,CAAC,kBAAkB;EAChC,CAAC;EACDc,aAAa,EAAE;IACbnB,IAAI,EAAE,gBAAgB;IACtBC,WAAW,EAAE;MACXC,EAAE,EAAE,uHAAuH;MAC3HC,EAAE,EAAE;IACN,CAAC;IACDE,SAAS,EAAE,CAAC,qBAAqB,EAAE,sBAAsB;EAC3D,CAAC;EACDe,QAAQ,EAAE;IACRpB,IAAI,EAAE,UAAU;IAChBC,WAAW,EAAE;MACXC,EAAE,EAAE,8CAA8C;MAClDC,EAAE,EAAE;IACN,CAAC;IACDC,IAAI,EAAE,EAAE;IACRC,SAAS,EAAE,CAAC,WAAW;EACzB;AACF,CAAC"}
@@ -18,14 +18,13 @@ const getHint = hint => {
18
18
  /**
19
19
  * Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.
20
20
  */
21
- const MANDATORY = getHint("MANDATORY");
21
+ const MANDATORY = exports.MANDATORY = getHint("MANDATORY");
22
22
 
23
23
  /**
24
24
  * Layout-hint: Indicates a disabled attribute.
25
25
  * @constant
26
26
  */
27
- exports.MANDATORY = MANDATORY;
28
- const DISABLED = getHint("DISABLED");
27
+ const DISABLED = exports.DISABLED = getHint("DISABLED");
29
28
 
30
29
  /*
31
30
  * --------------------------------
@@ -35,12 +34,10 @@ const DISABLED = getHint("DISABLED");
35
34
  /**
36
35
  * Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.
37
36
  */
38
- exports.DISABLED = DISABLED;
39
- const DEPENDENT_ATTRIBUTE_CONTROL = "dependent-control";
37
+ const DEPENDENT_ATTRIBUTE_CONTROL = exports.DEPENDENT_ATTRIBUTE_CONTROL = "dependent-control";
40
38
  /**
41
39
  */
42
- exports.DEPENDENT_ATTRIBUTE_CONTROL = DEPENDENT_ATTRIBUTE_CONTROL;
43
- const DEPENDENT_ATTRIBUTE = "dependent-attribute:";
40
+ const DEPENDENT_ATTRIBUTE = exports.DEPENDENT_ATTRIBUTE = "dependent-attribute:";
44
41
 
45
42
  /*
46
43
  * --------------------------------
@@ -50,18 +47,15 @@ const DEPENDENT_ATTRIBUTE = "dependent-attribute:";
50
47
  /**
51
48
  * Layout-hint: Password attribute must be confirmed using a second password attribute.
52
49
  */
53
- exports.DEPENDENT_ATTRIBUTE = DEPENDENT_ATTRIBUTE;
54
- const CONFIRM_PASSWORD = getHint("CONFIRM_PASSWORD");
50
+ const CONFIRM_PASSWORD = exports.CONFIRM_PASSWORD = getHint("CONFIRM_PASSWORD");
55
51
  /**
56
52
  * Layout-hint: Sort options alphabetically
57
53
  */
58
- exports.CONFIRM_PASSWORD = CONFIRM_PASSWORD;
59
- const SORT_OPTIONS = getHint("SORT_OPTIONS");
54
+ const SORT_OPTIONS = exports.SORT_OPTIONS = getHint("SORT_OPTIONS");
60
55
  /**
61
56
  * Layout-hint: Marks an attribute as a title attribute
62
57
  */
63
- exports.SORT_OPTIONS = SORT_OPTIONS;
64
- const TITLE = getHint("TITLE");
58
+ const TITLE = exports.TITLE = getHint("TITLE");
65
59
 
66
60
  /*
67
61
  * --------------------------------
@@ -71,18 +65,15 @@ const TITLE = getHint("TITLE");
71
65
  /**
72
66
  * Layout-hint: Mark task as delete task
73
67
  */
74
- exports.TITLE = TITLE;
75
- const DELETE_ACTION = getHint("DELETE_ACTION");
68
+ const DELETE_ACTION = exports.DELETE_ACTION = getHint("DELETE_ACTION");
76
69
  /**
77
70
  * Layout-hint: Mark task as update task
78
71
  */
79
- exports.DELETE_ACTION = DELETE_ACTION;
80
- const UPDATE_ACTION = getHint("UPDATE_ACTION");
72
+ const UPDATE_ACTION = exports.UPDATE_ACTION = getHint("UPDATE_ACTION");
81
73
  /**
82
74
  * Layout-hint: Mark task as create task
83
75
  */
84
- exports.UPDATE_ACTION = UPDATE_ACTION;
85
- const CREATE_ACTION = getHint("CREATE_ACTION");
76
+ const CREATE_ACTION = exports.CREATE_ACTION = getHint("CREATE_ACTION");
86
77
 
87
78
  /*
88
79
  * --------------------------------
@@ -92,13 +83,11 @@ const CREATE_ACTION = getHint("CREATE_ACTION");
92
83
  /**
93
84
  * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.
94
85
  */
95
- exports.CREATE_ACTION = CREATE_ACTION;
96
- const INITIAL_TOTAL_FILESIZE = getHint("INITIAL_TOTAL_FILESIZE");
86
+ const INITIAL_TOTAL_FILESIZE = exports.INITIAL_TOTAL_FILESIZE = getHint("INITIAL_TOTAL_FILESIZE");
97
87
  /**
98
88
  * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.
99
89
  */
100
- exports.INITIAL_TOTAL_FILESIZE = INITIAL_TOTAL_FILESIZE;
101
- const MAX_TOTAL_FILESIZE = getHint("MAX_TOTAL_FILESIZE");
90
+ const MAX_TOTAL_FILESIZE = exports.MAX_TOTAL_FILESIZE = getHint("MAX_TOTAL_FILESIZE");
102
91
 
103
92
  /*
104
93
  * --------------------------------
@@ -108,35 +97,28 @@ const MAX_TOTAL_FILESIZE = getHint("MAX_TOTAL_FILESIZE");
108
97
  /**
109
98
  * Layout-hint: A list with only one detail must be shown as a detail
110
99
  */
111
- exports.MAX_TOTAL_FILESIZE = MAX_TOTAL_FILESIZE;
112
- const SHOW_ONE_RESULT_AS_DETAIL = getHint("SHOW_ONE_RESULT_AS_DETAIL");
100
+ const SHOW_ONE_RESULT_AS_DETAIL = exports.SHOW_ONE_RESULT_AS_DETAIL = getHint("SHOW_ONE_RESULT_AS_DETAIL");
113
101
  /**
114
102
  * Layout-hint: A list without list-items and list-tasks should not be shown.
115
103
  */
116
- exports.SHOW_ONE_RESULT_AS_DETAIL = SHOW_ONE_RESULT_AS_DETAIL;
117
- const HIDE_WHEN_EMPTY = getHint("HIDE_WHEN_EMPTY");
104
+ const HIDE_WHEN_EMPTY = exports.HIDE_WHEN_EMPTY = getHint("HIDE_WHEN_EMPTY");
118
105
  /**
119
106
  * Layout-hint: Sets a default value on a filter
120
107
  */
121
- exports.HIDE_WHEN_EMPTY = HIDE_WHEN_EMPTY;
122
- const INITIAL_FILTER = "initial-filter:";
108
+ const INITIAL_FILTER = exports.INITIAL_FILTER = "initial-filter:";
123
109
  /**
124
110
  * Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item
125
111
  */
126
- exports.INITIAL_FILTER = INITIAL_FILTER;
127
- const CASEVIEW_LINK = getHint("CASEVIEW_LINK");
112
+ const CASEVIEW_LINK = exports.CASEVIEW_LINK = getHint("CASEVIEW_LINK");
128
113
 
129
114
  /**
130
115
  * Layout-hint: Set on configuration of instruments to show content in a popover on a label
131
116
  */
132
- exports.CASEVIEW_LINK = CASEVIEW_LINK;
133
- const RENDER_SECTION_LABEL = "render-section-label";
117
+ const RENDER_SECTION_LABEL = exports.RENDER_SECTION_LABEL = "render-section-label";
134
118
 
135
119
  /**
136
120
  */
137
- exports.RENDER_SECTION_LABEL = RENDER_SECTION_LABEL;
138
121
  const getLayoutHintConfiguration = () => _LayoutHintConfig.LayoutHintConfiguration;
139
122
  exports.getLayoutHintConfiguration = getLayoutHintConfiguration;
140
- var _default = getHint;
141
- exports.default = _default;
123
+ var _default = exports.default = getHint;
142
124
  //# sourceMappingURL=LayoutHints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutHints.js","names":["_LayoutHintConfig","require","getHint","hint","LayoutHintConfiguration","MANDATORY","exports","DISABLED","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE","CONFIRM_PASSWORD","SORT_OPTIONS","TITLE","DELETE_ACTION","UPDATE_ACTION","CREATE_ACTION","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CASEVIEW_LINK","RENDER_SECTION_LABEL","getLayoutHintConfiguration","_default","default"],"sources":["../../src/constants/LayoutHints.js"],"sourcesContent":["// @flow\nimport { LayoutHintConfiguration } from \"./LayoutHintConfig\";\n\n/**\n * Retrieve layout hint by id from the layout hint configuration\n */\nconst getHint = (hint: string): string => {\n if (LayoutHintConfiguration[hint]) {\n return LayoutHintConfiguration[hint].hint;\n }\n\n return \"\";\n};\n\n/**\n * Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.\n */\nexport const MANDATORY: string = getHint(\"MANDATORY\");\n\n/**\n * Layout-hint: Indicates a disabled attribute.\n * @constant\n */\nexport const DISABLED: string = getHint(\"DISABLED\");\n\n/*\n * --------------------------------\n * SELECT DEPENDENT ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\n */\nexport const DEPENDENT_ATTRIBUTE_CONTROL = \"dependent-control\";\n/**\n */\nexport const DEPENDENT_ATTRIBUTE = \"dependent-attribute:\";\n\n/*\n * --------------------------------\n * ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Password attribute must be confirmed using a second password attribute.\n */\nexport const CONFIRM_PASSWORD: string = getHint(\"CONFIRM_PASSWORD\");\n/**\n * Layout-hint: Sort options alphabetically\n */\nexport const SORT_OPTIONS: string = getHint(\"SORT_OPTIONS\");\n/**\n * Layout-hint: Marks an attribute as a title attribute\n */\nexport const TITLE: string = getHint(\"TITLE\");\n\n/*\n * --------------------------------\n * FORM\n * --------------------------------\n */\n/**\n * Layout-hint: Mark task as delete task\n */\nexport const DELETE_ACTION: string = getHint(\"DELETE_ACTION\");\n/**\n * Layout-hint: Mark task as update task\n */\nexport const UPDATE_ACTION: string = getHint(\"UPDATE_ACTION\");\n/**\n * Layout-hint: Mark task as create task\n */\nexport const CREATE_ACTION: string = getHint(\"CREATE_ACTION\");\n\n/*\n * --------------------------------\n * UPLOAD TOTAL FILE SIZE\n * --------------------------------\n */\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\n */\nexport const INITIAL_TOTAL_FILESIZE: string = getHint(\"INITIAL_TOTAL_FILESIZE\");\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\n */\nexport const MAX_TOTAL_FILESIZE: string = getHint(\"MAX_TOTAL_FILESIZE\");\n\n/*\n * --------------------------------\n * LISTS\n * --------------------------------\n */\n/**\n * Layout-hint: A list with only one detail must be shown as a detail\n */\nexport const SHOW_ONE_RESULT_AS_DETAIL: string = getHint(\n \"SHOW_ONE_RESULT_AS_DETAIL\",\n);\n/**\n * Layout-hint: A list without list-items and list-tasks should not be shown.\n */\nexport const HIDE_WHEN_EMPTY: string = getHint(\"HIDE_WHEN_EMPTY\");\n/**\n * Layout-hint: Sets a default value on a filter\n */\nexport const INITIAL_FILTER: string = \"initial-filter:\";\n/**\n * Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\n */\nexport const CASEVIEW_LINK: string = getHint(\"CASEVIEW_LINK\");\n\n/**\n * Layout-hint: Set on configuration of instruments to show content in a popover on a label\n */\nexport const RENDER_SECTION_LABEL = \"render-section-label\";\n\n/**\n */\nexport const getLayoutHintConfiguration = (): Object => LayoutHintConfiguration;\n\nexport default getHint;\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA,MAAMC,OAAO,GAAIC,IAAY,IAAa;EACxC,IAAIC,yCAAuB,CAACD,IAAI,CAAC,EAAE;IACjC,OAAOC,yCAAuB,CAACD,IAAI,CAAC,CA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,sBAA8B,GAAGd,OAAO,CAAC,wBAAwB,CAAC;AAC/E;AACA;AACA;AAFAI,OAAA,CAAAU,sBAAA,GAAAA,sBAAA;AAGO,MAAMC,kBAA0B,GAAGf,OAAO,CAAC,oBAAoB,CAAC;;AAEvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAFAI,OAAA,CAAAW,kBAAA,GAAAA,kBAAA;AAGO,MAAMC,yBAAiC,GAAGhB,OAAO,CACtD,2BACF,CAAC;AACD;AACA;AACA;AAFAI,OAAA,CAAAY,yBAAA,GAAAA,yBAAA;AAGO,MAAMC,eAAuB,GAAGjB,OAAO,CAAC,iBAAiB,CAAC;AACjE;AACA;AACA;AAFAI,OAAA,CAAAa,eAAA,GAAAA,eAAA;AAGO,MAAMC,cAAsB,GAAG,iBAAiB;AACvD;AACA;AACA;AAFAd,OAAA,CAAAc,cAAA,GAAAA,cAAA;AAGO,MAAMC,aAAqB,GAAGnB,OAAO,CAAC,eAAe,CAAC;;AAE7D;AACA;AACA;AAFAI,OAAA,CAAAe,aAAA,GAAAA,aAAA;AAGO,MAAMC,oBAAoB,GAAG,sBAAsB;;AAE1D;AACA;AADAhB,OAAA,CAAAgB,oBAAA,GAAAA,oBAAA;AAEO,MAAMC,0BAA0B,GAAGA,CAAA,KAAcnB,yCAAuB;AAACE,OAAA,CAAAiB,0BAAA,GAAAA,0BAAA;AAAA,IAAAC,QAAA,GAEjEtB,OAAO;AAAAI,OAAA,CAAAmB,OAAA,GAAAD,QAAA"}
1
+ {"version":3,"file":"LayoutHints.js","names":["_LayoutHintConfig","require","getHint","hint","LayoutHintConfiguration","MANDATORY","exports","DISABLED","DEPENDENT_ATTRIBUTE_CONTROL","DEPENDENT_ATTRIBUTE","CONFIRM_PASSWORD","SORT_OPTIONS","TITLE","DELETE_ACTION","UPDATE_ACTION","CREATE_ACTION","INITIAL_TOTAL_FILESIZE","MAX_TOTAL_FILESIZE","SHOW_ONE_RESULT_AS_DETAIL","HIDE_WHEN_EMPTY","INITIAL_FILTER","CASEVIEW_LINK","RENDER_SECTION_LABEL","getLayoutHintConfiguration","_default","default"],"sources":["../../src/constants/LayoutHints.js"],"sourcesContent":["// @flow\nimport { LayoutHintConfiguration } from \"./LayoutHintConfig\";\n\n/**\n * Retrieve layout hint by id from the layout hint configuration\n */\nconst getHint = (hint: string): string => {\n if (LayoutHintConfiguration[hint]) {\n return LayoutHintConfiguration[hint].hint;\n }\n\n return \"\";\n};\n\n/**\n * Layout-hint: Indicates a mandatory attribute. Should be used together with the dependency hint.\n */\nexport const MANDATORY: string = getHint(\"MANDATORY\");\n\n/**\n * Layout-hint: Indicates a disabled attribute.\n * @constant\n */\nexport const DISABLED: string = getHint(\"DISABLED\");\n\n/*\n * --------------------------------\n * SELECT DEPENDENT ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Marks the choice attribute where other attributes depend on. The unique control id is a unique id that can be used in the hint for the show|hide action on the dependent attribute.\n */\nexport const DEPENDENT_ATTRIBUTE_CONTROL = \"dependent-control\";\n/**\n */\nexport const DEPENDENT_ATTRIBUTE = \"dependent-attribute:\";\n\n/*\n * --------------------------------\n * ATTRIBUTES\n * --------------------------------\n */\n/**\n * Layout-hint: Password attribute must be confirmed using a second password attribute.\n */\nexport const CONFIRM_PASSWORD: string = getHint(\"CONFIRM_PASSWORD\");\n/**\n * Layout-hint: Sort options alphabetically\n */\nexport const SORT_OPTIONS: string = getHint(\"SORT_OPTIONS\");\n/**\n * Layout-hint: Marks an attribute as a title attribute\n */\nexport const TITLE: string = getHint(\"TITLE\");\n\n/*\n * --------------------------------\n * FORM\n * --------------------------------\n */\n/**\n * Layout-hint: Mark task as delete task\n */\nexport const DELETE_ACTION: string = getHint(\"DELETE_ACTION\");\n/**\n * Layout-hint: Mark task as update task\n */\nexport const UPDATE_ACTION: string = getHint(\"UPDATE_ACTION\");\n/**\n * Layout-hint: Mark task as create task\n */\nexport const CREATE_ACTION: string = getHint(\"CREATE_ACTION\");\n\n/*\n * --------------------------------\n * UPLOAD TOTAL FILE SIZE\n * --------------------------------\n */\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the file size currently used.\n */\nexport const INITIAL_TOTAL_FILESIZE: string = getHint(\"INITIAL_TOTAL_FILESIZE\");\n/**\n * Layout-hint: Used in conjunction with an upload attribute, this hint is set on a read only attribute containing the maximum allowed total file size.\n */\nexport const MAX_TOTAL_FILESIZE: string = getHint(\"MAX_TOTAL_FILESIZE\");\n\n/*\n * --------------------------------\n * LISTS\n * --------------------------------\n */\n/**\n * Layout-hint: A list with only one detail must be shown as a detail\n */\nexport const SHOW_ONE_RESULT_AS_DETAIL: string = getHint(\n \"SHOW_ONE_RESULT_AS_DETAIL\",\n);\n/**\n * Layout-hint: A list without list-items and list-tasks should not be shown.\n */\nexport const HIDE_WHEN_EMPTY: string = getHint(\"HIDE_WHEN_EMPTY\");\n/**\n * Layout-hint: Sets a default value on a filter\n */\nexport const INITIAL_FILTER: string = \"initial-filter:\";\n/**\n * Layout-hint: Mark a case id reference attribute as the reference to the case view. Replaces the self link of a list item\n */\nexport const CASEVIEW_LINK: string = getHint(\"CASEVIEW_LINK\");\n\n/**\n * Layout-hint: Set on configuration of instruments to show content in a popover on a label\n */\nexport const RENDER_SECTION_LABEL = \"render-section-label\";\n\n/**\n */\nexport const getLayoutHintConfiguration = (): Object => LayoutHintConfiguration;\n\nexport default getHint;\n"],"mappings":";;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA,MAAMC,OAAO,GAAIC,IAAY,IAAa;EACxC,IAAIC,yCAAuB,CAACD,IAAI,CAAC,EAAE;IACjC,OAAOC,yCAAuB,CAACD,IAAI,CAAC,CAACA,IAAI;EAC3C;EAEA,OAAO,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACO,MAAME,SAAiB,GAAAC,OAAA,CAAAD,SAAA,GAAGH,OAAO,CAAC,WAAW,CAAC;;AAErD;AACA;AACA;AACA;AACO,MAAMK,QAAgB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