@hmcts/ccd-case-ui-toolkit 6.14.0-restricted-case-access → 6.14.0-restricted-case-access-v2

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 (262) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +821 -653
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.config.js +1 -1
  6. package/esm2015/lib/components/form/date-input/date-input.component.js +8 -8
  7. package/esm2015/lib/components/header/header-bar/header-bar.component.js +2 -3
  8. package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.module.js +1 -1
  9. package/esm2015/lib/shared/commons/case-edit-data/case-edit-validation.model.js +1 -1
  10. package/esm2015/lib/shared/components/activity/activity.component.js +5 -5
  11. package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +1 -1
  12. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +4 -4
  13. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +4 -4
  14. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  15. package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +2 -1
  16. package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +3 -3
  17. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +2 -1
  18. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
  19. package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +2 -1
  20. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +11 -22
  21. package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
  22. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +12 -12
  23. package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
  24. package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +2 -1
  25. package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
  26. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
  27. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -3
  28. package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
  29. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
  30. package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
  31. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
  32. package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
  33. package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
  34. package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
  35. package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
  36. package/esm2015/lib/shared/components/palette/address/address-option.model.js +4 -7
  37. package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
  38. package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +2 -2
  39. package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -2
  40. package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
  41. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +12 -5
  42. package/esm2015/lib/shared/components/palette/case-file-view/index.js +1 -2
  43. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  44. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
  45. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  46. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  47. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +19 -8
  48. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +4 -3
  49. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +3 -0
  50. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +47 -0
  51. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +153 -0
  52. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -6
  53. package/esm2015/lib/shared/components/palette/index.js +2 -1
  54. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
  55. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  56. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  57. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +2 -1
  58. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
  59. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
  60. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
  61. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
  62. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  63. package/esm2015/lib/shared/components/palette/palette.module.js +30 -7
  64. package/esm2015/lib/shared/components/palette/palette.service.js +5 -3
  65. package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
  66. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  67. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  68. package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
  69. package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
  70. package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
  71. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  72. package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
  73. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  74. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +4 -3
  75. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +5 -9
  76. package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
  77. package/esm2015/lib/shared/domain/case-details.model.js +2 -1
  78. package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
  79. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
  80. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
  81. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
  82. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +2 -1
  83. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
  84. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
  85. package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
  86. package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
  87. package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
  88. package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
  89. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  90. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  91. package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
  92. package/esm2015/lib/shared/domain/definition/case-field.model.js +7 -3
  93. package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
  94. package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
  95. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  96. package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
  97. package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
  98. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  99. package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
  100. package/esm2015/lib/shared/domain/search/field.model.js +1 -1
  101. package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
  102. package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
  103. package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
  104. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  105. package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
  106. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  107. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  108. package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
  109. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +14 -11
  110. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  111. package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
  112. package/esm2015/lib/shared/services/activity/activity.service.js +9 -18
  113. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  114. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  115. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  116. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  117. package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
  118. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  119. package/esm2015/lib/shared/services/fields/fields.utils.js +5 -4
  120. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +17 -1
  121. package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
  122. package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
  123. package/esm2015/lib/shared/services/search/search.service.js +5 -10
  124. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  125. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  126. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +761 -609
  127. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  128. package/lib/app.config.d.ts +2 -0
  129. package/lib/app.config.d.ts.map +1 -1
  130. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  131. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  132. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  133. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
  134. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  135. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  136. package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
  137. package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts +2 -2
  138. package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts.map +1 -1
  139. package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
  140. package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
  141. package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
  142. package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -3
  143. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  144. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  145. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  146. package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
  147. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  148. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  149. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  150. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  151. package/lib/shared/components/error/domain/error-context.d.ts +2 -2
  152. package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
  153. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  154. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  155. package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
  156. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  157. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  158. package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
  159. package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
  160. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +5 -2
  161. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  162. package/lib/shared/components/palette/case-file-view/index.d.ts +0 -1
  163. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
  164. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  165. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  166. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  167. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +1 -0
  168. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  169. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
  170. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  171. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +3 -0
  172. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +1 -0
  173. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +9 -0
  174. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  175. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +17 -0
  176. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  177. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
  178. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
  179. package/lib/shared/components/palette/index.d.ts +1 -0
  180. package/lib/shared/components/palette/index.d.ts.map +1 -1
  181. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  182. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  183. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  184. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  185. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  186. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  187. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  188. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  189. package/lib/shared/components/palette/palette.module.d.ts +60 -59
  190. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  191. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  192. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  193. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  194. package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
  195. package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
  196. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  197. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  198. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  199. package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
  200. package/lib/shared/domain/case-details.model.d.ts.map +1 -1
  201. package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
  202. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
  203. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  204. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
  205. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  206. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  207. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  208. package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
  209. package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
  210. package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
  211. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  212. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
  213. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  214. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  215. package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
  216. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  217. package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
  218. package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
  219. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  220. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  221. package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
  222. package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
  223. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  224. package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
  225. package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
  226. package/lib/shared/domain/search/field.model.d.ts.map +1 -1
  227. package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
  228. package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
  229. package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
  230. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  231. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
  232. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
  233. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  234. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  235. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  236. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  237. package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
  238. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
  239. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  240. package/lib/shared/pipes/complex/index.d.ts +1 -1
  241. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  242. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  243. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  244. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  245. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  246. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  247. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  248. package/lib/shared/services/fields/fields.utils.d.ts +0 -1
  249. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  250. package/lib/shared/services/form/field-type-sanitiser.d.ts +2 -0
  251. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  252. package/lib/shared/services/loading/loading.service.d.ts +1 -4
  253. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  254. package/lib/shared/services/search/search.service.d.ts +0 -2
  255. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  256. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  257. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  258. package/package.json +2 -2
  259. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +0 -72
  260. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +0 -8
  261. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +0 -1
  262. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +0 -1
@@ -118,7 +118,7 @@
118
118
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
119
119
  }
120
120
  }
121
- var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
121
+ var _c0$$ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
122
  var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
123
123
  var FooterComponent = /** @class */ (function () {
124
124
  function FooterComponent() {
@@ -128,7 +128,7 @@
128
128
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
129
129
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
130
130
  if (rf & 1) {
131
- i0__namespace.ɵɵprojectionDef(_c0$_);
131
+ i0__namespace.ɵɵprojectionDef(_c0$$);
132
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
133
133
  i0__namespace.ɵɵelementStart(1, "div", 1);
134
134
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -207,7 +207,7 @@
207
207
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
208
208
  }
209
209
  }
210
- var _c0$Z = [[["", "headerNavigation", ""]]];
210
+ var _c0$_ = [[["", "headerNavigation", ""]]];
211
211
  var _c1$r = ["[headerNavigation]"];
212
212
  var HeaderBarComponent = /** @class */ (function () {
213
213
  function HeaderBarComponent() {
@@ -221,7 +221,7 @@
221
221
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
222
222
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
223
223
  if (rf & 1) {
224
- i0__namespace.ɵɵprojectionDef(_c0$Z);
224
+ i0__namespace.ɵɵprojectionDef(_c0$_);
225
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
226
226
  i0__namespace.ɵɵelementStart(1, "div", 1);
227
227
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -282,7 +282,7 @@
282
282
  }] });
283
283
  })();
284
284
 
285
- var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
285
+ var _c0$Z = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
286
  var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
287
287
  var NavigationComponent = /** @class */ (function () {
288
288
  function NavigationComponent() {
@@ -292,7 +292,7 @@
292
292
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
293
293
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
294
294
  if (rf & 1) {
295
- i0__namespace.ɵɵprojectionDef(_c0$Y);
295
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
296
296
  i0__namespace.ɵɵelementStart(0, "div");
297
297
  i0__namespace.ɵɵelementStart(1, "nav", 0);
298
298
  i0__namespace.ɵɵprojection(2);
@@ -437,7 +437,7 @@
437
437
  }], null, null);
438
438
  })();
439
439
 
440
- var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
440
+ var _c0$Y = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
441
  var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
442
442
  var BodyComponent = /** @class */ (function () {
443
443
  function BodyComponent() {
@@ -447,7 +447,7 @@
447
447
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
448
448
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
449
449
  if (rf & 1) {
450
- i0__namespace.ɵɵprojectionDef(_c0$X);
450
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
451
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
452
452
  i0__namespace.ɵɵprojection(1);
453
453
  i0__namespace.ɵɵprojection(2, 1);
@@ -852,7 +852,7 @@
852
852
  return typeof state === "function" ? receiver === state : state.has(receiver);
853
853
  }
854
854
 
855
- var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
855
+ var _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
856
856
  function DateInputComponent_div_16_Template(rf, ctx) {
857
857
  if (rf & 1) {
858
858
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -870,7 +870,7 @@
870
870
  i0__namespace.ɵɵadvance(1);
871
871
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
872
872
  i0__namespace.ɵɵadvance(2);
873
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
873
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r3.isInvalid));
874
874
  }
875
875
  }
876
876
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -890,7 +890,7 @@
890
890
  i0__namespace.ɵɵadvance(1);
891
891
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
892
892
  i0__namespace.ɵɵadvance(2);
893
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
893
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r4.isInvalid));
894
894
  }
895
895
  }
896
896
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -910,7 +910,7 @@
910
910
  i0__namespace.ɵɵadvance(1);
911
911
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
912
912
  i0__namespace.ɵɵadvance(2);
913
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
913
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r5.isInvalid));
914
914
  }
915
915
  }
916
916
  var DateInputComponent = /** @class */ (function () {
@@ -1036,22 +1036,22 @@
1036
1036
  }
1037
1037
  };
1038
1038
  DateInputComponent.prototype.dayId = function () {
1039
- return this.id + '-day';
1039
+ return this.id + "-day";
1040
1040
  };
1041
1041
  DateInputComponent.prototype.monthId = function () {
1042
- return this.id + '-month';
1042
+ return this.id + "-month";
1043
1043
  };
1044
1044
  DateInputComponent.prototype.yearId = function () {
1045
- return this.id + '-year';
1045
+ return this.id + "-year";
1046
1046
  };
1047
1047
  DateInputComponent.prototype.hourId = function () {
1048
- return this.id + '-hour';
1048
+ return this.id + "-hour";
1049
1049
  };
1050
1050
  DateInputComponent.prototype.minuteId = function () {
1051
- return this.id + '-minute';
1051
+ return this.id + "-minute";
1052
1052
  };
1053
1053
  DateInputComponent.prototype.secondId = function () {
1054
- return this.id + '-second';
1054
+ return this.id + "-second";
1055
1055
  };
1056
1056
  DateInputComponent.prototype.viewValue = function () {
1057
1057
  if (this.day || this.month || this.year || this.hour || this.minute || this.second) {
@@ -1066,7 +1066,7 @@
1066
1066
  this.minute ? this.pad(this.minute) : '',
1067
1067
  this.second ? this.pad(this.second) : ''
1068
1068
  ].join(':');
1069
- return date + 'T' + time + '.000';
1069
+ return date + "T" + time + ".000";
1070
1070
  }
1071
1071
  else {
1072
1072
  return date;
@@ -1144,15 +1144,15 @@
1144
1144
  i0__namespace.ɵɵadvance(2);
1145
1145
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1146
1146
  i0__namespace.ɵɵadvance(2);
1147
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
1147
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$X, ctx.isInvalid));
1148
1148
  i0__namespace.ɵɵadvance(3);
1149
1149
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1150
1150
  i0__namespace.ɵɵadvance(2);
1151
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
1151
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$X, ctx.isInvalid));
1152
1152
  i0__namespace.ɵɵadvance(3);
1153
1153
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1154
1154
  i0__namespace.ɵɵadvance(2);
1155
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
1155
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$X, ctx.isInvalid));
1156
1156
  i0__namespace.ɵɵadvance(2);
1157
1157
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1158
1158
  i0__namespace.ɵɵadvance(1);
@@ -1233,7 +1233,7 @@
1233
1233
  i0__namespace.ɵɵelementContainerEnd();
1234
1234
  }
1235
1235
  }
1236
- var _c0$V = ["*"];
1236
+ var _c0$W = ["*"];
1237
1237
  exports.AlertMessageType = void 0;
1238
1238
  (function (AlertMessageType) {
1239
1239
  AlertMessageType["WARNING"] = "warning";
@@ -1254,7 +1254,7 @@
1254
1254
  AlertComponent.TYPE_ERROR = 'error';
1255
1255
  AlertComponent.TYPE_INFORMATION = 'information';
1256
1256
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1257
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1257
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$W, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1258
1258
  if (rf & 1) {
1259
1259
  i0__namespace.ɵɵprojectionDef();
1260
1260
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1529,7 +1529,7 @@
1529
1529
  }] });
1530
1530
  })();
1531
1531
 
1532
- var _c0$U = function (a0) { return { "js-hidden": a0 }; };
1532
+ var _c0$V = function (a0) { return { "js-hidden": a0 }; };
1533
1533
  var _c1$o = ["*"];
1534
1534
  var TabComponent = /** @class */ (function () {
1535
1535
  function TabComponent() {
@@ -1545,7 +1545,7 @@
1545
1545
  i0__namespace.ɵɵelementEnd();
1546
1546
  }
1547
1547
  if (rf & 2) {
1548
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
1548
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$V, !ctx.selected));
1549
1549
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1550
1550
  }
1551
1551
  }, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1568,7 +1568,7 @@
1568
1568
  }] });
1569
1569
  })();
1570
1570
 
1571
- var _c0$T = ["tab"];
1571
+ var _c0$U = ["tab"];
1572
1572
  var _c1$n = function () { return ["."]; };
1573
1573
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1574
1574
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1622,7 +1622,7 @@
1622
1622
  }
1623
1623
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1624
1624
  if (rf & 1) {
1625
- i0__namespace.ɵɵviewQuery(_c0$T, 1);
1625
+ i0__namespace.ɵɵviewQuery(_c0$U, 1);
1626
1626
  }
1627
1627
  if (rf & 2) {
1628
1628
  var _t = void 0;
@@ -1701,7 +1701,7 @@
1701
1701
  }], null, null);
1702
1702
  })();
1703
1703
 
1704
- var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1704
+ var _c0$T = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1705
1705
  var ActivityBannerComponent = /** @class */ (function () {
1706
1706
  function ActivityBannerComponent() {
1707
1707
  }
@@ -1722,7 +1722,7 @@
1722
1722
  i0__namespace.ɵɵelementEnd();
1723
1723
  }
1724
1724
  if (rf & 2) {
1725
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1725
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$T, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1726
1726
  i0__namespace.ɵɵadvance(2);
1727
1727
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1728
1728
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -2131,7 +2131,7 @@
2131
2131
  });
2132
2132
  ActivityService.handleHttpError = function (response) {
2133
2133
  var error = HttpErrorService.convertToHttpError(response);
2134
- if (response.status && response.status !== error.status) {
2134
+ if ((response === null || response === void 0 ? void 0 : response.status) !== error.status) {
2135
2135
  error.status = response.status;
2136
2136
  }
2137
2137
  return error;
@@ -2139,12 +2139,11 @@
2139
2139
  ActivityService.prototype.getOptions = function () {
2140
2140
  var userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
2141
2141
  var headers = new i1$2.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
2142
- var options = {
2142
+ return {
2143
2143
  headers: headers,
2144
2144
  withCredentials: true,
2145
2145
  observe: 'body',
2146
2146
  };
2147
- return options;
2148
2147
  };
2149
2148
  ActivityService.prototype.getActivities = function () {
2150
2149
  var caseId = [];
@@ -2153,41 +2152,33 @@
2153
2152
  }
2154
2153
  try {
2155
2154
  var options = this.getOptions();
2156
- var url = this.activityUrl() + ("/cases/" + caseId.join(',') + "/activity");
2155
+ var url = this.activityUrl() + "/cases/" + caseId.join(',') + "/activity";
2157
2156
  return this.http
2158
2157
  .get(url, options, false, ActivityService.handleHttpError)
2159
2158
  .pipe(operators.map(function (response) { return response; }));
2160
2159
  }
2161
2160
  catch (error) {
2162
- console.log('user may not be authenticated.' + error);
2161
+ console.log("user may not be authenticated." + error);
2163
2162
  }
2164
2163
  };
2165
2164
  ActivityService.prototype.postActivity = function (caseId, activity) {
2166
2165
  try {
2167
2166
  var options = this.getOptions();
2168
- var url = this.activityUrl() + ("/cases/" + caseId + "/activity");
2167
+ var url = this.activityUrl() + "/cases/" + caseId + "/activity";
2169
2168
  var body = { activity: activity };
2170
2169
  return this.http
2171
2170
  .post(url, body, options, false)
2172
2171
  .pipe(operators.map(function (response) { return response; }));
2173
2172
  }
2174
2173
  catch (error) {
2175
- console.log('user may not be authenticated.' + error);
2174
+ console.log("user may not be authenticated." + error);
2176
2175
  }
2177
2176
  };
2178
2177
  ActivityService.prototype.verifyUserIsAuthorized = function () {
2179
2178
  var _this = this;
2180
- if (this.sessionStorageService.getItem('userDetails') === undefined) {
2181
- return;
2182
- }
2183
- if (this.activityUrl() && this.userAuthorised === undefined) {
2179
+ if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
2184
2180
  this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(function () { return _this.userAuthorised = true; }, function (error) {
2185
- if ([401, 403].indexOf(error.status) > -1) {
2186
- _this.userAuthorised = false;
2187
- }
2188
- else {
2189
- _this.userAuthorised = true;
2190
- }
2181
+ _this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
2191
2182
  });
2192
2183
  }
2193
2184
  };
@@ -2300,7 +2291,7 @@
2300
2291
  requests.get(activity.caseId).next(activity);
2301
2292
  });
