@beinformed/ui 1.35.0 → 1.36.0

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 (315) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/esm/constants/LayoutHintConfig.js +9 -0
  3. package/esm/constants/LayoutHintConfig.js.map +1 -1
  4. package/esm/constants/LayoutHints.js +5 -0
  5. package/esm/constants/LayoutHints.js.map +1 -1
  6. package/esm/models/actions/ActionCollection.js +1 -1
  7. package/esm/models/actions/ActionCollection.js.map +1 -1
  8. package/esm/models/links/normalizeLinkJSON.js +20 -5
  9. package/esm/models/links/normalizeLinkJSON.js.map +1 -1
  10. package/lib/constants/Constants.js +33 -66
  11. package/lib/constants/Constants.js.map +1 -1
  12. package/lib/constants/LayoutHintConfig.js +10 -2
  13. package/lib/constants/LayoutHintConfig.js.flow +9 -0
  14. package/lib/constants/LayoutHintConfig.js.map +1 -1
  15. package/lib/constants/LayoutHints.js +24 -37
  16. package/lib/constants/LayoutHints.js.flow +5 -0
  17. package/lib/constants/LayoutHints.js.map +1 -1
  18. package/lib/constants/Settings.js +3 -6
  19. package/lib/constants/Settings.js.map +1 -1
  20. package/lib/exceptions/ConfigurationException.js +1 -2
  21. package/lib/exceptions/ConfigurationException.js.map +1 -1
  22. package/lib/exceptions/IllegalArgumentException.js +1 -2
  23. package/lib/exceptions/IllegalArgumentException.js.map +1 -1
  24. package/lib/exceptions/IllegalReturnException.js +1 -2
  25. package/lib/exceptions/IllegalReturnException.js.map +1 -1
  26. package/lib/exceptions/IllegalStateException.js +1 -2
  27. package/lib/exceptions/IllegalStateException.js.map +1 -1
  28. package/lib/exceptions/JsonParseException.js +1 -2
  29. package/lib/exceptions/JsonParseException.js.map +1 -1
  30. package/lib/exceptions/MissingPropertyException.js +1 -2
  31. package/lib/exceptions/MissingPropertyException.js.map +1 -1
  32. package/lib/exceptions/NetworkException.js +1 -2
  33. package/lib/exceptions/NetworkException.js.map +1 -1
  34. package/lib/exceptions/NotAllowedUriException.js +1 -2
  35. package/lib/exceptions/NotAllowedUriException.js.map +1 -1
  36. package/lib/exceptions/NotFoundException.js +1 -2
  37. package/lib/exceptions/NotFoundException.js.map +1 -1
  38. package/lib/exceptions/ServerRequestException.js +1 -2
  39. package/lib/exceptions/ServerRequestException.js.map +1 -1
  40. package/lib/exceptions/ThemePropertyException.js +1 -2
  41. package/lib/exceptions/ThemePropertyException.js.map +1 -1
  42. package/lib/exceptions/TimeoutException.js +1 -2
  43. package/lib/exceptions/TimeoutException.js.map +1 -1
  44. package/lib/exceptions/UnauthorizedException.js +1 -2
  45. package/lib/exceptions/UnauthorizedException.js.map +1 -1
  46. package/lib/exceptions/UnsupportedOperationException.js +1 -2
  47. package/lib/exceptions/UnsupportedOperationException.js.map +1 -1
  48. package/lib/hooks/useDeepCompareEffect.js +3 -4
  49. package/lib/hooks/useDeepCompareEffect.js.map +1 -1
  50. package/lib/i18n/Locale.js +1 -2
  51. package/lib/i18n/Locale.js.map +1 -1
  52. package/lib/i18n/Locales.js +2 -4
  53. package/lib/i18n/Locales.js.map +1 -1
  54. package/lib/i18n/Message.js +1 -2
  55. package/lib/i18n/Message.js.map +1 -1
  56. package/lib/i18n/index.js +2 -2
  57. package/lib/i18n/index.js.map +1 -1
  58. package/lib/i18n/languages.js +1 -2
  59. package/lib/i18n/languages.js.map +1 -1
  60. package/lib/i18n/translations/beinformed_error_messages_en.nl.js +1 -2
  61. package/lib/i18n/translations/beinformed_error_messages_en.nl.js.map +1 -1
  62. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js +1 -2
  63. package/lib/i18n/translations/beinformed_error_messages_nl.nl.js.map +1 -1
  64. package/lib/i18n/withMessage.js +1 -2
  65. package/lib/i18n/withMessage.js.map +1 -1
  66. package/lib/models/actions/ActionCollection.js +1 -1
  67. package/lib/models/actions/ActionCollection.js.flow +3 -1
  68. package/lib/models/actions/ActionCollection.js.map +1 -1
  69. package/lib/models/application/__tests__/Application.spec.js.flow +1 -1
  70. package/lib/models/attributes/AttributeCollection.js +1 -2
  71. package/lib/models/attributes/AttributeCollection.js.map +1 -1
  72. package/lib/models/attributes/AttributeContent.js +1 -2
  73. package/lib/models/attributes/AttributeContent.js.map +1 -1
  74. package/lib/models/attributes/AttributeDataHelper.js +1 -2
  75. package/lib/models/attributes/AttributeDataHelper.js.map +1 -1
  76. package/lib/models/attributes/ChoiceAttributeOptionCollection.js +1 -2
  77. package/lib/models/attributes/ChoiceAttributeOptionCollection.js.map +1 -1
  78. package/lib/models/attributes/ChoiceAttributeOptionModel.js +1 -2
  79. package/lib/models/attributes/ChoiceAttributeOptionModel.js.map +1 -1
  80. package/lib/models/attributes/CompositeAttributeChildCollection.js +1 -2
  81. package/lib/models/attributes/CompositeAttributeChildCollection.js.map +1 -1
  82. package/lib/models/attributes/CompositeAttributeModel.js +1 -2
  83. package/lib/models/attributes/CompositeAttributeModel.js.map +1 -1
  84. package/lib/models/attributes/DatetimeAttributeModel.js +1 -2
  85. package/lib/models/attributes/DatetimeAttributeModel.js.map +1 -1
  86. package/lib/models/attributes/_createAttribute.js +1 -2
  87. package/lib/models/attributes/_createAttribute.js.map +1 -1
  88. package/lib/models/attributes/input-constraints/BSNConstraint.js +1 -2
  89. package/lib/models/attributes/input-constraints/BSNConstraint.js.map +1 -1
  90. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +1 -2
  91. package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
  92. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js +1 -2
  93. package/lib/models/attributes/input-constraints/DateTimeDateFormatConstraint.js.map +1 -1
  94. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js +1 -2
  95. package/lib/models/attributes/input-constraints/DateTimeTimeFormatConstraint.js.map +1 -1
  96. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js +1 -2
  97. package/lib/models/attributes/input-constraints/DatetimeFormatConstraint.js.map +1 -1
  98. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js +1 -2
  99. package/lib/models/attributes/input-constraints/FileExtensionConstraint.js.map +1 -1
  100. package/lib/models/attributes/input-constraints/FileSizeConstraint.js +1 -2
  101. package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
  102. package/lib/models/attributes/input-constraints/IBANConstraint.js +1 -2
  103. package/lib/models/attributes/input-constraints/IBANConstraint.js.map +1 -1
  104. package/lib/models/attributes/input-constraints/MandatoryConstraint.js +1 -2
  105. package/lib/models/attributes/input-constraints/MandatoryConstraint.js.map +1 -1
  106. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js +1 -2
  107. package/lib/models/attributes/input-constraints/MandatoryRangeConstraint.js.map +1 -1
  108. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js +1 -2
  109. package/lib/models/attributes/input-constraints/NumberBoundaryConstraint.js.map +1 -1
  110. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js +1 -2
  111. package/lib/models/attributes/input-constraints/NumberFormatConstraint.js.map +1 -1
  112. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js +1 -2
  113. package/lib/models/attributes/input-constraints/NumberGroupingConstraint.js.map +1 -1
  114. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js +1 -2
  115. package/lib/models/attributes/input-constraints/PasswordConfirmConstraint.js.map +1 -1
  116. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js +1 -2
  117. package/lib/models/attributes/input-constraints/PasswordLowerAndUpperCaseConstraint.js.map +1 -1
  118. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js +1 -2
  119. package/lib/models/attributes/input-constraints/PasswordMinNumericCharactersConstraint.js.map +1 -1
  120. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js +1 -2
  121. package/lib/models/attributes/input-constraints/PasswordMinSpecialCharactersConstraint.js.map +1 -1
  122. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js +1 -2
  123. package/lib/models/attributes/input-constraints/PasswordThreeConsecutiveCharactersNotAllowedConstraint.js.map +1 -1
  124. package/lib/models/attributes/input-constraints/RangeConstraint.js +1 -2
  125. package/lib/models/attributes/input-constraints/RangeConstraint.js.map +1 -1
  126. package/lib/models/attributes/input-constraints/RegexConstraint.js +1 -2
  127. package/lib/models/attributes/input-constraints/RegexConstraint.js.map +1 -1
  128. package/lib/models/attributes/input-constraints/StringLengthConstraint.js +1 -2
  129. package/lib/models/attributes/input-constraints/StringLengthConstraint.js.map +1 -1
  130. package/lib/models/attributes/input-constraints/XMLConstraint.js +1 -2
  131. package/lib/models/attributes/input-constraints/XMLConstraint.js.map +1 -1
  132. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js +1 -2
  133. package/lib/models/attributes/layouthint-rules/BaseLayoutHintRule.js.map +1 -1
  134. package/lib/models/attributes/layouthint-rules/DependentAttribute.js +1 -2
  135. package/lib/models/attributes/layouthint-rules/DependentAttribute.js.map +1 -1
  136. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js +1 -2
  137. package/lib/models/attributes/layouthint-rules/LayoutHintRuleCollection.js.map +1 -1
  138. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js +1 -2
  139. package/lib/models/attributes/layouthint-rules/RemainingTotalUploadSize.js.map +1 -1
  140. package/lib/models/base/BaseCollection.js +1 -2
  141. package/lib/models/base/BaseCollection.js.map +1 -1
  142. package/lib/models/base/BaseModel.js +1 -2
  143. package/lib/models/base/BaseModel.js.map +1 -1
  144. package/lib/models/base/ResourceCollection.js +1 -2
  145. package/lib/models/base/ResourceCollection.js.map +1 -1
  146. package/lib/models/base/ResourceModel.js +1 -2
  147. package/lib/models/base/ResourceModel.js.map +1 -1
  148. package/lib/models/concepts/BusinessScenarioModel.js +1 -2
  149. package/lib/models/concepts/BusinessScenarioModel.js.map +1 -1
  150. package/lib/models/concepts/ConceptTypeDetailModel.js +1 -2
  151. package/lib/models/concepts/ConceptTypeDetailModel.js.map +1 -1
  152. package/lib/models/concepts/SourceReferenceModel.js +1 -2
  153. package/lib/models/concepts/SourceReferenceModel.js.map +1 -1
  154. package/lib/models/content/SectionModel.js +1 -2
  155. package/lib/models/content/SectionModel.js.map +1 -1
  156. package/lib/models/contentconfiguration/ContentConfigurationElements.js +1 -2
  157. package/lib/models/contentconfiguration/ContentConfigurationElements.js.map +1 -1
  158. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js +1 -2
  159. package/lib/models/contentconfiguration/ContentConfigurationEndResults.js.map +1 -1
  160. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js +1 -2
  161. package/lib/models/contentconfiguration/ContentConfigurationQuestions.js.map +1 -1
  162. package/lib/models/contentconfiguration/ContentConfigurationResults.js +1 -2
  163. package/lib/models/contentconfiguration/ContentConfigurationResults.js.map +1 -1
  164. package/lib/models/error/ErrorModel.js +1 -2
  165. package/lib/models/error/ErrorModel.js.map +1 -1
  166. package/lib/models/form/FormModel.js +1 -2
  167. package/lib/models/form/FormModel.js.map +1 -1
  168. package/lib/models/href/Href.js +1 -2
  169. package/lib/models/href/Href.js.map +1 -1
  170. package/lib/models/index.js +2 -2
  171. package/lib/models/index.js.map +1 -1
  172. package/lib/models/links/LinkModel.js +1 -2
  173. package/lib/models/links/LinkModel.js.map +1 -1
  174. package/lib/models/links/__tests__/normalizeLinkJSON.spec.js.flow +2 -1
  175. package/lib/models/links/normalizeLinkJSON.js +20 -7
  176. package/lib/models/links/normalizeLinkJSON.js.flow +20 -4
  177. package/lib/models/links/normalizeLinkJSON.js.map +1 -1
  178. package/lib/models/list/ListItemCollection.js +1 -2
  179. package/lib/models/list/ListItemCollection.js.map +1 -1
  180. package/lib/models/lookup/LookupOptionCollection.js +1 -2
  181. package/lib/models/lookup/LookupOptionCollection.js.map +1 -1
  182. package/lib/models/parameter/Parameter.js +1 -2
  183. package/lib/models/parameter/Parameter.js.map +1 -1
  184. package/lib/models/resolveModel.js +1 -2
  185. package/lib/models/resolveModel.js.map +1 -1
  186. package/lib/models/sorting/SortOptionModel.js +1 -2
  187. package/lib/models/sorting/SortOptionModel.js.map +1 -1
  188. package/lib/models/sorting/SortingModel.js +1 -2
  189. package/lib/models/sorting/SortingModel.js.map +1 -1
  190. package/lib/models/taskgroup/__tests__/TaskGroupModel.spec.js.flow +17 -0
  191. package/lib/models/user/UserServicesModel.js +1 -2
  192. package/lib/models/user/UserServicesModel.js.map +1 -1
  193. package/lib/modularui/Authenticate.js +1 -2
  194. package/lib/modularui/Authenticate.js.map +1 -1
  195. package/lib/modularui/CaptchaRequest.js +1 -2
  196. package/lib/modularui/CaptchaRequest.js.map +1 -1
  197. package/lib/modularui/ModularUIError.js +1 -2
  198. package/lib/modularui/ModularUIError.js.map +1 -1
  199. package/lib/modularui/ModularUIRequest.js +1 -2
  200. package/lib/modularui/ModularUIRequest.js.map +1 -1
  201. package/lib/modularui/ModularUIResponse.js +1 -2
  202. package/lib/modularui/ModularUIResponse.js.map +1 -1
  203. package/lib/modularui/UploadRequest.js +1 -2
  204. package/lib/modularui/UploadRequest.js.map +1 -1
  205. package/lib/react/ErrorBoundary.js +1 -2
  206. package/lib/react/ErrorBoundary.js.map +1 -1
  207. package/lib/react/ErrorBoundaryFallback.js +1 -2
  208. package/lib/react/ErrorBoundaryFallback.js.map +1 -1
  209. package/lib/react-client/rehydrate.js +1 -2
  210. package/lib/react-client/rehydrate.js.map +1 -1
  211. package/lib/react-server/createSSRComplete.js +1 -2
  212. package/lib/react-server/createSSRComplete.js.map +1 -1
  213. package/lib/react-server/htmlpage.js +1 -2
  214. package/lib/react-server/htmlpage.js.map +1 -1
  215. package/lib/react-server/renderSSRComplete.js +1 -2
  216. package/lib/react-server/renderSSRComplete.js.map +1 -1
  217. package/lib/react-server/renderSSRMinimal.js +1 -2
  218. package/lib/react-server/renderSSRMinimal.js.map +1 -1
  219. package/lib/react-server/serverNoSSR.js +1 -2
  220. package/lib/react-server/serverNoSSR.js.map +1 -1
  221. package/lib/react-server/serverSSR.js +1 -2
  222. package/lib/react-server/serverSSR.js.map +1 -1
  223. package/lib/react-server/serverUtil.js +2 -2
  224. package/lib/react-server/serverUtil.js.map +1 -1
  225. package/lib/react-theme/ThemeProvider.js +1 -2
  226. package/lib/react-theme/ThemeProvider.js.map +1 -1
  227. package/lib/react-theme/createTheme.js +1 -2
  228. package/lib/react-theme/createTheme.js.map +1 -1
  229. package/lib/redux/_modularui/ModularUIConnector.js +1 -2
  230. package/lib/redux/_modularui/ModularUIConnector.js.map +1 -1
  231. package/lib/redux/_modularui/ModularUISelectors.js +1 -2
  232. package/lib/redux/_modularui/ModularUISelectors.js.map +1 -1
  233. package/lib/redux/_modularui/withModularUI.js +1 -2
  234. package/lib/redux/_modularui/withModularUI.js.map +1 -1
  235. package/lib/redux/_router/RouterConnectors.js +5 -10
  236. package/lib/redux/_router/RouterConnectors.js.map +1 -1
  237. package/lib/redux/connectors/Application.js +1 -2
  238. package/lib/redux/connectors/Application.js.map +1 -1
  239. package/lib/redux/connectors/Breadcrumb.js +1 -2
  240. package/lib/redux/connectors/Breadcrumb.js.map +1 -1
  241. package/lib/redux/connectors/CaseView.js +1 -2
  242. package/lib/redux/connectors/CaseView.js.map +1 -1
  243. package/lib/redux/connectors/ConceptDetail.js +1 -2
  244. package/lib/redux/connectors/ConceptDetail.js.map +1 -1
  245. package/lib/redux/connectors/ContentBrowser.js +1 -2
  246. package/lib/redux/connectors/ContentBrowser.js.map +1 -1
  247. package/lib/redux/connectors/ContentDetail.js +1 -2
  248. package/lib/redux/connectors/ContentDetail.js.map +1 -1
  249. package/lib/redux/connectors/ContentDetailSection.js +1 -2
  250. package/lib/redux/connectors/ContentDetailSection.js.map +1 -1
  251. package/lib/redux/connectors/Form.js +1 -2
  252. package/lib/redux/connectors/Form.js.map +1 -1
  253. package/lib/redux/connectors/FormAttributeSet.js +1 -2
  254. package/lib/redux/connectors/FormAttributeSet.js.map +1 -1
  255. package/lib/redux/connectors/ListDetail.js +1 -2
  256. package/lib/redux/connectors/ListDetail.js.map +1 -1
  257. package/lib/redux/connectors/Modal.js +1 -2
  258. package/lib/redux/connectors/Modal.js.map +1 -1
  259. package/lib/redux/connectors/ModelCatalog.js +1 -2
  260. package/lib/redux/connectors/ModelCatalog.js.map +1 -1
  261. package/lib/redux/connectors/Notification.js +1 -2
  262. package/lib/redux/connectors/Notification.js.map +1 -1
  263. package/lib/redux/connectors/PanelRenderer.js +1 -2
  264. package/lib/redux/connectors/PanelRenderer.js.map +1 -1
  265. package/lib/redux/connectors/Progress.js +1 -2
  266. package/lib/redux/connectors/Progress.js.map +1 -1
  267. package/lib/redux/connectors/ProgressIndicator.js +1 -2
  268. package/lib/redux/connectors/ProgressIndicator.js.map +1 -1
  269. package/lib/redux/connectors/QuickSearch.js +1 -2
  270. package/lib/redux/connectors/QuickSearch.js.map +1 -1
  271. package/lib/redux/connectors/SignIn.js +1 -2
  272. package/lib/redux/connectors/SignIn.js.map +1 -1
  273. package/lib/redux/connectors/SignOut.js +1 -2
  274. package/lib/redux/connectors/SignOut.js.map +1 -1
  275. package/lib/redux/connectors/Tab.js +1 -2
  276. package/lib/redux/connectors/Tab.js.map +1 -1
  277. package/lib/redux/reducers/AuthReducer.js +1 -2
  278. package/lib/redux/reducers/AuthReducer.js.map +1 -1
  279. package/lib/redux/reducers/ErrorReducer.js +1 -2
  280. package/lib/redux/reducers/ErrorReducer.js.map +1 -1
  281. package/lib/redux/reducers/ModalsReducer.js +1 -2
  282. package/lib/redux/reducers/ModalsReducer.js.map +1 -1
  283. package/lib/redux/reducers/NotificationReducer.js +1 -2
  284. package/lib/redux/reducers/NotificationReducer.js.map +1 -1
  285. package/lib/redux/reducers/PreferencesReducer.js +1 -2
  286. package/lib/redux/reducers/PreferencesReducer.js.map +1 -1
  287. package/lib/redux/reducers/ProgressIndicatorReducer.js +1 -2
  288. package/lib/redux/reducers/ProgressIndicatorReducer.js.map +1 -1
  289. package/lib/redux/store/configureStore.js +1 -2
  290. package/lib/redux/store/configureStore.js.map +1 -1
  291. package/lib/utils/browser/Cache.js +1 -2
  292. package/lib/utils/browser/Cache.js.map +1 -1
  293. package/lib/utils/datetime/DateTimeUtil.js +4 -8
  294. package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
  295. package/lib/utils/fetch/universalFetch.js +1 -2
  296. package/lib/utils/fetch/universalFetch.js.map +1 -1
  297. package/lib/utils/fetch/xhr.js +1 -2
  298. package/lib/utils/fetch/xhr.js.map +1 -1
  299. package/lib/utils/helpers/createUUID.js +1 -2
  300. package/lib/utils/helpers/createUUID.js.map +1 -1
  301. package/lib/utils/number/DecimalFormat.js +1 -2
  302. package/lib/utils/number/DecimalFormat.js.map +1 -1
  303. package/lib/utils/number/formatValue.js +1 -2
  304. package/lib/utils/number/formatValue.js.map +1 -1
  305. package/package.json +11 -10
  306. package/src/constants/LayoutHintConfig.js +9 -0
  307. package/src/constants/LayoutHints.js +5 -0
  308. package/src/models/actions/ActionCollection.js +3 -1
  309. package/src/models/application/__tests__/Application.spec.js +1 -1
  310. package/src/models/application/__tests__/webappContributions.json +2 -1
  311. package/src/models/links/__tests__/normalizeLinkJSON.spec.js +2 -1
  312. package/src/models/links/normalizeLinkJSON.js +20 -4
  313. package/src/models/taskgroup/__tests__/TaskGroupModel.spec.js +17 -0
  314. package/src/models/taskgroup/__tests__/taskgroup.json +25 -0
  315. package/src/models/taskgroup/__tests__/taskgroupContributions.json +23 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_resolveModel","_interopRequireDefault","require","_BaseCollection","_ActionCollection","_ActionModel","_ApplicationModel","_AttributeCollection","_AttributeSetModel","_AttributeModel","_BooleanAttributeModel","_CaptchaAttributeModel","_ChoiceAttributeModel","_ChoiceAttributeOptionCollection","_ChoiceAttributeOptionModel","_CompositeAttributeModel","_CompositeAttributeChildCollection","_DatetimeAttributeModel","_HelptextAttributeModel","_LabelAttributeModel","_MemoAttributeModel","_MoneyAttributeModel","_NumberAttributeModel","_PasswordAttributeModel","_StringAttributeModel","_UploadAttributeModel","_XMLAttributeModel","_AttributeContent","_LayoutHintRuleCollection","_interopRequireWildcard","_BaseLayoutHintRule","_DependentAttribute","_RemainingTotalUploadSize","_LayoutHintCollection","_CaseViewModel","_BusinessScenarioModel","_ConceptDetailModel","_ConceptIndexModel","_ConceptLinkModel","_ConceptRelationCollection","_ConceptRelationModel","_ConceptTypeDetailModel","_SourceReferenceCollection","_SourceReferenceModel","_ConstraintCollection","_ConstraintModel","_ContentIndexModel","_ContentLinkModel","_ContentModel","_ContentTOCModel","_ContentTypeModel","_SectionModel","_SubSectionModel","_ContentConfiguration","_ContentConfigurationElements","_ContentConfigurationEndResults","_ContentConfigurationQuestions","_ContentConfigurationResults","_DetailModel","_ErrorCollection","_ErrorModel","_ErrorResponse","_AssignmentFilterModel","_FilterModel","_RangeFilterModel","_ConceptIndexFilterModel","_FilterCollection","_FormModel","_FormObjectModel","_GroupingModel","_Href","_ListHref","_LinkCollection","_LinkModel","_ListDetailModel","_ListHeaderModel","_ListItemCollection","_ListItemModel","_ListModel","_LookupOptionsModel","_LookupOptionCollection","_ModelCatalogModel","_ProcessStatusSettingsModel","_PagesizeModel","_PagingModel","_Parameter","_GroupingPanelModel","_CaseSearchModel","_SortingModel","_SortOptionModel","_TabModel","_TaskGroupCollection","_TaskGroupModel","_UserModel","_UserProfileModel","_UserServicesModel","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","_Object$getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sources":["../../src/models/index.js"],"sourcesContent":["// @flow\nexport { default as resolveModel } from \"./resolveModel\";\n\nexport { default as BaseCollection } from \"./base/BaseCollection\";\n\nexport { default as ActionCollection } from \"./actions/ActionCollection\";\nexport { default as ActionModel } from \"./actions/ActionModel\";\n\nimport { default as ApplicationModel } from \"./application/ApplicationModel\";\n\nexport { default as AttributeCollection } from \"./attributes/AttributeCollection\";\nexport { default as AttributeSetModel } from \"./attributes/AttributeSetModel\";\n\nexport { default as AttributeModel } from \"./attributes/AttributeModel\";\nimport { default as BooleanAttributeModel } from \"./attributes/BooleanAttributeModel\";\nimport { default as CaptchaAttributeModel } from \"./attributes/CaptchaAttributeModel\";\nimport { default as ChoiceAttributeModel } from \"./attributes/ChoiceAttributeModel\";\nexport { default as ChoiceAttributeOptionCollection } from \"./attributes/ChoiceAttributeOptionCollection\";\nexport { default as ChoiceAttributeOptionModel } from \"./attributes/ChoiceAttributeOptionModel\";\nimport { default as CompositeAttributeModel } from \"./attributes/CompositeAttributeModel\";\nexport { default as CompositeAttributeChildCollection } from \"./attributes/CompositeAttributeChildCollection\";\nimport { default as DatetimeAttributeModel } from \"./attributes/DatetimeAttributeModel\";\nimport { default as HelptextAttributeModel } from \"./attributes/HelptextAttributeModel\";\nimport { default as LabelAttributeModel } from \"./attributes/LabelAttributeModel\";\nimport { default as MemoAttributeModel } from \"./attributes/MemoAttributeModel\";\nimport { default as MoneyAttributeModel } from \"./attributes/MoneyAttributeModel\";\nimport { default as NumberAttributeModel } from \"./attributes/NumberAttributeModel\";\nimport { default as PasswordAttributeModel } from \"./attributes/PasswordAttributeModel\";\nimport { default as StringAttributeModel } from \"./attributes/StringAttributeModel\";\nimport { default as UploadAttributeModel } from \"./attributes/UploadAttributeModel\";\nimport { default as XMLAttributeModel } from \"./attributes/XMLAttributeModel\";\n\nexport { default as AttributeContent } from \"./attributes/AttributeContent\";\n\nexport {\n default as LayoutHintRuleCollection,\n addLayoutHintRule,\n updateLayoutHintRules,\n} from \"./attributes/layouthint-rules/LayoutHintRuleCollection\";\nexport { default as BaseLayoutHintRule } from \"./attributes/layouthint-rules/BaseLayoutHintRule\";\nexport { default as DependentAttribute } from \"./attributes/layouthint-rules/DependentAttribute\";\nexport { default as RemainingTotalUploadSize } from \"./attributes/layouthint-rules/RemainingTotalUploadSize\";\n\nimport { default as LayoutHintCollection } from \"./layouthint/LayoutHintCollection\";\n\nimport { default as CaseViewModel } from \"./caseview/CaseViewModel\";\n\nimport { default as BusinessScenarioModel } from \"./concepts/BusinessScenarioModel\";\nimport { default as ConceptDetailModel } from \"./concepts/ConceptDetailModel\";\nimport { default as ConceptIndexModel } from \"./concepts/ConceptIndexModel\";\nexport { default as ConceptLinkModel } from \"./concepts/ConceptLinkModel\";\nexport { default as ConceptRelationCollection } from \"./concepts/ConceptRelationCollection\";\nexport { default as ConceptRelationModel } from \"./concepts/ConceptRelationModel\";\nimport { default as ConceptTypeDetailModel } from \"./concepts/ConceptTypeDetailModel\";\nexport { default as SourceReferenceCollection } from \"./concepts/SourceReferenceCollection\";\nexport { default as SourceReferenceModel } from \"./concepts/SourceReferenceModel\";\n\nexport { default as ConstraintCollection } from \"./attributes/input-constraints/ConstraintCollection\";\nexport { default as ConstraintModel } from \"./attributes/input-constraints/ConstraintModel\";\n\nimport { default as ContentIndexModel } from \"./content/ContentIndexModel\";\nexport { default as ContentLinkModel } from \"./content/ContentLinkModel\";\nimport { default as ContentModel } from \"./content/ContentModel\";\nimport { default as ContentTOCModel } from \"./content/ContentTOCModel\";\nimport { default as ContentTypeModel } from \"./content/ContentTypeModel\";\nexport { default as SectionModel } from \"./content/SectionModel\";\nexport { default as SubSectionModel } from \"./content/SubSectionModel\";\n\nexport { default as ContentConfiguration } from \"./contentconfiguration/ContentConfiguration\";\nexport { default as ContentConfigurationElements } from \"./contentconfiguration/ContentConfigurationElements\";\nexport { default as ContentConfigurationEndResults } from \"./contentconfiguration/ContentConfigurationEndResults\";\nexport { default as ContentConfigurationQuestions } from \"./contentconfiguration/ContentConfigurationQuestions\";\nexport { default as ContentConfigurationResults } from \"./contentconfiguration/ContentConfigurationResults\";\n\nimport { default as DetailModel } from \"./detail/DetailModel\";\n\nexport { default as ErrorCollection } from \"./error/ErrorCollection\";\nexport { default as ErrorModel } from \"./error/ErrorModel\";\nexport { default as ErrorResponse } from \"./error/ErrorResponse\";\n\nimport { default as AssignmentFilterModel } from \"./filters/AssignmentFilterModel\";\nimport { default as FilterModel } from \"./filters/FilterModel\";\nimport { default as RangeFilterModel } from \"./filters/RangeFilterModel\";\nimport { default as ConceptIndexFilterModel } from \"./filters/ConceptIndexFilterModel\";\nexport { default as FilterCollection } from \"./filters/FilterCollection\";\n\nimport { default as FormModel } from \"./form/FormModel\";\nexport { default as FormObjectModel } from \"./form/FormObjectModel\";\n\nexport { default as GroupingModel, GroupModel } from \"./grouping/GroupingModel\";\n\nexport { default as Href } from \"./href/Href\";\nexport { default as ListHref } from \"./href/ListHref\";\n\nexport { default as LinkCollection } from \"./links/LinkCollection\";\nexport { default as LinkModel } from \"./links/LinkModel\";\n\nimport { default as ListDetailModel } from \"./list/ListDetailModel\";\nexport { default as ListHeaderModel } from \"./list/ListHeaderModel\";\nexport { default as ListItemCollection } from \"./list/ListItemCollection\";\nexport { default as ListItemModel } from \"./list/ListItemModel\";\nimport { default as ListModel } from \"./list/ListModel\";\n\nexport { default as LookupOptionsModel } from \"./lookup/LookupOptionsModel\";\nexport { default as LookupOptionCollection } from \"./lookup/LookupOptionCollection\";\n\nimport { default as ModelCatalogModel } from \"./modelcatalog/ModelCatalogModel\";\n\nexport { default as ProcessStatusSettingsModel } from \"./process/ProcessStatusSettingsModel\";\n\nexport { default as PagesizeModel } from \"./paging/PagesizeModel\";\nexport { default as PagingModel } from \"./paging/PagingModel\";\n\nexport { default as Parameter } from \"./parameter/Parameter\";\n\nimport { default as GroupingPanelModel } from \"./panels/GroupingPanelModel\";\n\nimport { default as CaseSearchModel } from \"./search/CaseSearchModel\";\n\nexport { default as SortingModel } from \"./sorting/SortingModel\";\nexport { default as SortOptionModel } from \"./sorting/SortOptionModel\";\n\nimport { default as TabModel } from \"./tab/TabModel\";\n\nexport { default as TaskGroupCollection } from \"./taskgroup/TaskGroupCollection\";\nimport { default as TaskGroupModel } from \"./taskgroup/TaskGroupModel\";\n\nimport { default as UserModel } from \"./user/UserModel\";\nimport { default as UserProfileModel } from \"./user/UserProfileModel\";\nimport { default as UserServicesModel } from \"./user/UserServicesModel\";\n\nexport {\n ApplicationModel,\n CaseSearchModel,\n CaseViewModel,\n ListDetailModel,\n DetailModel,\n FormModel,\n GroupingPanelModel,\n ListModel,\n TabModel,\n TaskGroupModel,\n UserModel,\n UserProfileModel,\n UserServicesModel,\n ModelCatalogModel,\n ConceptIndexModel,\n ConceptDetailModel,\n BusinessScenarioModel,\n ConceptTypeDetailModel,\n ContentIndexModel,\n ContentTOCModel,\n ContentModel,\n ContentTypeModel,\n BooleanAttributeModel,\n CaptchaAttributeModel,\n ChoiceAttributeModel,\n DatetimeAttributeModel,\n HelptextAttributeModel,\n LabelAttributeModel,\n MemoAttributeModel,\n MoneyAttributeModel,\n NumberAttributeModel,\n PasswordAttributeModel,\n CompositeAttributeModel,\n StringAttributeModel,\n UploadAttributeModel,\n XMLAttributeModel,\n AssignmentFilterModel,\n FilterModel,\n RangeFilterModel,\n ConceptIndexFilterModel,\n LayoutHintCollection,\n};\n\nexport type * from \"./types\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAC,gCAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAG,gCAAA,CAAAV,GAAA,EAAAW,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAX,GAAA,CAAAW,GAAA,SAAAL,MAAA,CAAAJ,OAAA,GAAAF,GAAA,MAAAG,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAAhB,GAAA,EAAAM,MAAA,YAAAA,MAAA"}