2302
2293
  }, function (err) {
2303
- console.log('error: ' + err);
2294
+ console.log("error: " + err);
2304
2295
  Array.from(requests.values()).forEach(function (subject) { return subject.error(err); });
2305
2296
  }); });
2306
2297
  });
@@ -2440,9 +2431,9 @@
2440
2431
  };
2441
2432
  ActivityComponent.prototype.generateDescription = function (prefix, suffix, namesArray, unknownCount) {
2442
2433
  var resultText = prefix;
2443
- resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + ' ' + activityInfo.surname; }).join(', ');
2434
+ resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + " " + activityInfo.surname; }).join(', ');
2444
2435
  if (unknownCount > 0) {
2445
- resultText += (namesArray.length > 0 ? ' and ' + unknownCount + ' other' : unknownCount + ' user');
2436
+ resultText += (namesArray.length > 0 ? " and " + unknownCount + " other" : unknownCount + " user");
2446
2437
  resultText += (unknownCount > 1 ? 's' : '');
2447
2438
  }
2448
2439
  else {
@@ -2450,10 +2441,10 @@
2450
2441
  }
2451
2442
  if (suffix.length > 0) {
2452
2443
  if (namesArray.length + unknownCount > 1) {
2453
- resultText += ' are ' + suffix;
2444
+ resultText += " are " + suffix;
2454
2445
  }
2455
2446
  else {
2456
- resultText += ' is ' + suffix;
2447
+ resultText += " is " + suffix;
2457
2448
  }
2458
2449
  }
2459
2450
  return resultText;
@@ -2792,7 +2783,7 @@
2792
2783
  break;
2793
2784
  case 'n':
2794
2785
  case 'N':
2795
- maybePush(result, '***' + c + '***', inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2786
+ maybePush(result, "***" + c + "***", inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2796
2787
  break;
2797
2788
  case 'V':
2798
2789
  case 'O':
@@ -2926,9 +2917,9 @@
2926
2917
  resultDate = offsetDate.getDate() + " " + DatePipe.MONTHS[offsetDate.getMonth()] + " " + offsetDate.getFullYear();
2927
2918
  if (match[4] && match[5] && match[6] && format !== 'short') {
2928
2919
  resultDate += ', ';
2929
- resultDate += this.getHour(offsetDate.getHours().toString()) + ':';
2930
- resultDate += this.pad(offsetDate.getMinutes()) + ':';
2931
- resultDate += this.pad(offsetDate.getSeconds()) + ' ';
2920
+ resultDate += this.getHour(offsetDate.getHours().toString()) + ":";
2921
+ resultDate += this.pad(offsetDate.getMinutes()) + ":";
2922
+ resultDate += this.pad(offsetDate.getSeconds()) + " ";
2932
2923
  resultDate += (this.toInt(offsetDate.getHours().toString()) >= 12) ? 'PM' : 'AM';
2933
2924
  }
2934
2925
  }
@@ -3303,6 +3294,7 @@
3303
3294
  }], null, null);
3304
3295
  })();
3305
3296
 
3297
+ // tslint:disable:variable-name
3306
3298
  var AddressModel = /** @class */ (function () {
3307
3299
  function AddressModel() {
3308
3300
  this.AddressLine1 = '';
@@ -3360,9 +3352,12 @@
3360
3352
  }
3361
3353
  Object.defineProperty(CaseField.prototype, "value", {
3362
3354
  get: function () {
3363
- if (this.isDynamic()) {
3355
+ if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3364
3356
  return this._value && this._value.value ? this._value.value.code : this._value;
3365
3357
  }
3358
+ else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
3359
+ return this._value && this._value.value ? this._value.value : this._value;
3360
+ }
3366
3361
  else {
3367
3362
  return this._value;
3368
3363
  }
@@ -3452,7 +3447,7 @@
3452
3447
  };
3453
3448
  CaseField.prototype.isDynamic = function () {
3454
3449
  var _this = this;
3455
- var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
3450
+ var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
3456
3451
  if (!this.field_type) {
3457
3452
  return false;
3458
3453
  }
@@ -3610,6 +3605,7 @@
3610
3605
  __metadata("design:type", Array)
3611
3606
  ], CaseEventTrigger.prototype, "wizard_pages", void 0);
3612
3607
 
3608
+ // tslint:disable:variable-name
3613
3609
  var CaseViewEvent = /** @class */ (function () {
3614
3610
  function CaseViewEvent() {
3615
3611
  }
@@ -3654,6 +3650,7 @@
3654
3650
  __metadata("design:type", Array)
3655
3651
  ], CaseType.prototype, "case_fields", void 0);
3656
3652
 
3653
+ // tslint:disable:variable-name
3657
3654
  var EventCaseField = /** @class */ (function () {
3658
3655
  function EventCaseField() {
3659
3656
  }
@@ -3704,6 +3701,7 @@
3704
3701
  return CasePrintDocument;
3705
3702
  }());
3706
3703
 
3704
+ // tslint:disable:variable-name
3707
3705
  var HRef = /** @class */ (function () {
3708
3706
  function HRef() {
3709
3707
  }
@@ -3741,25 +3739,25 @@
3741
3739
  OrganisationConverter.toSimpleAddress = function (organisationModel) {
3742
3740
  var simpleAddress = '';
3743
3741
  if (organisationModel.addressLine1) {
3744
- simpleAddress += organisationModel.addressLine1 + '<br>';
3742
+ simpleAddress += organisationModel.addressLine1 + "<br>";
3745
3743
  }
3746
3744
  if (organisationModel.addressLine2) {
3747
- simpleAddress += organisationModel.addressLine2 + '<br>';
3745
+ simpleAddress += organisationModel.addressLine2 + "<br>";
3748
3746
  }
3749
3747
  if (organisationModel.addressLine3) {
3750
- simpleAddress += organisationModel.addressLine3 + '<br>';
3748
+ simpleAddress += organisationModel.addressLine3 + "<br>";
3751
3749
  }
3752
3750
  if (organisationModel.townCity) {
3753
- simpleAddress += organisationModel.townCity + '<br>';
3751
+ simpleAddress += organisationModel.townCity + "<br>";
3754
3752
  }
3755
3753
  if (organisationModel.county) {
3756
- simpleAddress += organisationModel.county + '<br>';
3754
+ simpleAddress += organisationModel.county + "<br>";
3757
3755
  }
3758
3756
  if (organisationModel.country) {
3759
- simpleAddress += organisationModel.country + '<br>';
3757
+ simpleAddress += organisationModel.country + "<br>";
3760
3758
  }
3761
3759
  if (organisationModel.postCode) {
3762
- simpleAddress += organisationModel.postCode + '<br>';
3760
+ simpleAddress += organisationModel.postCode + "<br>";
3763
3761
  }
3764
3762
  return simpleAddress;
3765
3763
  };
@@ -3872,12 +3870,14 @@
3872
3870
  __metadata("design:type", Array)
3873
3871
  ], SearchResultView.prototype, "results", void 0);
3874
3872
 
3873
+ // tslint:disable:variable-name
3875
3874
  var CaseDetails = /** @class */ (function () {
3876
3875
  function CaseDetails() {
3877
3876
  }
3878
3877
  return CaseDetails;
3879
3878
  }());
3880
3879
 
3880
+ // tslint:disable:variable-name
3881
3881
  var CaseEventData = /** @class */ (function () {
3882
3882
  function CaseEventData() {
3883
3883
  }
@@ -3885,12 +3885,7 @@
3885
3885
  }());
3886
3886
 
3887
3887
  var WorkbasketInputModel = /** @class */ (function () {
3888
- function WorkbasketInputModel(label, order, field, metadata, display_context_parameter) {
3889
- this.label = label;
3890
- this.order = order;
3891
- this.field = field;
3892
- this.metadata = metadata;
3893
- this.display_context_parameter = display_context_parameter;
3888
+ function WorkbasketInputModel() {
3894
3889
  }
3895
3890
  return WorkbasketInputModel;
3896
3891
  }());
@@ -3938,9 +3933,9 @@
3938
3933
  });
3939
3934
  return valueMap;
3940
3935
  };
3941
- FieldsUtils.getType = function (elem) {
3942
- return Object.prototype.toString.call(elem).slice(8, -1);
3943
- };
3936
+ // public static getType(elem: any): string {
3937
+ // return Object.prototype.toString.call(elem).slice(8, -1);
3938
+ // }
3944
3939
  FieldsUtils.isObject = function (elem) {
3945
3940
  return typeof elem === 'object' && elem !== null;
3946
3941
  };
@@ -4449,6 +4444,7 @@
4449
4444
  var elements = (result[field.id] || field.value);