1
+ {"version":3,"file":"index.js","names":["_resolveModel","_interopRequireDefault","require","_BaseCollection","_ActionCollection","_ActionModel","_ApplicationModel","_AttributeCollection","_AttributeSetModel","_AttributeModel","_BooleanAttributeModel","_CaptchaAttributeModel","_ChoiceAttributeModel","_ChoiceAttributeOptionCollection","_ChoiceAttributeOptionModel","_CompositeAttributeModel","_CompositeAttributeChildCollection","_DatetimeAttributeModel","_HelptextAttributeModel","_LabelAttributeModel","_MemoAttributeModel","_MoneyAttributeModel","_NumberAttributeModel","_PasswordAttributeModel","_StringAttributeModel","_UploadAttributeModel","_XMLAttributeModel","_AttributeContent","_LayoutHintRuleCollection","_interopRequireWildcard","_BaseLayoutHintRule","_DependentAttribute","_RemainingTotalUploadSize","_LayoutHintCollection","_CaseViewModel","_BusinessScenarioModel","_ConceptDetailModel","_ConceptIndexModel","_ConceptLinkModel","_ConceptRelationCollection","_ConceptRelationModel","_ConceptTypeDetailModel","_SourceReferenceCollection","_SourceReferenceModel","_ConstraintCollection","_ConstraintModel","_ContentIndexModel","_ContentLinkModel","_ContentModel","_ContentTOCModel","_ContentTypeModel","_SectionModel","_SubSectionModel","_ContentConfiguration","_ContentConfigurationElements","_ContentConfigurationEndResults","_ContentConfigurationQuestions","_ContentConfigurationResults","_DetailModel","_ErrorCollection","_ErrorModel","_ErrorResponse","_AssignmentFilterModel","_FilterModel","_RangeFilterModel","_ConceptIndexFilterModel","_FilterCollection","_FormModel","_FormObjectModel","_GroupingModel","_Href","_ListHref","_LinkCollection","_LinkModel","_ListDetailModel","_ListHeaderModel","_ListItemCollection","_ListItemModel","_ListModel","_LookupOptionsModel","_LookupOptionCollection","_ModelCatalogModel","_ProcessStatusSettingsModel","_PagesizeModel","_PagingModel","_Parameter","_GroupingPanelModel","_CaseSearchModel","_SortingModel","_SortOptionModel","_TabModel","_TaskGroupCollection","_TaskGroupModel","_UserModel","_UserProfileModel","_UserServicesModel","_getRequireWildcardCache","e","_WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","_Object$getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set"],"sources":["../../src/models/index.js"],"sourcesContent":["// @flow\nexport { default as resolveModel } from \"./resolveModel\";\n\nexport { default as BaseCollection } from \"./base/BaseCollection\";\n\nexport { default as ActionCollection } from \"./actions/ActionCollection\";\nexport { default as ActionModel } from \"./actions/ActionModel\";\n\nimport { default as ApplicationModel } from \"./application/ApplicationModel\";\n\nexport { default as AttributeCollection } from \"./attributes/AttributeCollection\";\nexport { default as AttributeSetModel } from \"./attributes/AttributeSetModel\";\n\nexport { default as AttributeModel } from \"./attributes/AttributeModel\";\nimport { default as BooleanAttributeModel } from \"./attributes/BooleanAttributeModel\";\nimport { default as CaptchaAttributeModel } from \"./attributes/CaptchaAttributeModel\";\nimport { default as ChoiceAttributeModel } from \"./attributes/ChoiceAttributeModel\";\nexport { default as ChoiceAttributeOptionCollection } from \"./attributes/ChoiceAttributeOptionCollection\";\nexport { default as ChoiceAttributeOptionModel } from \"./attributes/ChoiceAttributeOptionModel\";\nimport { default as CompositeAttributeModel } from \"./attributes/CompositeAttributeModel\";\nexport { default as CompositeAttributeChildCollection } from \"./attributes/CompositeAttributeChildCollection\";\nimport { default as DatetimeAttributeModel } from \"./attributes/DatetimeAttributeModel\";\nimport { default as HelptextAttributeModel } from \"./attributes/HelptextAttributeModel\";\nimport { default as LabelAttributeModel } from \"./attributes/LabelAttributeModel\";\nimport { default as MemoAttributeModel } from \"./attributes/MemoAttributeModel\";\nimport { default as MoneyAttributeModel } from \"./attributes/MoneyAttributeModel\";\nimport { default as NumberAttributeModel } from \"./attributes/NumberAttributeModel\";\nimport { default as PasswordAttributeModel } from \"./attributes/PasswordAttributeModel\";\nimport { default as StringAttributeModel } from \"./attributes/StringAttributeModel\";\nimport { default as UploadAttributeModel } from \"./attributes/UploadAttributeModel\";\nimport { default as XMLAttributeModel } from \"./attributes/XMLAttributeModel\";\n\nexport { default as AttributeContent } from \"./attributes/AttributeContent\";\n\nexport {\n default as LayoutHintRuleCollection,\n addLayoutHintRule,\n updateLayoutHintRules,\n} from \"./attributes/layouthint-rules/LayoutHintRuleCollection\";\nexport { default as BaseLayoutHintRule } from \"./attributes/layouthint-rules/BaseLayoutHintRule\";\nexport { default as DependentAttribute } from \"./attributes/layouthint-rules/DependentAttribute\";\nexport { default as RemainingTotalUploadSize } from \"./attributes/layouthint-rules/RemainingTotalUploadSize\";\n\nimport { default as LayoutHintCollection } from \"./layouthint/LayoutHintCollection\";\n\nimport { default as CaseViewModel } from \"./caseview/CaseViewModel\";\n\nimport { default as BusinessScenarioModel } from \"./concepts/BusinessScenarioModel\";\nimport { default as ConceptDetailModel } from \"./concepts/ConceptDetailModel\";\nimport { default as ConceptIndexModel } from \"./concepts/ConceptIndexModel\";\nexport { default as ConceptLinkModel } from \"./concepts/ConceptLinkModel\";\nexport { default as ConceptRelationCollection } from \"./concepts/ConceptRelationCollection\";\nexport { default as ConceptRelationModel } from \"./concepts/ConceptRelationModel\";\nimport { default as ConceptTypeDetailModel } from \"./concepts/ConceptTypeDetailModel\";\nexport { default as SourceReferenceCollection } from \"./concepts/SourceReferenceCollection\";\nexport { default as SourceReferenceModel } from \"./concepts/SourceReferenceModel\";\n\nexport { default as ConstraintCollection } from \"./attributes/input-constraints/ConstraintCollection\";\nexport { default as ConstraintModel } from \"./attributes/input-constraints/ConstraintModel\";\n\nimport { default as ContentIndexModel } from \"./content/ContentIndexModel\";\nexport { default as ContentLinkModel } from \"./content/ContentLinkModel\";\nimport { default as ContentModel } from \"./content/ContentModel\";\nimport { default as ContentTOCModel } from \"./content/ContentTOCModel\";\nimport { default as ContentTypeModel } from \"./content/ContentTypeModel\";\nexport { default as SectionModel } from \"./content/SectionModel\";\nexport { default as SubSectionModel } from \"./content/SubSectionModel\";\n\nexport { default as ContentConfiguration } from \"./contentconfiguration/ContentConfiguration\";\nexport { default as ContentConfigurationElements } from \"./contentconfiguration/ContentConfigurationElements\";\nexport { default as ContentConfigurationEndResults } from \"./contentconfiguration/ContentConfigurationEndResults\";\nexport { default as ContentConfigurationQuestions } from \"./contentconfiguration/ContentConfigurationQuestions\";\nexport { default as ContentConfigurationResults } from \"./contentconfiguration/ContentConfigurationResults\";\n\nimport { default as DetailModel } from \"./detail/DetailModel\";\n\nexport { default as ErrorCollection } from \"./error/ErrorCollection\";\nexport { default as ErrorModel } from \"./error/ErrorModel\";\nexport { default as ErrorResponse } from \"./error/ErrorResponse\";\n\nimport { default as AssignmentFilterModel } from \"./filters/AssignmentFilterModel\";\nimport { default as FilterModel } from \"./filters/FilterModel\";\nimport { default as RangeFilterModel } from \"./filters/RangeFilterModel\";\nimport { default as ConceptIndexFilterModel } from \"./filters/ConceptIndexFilterModel\";\nexport { default as FilterCollection } from \"./filters/FilterCollection\";\n\nimport { default as FormModel } from \"./form/FormModel\";\nexport { default as FormObjectModel } from \"./form/FormObjectModel\";\n\nexport { default as GroupingModel, GroupModel } from \"./grouping/GroupingModel\";\n\nexport { default as Href } from \"./href/Href\";\nexport { default as ListHref } from \"./href/ListHref\";\n\nexport { default as LinkCollection } from \"./links/LinkCollection\";\nexport { default as LinkModel } from \"./links/LinkModel\";\n\nimport { default as ListDetailModel } from \"./list/ListDetailModel\";\nexport { default as ListHeaderModel } from \"./list/ListHeaderModel\";\nexport { default as ListItemCollection } from \"./list/ListItemCollection\";\nexport { default as ListItemModel } from \"./list/ListItemModel\";\nimport { default as ListModel } from \"./list/ListModel\";\n\nexport { default as LookupOptionsModel } from \"./lookup/LookupOptionsModel\";\nexport { default as LookupOptionCollection } from \"./lookup/LookupOptionCollection\";\n\nimport { default as ModelCatalogModel } from \"./modelcatalog/ModelCatalogModel\";\n\nexport { default as ProcessStatusSettingsModel } from \"./process/ProcessStatusSettingsModel\";\n\nexport { default as PagesizeModel } from \"./paging/PagesizeModel\";\nexport { default as PagingModel } from \"./paging/PagingModel\";\n\nexport { default as Parameter } from \"./parameter/Parameter\";\n\nimport { default as GroupingPanelModel } from \"./panels/GroupingPanelModel\";\n\nimport { default as CaseSearchModel } from \"./search/CaseSearchModel\";\n\nexport { default as SortingModel } from \"./sorting/SortingModel\";\nexport { default as SortOptionModel } from \"./sorting/SortOptionModel\";\n\nimport { default as TabModel } from \"./tab/TabModel\";\n\nexport { default as TaskGroupCollection } from \"./taskgroup/TaskGroupCollection\";\nimport { default as TaskGroupModel } from \"./taskgroup/TaskGroupModel\";\n\nimport { default as UserModel } from \"./user/UserModel\";\nimport { default as UserProfileModel } from \"./user/UserProfileModel\";\nimport { default as UserServicesModel } from \"./user/UserServicesModel\";\n\nexport {\n ApplicationModel,\n CaseSearchModel,\n CaseViewModel,\n ListDetailModel,\n DetailModel,\n FormModel,\n GroupingPanelModel,\n ListModel,\n TabModel,\n TaskGroupModel,\n UserModel,\n UserProfileModel,\n UserServicesModel,\n ModelCatalogModel,\n ConceptIndexModel,\n ConceptDetailModel,\n BusinessScenarioModel,\n ConceptTypeDetailModel,\n ContentIndexModel,\n ContentTOCModel,\n ContentModel,\n ContentTypeModel,\n BooleanAttributeModel,\n CaptchaAttributeModel,\n ChoiceAttributeModel,\n DatetimeAttributeModel,\n HelptextAttributeModel,\n LabelAttributeModel,\n MemoAttributeModel,\n MoneyAttributeModel,\n NumberAttributeModel,\n PasswordAttributeModel,\n CompositeAttributeModel,\n StringAttributeModel,\n UploadAttributeModel,\n XMLAttributeModel,\n AssignmentFilterModel,\n FilterModel,\n RangeFilterModel,\n ConceptIndexFilterModel,\n LayoutHintCollection,\n};\n\nexport type * from \"./types\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,aAAA,GAAAC,sB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AA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAC,gCAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAG,gCAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAgB,GAAA,CAAAnB,CAAA,EAAAQ,CAAA,GAAAA,CAAA"}
@@ -211,6 +211,5 @@ class LinkModel extends _BaseModel.default {
211
211
  return null;
212
212
  }
213
213
  }