4450
4445
  if (elements) {
4451
4446
  elements.forEach(function (elem) {
4447
+ // tslint:disable-next-line:switch-default
4452
4448
  switch (field.field_type.collection_field_type.type) {
4453
4449
  case 'MoneyGBP': {
4454
4450
  elem.value = FieldsUtils.getMoneyGBP(elem.value);
@@ -4498,7 +4494,6 @@
4498
4494
  if (!condition) {
4499
4495
  return null;
4500
4496
  }
4501
- ;
4502
4497
  condition = condition.replace(/CONTAINS/g, ' CONTAINS');
4503
4498
  return peg.parse(condition.trim(), {});
4504
4499
  };
@@ -4512,14 +4507,12 @@
4512
4507
  if (!conditions || conditions.length === 0) {
4513
4508
  return true;
4514
4509
  }
4515
- ;
4516
4510
  var validJoinComparators = ['AND', 'OR'];
4517
- var result = conditions.reduce(function (accumulator, condition, index) {
4511
+ return conditions.reduce(function (accumulator, condition, index) {
4518
4512
  var isJoinComparator = function (comparator) { return (typeof comparator === 'string' && validJoinComparators.indexOf(comparator) !== -1); };
4519
4513
  if (isJoinComparator(condition)) {
4520
4514
  return accumulator;
4521
4515
  }
4522
- ;
4523
4516
  var currentConditionResult = true;
4524
4517
  if (Array.isArray(condition)) {
4525
4518
  currentConditionResult = _this.evaluate(fields, condition);
@@ -4536,9 +4529,9 @@
4536
4529
  }
4537
4530
  return currentConditionResult;
4538
4531
  }, true);
4539
- return result;
4540
4532
  };
4541
4533
  ConditionParser.evaluateJoin = function (leftResult, comparator, rightResult) {
4534
+ // tslint:disable-next-line:switch-default
4542
4535
  switch (comparator) {
4543
4536
  case 'OR': return leftResult || rightResult;
4544
4537
  case 'AND': return leftResult && rightResult;
@@ -4628,8 +4621,7 @@
4628
4621
  }
4629
4622
  };
4630
4623
  ConditionParser.unquoted = function (str) {
4631
- var res = str.replace(/^"|"$/g, '');
4632
- return res;
4624
+ return str.replace(/^"|"$/g, '');
4633
4625
  };
4634
4626
  ConditionParser.findValueForComplexCondition = function (fields, head, tail, path) {
4635
4627
  if (!fields) {
@@ -4743,8 +4735,8 @@
4743
4735
  if (originalCondition.indexOf(condition.fieldReference) > -1) {
4744
4736
  if (this.processedList && this.processedList.indexOf(condition.fieldReference) === -1) {
4745
4737
  this.processedList.push(condition.fieldReference);
4746
- var regularExp = new RegExp('(\\b)' + condition.fieldReference + '(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)', 'g');
4747
- return originalCondition.replace(regularExp, pathPrefix + '.' + condition.fieldReference);
4738
+ var regularExp = new RegExp("(\\b)" + condition.fieldReference + "(?=[^\"]*(?:\"[^\"]*\"[^\"]*)*$)(\\b)", 'g');
4739
+ return originalCondition.replace(regularExp, pathPrefix + "." + condition.fieldReference);
4748
4740
  }
4749
4741
  else {
4750
4742
  return originalCondition;
@@ -4823,6 +4815,7 @@
4823
4815
  }
4824
4816
  // Consider what type of field this is.
4825
4817
  var ft = caseField.field_type;
4818
+ // tslint:disable-next-line:switch-default
4826
4819
  switch (ft.type) {
4827
4820
  case 'Collection':
4828
4821
  if (ft.collection_field_type.type === 'Complex' && ft.collection_field_type.complex_fields) {
@@ -5313,14 +5306,14 @@
5313
5306
  var formFields = form.getRawValue();
5314
5307
  var currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
5315
5308
  currentPage.wizard_page_fields.forEach(function (wpf) {
5316
- var case_field = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5317
- if (_this.hasShowConditionField(case_field, formFields)) {
5318
- var condition = new ShowCondition(case_field.show_condition);
5319
- if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(case_field))) {
5320
- _this.resetField(form, case_field);
5309
+ var caseField = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5310
+ if (_this.hasShowConditionField(caseField, formFields)) {
5311
+ var condition = new ShowCondition(caseField.show_condition);
5312
+ if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(caseField))) {
5313
+ _this.resetField(form, caseField);
5321
5314
  }
5322
5315
  }
5323
- _this.retainHiddenValueByFieldType(case_field, form);
5316
+ _this.retainHiddenValueByFieldType(caseField, form);
5324
5317
  });
5325
5318
  };
5326
5319
  FieldsPurger.prototype.retainHiddenValueByFieldType = function (field, form) {
@@ -5351,13 +5344,13 @@
5351
5344
  FieldsPurger.prototype.hasShowConditionPage = function (wizardPage, formFields) {
5352
5345
  return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
5353
5346
  };
5354
- FieldsPurger.prototype.hasShowConditionField = function (case_field, formFields) {
5355
- return case_field.show_condition && formFields.data[this.getShowConditionKey(case_field.show_condition)];
5347
+ FieldsPurger.prototype.hasShowConditionField = function (caseField, formFields) {
5348
+ return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
5356
5349
  };
5357
- FieldsPurger.prototype.getShowConditionKey = function (show_condition) {
5350
+ FieldsPurger.prototype.getShowConditionKey = function (showCondition) {
5358
5351
  // Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
5359
5352
  // Also need to allow for conditions specified using the "CONTAINS" keyword
5360
- return show_condition.split(/!=|=|CONTAINS/)[0];
5353
+ return showCondition.split(/!=|=|CONTAINS/)[0];
5361
5354
  };
5362
5355
  FieldsPurger.prototype.resetField = function (form, field) {
5363
5356
  var e_1, _a;
@@ -5453,8 +5446,8 @@
5453
5446
  FieldsPurger.prototype.resetPage = function (form, wizardPage) {
5454
5447
  var _this = this;
5455
5448
  wizardPage.wizard_page_fields.forEach(function (wpf) {
5456
- var case_field = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5457
- _this.resetField(form, case_field);
5449
+ var caseField = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5450
+ _this.resetField(form, caseField);
5458
5451
  });
5459
5452
  };
5460
5453
  FieldsPurger.prototype.getType = function (elem) {
@@ -5464,8 +5457,8 @@
5464
5457
  return this.getType(elem) === 'Object';
5465
5458
  };
5466
5459
  // TODO: call isReadOnly on CaseFields once we make it available
5467
- FieldsPurger.prototype.isReadonly = function (case_field) {
5468
- return case_field.display_context.toUpperCase() === 'READONLY';
5460
+ FieldsPurger.prototype.isReadonly = function (caseField) {
5461
+ return caseField.display_context.toUpperCase() === 'READONLY';
5469
5462
  };
5470
5463
  /**
5471
5464
  * Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
@@ -5652,7 +5645,11 @@
5652
5645
  return;
5653
5646
  }
5654
5647
  caseFields.forEach(function (caseField) {
5648
+ // tslint:disable-next-line:switch-default
5655
5649
  switch (caseField.field_type.type) {
5650
+ case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5651
+ _this.convertArrayToDynamicListOutput(caseField, data);
5652
+ break;
5656
5653
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
5657
5654
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
5658
5655
  _this.convertStringToDynamicListOutput(caseField, data);
@@ -5670,6 +5667,17 @@
5670
5667
  }
5671
5668
  });
5672
5669
  };
5670
+ FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
5671
+ var values = data[field.id];
5672
+ if (Array.isArray(values)) {
5673
+ var listItems = this.getListItems(field);
5674
+ var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
5675
+ data[field.id] = {
5676
+ value: matches,
5677
+ list_items: listItems
5678
+ };
5679
+ }
5680
+ };
5673
5681
  FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
5674
5682
  var stringValue = data[field.id];
5675
5683
  if (typeof stringValue === 'string') {
@@ -5700,6 +5708,7 @@
5700
5708
  FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
5701
5709
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
5702
5710
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
5711
+ FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
5703
5712
  FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
5704
5713
  FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
5705
5714
  (function () {
@@ -6345,7 +6354,6 @@
6345
6354
  });
6346
6355
  }
6347
6356
  }
6348
- ;
6349
6357
  });
6350
6358
  }
6351
6359
  };
@@ -6784,7 +6792,7 @@
6784
6792
  return addressModel;
6785
6793
  };
6786
6794
  AddressParser.prototype.parseAddressLine1 = function (classification, address) {
6787
- var addressLine = '';
6795
+ var addressLine;
6788
6796
  if (classification === AddressType.RD06) {
6789
6797
  addressLine =
6790
6798
  address.SUB_BUILDING_NAME + " " + address.ORGANISATION_NAME + " " + address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER;
@@ -6797,7 +6805,7 @@
6797
6805
  return this.removeNonAddressValues(addressLine);
6798
6806
  };
6799
6807
  AddressParser.prototype.parseAddressLine2 = function (classification, address) {
6800
- var addressLine = '';
6808
+ var addressLine;
6801
6809
  if (classification === AddressType.RD06) {
6802
6810
  addressLine = address.BUILDING_NAME + " ";
6803
6811
  }
@@ -6808,7 +6816,7 @@
6808
6816
  return this.removeNonAddressValues(addressLine);
6809
6817
  };
6810
6818
  AddressParser.prototype.parseAddressLine3 = function (classification, address) {
6811
- var addressLine = '';
6819
+ var addressLine;
6812
6820
  if (classification === AddressType.RD06) {
6813
6821
  addressLine =
6814
6822
  address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
@@ -6836,7 +6844,7 @@
6836
6844
  return value.replace(new RegExp('^,', 'gi'), '');
6837
6845
  };
6838
6846
  AddressParser.prototype.prefixWithCommaIfPresent = function (value) {
6839
- return value ? ', ' + value : value;
6847
+ return value ? ", " + value : value;
6840
6848
  };
6841
6849
  return AddressParser;
6842
6850
  }());
@@ -7086,7 +7094,7 @@
7086
7094
  if (flagType) {
7087
7095
  url += "?flag-type=" + flagType;
7088
7096
  }
7089
- if (welshRequired != null) {
7097
+ if (typeof welshRequired === 'boolean') {
7090
7098
  // Check if flag-type has been added to the query string; if so, append welsh-required with '&'
7091
7099
  url.indexOf('?') > -1 ? url += '&' : url += '?';
7092
7100
  welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
@@ -7692,18 +7700,6 @@
7692
7700
  }], null, null);
7693
7701
  })();
7694
7702
 
7695
- var HasLoadingState = /** @class */ (function () {
7696
- function HasLoadingState() {
7697
- }
7698
- Object.defineProperty(HasLoadingState.prototype, "isLoading", {
7699
- get: function () {
7700
- return;
7701
- },
7702
- enumerable: false,
7703
- configurable: true
7704
- });
7705
- return HasLoadingState;
7706
- }());
7707
7703
  var LoadingService = /** @class */ (function () {
7708
7704
  function LoadingService() {
7709
7705
  this.registered = new Map();
@@ -7728,7 +7724,7 @@
7728
7724
  };
7729
7725
  LoadingService.prototype.generateToken = function () {
7730
7726
  var timestamp = window.performance.now();
7731
- return 'toolkit-loading-' + timestamp; // format: [source-library]-[unique incrementing number]
7727
+ return "toolkit-loading-" + timestamp; // format: [source-library]-[unique incrementing number]
7732
7728
  };
7733
7729
  return LoadingService;
7734
7730
  }());
@@ -7749,10 +7745,7 @@
7749
7745
  }
7750
7746
  SearchService.prototype.search = function (jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
7751
7747
  var _this = this;
7752
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid"
7753
- + ("/jurisdictions/" + jurisdictionId)
7754
- + ("/case-types/" + caseTypeId)
7755
- + "/cases";
7748
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases";
7756
7749
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7757
7750
  var loadingToken = this.loadingService.register();
7758
7751
  return this.httpService
@@ -7761,15 +7754,14 @@
7761
7754
  };
7762
7755
  SearchService.prototype.searchCasesByIds = function (caseTypeId, filter, view, sort) {
7763
7756
  var _this = this;
7764
- var url = this.appConfig.getCaseDataUrl() +
7765
- ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7757
+ var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
7766
7758
  var body = Object.assign(Object.assign({ sort: sort }, filter), { size: this.appConfig.getPaginationPageSize() });
7767
7759
  var loadingToken = this.loadingService.register();
7768
7760
  return this.httpService.post(url, body).pipe(operators.map(function (response) { return response; }), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
7769
7761
  };
7770
7762
  SearchService.prototype.searchCases = function (caseTypeId, metaCriteria, caseCriteria, view, sort) {
7771
7763
  var _this = this;
7772
- var url = this.appConfig.getCaseDataUrl() + ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7764
+ var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
7773
7765
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7774
7766
  var body = {
7775
7767
  sort: sort,
@@ -7814,9 +7806,8 @@
7814
7806
  return SearchService;
7815
7807
  }());
7816
7808
  SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
7817
- SearchService.VIEW_SEARCH = 'SEARCH';
7809
+ // public static readonly VIEW_SEARCH = 'SEARCH';
7818
7810
  SearchService.VIEW_WORKBASKET = 'WORKBASKET';
7819
- SearchService.FIELD_PREFIX = 'case.';
7820
7811
  SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(RequestOptionsBuilder), i0__namespace.ɵɵinject(LoadingService)); };
7821
7812
  SearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
7822
7813
  (function () {
@@ -7946,17 +7937,12 @@
7946
7937
  this.appConfig = appConfig;
7947
7938
  }
7948
7939
  DefinitionsService.prototype.getCaseTypes = function (jurisdictionId, access) {
7949
- var url = this.appConfig.getApiUrl()
7950
- + "/caseworkers/:uid"
7951
- + ("/jurisdictions/" + jurisdictionId)
7952
- + ("/case-types?access=" + access);
7940
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types?access=" + access;
7953
7941
  return this.http
7954
7942
  .get(url).pipe(operators.map(function (response) { return response; }));
7955
7943
  };
7956
7944
  DefinitionsService.prototype.getJurisdictions = function (access) {
7957
- var url = this.appConfig.getApiUrl()
7958
- + "/caseworkers/:uid"
7959
- + ("/jurisdictions?access=" + access);
7945
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions?access=" + access;
7960
7946
  return this.http
7961
7947
  .get(url)
7962
7948
  .pipe(operators.map(function (response) { return response; }));
@@ -8038,8 +8024,8 @@
8038
8024
  compare: function (a, b) {
8039
8025
  var fieldA = a.case_fields[fieldId];
8040
8026
  var fieldB = b.case_fields[fieldId];
8041
- fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.toLowerCase();
8042
- fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.toLowerCase();
8027
+ fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
8028
+ fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
8043
8029
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8044
8030
  }
8045
8031
  };
@@ -8049,8 +8035,8 @@
8049
8035
  compare: function (a, b) {
8050
8036
  var fieldA = a.case_fields[fieldId];
8051
8037
  var fieldB = b.case_fields[fieldId];
8052
- fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.join().toLowerCase();
8053
- fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.join().toLowerCase();
8038
+ fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
8039
+ fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
8054
8040
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8055
8041
  }
8056
8042
  };
@@ -8308,31 +8294,31 @@
8308
8294
  };
8309
8295
  WizardPageFieldToCaseFieldMapper.prototype.processComplexFieldOverride = function (override, caseField, caseFields) {
8310
8296
  var caseFieldIds = override.complex_field_element_id.split('.');
8311
- var case_field_leaf;
8297
+ var caseFieldLeaf;
8312
8298
  var children = this.getCaseFieldChildren(caseField);
8313
8299
  if (children.length > 0) {
8314
8300
  var _a = __read(caseFieldIds), _ = _a[0], tail = _a.slice(1);
8315
- case_field_leaf = this.getCaseFieldLeaf(tail, children);
8301
+ caseFieldLeaf = this.getCaseFieldLeaf(tail, children);
8316
8302
  }
8317
8303
  else {
8318
- case_field_leaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
8304
+ caseFieldLeaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
8319
8305
  }
8320
8306
  if (override.display_context !== 'HIDDEN') {
8321
- case_field_leaf.hidden = false;
8322
- case_field_leaf.display_context = override.display_context;
8307
+ caseFieldLeaf.hidden = false;
8308
+ caseFieldLeaf.display_context = override.display_context;
8323
8309
  if (override.label && override.label.length > 0) {
8324
- case_field_leaf.label = override.label;
8310
+ caseFieldLeaf.label = override.label;
8325
8311
  }
8326
8312
  if (override.hint_text && override.hint_text.length > 0) {
8327
- case_field_leaf.hint_text = override.hint_text;
8313
+ caseFieldLeaf.hint_text = override.hint_text;
8328
8314
  }
8329
8315
  if (override.show_condition && override.show_condition.length > 0) {
8330
- case_field_leaf.show_condition = override.show_condition;
8316
+ caseFieldLeaf.show_condition = override.show_condition;
8331
8317
  }
8332
8318
  }
8333
8319
  else {
8334
- case_field_leaf.hidden = true;
8335
- case_field_leaf.display_context = override.display_context;
8320
+ caseFieldLeaf.hidden = true;
8321
+ caseFieldLeaf.display_context = override.display_context;
8336
8322
  }
8337
8323
  };
8338
8324
  WizardPageFieldToCaseFieldMapper.prototype.fixShowConditionPath = function (caseField, pathPrefix) {
@@ -8346,7 +8332,7 @@
8346
8332
  });
8347
8333
  };
8348
8334
  WizardPageFieldToCaseFieldMapper.prototype.preparePathPrefix = function (pathPrefix, caseField) {
8349
- return pathPrefix.length === 0 ? caseField : pathPrefix + '.' + caseField;
8335
+ return pathPrefix.length === 0 ? caseField : pathPrefix + "." + caseField;
8350
8336
  };
8351
8337
  WizardPageFieldToCaseFieldMapper.prototype.getCaseFieldLeaf = function (caseFieldId, caseFields) {
8352
8338
  var _a = __read(caseFieldId), head = _a[0], tail = _a.slice(1);
@@ -8403,223 +8389,13 @@
8403
8389
  }], null, null);
8404
8390
  })();
8405
8391
 
8406
- var MULTIPLE_TASKS_FOUND = 'More than one task found!';
8407
- var WorkAllocationService = /** @class */ (function () {
8408
- function WorkAllocationService(http, appConfig, errorService, alertService, sessionStorageService) {
8409
- this.http = http;
8410
- this.appConfig = appConfig;
8411
- this.errorService = errorService;
8412
- this.alertService = alertService;
8413
- this.sessionStorageService = sessionStorageService;
8414
- // Check to see if work allocation is enabled
8415
- }
8416
- /**
8417
- * Call the API to get tasks matching the search criteria.
8418
- * @param searchRequest The search parameters that specify which tasks to match.
8419
- */
8420
- WorkAllocationService.prototype.searchTasks = function (searchRequest) {
8421
- var _this = this;
8422
- // Do not need to check if WA enabled as parent method will do that
8423
- var url = this.appConfig.getWorkAllocationApiUrl() + "/searchForCompletable";
8424
- return this.http
8425
- .post(url, { searchRequest: searchRequest }, null, false)
8426
- .pipe(operators.map(function (response) { return response; }), operators.catchError(function (error) {
8427
- _this.errorService.setError(error);
8428
- // explicitly eat away 401 error and 400 error
8429
- if (error && error.status && (error.status === 401 || error.status === 400)) {
8430
- // do nothing
8431
- console.log('error status 401 or 400', error);
8432
- }
8433
- else {
8434
- return rxjs.throwError(error);
8435
- }
8436
- }));
8437
- };
8438
- WorkAllocationService.prototype.isWAEnabled = function (jurisdiction, caseType) {
8439
- this.features = this.appConfig.getWAServiceConfig();
8440
- var enabled = false;
8441
- if (!jurisdiction || !caseType) {
8442
- var caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
8443
- jurisdiction = caseInfo.jurisdiction;
8444
- caseType = caseInfo.caseType;
8445
- }
8446
- if (!this.features || !this.features.configurations) {
8447
- return false;
8448
- }
8449
- this.features.configurations.forEach(function (serviceConfig) {
8450
- if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
8451
- enabled = true;
8452
- }
8453
- });
8454
- return enabled;
8455
- };
8456
- /**
8457
- * Call the API to assign a task.
8458
- * @param taskId specifies which task should be assigned.
8459
- * @param userId specifies the user the task should be assigned to.
8460
- */
8461
- WorkAllocationService.prototype.assignTask = function (taskId, userId) {
8462
- var _this = this;
8463
- if (!this.isWAEnabled()) {
8464
- return rxjs.of(null);
8465
- }
8466
- var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/assign";
8467
- return this.http
8468
- .post(url, { userId: userId })
8469
- .pipe(operators.catchError(function (error) {
8470
- _this.errorService.setError(error);
8471
- return rxjs.throwError(error);
8472
- }));
8473
- };
8474
- /**
8475
- * Call the API to complete a task.
8476
- * @param taskId specifies which task should be completed.
8477
- */
8478
- WorkAllocationService.prototype.completeTask = function (taskId) {
8479
- var _this = this;
8480
- if (!this.isWAEnabled()) {
8481
- return rxjs.of(null);
8482
- }
8483
- var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/complete";
8484
- return this.http
8485
- .post(url, {})
8486
- .pipe(operators.catchError(function (error) {
8487
- _this.errorService.setError(error);
8488
- // this will subscribe to get the user details and decide whether to display an error message
8489
- _this.http.get(_this.appConfig.getUserInfoApiUrl()).pipe(operators.map(function (response) { return response; })).subscribe(function (response) {
8490
- _this.handleTaskCompletionError(response);
8491
- });
8492
- return rxjs.throwError(error);
8493
- }));
8494
- };
8495
- /**
8496
- * Call the API to assign and complete a task.
8497
- * @param taskId specifies which task should be completed.
8498
- */
8499
- WorkAllocationService.prototype.assignAndCompleteTask = function (taskId) {
8500
- var _this = this;
8501
- if (!this.isWAEnabled()) {
8502
- return rxjs.of(null);
8503
- }
8504
- var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/complete";
8505
- return this.http
8506
- .post(url, {
8507
- completion_options: {
8508
- assign_and_complete: true
8509
- }
8510
- })
8511
- .pipe(operators.catchError(function (error) {
8512
- _this.errorService.setError(error);
8513
- // this will subscribe to get the user details and decide whether to display an error message
8514
- _this.http.get(_this.appConfig.getUserInfoApiUrl()).pipe(operators.map(function (response) { return response; })).subscribe(function (response) {
8515
- _this.handleTaskCompletionError(response);
8516
- });
8517
- return rxjs.throwError(error);
8518
- }));
8519
- };
8520
- /**
8521
- * Handles the response from the observable to get the user details when task is completed.
8522
- * @param response is the response given from the observable which contains the user detaild.
8523
- */
8524
- WorkAllocationService.prototype.handleTaskCompletionError = function (response) {
8525
- var userDetails = response;
8526
- if (this.userIsCaseworker(userDetails.userInfo.roles)) {
8527
- // when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
8528
- this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
8529
- this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
8530
- }
8531
- };
8532
- /**
8533
- * Returns true if the user's role is equivalent to a caseworker.
8534
- * @param roles is the list of roles found from the current user.
8535
- */
8536
- WorkAllocationService.prototype.userIsCaseworker = function (roles) {
8537
- var lowerCaseRoles = roles.map(function (role) { return role.toLowerCase(); });
8538
- // When/if lib & target permanently change to es2016, replace indexOf with includes
8539
- return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
8540
- || (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
8541
- };
8542
- /**
8543
- * Look for open tasks for a case and event combination. There are 5 possible scenarios:
8544
- * 1. No tasks found => Success.
8545
- * 2. One task found => Mark as done => Success.
8546
- * 3. One task found => Mark as done throws error => Failure.
8547
- * 4. More than one task found => Failure.
8548
- * 5. Search call throws an error => Failure.
8549
- * @param ccdId The ID of the case to find tasks for.
8550
- * @param eventId The ID of the event to find tasks for.
8551
- */
8552
- WorkAllocationService.prototype.completeAppropriateTask = function (ccdId, eventId, jurisdiction, caseTypeId) {
8553
- var _this = this;
8554
- if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
8555
- return rxjs.of(null);
8556
- }
8557
- var taskSearchParameter = {
8558
- ccdId: ccdId,
8559
- eventId: eventId,
8560
- jurisdiction: jurisdiction,
8561
- caseTypeId: caseTypeId
8562
- };
8563
- return this.searchTasks(taskSearchParameter)
8564
- .pipe(operators.map(function (response) {
8565
- var tasks = response.tasks;
8566
- if (tasks && tasks.length > 0) {
8567
- if (tasks.length === 1) {
8568
- _this.completeTask(tasks[0].id).subscribe();
8569
- }
8570
- else {
8571
- // This is a problem. Throw an appropriate error.
8572
- throw new Error(MULTIPLE_TASKS_FOUND);
8573
- }
8574
- }
8575
- return true; // All good. Nothing to see here.
8576
- }), operators.catchError(function (error) {
8577
- // Simply rethrow it.
8578
- return rxjs.throwError(error);
8579
- }));
8580
- };
8581
- /**
8582
- * Return tasks for case and event.
8583
- */
8584
- WorkAllocationService.prototype.getTasksByCaseIdAndEventId = function (eventId, caseId, caseType, jurisdiction) {
8585
- var defaultPayload = {
8586
- task_required_for_event: false,
8587
- tasks: []
8588
- };
8589
- if (!this.isWAEnabled()) {
8590
- return rxjs.of(defaultPayload);
8591
- }
8592
- return this.http.get(this.appConfig.getWorkAllocationApiUrl() + "/case/tasks/" + caseId + "/event/" + eventId + "/caseType/" + caseType + "/jurisdiction/" + jurisdiction);
8593
- };
8594
- /**
8595
- * Call the API to get a task
8596
- */
8597
- WorkAllocationService.prototype.getTask = function (taskId) {
8598
- if (!this.isWAEnabled()) {
8599
- return rxjs.of({ task: null });
8600
- }
8601
- return this.http.get(this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId);
8602
- };
8603
- return WorkAllocationService;
8604
- }());
8605
- WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
8606
- WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
8607
- WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService), i0__namespace.ɵɵinject(AlertService), i0__namespace.ɵɵinject(SessionStorageService)); };
8608
- WorkAllocationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
8609
- (function () {
8610
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkAllocationService, [{
8611
- type: i0.Injectable
8612
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null);
8613
- })();
8614
-
8615
8392
  var CasesService = /** @class */ (function () {
8616
- function CasesService(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, workAllocationService, loadingService, sessionStorageService) {
8393
+ function CasesService(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService) {
8617
8394
  this.http = http;
8618
8395
  this.appConfig = appConfig;
8619
8396
  this.orderService = orderService;
8620
8397
  this.errorService = errorService;
8621
8398
  this.wizardPageFieldToCaseFieldMapper = wizardPageFieldToCaseFieldMapper;
8622
- this.workAllocationService = workAllocationService;
8623
8399
  this.loadingService = loadingService;
8624
8400
  this.sessionStorageService = sessionStorageService;
8625
8401
  this.get = this.getCaseView;
@@ -8638,11 +8414,7 @@
8638
8414
  };
8639
8415
  CasesService.prototype.getCaseView = function (jurisdictionId, caseTypeId, caseId) {
8640
8416
  var _this = this;
8641
- var url = this.appConfig.getApiUrl()
8642
- + "/caseworkers/:uid"
8643
- + ("/jurisdictions/" + jurisdictionId)
8644
- + ("/case-types/" + caseTypeId)
8645
- + ("/cases/" + caseId);
8417
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases/" + caseId;
8646
8418
  var loadingToken = this.loadingService.register();
8647
8419
  return this.http
8648
8420
  .get(url)
@@ -8694,7 +8466,7 @@
8694
8466
  CasesService.prototype.createEvent = function (caseDetails, eventData) {
8695
8467
  var _this = this;
8696
8468
  var caseId = caseDetails.case_id;
8697
- var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
8469
+ var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/events";
8698
8470
  var headers = new i1$2.HttpHeaders()
8699
8471
  .set('experimental', 'true')
8700
8472
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
@@ -8708,9 +8480,8 @@
8708
8480
  };
8709
8481
  CasesService.prototype.validateCase = function (ctid, eventData, pageId) {
8710
8482
  var _this = this;
8711
- var pageIdString = pageId ? '?pageId=' + pageId : '';
8712
- var url = this.appConfig.getCaseDataUrl()
8713
- + ("/case-types/" + ctid + "/validate" + pageIdString);
8483
+ var pageIdString = pageId ? "?pageId=" + pageId : '';
8484
+ var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/validate" + pageIdString;
8714
8485
  var headers = new i1$2.HttpHeaders()
8715
8486
  .set('experimental', 'true')
8716
8487
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
@@ -8728,8 +8499,7 @@
8728
8499
  if (eventData.ignore_warning) {
8729
8500
  ignoreWarning = 'true';
8730
8501
  }
8731
- var url = this.appConfig.getCaseDataUrl()
8732
- + ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
8502
+ var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning;
8733
8503
  var headers = new i1$2.HttpHeaders()
8734
8504
  .set('experimental', 'true')
8735
8505
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
@@ -8743,9 +8513,7 @@
8743
8513
  };
8744
8514
  CasesService.prototype.getPrintDocuments = function (caseId) {
8745
8515
  var _this = this;
8746
- var url = this.appConfig.getCaseDataUrl()
8747
- + ("/cases/" + caseId)
8748
- + "/documents";
8516
+ var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/documents";
8749
8517
  var headers = new i1$2.HttpHeaders()
8750
8518
  .set('experimental', 'true')
8751
8519
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
@@ -8854,12 +8622,12 @@
8854
8622
  CasesService.V2_MEDIATYPE_CREATE_EVENT = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-event.v2+json;charset=UTF-8';
8855
8623
  CasesService.V2_MEDIATYPE_CREATE_CASE = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-case.v2+json;charset=UTF-8';
8856
8624
  CasesService.PUI_CASE_MANAGER = 'pui-case-manager';
8857
- CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(OrderService), i0__namespace.ɵɵinject(HttpErrorService), i0__namespace.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0__namespace.ɵɵinject(WorkAllocationService), i0__namespace.ɵɵinject(LoadingService), i0__namespace.ɵɵinject(SessionStorageService)); };
8625
+ CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(OrderService), i0__namespace.ɵɵinject(HttpErrorService), i0__namespace.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0__namespace.ɵɵinject(LoadingService), i0__namespace.ɵɵinject(SessionStorageService)); };
8858
8626
  CasesService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CasesService, factory: CasesService.ɵfac });