214
- var _default = LinkModel;
215
- exports.default = _default;
214
+ var _default = exports.default = LinkModel;
216
215
  //# sourceMappingURL=LinkModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LinkModel.js","names":["_objects","require","_ProcessStatusSettingsModel","_interopRequireDefault","_BaseModel","_Href","_LinkCollection","_LayoutHints","_Parameter","LinkModel","BaseModel","constructor","data","contributions","_defineProperty2","default","createHref","_isCacheable","create","name","href","label","Href","resourcetype","handleInitialFilters","layouthint","has","INITIAL_FILTER","_context","filters","_filter","call","hint","_startsWith","forEach","param","substr","length","p","Parameter","fromString","value","push","_keys","key","join","addParameter","group","getContribution","_href","links","components","LinkCollection","isActive","link","_context2","icon","_icon","targetModel","_targetModel","isCacheable","filterName","hasProcessStatusSettings","processStatus","ProcessStatusSettingsModel","getData","_default","exports"],"sources":["../../../src/models/links/LinkModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../../utils/helpers/objects\";\n\nimport ProcessStatusSettingsModel from \"../process/ProcessStatusSettingsModel\";\nimport BaseModel from \"../base/BaseModel\";\nimport Href from \"../href/Href\";\nimport LinkCollection from \"../links/LinkCollection\";\nimport { INITIAL_FILTER } from \"../../constants/LayoutHints\";\n\nimport type { ModularUIModel } from \"../types\";\nimport Parameter from \"../parameter/Parameter\";\n\n/**\n * Defines a Link. For instance below example of a link to the tab 'books'\n * <br/>\n * \"Books\": {\n * \"href\": \"/books\",\n * \"profile\": \"/profiles/tab\"\n * }\n */\nclass LinkModel extends BaseModel {\n _href: Href;\n _isCacheable: boolean;\n _icon: string;\n _targetModel: ?Class<ModularUIModel>;\n\n /**\n * Create a Link\n */\n constructor(data: Object, contributions: Object) {\n super(data, contributions);\n\n this.createHref();\n\n this._isCacheable = false;\n }\n\n /**\n * Create a simple Link Model\n */\n static create(name: string, href: string | Href, label: string): LinkModel {\n return new LinkModel(\n {\n name,\n href,\n },\n {\n label,\n },\n );\n }\n\n /**\n */\n createHref() {\n const href = new Href(this.data.href);\n href.resourcetype = this.resourcetype;\n\n this.handleInitialFilters(href);\n\n this.href = href;\n }\n\n /**\n * Handle initial filter hints\n * @param href\n */\n handleInitialFilters(href: Href) {\n if (this.layouthint.has(INITIAL_FILTER)) {\n const filters: { [string]: Array<string> } = {};\n this.layouthint\n .filter((hint) => hint.startsWith(INITIAL_FILTER))\n .forEach((hint) => {\n const param = hint.substr(INITIAL_FILTER.length);\n const p = Parameter.fromString(param);\n\n if (p != null) {\n if (!filters[p.name]) {\n filters[p.name] = [];\n }\n\n if (p.value != null) {\n filters[p.name].push(p.value);\n }\n }\n });\n\n Object.keys(filters).forEach((key) => {\n const value = filters[key].join(\",\");\n href.addParameter(key, value);\n });\n }\n }\n\n /**\n * Getting link group\n */\n get group(): string {\n return this.getContribution(\"group\", this.data.group);\n }\n\n /**\n * Getting the key/name of this link\n */\n get key(): string {\n return this.data.name;\n }\n\n /**\n * Retrieve the href of the link\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n * Set the href of the Link\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n * Getting the label of the link\n */\n get label(): string {\n return this.getContribution(\"label\", this.key);\n }\n\n /**\n * Getting the type of the link\n */\n get resourcetype(): string {\n return this.getContribution(\"resourcetype\", \"\");\n }\n\n /**\n */\n get links(): LinkCollection {\n if (this.data.components) {\n return new LinkCollection(\n { components: this.data.components },\n { components: this.contributions.components },\n );\n }\n\n return new LinkCollection();\n }\n\n /**\n * Check if the href startswith the URI of the given href\n */\n isActive(link: ?LinkModel): boolean {\n if (link) {\n return link.href.startsWith(this.href);\n }\n\n return false;\n }\n\n /**\n * Setter for icon of LinkModel\n */\n set icon(icon: string) {\n this._icon = icon;\n }\n\n /**\n * Retrieve icon of LinkModel\n */\n get icon(): string {\n return this._icon;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n set targetModel(targetModel: Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get isCacheable(): boolean {\n return this._isCacheable;\n }\n\n /**\n */\n set isCacheable(isCacheable: boolean) {\n this._isCacheable = isCacheable;\n }\n\n /**\n */\n get filterName(): string {\n return this.data.filter.name;\n }\n\n /**\n */\n get hasProcessStatusSettings(): boolean {\n return (\n has(this.data, \"processStatus\") &&\n has(this.contributions, \"processStatus\")\n );\n }\n\n /**\n */\n get processStatus(): ProcessStatusSettingsModel | null {\n if (this.hasProcessStatusSettings) {\n return new ProcessStatusSettingsModel(\n this.getData(\"processStatus\", {}),\n this.getContribution(\"processStatus\", {}),\n );\n }\n\n return null;\n }\n}\n\nexport default LinkModel;\n"],"mappings":";;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,2BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,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ACE,IAAID,WAAWA,CAACA,WAAkC,EAAE;IAClD,IAAI,CAACC,YAAY,GAAGD,WAAW;EACjC;;EAEA;AACF;EACE,IAAIE,WAAWA,CAAA,EAAY;IACzB,OAAO,IAAI,CAAC3C,YAAY;EAC1B;;EAEA;AACF;EACE,IAAI2C,WAAWA,CAACA,WAAoB,EAAE;IACpC,IAAI,CAAC3C,YAAY,GAAG2C,WAAW;EACjC;;EAEA;AACF;EACE,IAAIC,UAAUA,CAAA,EAAW;IACvB,OAAO,IAAA/B,OAAA,CAAAf,OAAA,MAAI,CAACH,IAAI,EAAQO,IAAI;EAC9B;;EAEA;AACF;EACE,IAAI2C,wBAAwBA,CAAA,EAAY;IACtC,OACE,IAAApC,YAAG,EAAC,IAAI,CAACd,IAAI,EAAE,eAAe,CAAC,IAC/B,IAAAc,YAAG,EAAC,IAAI,CAACb,aAAa,EAAE,eAAe,CAAC;EAE5C;;EAEA;AACF;EACE,IAAIkD,aAAaA,CAAA,EAAsC;IACrD,IAAI,IAAI,CAACD,wBAAwB,EAAE;MACjC,OAAO,IAAIE,mCAA0B,CACnC,IAAI,CAACC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EACjC,IAAI,CAACjB,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC,CAC1C,CAAC;IACH;IAEA,OAAO,IAAI;EACb;AACF;AAAC,IAAAkB,QAAA,GAEczD,SAAS;AAAA0D,OAAA,CAAApD,OAAA,GAAAmD,QAAA"}
1
+ {"version":3,"file":"LinkModel.js","names":["_objects","require","_ProcessStatusSettingsModel","_interopRequireDefault","_BaseModel","_Href","_LinkCollection","_LayoutHints","_Parameter","LinkModel","BaseModel","constructor","data","contributions","_defineProperty2","default","createHref","_isCacheable","create","name","href","label","Href","resourcetype","handleInitialFilters","layouthint","has","INITIAL_FILTER","_context","filters","_filter","call","hint","_startsWith","forEach","param","substr","length","p","Parameter","fromString","value","push","_keys","key","join","addParameter","group","getContribution","_href","links","components","LinkCollection","isActive","link","_context2","icon","_icon","targetModel","_targetModel","isCacheable","filterName","hasProcessStatusSettings","processStatus","ProcessStatusSettingsModel","getData","_default","exports"],"sources":["../../../src/models/links/LinkModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../../utils/helpers/objects\";\n\nimport ProcessStatusSettingsModel from \"../process/ProcessStatusSettingsModel\";\nimport BaseModel from \"../base/BaseModel\";\nimport Href from \"../href/Href\";\nimport LinkCollection from \"../links/LinkCollection\";\nimport { INITIAL_FILTER } from \"../../constants/LayoutHints\";\n\nimport type { ModularUIModel } from \"../types\";\nimport Parameter from \"../parameter/Parameter\";\n\n/**\n * Defines a Link. For instance below example of a link to the tab 'books'\n * <br/>\n * \"Books\": {\n * \"href\": \"/books\",\n * \"profile\": \"/profiles/tab\"\n * }\n */\nclass LinkModel extends BaseModel {\n _href: Href;\n _isCacheable: boolean;\n _icon: string;\n _targetModel: ?Class<ModularUIModel>;\n\n /**\n * Create a Link\n */\n constructor(data: Object, contributions: Object) {\n super(data, contributions);\n\n this.createHref();\n\n this._isCacheable = false;\n }\n\n /**\n * Create a simple Link Model\n */\n static create(name: string, href: string | Href, label: string): LinkModel {\n return new LinkModel(\n {\n name,\n href,\n },\n {\n label,\n },\n );\n }\n\n /**\n */\n createHref() {\n const href = new Href(this.data.href);\n href.resourcetype = this.resourcetype;\n\n this.handleInitialFilters(href);\n\n this.href = href;\n }\n\n /**\n * Handle initial filter hints\n * @param href\n */\n handleInitialFilters(href: Href) {\n if (this.layouthint.has(INITIAL_FILTER)) {\n const filters: { [string]: Array<string> } = {};\n this.layouthint\n .filter((hint) => hint.startsWith(INITIAL_FILTER))\n .forEach((hint) => {\n const param = hint.substr(INITIAL_FILTER.length);\n const p = Parameter.fromString(param);\n\n if (p != null) {\n if (!filters[p.name]) {\n filters[p.name] = [];\n }\n\n if (p.value != null) {\n filters[p.name].push(p.value);\n }\n }\n });\n\n Object.keys(filters).forEach((key) => {\n const value = filters[key].join(\",\");\n href.addParameter(key, value);\n });\n }\n }\n\n /**\n * Getting link group\n */\n get group(): string {\n return this.getContribution(\"group\", this.data.group);\n }\n\n /**\n * Getting the key/name of this link\n */\n get key(): string {\n return this.data.name;\n }\n\n /**\n * Retrieve the href of the link\n */\n get href(): Href {\n return this._href;\n }\n\n /**\n * Set the href of the Link\n */\n set href(href: Href) {\n this._href = href;\n }\n\n /**\n * Getting the label of the link\n */\n get label(): string {\n return this.getContribution(\"label\", this.key);\n }\n\n /**\n * Getting the type of the link\n */\n get resourcetype(): string {\n return this.getContribution(\"resourcetype\", \"\");\n }\n\n /**\n */\n get links(): LinkCollection {\n if (this.data.components) {\n return new LinkCollection(\n { components: this.data.components },\n { components: this.contributions.components },\n );\n }\n\n return new LinkCollection();\n }\n\n /**\n * Check if the href startswith the URI of the given href\n */\n isActive(link: ?LinkModel): boolean {\n if (link) {\n return link.href.startsWith(this.href);\n }\n\n return false;\n }\n\n /**\n * Setter for icon of LinkModel\n */\n set icon(icon: string) {\n this._icon = icon;\n }\n\n /**\n * Retrieve icon of LinkModel\n */\n get icon(): string {\n return this._icon;\n }\n\n /**\n */\n get targetModel(): ?Class<ModularUIModel> {\n return this._targetModel;\n }\n\n /**\n */\n set targetModel(targetModel: Class<ModularUIModel>) {\n this._targetModel = targetModel;\n }\n\n /**\n */\n get isCacheable(): boolean {\n return this._isCacheable;\n }\n\n /**\n */\n set isCacheable(isCacheable: boolean) {\n this._isCacheable = isCacheable;\n }\n\n /**\n */\n get filterName(): string {\n return this.data.filter.name;\n }\n\n /**\n */\n get hasProcessStatusSettings(): boolean {\n return (\n has(this.data, \"processStatus\") &&\n has(this.contributions, \"processStatus\")\n );\n }\n\n /**\n */\n get processStatus(): ProcessStatusSettingsModel | null {\n if (this.hasProcessStatusSettings) {\n return new ProcessStatusSettingsModel(\n this.getData(\"processStatus\", {}),\n this.getContribution(\"processStatus\", {}),\n );\n }\n\n return null;\n }\n}\n\nexport default LinkModel;\n"],"mappings":";;;;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OA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AAWA,CAAA,EAA2B;IACxC,OAAO,IAAI,CAACC,YAAY;EAC1B;;EAEA;AACF;EACE,IAAID,WAAWA,CAACA,WAAkC,EAAE;IAClD,IAAI,CAACC,YAAY,GAAGD,WAAW;EACjC;;EAEA;AACF;EACE,IAAIE,WAAWA,CAAA,EAAY;IACzB,OAAO,IAAI,CAAC3C,YAAY;EAC1B;;EAEA;AACF;EACE,IAAI2C,WAAWA,CAACA,WAAoB,EAAE;IACpC,IAAI,CAAC3C,YAAY,GAAG2C,WAAW;EACjC;;EAEA;AACF;EACE,IAAIC,UAAUA,CAAA,EAAW;IACvB,OAAO,IAAA/B,OAAA,CAAAf,OAAA,MAAI,CAACH,IAAI,EAAQO,IAAI;EAC9B;;EAEA;AACF;EACE,IAAI2C,wBAAwBA,CAAA,EAAY;IACtC,OACE,IAAApC,YAAG,EAAC,IAAI,CAACd,IAAI,EAAE,eAAe,CAAC,IAC/B,IAAAc,YAAG,EAAC,IAAI,CAACb,aAAa,EAAE,eAAe,CAAC;EAE5C;;EAEA;AACF;EACE,IAAIkD,aAAaA,CAAA,EAAsC;IACrD,IAAI,IAAI,CAACD,wBAAwB,EAAE;MACjC,OAAO,IAAIE,mCAA0B,CACnC,IAAI,CAACC,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EACjC,IAAI,CAACjB,eAAe,CAAC,eAAe,EAAE,CAAC,CAAC,CAC1C,CAAC;IACH;IAEA,OAAO,IAAI;EACb;AACF;AAAC,IAAAkB,QAAA,GAAAC,OAAA,CAAApD,OAAA,GAEcN,SAAS"}
@@ -93,6 +93,7 @@ describe("normalizeLinkJSON spec", () => {
93
93
  name: "UTBookPrints",
94
94
  label: "UT Book prints",
95
95
  resourcetype: "Tab",
96
+ layouthint: ["hide-in-user-interface"],
96
97
  },
97
98
  {
98
99
  name: "UsersAndOrganizations",
@@ -113,7 +114,7 @@ describe("normalizeLinkJSON spec", () => {
113
114
 
114
115
  const output = normalizeLinkJSON(data, contributions);
115
116
 
116
- expect(output).toHaveLength(12);
117
+ expect(output).toHaveLength(11);
117
118
  });
118
119
 
119
120
  it("should create an array of link json from caseview links", () => {
@@ -10,13 +10,18 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
10
10
  var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
11
11
  var _filter = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/filter"));
12
12
  var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
13
+ var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
14
+ var _constants = require("../../constants");
13
15
  /**
14
16
  * Flatten JSON structure into a one dimensional array
15
17
  * @private
16
18
  */
17
19
  const createLink = (link, linkKey) => {
18
- const newLink = link;
20
+ const newLink = {
21
+ ...link
22
+ };
19
23
  newLink.group = linkKey;
24
+ newLink.layouthint = link.layouthint ? [...link.layouthint] : [];
20
25
  return newLink;
21
26
  };
22
27
 
@@ -55,6 +60,9 @@ const flattenContributionsJSON = json => {
55
60
  if (!newLink.group) {
56
61
  newLink.group = linkKey;
57
62
  }
63
+ if (!newLink.layouthint) {
64
+ newLink.layouthint = [];
65
+ }
58
66
  flattenedJSON.push(newLink);
59
67
  }
60
68
  });
@@ -66,17 +74,19 @@ const flattenContributionsJSON = json => {
66
74
  * @private
67
75
  */
68
76
  const normalizeLinkJSON = (data, contributions) => {
77
+ var _context3;
69
78
  if (!data && !contributions) {
70
79
  return [];
71
80
  }
72
81
  const flattenedData = data ? flattenDataJSON(data) : [];
73
82
  const flattenedContributions = contributions ? flattenContributionsJSON(contributions) : [];
74
83
  const filteredContributions = (0, _filter.default)(flattenedContributions).call(flattenedContributions, contribution => contribution.href && !(0, _find.default)(flattenedData).call(flattenedData, linkData => linkData.name === contribution.name));
75
- return [...(0, _map.default)(flattenedData).call(flattenedData, link => ({
84
+ return (0, _filter.default)(_context3 = [...(0, _map.default)(flattenedData).call(flattenedData, link => ({
76
85
  data: link,
77
86
  contributions: (0, _find.default)(flattenedContributions).call(flattenedContributions, contr => contr.name === link.name) || {
78
87
  name: link.name,
79
- label: link.name || ""
88
+ label: link.name ?? "",
89
+ layouthint: link.layouthint ?? []
80
90
  }
81
91
  })), ...(0, _map.default)(filteredContributions).call(filteredContributions, link => ({
82
92
  data: {
@@ -85,10 +95,13 @@ const normalizeLinkJSON = (data, contributions) => {
85
95
  },
86
96
  contributions: {
87
97
  name: link.name,
88
- label: link.name || ""
98
+ label: link.name ?? "",
99
+ layouthint: link.layouthint
89
100
  }
90
- }))];
101
+ }))]).call(_context3, link => {
102
+ var _context4;
103
+ return !(0, _includes.default)(_context4 = link.contributions.layouthint).call(_context4, _constants.HIDE_IN_USER_INTERFACE);
104
+ });
91
105
  };
92
- var _default = normalizeLinkJSON;
93
- exports.default = _default;
106
+ var _default = exports.default = normalizeLinkJSON;
94
107
  //# sourceMappingURL=normalizeLinkJSON.js.map
@@ -1,11 +1,14 @@
1
1
  // @flow
2
+ import { HIDE_IN_USER_INTERFACE } from "../../constants";
3
+
2
4
  /**
3
5
  * Flatten JSON structure into a one dimensional array
4
6
  * @private
5
7
  */
6
8
  const createLink = (link: Object, linkKey: string) => {
7
- const newLink = link;
9
+ const newLink = { ...link };
8
10
  newLink.group = linkKey;
11
+ newLink.layouthint = link.layouthint ? [...link.layouthint] : [];
9
12
  return newLink;
10
13
  };
11
14
 
@@ -51,6 +54,9 @@ const flattenContributionsJSON = (json: Object) => {
51
54
  if (!newLink.group) {
52
55
  newLink.group = linkKey;
53
56
  }
57
+ if (!newLink.layouthint) {
58
+ newLink.layouthint = [];
59
+ }
54
60
 
55
61
  flattenedJSON.push(newLink);
56
62
  }
@@ -90,16 +96,26 @@ const normalizeLinkJSON = (
90
96
  data: link,
91
97
  contributions: flattenedContributions.find(
92
98
  (contr) => contr.name === link.name,
93
- ) || { name: link.name, label: link.name || "" },
99
+ ) || {
100
+ name: link.name,
101
+ label: link.name ?? "",
102
+ layouthint: link.layouthint ?? [],
103
+ },
94
104
  })),
95
105
  ...filteredContributions.map((link) => ({
96
106
  data: {
97
107
  ...link,
98
108
  href: link.href || "",
99
109
  },
100
- contributions: { name: link.name, label: link.name || "" },
110
+ contributions: {
111
+ name: link.name,
112
+ label: link.name ?? "",
113
+ layouthint: link.layouthint,
114
+ },
101
115
  })),
102
- ];
116
+ ].filter(
117
+ (link) => !link.contributions.layouthint.includes(HIDE_IN_USER_INTERFACE),
118
+ );
103
119
  };
104
120
 