8859
8627
  (function () {
8860
8628
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CasesService, [{
8861
8629
  type: i0.Injectable
8862
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: WorkAllocationService }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
8630
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
8863
8631
  })();
8864
8632
 
8865
8633
  var EventTriggerService = /** @class */ (function () {
@@ -9481,7 +9249,7 @@
9481
9249
  PageValidationService.prototype.isHidden = function (caseField, editForm, path) {
9482
9250
  var formFields = editForm.getRawValue();
9483
9251
  var condition = ShowCondition.getInstance(caseField.show_condition);
9484
- if (path && path.indexOf('_' + caseField.id + '_') === -1) {
9252
+ if (path && path.indexOf("_" + caseField.id + "_") === -1) {
9485
9253
  path = "" + path + caseField.id;
9486
9254
  }
9487
9255
  return !condition.match(formFields.data, path);
@@ -9513,6 +9281,215 @@
9513
9281
  }], function () { return [{ type: CaseFieldService }]; }, null);
9514
9282
  })();
9515
9283
 
9284
+ var MULTIPLE_TASKS_FOUND = 'More than one task found!';
9285
+ var WorkAllocationService = /** @class */ (function () {
9286
+ function WorkAllocationService(http, appConfig, errorService, alertService, sessionStorageService) {
9287
+ this.http = http;
9288
+ this.appConfig = appConfig;
9289
+ this.errorService = errorService;
9290
+ this.alertService = alertService;
9291
+ this.sessionStorageService = sessionStorageService;
9292
+ // Check to see if work allocation is enabled
9293
+ }
9294
+ /**
9295
+ * Call the API to get tasks matching the search criteria.
9296
+ * @param searchRequest The search parameters that specify which tasks to match.
9297
+ */
9298
+ WorkAllocationService.prototype.searchTasks = function (searchRequest) {
9299
+ var _this = this;
9300
+ // Do not need to check if WA enabled as parent method will do that
9301
+ var url = this.appConfig.getWorkAllocationApiUrl() + "/searchForCompletable";
9302
+ return this.http
9303
+ .post(url, { searchRequest: searchRequest }, null, false)
9304
+ .pipe(operators.map(function (response) { return response; }), operators.catchError(function (error) {
9305
+ _this.errorService.setError(error);
9306
+ // explicitly eat away 401 error and 400 error
9307
+ if (error && error.status && (error.status === 401 || error.status === 400)) {
9308
+ // do nothing
9309
+ console.log('error status 401 or 400', error);
9310
+ }
9311
+ else {
9312
+ return rxjs.throwError(error);
9313
+ }
9314
+ }));
9315
+ };
9316
+ WorkAllocationService.prototype.isWAEnabled = function (jurisdiction, caseType) {
9317
+ this.features = this.appConfig.getWAServiceConfig();
9318
+ var enabled = false;
9319
+ if (!jurisdiction || !caseType) {
9320
+ var caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
9321
+ jurisdiction = caseInfo.jurisdiction;
9322
+ caseType = caseInfo.caseType;
9323
+ }
9324
+ if (!this.features || !this.features.configurations) {
9325
+ return false;
9326
+ }
9327
+ this.features.configurations.forEach(function (serviceConfig) {
9328
+ if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
9329
+ enabled = true;
9330
+ }
9331
+ });
9332
+ return enabled;
9333
+ };
9334
+ /**
9335
+ * Call the API to assign a task.
9336
+ * @param taskId specifies which task should be assigned.
9337
+ * @param userId specifies the user the task should be assigned to.
9338
+ */
9339
+ WorkAllocationService.prototype.assignTask = function (taskId, userId) {
9340
+ var _this = this;
9341
+ if (!this.isWAEnabled()) {
9342
+ return rxjs.of(null);
9343
+ }
9344
+ var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/assign";
9345
+ return this.http
9346
+ .post(url, { userId: userId })
9347
+ .pipe(operators.catchError(function (error) {
9348
+ _this.errorService.setError(error);
9349
+ return rxjs.throwError(error);
9350
+ }));
9351
+ };
9352
+ /**
9353
+ * Call the API to complete a task.
9354
+ * @param taskId specifies which task should be completed.
9355
+ */
9356
+ WorkAllocationService.prototype.completeTask = function (taskId) {
9357
+ var _this = this;
9358
+ if (!this.isWAEnabled()) {
9359
+ return rxjs.of(null);
9360
+ }
9361
+ var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/complete";
9362
+ return this.http
9363
+ .post(url, {})
9364
+ .pipe(operators.catchError(function (error) {
9365
+ _this.errorService.setError(error);
9366
+ // this will subscribe to get the user details and decide whether to display an error message
9367
+ _this.http.get(_this.appConfig.getUserInfoApiUrl()).pipe(operators.map(function (response) { return response; })).subscribe(function (response) {
9368
+ _this.handleTaskCompletionError(response);
9369
+ });
9370
+ return rxjs.throwError(error);
9371
+ }));
9372
+ };
9373
+ /**
9374
+ * Call the API to assign and complete a task.
9375
+ * @param taskId specifies which task should be completed.
9376
+ */
9377
+ WorkAllocationService.prototype.assignAndCompleteTask = function (taskId) {
9378
+ var _this = this;
9379
+ if (!this.isWAEnabled()) {
9380
+ return rxjs.of(null);
9381
+ }
9382
+ var url = this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId + "/complete";
9383
+ return this.http
9384
+ .post(url, {
9385
+ completion_options: {
9386
+ assign_and_complete: true
9387
+ }
9388
+ })
9389
+ .pipe(operators.catchError(function (error) {
9390
+ _this.errorService.setError(error);
9391
+ // this will subscribe to get the user details and decide whether to display an error message
9392
+ _this.http.get(_this.appConfig.getUserInfoApiUrl()).pipe(operators.map(function (response) { return response; })).subscribe(function (response) {
9393
+ _this.handleTaskCompletionError(response);
9394
+ });
9395
+ return rxjs.throwError(error);
9396
+ }));
9397
+ };
9398
+ /**
9399
+ * Handles the response from the observable to get the user details when task is completed.
9400
+ * @param response is the response given from the observable which contains the user detaild.
9401
+ */
9402
+ WorkAllocationService.prototype.handleTaskCompletionError = function (response) {
9403
+ var userDetails = response;
9404
+ if (this.userIsCaseworker(userDetails.userInfo.roles)) {
9405
+ // when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
9406
+ this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
9407
+ this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
9408
+ }
9409
+ };
9410
+ /**
9411
+ * Returns true if the user's role is equivalent to a caseworker.
9412
+ * @param roles is the list of roles found from the current user.
9413
+ */
9414
+ WorkAllocationService.prototype.userIsCaseworker = function (roles) {
9415
+ var lowerCaseRoles = roles.map(function (role) { return role.toLowerCase(); });
9416
+ // When/if lib & target permanently change to es2016, replace indexOf with includes
9417
+ return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
9418
+ || (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
9419
+ };
9420
+ /**
9421
+ * Look for open tasks for a case and event combination. There are 5 possible scenarios:
9422
+ * 1. No tasks found => Success.
9423
+ * 2. One task found => Mark as done => Success.
9424
+ * 3. One task found => Mark as done throws error => Failure.
9425
+ * 4. More than one task found => Failure.
9426
+ * 5. Search call throws an error => Failure.
9427
+ * @param ccdId The ID of the case to find tasks for.
9428
+ * @param eventId The ID of the event to find tasks for.
9429
+ */
9430
+ WorkAllocationService.prototype.completeAppropriateTask = function (ccdId, eventId, jurisdiction, caseTypeId) {
9431
+ var _this = this;
9432
+ if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
9433
+ return rxjs.of(null);
9434
+ }
9435
+ var taskSearchParameter = {
9436
+ ccdId: ccdId,
9437
+ eventId: eventId,
9438
+ jurisdiction: jurisdiction,
9439
+ caseTypeId: caseTypeId
9440
+ };
9441
+ return this.searchTasks(taskSearchParameter)
9442
+ .pipe(operators.map(function (response) {
9443
+ var tasks = response.tasks;
9444
+ if (tasks && tasks.length > 0) {
9445
+ if (tasks.length === 1) {
9446
+ _this.completeTask(tasks[0].id).subscribe();
9447
+ }
9448
+ else {
9449
+ // This is a problem. Throw an appropriate error.
9450
+ throw new Error(MULTIPLE_TASKS_FOUND);
9451
+ }
9452
+ }
9453
+ return true; // All good. Nothing to see here.
9454
+ }), operators.catchError(function (error) {
9455
+ // Simply rethrow it.
9456
+ return rxjs.throwError(error);
9457
+ }));
9458
+ };
9459
+ /**
9460
+ * Return tasks for case and event.
9461
+ */
9462
+ WorkAllocationService.prototype.getTasksByCaseIdAndEventId = function (eventId, caseId, caseType, jurisdiction) {
9463
+ var defaultPayload = {
9464
+ task_required_for_event: false,
9465
+ tasks: []
9466
+ };
9467
+ if (!this.isWAEnabled()) {
9468
+ return rxjs.of(defaultPayload);
9469
+ }
9470
+ return this.http.get(this.appConfig.getWorkAllocationApiUrl() + "/case/tasks/" + caseId + "/event/" + eventId + "/caseType/" + caseType + "/jurisdiction/" + jurisdiction);
9471
+ };
9472
+ /**
9473
+ * Call the API to get a task
9474
+ */
9475
+ WorkAllocationService.prototype.getTask = function (taskId) {
9476
+ if (!this.isWAEnabled()) {
9477
+ return rxjs.of({ task: null });
9478
+ }
9479
+ return this.http.get(this.appConfig.getWorkAllocationApiUrl() + "/task/" + taskId);
9480
+ };
9481
+ return WorkAllocationService;
9482
+ }());
9483
+ WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
9484
+ WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
9485
+ WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService), i0__namespace.ɵɵinject(AlertService), i0__namespace.ɵɵinject(SessionStorageService)); };
9486
+ WorkAllocationService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
9487
+ (function () {
9488
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WorkAllocationService, [{
9489
+ type: i0.Injectable
9490
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null);
9491
+ })();
9492
+
9516
9493
  var CaseEditComponent = /** @class */ (function () {
9517
9494
  function CaseEditComponent(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
9518
9495
  this.fb = fb;
@@ -10451,7 +10428,7 @@
10451
10428
  var label = casefield.label || 'Field';
10452
10429
  var id_1 = casefield.id;
10453
10430
  if (fieldElement['component'] && fieldElement['component'].parent) {
10454
- if (fieldElement['component'].idPrefix.indexOf('_' + id_1 + '_') === -1) {
10431
+ if (fieldElement['component'].idPrefix.indexOf("_" + id_1 + "_") === -1) {
10455
10432
  id_1 = "" + fieldElement['component'].idPrefix + id_1;
10456
10433
  }
10457
10434
  else {
@@ -10592,8 +10569,8 @@
10592
10569
  }
10593
10570
  };
10594
10571
  CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
10595
- this.ignoreWarning = errorContext.ignore_warning;
10596
- this.triggerText = errorContext.trigger_text;
10572
+ this.ignoreWarning = errorContext.ignoreWarning;
10573
+ this.triggerText = errorContext.triggerText;
10597
10574
  };
10598
10575
  CaseEditPageComponent.prototype.next = function () {
10599
10576
  this.resetErrors();
@@ -10939,12 +10916,12 @@
10939
10916
  CallbackErrorsComponent.prototype.buildCallbackErrorsContext = function () {
10940
10917
  var errorContext = new CallbackErrorsContext();
10941
10918
  if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
10942
- errorContext.ignore_warning = true;
10943
- errorContext.trigger_text = this.triggerTextIgnore;
10919
+ errorContext.ignoreWarning = true;
10920
+ errorContext.triggerText = this.triggerTextIgnore;
10944
10921
  }
10945
10922
  else {
10946
- errorContext.ignore_warning = false;
10947
- errorContext.trigger_text = this.triggerTextContinue;
10923
+ errorContext.ignoreWarning = false;
10924
+ errorContext.triggerText = this.triggerTextContinue;
10948
10925
  }
10949
10926
  return errorContext;
10950
10927
  };
@@ -10989,7 +10966,7 @@
10989
10966
 
10990
10967
  var AddressOption = /** @class */ (function () {
10991
10968
  function AddressOption(addressModel, description) {
10992
- if (description == null) {
10969
+ if (description === null) {
10993
10970
  this.value = addressModel;
10994
10971
  this.description = this.getDescription();
10995
10972
  }
@@ -10998,13 +10975,10 @@
10998
10975
  }
10999
10976
  }
11000
10977
  AddressOption.prototype.getDescription = function () {
11001
- return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
11002
- + this.prefixWithCommaIfPresent(this.value.AddressLine2)
11003
- + this.prefixWithCommaIfPresent(this.value.AddressLine3)
11004
- + ', ' + this.value.PostTown);
10978
+ return this.removeInitialCommaIfPresent("" + (this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1) + this.prefixWithCommaIfPresent(this.value.AddressLine2) + this.prefixWithCommaIfPresent(this.value.AddressLine3) + ", " + this.value.PostTown);
11005
10979
  };
11006
10980
  AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
11007
- return value ? ', ' + value : value;
10981
+ return value ? ", " + value : value;
11008
10982
  };
11009
10983
  AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
11010
10984
  return value.replace(new RegExp('^,', 'gi'), '');
@@ -11012,7 +10986,7 @@
11012
10986
  return AddressOption;
11013
10987
  }());
11014
10988
 
11015
- var _c0$R = ["writeComplexFieldComponent"];
10989
+ var _c0$S = ["writeComplexFieldComponent"];
11016
10990
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11017
10991
  if (rf & 1) {
11018
10992
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11148,7 +11122,7 @@
11148
11122
  this.missingPostcode = false;
11149
11123
  var postcode_1 = this.postcode.value;
11150
11124
  this.caseField.value = null;
11151
- this.addressOptions = new Array();
11125
+ this.addressOptions = [];
11152
11126
  this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
11153
11127
  result.forEach(function (address) {
11154
11128
  _this.addressOptions.push(new AddressOption(address, null));
@@ -11191,7 +11165,7 @@
11191
11165
  var hasAddress = false;
11192
11166
  if (address) {
11193
11167
  Object.keys(address).forEach(function (key) {
11194
- if (address[key] != null) {
11168
+ if (address[key] !== null) {
11195
11169
  hasAddress = true;
11196
11170
  }
11197
11171
  });
@@ -11214,7 +11188,7 @@
11214
11188
  };
11215
11189
  WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
11216
11190
  return numberOfAddresses === 0 ? 'No address found'
11217
- : numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
11191
+ : "" + numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + "found";
11218
11192
  };
11219
11193
  WriteAddressFieldComponent.prototype.setFormValue = function () {
11220
11194
  if (this.writeComplexFieldComponent.complexGroup) {
@@ -11226,7 +11200,7 @@
11226
11200
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11227
11201
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11228
11202
  if (rf & 1) {
11229
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
11203
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
11230
11204
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11231
11205
  }
11232
11206
  if (rf & 2) {
@@ -11372,12 +11346,13 @@
11372
11346
  }
11373
11347
  }
11374
11348
  var CaseFileViewFieldComponent = /** @class */ (function () {
11375
- function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
11349
+ function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
11376
11350
  this.elementRef = elementRef;
11377
11351
  this.route = route;
11378
11352
  this.caseFileViewService = caseFileViewService;
11379
11353
  this.documentManagementService = documentManagementService;
11380
11354
  this.loadingService = loadingService;
11355
+ this.sessionStorageService = sessionStorageService;
11381
11356
  this.allowMoving = true;
11382
11357
  this.getCategoriesAndDocumentsError = false;
11383
11358
  }
@@ -11391,6 +11366,12 @@
11391
11366
  },
11392
11367
  error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
11393
11368
  });
11369
+ // EXUI-8000
11370
+ var userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
11371
+ // Get acls that intersects from acl roles and user roles
11372
+ var acls = this.caseField.acls.filter(function (acl) { return userInfo.roles.includes(acl.role); });
11373
+ // As there can be more than one intersecting role, if any acls are update: true
11374
+ this.allowMoving = acls.some(function (acl) { return acl.update; });
11394
11375
  };
11395
11376
  CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
11396
11377
  var slider = this.elementRef.nativeElement.querySelector('.slider');
@@ -11438,7 +11419,7 @@
11438
11419
  return CaseFileViewFieldComponent;
11439
11420
  }());
11440
11421
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
11441
- CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
11422
+ CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
11442
11423
  CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
11443
11424
  if (rf & 1) {
11444
11425
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
@@ -11458,92 +11439,7 @@
11458
11439
  templateUrl: './case-file-view-field.component.html',
11459
11440
  styleUrls: ['./case-file-view-field.component.scss'],
11460
11441
  }]
11461
- }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
11462
- })();
11463
-
11464
- function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
11465
- if (rf & 1) {
11466
- i0__namespace.ɵɵelementStart(0, "div", 2);
11467
- i0__namespace.ɵɵelementStart(1, "h1", 3);
11468
- i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11469
- i0__namespace.ɵɵelementEnd();
11470
- i0__namespace.ɵɵelementStart(3, "p", 4);
11471
- i0__namespace.ɵɵtext(4, "Try again later.");
11472
- i0__namespace.ɵɵelementEnd();
11473
- i0__namespace.ɵɵelementEnd();
11474
- }
11475
- }
11476
- function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
11477
- if (rf & 1) {
11478
- i0__namespace.ɵɵelementContainerStart(0);
11479
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11480
- i0__namespace.ɵɵelementContainerEnd();
11481
- }
11482
- if (rf & 2) {
11483
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11484
- i0__namespace.ɵɵadvance(1);
11485
- i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11486
- }
11487
- }
11488
- function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
11489
- if (rf & 1) {
11490
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11491
- i0__namespace.ɵɵelementStart(0, "div");
11492
- i0__namespace.ɵɵelementStart(1, "h2", 5);
11493
- i0__namespace.ɵɵtext(2, "Case file");
11494
- i0__namespace.ɵɵelementEnd();
11495
- i0__namespace.ɵɵelementStart(3, "div", 6);
11496
- i0__namespace.ɵɵelementStart(4, "div", 7);
11497
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11498
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
11499
- i0__namespace.ɵɵelementEnd();
11500
- i0__namespace.ɵɵelementEnd();
11501
- i0__namespace.ɵɵelement(6, "div", 9);
11502
- i0__namespace.ɵɵelementStart(7, "div", 10);
11503
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
11504
- i0__namespace.ɵɵelementEnd();
11505
- i0__namespace.ɵɵelementEnd();
11506
- i0__namespace.ɵɵelementEnd();
11507
- }
11508
- if (rf & 2) {
11509
- var ctx_r1 = i0__namespace.ɵɵnextContext();
11510
- i0__namespace.ɵɵadvance(5);
11511
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
11512
- i0__namespace.ɵɵadvance(3);
11513
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
11514
- }
11515
- }
11516
- var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
11517
- __extends(CaseFileViewFieldReadComponent, _super);
11518
- function CaseFileViewFieldReadComponent() {
11519
- var _this = _super.apply(this, __spread(arguments)) || this;
11520
- _this.allowMoving = false;
11521
- return _this;
11522
- }
11523
- return CaseFileViewFieldReadComponent;
11524
- }(CaseFileViewFieldComponent));
11525
- CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
11526
- CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
11527
- if (rf & 1) {
11528
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
11529
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
11530
- }
11531
- if (rf & 2) {
11532
- i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11533
- i0__namespace.ɵɵadvance(1);
11534
- i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
11535
- }
11536
- }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
11537
- var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
11538
- (function () {
11539
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
11540
- type: i0.Component,
11541
- args: [{
11542
- selector: 'ccd-case-file-view-field',
11543
- templateUrl: './case-file-view-field.component.html',
11544
- styleUrls: ['./case-file-view-field.component.scss'],
11545
- }]
11546
- }], null, null);
11442
+ }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
11547
11443
  })();
11548
11444
 
11549
11445
  exports.AddCommentsErrorMessage = void 0;
@@ -11898,7 +11794,7 @@
11898
11794
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
11899
11795
  }
11900
11796
  }
11901
- var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
11797
+ var _c0$R = function (a0) { return { "form-group-error": a0 }; };
11902
11798
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
11903
11799
  if (rf & 1) {
11904
11800
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -11919,7 +11815,7 @@
11919
11815
  i0__namespace.ɵɵadvance(1);
11920
11816
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
11921
11817
  i0__namespace.ɵɵadvance(1);
11922
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
11818
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
11923
11819
  i0__namespace.ɵɵadvance(1);
11924
11820
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
11925
11821
  i0__namespace.ɵɵadvance(1);
@@ -12395,7 +12291,7 @@
12395
12291
  }], null, null);
12396
12292
  })();
12397
12293
 
12398
- var _c0$P = ["writeComplexFieldComponent"];
12294
+ var _c0$Q = ["writeComplexFieldComponent"];
12399
12295
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12400
12296
  if (rf & 1) {
12401
12297
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12500,7 +12396,7 @@
12500
12396
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12501
12397
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12502
12398
  if (rf & 1) {
12503
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
12399
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
12504
12400
  }
12505
12401
  if (rf & 2) {
12506
12402
  var _t = void 0;
@@ -12545,7 +12441,7 @@
12545
12441
  }] });
12546
12442
  })();
12547
12443
 
12548
- var _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12444
+ var _c0$P = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12549
12445
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12550
12446
  if (rf & 1) {
12551
12447
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12560,7 +12456,7 @@
12560
12456
  if (rf & 2) {
12561
12457
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12562
12458
  i0__namespace.ɵɵadvance(4);
12563
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
12459
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$P, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
12564
12460
  }
12565
12461
  }
12566
12462
  var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -12711,7 +12607,7 @@
12711
12607
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
12712
12608
  })();
12713
12609
 
12714
- var _c0$N = ["collectionItem"];
12610
+ var _c0$O = ["collectionItem"];
12715
12611
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
12716
12612
  if (rf & 1) {
12717
12613
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -12850,7 +12746,7 @@
12850
12746
  }
12851
12747
  };