105
121
  export default normalizeLinkJSON;
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeLinkJSON.js","names":["createLink","link","linkKey","newLink","group","flattenDataJSON","json","flattenedJSON","_keys","default","forEach","Array","isArray","_context","push","_map","call","_assign","name","flattenContributionsJSON","_context2","label","normalizeLinkJSON","data","contributions","flattenedData","flattenedContributions","filteredContributions","_filter","contribution","href","_find","linkData","contr","_default","exports"],"sources":["../../../src/models/links/normalizeLinkJSON.js"],"sourcesContent":["// @flow\n/**\n * Flatten JSON structure into a one dimensional array\n * @private\n */\nconst createLink = (link: Object, linkKey: string) => {\n const newLink = link;\n newLink.group = linkKey;\n return newLink;\n};\n\n/**\n * @private\n */\nconst flattenDataJSON = (json: Object) => {\n const flattenedJSON = [];\n\n Object.keys(json).forEach((linkKey) => {\n if (Array.isArray(json[linkKey])) {\n flattenedJSON.push(\n ...json[linkKey].map((link) => createLink(link, linkKey)),\n );\n } else if (json[linkKey]) {\n flattenedJSON.push(\n Object.assign(json[linkKey], {\n name: linkKey,\n }),\n );\n }\n });\n\n return flattenedJSON;\n};\n\n/**\n */\nconst flattenContributionsJSON = (json: Object) => {\n const flattenedJSON = [];\n\n Object.keys(json).forEach((linkKey) => {\n if (Array.isArray(json[linkKey])) {\n flattenedJSON.push(\n ...json[linkKey].map((link) => createLink(link, linkKey)),\n );\n } else if (json[linkKey]) {\n const newLink = json[linkKey];\n newLink.name = linkKey;\n if (!newLink.label) {\n newLink.label = linkKey;\n }\n if (!newLink.group) {\n newLink.group = linkKey;\n }\n\n flattenedJSON.push(newLink);\n }\n });\n\n return flattenedJSON;\n};\n\n/**\n * Normalize various link formats from services into a concistent format\n * @private\n */\nconst normalizeLinkJSON = (\n data: Object,\n contributions: Object,\n): Array<{\n data: any,\n contributions: any,\n}> => {\n if (!data && !contributions) {\n return [];\n }\n\n const flattenedData = data ? flattenDataJSON(data) : [];\n const flattenedContributions = contributions\n ? flattenContributionsJSON(contributions)\n : [];\n\n const filteredContributions = flattenedContributions.filter(\n (contribution) =>\n contribution.href &&\n !flattenedData.find((linkData) => linkData.name === contribution.name),\n );\n\n return [\n ...flattenedData.map((link) => ({\n data: link,\n contributions: flattenedContributions.find(\n (contr) => contr.name === link.name,\n ) || { name: link.name, label: link.name || \"\" },\n })),\n ...filteredContributions.map((link) => ({\n data: {\n ...link,\n href: link.href || \"\",\n },\n contributions: { name: link.name, label: link.name || \"\" },\n })),\n ];\n};\n\nexport default normalizeLinkJSON;\n"],"mappings":";;;;;;;;;;;;AACA;AACA;AACA;AACA;AACA,MAAMA,UAAU,GAAGA,CAACC,IAAY,EAAEC,OAAe,KAAK;EACpD,MAAMC,OAAO,GAAGF,IAAI;EACpBE,OAAO,CAACC,KAAK,GAAGF,OAAO;EACvB,OAAOC,OAAO;AAChB,CAAC;;AAED;AACA;AACA;AACA,MAAME,eAAe,GAAIC,IAAY,IAAK;EACxC,MAAMC,aAAa,GAAG,EAAE;EAExB,IAAAC,KAAA,CAAAC,OAAA,EAAYH,IAAI,CAAC,CAACI,OAAO,CAAER,OAAO,IAAK;IACrC,IAAIS,KAAK,CAACC,OAAO,CAACN,IAAI,CAACJ,OAAO,CAAC,CAAC,EAAE;MAAA,IAAAW,QAAA;MAChCN,aAAa,CAACO,IAAI,CAChB,GAAG,IAAAC,IAAA,CAAAN,OAAA,EAAAI,QAAA,GAAAP,IAAI,CAACJ,OAAO,CAAC,EAAAc,IAAA,CAAAH,QAAA,EAAMZ,IAAI,IAAKD,UAAU,CAACC,IAAI,E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iB,IAAI;MAAEG,KAAK,EAAEpB,IAAI,CAACiB,IAAI,IAAI;IAAG;EAC3D,CAAC,CAAC,CAAC,CACJ;AACH,CAAC;AAAC,IAAAgB,QAAA,GAEaZ,iBAAiB;AAAAa,OAAA,CAAA1B,OAAA,GAAAyB,QAAA"}
1
+ {"version":3,"file":"normalizeLinkJSON.js","names":["_constants","require","createLink","link","linkKey","newLink","group","layouthint","flattenDataJSON","json","flattenedJSON","_keys","default","forEach","Array","isArray","_context","push","_map","call","_assign","name","flattenContributionsJSON","_context2","label","normalizeLinkJSON","data","contributions","_context3","flattenedData","flattenedContributions","filteredContributions","_filter","contribution","href","_find","linkData","contr","_context4","_includes","HIDE_IN_USER_INTERFACE","_default","exports"],"sources":["../../../src/models/links/normalizeLinkJSON.js"],"sourcesContent":["// @flow\nimport { HIDE_IN_USER_INTERFACE } from \"../../constants\";\n\n/**\n * Flatten JSON structure into a one dimensional array\n * @private\n */\nconst createLink = (link: Object, linkKey: string) => {\n const newLink = { ...link };\n newLink.group = linkKey;\n newLink.layouthint = link.layouthint ? [...link.layouthint] : [];\n return newLink;\n};\n\n/**\n * @private\n */\nconst flattenDataJSON = (json: Object) => {\n const flattenedJSON = [];\n\n Object.keys(json).forEach((linkKey) => {\n if (Array.isArray(json[linkKey])) {\n flattenedJSON.push(\n ...json[linkKey].map((link) => createLink(link, linkKey)),\n );\n } else if (json[linkKey]) {\n flattenedJSON.push(\n Object.assign(json[linkKey], {\n name: linkKey,\n }),\n );\n }\n });\n\n return flattenedJSON;\n};\n\n/**\n */\nconst flattenContributionsJSON = (json: Object) => {\n const flattenedJSON = [];\n\n Object.keys(json).forEach((linkKey) => {\n if (Array.isArray(json[linkKey])) {\n flattenedJSON.push(\n ...json[linkKey].map((link) => createLink(link, linkKey)),\n );\n } else if (json[linkKey]) {\n const newLink = json[linkKey];\n newLink.name = linkKey;\n if (!newLink.label) {\n newLink.label = linkKey;\n }\n if (!newLink.group) {\n newLink.group = linkKey;\n }\n if (!newLink.layouthint) {\n newLink.layouthint = [];\n }\n\n flattenedJSON.push(newLink);\n }\n });\n\n return flattenedJSON;\n};\n\n/**\n * Normalize various link formats from services into a concistent format\n * @private\n */\nconst normalizeLinkJSON = (\n data: Object,\n contributions: Object,\n): Array<{\n data: any,\n contributions: any,\n}> => {\n if (!data && !contributions) {\n return [];\n }\n\n const flattenedData = data ? flattenDataJSON(data) : [];\n const flattenedContributions = contributions\n ? flattenContributionsJSON(contributions)\n : [];\n\n const filteredContributions = flattenedContributions.filter(\n (contribution) =>\n contribution.href &&\n !flattenedData.find((linkData) => linkData.name === contribution.name),\n );\n\n return [\n ...flattenedData.map((link) => ({\n data: link,\n contributions: flattenedContributions.find(\n (contr) => contr.name === link.name,\n ) || {\n name: link.name,\n label: link.name ?? \"\",\n layouthint: link.layouthint ?? [],\n },\n })),\n ...filteredContributions.map((link) => ({\n data: {\n ...link,\n href: link.href || \"\",\n },\n contributions: {\n name: link.name,\n label: link.name ?? \"\",\n layouthint: link.layouthint,\n },\n })),\n ].filter(\n (link) => !link.contributions.layouthint.includes(HIDE_IN_USER_INTERFACE),\n );\n};\n\nexport default normalizeLinkJSON;\n"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA,MAAMC,UAAU,GAAGA,CAACC,IAAY,EAAEC,OAAe,KAAK;EACpD,MAAMC,OAAO,GAAG;IAAE,GAAGF;EAAK,CAAC;EAC3BE,OAAO,CAACC,KAAK,GAAGF,OAAO;EACvBC,OAAO,CAACE,UAAU,GAAGJ,IAAI,CAACI,UAAU,GAAG,CAAC,GAAGJ,IAAI,CAACI,UAAU,CAAC,GAAG,EAAE;EAChE,OAAOF,OAAO;AAChB,CAAC;;AAED;AACA;AACA;AACA,MAAMG,eAAe,GAAIC,IAAY,IAAK;EACxC,MAAMC,aAAa,GAAG,EAAE;EAExB,IAAAC,KAAA,CAAAC,OAAA,EAAYH,IAAI,CAAC,CAACI,OAAO,CAAET,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AChB,IAAI,KAAKlB,IAAI,CAACkB,IACjC,CAAC,IAAI;MACHA,IAAI,EAAElB,IAAI,CAACkB,IAAI;MACfG,KAAK,EAAErB,IAAI,CAACkB,IAAI,IAAI,EAAE;MACtBd,UAAU,EAAEJ,IAAI,CAACI,UAAU,IAAI;IACjC;EACF,CAAC,CAAC,CAAC,EACH,GAAG,IAAAW,IAAA,CAAAN,OAAA,EAAAmB,qBAAqB,EAAAZ,IAAA,CAArBY,qBAAqB,EAAM5B,IAAI,KAAM;IACtCuB,IAAI,EAAE;MACJ,GAAGvB,IAAI;MACP+B,IAAI,EAAE/B,IAAI,CAAC+B,IAAI,IAAI;IACrB,CAAC;IACDP,aAAa,EAAE;MACbN,IAAI,EAAElB,IAAI,CAACkB,IAAI;MACfG,KAAK,EAAErB,IAAI,CAACkB,IAAI,IAAI,EAAE;MACtBd,UAAU,EAAEJ,IAAI,CAACI;IACnB;EACF,CAAC,CAAC,CAAC,CACJ,EAAAY,IAAA,CAAAS,SAAA,EACEzB,IAAI;IAAA,IAAAmC,SAAA;IAAA,OAAK,CAAC,IAAAC,SAAA,CAAA3B,OAAA,EAAA0B,SAAA,GAAAnC,IAAI,CAACwB,aAAa,CAACpB,UAAU,EAAAY,IAAA,CAAAmB,SAAA,EAAUE,iCAAsB,CAAC;EAAA,CAC3E,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA9B,OAAA,GAEaa,iBAAiB"}
@@ -63,6 +63,5 @@ class ListItemCollection extends _BaseCollection.default {
63
63
  return actions;
64
64
  }
65
65
  }
66
- var _default = ListItemCollection;
67
- exports.default = _default;
66
+ var _default = exports.default = ListItemCollection;
68
67
  //# sourceMappingURL=ListItemCollection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemCollection.js","names":["_BaseCollection","_interopRequireDefault","require","_ActionCollection","_ListItemModel","_ConfigurationException","ListItemCollection","BaseCollection","createFromList","list","_embedded","getData","_context","Array","isArray","ConfigurationException","key","dynamicschema","collection","_map","default","results","call","resultItem","_keys","listitemData","listitemContributions","contributions","ListItemModel","createFromListResult","additionalDetailRoutePath","_context2","isEmpty","allRoutes","all","listItem","join","_includes","actionCollection","actions","ActionCollection","forEach","push","_default","exports"],"sources":["../../../src/models/list/ListItemCollection.js"],"sourcesContent":["// @flow\nimport BaseCollection from \"../base/BaseCollection\";\nimport ActionCollection from \"../actions/ActionCollection\";\nimport ListItemModel from \"../list/ListItemModel\";\n\nimport ConfigurationException from \"../../exceptions/ConfigurationException\";\n\nimport type ListModel from \"../list/ListModel\";\n\n/**\n * Collection of list items\n */\nclass ListItemCollection extends BaseCollection<ListItemModel> {\n /**\n * Create a list item collection from the given list\n */\n static createFromList(list: ListModel): ListItemCollection {\n const _embedded = list.getData(\"_embedded\");\n if (_embedded != null) {\n if (Array.isArray(_embedded)) {\n throw new ConfigurationException(\n `One record panel with multiple tables is not supported, place all types in one panel for the panel with key ${list.key}`,\n );\n }\n\n const dynamicschema = list.getData(\"dynamicschema\");\n\n const collection = _embedded.results.map((resultItem) => {\n const [key] = Object.keys(resultItem);\n const listitemData = resultItem[key];\n listitemData.dynamicschema = dynamicschema;\n\n const listitemContributions = list.contributions.results[key];\n\n return ListItemModel.createFromListResult(\n key,\n listitemData,\n listitemContributions,\n );\n });\n\n return new ListItemCollection(collection);\n }\n\n return new ListItemCollection();\n }\n\n /**\n */\n get additionalDetailRoutePath(): string {\n if (this.isEmpty) {\n return \"__NON_EXISTING_ROUTE__\";\n }\n\n const allRoutes = this.all\n .map((listItem) => listItem.additionalDetailRoutePath)\n .join(\"|\");\n\n if (allRoutes.includes(\"|\")) {\n return `(${allRoutes})`;\n }\n\n return allRoutes;\n }\n\n /**\n */\n get actionCollection(): ActionCollection {\n const actions = new ActionCollection();\n\n this.all.forEach((listItem) => {\n actions.collection.push(...listItem.actionCollection.all);\n });\n\n return actions;\n }\n}\n\nexport default ListItemCollection;\n"],"mappings":";;;;;;;;;;AACA,IAAAA,eAAA,GAAAC,sBAA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AAC,SAAA;IACtC,IAAI,IAAI,CAACC,OAAO,EAAE;MAChB,OAAO,wBAAwB;IACjC;IAEA,MAAMC,SAAS,GAAG,IAAAd,IAAA,CAAAC,OAAA,EAAAW,SAAA,OAAI,CAACG,GAAG,EAAAZ,IAAA,CAAAS,SAAA,EAClBI,QAAQ,IAAKA,QAAQ,CAACL,yBAAyB,CAAC,CACrDM,IAAI,CAAC,GAAG,CAAC;IAEZ,IAAI,IAAAC,SAAA,CAAAjB,OAAA,EAAAa,SAAS,EAAAX,IAAA,CAATW,SAAS,EAAU,GAAG,CAAC,EAAE;MAC3B,OAAQ,IAAGA,SAAU,GAAE;IACzB;IAEA,OAAOA,SAAS;EAClB;;EAEA;AACF;EACE,IAAIK,gBAAgBA,CAAA,EAAqB;IACvC,MAAMC,OAAO,GAAG,IAAIC,yBAAgB,CAAC,CAAC;IAEtC,IAAI,CAACN,GAAG,CAACO,OAAO,CAAEN,QAAQ,IAAK;MAC7BI,OAAO,CAACrB,UAAU,CAACwB,IAAI,CAAC,GAAGP,QAAQ,CAACG,gBAAgB,CAACJ,GAAG,CAAC;IAC3D,CAAC,CAAC;IAEF,OAAOK,OAAO;EAChB;AACF;AAAC,IAAAI,QAAA,GAEcrC,kBAAkB;AAAAsC,OAAA,CAAAxB,OAAA,GAAAuB,QAAA"}
1
+ {"version":3,"file":"ListItemCollection.js","names":["_BaseCollection","_interopRequireDefault","require","_ActionCollection","_ListItemModel","_ConfigurationException","ListItemCollection","BaseCollection","createFromList","list","_embedded","getData","_context","Array","isArray","ConfigurationException","key","dynamicschema","collection","_map","default","results","call","resultItem","_keys","listitemData","listitemContributions","contributions","ListItemModel","createFromListResult","additionalDetailRoutePath","_context2","isEmpty","allRoutes","all","listItem","join","_includes","actionCollection","actions","ActionCollection","forEach","push","_default","exports"],"sources":["../../../src/models/list/ListItemCollection.js"],"sourcesContent":["// @flow\nimport BaseCollection from \"../base/BaseCollection\";\nimport ActionCollection from \"../actions/ActionCollection\";\nimport ListItemModel from \"../list/ListItemModel\";\n\nimport ConfigurationException from \"../../exceptions/ConfigurationException\";\n\nimport type ListModel from \"../list/ListModel\";\n\n/**\n * Collection of list items\n */\nclass ListItemCollection extends BaseCollection<ListItemModel> {\n /**\n * Create a list item collection from the given list\n */\n static createFromList(list: ListModel): ListItemCollection {\n const _embedded = list.getData(\"_embedded\");\n if (_embedded != null) {\n if (Array.isArray(_embedded)) {\n throw new ConfigurationException(\n `One record panel with multiple tables is not supported, place all types in one panel for the panel with key ${list.key}`,\n );\n }\n\n const dynamicschema = list.getData(\"dynamicschema\");\n\n const collection = _embedded.results.map((resultItem) => {\n const [key] = Object.keys(resultItem);\n const listitemData = resultItem[key];\n listitemData.dynamicschema = dynamicschema;\n\n const listitemContributions = list.contributions.results[key];\n\n return ListItemModel.createFromListResult(\n key,\n listitemData,\n listitemContributions,\n );\n });\n\n return new ListItemCollection(collection);\n }\n\n return new ListItemCollection();\n }\n\n /**\n */\n get additionalDetailRoutePath(): string {\n if (this.isEmpty) {\n return \"__NON_EXISTING_ROUTE__\";\n }\n\n const allRoutes = this.all\n .map((listItem) => listItem.additionalDetailRoutePath)\n .join(\"|\");\n\n if (allRoutes.includes(\"|\")) {\n return `(${allRoutes})`;\n }\n\n return allRoutes;\n }\n\n /**\n */\n get actionCollection(): ActionCollection {\n const actions = new ActionCollection();\n\n this.all.forEach((listItem) => {\n actions.collection.push(...listItem.actionCollection.all);\n });\n\n return actions;\n }\n}\n\nexport default ListItemCollection;\n"],"mappings":";;;;;;;;;;AACA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,uBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAIA;AACA;AACA;AACA,MAAMI,kBAAkB,SAASC,uBAAc,CAAgB;EAC7D;AACF;AACA;EACE,OAAOC,cAAcA,CAACC,IAAe,EA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IAEZ,IAAI,IAAAC,SAAA,CAAAjB,OAAA,EAAAa,SAAS,EAAAX,IAAA,CAATW,SAAS,EAAU,GAAG,CAAC,EAAE;MAC3B,OAAQ,IAAGA,SAAU,GAAE;IACzB;IAEA,OAAOA,SAAS;EAClB;;EAEA;AACF;EACE,IAAIK,gBAAgBA,CAAA,EAAqB;IACvC,MAAMC,OAAO,GAAG,IAAIC,yBAAgB,CAAC,CAAC;IAEtC,IAAI,CAACN,GAAG,CAACO,OAAO,CAAEN,QAAQ,IAAK;MAC7BI,OAAO,CAACrB,UAAU,CAACwB,IAAI,CAAC,GAAGP,QAAQ,CAACG,gBAAgB,CAACJ,GAAG,CAAC;IAC3D,CAAC,CAAC;IAEF,OAAOK,OAAO;EAChB;AACF;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAxB,OAAA,GAEcd,kBAAkB"}
@@ -25,6 +25,5 @@ class LookupOptionCollection extends _ResourceCollection.default {
25
25
  return collection;
26
26
  }
27
27
  }
28
- var _default = LookupOptionCollection;
29
- exports.default = _default;
28
+ var _default = exports.default = LookupOptionCollection;
30
29
  //# sourceMappingURL=LookupOptionCollection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LookupOptionCollection.js","names":["_ResourceCollection","_interopRequireDefault","require","_ChoiceAttributeOptionModel","LookupOptionCollection","ResourceCollection","create","data","contributions","collection","options","forEach","option","add","ChoiceAttributeOptionModel","elementsContributions","elements","_default","exports","default"],"sources":["../../../src/models/lookup/LookupOptionCollection.js"],"sourcesContent":["// @flow\nimport ResourceCollection from \"../base/ResourceCollection\";\nimport ChoiceAttributeOptionModel from \"../attributes/ChoiceAttributeOptionModel\";\n\n/**\n */\nclass LookupOptionCollection extends ResourceCollection<ChoiceAttributeOptionModel> {\n /**\n */\n static create(data: Object, contributions: Object): LookupOptionCollection {\n const collection = new LookupOptionCollection();\n\n if (data.options && contributions.options) {\n data.options.forEach((option) => {\n collection.add(\n new ChoiceAttributeOptionModel([], {\n ...option,\n elementsContributions: contributions.options[0].elements,\n }),\n );\n });\n }\n\n return collection;\n }\n}\n\nexport default LookupOptionCollection;\n"],"mappings":";;;;;;;AACA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA;AACA,MAAME,sBAAsB,SAASC,2BAAkB,CAA6B;EAClF;AACF;EACE,OAAOC,MAAMA,CAACC,IAAY,EAAEC,aAAqB,EAA0B;IACzE,MAAMC,UAAU,GAAG,IAAIL,sBAAsB,CAAC,CAAC;IAE/C,IAAIG,IAAI,CAACG,OAAO,IAAIF,aAAa,CAACE,OAAO,EAAE;MACzCH,IAAI,CAACG,OAAO,CAACC,OAAO,CAAEC,MAAM,IAAK;QAC/BH,UAAU,CAACI,GAAG,CACZ,IAAIC,mCAA0B,CAAC,EAAE,EAAE;UACjC,GAAGF,MAAM;UACTG,qBAAqB,EAAEP,aAAa,CAACE,OAAO,CAAC,CAAC,CAAC,CAACM;QAClD,CAAC,CACH,CAAC;MACH,CAAC,CAAC;IACJ;IAEA,OAAOP,UAAU;EACnB;AACF;AAAC,IAAAQ,QAAA,GAEcb,sBAAsB;AAAAc,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"LookupOptionCollection.js","names":["_ResourceCollection","_interopRequireDefault","require","_ChoiceAttributeOptionModel","LookupOptionCollection","ResourceCollection","create","data","contributions","collection","options","forEach","option","add","ChoiceAttributeOptionModel","elementsContributions","elements","_default","exports","default"],"sources":["../../../src/models/lookup/LookupOptionCollection.js"],"sourcesContent":["// @flow\nimport ResourceCollection from \"../base/ResourceCollection\";\nimport ChoiceAttributeOptionModel from \"../attributes/ChoiceAttributeOptionModel\";\n\n/**\n */\nclass LookupOptionCollection extends ResourceCollection<ChoiceAttributeOptionModel> {\n /**\n */\n static create(data: Object, contributions: Object): LookupOptionCollection {\n const collection = new LookupOptionCollection();\n\n if (data.options && contributions.options) {\n data.options.forEach((option) => {\n collection.add(\n new ChoiceAttributeOptionModel([], {\n ...option,\n elementsContributions: contributions.options[0].elements,\n }),\n );\n });\n }\n\n return collection;\n }\n}\n\nexport default LookupOptionCollection;\n"],"mappings":";;;;;;;AACA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,2BAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA;AACA,MAAME,sBAAsB,SAASC,2BAAkB,CAA6B;EAClF;AACF;EACE,OAAOC,MAAMA,CAACC,IAAY,EAAEC,aAAqB,EAA0B;IACzE,MAAMC,UAAU,GAAG,IAAIL,sBAAsB,CAAC,CAAC;IAE/C,IAAIG,IAAI,CAACG,OAAO,IAAIF,aAAa,CAACE,OAAO,EAAE;MACzCH,IAAI,CAACG,OAAO,CAACC,OAAO,CAAEC,MAAM,IAAK;QAC/BH,UAAU,CAACI,GAAG,CACZ,IAAIC,mCAA0B,CAAC,EAAE,EAAE;UACjC,GAAGF,MAAM;UACTG,qBAAqB,EAAEP,aAAa,CAACE,OAAO,CAAC,CAAC,CAAC,CAACM;QAClD,CAAC,CACH,CAAC;MACH,CAAC,CAAC;IACJ;IAEA,OAAOP,UAAU;EACnB;AACF;AAAC,IAAAQ,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcf,sBAAsB"}
@@ -104,6 +104,5 @@ class Parameter {
104
104
  return this._isModUIParameter;
105
105
  }
106
106
  }
107
- var _default = Parameter;
108
- exports.default = _default;
107
+ var _default = exports.default = Parameter;
109
108
  //# sourceMappingURL=Parameter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Parameter.js","names":["_Constants","require","_Settings","Parameter","constructor","prefix","name","value","_defineProperty2","default","_prefix","_name","_value","fromString","parameter","_includes","call","namePart","substr","indexOf","PARAMETER_SEPARATOR","decodeURIComponent","toString","withPrefix","arguments","length","undefined","toQuerystring","encodeURIComponent","isModUIParameter","_isModUIParameter","_context","uiParameterSetting","getSetting","DEFAULT_UI_PARAMETERS","_default","exports"],"sources":["../../../src/models/parameter/Parameter.js"],"sourcesContent":["// @flow\nimport {\n PARAMETER_SEPARATOR,\n DEFAULT_UI_PARAMETERS,\n} from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\n/**\n * Querystring parameter\n */\nclass Parameter {\n _prefix: ?string;\n _name: string;\n _value: ?string;\n _isModUIParameter: boolean | null = null;\n\n /**\n */\n constructor(prefix: ?string, name: string, value: ?string) {\n this._prefix = prefix;\n this._name = name;\n this._value = value;\n }\n\n /**\n * Getting prefix\n */\n get prefix(): ?string {\n return this._prefix;\n }\n\n /**\n * Getting name\n */\n get name(): string {\n return this._name;\n }\n\n /**\n * Getting value\n */\n get value(): ?string {\n return this._value;\n }\n\n /**\n * Create parameter from string input\n */\n static fromString(parameter: string): null | Parameter {\n if (parameter == null || parameter === \"\" || !parameter.includes(\"=\")) {\n return null;\n }\n\n // parameter has the structure prefix~name=value\n const namePart = parameter.substr(0, parameter.indexOf(\"=\"));\n const value = parameter.substr(parameter.indexOf(\"=\") + 1);\n\n let prefix;\n let name = namePart;\n if (namePart.includes(PARAMETER_SEPARATOR)) {\n prefix = namePart.substr(0, namePart.indexOf(\"~\"));\n name = namePart.substr(namePart.indexOf(\"~\") + 1);\n }\n\n if (name === \"\") {\n return null;\n }\n\n return new Parameter(prefix, name, decodeURIComponent(value));\n }\n\n /**\n * Convert parameter to string\n */\n toString(withPrefix: boolean = true): string {\n if (!this.name) {\n return \"\";\n }\n\n const value = this.value == null ? \"\" : this.value;\n\n return withPrefix && this.prefix\n ? `${this.prefix}${PARAMETER_SEPARATOR}${this.name}=${value}`\n : `${this.name}=${value}`;\n }\n\n /**\n */\n toQuerystring(withPrefix: boolean = true): string {\n if (!this.name) {\n return \"\";\n }\n\n const value = this.value == null ? \"\" : encodeURIComponent(this.value);\n\n return withPrefix && this.prefix\n ? `${this.prefix}${PARAMETER_SEPARATOR}${this.name}=${value}`\n : `${this.name}=${value}`;\n }\n\n /**\n * Indicates if parameter can be send to the Be Informed modular UI\n */\n get isModUIParameter(): boolean {\n if (this._isModUIParameter == null) {\n const uiParameterSetting = getSetting(\"UI_PARAMETERS\", []);\n this._isModUIParameter = ![\n ...DEFAULT_UI_PARAMETERS,\n ...uiParameterSetting,\n ].includes(this.name);\n }\n\n return this._isModUIParameter;\n }\n}\n\nexport default Parameter;\n"],"mappings":";;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAIA,IAAAC,SAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA,MAAME,SAAS,CAAC;EAMd;AACF;EACEC,WAAWA,CAACC,MAAe,EAAEC,IAAY,EAAEC,KAAc,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA,6BAJvB,IAAI;IAKtC,IAAI,CAACC,OAAO,GAAGL,MAAM;IACrB,IAAI,CAACM,KAAK,GAAGL,IAAI;IACjB,IAAI,CAACM,MAAM,GAAGL,KAAK;EACrB;;EAEA;AACF;AACA;EACE,IAAIF,MAAMA,CAAA,EAAY;IACpB,OAAO,IAAI,CAACK,OAAO;EACrB;;EAEA;AACF;AACA;EACE,IAAIJ,IAAIA,CAAA,EAAW;IACjB,OAAO,IAAI,CAACK,KAAK;EACnB;;EAEA;AACF;AACA;EACE,IAAIJ,KAAKA,CAAA,EAAY;IACnB,OAAO,IAAI,CAACK,MAAM;EACpB;;EAEA;AACF;AACA;EACE,OAAOC,UAAUA,CAACC,SAAiB,EAAoB;IACrD,IAAIA,SAAS,IAAI,IAAI,IAAIA,SAAS,KAAK,EAAE,IAAI,CAAC,IAAAC,SAAA,CAAAN,OAAA,EAAAK,SAAS,EAAAE,IAAA,CAATF,SAAS,EAAU,GAAG,CAAC,EAAE;MACrE,OAAO,IAAI;IACb;;IAEA;IACA,MAAMG,QAAQ,GAAGH,SAAS,CAACI,MAAM,CAAC,CAAC,EAAEJ,SA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AC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;IACtC,IAAI,CAAC,IAAI,CAAClB,IAAI,EAAE;MACd,OAAO,EAAE;IACX;IAEA,MAAMC,KAAK,GAAG,IAAI,CAACA,KAAK,IAAI,IAAI,GAAG,EAAE,GAAGqB,kBAAkB,CAAC,IAAI,CAACrB,KAAK,CAAC;IAEtE,OAAOgB,UAAU,IAAI,IAAI,CAAClB,MAAM,GAC3B,GAAE,IAAI,CAACA,MAAO,GAAEe,8BAAoB,GAAE,IAAI,CAACd,IAAK,IAAGC,KAAM,EAAC,GAC1D,GAAE,IAAI,CAACD,IAAK,IAAGC,KAAM,EAAC;EAC7B;;EAEA;AACF;AACA;EACE,IAAIsB,gBAAgBA,CAAA,EAAY;IAC9B,IAAI,IAAI,CAACC,iBAAiB,IAAI,IAAI,EAAE;MAAA,IAAAC,QAAA;MAClC,MAAMC,kBAAkB,GAAG,IAAAC,oBAAU,EAAC,eAAe,EAAE,EAAE,CAAC;MAC1D,IAAI,CAACH,iBAAiB,GAAG,CAAC,IAAAf,SAAA,CAAAN,OAAA,EAAAsB,QAAA,IACxB,GAAGG,gCAAqB,EACxB,GAAGF,kBAAkB,CACtB,EAAAhB,IAAA,CAAAe,QAAA,EAAU,IAAI,CAACzB,IAAI,CAAC;IACvB;IAEA,OAAO,IAAI,CAACwB,iBAAiB;EAC/B;AACF;AAAC,IAAAK,QAAA,GAEchC,SAAS;AAAAiC,OAAA,CAAA3B,OAAA,GAAA0B,QAAA"}
1
+ {"version":3,"file":"Parameter.js","names":["_Constants","require","_Settings","Parameter","constructor","prefix","name","value","_defineProperty2","default","_prefix","_name","_value","fromString","parameter","_includes","call","namePart","substr","indexOf","PARAMETER_SEPARATOR","decodeURIComponent","toString","withPrefix","arguments","length","undefined","toQuerystring","encodeURIComponent","isModUIParameter","_isModUIParameter","_context","uiParameterSetting","getSetting","DEFAULT_UI_PARAMETERS","_default","exports"],"sources":["../../../src/models/parameter/Parameter.js"],"sourcesContent":["// @flow\nimport {\n PARAMETER_SEPARATOR,\n DEFAULT_UI_PARAMETERS,\n} from \"../../constants/Constants\";\nimport { getSetting } from \"../../constants/Settings\";\n\n/**\n * Querystring parameter\n */\nclass Parameter {\n _prefix: ?string;\n _name: string;\n _value: ?string;\n _isModUIParameter: boolean | null = null;\n\n /**\n */\n constructor(prefix: ?string, name: string, value: ?string) {\n this._prefix = prefix;\n this._name = name;\n this._value = value;\n }\n\n /**\n * Getting prefix\n */\n get prefix(): ?string {\n return this._prefix;\n }\n\n /**\n * Getting name\n */\n get name(): string {\n return this._name;\n }\n\n /**\n * Getting value\n */\n get value(): ?string {\n return this._value;\n }\n\n /**\n * Create parameter from string input\n */\n static fromString(parameter: string): null | Parameter {\n if (parameter == null || parameter === \"\" || !parameter.includes(\"=\")) {\n return null;\n }\n\n // parameter has the structure prefix~name=value\n const namePart = parameter.substr(0, parameter.indexOf(\"=\"));\n const value = parameter.substr(parameter.indexOf(\"=\") + 1);\n\n let prefix;\n let name = namePart;\n if (namePart.includes(PARAMETER_SEPARATOR)) {\n prefix = namePart.substr(0, namePart.indexOf(\"~\"));\n name = namePart.substr(namePart.indexOf(\"~\") + 1);\n }\n\n if (name === \"\") {\n return null;\n }\n\n return new Parameter(prefix, name, decodeURIComponent(value));\n }\n\n /**\n * Convert parameter to string\n */\n toString(withPrefix: boolean = true): string {\n if (!this.name) {\n return \"\";\n }\n\n const value = this.value == null ? \"\" : this.value;\n\n return withPrefix && this.prefix\n ? `${this.prefix}${PARAMETER_SEPARATOR}${this.name}=${value}`\n : `${this.name}=${value}`;\n }\n\n /**\n */\n toQuerystring(withPrefix: boolean = true): string {\n if (!this.name) {\n return \"\";\n }\n\n const value = this.value == null ? \"\" : encodeURIComponent(this.value);\n\n return withPrefix && this.prefix\n ? `${this.prefix}${PARAMETER_SEPARATOR}${this.name}=${value}`\n : `${this.name}=${value}`;\n }\n\n /**\n * Indicates if parameter can be send to the Be Informed modular UI\n */\n get isModUIParameter(): boolean {\n if (this._isModUIParameter == null) {\n const uiParameterSetting = getSetting(\"UI_PARAMETERS\", []);\n this._isModUIParameter = ![\n ...DEFAULT_UI_PARAMETERS,\n ...uiParameterSetting,\n ].includes(this.name);\n }\n\n return this._isModUIParameter;\n }\n}\n\nexport default Parameter;\n"],"mappings":";;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAIA,IAAAC,SAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA,MAAME,SAAS,CAAC;EAMd;AACF;EACEC,WAAWA,CAACC,MAAe,EAAEC,IAAY,EAAEC,KAAc,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA,6BAJvB,IAAI;IAKtC,IAAI,CAACC,OAAO,GAAGL,MAAM;IACrB,IAAI,CAACM,KAAK,GAAGL,IAAI;IACjB,IAAI,CAACM,MAAM,GAAGL,KAAK;EACrB;;EAEA;AACF;AACA;EACE,IAAIF,MAAMA,CAAA,EAAY;IACpB,OAAO,IAAI,CAACK,OAAO;EACrB;;EAEA;AACF;AACA;EACE,IAAIJ,IAAIA,CAAA,EAAW;IACjB,OAAO,IAAI,CAACK,KAAK;EACnB;;EAEA;AACF;AACA;EACE,IAAIJ,KAAKA,CAAA,EAAY;IACnB,OAAO,IAAI,CAACK,MAAM;EACpB;;EAEA;AACF;AACA;EACE,OAAOC,UAAUA,CAACC,SAAiB,EAAoB;IACrD,IAAIA,SAAS,IAAI,IAAI,IAAIA,SAAS,KAAK,EAAE,IAAI,CAAC,IAAAC,SAAA,CAAAN,OAAA,EAAAK,SAAS,EAAAE,IAAA,CAATF,SAAS,EAAU,GAAG,CAAC,EAAE;MACrE,OAAO,IAAI;IACb;;IAEA;IACA,MAAMG,QAAQ,GAAGH,SAAS,CAACI,MAAM,CAAC,CAAC,EAAEJ,SAAS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,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;IACtC,IAAI,CAAC,IAAI,CAAClB,IAAI,EAAE;MACd,OAAO,EAAE;IACX;IAEA,MAAMC,KAAK,GAAG,IAAI,CAACA,KAAK,IAAI,IAAI,GAAG,EAAE,GAAGqB,kBAAkB,CAAC,IAAI,CAACrB,KAAK,CAAC;IAEtE,OAAOgB,UAAU,IAAI,IAAI,CAAClB,MAAM,GAC3B,GAAE,IAAI,CAACA,MAAO,GAAEe,8BAAoB,GAAE,IAAI,CAACd,IAAK,IAAGC,KAAM,EAAC,GAC1D,GAAE,IAAI,CAACD,IAAK,IAAGC,KAAM,EAAC;EAC7B;;EAEA;AACF;AACA;EACE,IAAIsB,gBAAgBA,CAAA,EAAY;IAC9B,IAAI,IAAI,CAACC,iBAAiB,IAAI,IAAI,EAAE;MAAA,IAAAC,QAAA;MAClC,MAAMC,kBAAkB,GAAG,IAAAC,oBAAU,EAAC,eAAe,EAAE,EAAE,CAAC;MAC1D,IAAI,CAACH,iBAAiB,GAAG,CAAC,IAAAf,SAAA,CAAAN,OAAA,EAAAsB,QAAA,IACxB,GAAGG,gCAAqB,EACxB,GAAGF,kBAAkB,CACtB,EAAAhB,IAAA,CAAAe,QAAA,EAAU,IAAI,CAACzB,IAAI,CAAC;IACvB;IAEA,OAAO,IAAI,CAACwB,iBAAiB;EAC/B;AACF;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAA3B,OAAA,GAEcN,SAAS"}
@@ -53,6 +53,5 @@ const resolveModel = function (data) {
53
53
  }