12852
12748
  WriteCollectionFieldComponent.prototype.buildCaseField = function (item, index, isNew) {
12853
- var e_1, _a;
12749
+ var e_1, _c;
12854
12750
  if (isNew === void 0) { isNew = false; }
12855
12751
  /**
12856
12752
  * What follow is code that makes me want to go jump in the shower!
@@ -12886,8 +12782,8 @@
12886
12782
  if (!value) {
12887
12783
  value = new i2.FormGroup({});
12888
12784
  try {
12889
- for (var _b = __values(Object.keys(group.controls)), _c = _b.next(); !_c.done; _c = _b.next()) {
12890
- var key = _c.value;
12785
+ for (var _d = __values(Object.keys(group.controls)), _e = _d.next(); !_e.done; _e = _d.next()) {
12786
+ var key = _e.value;
12891
12787
  value.addControl(key, group.get(key));
12892
12788
  // DON'T remove the control for this key from the outer group or it
12893
12789
  // goes awry. So DON'T uncomment the below line!
@@ -12897,7 +12793,7 @@
12897
12793
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
12898
12794
  finally {
12899
12795
  try {
12900
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12796
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
12901
12797
  }
12902
12798
  finally { if (e_1) throw e_1.error; }
12903
12799
  }
@@ -12953,6 +12849,11 @@
12953
12849
  // Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
12954
12850
  this.formArray.setErrors(null);
12955
12851
  var item = { value: null };
12852
+ if (this.isCollectionDynamic()) {
12853
+ item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
12854
+ var key = Number(item['id'][item['id'].length - 1]) + 1;
12855
+ item.id = item['id'].replace(/.$/, key.toString());
12856
+ }
12956
12857
  this.caseField.value.push(item);
12957
12858
  var index = this.caseField.value.length - 1;
12958
12859
  var caseField = this.buildCaseField(item, index, true);
@@ -12975,6 +12876,12 @@
12975
12876
  setTimeout(function () { return _this.focusLastItem(); });
12976
12877
  }
12977
12878
  };
12879
+ WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
12880
+ if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
12881
+ return false;
12882
+ }
12883
+ return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
12884
+ };
12978
12885
  WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
12979
12886
  if (isNew === void 0) { isNew = false; }
12980
12887
  var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
@@ -13017,6 +12924,7 @@
13017
12924
  this.formArray.removeAt(index);
13018
12925
  };
13019
12926
  WriteCollectionFieldComponent.prototype.resetIds = function (index) {
12927
+ var _a, _b;
13020
12928
  for (var i = index; i < this.collItems.length; i++) {
13021
12929
  var counter = i + 1;
13022
12930
  if (this.collItems[i].index && this.collItems[i].index === counter) {
@@ -13026,16 +12934,15 @@
13026
12934
  && this.collItems[i].caseField.id === counter.toString()) {
13027
12935
  this.collItems[i].caseField.id = i.toString();
13028
12936
  }
13029
- var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13030
- var idPrefix1Current = idPrefix1.replace('_' + i.toString(), '_' + counter.toString());
12937
+ var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
12938
+ var idPrefix1Current = idPrefix1.replace("_" + i.toString(), "_" + counter.toString());
13031
12939
  if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
13032
12940
  this.collItems[i].prefix = idPrefix1;
13033
12941
  }
13034
- var idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
13035
- && this.collItems[i].container['component'].idPrefix ? true : false;
12942
+ var idPrefixAvailable = !!((_b = (_a = this.collItems[i].container) === null || _a === void 0 ? void 0 : _a['component']) === null || _b === void 0 ? void 0 : _b.idPrefix);
13036
12943
  var idPrefix2 = idPrefixAvailable ?
13037
- this.collItems[i].container['component'].idPrefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13038
- var idPrefix2current = idPrefix2.replace('_' + i.toString(), '_' + counter.toString());
12944
+ this.collItems[i].container['component'].idPrefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
12945
+ var idPrefix2current = idPrefix2.replace("_" + i.toString(), "_" + counter.toString());
13039
12946
  if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
13040
12947
  this.collItems[i].container['component'].idPrefix = idPrefix2;
13041
12948
  }
@@ -13124,7 +13031,7 @@
13124
13031
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13125
13032
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13126
13033
  if (rf & 1) {
13127
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
13034
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
13128
13035
  }
13129
13036
  if (rf & 2) {
13130
13037
  var _t = void 0;
@@ -13818,7 +13725,7 @@
13818
13725
  }], null, null);
13819
13726
  })();
13820
13727
 
13821
- var _c0$M = ["fileInput"];
13728
+ var _c0$N = ["fileInput"];
13822
13729
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
13823
13730
  if (rf & 1) {
13824
13731
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14112,7 +14019,7 @@
14112
14019
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14113
14020
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14114
14021
  if (rf & 1) {
14115
- i0__namespace.ɵɵviewQuery(_c0$M, 1);
14022
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
14116
14023
  }
14117
14024
  if (rf & 2) {
14118
14025
  var _t = void 0;
@@ -14312,7 +14219,7 @@
14312
14219
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14313
14220
  }
14314
14221
  }
14315
- var _c0$L = function (a0) { return { "form-group-error": a0 }; };
14222
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
14316
14223
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14317
14224
  __extends(WriteDynamicListFieldComponent, _super);
14318
14225
  function WriteDynamicListFieldComponent() {
@@ -14361,7 +14268,7 @@
14361
14268
  i0__namespace.ɵɵelementEnd();
14362
14269
  }
14363
14270
  if (rf & 2) {
14364
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14271
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14365
14272
  i0__namespace.ɵɵadvance(1);
14366
14273
  i0__namespace.ɵɵproperty("for", ctx.id());
14367
14274
  i0__namespace.ɵɵadvance(1);
@@ -14391,6 +14298,257 @@
14391
14298
  }], null, null);
14392
14299
  })();
14393
14300
 
14301
+ var FixedListPipe = /** @class */ (function () {
14302
+ function FixedListPipe() {
14303
+ }
14304
+ FixedListPipe.prototype.transform = function (value, items) {
14305
+ if (!!items) {
14306
+ var item = items.find(function (i) { return i.code === value; });
14307
+ return item ? item.label : FixedListPipe.EMPTY;
14308
+ }
14309
+ else {
14310
+ return FixedListPipe.EMPTY;
14311
+ }
14312
+ };
14313
+ return FixedListPipe;
14314
+ }());
14315
+ FixedListPipe.EMPTY = '';
14316
+ FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
14317
+ FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
14318
+ (function () {
14319
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
14320
+ type: i0.Pipe,
14321
+ args: [{
14322
+ name: 'ccdFixedList'
14323
+ }]
14324
+ }], null, null);
14325
+ })();
14326
+
14327
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
14328
+ if (rf & 1) {
14329
+ i0__namespace.ɵɵelementStart(0, "div");
14330
+ i0__namespace.ɵɵtext(1);
14331
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
14332
+ i0__namespace.ɵɵelementEnd();
14333
+ }
14334
+ if (rf & 2) {
14335
+ var value_r1 = ctx.$implicit;
14336
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
14337
+ i0__namespace.ɵɵadvance(1);
14338
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
14339
+ }
14340
+ }
14341
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
14342
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
14343
+ function ReadDynamicMultiSelectListFieldComponent() {
14344
+ return _super !== null && _super.apply(this, arguments) || this;
14345
+ }
14346
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
14347
+ /**
14348
+ *
14349
+ * Reassigning list_items from formatted_list when list_items is empty
14350
+ */
14351
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
14352
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
14353
+ }
14354
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
14355
+ this.caseField.value = this.caseField.formatted_value.value;
14356
+ }
14357
+ _super.prototype.ngOnInit.call(this);
14358
+ };
14359
+ return ReadDynamicMultiSelectListFieldComponent;
14360
+ }(AbstractFieldReadComponent));
14361
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
14362
+ ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
14363
+ if (rf & 1) {
14364
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
14365
+ }
14366
+ if (rf & 2) {
14367
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
14368
+ }
14369
+ }, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
14370
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
14371
+ (function () {
14372
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
14373
+ type: i0.Component,
14374
+ args: [{
14375
+ selector: 'ccd-read-dynamic-multi-select-list-field',
14376
+ templateUrl: './read-dynamic-multi-select-list-field.html',
14377
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
14378
+ }]
14379
+ }], null, null);
14380
+ })();
14381
+
14382
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
14383
+ if (rf & 1) {
14384
+ i0__namespace.ɵɵelementStart(0, "span", 5);
14385
+ i0__namespace.ɵɵtext(1);
14386
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
14387
+ i0__namespace.ɵɵelementEnd();
14388
+ }
14389
+ if (rf & 2) {
14390
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
14391
+ i0__namespace.ɵɵadvance(1);
14392
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
14393
+ }
14394
+ }
14395
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
14396
+ if (rf & 1) {
14397
+ i0__namespace.ɵɵelementStart(0, "span", 6);
14398
+ i0__namespace.ɵɵtext(1);
14399
+ i0__namespace.ɵɵelementEnd();
14400
+ }
14401
+ if (rf & 2) {
14402
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
14403
+ i0__namespace.ɵɵadvance(1);
14404
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
14405
+ }
14406
+ }
14407
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
14408
+ if (rf & 1) {
14409
+ i0__namespace.ɵɵelementStart(0, "span", 7);
14410
+ i0__namespace.ɵɵtext(1);
14411
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
14412
+ i0__namespace.ɵɵelementEnd();
14413
+ }
14414
+ if (rf & 2) {
14415
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
14416
+ i0__namespace.ɵɵadvance(1);
14417
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
14418
+ }
14419
+ }
14420
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
14421
+ if (rf & 1) {
14422
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
14423
+ i0__namespace.ɵɵelementContainerStart(0);
14424
+ i0__namespace.ɵɵelementStart(1, "div", 8);
14425
+ i0__namespace.ɵɵelementStart(2, "input", 9);
14426
+ i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
14427
+ i0__namespace.ɵɵelementEnd();
14428
+ i0__namespace.ɵɵelementStart(3, "label", 10);
14429
+ i0__namespace.ɵɵtext(4);
14430
+ i0__namespace.ɵɵelementEnd();
14431
+ i0__namespace.ɵɵelementEnd();
14432
+ i0__namespace.ɵɵelementContainerEnd();
14433
+ }
14434
+ if (rf & 2) {
14435
+ var checkbox_r4 = ctx.$implicit;
14436
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
14437
+ i0__namespace.ɵɵadvance(2);
14438
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
14439
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
14440
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
14441
+ i0__namespace.ɵɵadvance(1);
14442
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
14443
+ i0__namespace.ɵɵadvance(1);
14444
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
14445
+ }
14446
+ }
14447
+ var _c0$L = function (a0) { return { "error": a0 }; };
14448
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
14449
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
14450
+ function WriteDynamicMultiSelectListFieldComponent() {
14451
+ return _super !== null && _super.apply(this, arguments) || this;
14452
+ }
14453
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
14454
+ var _this = this;
14455
+ this.checkboxes = new i2.FormArray([]);
14456
+ this.setInitialCaseList();
14457
+ this.setInitialCaseFieldValue();
14458
+ // Initialise array with existing values
14459
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
14460
+ var values = this.caseField.value;
14461
+ values.forEach(function (value) {
14462
+ _this.checkboxes.push(new i2.FormControl(value));
14463
+ });
14464
+ }
14465
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
14466
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
14467
+ };
14468
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
14469
+ var _this = this;
14470
+ var target = event.target;
14471
+ if (!target || !target.value) {
14472
+ return;
14473
+ }
14474
+ var selectedListItem = this.getValueListItem(target.value);
14475
+ if (!this.isSelected(target.value)) {
14476
+ // Add a new control in the FormArray
14477
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
14478
+ }
14479
+ else {
14480
+ // Remove the control from the FormArray
14481
+ this.checkboxes.controls.forEach(function (ctrl, i) {
14482
+ if (ctrl.value.code === target.value) {
14483
+ _this.checkboxes.removeAt(i);
14484
+ }
14485
+ });
14486
+ }
14487
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
14488
+ };
14489
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
14490
+ if (this.checkboxes && this.checkboxes.controls) {
14491
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
14492
+ }
14493
+ };
14494
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
14495
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
14496
+ };
14497
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
14498
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
14499
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
14500
+ if (!hasListItems && hasFormattedListItems) {
14501
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
14502
+ }
14503
+ };
14504
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
14505
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
14506
+ this.caseField.value = this.caseField.formatted_value.value;
14507
+ }
14508
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
14509
+ if (isNull || !Array.isArray(this.caseField.value)) {
14510
+ this.caseField.value = [];
14511
+ }
14512
+ };
14513
+ return WriteDynamicMultiSelectListFieldComponent;
14514
+ }(AbstractFieldWriteComponent));
14515
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
14516
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
14517
+ if (rf & 1) {
14518
+ i0__namespace.ɵɵelementStart(0, "div", 0);
14519
+ i0__namespace.ɵɵelementStart(1, "fieldset");
14520
+ i0__namespace.ɵɵelementStart(2, "legend");
14521
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
14522
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
14523
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
14524
+ i0__namespace.ɵɵelementEnd();
14525
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
14526
+ i0__namespace.ɵɵelementEnd();
14527
+ i0__namespace.ɵɵelementEnd();
14528
+ }
14529
+ if (rf & 2) {
14530
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
14531
+ i0__namespace.ɵɵadvance(3);
14532
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
14533
+ i0__namespace.ɵɵadvance(1);
14534
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
14535
+ i0__namespace.ɵɵadvance(1);
14536
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
14537
+ i0__namespace.ɵɵadvance(1);
14538
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
14539
+ }
14540
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14541
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
14542
+ (function () {
14543
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
14544
+ type: i0.Component,
14545
+ args: [{
14546
+ selector: 'ccd-write-dynamic-multi-select-list-field',
14547
+ templateUrl: './write-dynamic-multi-select-list-field.html'
14548
+ }]
14549
+ }], null, null);
14550
+ })();
14551
+
14394
14552
  var DynamicRadioListPipe = /** @class */ (function () {
14395
14553
  function DynamicRadioListPipe() {
14396
14554
  }
@@ -14526,10 +14684,9 @@
14526
14684
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14527
14685
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14528
14686
  i0__namespace.ɵɵadvance(1);
14529
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14530
- i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14687
+ i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14531
14688
  i0__namespace.ɵɵadvance(1);
14532
- i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
14689
+ i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
14533
14690
  i0__namespace.ɵɵadvance(1);
14534
14691
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14535
14692
  }
@@ -14558,8 +14715,8 @@
14558
14715
  this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
14559
14716
  this.dynamicRadioListControl.setValue(this.caseField.value);
14560
14717
  };
14561
- WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
14562
- return this.id() + "-" + name;
14718
+ WriteDynamicRadioListFieldComponent.prototype.createElementId = function (name) {
14719
+ return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : _super.prototype.createElementId.call(this, name);
14563
14720
  };
14564
14721
  return WriteDynamicRadioListFieldComponent;
14565
14722
  }(AbstractFieldWriteComponent));
@@ -14738,32 +14895,6 @@
14738
14895
  }], null, null);
14739
14896
  })();
14740
14897
 
14741
- var FixedListPipe = /** @class */ (function () {
14742
- function FixedListPipe() {
14743
- }
14744
- FixedListPipe.prototype.transform = function (value, items) {
14745
- if (!!items) {
14746
- var item = items.find(function (i) { return i.code === value; });
14747
- return item ? item.label : FixedListPipe.EMPTY;
14748
- }
14749
- else {
14750
- return FixedListPipe.EMPTY;
14751
- }
14752
- };
14753
- return FixedListPipe;
14754
- }());
14755
- FixedListPipe.EMPTY = '';
14756
- FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
14757
- FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
14758
- (function () {
14759
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
14760
- type: i0.Pipe,
14761
- args: [{
14762
- name: 'ccdFixedList'
14763
- }]
14764
- }], null, null);
14765
- })();
14766
-
14767
14898
  var ReadFixedListFieldComponent = /** @class */ (function (_super) {
14768
14899
  __extends(ReadFixedListFieldComponent, _super);
14769
14900
  function ReadFixedListFieldComponent() {
@@ -15447,7 +15578,7 @@
15447
15578
  casesResponse.push(_this.mapResponse(result));
15448
15579
  });
15449
15580
  });
15450
- var caseLinks = casesResponse.map(function (item) {
15581
+ _this.linkedCases = casesResponse.map(function (item) {
15451
15582
  return {
15452
15583
  caseReference: item.caseReference,
15453
15584
  caseName: item.caseName,
@@ -15461,7 +15592,6 @@
15461
15592
  }),
15462
15593
  };
15463
15594
  });
15464
- _this.linkedCases = caseLinks;
15465
15595
  _this.serverLinkedApiError = null;
15466
15596
  }, function (err) {
15467
15597
  _this.serverLinkedApiError = {
@@ -17383,6 +17513,7 @@
17383
17513
  }] });
17384
17514
  })();
17385
17515
 