54
54
  return null;
55
55
  };
56
- var _default = resolveModel;
57
- exports.default = _default;
56
+ var _default = exports.default = resolveModel;
58
57
  //# sourceMappingURL=resolveModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveModel.js","names":["_objects","require","_ApplicationModel","_interopRequireDefault","_CaseSearchModel","_CaseViewModel","_DetailModel","_FormModel","_GroupingPanelModel","_ListModel","_ListDetailModel","_TabModel","_TaskGroupModel","_UserModel","_UserProfileModel","_UserServicesModel","_ModelCatalogModel","_ConceptIndexModel","_BusinessScenarioModel","_ConceptDetailModel","_ConceptTypeDetailModel","_ContentIndexModel","_ContentTOCModel","_ContentModel","_ContentTypeModel","_LookupOptionsModel","_exceptions","RESOURCE_MODELS","ApplicationModel","TabModel","ListDetailModel","ListModel","GroupingPanelModel","CaseSearchModel","CaseViewModel","DetailModel","TaskGroupModel","FormModel","UserModel","UserProfileModel","UserServicesModel","ModelCatalogModel","ConceptIndexModel","BusinessScenarioModel","ConceptDetailModel","ConceptTypeDetailModel","ContentIndexModel","ContentTOCModel","ContentModel","ContentTypeModel","LookupOptionsModel","resolveModel","data","availableModels","arguments","length","undefined","IllegalArgumentException","has","contributions","resourceTypeModel","_find","default","call","resourceModel","isApplicableModel","_default","exports"],"sources":["../../src/models/resolveModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport ApplicationModel from \"./application/ApplicationModel\";\nimport CaseSearchModel from \"./search/CaseSearchModel\";\nimport CaseViewModel from \"./caseview/CaseViewModel\";\nimport DetailModel from \"./detail/DetailModel\";\nimport FormModel from \"./form/FormModel\";\nimport GroupingPanelModel from \"./panels/GroupingPanelModel\";\nimport ListModel from \"./list/ListModel\";\nimport ListDetailModel from \"./list/ListDetailModel\";\nimport TabModel from \"./tab/TabModel\";\nimport TaskGroupModel from \"./taskgroup/TaskGroupModel\";\nimport UserModel from \"./user/UserModel\";\nimport UserProfileModel from \"./user/UserProfileModel\";\nimport UserServicesModel from \"./user/UserServicesModel\";\nimport ModelCatalogModel from \"./modelcatalog/ModelCatalogModel\";\nimport ConceptIndexModel from \"./concepts/ConceptIndexModel\";\nimport BusinessScenarioModel from \"./concepts/BusinessScenarioModel\";\nimport ConceptDetailModel from \"./concepts/ConceptDetailModel\";\nimport ConceptTypeDetailModel from \"./concepts/ConceptTypeDetailModel\";\nimport ContentIndexModel from \"./content/ContentIndexModel\";\nimport ContentTOCModel from \"./content/ContentTOCModel\";\nimport ContentModel from \"./content/ContentModel\";\nimport ContentTypeModel from \"./content/ContentTypeModel\";\nimport LookupOptionsModel from \"./lookup/LookupOptionsModel\";\n\nimport { IllegalArgumentException } from \"../exceptions\";\n\nimport type ModularUIResponse from \"../modularui/ModularUIResponse\";\nimport type { ModularUIModel } from \"./types\";\n\n/**\n * Mapping of models and resourcetypes\n */\nconst RESOURCE_MODELS = [\n ApplicationModel,\n TabModel,\n ListDetailModel,\n ListModel,\n GroupingPanelModel,\n CaseSearchModel,\n CaseViewModel,\n DetailModel,\n TaskGroupModel,\n FormModel,\n UserModel,\n UserProfileModel,\n UserServicesModel,\n ModelCatalogModel,\n ConceptIndexModel,\n BusinessScenarioModel,\n ConceptDetailModel,\n ConceptTypeDetailModel,\n ContentIndexModel,\n ContentTOCModel,\n ContentModel,\n ContentTypeModel,\n LookupOptionsModel,\n];\n\n/**\n * Resolve a model by resource\n */\nconst resolveModel = (\n data: ModularUIResponse,\n availableModels: Array<Class<ModularUIModel>> = RESOURCE_MODELS,\n): Class<ModularUIModel> | null => {\n if (!data) {\n throw new IllegalArgumentException(\n \"No data or contribution available, cannot resolve model\",\n );\n }\n\n if (!has(data.contributions, \"resourcetype\")) {\n throw new IllegalArgumentException(\n \"Data has wrong format, missing resourcetype property in contributions, cannot resolve model\",\n );\n }\n\n const resourceTypeModel = availableModels.find((resourceModel) =>\n resourceModel.isApplicableModel(data),\n );\n\n if (resourceTypeModel) {\n return resourceTypeModel;\n }\n\n return null;\n};\n\nexport default resolveModel;\n"],"mappings":";;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,cAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAJ,sB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BC,wBAAe,EACfC,qBAAY,EACZC,yBAAgB,EAChBC,2BAAkB,CACnB;;AAED;AACA;AACA;AACA,MAAMC,YAAY,GAAG,SAAAA,CACnBC,IAAuB,EAEU;EAAA,IADjCC,eAA6C,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG3B,eAAe;EAE/D,IAAI,CAACyB,IAAI,EAAE;IACT,MAAM,IAAIK,oCAAwB,CAChC,yDACF,CAAC;EACH;EAEA,IAAI,CAAC,IAAAC,YAAG,EAACN,IAAI,CAACO,aAAa,EAAE,cAAc,CAAC,EAAE;IAC5C,MAAM,IAAIF,oCAAwB,CAChC,6FACF,CAAC;EACH;EAEA,MAAMG,iBAAiB,GAAG,IAAAC,KAAA,CAAAC,OAAA,EAAAT,eAAe,EAAAU,IAAA,CAAfV,eAAe,EAAOW,aAAa,IAC3DA,aAAa,CAACC,iBAAiB,CAACb,IAAI,CACtC,CAAC;EAED,IAAIQ,iBAAiB,EAAE;IACrB,OAAOA,iBAAiB;EAC1B;EAEA,OAAO,IAAI;AACb,CAAC;AAAC,IAAAM,QAAA,GAEaf,YAAY;AAAAgB,OAAA,CAAAL,OAAA,GAAAI,QAAA"}
1
+ {"version":3,"file":"resolveModel.js","names":["_objects","require","_ApplicationModel","_interopRequireDefault","_CaseSearchModel","_CaseViewModel","_DetailModel","_FormModel","_GroupingPanelModel","_ListModel","_ListDetailModel","_TabModel","_TaskGroupModel","_UserModel","_UserProfileModel","_UserServicesModel","_ModelCatalogModel","_ConceptIndexModel","_BusinessScenarioModel","_ConceptDetailModel","_ConceptTypeDetailModel","_ContentIndexModel","_ContentTOCModel","_ContentModel","_ContentTypeModel","_LookupOptionsModel","_exceptions","RESOURCE_MODELS","ApplicationModel","TabModel","ListDetailModel","ListModel","GroupingPanelModel","CaseSearchModel","CaseViewModel","DetailModel","TaskGroupModel","FormModel","UserModel","UserProfileModel","UserServicesModel","ModelCatalogModel","ConceptIndexModel","BusinessScenarioModel","ConceptDetailModel","ConceptTypeDetailModel","ContentIndexModel","ContentTOCModel","ContentModel","ContentTypeModel","LookupOptionsModel","resolveModel","data","availableModels","arguments","length","undefined","IllegalArgumentException","has","contributions","resourceTypeModel","_find","default","call","resourceModel","isApplicableModel","_default","exports"],"sources":["../../src/models/resolveModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../utils/helpers/objects\";\n\nimport ApplicationModel from \"./application/ApplicationModel\";\nimport CaseSearchModel from \"./search/CaseSearchModel\";\nimport CaseViewModel from \"./caseview/CaseViewModel\";\nimport DetailModel from \"./detail/DetailModel\";\nimport FormModel from \"./form/FormModel\";\nimport GroupingPanelModel from \"./panels/GroupingPanelModel\";\nimport ListModel from \"./list/ListModel\";\nimport ListDetailModel from \"./list/ListDetailModel\";\nimport TabModel from \"./tab/TabModel\";\nimport TaskGroupModel from \"./taskgroup/TaskGroupModel\";\nimport UserModel from \"./user/UserModel\";\nimport UserProfileModel from \"./user/UserProfileModel\";\nimport UserServicesModel from \"./user/UserServicesModel\";\nimport ModelCatalogModel from \"./modelcatalog/ModelCatalogModel\";\nimport ConceptIndexModel from \"./concepts/ConceptIndexModel\";\nimport BusinessScenarioModel from \"./concepts/BusinessScenarioModel\";\nimport ConceptDetailModel from \"./concepts/ConceptDetailModel\";\nimport ConceptTypeDetailModel from \"./concepts/ConceptTypeDetailModel\";\nimport ContentIndexModel from \"./content/ContentIndexModel\";\nimport ContentTOCModel from \"./content/ContentTOCModel\";\nimport ContentModel from \"./content/ContentModel\";\nimport ContentTypeModel from \"./content/ContentTypeModel\";\nimport LookupOptionsModel from \"./lookup/LookupOptionsModel\";\n\nimport { IllegalArgumentException } from \"../exceptions\";\n\nimport type ModularUIResponse from \"../modularui/ModularUIResponse\";\nimport type { ModularUIModel } from \"./types\";\n\n/**\n * Mapping of models and resourcetypes\n */\nconst RESOURCE_MODELS = [\n ApplicationModel,\n TabModel,\n ListDetailModel,\n ListModel,\n GroupingPanelModel,\n CaseSearchModel,\n CaseViewModel,\n DetailModel,\n TaskGroupModel,\n FormModel,\n UserModel,\n UserProfileModel,\n UserServicesModel,\n ModelCatalogModel,\n ConceptIndexModel,\n BusinessScenarioModel,\n ConceptDetailModel,\n ConceptTypeDetailModel,\n ContentIndexModel,\n ContentTOCModel,\n ContentModel,\n ContentTypeModel,\n LookupOptionsModel,\n];\n\n/**\n * Resolve a model by resource\n */\nconst resolveModel = (\n data: ModularUIResponse,\n availableModels: Array<Class<ModularUIModel>> = RESOURCE_MODELS,\n): Class<ModularUIModel> | null => {\n if (!data) {\n throw new IllegalArgumentException(\n \"No data or contribution available, cannot resolve model\",\n );\n }\n\n if (!has(data.contributions, \"resourcetype\")) {\n throw new IllegalArgumentException(\n \"Data has wrong format, missing resourcetype property in contributions, cannot resolve model\",\n );\n }\n\n const resourceTypeModel = availableModels.find((resourceModel) =>\n resourceModel.isApplicableModel(data),\n );\n\n if (resourceTypeModel) {\n return resourceTypeModel;\n }\n\n return null;\n};\n\nexport default resolveModel;\n"],"mappings":";;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,cAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,YAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,UAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,mBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,UAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,gBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,SAAA,GAAAR,sBAAA,CAAAF,OAAA;AACA,IAAAW,eAAA,GAAAT,sBAAA,CAAAF,OAAA;AACA,IAAAY,UAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,iBAAA,GAAAX,sBAAA,CAAAF,OAAA;AAC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N,IAAI,CAACO,aAAa,EAAE,cAAc,CAAC,EAAE;IAC5C,MAAM,IAAIF,oCAAwB,CAChC,6FACF,CAAC;EACH;EAEA,MAAMG,iBAAiB,GAAG,IAAAC,KAAA,CAAAC,OAAA,EAAAT,eAAe,EAAAU,IAAA,CAAfV,eAAe,EAAOW,aAAa,IAC3DA,aAAa,CAACC,iBAAiB,CAACb,IAAI,CACtC,CAAC;EAED,IAAIQ,iBAAiB,EAAE;IACrB,OAAOA,iBAAiB;EAC1B;EAEA,OAAO,IAAI;AACb,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAL,OAAA,GAEaX,YAAY"}
@@ -102,6 +102,5 @@ class SortOptionModel {
102
102
  return listhref;
103
103
  }
104
104
  }
105
- var _default = SortOptionModel;
106
- exports.default = _default;
105
+ var _default = exports.default = SortOptionModel;
107
106
  //# sourceMappingURL=SortOptionModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SortOptionModel.js","names":["_ListHref","_interopRequireDefault","require","SortOptionModel","constructor","key","label","group","_defineProperty2","default","_key","_group","_label","attribute","getAttributeByKey","selected","_selected","value","sortorder","oppositeDirection","oppositeValue","_sortorder","getHref","listHref","listhref","ListHref","hasPage","prefix","hasParameter","page","sort","_default","exports"],"sources":["../../../src/models/sorting/SortOptionModel.js"],"sourcesContent":["// @flow\nimport type { GroupModel } from \"../grouping/GroupingModel\";\n\nimport ListHref from \"../href/ListHref\";\n\n/**\n */\nclass SortOptionModel {\n _key: string;\n _label: string;\n _group: ?GroupModel;\n _sortorder: \"desc\" | \"asc\" = \"desc\";\n _selected: boolean = false;\n\n /**\n */\n constructor(key: string, label?: string, group?: ?GroupModel) {\n this._key = key;\n this._group = group;\n\n if (label) {\n this._label = label;\n } else if (group) {\n const attribute = group.getAttributeByKey(key);\n if (attribute) {\n this._label = attribute.label;\n }\n }\n }\n\n /**\n */\n get selected(): boolean {\n return this._selected;\n }\n\n /**\n */\n set selected(selected: boolean) {\n this._selected = selected;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n get value(): string {\n return `${this.key} ${this.sortorder}`;\n }\n\n /**\n */\n get oppositeDirection(): \"asc\" | \"desc\" {\n return this.sortorder === \"desc\" ? \"asc\" : \"desc\";\n }\n\n /**\n */\n get oppositeValue(): string {\n return `${this.key} ${this.oppositeDirection}`;\n }\n\n /**\n */\n get label(): string {\n return this._label;\n }\n\n /**\n */\n get sortorder(): \"desc\" | \"asc\" {\n return this._sortorder;\n }\n\n /**\n */\n set sortorder(sortorder: \"desc\" | \"asc\") {\n this._sortorder = sortorder;\n }\n\n /**\n */\n get group(): ?GroupModel {\n return this._group;\n }\n\n /**\n */\n getHref(listHref: ListHref): ListHref {\n const listhref = new ListHref(listHref);\n const hasPage = listhref.prefix\n ? listhref.hasParameter(\"page\", listhref.prefix)\n : listhref.hasParameter(\"page\");\n if (hasPage) {\n listhref.page = 1;\n }\n listhref.sort = this.oppositeValue;\n\n return listhref;\n }\n}\n\nexport default SortOptionModel;\n"],"mappings":";;;;;;;;AAGA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA;AACA;AACA,MAAMC,eAAe,CAAC;EAOpB;AACF;EACEC,WAAWA,CAACC,GAAW,EAAEC,KAAc,EAAEC,KAAmB,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA,sBALjC,MAAM;IAAA,IAAAD,gBAAA,CAAAC,OAAA,qBACd,KAAK;IAKxB,IAAI,CAACC,IAAI,GAAGL,GAAG;IACf,IAAI,CAACM,MAAM,GAAGJ,KAAK;IAEnB,IAAID,KAAK,EAAE;MACT,IAAI,CAACM,MAAM,GAAGN,KAAK;IACrB,CAAC,MAAM,IAAIC,KAAK,EAAE;MAChB,MAAMM,SAAS,GAAGN,KAAK,CAACO,iBAAiB,CAACT,GAAG,CAAC;MA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EJ,QAAQ,CAACG,MAAM,CAAC,GAC9CH,QAAQ,CAACI,YAAY,CAAC,MAAM,CAAC;IACjC,IAAIF,OAAO,EAAE;MACXF,QAAQ,CAACK,IAAI,GAAG,CAAC;IACnB;IACAL,QAAQ,CAACM,IAAI,GAAG,IAAI,CAACV,aAAa;IAElC,OAAOI,QAAQ;EACjB;AACF;AAAC,IAAAO,QAAA,GAEc5B,eAAe;AAAA6B,OAAA,CAAAvB,OAAA,GAAAsB,QAAA"}
1
+ {"version":3,"file":"SortOptionModel.js","names":["_ListHref","_interopRequireDefault","require","SortOptionModel","constructor","key","label","group","_defineProperty2","default","_key","_group","_label","attribute","getAttributeByKey","selected","_selected","value","sortorder","oppositeDirection","oppositeValue","_sortorder","getHref","listHref","listhref","ListHref","hasPage","prefix","hasParameter","page","sort","_default","exports"],"sources":["../../../src/models/sorting/SortOptionModel.js"],"sourcesContent":["// @flow\nimport type { GroupModel } from \"../grouping/GroupingModel\";\n\nimport ListHref from \"../href/ListHref\";\n\n/**\n */\nclass SortOptionModel {\n _key: string;\n _label: string;\n _group: ?GroupModel;\n _sortorder: \"desc\" | \"asc\" = \"desc\";\n _selected: boolean = false;\n\n /**\n */\n constructor(key: string, label?: string, group?: ?GroupModel) {\n this._key = key;\n this._group = group;\n\n if (label) {\n this._label = label;\n } else if (group) {\n const attribute = group.getAttributeByKey(key);\n if (attribute) {\n this._label = attribute.label;\n }\n }\n }\n\n /**\n */\n get selected(): boolean {\n return this._selected;\n }\n\n /**\n */\n set selected(selected: boolean) {\n this._selected = selected;\n }\n\n /**\n */\n get key(): string {\n return this._key;\n }\n\n /**\n */\n get value(): string {\n return `${this.key} ${this.sortorder}`;\n }\n\n /**\n */\n get oppositeDirection(): \"asc\" | \"desc\" {\n return this.sortorder === \"desc\" ? \"asc\" : \"desc\";\n }\n\n /**\n */\n get oppositeValue(): string {\n return `${this.key} ${this.oppositeDirection}`;\n }\n\n /**\n */\n get label(): string {\n return this._label;\n }\n\n /**\n */\n get sortorder(): \"desc\" | \"asc\" {\n return this._sortorder;\n }\n\n /**\n */\n set sortorder(sortorder: \"desc\" | \"asc\") {\n this._sortorder = sortorder;\n }\n\n /**\n */\n get group(): ?GroupModel {\n return this._group;\n }\n\n /**\n */\n getHref(listHref: ListHref): ListHref {\n const listhref = new ListHref(listHref);\n const hasPage = listhref.prefix\n ? listhref.hasParameter(\"page\", listhref.prefix)\n : listhref.hasParameter(\"page\");\n if (hasPage) {\n listhref.page = 1;\n }\n listhref.sort = this.oppositeValue;\n\n return listhref;\n }\n}\n\nexport default SortOptionModel;\n"],"mappings":";;;;;;;;AAGA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA;AACA;AACA,MAAMC,eAAe,CAAC;EAOpB;AACF;EACEC,WAAWA,CAACC,GAAW,EAAEC,KAAc,EAAEC,KAAmB,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA;IAAA,IAAAD,gBAAA,CAAAC,OAAA,sBALjC,MAAM;IAAA,IAAAD,gBAAA,CAAAC,OAAA,qBACd,KAAK;IAKxB,IAAI,CAACC,IAAI,GAAGL,GAAG;IACf,IAAI,CAACM,MAAM,GAAGJ,KAAK;IAEnB,IAAID,KAAK,EAAE;MACT,IAAI,CAACM,MAAM,GAAGN,KAAK;IACrB,CAAC,MAAM,IAAIC,KAAK,EAAE;MAChB,MAAMM,SAAS,GAAGN,KAAK,CAACO,iBAAiB,CAACT,GAAG,CAAC;MAC9C,IAAIQ,SAAS,EAAE;QACb,IAAI,CAACD,MAAM,GAAGC,SAAS,CAACP,KAAK;MAC/B;IACF;EACF;;EAEA;AACF;EACE,IAAIS,QAAQA,CAAA,EAAY;IACtB,OAAO,IAAI,CAACC,SAAS;EACvB;;EAEA;AACF;EACE,IAAID,QAAQA,CAACA,QAAiB,EAAE;IAC9B,IAAI,CAACC,SAAS,GAAGD,QAAQ;EAC3B;;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AAA,GAEcN,eAAe"}
@@ -108,6 +108,5 @@ class SortingModel extends _BaseCollection.default {
108
108
  return listhref;
109
109
  }
110
110
  }
111
- var _default = SortingModel;
112
- exports.default = _default;
111
+ var _default = exports.default = SortingModel;
113
112
  //# sourceMappingURL=SortingModel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SortingModel.js","names":["_objects","require","_BaseCollection","_interopRequireDefault","_SortOptionModel","_ListHref","_IllegalArgumentException","SortingModel","BaseCollection","constructor","contributions","labels","grouping","currentSort","has","sorting","_context","collection","_map","default","attributes","call","attributeKey","label","group","getGroupByAttributeKey","SortOptionModel","setSelected","name","value","_context2","_context3","_filter","option","selected","join","param","options","arguments","length","undefined","split","forEach","sortItem","key","direction","sortorder","getUpdateQuerystring","optionKey","_context4","_context5","IllegalArgumentException","oppositeValue","getUpdateQuerystringBySortOption","sortOption","createListHref","listHref","listhref","ListHref","hasPage","prefix","hasParameter","page","sort","_default","exports"],"sources":["../../../src/models/sorting/SortingModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../../utils/helpers/objects\";\n\nimport BaseCollection from \"../base/BaseCollection\";\nimport SortOptionModel from \"../sorting/SortOptionModel\";\nimport ListHref from \"../href/ListHref\";\n\nimport type GroupingModel from \"../grouping/GroupingModel\";\nimport IllegalArgumentException from \"../../exceptions/IllegalArgumentException\";\n\n/**\n */\nclass SortingModel extends BaseCollection<SortOptionModel> {\n /**\n */\n constructor(\n contributions: Object,\n labels: { [key: string]: string },\n grouping: GroupingModel,\n currentSort: string,\n ) {\n super();\n\n if (has(contributions?.sorting, \"attributes\")) {\n this.collection = contributions.sorting.attributes.map((attributeKey) => {\n const label = labels[attributeKey];\n const group = grouping && grouping.getGroupByAttributeKey(attributeKey);\n\n return new SortOptionModel(attributeKey, label, group);\n });\n\n this.setSelected(currentSort);\n }\n }\n\n /**\n */\n get name(): string {\n return \"sort\";\n }\n\n /**\n */\n get value(): string {\n return this.filter((option) => option.selected)\n .map((option) => option.value)\n .join(\",\");\n }\n\n /**\n */\n get param(): string {\n return this.value;\n }\n\n /**\n */\n get options(): Array<SortOptionModel> {\n return this.collection;\n }\n\n /**\n */\n setSelected(currentSort: string = \"\") {\n currentSort.split(\",\").forEach((sortItem) => {\n const [key, direction] = sortItem.split(\" \");\n\n this.collection.forEach((option) => {\n if (option.key === key) {\n option.selected = true;\n if (direction === \"asc\") {\n option.sortorder = \"asc\";\n } else if (direction === \"desc\") {\n option.sortorder = \"desc\";\n }\n }\n });\n });\n }\n\n /**\n * Retrieve a sort option from the model that can be used in the querystring to set it in the opposite direction\n * For example a sort option in the model with key books and direction descending will be retrieved as 'Books asc'\n */\n getUpdateQuerystring(optionKey: string): string {\n if (!optionKey) {\n throw new IllegalArgumentException(\n \"Missing option key as input argument\",\n );\n }\n\n return this.filter((option) => option.key === optionKey)\n .map((option) =>\n option.key === optionKey ? option.oppositeValue : option.value,\n )\n .join(\",\");\n }\n\n /**\n * @see {@link SortingModel#getUpdateQuerystring}\n */\n getUpdateQuerystringBySortOption(sortOption: SortOptionModel): string {\n if (!(sortOption instanceof SortOptionModel)) {\n throw new IllegalArgumentException(\n \"Missing SortOptionModel as input argument\",\n );\n }\n\n return this.getUpdateQuerystring(sortOption.key);\n }\n\n /**\n */\n createListHref(listHref: ListHref, sortOption: SortOptionModel): ListHref {\n const listhref = new ListHref(listHref);\n const hasPage = listhref.prefix\n ? listhref.hasParameter(\"page\", listhref.prefix)\n : listhref.hasParameter(\"page\");\n if (hasPage) {\n listhref.page = 1;\n }\n listhref.sort = this.getUpdateQuerystringBySortOption(sortOption);\n\n return listhref;\n }\n}\n\nexport default SortingModel;\n"],"mappings":";;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,yBAAA,GAAAH,sBAAA,C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,CAAC,GAAG,CAAC;EACd;;EAEA;AACF;AACA;EACEkB,gCAAgCA,CAACC,UAA2B,EAAU;IACpE,IAAI,EAAEA,UAAU,YAAY5B,wBAAe,CAAC,EAAE;MAC5C,MAAM,IAAIyB,iCAAwB,CAChC,2CACF,CAAC;IACH;IAEA,OAAO,IAAI,CAACJ,oBAAoB,CAACO,UAAU,CAACV,GAAG,CAAC;EAClD;;EAEA;AACF;EACEW,cAAcA,CAACC,QAAkB,EAAEF,UAA2B,EAAY;IACxE,MAAMG,QAAQ,GAAG,IAAIC,iBAAQ,CAACF,QAAQ,CAAC;IACvC,MAAMG,OAAO,GAAGF,QAAQ,CAACG,MAAM,GAC3BH,QAAQ,CAACI,YAAY,CAAC,MAAM,EAAEJ,QAAQ,CAACG,MAAM,CAAC,GAC9CH,QAAQ,CAACI,YAAY,CAAC,MAAM,CAAC;IACjC,IAAIF,OAAO,EAAE;MACXF,QAAQ,CAACK,IAAI,GAAG,CAAC;IACnB;IACAL,QAAQ,CAACM,IAAI,GAAG,IAAI,CAACV,gCAAgC,CAACC,UAAU,CAAC;IAEjE,OAAOG,QAAQ;EACjB;AACF;AAAC,IAAAO,QAAA,GAEczD,YAAY;AAAA0D,OAAA,CAAA9C,OAAA,GAAA6C,QAAA"}
1
+ {"version":3,"file":"SortingModel.js","names":["_objects","require","_BaseCollection","_interopRequireDefault","_SortOptionModel","_ListHref","_IllegalArgumentException","SortingModel","BaseCollection","constructor","contributions","labels","grouping","currentSort","has","sorting","_context","collection","_map","default","attributes","call","attributeKey","label","group","getGroupByAttributeKey","SortOptionModel","setSelected","name","value","_context2","_context3","_filter","option","selected","join","param","options","arguments","length","undefined","split","forEach","sortItem","key","direction","sortorder","getUpdateQuerystring","optionKey","_context4","_context5","IllegalArgumentException","oppositeValue","getUpdateQuerystringBySortOption","sortOption","createListHref","listHref","listhref","ListHref","hasPage","prefix","hasParameter","page","sort","_default","exports"],"sources":["../../../src/models/sorting/SortingModel.js"],"sourcesContent":["// @flow\nimport { has } from \"../../utils/helpers/objects\";\n\nimport BaseCollection from \"../base/BaseCollection\";\nimport SortOptionModel from \"../sorting/SortOptionModel\";\nimport ListHref from \"../href/ListHref\";\n\nimport type GroupingModel from \"../grouping/GroupingModel\";\nimport IllegalArgumentException from \"../../exceptions/IllegalArgumentException\";\n\n/**\n */\nclass SortingModel extends BaseCollection<SortOptionModel> {\n /**\n */\n constructor(\n contributions: Object,\n labels: { [key: string]: string },\n grouping: GroupingModel,\n currentSort: string,\n ) {\n super();\n\n if (has(contributions?.sorting, \"attributes\")) {\n this.collection = contributions.sorting.attributes.map((attributeKey) => {\n const label = labels[attributeKey];\n const group = grouping && grouping.getGroupByAttributeKey(attributeKey);\n\n return new SortOptionModel(attributeKey, label, group);\n });\n\n this.setSelected(currentSort);\n }\n }\n\n /**\n */\n get name(): string {\n return \"sort\";\n }\n\n /**\n */\n get value(): string {\n return this.filter((option) => option.selected)\n .map((option) => option.value)\n .join(\",\");\n }\n\n /**\n */\n get param(): string {\n return this.value;\n }\n\n /**\n */\n get options(): Array<SortOptionModel> {\n return this.collection;\n }\n\n /**\n */\n setSelected(currentSort: string = \"\") {\n currentSort.split(\",\").forEach((sortItem) => {\n const [key, direction] = sortItem.split(\" \");\n\n this.collection.forEach((option) => {\n if (option.key === key) {\n option.selected = true;\n if (direction === \"asc\") {\n option.sortorder = \"asc\";\n } else if (direction === \"desc\") {\n option.sortorder = \"desc\";\n }\n }\n });\n });\n }\n\n /**\n * Retrieve a sort option from the model that can be used in the querystring to set it in the opposite direction\n * For example a sort option in the model with key books and direction descending will be retrieved as 'Books asc'\n */\n getUpdateQuerystring(optionKey: string): string {\n if (!optionKey) {\n throw new IllegalArgumentException(\n \"Missing option key as input argument\",\n );\n }\n\n return this.filter((option) => option.key === optionKey)\n .map((option) =>\n option.key === optionKey ? option.oppositeValue : option.value,\n )\n .join(\",\");\n }\n\n /**\n * @see {@link SortingModel#getUpdateQuerystring}\n */\n getUpdateQuerystringBySortOption(sortOption: SortOptionModel): string {\n if (!(sortOption instanceof SortOptionModel)) {\n throw new IllegalArgumentException(\n \"Missing SortOptionModel as input argument\",\n );\n }\n\n return this.getUpdateQuerystring(sortOption.key);\n }\n\n /**\n */\n createListHref(listHref: ListHref, sortOption: SortOptionModel): ListHref {\n const listhref = new ListHref(listHref);\n const hasPage = listhref.prefix\n ? listhref.hasParameter(\"page\", listhref.prefix)\n : listhref.hasParameter(\"page\");\n if (hasPage) {\n listhref.page = 1;\n }\n listhref.sort = this.getUpdateQuerystringBySortOption(sortOption);\n\n return listhref;\n }\n}\n\nexport default SortingModel;\n"],"mappings":";;;;;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AAGA,IAAAK,yBAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA;AACA;AACA,MAAMM,YAAY,SAASC,uBAAc,CAAkB;EACzD;AACF;EACEC,WAAWA,CACTC,aAAqB,EACrBC,MAAiC,EACjCC,QAAuB,EACvBC,WAAmB,EACnB;IACA,KAAK,CAAC,CAAC;IAEP,IAAI,IAAAC,YAAG,EAACJ,aAAa,EAAEK,OAAO,EAAE,YAAY,CAAC,EAAE;MAAA,IAAAC,QAAA;MAC7C,IAAI,CAACC,UAAU,GAAG,IAAAC,IAAA,CAAAC,OAAA,EAAAH,QAAA,GAAAN,aAAa,CAACK,OAAO,CAACK,UAAU,EAAAC,IAAA,CAAAL,QAAA,EAAMM,YAAY,IAAK;QACvE,MAAMC,KAAK,GAAGZ,MAAM,CAACW,YAAY,CAAC;QAClC,MAAME,KAAK,GAAGZ,QAAQ,IAAIA,QAAQ,CAACa,sBAAsB,CAACH,YAAY,CAAC;QAEvE,OAAO,IAAII,wBAAe,CAACJ,YAAY,EAAEC,KAAK,EAAEC,KAAK,CAAC;MACxD,CAAC,C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IAAI,CAACV,gCAAgC,CAACC,UAAU,CAAC;IAEjE,OAAOG,QAAQ;EACjB;AACF;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAA9C,OAAA,GAEcZ,YAAY"}
@@ -1,4 +1,7 @@
1
1
  import TaskGroupModel from "../TaskGroupModel";
2
+ import ModularUIResponse from "../../../modularui/ModularUIResponse";
3
+ import mockTaskGroup from "./taskgroup.json";
4
+ import mockTaskGroupContributions from "./taskgroupContributions.json";
2
5
 
3
6
  describe("taskGroupModel", () => {
4
7
  it("should be able to create an empty Taskgroup mode", () => {
@@ -6,4 +9,18 @@ describe("taskGroupModel", () => {
6
9
 
7
10
  expect(taskgroup).toBeInstanceOf(TaskGroupModel);
8
11
  });
12
+
13
+ it("should create an application object with links an a label on a typical modular ui response", () => {
14
+ const data = ModularUIResponse.create({
15
+ key: "TaskGroup",
16
+ data: mockTaskGroup,
17
+ contributions: mockTaskGroupContributions,
18
+ });
19
+
20
+ const taskgroup = new TaskGroupModel(data);
21
+
22
+ expect(taskgroup).toBeInstanceOf(TaskGroupModel);
23
+ expect(taskgroup.label).toBe("General tasks");
24
+ expect(taskgroup.actionCollection.size).toBe(2);
25
+ });
9
26
  });