17516
+ // tslint:disable:variable-name
17386
17517
  var LinkCaseReason = /** @class */ (function () {
17387
17518
  function LinkCaseReason() {
17388
17519
  }
@@ -17541,7 +17672,7 @@
17541
17672
  this.caseField = (_a = tab === null || tab === void 0 ? void 0 : tab.fields) === null || _a === void 0 ? void 0 : _a.find(function (field) { return field.id === 'caseLinks'; });
17542
17673
  }
17543
17674
  this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
17544
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17675
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17545
17676
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17546
17677
  next: function (reasons) {
17547
17678
  _this.reasonListLoaded = true;
@@ -17803,7 +17934,7 @@
17803
17934
  };
17804
17935
  WriteLinkedCasesFieldComponent.prototype.getLinkedCaseReasons = function () {
17805
17936
  var _this = this;
17806
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17937
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17807
17938
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17808
17939
  next: function (reasons) {
17809
17940
  // Sort in ascending order
@@ -17862,11 +17993,10 @@
17862
17993
  var _this = this;
17863
17994
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe(function (caseView) {
17864
17995
  var caseViewFiltered = caseView.tabs.filter(function (tab) {
17865
- var linkField = tab.fields.some(function (_b) {
17996
+ return tab.fields.some(function (_b) {
17866
17997
  var field_type = _b.field_type;
17867
17998
  return field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink';
17868
17999
  });
17869
- return linkField;
17870
18000
  });
17871
18001
  if (caseViewFiltered) {
17872
18002
  var caseLinkFieldValue = caseViewFiltered.map(function (filtered) { var _a; return ((_a = filtered.fields) === null || _a === void 0 ? void 0 : _a.length) > 0 && filtered.fields.filter(function (field) { return field.id === 'caseLinks'; })[0].value; });
@@ -19185,6 +19315,9 @@
19185
19315
  PaymentField.prototype.getRefundsUrl = function () {
19186
19316
  return this.appConfig.getRefundsUrl();
19187
19317
  };
19318
+ PaymentField.prototype.getNotificationUrl = function () {
19319
+ return this.appConfig.getNotificationUrl();
19320
+ };
19188
19321
  PaymentField.prototype.getUserRoles = function () {
19189
19322
  var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
19190
19323
  if (!userDetails || !userDetails.hasOwnProperty('roles')) {
@@ -19210,12 +19343,12 @@
19210
19343
  return CasePaymentHistoryViewerFieldComponent;
19211
19344
  }(PaymentField));
19212
19345
  CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
19213
- CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 15, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
19346
+ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
19214
19347
  if (rf & 1) {
19215
19348
  i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
19216
19349
  }
19217
19350
  if (rf & 2) {
19218
- i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
19351
+ i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
19219
19352
  }
19220
19353
  }, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
19221
19354
  (function () {
@@ -19428,7 +19561,7 @@
19428
19561
  WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
19429
19562
  if (this.browserService.isIEOrEdge()) {
19430
19563
  event.target.style.height = 'auto';
19431
- event.target.style.height = event.target.scrollHeight + 'px';
19564
+ event.target.style.height = event.target.scrollHeight + "px";
19432
19565
  event.target.scrollTop = event.target.scrollHeight;
19433
19566
  }
19434
19567
  };
@@ -19623,7 +19756,7 @@
19623
19756
  }
19624
19757
  if (rf & 2) {
19625
19758
  var ctx_r0 = i0__namespace.ɵɵnextContext();
19626
- i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
19759
+ i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
19627
19760
  }
19628
19761
  }
19629
19762
  var WaysToPayFieldComponent = /** @class */ (function (_super) {
@@ -19637,9 +19770,9 @@
19637
19770
  return WaysToPayFieldComponent;
19638
19771
  }(PaymentField));
19639
19772
  WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
19640
- WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
19773
+ WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
19641
19774
  if (rf & 1) {
19642
- i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 14, "ccpay-payment-lib", 0);
19775
+ i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
19643
19776
  }
19644
19777
  if (rf & 2) {
19645
19778
  i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
@@ -19668,6 +19801,7 @@
19668
19801
  return YesNoService.EMPTY;
19669
19802
  };
19670
19803
  YesNoService.prototype.isYes = function (value) {
19804
+ // tslint:disable-next-line:switch-default
19671
19805
  switch (typeof (value)) {
19672
19806
  case 'boolean':
19673
19807
  return value;
@@ -19677,6 +19811,7 @@
19677
19811
  return false;
19678
19812
  };
19679
19813
  YesNoService.prototype.isNo = function (value) {
19814
+ // tslint:disable-next-line:switch-default
19680
19815
  switch (typeof (value)) {
19681
19816
  case 'boolean':
19682
19817
  return !value;
@@ -19860,7 +19995,7 @@
19860
19995
  function PaletteService() {
19861
19996
  var _b;
19862
19997
  this.componentLauncherRegistry = (_b = {},
19863
- _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent],
19998
+ _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
19864
19999
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
19865
20000
  _b);
19866
20001
  }
@@ -19890,6 +20025,8 @@
19890
20025
  return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
19891
20026
  case 'DynamicRadioList':
19892
20027
  return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
20028
+ case 'DynamicMultiSelectList':
20029
+ return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
19893
20030
  case 'FixedRadioList':
19894
20031
  return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
19895
20032
  case 'Complex':
@@ -19959,7 +20096,7 @@
19959
20096
  })();
19960
20097
 
19961
20098
  var _c0$v = ["fieldContainer"];
19962
- var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
20099
+ var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
19963
20100
  var FieldReadComponent = /** @class */ (function (_super) {
19964
20101
  __extends(FieldReadComponent, _super);
19965
20102
  function FieldReadComponent(resolver, paletteService) {
@@ -20049,7 +20186,7 @@
20049
20186
  })();
20050
20187
 
20051
20188
  var _c0$u = ["fieldContainer"];
20052
- var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
20189
+ var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
20053
20190
  var FieldWriteComponent = /** @class */ (function (_super) {
20054
20191
  __extends(FieldWriteComponent, _super);
20055
20192
  function FieldWriteComponent(resolver, paletteService) {
@@ -20648,6 +20785,7 @@
20648
20785
  return CaseFileViewCategory;
20649
20786
  }());
20650
20787
 
20788
+ // tslint:disable:variable-name
20651
20789
  var CaseFileViewDocument = /** @class */ (function () {
20652
20790
  function CaseFileViewDocument() {
20653
20791
  }
@@ -22001,7 +22139,7 @@
22001
22139
  // is expected not to have a party name)
22002
22140
  if (this.flagsData) {
22003
22141
  this.filteredFlagsData =
22004
- this.flagsData.filter(function (f) { return f.flags.partyName != null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22142
+ this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22005
22143
  }
22006
22144
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
22007
22145
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -23298,18 +23436,19 @@
23298
23436
  field.value = { CaseReference: value };
23299
23437
  return field;
23300
23438
  };
23301
- ReadComplexFieldCollectionTableComponent.prototype.toCaseField = function (id, label, field_type, value) {
23439
+ ReadComplexFieldCollectionTableComponent.prototype.toCaseField = function (id, label, fieldType, value) {
23302
23440
  return classTransformer.plainToClassFromExist(new CaseField(), {
23303
23441
  id: id,
23304
23442
  label: label,
23305
23443
  display_context: 'READONLY',
23306
23444
  value: value,
23307
- field_type: field_type
23445
+ field_type: fieldType
23308
23446
  });
23309
23447
  };
23310
23448
  ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
23311
23449
  var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
23312
23450
  || this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
23451
+ // tslint:disable-next-line:switch-default
23313
23452
  switch (this.columnsHorizontalLabel[column].type.type) {
23314
23453
  case 'Number':
23315
23454
  case 'MoneyGBP': {
@@ -24435,6 +24574,7 @@
24435
24574
  return FeeValue;
24436
24575
  }());
24437
24576
 
24577
+ // tslint:disable:variable-name
24438
24578
  var Fee = /** @class */ (function () {
24439
24579
  function Fee() {
24440
24580
  }
@@ -25009,23 +25149,26 @@
25009
25149
  || !ReadFieldsFilterPipe.isEmpty(value[field.id]);
25010
25150
  };
25011
25151
  ReadFieldsFilterPipe.getValue = function (field, values, index) {
25012
- var value;
25013
- if (index >= 0) {
25014
- value = values[index].value[field.id];
25015
- }
25016
- else {
25017
- value = values[field.id];
25152
+ if (ReadFieldsFilterPipe.isEmpty(field.value)) {
25153
+ var value = void 0;
25154
+ if (index >= 0) {
25155
+ value = values[index].value[field.id];
25156
+ }
25157
+ else {
25158
+ value = values[field.id];
25159
+ }
25160
+ return value;
25018
25161
  }
25019
- return ReadFieldsFilterPipe.isEmpty(field.value) ? value : field.value;
25162
+ return field.value;
25020
25163
  };
25021
- ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvaliable, fieldId) {
25164
+ ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
25022
25165
  if (field.display_context === 'HIDDEN') {
25023
25166
  field.hidden = true;
25024
25167
  }
25025
25168
  else if (field.show_condition) {
25026
25169
  var cond = void 0;
25027
- if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !formGroupAvaliable && !!Object.keys(formValue).length) {
25028
- var search = fieldId + '.';
25170
+ if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
25171
+ var search = fieldId + ".";
25029
25172
  var searchRegExp = new RegExp(search, 'g');
25030
25173
  var replaceWith = '';
25031
25174
  cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
@@ -25137,7 +25280,7 @@
25137
25280
  function CcdPageFieldsPipe() {
25138
25281
  }
25139
25282
  CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
25140
- var complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25283
+ var complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25141
25284
  var control = dataFormGroup.controls['data'].get(key);
25142
25285
  return control['caseField'];
25143
25286
  }).filter(function (field) {
@@ -25157,7 +25300,7 @@
25157
25300
  field_type: {
25158
25301
  id: page.id,
25159
25302
  type: 'Complex',
25160
- complex_fields: complex_fields
25303
+ complex_fields: complexFields
25161
25304
  }
25162
25305
  });
25163
25306
  };
@@ -25336,11 +25479,11 @@
25336
25479
  }
25337
25480
  return childrenCaseFields;
25338
25481
  };
25339
- CollectionCreateCheckerService.prototype.isComplex = function (case_field) {
25340
- return case_field.field_type.type === 'Complex';
25482
+ CollectionCreateCheckerService.prototype.isComplex = function (caseField) {
25483
+ return caseField.field_type.type === 'Complex';
25341
25484
  };
25342
- CollectionCreateCheckerService.prototype.isCollection = function (case_field) {
25343
- return case_field.field_type.type === 'Collection';
25485
+ CollectionCreateCheckerService.prototype.isCollection = function (caseField) {
25486
+ return caseField.field_type.type === 'Collection';
25344
25487
  };
25345
25488
  CollectionCreateCheckerService.prototype.hasCreateAccess = function (caseField, role) {
25346
25489
  return !!caseField.acls.find(function (acl) { return acl.role === role && acl.create === true; });
@@ -25434,6 +25577,8 @@
25434
25577
  WriteDocumentFieldComponent,
25435
25578
  WriteDynamicListFieldComponent,
25436
25579
  WriteDynamicRadioListFieldComponent,
25580
+ WriteDynamicMultiSelectListFieldComponent,
25581
+ ReadDynamicMultiSelectListFieldComponent,
25437
25582
  WriteTextFieldComponent,
25438
25583
  WriteDateContainerFieldComponent,
25439
25584
  WriteTextAreaFieldComponent,
@@ -25457,12 +25602,18 @@
25457
25602
  WriteCollectionFieldComponent,
25458
25603
  // ComponentLauncher web components
25459
25604
  CaseFileViewFieldComponent,
25460
- CaseFileViewFieldReadComponent,
25461
25605
  CaseFileViewFolderComponent,
25462
25606
  CaseFileViewFolderSortComponent,
25463
25607
  CaseFileViewOverlayMenuComponent,
25464
25608
  CaseFileViewFolderDocumentActionsComponent,
25465
25609
  CaseFileViewFolderSelectorComponent,
25610
+ // component for dynamic list
25611
+ WriteDynamicMultiSelectListFieldComponent,
25612
+ WriteDynamicRadioListFieldComponent,
25613
+ WriteDynamicListFieldComponent,
25614
+ ReadDynamicMultiSelectListFieldComponent,
25615
+ ReadDynamicListFieldComponent,
25616
+ ReadDynamicRadioListFieldComponent,
25466
25617
  LinkedCasesToTableComponent,
25467
25618
  LinkedCasesFromTableComponent,
25468
25619
  BeforeYouStartComponent,
@@ -25593,6 +25744,8 @@
25593
25744
  WriteDocumentFieldComponent,
25594
25745
  WriteDynamicListFieldComponent,
25595
25746
  WriteDynamicRadioListFieldComponent,
25747
+ WriteDynamicMultiSelectListFieldComponent,
25748
+ ReadDynamicMultiSelectListFieldComponent,
25596
25749
  WriteTextFieldComponent,
25597
25750
  WriteDateContainerFieldComponent,
25598
25751
  WriteTextAreaFieldComponent,
@@ -25616,12 +25769,18 @@
25616
25769
  WriteCollectionFieldComponent,
25617
25770
  // ComponentLauncher web components
25618
25771
  CaseFileViewFieldComponent,
25619
- CaseFileViewFieldReadComponent,
25620
25772
  CaseFileViewFolderComponent,
25621
25773
  CaseFileViewFolderSortComponent,
25622
25774
  CaseFileViewOverlayMenuComponent,
25623
25775
  CaseFileViewFolderDocumentActionsComponent,
25624
25776
  CaseFileViewFolderSelectorComponent,
25777
+ // component for dynamic list
25778
+ WriteDynamicMultiSelectListFieldComponent,
25779
+ WriteDynamicRadioListFieldComponent,
25780
+ WriteDynamicListFieldComponent,
25781
+ ReadDynamicMultiSelectListFieldComponent,
25782
+ ReadDynamicListFieldComponent,
25783
+ ReadDynamicRadioListFieldComponent,
25625
25784
  LinkedCasesToTableComponent,
25626
25785
  LinkedCasesFromTableComponent,
25627
25786
  BeforeYouStartComponent,
@@ -25711,6 +25870,8 @@
25711
25870
  WriteDocumentFieldComponent,
25712
25871
  WriteDynamicListFieldComponent,
25713
25872
  WriteDynamicRadioListFieldComponent,
25873
+ WriteDynamicMultiSelectListFieldComponent,
25874
+ ReadDynamicMultiSelectListFieldComponent,
25714
25875
  WriteTextFieldComponent,
25715
25876
  WriteDateContainerFieldComponent,
25716
25877
  WriteTextAreaFieldComponent,
@@ -25734,12 +25895,18 @@
25734
25895
  WriteCollectionFieldComponent,
25735
25896
  // ComponentLauncher web components
25736
25897
  CaseFileViewFieldComponent,
25737
- CaseFileViewFieldReadComponent,
25738
25898
  CaseFileViewFolderComponent,
25739
25899
  CaseFileViewFolderSortComponent,
25740
25900
  CaseFileViewOverlayMenuComponent,
25741
25901
  CaseFileViewFolderDocumentActionsComponent,
25742
25902
  CaseFileViewFolderSelectorComponent,
25903
+ // component for dynamic list
25904
+ WriteDynamicMultiSelectListFieldComponent,
25905
+ WriteDynamicRadioListFieldComponent,
25906
+ WriteDynamicListFieldComponent,
25907
+ ReadDynamicMultiSelectListFieldComponent,
25908
+ ReadDynamicListFieldComponent,
25909
+ ReadDynamicRadioListFieldComponent,
25743
25910
  LinkedCasesToTableComponent,
25744
25911
  LinkedCasesFromTableComponent,
25745
25912
  BeforeYouStartComponent,
@@ -25865,8 +26032,7 @@
25865
26032
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
25866
26033
  i0__namespace.ɵɵsetComponentScope(
25867
26034
  // ComponentLauncher web components
25868
- CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25869
- i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
26035
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
25870
26036
  i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
25871
26037
  i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
25872
26038
  i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
@@ -26518,7 +26684,7 @@
26518
26684
  if (caseField.field_type.type === 'Complex') {
26519
26685
  // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
26520
26686
  // handle both null and undefined values
26521
- if (caseField.value != null) {
26687
+ if (caseField.value !== null) {
26522
26688
  // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
26523
26689
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
26524
26690
  // parent)
@@ -26584,8 +26750,8 @@
26584
26750
  this.caseEdit.navigateToPage(pageId);
26585
26751
  };
26586
26752
  CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
26587
- this.ignoreWarning = errorContext.ignore_warning;
26588
- this.triggerText = errorContext.trigger_text;
26753
+ this.ignoreWarning = errorContext.ignoreWarning;
26754
+ this.triggerText = errorContext.triggerText;
26589
26755
  };
26590
26756
  CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
26591
26757
  if (null === this.editForm.get('data').get(field.id)) {
@@ -27217,6 +27383,7 @@
27217
27383
  { provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
27218
27384
  ]
27219
27385
  });
27386
+ // tslint:disable-next-line:switch-default
27220
27387
  switch (portalType) {
27221
27388
  case EventCompletionPortalTypes.TaskCancelled:
27222
27389
  this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
@@ -27751,36 +27918,36 @@
27751
27918
  this.screenReaderCurrentLabel = "You're on page";
27752
27919
  this.pageChange = new i0.EventEmitter();
27753
27920
  this.pageBoundsCorrection = new i0.EventEmitter();
27754
- this._directionLinks = true;
27755
- this._autoHide = false;
27756
- this._responsive = false;
27921
+ this.pDirectionLinks = true;
27922
+ this.pAutoHide = false;
27923
+ this.pResponsive = false;
27757
27924
  }
27758
27925
  Object.defineProperty(PaginationComponent.prototype, "directionLinks", {
27759
27926
  get: function () {
27760
- return this._directionLinks;
27927
+ return this.pDirectionLinks;
27761
27928
  },
27762
27929
  set: function (value) {
27763
- this._directionLinks = coerceToBoolean(value);
27930
+ this.pDirectionLinks = coerceToBoolean(value);
27764
27931
  },
27765
27932
  enumerable: false,
27766
27933
  configurable: true
27767
27934
  });
27768
27935
  Object.defineProperty(PaginationComponent.prototype, "autoHide", {
27769
27936
  get: function () {
27770
- return this._autoHide;
27937
+ return this.pAutoHide;
27771
27938
  },
27772
27939
  set: function (value) {
27773
- this._autoHide = coerceToBoolean(value);
27940
+ this.pAutoHide = coerceToBoolean(value);
27774
27941
  },
27775
27942
  enumerable: false,
27776
27943
  configurable: true
27777
27944
  });
27778
27945
  Object.defineProperty(PaginationComponent.prototype, "responsive", {
27779
27946
  get: function () {
27780
- return this._responsive;
27947
+ return this.pResponsive;
27781
27948
  },
27782
27949
  set: function (value) {
27783
- this._responsive = coerceToBoolean(value);
27950
+ this.pResponsive = coerceToBoolean(value);
27784
27951
  },
27785
27952
  enumerable: false,
27786
27953
  configurable: true
@@ -28547,7 +28714,7 @@
28547
28714
  var formValue = _this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
28548
28715
  workbasketInputs.forEach(function (item) {
28549
28716
  if (item.field.elementPath) {
28550
- item.field.id = item.field.id + '.' + item.field.elementPath;
28717
+ item.field.id = item.field.id + "." + item.field.elementPath;
28551
28718
  }
28552
28719
  item.field.label = item.label;
28553
28720
  if (formValue) {
@@ -28599,7 +28766,7 @@
28599
28766
  var value = formGroupLS[key];
28600
28767
  // Clear the filter form group control values if it has a value in local storage
28601
28768
  // The regionList form group control value should be ignored as it always contain the latest value
28602
- if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
28769
+ if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
28603
28770
  this.formGroup.get(key).setValue(null);
28604
28771
  }
28605
28772
  }
@@ -29732,7 +29899,7 @@
29732
29899
  this.eventTrigger = this.route.snapshot.data.eventTrigger;
29733
29900
  if (this.activityPollingService.isEnabled) {
29734
29901
  this.ngZone.runOutsideAngular(function () {
29735
- _this.activitySubscription = _this.postEditActivity().subscribe(function (_resolved) {
29902
+ _this.activitySubscription = _this.postEditActivity().subscribe(function () {
29736
29903
  // console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
29737
29904
  });
29738
29905
  });
@@ -30704,8 +30871,8 @@
30704
30871
  return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
30705
30872
  };
30706
30873
  CaseFullAccessViewComponent.prototype.callbackErrorsNotify = function (callbackErrorsContext) {
30707
- this.ignoreWarning = callbackErrorsContext.ignore_warning;
30708
- this.triggerText = callbackErrorsContext.trigger_text;
30874
+ this.ignoreWarning = callbackErrorsContext.ignoreWarning;
30875
+ this.triggerText = callbackErrorsContext.triggerText;
30709
30876
  };
30710
30877
  CaseFullAccessViewComponent.prototype.isDraft = function () {
30711
30878
  return Draft.isDraft(this.caseDetails.case_id);
@@ -30984,7 +31151,7 @@
30984
31151
  * or the empty string
30985
31152
  */
30986
31153
  PrintUrlPipe.prototype.transform = function (remoteUrl) {
30987
- if (remoteUrl && remoteUrl.length > 0) {
31154
+ if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
30988
31155
  var printServiceUrlPathname = void 0;
30989
31156
  /**
30990
31157
  * Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
@@ -31000,7 +31167,7 @@
31000
31167
  printServiceUrlPathname = urlParser.pathname;
31001
31168
  if (printServiceUrlPathname[0] !== '/') {
31002
31169
  // Fix for IE11; it returns the pathname without leading slash
31003
- printServiceUrlPathname = '/' + printServiceUrlPathname;
31170
+ printServiceUrlPathname = "/" + printServiceUrlPathname;
31004
31171
  }
31005
31172
  }
31006
31173
  else {
@@ -31203,10 +31370,10 @@
31203
31370
  };
31204
31371
  CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
31205
31372
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
31206
- var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31207
- var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31208
- this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31209
- this.userAccessType = access_process ? access_process.value : null;
31373
+ var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31374
+ var accessGranted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31375
+ this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31376
+ this.userAccessType = accessProcess ? accessProcess.value : null;
31210
31377
  }
31211
31378
  };
31212
31379
  CaseViewerComponent.prototype.isDataLoaded = function () {
@@ -32502,11 +32669,11 @@
32502
32669
  };
32503
32670
  this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId_1, challengedAccessRequest)
32504
32671
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
32505
- .subscribe(function (_response) {
32672
+ .subscribe(function () {
32506
32673
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
32507
32674
  // Angular 7.2!
32508
32675
  _this.router.navigate(['success'], { relativeTo: _this.route });
32509
- }, function (_error) {
32676
+ }, function () {
32510
32677
  // Navigate to error page
32511
32678
  });
32512
32679
  }
@@ -32520,7 +32687,7 @@
32520
32687
  }
32521
32688
  };
32522
32689
  CaseChallengedAccessRequestComponent.prototype.inputEmpty = function (input) {
32523
- return input.value == null || input.value.trim().length === 0;
32690
+ return input.value === null || input.value.trim().length === 0;
32524
32691
  };
32525
32692
  return CaseChallengedAccessRequestComponent;
32526
32693
  }());
@@ -33144,11 +33311,11 @@
33144
33311
  };
33145
33312
  this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId_1, specificAccessRequest)
33146
33313
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
33147
- .subscribe(function (_response) {
33314
+ .subscribe(function () {
33148
33315
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
33149
33316
  // Angular 7.2
33150
33317
  _this.router.navigate(['success'], { relativeTo: _this.route });
33151
- }, function (_error) {
33318
+ }, function () {
33152
33319
  // Navigate to error page
33153
33320
  });
33154
33321
  }
@@ -33163,7 +33330,7 @@
33163
33330
  }
33164
33331
  };
33165
33332
  CaseSpecificAccessRequestComponent.prototype.inputEmpty = function (input) {
33166
- return input.value == null || input.value.trim().length === 0;
33333
+ return input.value === null || input.value.trim().length === 0;
33167
33334
  };
33168
33335
  return CaseSpecificAccessRequestComponent;
33169
33336
  }());
@@ -34064,7 +34231,7 @@
34064
34231
  }
34065
34232
  searchInputs.forEach(function (item) {
34066
34233
  if (item.field.elementPath) {
34067
- item.field.id = item.field.id + '.' + item.field.elementPath;
34234
+ item.field.id = item.field.id + "." + item.field.elementPath;
34068
34235
  }
34069
34236
  item.field.label = item.label;
34070
34237
  if (formValueObject) {
@@ -34343,7 +34510,7 @@
34343
34510
  if (rf & 2) {
34344
34511
  var ctx_r3 = i0__namespace.ɵɵnextContext(2);
34345
34512
  i0__namespace.ɵɵadvance(6);
34346
- i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.total_results_count), ". Only the first 10,000 records are available for display. ");
34513
+ i0__namespace.ɵɵtextInterpolate1(" The total size of the result set is ", i0__namespace.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.totalResultsCount), ". Only the first 10,000 records are available for display. ");
34347
34514
  }
34348
34515
  }
34349
34516
  function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
@@ -34902,7 +35069,7 @@
34902
35069
  };
34903
35070
  Object.defineProperty(SearchResultComponent.prototype, "resultTotal", {
34904
35071
  get: function () {
34905
- var total = this.paginationMetadata.total_results_count;
35072
+ var total = this.paginationMetadata.totalResultsCount;
34906
35073
  var maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
34907
35074
  this.paginationLimitEnforced = maximumResultReached;
34908
35075
  return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
@@ -35053,7 +35220,7 @@
35053
35220
  return col;
35054
35221
  };
35055
35222
  SearchResultComponent.prototype.hasResults = function () {
35056
- return this.resultView.results.length && this.paginationMetadata.total_pages_count;
35223
+ return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
35057
35224
  };
35058
35225
  SearchResultComponent.prototype.hasDrafts = function () {
35059
35226
  return this.resultView.hasDrafts();
@@ -35152,7 +35319,7 @@
35152
35319
  return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
35153
35320
  };
35154
35321
  SearchResultComponent.prototype.getTotalResults = function () {
35155
- var total = this.paginationMetadata.total_results_count + this.draftsCount;
35322
+ var total = this.paginationMetadata.totalResultsCount + this.draftsCount;
35156
35323
  return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
35157
35324
  };
35158
35325
  SearchResultComponent.prototype.prepareCaseLinkUrl = function (caseId) {
@@ -35310,6 +35477,7 @@
35310
35477
  })();
35311
35478
  i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
35312
35479
 
35480
+ // tslint:disable:variable-name
35313
35481
  var ComplexFieldOverride = /** @class */ (function () {
35314
35482
  function ComplexFieldOverride() {
35315
35483
  }
@@ -35331,24 +35499,24 @@
35331
35499
  this.caseField.id = id;
35332
35500
  return this;
35333
35501
  };
35334
- CaseFieldBuilder.prototype.withFieldType = function (field_type) {
35335
- this.caseField.field_type = field_type;
35502
+ CaseFieldBuilder.prototype.withFieldType = function (fieldType) {
35503
+ this.caseField.field_type = fieldType;
35336
35504
  return this;
35337
35505
  };
35338
- CaseFieldBuilder.prototype.withDisplayContext = function (display_context) {
35339
- this.caseField.display_context = display_context;
35506
+ CaseFieldBuilder.prototype.withDisplayContext = function (displayContext) {
35507
+ this.caseField.display_context = displayContext;
35340
35508
  return this;
35341
35509
  };
35342
- CaseFieldBuilder.prototype.withDisplayContextParameter = function (display_context_parameter) {
35343
- this.caseField.display_context_parameter = display_context_parameter;
35510
+ CaseFieldBuilder.prototype.withDisplayContextParameter = function (displayContextParameter) {
35511
+ this.caseField.display_context_parameter = displayContextParameter;
35344
35512
  return this;
35345
35513
  };
35346
35514
  CaseFieldBuilder.prototype.withHidden = function (hidden) {
35347
35515
  this.caseField.hidden = hidden;
35348
35516
  return this;
35349
35517
  };
35350
- CaseFieldBuilder.prototype.withHintText = function (hint_text) {
35351
- this.caseField.hint_text = hint_text;
35518
+ CaseFieldBuilder.prototype.withHintText = function (hintText) {
35519
+ this.caseField.hint_text = hintText;
35352
35520
  return this;
35353
35521
  };
35354
35522
  CaseFieldBuilder.prototype.withLabel = function (label) {
@@ -35359,12 +35527,12 @@
35359
35527
  this.caseField.order = order;
35360
35528
  return this;
35361
35529
  };
35362
- CaseFieldBuilder.prototype.withSecurityLabel = function (security_label) {
35363
- this.caseField.security_label = security_label;
35530
+ CaseFieldBuilder.prototype.withSecurityLabel = function (securityLabel) {
35531
+ this.caseField.security_label = securityLabel;
35364
35532
  return this;
35365
35533
  };
35366
- CaseFieldBuilder.prototype.withShowCondition = function (show_condition) {
35367
- this.caseField.show_condition = show_condition;
35534
+ CaseFieldBuilder.prototype.withShowCondition = function (showCondition) {
35535
+ this.caseField.show_condition = showCondition;
35368
35536
  return this;
35369
35537
  };
35370
35538
  CaseFieldBuilder.prototype.withShowSummaryContentOption = function (option) {
@@ -35392,21 +35560,21 @@
35392
35560
  complex_fields: []
35393
35561
  };
35394
35562
  };
35395
- var createCaseEventTrigger = function (id, name, case_id, show_summary, case_fields, wizard_pages, can_save_draft) {
35396
- if (wizard_pages === void 0) { wizard_pages = []; }
35397
- if (can_save_draft === void 0) { can_save_draft = false; }
35563
+ var createCaseEventTrigger = function (id, name, caseId, showSummary, caseFields, wizardPages, canSaveDraft) {
35564
+ if (wizardPages === void 0) { wizardPages = []; }
35565
+ if (canSaveDraft === void 0) { canSaveDraft = false; }
35398
35566
  var eventTrigger = new CaseEventTrigger();
35399
35567
  eventTrigger.id = id;
35400
35568
  eventTrigger.name = name;
35401
- eventTrigger.case_id = case_id;
35402
- eventTrigger.show_summary = show_summary;
35403
- eventTrigger.wizard_pages = wizard_pages;
35569
+ eventTrigger.case_id = caseId;
35570
+ eventTrigger.show_summary = showSummary;
35571
+ eventTrigger.wizard_pages = wizardPages;
35404
35572
  eventTrigger.event_token = 'test-token';
35405
- eventTrigger.case_fields = case_fields;
35406
- eventTrigger.can_save_draft = can_save_draft;
35573
+ eventTrigger.case_fields = caseFields;
35574
+ eventTrigger.can_save_draft = canSaveDraft;
35407
35575
  return eventTrigger;
35408
35576
  };
35409
- var aCaseField = function (id, label, type, display_context, show_summary_content_option, typeComplexFields, retain_hidden_value, hidden) {
35577
+ var aCaseField = function (id, label, type, displayContext, showSummaryContentOption, typeComplexFields, retainHiddenValue, hidden) {
35410
35578
  if (typeComplexFields === void 0) { typeComplexFields = []; }
35411
35579
  return ({
35412
35580
  id: id || 'personFirstName',
@@ -35415,10 +35583,10 @@
35415
35583
  type: type || 'Text',
35416
35584
  complex_fields: typeComplexFields || []
35417
35585
  },
35418
- display_context: display_context || 'OPTIONAL',
35586
+ display_context: displayContext || 'OPTIONAL',
35419
35587
  label: label || 'First name',
35420
- show_summary_content_option: show_summary_content_option,
35421
- retain_hidden_value: retain_hidden_value || false,
35588
+ show_summary_content_option: showSummaryContentOption,
35589
+ retain_hidden_value: retainHiddenValue || false,
35422
35590
  hidden: hidden || false
35423
35591
  });
35424
35592
  };
@@ -35460,48 +35628,48 @@
35460
35628
  complexFieldOverride.display_context = 'HIDDEN';
35461
35629
  return complexFieldOverride;
35462
35630
  };
35463
- var createCaseField = function (id, label, hint, fieldType, display_context, order, show_condition, ACLs, hidden) {
35631
+ var createCaseField = function (id, label, hint, fieldType, displayContext, order, showCondition, acls, hidden) {
35464
35632
  if (order === void 0) { order = undefined; }
35465
- if (show_condition === void 0) { show_condition = undefined; }
35466
- if (ACLs === void 0) { ACLs = undefined; }
35633
+ if (showCondition === void 0) { showCondition = undefined; }
35634
+ if (acls === void 0) { acls = undefined; }
35467
35635
  return CaseFieldBuilder.create()
35468
35636
  .withId(id || 'personFirstName')
35469
35637
  .withFieldType(fieldType || textFieldType())
35470
- .withDisplayContext(display_context || 'OPTIONAL')
35638
+ .withDisplayContext(displayContext || 'OPTIONAL')
35471
35639
  .withLabel(label || 'First name')
35472
35640
  .withHintText(hint || 'First name hint text')
35473
35641
  .withShowSummaryContentOption(0)
35474
35642
  .withOrder(order)
35475
- .withShowCondition(show_condition || undefined)
35476
- .withACLs(ACLs)
35643
+ .withShowCondition(showCondition || undefined)
35644
+ .withACLs(acls)
35477
35645
  .withHidden(hidden || false)
35478
35646
  .build();
35479
35647
  };
35480
- var newCaseField = function (id, label, hint, fieldType, display_context, order) {
35648
+ var newCaseField = function (id, label, hint, fieldType, displayContext, order) {
35481
35649
  if (order === void 0) { order = undefined; }
35482
35650
  return CaseFieldBuilder.create()
35483
35651
  .withId(id || 'personFirstName')
35484
35652
  .withFieldType(fieldType || textFieldType())
35485
- .withDisplayContext(display_context || 'OPTIONAL')
35653
+ .withDisplayContext(displayContext || 'OPTIONAL')
35486
35654
  .withHintText(hint || 'First name hint text')
35487
35655
  .withLabel(label || 'First name')
35488
35656
  .withOrder(order)
35489
35657
  .withShowSummaryContentOption(0);
35490
35658
  };
35491
- var createFieldType = function (typeId, type, complex_fields, collection_field_type) {
35492
- if (complex_fields === void 0) { complex_fields = []; }
35493
- if (collection_field_type === void 0) { collection_field_type = undefined; }
35659
+ var createFieldType = function (typeId, type, complexFields, collectionFieldType) {
35660
+ if (complexFields === void 0) { complexFields = []; }
35661
+ if (collectionFieldType === void 0) { collectionFieldType = undefined; }
35494
35662
  return {
35495
35663
  id: typeId || 'Text',
35496
35664
  type: type || 'Text',
35497
- complex_fields: complex_fields || [],
35498
- collection_field_type: collection_field_type || undefined
35665
+ complex_fields: complexFields || [],
35666
+ collection_field_type: collectionFieldType || undefined
35499
35667
  };
35500
35668
  };
35501
35669
  var createFixedListFieldType = function (typeId, fixedListItems) {
35502
35670
  if (fixedListItems === void 0) { fixedListItems = []; }
35503
35671
  return {
35504
- id: 'FixedList-' + typeId,
35672
+ id: "FixedList-" + typeId,
35505
35673
  type: 'FixedList',
35506
35674
  fixed_list_items: fixedListItems || []
35507
35675
  };
@@ -35509,18 +35677,18 @@
35509
35677
  var createMultiSelectListFieldType = function (typeId, fixedListItems) {
35510
35678
  if (fixedListItems === void 0) { fixedListItems = []; }
35511
35679
  return {
35512
- id: 'MultiSelectList-' + typeId,
35680
+ id: "MultiSelectList-" + typeId,
35513
35681
  type: 'MultiSelectList',
35514
35682
  fixed_list_items: fixedListItems || []
35515
35683
  };
35516
35684
  };
35517
- var createACL = function (role, create, read, update, _delete) {
35685
+ var createACL = function (role, aclCreate, aclRead, aclUpdate, aclDelete) {
35518
35686
  return ({
35519
35687
  role: role || 'roleX',
35520
- create: create,
35521
- read: read,
35522
- update: update,
35523
- delete: _delete
35688
+ create: aclCreate,
35689
+ read: aclRead,
35690
+ update: aclUpdate,
35691
+ delete: aclDelete
35524
35692
  });
35525
35693
  };
35526
35694
 
@@ -35620,7 +35788,6 @@
35620
35788
  exports.CaseField = CaseField;
35621
35789
  exports.CaseFieldService = CaseFieldService;
35622
35790
  exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
35623
- exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
35624
35791
  exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
35625
35792
  exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
35626
35793
  exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
@@ -35740,7 +35907,6 @@
35740
35907
  exports.FormatTranslatorService = FormatTranslatorService;
35741
35908
  exports.GreyBarService = GreyBarService;
35742
35909
  exports.HRef = HRef;
35743
- exports.HasLoadingState = HasLoadingState;
35744
35910
  exports.HeaderBarComponent = HeaderBarComponent;
35745
35911
  exports.HeadersModule = HeadersModule;
35746
35912
  exports.HttpError = HttpError;
@@ -35810,6 +35976,7 @@
35810
35976
  exports.ReadDateFieldComponent = ReadDateFieldComponent;
35811
35977
  exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
35812
35978
  exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
35979
+ exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
35813
35980
  exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
35814
35981
  exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
35815
35982
  exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
@@ -35886,6 +36053,7 @@
35886
36053
  exports.WriteDateFieldComponent = WriteDateFieldComponent;
35887
36054
  exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
35888
36055
  exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
36056
+ exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
35889
36057
  exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
35890
36058
  exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
35891
36059
  exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;