@hmcts/ccd-case-ui-toolkit 6.14.5-duplicate-tabs → 6.14.6-date-grey-bar

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 (239) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +761 -786
  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 +5 -3
  27. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +27 -25
  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 +12 -10
  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-label.component.js +1 -1
  39. package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -1
  40. package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
  41. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  42. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
  43. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  44. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  45. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +7 -7
  46. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +4 -3
  47. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +1 -1
  48. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +1 -1
  49. package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +4 -2
  50. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
  51. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  52. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  53. package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +4 -2
  54. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +2 -1
  55. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +5 -3
  56. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
  57. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
  58. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
  59. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  60. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  61. package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
  62. package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
  63. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  64. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  65. package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
  66. package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
  67. package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
  68. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  69. package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
  70. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  71. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +4 -3
  72. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +5 -9
  73. package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
  74. package/esm2015/lib/shared/domain/case-details.model.js +2 -1
  75. package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
  76. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
  77. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
  78. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
  79. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +2 -1
  80. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
  81. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
  82. package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
  83. package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
  84. package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
  85. package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
  86. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  87. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  88. package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
  89. package/esm2015/lib/shared/domain/definition/case-field.model.js +2 -1
  90. package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
  91. package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
  92. package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
  93. package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
  94. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  95. package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
  96. package/esm2015/lib/shared/domain/search/field.model.js +1 -1
  97. package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
  98. package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
  99. package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
  100. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  101. package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
  102. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  103. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  104. package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
  105. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  106. package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
  107. package/esm2015/lib/shared/services/activity/activity.service.js +9 -18
  108. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  109. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  110. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  111. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  112. package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
  113. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  114. package/esm2015/lib/shared/services/fields/fields.utils.js +5 -4
  115. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +2 -1
  116. package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
  117. package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
  118. package/esm2015/lib/shared/services/search/search.service.js +5 -10
  119. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  120. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  121. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +742 -761
  122. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  123. package/lib/app.config.d.ts +2 -0
  124. package/lib/app.config.d.ts.map +1 -1
  125. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  126. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  127. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  128. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
  129. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  130. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  131. package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
  132. 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
  133. 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
  134. package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
  135. package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
  136. package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
  137. package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -3
  138. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  139. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  140. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  141. package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
  142. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  143. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
  144. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  145. package/lib/shared/components/case-viewer/case-viewer.component.d.ts +2 -2
  146. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  147. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  148. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  149. package/lib/shared/components/error/domain/error-context.d.ts +2 -2
  150. package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
  151. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  152. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  153. package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
  154. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  155. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  156. package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
  157. package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
  158. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  159. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  160. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  161. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  162. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
  163. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  164. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  165. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  166. package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
  167. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  168. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  169. package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
  170. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  171. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  172. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  173. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  174. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  175. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  176. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  177. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  178. package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
  179. package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
  180. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  181. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  182. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  183. package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
  184. package/lib/shared/domain/case-details.model.d.ts.map +1 -1
  185. package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
  186. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
  187. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  188. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
  189. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  190. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  191. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  192. package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
  193. package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
  194. package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
  195. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  196. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
  197. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  198. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  199. package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
  200. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  201. package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
  202. package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
  203. package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
  204. package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
  205. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  206. package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
  207. package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
  208. package/lib/shared/domain/search/field.model.d.ts.map +1 -1
  209. package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
  210. package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
  211. package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
  212. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  213. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
  214. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
  215. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  216. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  217. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  218. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  219. package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
  220. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
  221. package/lib/shared/pipes/complex/index.d.ts +1 -1
  222. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  223. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  224. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  225. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  226. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  227. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  228. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  229. package/lib/shared/services/fields/fields.utils.d.ts +0 -1
  230. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  231. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  232. package/lib/shared/services/loading/loading.service.d.ts +1 -4
  233. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  234. package/lib/shared/services/search/search.service.d.ts +0 -2
  235. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  236. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  237. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  238. package/package.json +1 -1
  239. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +0 -1
@@ -579,22 +579,22 @@ class DateInputComponent {
579
579
  }
580
580
  }
581
581
  dayId() {
582
- return this.id + '-day';
582
+ return `${this.id}-day`;
583
583
  }
584
584
  monthId() {
585
- return this.id + '-month';
585
+ return `${this.id}-month`;
586
586
  }
587
587
  yearId() {
588
- return this.id + '-year';
588
+ return `${this.id}-year`;
589
589
  }
590
590
  hourId() {
591
- return this.id + '-hour';
591
+ return `${this.id}-hour`;
592
592
  }
593
593
  minuteId() {
594
- return this.id + '-minute';
594
+ return `${this.id}-minute`;
595
595
  }
596
596
  secondId() {
597
- return this.id + '-second';
597
+ return `${this.id}-second`;
598
598
  }
599
599
  viewValue() {
600
600
  if (this.day || this.month || this.year || this.hour || this.minute || this.second) {
@@ -609,7 +609,7 @@ class DateInputComponent {
609
609
  this.minute ? this.pad(this.minute) : '',
610
610
  this.second ? this.pad(this.second) : ''
611
611
  ].join(':');
612
- return date + 'T' + time + '.000';
612
+ return `${date}T${time}.000`;
613
613
  }
614
614
  else {
615
615
  return date;
@@ -1521,7 +1521,7 @@ class ActivityService {
1521
1521
  }
1522
1522
  static handleHttpError(response) {
1523
1523
  const error = HttpErrorService.convertToHttpError(response);
1524
- if (response.status && response.status !== error.status) {
1524
+ if ((response === null || response === void 0 ? void 0 : response.status) !== error.status) {
1525
1525
  error.status = response.status;
1526
1526
  }
1527
1527
  return error;
@@ -1529,50 +1529,41 @@ class ActivityService {
1529
1529
  getOptions() {
1530
1530
  const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
1531
1531
  const headers = new HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
1532
- const options = {
1532
+ return {
1533
1533
  headers,
1534
1534
  withCredentials: true,
1535
1535
  observe: 'body',
1536
1536
  };
1537
- return options;
1538
1537
  }
1539
1538
  getActivities(...caseId) {
1540
1539
  try {
1541
1540
  const options = this.getOptions();
1542
- const url = this.activityUrl() + `/cases/${caseId.join(',')}/activity`;
1541
+ const url = `${this.activityUrl()}/cases/${caseId.join(',')}/activity`;
1543
1542
  return this.http
1544
1543
  .get(url, options, false, ActivityService.handleHttpError)
1545
1544
  .pipe(map(response => response));
1546
1545
  }
1547
1546
  catch (error) {
1548
- console.log('user may not be authenticated.' + error);
1547
+ console.log(`user may not be authenticated.${error}`);
1549
1548
  }
1550
1549
  }
1551
1550
  postActivity(caseId, activity) {
1552
1551
  try {
1553
1552
  const options = this.getOptions();
1554
- const url = this.activityUrl() + `/cases/${caseId}/activity`;
1553
+ const url = `${this.activityUrl()}/cases/${caseId}/activity`;
1555
1554
  const body = { activity };
1556
1555
  return this.http
1557
1556
  .post(url, body, options, false)
1558
1557
  .pipe(map(response => response));
1559
1558
  }
1560
1559
  catch (error) {
1561
- console.log('user may not be authenticated.' + error);
1560
+ console.log(`user may not be authenticated.${error}`);
1562
1561
  }
1563
1562
  }
1564
1563
  verifyUserIsAuthorized() {
1565
- if (this.sessionStorageService.getItem('userDetails') === undefined) {
1566
- return;
1567
- }
1568
- if (this.activityUrl() && this.userAuthorised === undefined) {
1564
+ if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
1569
1565
  this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(() => this.userAuthorised = true, error => {
1570
- if ([401, 403].indexOf(error.status) > -1) {
1571
- this.userAuthorised = false;
1572
- }
1573
- else {
1574
- this.userAuthorised = true;
1575
- }
1566
+ this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
1576
1567
  });
1577
1568
  }
1578
1569
  }
@@ -1671,7 +1662,7 @@ class ActivityPollingService {
1671
1662
  requests.get(activity.caseId).next(activity);
1672
1663
  });
1673
1664
  }, (err) => {
1674
- console.log('error: ' + err);
1665
+ console.log(`error: ${err}`);
1675
1666
  Array.from(requests.values()).forEach((subject) => subject.error(err));
1676
1667
  }));
1677
1668
  });
@@ -1792,9 +1783,9 @@ class ActivityComponent {
1792
1783
  }
1793
1784
  generateDescription(prefix, suffix, namesArray, unknownCount) {
1794
1785
  let resultText = prefix;
1795
- resultText += namesArray.map(activityInfo => activityInfo.forename + ' ' + activityInfo.surname).join(', ');
1786
+ resultText += namesArray.map(activityInfo => `${activityInfo.forename} ${activityInfo.surname}`).join(', ');
1796
1787
  if (unknownCount > 0) {
1797
- resultText += (namesArray.length > 0 ? ' and ' + unknownCount + ' other' : unknownCount + ' user');
1788
+ resultText += (namesArray.length > 0 ? ` and ${unknownCount} other` : `${unknownCount} user`);
1798
1789
  resultText += (unknownCount > 1 ? 's' : '');
1799
1790
  }
1800
1791
  else {
@@ -1802,10 +1793,10 @@ class ActivityComponent {
1802
1793
  }
1803
1794
  if (suffix.length > 0) {
1804
1795
  if (namesArray.length + unknownCount > 1) {
1805
- resultText += ' are ' + suffix;
1796
+ resultText += ` are ${suffix}`;
1806
1797
  }
1807
1798
  else {
1808
- resultText += ' is ' + suffix;
1799
+ resultText += ` is ${suffix}`;
1809
1800
  }
1810
1801
  }
1811
1802
  return resultText;
@@ -2318,7 +2309,7 @@ class FormatTranslatorService {
2318
2309
  break;
2319
2310
  case 'n':
2320
2311
  case 'N':
2321
- maybePush(result, '***' + c + '***', inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2312
+ maybePush(result, `***${c}***`, inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2322
2313
  break;
2323
2314
  case 'V':
2324
2315
  case 'O':
@@ -2441,9 +2432,9 @@ class DatePipe {
2441
2432
  resultDate = `${offsetDate.getDate()} ${DatePipe.MONTHS[offsetDate.getMonth()]} ${offsetDate.getFullYear()}`;
2442
2433
  if (match[4] && match[5] && match[6] && format !== 'short') {
2443
2434
  resultDate += ', ';
2444
- resultDate += this.getHour(offsetDate.getHours().toString()) + ':';
2445
- resultDate += this.pad(offsetDate.getMinutes()) + ':';
2446
- resultDate += this.pad(offsetDate.getSeconds()) + ' ';
2435
+ resultDate += `${this.getHour(offsetDate.getHours().toString())}:`;
2436
+ resultDate += `${this.pad(offsetDate.getMinutes())}:`;
2437
+ resultDate += `${this.pad(offsetDate.getSeconds())} `;
2447
2438
  resultDate += (this.toInt(offsetDate.getHours().toString()) >= 12) ? 'PM' : 'AM';
2448
2439
  }
2449
2440
  }
@@ -2778,6 +2769,7 @@ PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
2778
2769
  }]
2779
2770
  }], null, null); })();
2780
2771
 
2772
+ // tslint:disable:variable-name
2781
2773
  class AddressModel {
2782
2774
  constructor() {
2783
2775
  this.AddressLine1 = '';
@@ -3049,6 +3041,7 @@ __decorate([
3049
3041
  __metadata("design:type", Array)
3050
3042
  ], CaseEventTrigger.prototype, "wizard_pages", void 0);
3051
3043
 
3044
+ // tslint:disable:variable-name
3052
3045
  class CaseViewEvent {
3053
3046
  }
3054
3047
 
@@ -3075,6 +3068,7 @@ __decorate([
3075
3068
  __metadata("design:type", Array)
3076
3069
  ], CaseType.prototype, "case_fields", void 0);
3077
3070
 
3071
+ // tslint:disable:variable-name
3078
3072
  class EventCaseField {
3079
3073
  }
3080
3074
 
@@ -3107,6 +3101,7 @@ __decorate([
3107
3101
  class CasePrintDocument {
3108
3102
  }
3109
3103
 
3104
+ // tslint:disable:variable-name
3110
3105
  class HRef {
3111
3106
  }
3112
3107
  class DocumentLinks {
@@ -3124,25 +3119,25 @@ class OrganisationConverter {
3124
3119
  static toSimpleAddress(organisationModel) {
3125
3120
  let simpleAddress = '';
3126
3121
  if (organisationModel.addressLine1) {
3127
- simpleAddress += organisationModel.addressLine1 + '<br>';
3122
+ simpleAddress += `${organisationModel.addressLine1}<br>`;
3128
3123
  }
3129
3124
  if (organisationModel.addressLine2) {
3130
- simpleAddress += organisationModel.addressLine2 + '<br>';
3125
+ simpleAddress += `${organisationModel.addressLine2}<br>`;
3131
3126
  }
3132
3127
  if (organisationModel.addressLine3) {
3133
- simpleAddress += organisationModel.addressLine3 + '<br>';
3128
+ simpleAddress += `${organisationModel.addressLine3}<br>`;
3134
3129
  }
3135
3130
  if (organisationModel.townCity) {
3136
- simpleAddress += organisationModel.townCity + '<br>';
3131
+ simpleAddress += `${organisationModel.townCity}<br>`;
3137
3132
  }
3138
3133
  if (organisationModel.county) {
3139
- simpleAddress += organisationModel.county + '<br>';
3134
+ simpleAddress += `${organisationModel.county}<br>`;
3140
3135
  }
3141
3136
  if (organisationModel.country) {
3142
- simpleAddress += organisationModel.country + '<br>';
3137
+ simpleAddress += `${organisationModel.country}<br>`;
3143
3138
  }
3144
3139
  if (organisationModel.postCode) {
3145
- simpleAddress += organisationModel.postCode + '<br>';
3140
+ simpleAddress += `${organisationModel.postCode}<br>`;
3146
3141
  }
3147
3142
  return simpleAddress;
3148
3143
  }
@@ -3225,20 +3220,15 @@ __decorate([
3225
3220
  __metadata("design:type", Array)
3226
3221
  ], SearchResultView.prototype, "results", void 0);
3227
3222
 
3223
+ // tslint:disable:variable-name
3228
3224
  class CaseDetails {
3229
3225
  }
3230
3226
 
3227
+ // tslint:disable:variable-name
3231
3228
  class CaseEventData {
3232
3229
  }
3233
3230
 
3234
3231
  class WorkbasketInputModel {
3235
- constructor(label, order, field, metadata, display_context_parameter) {
3236
- this.label = label;
3237
- this.order = order;
3238
- this.field = field;
3239
- this.metadata = metadata;
3240
- this.display_context_parameter = display_context_parameter;
3241
- }
3242
3232
  }
3243
3233
  class WorkbasketInput {
3244
3234
  }
@@ -3275,9 +3265,9 @@ class FieldsUtils {
3275
3265
  });
3276
3266
  return valueMap;
3277
3267
  }
3278
- static getType(elem) {
3279
- return Object.prototype.toString.call(elem).slice(8, -1);
3280
- }
3268
+ // public static getType(elem: any): string {
3269
+ // return Object.prototype.toString.call(elem).slice(8, -1);
3270
+ // }
3281
3271
  static isObject(elem) {
3282
3272
  return typeof elem === 'object' && elem !== null;
3283
3273
  }
@@ -3777,6 +3767,7 @@ FieldsUtils.LABEL_MERGE_FUNCTION = function mergeFunction(field, result) {
3777
3767
  const elements = (result[field.id] || field.value);
3778
3768
  if (elements) {
3779
3769
  elements.forEach((elem) => {
3770
+ // tslint:disable-next-line:switch-default
3780
3771
  switch (field.field_type.collection_field_type.type) {
3781
3772
  case 'MoneyGBP': {
3782
3773
  elem.value = FieldsUtils.getMoneyGBP(elem.value);
@@ -3921,7 +3912,6 @@ class ConditionParser {
3921
3912
  if (!condition) {
3922
3913
  return null;
3923
3914
  }
3924
- ;
3925
3915
  condition = condition.replace(/CONTAINS/g, ' CONTAINS');
3926
3916
  return peg.parse(condition.trim(), {});
3927
3917
  }
@@ -3934,14 +3924,12 @@ class ConditionParser {
3934
3924
  if (!conditions || conditions.length === 0) {
3935
3925
  return true;
3936
3926
  }
3937
- ;
3938
3927
  const validJoinComparators = ['AND', 'OR'];
3939
- const result = conditions.reduce((accumulator, condition, index) => {
3928
+ return conditions.reduce((accumulator, condition, index) => {
3940
3929
  const isJoinComparator = (comparator) => (typeof comparator === 'string' && validJoinComparators.indexOf(comparator) !== -1);
3941
3930
  if (isJoinComparator(condition)) {
3942
3931
  return accumulator;
3943
3932
  }
3944
- ;
3945
3933
  let currentConditionResult = true;
3946
3934
  if (Array.isArray(condition)) {
3947
3935
  currentConditionResult = this.evaluate(fields, condition);
@@ -3958,9 +3946,9 @@ class ConditionParser {
3958
3946
  }
3959
3947
  return currentConditionResult;
3960
3948
  }, true);
3961
- return result;
3962
3949
  }
3963
3950
  static evaluateJoin(leftResult, comparator, rightResult) {
3951
+ // tslint:disable-next-line:switch-default
3964
3952
  switch (comparator) {
3965
3953
  case 'OR': return leftResult || rightResult;
3966
3954
  case 'AND': return leftResult && rightResult;
@@ -4050,8 +4038,7 @@ class ConditionParser {
4050
4038
  }
4051
4039
  }
4052
4040
  static unquoted(str) {
4053
- const res = str.replace(/^"|"$/g, '');
4054
- return res;
4041
+ return str.replace(/^"|"$/g, '');
4055
4042
  }
4056
4043
  static findValueForComplexCondition(fields, head, tail, path) {
4057
4044
  if (!fields) {
@@ -4163,8 +4150,8 @@ class ShowCondition {
4163
4150
  if (originalCondition.indexOf(condition.fieldReference) > -1) {
4164
4151
  if (this.processedList && this.processedList.indexOf(condition.fieldReference) === -1) {
4165
4152
  this.processedList.push(condition.fieldReference);
4166
- const regularExp = new RegExp('(\\b)' + condition.fieldReference + '(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)', 'g');
4167
- return originalCondition.replace(regularExp, pathPrefix + '.' + condition.fieldReference);
4153
+ const regularExp = new RegExp(`(\\b)${condition.fieldReference}(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)`, 'g');
4154
+ return originalCondition.replace(regularExp, `${pathPrefix}.${condition.fieldReference}`);
4168
4155
  }
4169
4156
  else {
4170
4157
  return originalCondition;
@@ -4241,6 +4228,7 @@ class ShowCondition {
4241
4228
  }
4242
4229
  // Consider what type of field this is.
4243
4230
  const ft = caseField.field_type;
4231
+ // tslint:disable-next-line:switch-default
4244
4232
  switch (ft.type) {
4245
4233
  case 'Collection':
4246
4234
  if (ft.collection_field_type.type === 'Complex' && ft.collection_field_type.complex_fields) {
@@ -4686,14 +4674,14 @@ class FieldsPurger {
4686
4674
  const formFields = form.getRawValue();
4687
4675
  const currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
4688
4676
  currentPage.wizard_page_fields.forEach(wpf => {
4689
- const case_field = this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
4690
- if (this.hasShowConditionField(case_field, formFields)) {
4691
- const condition = new ShowCondition(case_field.show_condition);
4692
- if (this.isHidden(condition, formFields.data) && !(this.isReadonly(case_field))) {
4693
- this.resetField(form, case_field);
4677
+ const caseField = this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
4678
+ if (this.hasShowConditionField(caseField, formFields)) {
4679
+ const condition = new ShowCondition(caseField.show_condition);
4680
+ if (this.isHidden(condition, formFields.data) && !(this.isReadonly(caseField))) {
4681
+ this.resetField(form, caseField);
4694
4682
  }
4695
4683
  }
4696
- this.retainHiddenValueByFieldType(case_field, form);
4684
+ this.retainHiddenValueByFieldType(caseField, form);
4697
4685
  });
4698
4686
  }
4699
4687
  retainHiddenValueByFieldType(field, form) {
@@ -4724,13 +4712,13 @@ class FieldsPurger {
4724
4712
  hasShowConditionPage(wizardPage, formFields) {
4725
4713
  return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
4726
4714
  }
4727
- hasShowConditionField(case_field, formFields) {
4728
- return case_field.show_condition && formFields.data[this.getShowConditionKey(case_field.show_condition)];
4715
+ hasShowConditionField(caseField, formFields) {
4716
+ return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
4729
4717
  }
4730
- getShowConditionKey(show_condition) {
4718
+ getShowConditionKey(showCondition) {
4731
4719
  // Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
4732
4720
  // Also need to allow for conditions specified using the "CONTAINS" keyword
4733
- return show_condition.split(/!=|=|CONTAINS/)[0];
4721
+ return showCondition.split(/!=|=|CONTAINS/)[0];
4734
4722
  }
4735
4723
  resetField(form, field) {
4736
4724
  /**
@@ -4802,8 +4790,8 @@ class FieldsPurger {
4802
4790
  }
4803
4791
  resetPage(form, wizardPage) {
4804
4792
  wizardPage.wizard_page_fields.forEach(wpf => {
4805
- const case_field = this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
4806
- this.resetField(form, case_field);
4793
+ const caseField = this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
4794
+ this.resetField(form, caseField);
4807
4795
  });
4808
4796
  }
4809
4797
  getType(elem) {
@@ -4813,8 +4801,8 @@ class FieldsPurger {
4813
4801
  return this.getType(elem) === 'Object';
4814
4802
  }
4815
4803
  // TODO: call isReadOnly on CaseFields once we make it available
4816
- isReadonly(case_field) {
4817
- return case_field.display_context.toUpperCase() === 'READONLY';
4804
+ isReadonly(caseField) {
4805
+ return caseField.display_context.toUpperCase() === 'READONLY';
4818
4806
  }
4819
4807
  /**
4820
4808
  * Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
@@ -4970,6 +4958,7 @@ class FieldTypeSanitiser {
4970
4958
  return;
4971
4959
  }
4972
4960
  caseFields.forEach(caseField => {
4961
+ // tslint:disable-next-line:switch-default
4973
4962
  switch (caseField.field_type.type) {
4974
4963
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
4975
4964
  this.convertArrayToDynamicListOutput(caseField, data);
@@ -5546,7 +5535,6 @@ class FormValueService {
5546
5535
  });
5547
5536
  }
5548
5537
  }
5549
- ;
5550
5538
  });
5551
5539
  }
5552
5540
  }
@@ -5960,7 +5948,7 @@ class AddressParser {
5960
5948
  return addressModel;
5961
5949
  }
5962
5950
  parseAddressLine1(classification, address) {
5963
- let addressLine = '';
5951
+ let addressLine;
5964
5952
  if (classification === AddressType.RD06) {
5965
5953
  addressLine =
5966
5954
  `${address.SUB_BUILDING_NAME} ${address.ORGANISATION_NAME} ${address.DEPARTMENT_NAME} ${address.PO_BOX_NUMBER}`;
@@ -5973,7 +5961,7 @@ class AddressParser {
5973
5961
  return this.removeNonAddressValues(addressLine);
5974
5962
  }
5975
5963
  parseAddressLine2(classification, address) {
5976
- let addressLine = '';
5964
+ let addressLine;
5977
5965
  if (classification === AddressType.RD06) {
5978
5966
  addressLine = `${address.BUILDING_NAME} `;
5979
5967
  }
@@ -5984,7 +5972,7 @@ class AddressParser {
5984
5972
  return this.removeNonAddressValues(addressLine);
5985
5973
  }
5986
5974
  parseAddressLine3(classification, address) {
5987
- let addressLine = '';
5975
+ let addressLine;
5988
5976
  if (classification === AddressType.RD06) {
5989
5977
  addressLine =
5990
5978
  `${address.BUILDING_NUMBER} ${address.THOROUGHFARE_NAME}`;
@@ -6012,7 +6000,7 @@ class AddressParser {
6012
6000
  return value.replace(new RegExp('^,', 'gi'), '');
6013
6001
  }
6014
6002
  prefixWithCommaIfPresent(value) {
6015
- return value ? ', ' + value : value;
6003
+ return value ? `, ${value}` : value;
6016
6004
  }
6017
6005
  }
6018
6006
 
@@ -6121,7 +6109,7 @@ class CaseFlagRefdataService {
6121
6109
  if (flagType) {
6122
6110
  url += `?flag-type=${flagType}`;
6123
6111
  }
6124
- if (welshRequired != null) {
6112
+ if (typeof welshRequired === 'boolean') {
6125
6113
  // Check if flag-type has been added to the query string; if so, append welsh-required with '&'
6126
6114
  url.indexOf('?') > -1 ? url += '&' : url += '?';
6127
6115
  welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
@@ -6578,11 +6566,6 @@ RequestOptionsBuilder.ɵprov = i0.ɵɵdefineInjectable({ token: RequestOptionsBu
6578
6566
  type: Injectable
6579
6567
  }], null, null); })();
6580
6568
 
6581
- class HasLoadingState {
6582
- get isLoading() {
6583
- return;
6584
- }
6585
- }
6586
6569
  class LoadingService {
6587
6570
  constructor() {
6588
6571
  this.registered = new Map();
@@ -6603,7 +6586,7 @@ class LoadingService {
6603
6586
  }
6604
6587
  generateToken() {
6605
6588
  const timestamp = window.performance.now();
6606
- return 'toolkit-loading-' + timestamp; // format: [source-library]-[unique incrementing number]
6589
+ return `toolkit-loading-${timestamp}`; // format: [source-library]-[unique incrementing number]
6607
6590
  }
6608
6591
  }
6609
6592
  LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
@@ -6620,10 +6603,7 @@ class SearchService {
6620
6603
  this.loadingService = loadingService;
6621
6604
  }
6622
6605
  search(jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
6623
- const url = this.appConfig.getApiUrl() + `/caseworkers/:uid`
6624
- + `/jurisdictions/${jurisdictionId}`
6625
- + `/case-types/${caseTypeId}`
6626
- + `/cases`;
6606
+ const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases`;
6627
6607
  const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
6628
6608
  const loadingToken = this.loadingService.register();
6629
6609
  return this.httpService
@@ -6631,14 +6611,13 @@ class SearchService {
6631
6611
  .pipe(map(response => response), finalize(() => this.loadingService.unregister(loadingToken)));
6632
6612
  }
6633
6613
  searchCasesByIds(caseTypeId, filter, view, sort) {
6634
- const url = this.appConfig.getCaseDataUrl() +
6635
- `/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
6614
+ const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
6636
6615
  const body = Object.assign(Object.assign({ sort }, filter), { size: this.appConfig.getPaginationPageSize() });
6637
6616
  const loadingToken = this.loadingService.register();
6638
6617
  return this.httpService.post(url, body).pipe(map((response) => response), finalize(() => this.loadingService.unregister(loadingToken)));
6639
6618
  }
6640
6619
  searchCases(caseTypeId, metaCriteria, caseCriteria, view, sort) {
6641
- const url = this.appConfig.getCaseDataUrl() + `/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
6620
+ const url = `${this.appConfig.getCaseDataUrl()}/internal/searchCases?ctid=${caseTypeId}&use_case=${view}`;
6642
6621
  const options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
6643
6622
  const body = {
6644
6623
  sort,
@@ -6681,9 +6660,8 @@ class SearchService {
6681
6660
  }
6682
6661
  }
6683
6662
  SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
6684
- SearchService.VIEW_SEARCH = 'SEARCH';
6663
+ // public static readonly VIEW_SEARCH = 'SEARCH';
6685
6664
  SearchService.VIEW_WORKBASKET = 'WORKBASKET';
6686
- SearchService.FIELD_PREFIX = 'case.';
6687
6665
  SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpService), i0.ɵɵinject(RequestOptionsBuilder), i0.ɵɵinject(LoadingService)); };
6688
6666
  SearchService.ɵprov = i0.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
6689
6667
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchService, [{
@@ -6797,17 +6775,12 @@ class DefinitionsService {
6797
6775
  this.appConfig = appConfig;
6798
6776
  }
6799
6777
  getCaseTypes(jurisdictionId, access) {
6800
- const url = this.appConfig.getApiUrl()
6801
- + `/caseworkers/:uid`
6802
- + `/jurisdictions/${jurisdictionId}`
6803
- + `/case-types?access=${access}`;
6778
+ const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types?access=${access}`;
6804
6779
  return this.http
6805
6780
  .get(url).pipe(map(response => response));
6806
6781
  }
6807
6782
  getJurisdictions(access) {
6808
- const url = this.appConfig.getApiUrl()
6809
- + `/caseworkers/:uid`
6810
- + `/jurisdictions?access=${access}`;
6783
+ const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions?access=${access}`;
6811
6784
  return this.http
6812
6785
  .get(url)
6813
6786
  .pipe(map(response => response));
@@ -6879,8 +6852,8 @@ class SearchResultViewItemComparatorFactory {
6879
6852
  compare(a, b) {
6880
6853
  let fieldA = a.case_fields[fieldId];
6881
6854
  let fieldB = b.case_fields[fieldId];
6882
- fieldA = isUndefined(fieldA) || fieldA == null ? '' : fieldA.toLowerCase();
6883
- fieldB = isUndefined(fieldB) || fieldB == null ? '' : fieldB.toLowerCase();
6855
+ fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
6856
+ fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
6884
6857
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
6885
6858
  }
6886
6859
  };
@@ -6890,8 +6863,8 @@ class SearchResultViewItemComparatorFactory {
6890
6863
  compare(a, b) {
6891
6864
  let fieldA = a.case_fields[fieldId];
6892
6865
  let fieldB = b.case_fields[fieldId];
6893
- fieldA = isUndefined(fieldA) || fieldA == null ? '' : fieldA.join().toLowerCase();
6894
- fieldB = isUndefined(fieldB) || fieldB == null ? '' : fieldB.join().toLowerCase();
6866
+ fieldA = isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
6867
+ fieldB = isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
6895
6868
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
6896
6869
  }
6897
6870
  };
@@ -7120,31 +7093,31 @@ class WizardPageFieldToCaseFieldMapper {
7120
7093
  }
7121
7094
  processComplexFieldOverride(override, caseField, caseFields) {
7122
7095
  const caseFieldIds = override.complex_field_element_id.split('.');
7123
- let case_field_leaf;
7096
+ let caseFieldLeaf;
7124
7097
  const children = this.getCaseFieldChildren(caseField);
7125
7098
  if (children.length > 0) {
7126
7099
  const [_, ...tail] = caseFieldIds;
7127
- case_field_leaf = this.getCaseFieldLeaf(tail, children);
7100
+ caseFieldLeaf = this.getCaseFieldLeaf(tail, children);
7128
7101
  }
7129
7102
  else {
7130
- case_field_leaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
7103
+ caseFieldLeaf = this.getCaseFieldLeaf(caseFieldIds, caseFields);
7131
7104
  }
7132
7105
  if (override.display_context !== 'HIDDEN') {
7133
- case_field_leaf.hidden = false;
7134
- case_field_leaf.display_context = override.display_context;
7106
+ caseFieldLeaf.hidden = false;
7107
+ caseFieldLeaf.display_context = override.display_context;
7135
7108
  if (override.label && override.label.length > 0) {
7136
- case_field_leaf.label = override.label;
7109
+ caseFieldLeaf.label = override.label;
7137
7110
  }
7138
7111
  if (override.hint_text && override.hint_text.length > 0) {
7139
- case_field_leaf.hint_text = override.hint_text;
7112
+ caseFieldLeaf.hint_text = override.hint_text;
7140
7113
  }
7141
7114
  if (override.show_condition && override.show_condition.length > 0) {
7142
- case_field_leaf.show_condition = override.show_condition;
7115
+ caseFieldLeaf.show_condition = override.show_condition;
7143
7116
  }
7144
7117
  }
7145
7118
  else {
7146
- case_field_leaf.hidden = true;
7147
- case_field_leaf.display_context = override.display_context;
7119
+ caseFieldLeaf.hidden = true;
7120
+ caseFieldLeaf.display_context = override.display_context;
7148
7121
  }
7149
7122
  }
7150
7123
  fixShowConditionPath(caseField, pathPrefix) {
@@ -7157,7 +7130,7 @@ class WizardPageFieldToCaseFieldMapper {
7157
7130
  });
7158
7131
  }
7159
7132
  preparePathPrefix(pathPrefix, caseField) {
7160
- return pathPrefix.length === 0 ? caseField : pathPrefix + '.' + caseField;
7133
+ return pathPrefix.length === 0 ? caseField : `${pathPrefix}.${caseField}`;
7161
7134
  }
7162
7135
  getCaseFieldLeaf(caseFieldId, caseFields) {
7163
7136
  const [head, ...tail] = caseFieldId;
@@ -7210,215 +7183,13 @@ WizardPageFieldToCaseFieldMapper.ɵprov = i0.ɵɵdefineInjectable({ token: Wizar
7210
7183
  }]
7211
7184
  }], null, null); })();
7212
7185
 
7213
- const MULTIPLE_TASKS_FOUND = 'More than one task found!';
7214
- class WorkAllocationService {
7215
- constructor(http, appConfig, errorService, alertService, sessionStorageService) {
7216
- this.http = http;
7217
- this.appConfig = appConfig;
7218
- this.errorService = errorService;
7219
- this.alertService = alertService;
7220
- this.sessionStorageService = sessionStorageService;
7221
- // Check to see if work allocation is enabled
7222
- }
7223
- /**
7224
- * Call the API to get tasks matching the search criteria.
7225
- * @param searchRequest The search parameters that specify which tasks to match.
7226
- */
7227
- searchTasks(searchRequest) {
7228
- // Do not need to check if WA enabled as parent method will do that
7229
- const url = `${this.appConfig.getWorkAllocationApiUrl()}/searchForCompletable`;
7230
- return this.http
7231
- .post(url, { searchRequest }, null, false)
7232
- .pipe(map(response => response), catchError(error => {
7233
- this.errorService.setError(error);
7234
- // explicitly eat away 401 error and 400 error
7235
- if (error && error.status && (error.status === 401 || error.status === 400)) {
7236
- // do nothing
7237
- console.log('error status 401 or 400', error);
7238
- }
7239
- else {
7240
- return throwError(error);
7241
- }
7242
- }));
7243
- }
7244
- isWAEnabled(jurisdiction, caseType) {
7245
- this.features = this.appConfig.getWAServiceConfig();
7246
- let enabled = false;
7247
- if (!jurisdiction || !caseType) {
7248
- const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
7249
- jurisdiction = caseInfo.jurisdiction;
7250
- caseType = caseInfo.caseType;
7251
- }
7252
- if (!this.features || !this.features.configurations) {
7253
- return false;
7254
- }
7255
- this.features.configurations.forEach(serviceConfig => {
7256
- if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
7257
- enabled = true;
7258
- }
7259
- });
7260
- return enabled;
7261
- }
7262
- /**
7263
- * Call the API to assign a task.
7264
- * @param taskId specifies which task should be assigned.
7265
- * @param userId specifies the user the task should be assigned to.
7266
- */
7267
- assignTask(taskId, userId) {
7268
- if (!this.isWAEnabled()) {
7269
- return of(null);
7270
- }
7271
- const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/assign`;
7272
- return this.http
7273
- .post(url, { userId })
7274
- .pipe(catchError(error => {
7275
- this.errorService.setError(error);
7276
- return throwError(error);
7277
- }));
7278
- }
7279
- /**
7280
- * Call the API to complete a task.
7281
- * @param taskId specifies which task should be completed.
7282
- */
7283
- completeTask(taskId) {
7284
- if (!this.isWAEnabled()) {
7285
- return of(null);
7286
- }
7287
- const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
7288
- return this.http
7289
- .post(url, {})
7290
- .pipe(catchError(error => {
7291
- this.errorService.setError(error);
7292
- // this will subscribe to get the user details and decide whether to display an error message
7293
- this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
7294
- this.handleTaskCompletionError(response);
7295
- });
7296
- return throwError(error);
7297
- }));
7298
- }
7299
- /**
7300
- * Call the API to assign and complete a task.
7301
- * @param taskId specifies which task should be completed.
7302
- */
7303
- assignAndCompleteTask(taskId) {
7304
- if (!this.isWAEnabled()) {
7305
- return of(null);
7306
- }
7307
- const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
7308
- return this.http
7309
- .post(url, {
7310
- completion_options: {
7311
- assign_and_complete: true
7312
- }
7313
- })
7314
- .pipe(catchError(error => {
7315
- this.errorService.setError(error);
7316
- // this will subscribe to get the user details and decide whether to display an error message
7317
- this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
7318
- this.handleTaskCompletionError(response);
7319
- });
7320
- return throwError(error);
7321
- }));
7322
- }
7323
- /**
7324
- * Handles the response from the observable to get the user details when task is completed.
7325
- * @param response is the response given from the observable which contains the user detaild.
7326
- */
7327
- handleTaskCompletionError(response) {
7328
- const userDetails = response;
7329
- if (this.userIsCaseworker(userDetails.userInfo.roles)) {
7330
- // when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
7331
- this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
7332
- this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
7333
- }
7334
- }
7335
- /**
7336
- * Returns true if the user's role is equivalent to a caseworker.
7337
- * @param roles is the list of roles found from the current user.
7338
- */
7339
- userIsCaseworker(roles) {
7340
- const lowerCaseRoles = roles.map(role => role.toLowerCase());
7341
- // When/if lib & target permanently change to es2016, replace indexOf with includes
7342
- return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
7343
- || (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
7344
- }
7345
- /**
7346
- * Look for open tasks for a case and event combination. There are 5 possible scenarios:
7347
- * 1. No tasks found => Success.
7348
- * 2. One task found => Mark as done => Success.
7349
- * 3. One task found => Mark as done throws error => Failure.
7350
- * 4. More than one task found => Failure.
7351
- * 5. Search call throws an error => Failure.
7352
- * @param ccdId The ID of the case to find tasks for.
7353
- * @param eventId The ID of the event to find tasks for.
7354
- */
7355
- completeAppropriateTask(ccdId, eventId, jurisdiction, caseTypeId) {
7356
- if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
7357
- return of(null);
7358
- }
7359
- const taskSearchParameter = {
7360
- ccdId,
7361
- eventId,
7362
- jurisdiction,
7363
- caseTypeId
7364
- };
7365
- return this.searchTasks(taskSearchParameter)
7366
- .pipe(map((response) => {
7367
- const tasks = response.tasks;
7368
- if (tasks && tasks.length > 0) {
7369
- if (tasks.length === 1) {
7370
- this.completeTask(tasks[0].id).subscribe();
7371
- }
7372
- else {
7373
- // This is a problem. Throw an appropriate error.
7374
- throw new Error(MULTIPLE_TASKS_FOUND);
7375
- }
7376
- }
7377
- return true; // All good. Nothing to see here.
7378
- }), catchError(error => {
7379
- // Simply rethrow it.
7380
- return throwError(error);
7381
- }));
7382
- }
7383
- /**
7384
- * Return tasks for case and event.
7385
- */
7386
- getTasksByCaseIdAndEventId(eventId, caseId, caseType, jurisdiction) {
7387
- const defaultPayload = {
7388
- task_required_for_event: false,
7389
- tasks: []
7390
- };
7391
- if (!this.isWAEnabled()) {
7392
- return of(defaultPayload);
7393
- }
7394
- return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/case/tasks/${caseId}/event/${eventId}/caseType/${caseType}/jurisdiction/${jurisdiction}`);
7395
- }
7396
- /**
7397
- * Call the API to get a task
7398
- */
7399
- getTask(taskId) {
7400
- if (!this.isWAEnabled()) {
7401
- return of({ task: null });
7402
- }
7403
- return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}`);
7404
- }
7405
- }
7406
- WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
7407
- WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
7408
- WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(AlertService), i0.ɵɵinject(SessionStorageService)); };
7409
- WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
7410
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkAllocationService, [{
7411
- type: Injectable
7412
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null); })();
7413
-
7414
7186
  class CasesService {
7415
- constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, workAllocationService, loadingService, sessionStorageService) {
7187
+ constructor(http, appConfig, orderService, errorService, wizardPageFieldToCaseFieldMapper, loadingService, sessionStorageService) {
7416
7188
  this.http = http;
7417
7189
  this.appConfig = appConfig;
7418
7190
  this.orderService = orderService;
7419
7191
  this.errorService = errorService;
7420
7192
  this.wizardPageFieldToCaseFieldMapper = wizardPageFieldToCaseFieldMapper;
7421
- this.workAllocationService = workAllocationService;
7422
7193
  this.loadingService = loadingService;
7423
7194
  this.sessionStorageService = sessionStorageService;
7424
7195
  this.get = this.getCaseView;
@@ -7436,11 +7207,7 @@ class CasesService {
7436
7207
  });
7437
7208
  }
7438
7209
  getCaseView(jurisdictionId, caseTypeId, caseId) {
7439
- const url = this.appConfig.getApiUrl()
7440
- + `/caseworkers/:uid`
7441
- + `/jurisdictions/${jurisdictionId}`
7442
- + `/case-types/${caseTypeId}`
7443
- + `/cases/${caseId}`;
7210
+ const url = `${this.appConfig.getApiUrl()}/caseworkers/:uid/jurisdictions/${jurisdictionId}/case-types/${caseTypeId}/cases/${caseId}`;
7444
7211
  const loadingToken = this.loadingService.register();
7445
7212
  return this.http
7446
7213
  .get(url)
@@ -7489,7 +7256,7 @@ class CasesService {
7489
7256
  }
7490
7257
  createEvent(caseDetails, eventData) {
7491
7258
  const caseId = caseDetails.case_id;
7492
- const url = this.appConfig.getCaseDataUrl() + `/cases/${caseId}/events`;
7259
+ const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/events`;
7493
7260
  const headers = new HttpHeaders()
7494
7261
  .set('experimental', 'true')
7495
7262
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
@@ -7502,9 +7269,8 @@ class CasesService {
7502
7269
  }));
7503
7270
  }
7504
7271
  validateCase(ctid, eventData, pageId) {
7505
- const pageIdString = pageId ? '?pageId=' + pageId : '';
7506
- const url = this.appConfig.getCaseDataUrl()
7507
- + `/case-types/${ctid}/validate${pageIdString}`;
7272
+ const pageIdString = pageId ? `?pageId=${pageId}` : '';
7273
+ const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/validate${pageIdString}`;
7508
7274
  const headers = new HttpHeaders()
7509
7275
  .set('experimental', 'true')
7510
7276
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
@@ -7521,8 +7287,7 @@ class CasesService {
7521
7287
  if (eventData.ignore_warning) {
7522
7288
  ignoreWarning = 'true';
7523
7289
  }
7524
- const url = this.appConfig.getCaseDataUrl()
7525
- + `/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
7290
+ const url = `${this.appConfig.getCaseDataUrl()}/case-types/${ctid}/cases?ignore-warning=${ignoreWarning}`;
7526
7291
  const headers = new HttpHeaders()
7527
7292
  .set('experimental', 'true')
7528
7293
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
@@ -7535,9 +7300,7 @@ class CasesService {
7535
7300
  }));
7536
7301
  }
7537
7302
  getPrintDocuments(caseId) {
7538
- const url = this.appConfig.getCaseDataUrl()
7539
- + `/cases/${caseId}`
7540
- + `/documents`;
7303
+ const url = `${this.appConfig.getCaseDataUrl()}/cases/${caseId}/documents`;
7541
7304
  const headers = new HttpHeaders()
7542
7305
  .set('experimental', 'true')
7543
7306
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
@@ -7550,7 +7313,7 @@ class CasesService {
7550
7313
  }));
7551
7314
  }
7552
7315
  buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning) {
7553
- let url = this.appConfig.getCaseDataUrl() + `/internal`;
7316
+ let url = `${this.appConfig.getCaseDataUrl()}/internal`;
7554
7317
  if (Draft.isDraft(caseId)) {
7555
7318
  url += `/drafts/${caseId}`
7556
7319
  + `/event-trigger`
@@ -7644,11 +7407,11 @@ CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE = 'application/vnd.uk.gov.hmcts.ccd
7644
7407
  CasesService.V2_MEDIATYPE_CREATE_EVENT = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-event.v2+json;charset=UTF-8';
7645
7408
  CasesService.V2_MEDIATYPE_CREATE_CASE = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.create-case.v2+json;charset=UTF-8';
7646
7409
  CasesService.PUI_CASE_MANAGER = 'pui-case-manager';
7647
- CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(WorkAllocationService), i0.ɵɵinject(LoadingService), i0.ɵɵinject(SessionStorageService)); };
7410
+ CasesService.ɵfac = function CasesService_Factory(t) { return new (t || CasesService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(OrderService), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(WizardPageFieldToCaseFieldMapper), i0.ɵɵinject(LoadingService), i0.ɵɵinject(SessionStorageService)); };
7648
7411
  CasesService.ɵprov = i0.ɵɵdefineInjectable({ token: CasesService, factory: CasesService.ɵfac });
7649
7412
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasesService, [{
7650
7413
  type: Injectable
7651
- }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: WorkAllocationService }, { type: LoadingService }, { type: SessionStorageService }]; }, null); })();
7414
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: OrderService }, { type: HttpErrorService }, { type: WizardPageFieldToCaseFieldMapper }, { type: LoadingService }, { type: SessionStorageService }]; }, null); })();
7652
7415
 
7653
7416
  class EventTriggerService {
7654
7417
  constructor() {
@@ -8222,7 +7985,7 @@ class PageValidationService {
8222
7985
  isHidden(caseField, editForm, path) {
8223
7986
  const formFields = editForm.getRawValue();
8224
7987
  const condition = ShowCondition.getInstance(caseField.show_condition);
8225
- if (path && path.indexOf('_' + caseField.id + '_') === -1) {
7988
+ if (path && path.indexOf(`_${caseField.id}_`) === -1) {
8226
7989
  path = `${path}${caseField.id}`;
8227
7990
  }
8228
7991
  return !condition.match(formFields.data, path);
@@ -8251,33 +8014,234 @@ PageValidationService.ɵprov = i0.ɵɵdefineInjectable({ token: PageValidationSe
8251
8014
  type: Injectable
8252
8015
  }], function () { return [{ type: CaseFieldService }]; }, null); })();
8253
8016
 
8254
- class CaseEditComponent {
8255
- constructor(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
8256
- this.fb = fb;
8257
- this.router = router;
8258
- this.route = route;
8259
- this.fieldsUtils = fieldsUtils;
8260
- this.fieldsPurger = fieldsPurger;
8261
- this.registrarService = registrarService;
8262
- this.wizardFactory = wizardFactory;
8017
+ const MULTIPLE_TASKS_FOUND = 'More than one task found!';
8018
+ class WorkAllocationService {
8019
+ constructor(http, appConfig, errorService, alertService, sessionStorageService) {
8020
+ this.http = http;
8021
+ this.appConfig = appConfig;
8022
+ this.errorService = errorService;
8023
+ this.alertService = alertService;
8263
8024
  this.sessionStorageService = sessionStorageService;
8264
- this.windowsService = windowsService;
8265
- this.cancelled = new EventEmitter();
8266
- this.submitted = new EventEmitter();
8025
+ // Check to see if work allocation is enabled
8267
8026
  }
8268
- ngOnInit() {
8269
- this.wizard = this.wizardFactory.create(this.eventTrigger);
8270
- this.initialUrl = this.sessionStorageService.getItem('eventUrl');
8271
- this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
8272
- this.checkPageRefresh();
8273
- if (this.router.url && !this.isPageRefreshed) {
8274
- this.sessionStorageService.setItem('eventUrl', this.router.url);
8275
- }
8276
- this.form = this.fb.group({
8277
- data: new FormGroup({}),
8278
- event: this.fb.group({
8279
- id: [this.eventTrigger.id, Validators.required],
8280
- summary: [''],
8027
+ /**
8028
+ * Call the API to get tasks matching the search criteria.
8029
+ * @param searchRequest The search parameters that specify which tasks to match.
8030
+ */
8031
+ searchTasks(searchRequest) {
8032
+ // Do not need to check if WA enabled as parent method will do that
8033
+ const url = `${this.appConfig.getWorkAllocationApiUrl()}/searchForCompletable`;
8034
+ return this.http
8035
+ .post(url, { searchRequest }, null, false)
8036
+ .pipe(map(response => response), catchError(error => {
8037
+ this.errorService.setError(error);
8038
+ // explicitly eat away 401 error and 400 error
8039
+ if (error && error.status && (error.status === 401 || error.status === 400)) {
8040
+ // do nothing
8041
+ console.log('error status 401 or 400', error);
8042
+ }
8043
+ else {
8044
+ return throwError(error);
8045
+ }
8046
+ }));
8047
+ }
8048
+ isWAEnabled(jurisdiction, caseType) {
8049
+ this.features = this.appConfig.getWAServiceConfig();
8050
+ let enabled = false;
8051
+ if (!jurisdiction || !caseType) {
8052
+ const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
8053
+ jurisdiction = caseInfo.jurisdiction;
8054
+ caseType = caseInfo.caseType;
8055
+ }
8056
+ if (!this.features || !this.features.configurations) {
8057
+ return false;
8058
+ }
8059
+ this.features.configurations.forEach(serviceConfig => {
8060
+ if (serviceConfig.serviceName === jurisdiction && (serviceConfig.caseTypes.indexOf(caseType) !== -1)) {
8061
+ enabled = true;
8062
+ }
8063
+ });
8064
+ return enabled;
8065
+ }
8066
+ /**
8067
+ * Call the API to assign a task.
8068
+ * @param taskId specifies which task should be assigned.
8069
+ * @param userId specifies the user the task should be assigned to.
8070
+ */
8071
+ assignTask(taskId, userId) {
8072
+ if (!this.isWAEnabled()) {
8073
+ return of(null);
8074
+ }
8075
+ const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/assign`;
8076
+ return this.http
8077
+ .post(url, { userId })
8078
+ .pipe(catchError(error => {
8079
+ this.errorService.setError(error);
8080
+ return throwError(error);
8081
+ }));
8082
+ }
8083
+ /**
8084
+ * Call the API to complete a task.
8085
+ * @param taskId specifies which task should be completed.
8086
+ */
8087
+ completeTask(taskId) {
8088
+ if (!this.isWAEnabled()) {
8089
+ return of(null);
8090
+ }
8091
+ const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
8092
+ return this.http
8093
+ .post(url, {})
8094
+ .pipe(catchError(error => {
8095
+ this.errorService.setError(error);
8096
+ // this will subscribe to get the user details and decide whether to display an error message
8097
+ this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
8098
+ this.handleTaskCompletionError(response);
8099
+ });
8100
+ return throwError(error);
8101
+ }));
8102
+ }
8103
+ /**
8104
+ * Call the API to assign and complete a task.
8105
+ * @param taskId specifies which task should be completed.
8106
+ */
8107
+ assignAndCompleteTask(taskId) {
8108
+ if (!this.isWAEnabled()) {
8109
+ return of(null);
8110
+ }
8111
+ const url = `${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}/complete`;
8112
+ return this.http
8113
+ .post(url, {
8114
+ completion_options: {
8115
+ assign_and_complete: true
8116
+ }
8117
+ })
8118
+ .pipe(catchError(error => {
8119
+ this.errorService.setError(error);
8120
+ // this will subscribe to get the user details and decide whether to display an error message
8121
+ this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
8122
+ this.handleTaskCompletionError(response);
8123
+ });
8124
+ return throwError(error);
8125
+ }));
8126
+ }
8127
+ /**
8128
+ * Handles the response from the observable to get the user details when task is completed.
8129
+ * @param response is the response given from the observable which contains the user detaild.
8130
+ */
8131
+ handleTaskCompletionError(response) {
8132
+ const userDetails = response;
8133
+ if (this.userIsCaseworker(userDetails.userInfo.roles)) {
8134
+ // when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
8135
+ this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
8136
+ this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
8137
+ }
8138
+ }
8139
+ /**
8140
+ * Returns true if the user's role is equivalent to a caseworker.
8141
+ * @param roles is the list of roles found from the current user.
8142
+ */
8143
+ userIsCaseworker(roles) {
8144
+ const lowerCaseRoles = roles.map(role => role.toLowerCase());
8145
+ // When/if lib & target permanently change to es2016, replace indexOf with includes
8146
+ return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
8147
+ || (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
8148
+ }
8149
+ /**
8150
+ * Look for open tasks for a case and event combination. There are 5 possible scenarios:
8151
+ * 1. No tasks found => Success.
8152
+ * 2. One task found => Mark as done => Success.
8153
+ * 3. One task found => Mark as done throws error => Failure.
8154
+ * 4. More than one task found => Failure.
8155
+ * 5. Search call throws an error => Failure.
8156
+ * @param ccdId The ID of the case to find tasks for.
8157
+ * @param eventId The ID of the event to find tasks for.
8158
+ */
8159
+ completeAppropriateTask(ccdId, eventId, jurisdiction, caseTypeId) {
8160
+ if (!this.isWAEnabled(jurisdiction, caseTypeId)) {
8161
+ return of(null);
8162
+ }
8163
+ const taskSearchParameter = {
8164
+ ccdId,
8165
+ eventId,
8166
+ jurisdiction,
8167
+ caseTypeId
8168
+ };
8169
+ return this.searchTasks(taskSearchParameter)
8170
+ .pipe(map((response) => {
8171
+ const tasks = response.tasks;
8172
+ if (tasks && tasks.length > 0) {
8173
+ if (tasks.length === 1) {
8174
+ this.completeTask(tasks[0].id).subscribe();
8175
+ }
8176
+ else {
8177
+ // This is a problem. Throw an appropriate error.
8178
+ throw new Error(MULTIPLE_TASKS_FOUND);
8179
+ }
8180
+ }
8181
+ return true; // All good. Nothing to see here.
8182
+ }), catchError(error => {
8183
+ // Simply rethrow it.
8184
+ return throwError(error);
8185
+ }));
8186
+ }
8187
+ /**
8188
+ * Return tasks for case and event.
8189
+ */
8190
+ getTasksByCaseIdAndEventId(eventId, caseId, caseType, jurisdiction) {
8191
+ const defaultPayload = {
8192
+ task_required_for_event: false,
8193
+ tasks: []
8194
+ };
8195
+ if (!this.isWAEnabled()) {
8196
+ return of(defaultPayload);
8197
+ }
8198
+ return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/case/tasks/${caseId}/event/${eventId}/caseType/${caseType}/jurisdiction/${jurisdiction}`);
8199
+ }
8200
+ /**
8201
+ * Call the API to get a task
8202
+ */
8203
+ getTask(taskId) {
8204
+ if (!this.isWAEnabled()) {
8205
+ return of({ task: null });
8206
+ }
8207
+ return this.http.get(`${this.appConfig.getWorkAllocationApiUrl()}/task/${taskId}`);
8208
+ }
8209
+ }
8210
+ WorkAllocationService.iACCaseOfficer = 'caseworker-ia-caseofficer';
8211
+ WorkAllocationService.iACAdmOfficer = 'caseworker-ia-admofficer';
8212
+ WorkAllocationService.ɵfac = function WorkAllocationService_Factory(t) { return new (t || WorkAllocationService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService), i0.ɵɵinject(AlertService), i0.ɵɵinject(SessionStorageService)); };
8213
+ WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationService, factory: WorkAllocationService.ɵfac });
8214
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkAllocationService, [{
8215
+ type: Injectable
8216
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null); })();
8217
+
8218
+ class CaseEditComponent {
8219
+ constructor(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
8220
+ this.fb = fb;
8221
+ this.router = router;
8222
+ this.route = route;
8223
+ this.fieldsUtils = fieldsUtils;
8224
+ this.fieldsPurger = fieldsPurger;
8225
+ this.registrarService = registrarService;
8226
+ this.wizardFactory = wizardFactory;
8227
+ this.sessionStorageService = sessionStorageService;
8228
+ this.windowsService = windowsService;
8229
+ this.cancelled = new EventEmitter();
8230
+ this.submitted = new EventEmitter();
8231
+ }
8232
+ ngOnInit() {
8233
+ this.wizard = this.wizardFactory.create(this.eventTrigger);
8234
+ this.initialUrl = this.sessionStorageService.getItem('eventUrl');
8235
+ this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
8236
+ this.checkPageRefresh();
8237
+ if (this.router.url && !this.isPageRefreshed) {
8238
+ this.sessionStorageService.setItem('eventUrl', this.router.url);
8239
+ }
8240
+ this.form = this.fb.group({
8241
+ data: new FormGroup({}),
8242
+ event: this.fb.group({
8243
+ id: [this.eventTrigger.id, Validators.required],
8244
+ summary: [''],
8281
8245
  description: ['']
8282
8246
  })
8283
8247
  });
@@ -9076,7 +9040,7 @@ class CaseEditPageComponent {
9076
9040
  const label = casefield.label || 'Field';
9077
9041
  let id = casefield.id;
9078
9042
  if (fieldElement['component'] && fieldElement['component'].parent) {
9079
- if (fieldElement['component'].idPrefix.indexOf('_' + id + '_') === -1) {
9043
+ if (fieldElement['component'].idPrefix.indexOf(`_${id}_`) === -1) {
9080
9044
  id = `${fieldElement['component'].idPrefix}${id}`;
9081
9045
  }
9082
9046
  else {
@@ -9205,8 +9169,8 @@ class CaseEditPageComponent {
9205
9169
  }
9206
9170
  }
9207
9171
  callbackErrorsNotify(errorContext) {
9208
- this.ignoreWarning = errorContext.ignore_warning;
9209
- this.triggerText = errorContext.trigger_text;
9172
+ this.ignoreWarning = errorContext.ignoreWarning;
9173
+ this.triggerText = errorContext.triggerText;
9210
9174
  }
9211
9175
  next() {
9212
9176
  this.resetErrors();
@@ -9518,12 +9482,12 @@ class CallbackErrorsComponent {
9518
9482
  buildCallbackErrorsContext() {
9519
9483
  const errorContext = new CallbackErrorsContext();
9520
9484
  if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
9521
- errorContext.ignore_warning = true;
9522
- errorContext.trigger_text = this.triggerTextIgnore;
9485
+ errorContext.ignoreWarning = true;
9486
+ errorContext.triggerText = this.triggerTextIgnore;
9523
9487
  }
9524
9488
  else {
9525
- errorContext.ignore_warning = false;
9526
- errorContext.trigger_text = this.triggerTextContinue;
9489
+ errorContext.ignoreWarning = false;
9490
+ errorContext.triggerText = this.triggerTextContinue;
9527
9491
  }
9528
9492
  return errorContext;
9529
9493
  }
@@ -9562,7 +9526,7 @@ CallbackErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CallbackErrorsCom
9562
9526
 
9563
9527
  class AddressOption {
9564
9528
  constructor(addressModel, description) {
9565
- if (description == null) {
9529
+ if (description === null) {
9566
9530
  this.value = addressModel;
9567
9531
  this.description = this.getDescription();
9568
9532
  }
@@ -9571,13 +9535,10 @@ class AddressOption {
9571
9535
  }
9572
9536
  }
9573
9537
  getDescription() {
9574
- return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
9575
- + this.prefixWithCommaIfPresent(this.value.AddressLine2)
9576
- + this.prefixWithCommaIfPresent(this.value.AddressLine3)
9577
- + ', ' + this.value.PostTown);
9538
+ return this.removeInitialCommaIfPresent(`${this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1}${this.prefixWithCommaIfPresent(this.value.AddressLine2)}${this.prefixWithCommaIfPresent(this.value.AddressLine3)}, ${this.value.PostTown}`);
9578
9539
  }
9579
9540
  prefixWithCommaIfPresent(value) {
9580
- return value ? ', ' + value : value;
9541
+ return value ? `, ${value}` : value;
9581
9542
  }
9582
9543
  removeInitialCommaIfPresent(value) {
9583
9544
  return value.replace(new RegExp('^,', 'gi'), '');
@@ -9965,7 +9926,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
9965
9926
  this.missingPostcode = false;
9966
9927
  const postcode = this.postcode.value;
9967
9928
  this.caseField.value = null;
9968
- this.addressOptions = new Array();
9929
+ this.addressOptions = [];
9969
9930
  this.addressesService.getAddressesForPostcode(postcode.replace(' ', '').toUpperCase()).subscribe(result => {
9970
9931
  result.forEach(address => {
9971
9932
  this.addressOptions.push(new AddressOption(address, null));
@@ -10008,7 +9969,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
10008
9969
  let hasAddress = false;
10009
9970
  if (address) {
10010
9971
  Object.keys(address).forEach((key) => {
10011
- if (address[key] != null) {
9972
+ if (address[key] !== null) {
10012
9973
  hasAddress = true;
10013
9974
  }
10014
9975
  });
@@ -10031,7 +9992,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
10031
9992
  }
10032
9993
  defaultLabel(numberOfAddresses) {
10033
9994
  return numberOfAddresses === 0 ? 'No address found'
10034
- : numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
9995
+ : `${numberOfAddresses}${numberOfAddresses === 1 ? ' address ' : ' addresses '}found`;
10035
9996
  }
10036
9997
  setFormValue() {
10037
9998
  if (this.writeComplexFieldComponent.complexGroup) {
@@ -11560,6 +11521,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
11560
11521
  this.formArray.removeAt(index);
11561
11522
  }
11562
11523
  resetIds(index) {
11524
+ var _a, _b;
11563
11525
  for (let i = index; i < this.collItems.length; i++) {
11564
11526
  const counter = i + 1;
11565
11527
  if (this.collItems[i].index && this.collItems[i].index === counter) {
@@ -11569,16 +11531,15 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
11569
11531
  && this.collItems[i].caseField.id === counter.toString()) {
11570
11532
  this.collItems[i].caseField.id = i.toString();
11571
11533
  }
11572
- const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
11573
- const idPrefix1Current = idPrefix1.replace('_' + i.toString(), '_' + counter.toString());
11534
+ const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
11535
+ const idPrefix1Current = idPrefix1.replace(`_${i.toString()}`, `_${counter.toString()}`);
11574
11536
  if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
11575
11537
  this.collItems[i].prefix = idPrefix1;
11576
11538
  }
11577
- const idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
11578
- && this.collItems[i].container['component'].idPrefix ? true : false;
11539
+ const idPrefixAvailable = !!((_b = (_a = this.collItems[i].container) === null || _a === void 0 ? void 0 : _a['component']) === null || _b === void 0 ? void 0 : _b.idPrefix);
11579
11540
  const idPrefix2 = idPrefixAvailable ?
11580
- this.collItems[i].container['component'].idPrefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
11581
- const idPrefix2current = idPrefix2.replace('_' + i.toString(), '_' + counter.toString());
11541
+ this.collItems[i].container['component'].idPrefix.replace(`_${counter.toString()}`, `_${i.toString()}`) : '';
11542
+ const idPrefix2current = idPrefix2.replace(`_${i.toString()}`, `_${counter.toString()}`);
11582
11543
  if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
11583
11544
  this.collItems[i].container['component'].idPrefix = idPrefix2;
11584
11545
  }
@@ -12465,30 +12426,239 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
12465
12426
  i0.ɵɵelementEnd();
12466
12427
  i0.ɵɵelementEnd();
12467
12428
  } if (rf & 2) {
12468
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
12469
- i0.ɵɵadvance(1);
12470
- i0.ɵɵproperty("for", ctx.id());
12471
- i0.ɵɵadvance(1);
12429
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
12430
+ i0.ɵɵadvance(1);
12431
+ i0.ɵɵproperty("for", ctx.id());
12432
+ i0.ɵɵadvance(1);
12433
+ i0.ɵɵproperty("ngIf", ctx.caseField.label);
12434
+ i0.ɵɵadvance(1);
12435
+ i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
12436
+ i0.ɵɵadvance(1);
12437
+ i0.ɵɵproperty("ngIf", !ctx.caseField.label && !ctx.caseField.hint_text);
12438
+ i0.ɵɵadvance(1);
12439
+ i0.ɵɵproperty("ngIf", ctx.dynamicListFormControl.errors && ctx.dynamicListFormControl.dirty);
12440
+ i0.ɵɵadvance(1);
12441
+ i0.ɵɵproperty("id", ctx.id())("formControl", ctx.dynamicListFormControl);
12442
+ i0.ɵɵadvance(1);
12443
+ i0.ɵɵproperty("ngValue", null);
12444
+ i0.ɵɵadvance(2);
12445
+ i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
12446
+ } }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12447
+ const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
12448
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
12449
+ type: Component,
12450
+ args: [{
12451
+ selector: 'ccd-write-dynamic-list-field',
12452
+ templateUrl: './write-dynamic-list-field.html'
12453
+ }]
12454
+ }], null, null); })();
12455
+
12456
+ class FixedListPipe {
12457
+ transform(value, items) {
12458
+ if (!!items) {
12459
+ const item = items.find(i => i.code === value);
12460
+ return item ? item.label : FixedListPipe.EMPTY;
12461
+ }
12462
+ else {
12463
+ return FixedListPipe.EMPTY;
12464
+ }
12465
+ }
12466
+ }
12467
+ FixedListPipe.EMPTY = '';
12468
+ FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
12469
+ FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
12470
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
12471
+ type: Pipe,
12472
+ args: [{
12473
+ name: 'ccdFixedList'
12474
+ }]
12475
+ }], null, null); })();
12476
+
12477
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12478
+ i0.ɵɵelementStart(0, "div");
12479
+ i0.ɵɵtext(1);
12480
+ i0.ɵɵpipe(2, "ccdFixedList");
12481
+ i0.ɵɵelementEnd();
12482
+ } if (rf & 2) {
12483
+ const value_r1 = ctx.$implicit;
12484
+ const ctx_r0 = i0.ɵɵnextContext();
12485
+ i0.ɵɵadvance(1);
12486
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
12487
+ } }
12488
+ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
12489
+ ngOnInit() {
12490
+ /**
12491
+ *
12492
+ * Reassigning list_items from formatted_list when list_items is empty
12493
+ */
12494
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
12495
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
12496
+ }
12497
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
12498
+ this.caseField.value = this.caseField.formatted_value.value;
12499
+ }
12500
+ super.ngOnInit();
12501
+ }
12502
+ }
12503
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
12504
+ ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
12505
+ i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
12506
+ } if (rf & 2) {
12507
+ i0.ɵɵproperty("ngForOf", ctx.caseField.value);
12508
+ } }, directives: [i1.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}"] });
12509
+ const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
12510
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
12511
+ type: Component,
12512
+ args: [{
12513
+ selector: 'ccd-read-dynamic-multi-select-list-field',
12514
+ templateUrl: './read-dynamic-multi-select-list-field.html',
12515
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
12516
+ }]
12517
+ }], null, null); })();
12518
+
12519
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
12520
+ i0.ɵɵelementStart(0, "span", 5);
12521
+ i0.ɵɵtext(1);
12522
+ i0.ɵɵpipe(2, "ccdFieldLabel");
12523
+ i0.ɵɵelementEnd();
12524
+ } if (rf & 2) {
12525
+ const ctx_r0 = i0.ɵɵnextContext();
12526
+ i0.ɵɵadvance(1);
12527
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
12528
+ } }
12529
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
12530
+ i0.ɵɵelementStart(0, "span", 6);
12531
+ i0.ɵɵtext(1);
12532
+ i0.ɵɵelementEnd();
12533
+ } if (rf & 2) {
12534
+ const ctx_r1 = i0.ɵɵnextContext();
12535
+ i0.ɵɵadvance(1);
12536
+ i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
12537
+ } }
12538
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
12539
+ i0.ɵɵelementStart(0, "span", 7);
12540
+ i0.ɵɵtext(1);
12541
+ i0.ɵɵpipe(2, "ccdFirstError");
12542
+ i0.ɵɵelementEnd();
12543
+ } if (rf & 2) {
12544
+ const ctx_r2 = i0.ɵɵnextContext();
12545
+ i0.ɵɵadvance(1);
12546
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
12547
+ } }
12548
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
12549
+ const _r6 = i0.ɵɵgetCurrentView();
12550
+ i0.ɵɵelementContainerStart(0);
12551
+ i0.ɵɵelementStart(1, "div", 8);
12552
+ i0.ɵɵelementStart(2, "input", 9);
12553
+ i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
12554
+ i0.ɵɵelementEnd();
12555
+ i0.ɵɵelementStart(3, "label", 10);
12556
+ i0.ɵɵtext(4);
12557
+ i0.ɵɵelementEnd();
12558
+ i0.ɵɵelementEnd();
12559
+ i0.ɵɵelementContainerEnd();
12560
+ } if (rf & 2) {
12561
+ const checkbox_r4 = ctx.$implicit;
12562
+ const ctx_r3 = i0.ɵɵnextContext();
12563
+ i0.ɵɵadvance(2);
12564
+ i0.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
12565
+ i0.ɵɵpropertyInterpolate("name", ctx_r3.id());
12566
+ i0.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
12567
+ i0.ɵɵadvance(1);
12568
+ i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
12569
+ i0.ɵɵadvance(1);
12570
+ i0.ɵɵtextInterpolate(checkbox_r4.label);
12571
+ } }
12572
+ const _c0$L = function (a0) { return { "error": a0 }; };
12573
+ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
12574
+ ngOnInit() {
12575
+ this.checkboxes = new FormArray([]);
12576
+ this.setInitialCaseList();
12577
+ this.setInitialCaseFieldValue();
12578
+ // Initialise array with existing values
12579
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
12580
+ const values = this.caseField.value;
12581
+ values.forEach(value => {
12582
+ this.checkboxes.push(new FormControl(value));
12583
+ });
12584
+ }
12585
+ this.dynamicListFormControl = this.registerControl(new FormControl(this.checkboxes.value));
12586
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
12587
+ }
12588
+ onCheckChange(event) {
12589
+ const target = event.target;
12590
+ if (!target || !target.value) {
12591
+ return;
12592
+ }
12593
+ const selectedListItem = this.getValueListItem(target.value);
12594
+ if (!this.isSelected(target.value)) {
12595
+ // Add a new control in the FormArray
12596
+ this.checkboxes.push(new FormControl(selectedListItem));
12597
+ }
12598
+ else {
12599
+ // Remove the control from the FormArray
12600
+ this.checkboxes.controls.forEach((ctrl, i) => {
12601
+ if (ctrl.value.code === target.value) {
12602
+ this.checkboxes.removeAt(i);
12603
+ }
12604
+ });
12605
+ }
12606
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
12607
+ }
12608
+ isSelected(code) {
12609
+ if (this.checkboxes && this.checkboxes.controls) {
12610
+ return this.checkboxes.controls.find(control => control.value.code === code);
12611
+ }
12612
+ }
12613
+ getValueListItem(value) {
12614
+ return this.caseField.list_items.find(i => i.code === value);
12615
+ }
12616
+ setInitialCaseList() {
12617
+ const hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
12618
+ const hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
12619
+ if (!hasListItems && hasFormattedListItems) {
12620
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
12621
+ }
12622
+ }
12623
+ setInitialCaseFieldValue() {
12624
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
12625
+ this.caseField.value = this.caseField.formatted_value.value;
12626
+ }
12627
+ const isNull = this.caseField.value === undefined || this.caseField.value === '';
12628
+ if (isNull || !Array.isArray(this.caseField.value)) {
12629
+ this.caseField.value = [];
12630
+ }
12631
+ }
12632
+ }
12633
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
12634
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
12635
+ i0.ɵɵelementStart(0, "div", 0);
12636
+ i0.ɵɵelementStart(1, "fieldset");
12637
+ i0.ɵɵelementStart(2, "legend");
12638
+ i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
12639
+ i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
12640
+ i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
12641
+ i0.ɵɵelementEnd();
12642
+ i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
12643
+ i0.ɵɵelementEnd();
12644
+ i0.ɵɵelementEnd();
12645
+ } if (rf & 2) {
12646
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
12647
+ i0.ɵɵadvance(3);
12472
12648
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
12473
12649
  i0.ɵɵadvance(1);
12474
12650
  i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
12475
12651
  i0.ɵɵadvance(1);
12476
- i0.ɵɵproperty("ngIf", !ctx.caseField.label && !ctx.caseField.hint_text);
12477
- i0.ɵɵadvance(1);
12478
- i0.ɵɵproperty("ngIf", ctx.dynamicListFormControl.errors && ctx.dynamicListFormControl.dirty);
12479
- i0.ɵɵadvance(1);
12480
- i0.ɵɵproperty("id", ctx.id())("formControl", ctx.dynamicListFormControl);
12652
+ i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
12481
12653
  i0.ɵɵadvance(1);
12482
- i0.ɵɵproperty("ngValue", null);
12483
- i0.ɵɵadvance(2);
12484
12654
  i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
12485
- } }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12486
- const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
12487
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
12655
+ } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12656
+ const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
12657
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
12488
12658
  type: Component,
12489
12659
  args: [{
12490
- selector: 'ccd-write-dynamic-list-field',
12491
- templateUrl: './write-dynamic-list-field.html'
12660
+ selector: 'ccd-write-dynamic-multi-select-list-field',
12661
+ templateUrl: './write-dynamic-multi-select-list-field.html'
12492
12662
  }]
12493
12663
  }], null, null); })();
12494
12664
 
@@ -12586,7 +12756,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
12586
12756
  i0.ɵɵadvance(1);
12587
12757
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
12588
12758
  } }
12589
- const _c0$L = function (a0) { return { selected: a0 }; };
12759
+ const _c0$K = function (a0) { return { selected: a0 }; };
12590
12760
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
12591
12761
  i0.ɵɵelementStart(0, "div", 10);
12592
12762
  i0.ɵɵelement(1, "input", 11);
@@ -12597,7 +12767,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
12597
12767
  } if (rf & 2) {
12598
12768
  const radioButton_r5 = ctx.$implicit;
12599
12769
  const ctx_r4 = i0.ɵɵnextContext();
12600
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
12770
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
12601
12771
  i0.ɵɵadvance(1);
12602
12772
  i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
12603
12773
  i0.ɵɵadvance(1);
@@ -12730,7 +12900,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
12730
12900
  i0.ɵɵadvance(1);
12731
12901
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
12732
12902
  } }
12733
- const _c0$K = function (a0) { return { "form-group-error": a0 }; };
12903
+ const _c0$J = function (a0) { return { "form-group-error": a0 }; };
12734
12904
  const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
12735
12905
  class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
12736
12906
  ngOnInit() {
@@ -12748,7 +12918,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
12748
12918
  i0.ɵɵelement(5, "input", 5);
12749
12919
  i0.ɵɵelementEnd();
12750
12920
  } if (rf & 2) {
12751
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
12921
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
12752
12922
  i0.ɵɵadvance(1);
12753
12923
  i0.ɵɵproperty("for", ctx.id());
12754
12924
  i0.ɵɵadvance(1);
@@ -12769,27 +12939,6 @@ const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherited
12769
12939
  }]
12770
12940
  }], null, null); })();
12771
12941
 
12772
- class FixedListPipe {
12773
- transform(value, items) {
12774
- if (!!items) {
12775
- const item = items.find(i => i.code === value);
12776
- return item ? item.label : FixedListPipe.EMPTY;
12777
- }
12778
- else {
12779
- return FixedListPipe.EMPTY;
12780
- }
12781
- }
12782
- }
12783
- FixedListPipe.EMPTY = '';
12784
- FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
12785
- FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
12786
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
12787
- type: Pipe,
12788
- args: [{
12789
- name: 'ccdFixedList'
12790
- }]
12791
- }], null, null); })();
12792
-
12793
12942
  class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
12794
12943
  }
12795
12944
  ReadFixedListFieldComponent.ɵfac = function ReadFixedListFieldComponent_Factory(t) { return ɵReadFixedListFieldComponent_BaseFactory(t || ReadFixedListFieldComponent); };
@@ -12850,7 +12999,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
12850
12999
  i0.ɵɵadvance(1);
12851
13000
  i0.ɵɵtextInterpolate(type_r4.label);
12852
13001
  } }
12853
- const _c0$J = function (a0) { return { "form-group-error": a0 }; };
13002
+ const _c0$I = function (a0) { return { "form-group-error": a0 }; };
12854
13003
  class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
12855
13004
  get listItems() {
12856
13005
  if (this.caseField) {
@@ -12888,7 +13037,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
12888
13037
  i0.ɵɵelementEnd();
12889
13038
  i0.ɵɵelementEnd();
12890
13039
  } if (rf & 2) {
12891
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
13040
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
12892
13041
  i0.ɵɵadvance(1);
12893
13042
  i0.ɵɵproperty("for", ctx.id());
12894
13043
  i0.ɵɵadvance(1);
@@ -12979,7 +13128,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
12979
13128
  i0.ɵɵadvance(1);
12980
13129
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
12981
13130
  } }
12982
- const _c0$I = function (a0) { return { selected: a0 }; };
13131
+ const _c0$H = function (a0) { return { selected: a0 }; };
12983
13132
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
12984
13133
  i0.ɵɵelementStart(0, "div", 9);
12985
13134
  i0.ɵɵelement(1, "input", 10);
@@ -12990,7 +13139,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
12990
13139
  } if (rf & 2) {
12991
13140
  const radioButton_r4 = ctx.$implicit;
12992
13141
  const ctx_r3 = i0.ɵɵnextContext();
12993
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
13142
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
12994
13143
  i0.ɵɵadvance(1);
12995
13144
  i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
12996
13145
  i0.ɵɵadvance(1);
@@ -13121,7 +13270,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
13121
13270
  i0.ɵɵadvance(1);
13122
13271
  i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
13123
13272
  } }
13124
- const _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
13273
+ const _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
13125
13274
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
13126
13275
  const _r7 = i0.ɵɵgetCurrentView();
13127
13276
  i0.ɵɵelementStart(0, "mat-option", 11);
@@ -13131,7 +13280,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
13131
13280
  } if (rf & 2) {
13132
13281
  const judicialUser_r5 = ctx.$implicit;
13133
13282
  const ctx_r3 = i0.ɵɵnextContext();
13134
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
13283
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
13135
13284
  i0.ɵɵadvance(1);
13136
13285
  i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
13137
13286
  } }
@@ -13350,7 +13499,7 @@ class LinkedCasesService {
13350
13499
  casesResponse.push(this.mapResponse(result));
13351
13500
  });
13352
13501
  });
13353
- const caseLinks = casesResponse.map(item => {
13502
+ this.linkedCases = casesResponse.map(item => {
13354
13503
  return {
13355
13504
  caseReference: item.caseReference,
13356
13505
  caseName: item.caseName,
@@ -13364,7 +13513,6 @@ class LinkedCasesService {
13364
13513
  }),
13365
13514
  };
13366
13515
  });
13367
- this.linkedCases = caseLinks;
13368
13516
  this.serverLinkedApiError = null;
13369
13517
  }, err => {
13370
13518
  this.serverLinkedApiError = {
@@ -13502,7 +13650,9 @@ class BeforeYouStartComponent {
13502
13650
  });
13503
13651
  }
13504
13652
  onBack() {
13505
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
13653
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
13654
+ window.location.hash = 'Linked cases';
13655
+ });
13506
13656
  }
13507
13657
  }
13508
13658
  BeforeYouStartComponent.ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
@@ -13825,7 +13975,7 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
13825
13975
  i0.ɵɵadvance(3);
13826
13976
  i0.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
13827
13977
  } }
13828
- const _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
13978
+ const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
13829
13979
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
13830
13980
  i0.ɵɵelementStart(0, "div", 35);
13831
13981
  i0.ɵɵelementStart(1, "h3", 22);
@@ -13841,7 +13991,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
13841
13991
  i0.ɵɵelementEnd();
13842
13992
  } if (rf & 2) {
13843
13993
  const ctx_r7 = i0.ɵɵnextContext(2);
13844
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
13994
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
13845
13995
  i0.ɵɵadvance(3);
13846
13996
  i0.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
13847
13997
  } }
@@ -13892,11 +14042,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
13892
14042
  const ctx_r0 = i0.ɵɵnextContext();
13893
14043
  i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
13894
14044
  i0.ɵɵadvance(1);
13895
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
14045
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
13896
14046
  i0.ɵɵadvance(3);
13897
14047
  i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
13898
14048
  i0.ɵɵadvance(2);
13899
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
14049
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
13900
14050
  i0.ɵɵadvance(5);
13901
14051
  i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
13902
14052
  i0.ɵɵadvance(2);
@@ -14307,7 +14457,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
14307
14457
  i0.ɵɵadvance(4);
14308
14458
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
14309
14459
  i0.ɵɵadvance(4);
14310
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
14460
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
14311
14461
  i0.ɵɵadvance(1);
14312
14462
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
14313
14463
  i0.ɵɵadvance(18);
@@ -14842,7 +14992,9 @@ class NoLinkedCasesComponent {
14842
14992
  this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
14843
14993
  }
14844
14994
  onBack() {
14845
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
14995
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
14996
+ window.location.hash = 'Linked cases';
14997
+ });
14846
14998
  }
14847
14999
  }
14848
15000
  NoLinkedCasesComponent.ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
@@ -14914,7 +15066,7 @@ function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1)
14914
15066
  i0.ɵɵadvance(1);
14915
15067
  i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
14916
15068
  } }
14917
- const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
15069
+ const _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
14918
15070
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
14919
15071
  i0.ɵɵelementStart(0, "div", 7);
14920
15072
  i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
@@ -14924,7 +15076,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
14924
15076
  i0.ɵɵelementEnd();
14925
15077
  } if (rf & 2) {
14926
15078
  const ctx_r1 = i0.ɵɵnextContext(2);
14927
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
15079
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
14928
15080
  i0.ɵɵadvance(1);
14929
15081
  i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
14930
15082
  i0.ɵɵadvance(2);
@@ -15083,6 +15235,7 @@ UnLinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UnLinkCasesComponent
15083
15235
  type: Output
15084
15236
  }] }); })();
15085
15237
 
15238
+ // tslint:disable:variable-name
15086
15239
  class LinkCaseReason {
15087
15240
  }
15088
15241
  class CCDCaseLinkType {
@@ -15193,7 +15346,7 @@ class ReadLinkedCasesFieldComponent {
15193
15346
  this.caseField = (_a = tab === null || tab === void 0 ? void 0 : tab.fields) === null || _a === void 0 ? void 0 : _a.find(field => field.id === 'caseLinks');
15194
15347
  }
15195
15348
  this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
15196
- const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
15349
+ const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
15197
15350
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
15198
15351
  next: reasons => {
15199
15352
  this.reasonListLoaded = true;
@@ -15228,7 +15381,9 @@ class ReadLinkedCasesFieldComponent {
15228
15381
  }
15229
15382
  }
15230
15383
  reloadCurrentRoute() {
15231
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id], { fragment: 'Linked cases' });
15384
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(() => {
15385
+ window.location.hash = 'Linked cases';
15386
+ });
15232
15387
  }
15233
15388
  getFailureLinkedToNotification(evt) {
15234
15389
  this.isServerLinkedToError = true;
@@ -15426,7 +15581,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
15426
15581
  }
15427
15582
  }
15428
15583
  getLinkedCaseReasons() {
15429
- const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
15584
+ const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
15430
15585
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
15431
15586
  next: reasons => {
15432
15587
  // Sort in ascending order
@@ -15484,8 +15639,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
15484
15639
  getLinkedCases() {
15485
15640
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
15486
15641
  const caseViewFiltered = caseView.tabs.filter(tab => {
15487
- const linkField = tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
15488
- return linkField;
15642
+ return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
15489
15643
  });
15490
15644
  if (caseViewFiltered) {
15491
15645
  const caseLinkFieldValue = caseViewFiltered.map(filtered => { var _a; return ((_a = filtered.fields) === null || _a === void 0 ? void 0 : _a.length) > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value; });
@@ -15741,7 +15895,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15741
15895
  i0.ɵɵadvance(1);
15742
15896
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
15743
15897
  } }
15744
- const _c0$E = function (a0) { return { "form-group-error": a0 }; };
15898
+ const _c0$D = function (a0) { return { "form-group-error": a0 }; };
15745
15899
  class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
15746
15900
  ngOnInit() {
15747
15901
  this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
@@ -15764,7 +15918,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
15764
15918
  i0.ɵɵelementEnd();
15765
15919
  i0.ɵɵelementEnd();
15766
15920
  } if (rf & 2) {
15767
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15921
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15768
15922
  i0.ɵɵadvance(1);
15769
15923
  i0.ɵɵproperty("for", ctx.id());
15770
15924
  i0.ɵɵadvance(1);
@@ -15881,7 +16035,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
15881
16035
  i0.ɵɵadvance(1);
15882
16036
  i0.ɵɵtextInterpolate(checkbox_r4.label);
15883
16037
  } }
15884
- const _c0$D = function (a0) { return { "error": a0 }; };
16038
+ const _c0$C = function (a0) { return { "error": a0 }; };
15885
16039
  class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
15886
16040
  ngOnInit() {
15887
16041
  this.checkboxes = new FormArray([]);
@@ -15936,7 +16090,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
15936
16090
  i0.ɵɵelementEnd();
15937
16091
  i0.ɵɵelementEnd();
15938
16092
  } if (rf & 2) {
15939
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16093
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
15940
16094
  i0.ɵɵadvance(3);
15941
16095
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
15942
16096
  i0.ɵɵadvance(1);
@@ -16005,7 +16159,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16005
16159
  i0.ɵɵadvance(1);
16006
16160
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16007
16161
  } }
16008
- const _c0$C = function (a0) { return { "form-group-error": a0 }; };
16162
+ const _c0$B = function (a0) { return { "form-group-error": a0 }; };
16009
16163
  const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16010
16164
  class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
16011
16165
  ngOnInit() {
@@ -16023,7 +16177,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
16023
16177
  i0.ɵɵelement(5, "input", 5);
16024
16178
  i0.ɵɵelementEnd();
16025
16179
  } if (rf & 2) {
16026
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
16180
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
16027
16181
  i0.ɵɵadvance(1);
16028
16182
  i0.ɵɵproperty("for", ctx.id());
16029
16183
  i0.ɵɵadvance(1);
@@ -16273,7 +16427,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
16273
16427
  i0.ɵɵelementEnd();
16274
16428
  i0.ɵɵelementEnd();
16275
16429
  } }
16276
- const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
16430
+ const _c0$A = function (a0) { return { "scroll-container ": a0 }; };
16277
16431
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
16278
16432
  i0.ɵɵelementStart(0, "div", 26);
16279
16433
  i0.ɵɵpipe(1, "async");
@@ -16287,7 +16441,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
16287
16441
  const ctx_r2 = i0.ɵɵnextContext(2);
16288
16442
  let tmp_0_0 = null;
16289
16443
  let tmp_2_0 = null;
16290
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16444
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16291
16445
  i0.ɵɵadvance(2);
16292
16446
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16293
16447
  i0.ɵɵadvance(2);
@@ -16602,6 +16756,9 @@ class PaymentField extends AbstractFieldReadComponent {
16602
16756
  getRefundsUrl() {
16603
16757
  return this.appConfig.getRefundsUrl();
16604
16758
  }
16759
+ getNotificationUrl() {
16760
+ return this.appConfig.getNotificationUrl();
16761
+ }
16605
16762
  getUserRoles() {
16606
16763
  const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
16607
16764
  if (!userDetails || !userDetails.hasOwnProperty('roles')) {
@@ -16624,10 +16781,10 @@ class CasePaymentHistoryViewerFieldComponent extends PaymentField {
16624
16781
  }
16625
16782
  }
16626
16783
  CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
16627
- CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
16784
+ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
16628
16785
  i0.ɵɵelement(0, "ccpay-payment-lib", 0);
16629
16786
  } if (rf & 2) {
16630
- i0.ɵɵ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");
16787
+ i0.ɵɵ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");
16631
16788
  } }, directives: [i3.PaymentLibComponent], encapsulation: 2 });
16632
16789
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePaymentHistoryViewerFieldComponent, [{
16633
16790
  type: Component,
@@ -16637,194 +16794,6 @@ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Ca
16637
16794
  }]
16638
16795
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null); })();
16639
16796
 
16640
- function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
16641
- i0.ɵɵelementStart(0, "div");
16642
- i0.ɵɵtext(1);
16643
- i0.ɵɵpipe(2, "ccdFixedList");
16644
- i0.ɵɵelementEnd();
16645
- } if (rf & 2) {
16646
- const value_r1 = ctx.$implicit;
16647
- const ctx_r0 = i0.ɵɵnextContext();
16648
- i0.ɵɵadvance(1);
16649
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
16650
- } }
16651
- class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
16652
- ngOnInit() {
16653
- /**
16654
- *
16655
- * Reassigning list_items from formatted_list when list_items is empty
16656
- */
16657
- if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
16658
- this.caseField.list_items = this.caseField.formatted_value.list_items;
16659
- }
16660
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
16661
- this.caseField.value = this.caseField.formatted_value.value;
16662
- }
16663
- super.ngOnInit();
16664
- }
16665
- }
16666
- ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
16667
- ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
16668
- i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
16669
- } if (rf & 2) {
16670
- i0.ɵɵproperty("ngForOf", ctx.caseField.value);
16671
- } }, directives: [i1.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}"] });
16672
- const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
16673
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
16674
- type: Component,
16675
- args: [{
16676
- selector: 'ccd-read-dynamic-multi-select-list-field',
16677
- templateUrl: './read-dynamic-multi-select-list-field.html',
16678
- styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
16679
- }]
16680
- }], null, null); })();
16681
-
16682
- function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16683
- i0.ɵɵelementStart(0, "span", 5);
16684
- i0.ɵɵtext(1);
16685
- i0.ɵɵpipe(2, "ccdFieldLabel");
16686
- i0.ɵɵelementEnd();
16687
- } if (rf & 2) {
16688
- const ctx_r0 = i0.ɵɵnextContext();
16689
- i0.ɵɵadvance(1);
16690
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
16691
- } }
16692
- function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16693
- i0.ɵɵelementStart(0, "span", 6);
16694
- i0.ɵɵtext(1);
16695
- i0.ɵɵelementEnd();
16696
- } if (rf & 2) {
16697
- const ctx_r1 = i0.ɵɵnextContext();
16698
- i0.ɵɵadvance(1);
16699
- i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
16700
- } }
16701
- function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
16702
- i0.ɵɵelementStart(0, "span", 7);
16703
- i0.ɵɵtext(1);
16704
- i0.ɵɵpipe(2, "ccdFirstError");
16705
- i0.ɵɵelementEnd();
16706
- } if (rf & 2) {
16707
- const ctx_r2 = i0.ɵɵnextContext();
16708
- i0.ɵɵadvance(1);
16709
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
16710
- } }
16711
- function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
16712
- const _r6 = i0.ɵɵgetCurrentView();
16713
- i0.ɵɵelementContainerStart(0);
16714
- i0.ɵɵelementStart(1, "div", 8);
16715
- i0.ɵɵelementStart(2, "input", 9);
16716
- i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
16717
- i0.ɵɵelementEnd();
16718
- i0.ɵɵelementStart(3, "label", 10);
16719
- i0.ɵɵtext(4);
16720
- i0.ɵɵelementEnd();
16721
- i0.ɵɵelementEnd();
16722
- i0.ɵɵelementContainerEnd();
16723
- } if (rf & 2) {
16724
- const checkbox_r4 = ctx.$implicit;
16725
- const ctx_r3 = i0.ɵɵnextContext();
16726
- i0.ɵɵadvance(2);
16727
- i0.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
16728
- i0.ɵɵpropertyInterpolate("name", ctx_r3.id());
16729
- i0.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
16730
- i0.ɵɵadvance(1);
16731
- i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
16732
- i0.ɵɵadvance(1);
16733
- i0.ɵɵtextInterpolate(checkbox_r4.label);
16734
- } }
16735
- const _c0$A = function (a0) { return { "error": a0 }; };
16736
- class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
16737
- ngOnInit() {
16738
- this.checkboxes = new FormArray([]);
16739
- this.setInitialCaseList();
16740
- this.setInitialCaseFieldValue();
16741
- // Initialise array with existing values
16742
- if (this.caseField.value && Array.isArray(this.caseField.value)) {
16743
- const values = this.caseField.value;
16744
- values.forEach(value => {
16745
- this.checkboxes.push(new FormControl(value));
16746
- });
16747
- }
16748
- this.dynamicListFormControl = this.registerControl(new FormControl(this.checkboxes.value));
16749
- this.dynamicListFormControl.setValue(this.checkboxes.value);
16750
- }
16751
- onCheckChange(event) {
16752
- const target = event.target;
16753
- if (!target || !target.value) {
16754
- return;
16755
- }
16756
- const selectedListItem = this.getValueListItem(target.value);
16757
- if (!this.isSelected(target.value)) {
16758
- // Add a new control in the FormArray
16759
- this.checkboxes.push(new FormControl(selectedListItem));
16760
- }
16761
- else {
16762
- // Remove the control from the FormArray
16763
- this.checkboxes.controls.forEach((ctrl, i) => {
16764
- if (ctrl.value.code === target.value) {
16765
- this.checkboxes.removeAt(i);
16766
- }
16767
- });
16768
- }
16769
- this.dynamicListFormControl.setValue(this.checkboxes.value);
16770
- }
16771
- isSelected(code) {
16772
- if (this.checkboxes && this.checkboxes.controls) {
16773
- return this.checkboxes.controls.find(control => control.value.code === code);
16774
- }
16775
- }
16776
- getValueListItem(value) {
16777
- return this.caseField.list_items.find(i => i.code === value);
16778
- }
16779
- setInitialCaseList() {
16780
- const hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
16781
- const hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
16782
- if (!hasListItems && hasFormattedListItems) {
16783
- this.caseField.list_items = this.caseField.formatted_value.list_items;
16784
- }
16785
- }
16786
- setInitialCaseFieldValue() {
16787
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
16788
- this.caseField.value = this.caseField.formatted_value.value;
16789
- }
16790
- const isNull = this.caseField.value === undefined || this.caseField.value === '';
16791
- if (isNull || !Array.isArray(this.caseField.value)) {
16792
- this.caseField.value = [];
16793
- }
16794
- }
16795
- }
16796
- WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
16797
- WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
16798
- i0.ɵɵelementStart(0, "div", 0);
16799
- i0.ɵɵelementStart(1, "fieldset");
16800
- i0.ɵɵelementStart(2, "legend");
16801
- i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
16802
- i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
16803
- i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
16804
- i0.ɵɵelementEnd();
16805
- i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
16806
- i0.ɵɵelementEnd();
16807
- i0.ɵɵelementEnd();
16808
- } if (rf & 2) {
16809
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16810
- i0.ɵɵadvance(3);
16811
- i0.ɵɵproperty("ngIf", ctx.caseField.label);
16812
- i0.ɵɵadvance(1);
16813
- i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
16814
- i0.ɵɵadvance(1);
16815
- i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
16816
- i0.ɵɵadvance(1);
16817
- i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
16818
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16819
- const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
16820
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
16821
- type: Component,
16822
- args: [{
16823
- selector: 'ccd-write-dynamic-multi-select-list-field',
16824
- templateUrl: './write-dynamic-multi-select-list-field.html'
16825
- }]
16826
- }], null, null); })();
16827
-
16828
16797
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
16829
16798
  }
16830
16799
  ReadPhoneUKFieldComponent.ɵfac = function ReadPhoneUKFieldComponent_Factory(t) { return ɵReadPhoneUKFieldComponent_BaseFactory(t || ReadPhoneUKFieldComponent); };
@@ -16975,7 +16944,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
16975
16944
  autoGrow(event) {
16976
16945
  if (this.browserService.isIEOrEdge()) {
16977
16946
  event.target.style.height = 'auto';
16978
- event.target.style.height = event.target.scrollHeight + 'px';
16947
+ event.target.style.height = `${event.target.scrollHeight}px`;
16979
16948
  event.target.scrollTop = event.target.scrollHeight;
16980
16949
  }
16981
16950
  }
@@ -17126,7 +17095,7 @@ function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf
17126
17095
  i0.ɵɵelement(0, "ccpay-payment-lib", 1);
17127
17096
  } if (rf & 2) {
17128
17097
  const ctx_r0 = i0.ɵɵnextContext();
17129
- i0.ɵɵ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");
17098
+ i0.ɵɵ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");
17130
17099
  } }
17131
17100
  class WaysToPayFieldComponent extends PaymentField {
17132
17101
  constructor(appConfig, sessionStorage) {
@@ -17137,8 +17106,8 @@ class WaysToPayFieldComponent extends PaymentField {
17137
17106
  }
17138
17107
  }
17139
17108
  WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(SessionStorageService)); };
17140
- WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
17141
- i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 14, "ccpay-payment-lib", 0);
17109
+ WaysToPayFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
17110
+ i0.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
17142
17111
  } if (rf & 2) {
17143
17112
  i0.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
17144
17113
  } }, directives: [i1.NgIf, i3.PaymentLibComponent], encapsulation: 2 });
@@ -17161,6 +17130,7 @@ class YesNoService {
17161
17130
  return YesNoService.EMPTY;
17162
17131
  }
17163
17132
  isYes(value) {
17133
+ // tslint:disable-next-line:switch-default
17164
17134
  switch (typeof (value)) {
17165
17135
  case 'boolean':
17166
17136
  return value;
@@ -17170,6 +17140,7 @@ class YesNoService {
17170
17140
  return false;
17171
17141
  }
17172
17142
  isNo(value) {
17143
+ // tslint:disable-next-line:switch-default
17173
17144
  switch (typeof (value)) {
17174
17145
  case 'boolean':
17175
17146
  return !value;
@@ -17551,7 +17522,7 @@ FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent,
17551
17522
  } if (rf & 2) {
17552
17523
  i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
17553
17524
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
17554
- } }, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
17525
+ } }, styles: [".form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
17555
17526
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
17556
17527
  type: Component,
17557
17528
  args: [{
@@ -17636,7 +17607,7 @@ FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelCom
17636
17607
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
17637
17608
  i0.ɵɵadvance(1);
17638
17609
  i0.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", _r1);
17639
- } }, directives: [i1.NgIf, i1.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
17610
+ } }, directives: [i1.NgIf, i1.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
17640
17611
  const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(FieldReadLabelComponent);
17641
17612
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadLabelComponent, [{
17642
17613
  type: Component,
@@ -17991,6 +17962,7 @@ CaseFileViewFolderSortComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileV
17991
17962
  class CaseFileViewCategory {
17992
17963
  }
17993
17964
 
17965
+ // tslint:disable:variable-name
17994
17966
  class CaseFileViewDocument {
17995
17967
  }
17996
17968
 
@@ -19201,7 +19173,7 @@ class SelectFlagLocationComponent {
19201
19173
  // is expected not to have a party name)
19202
19174
  if (this.flagsData) {
19203
19175
  this.filteredFlagsData =
19204
- this.flagsData.filter(f => f.flags.partyName != null || f.pathToFlagsFormGroup === this.caseLevelCaseFlagsFieldId);
19176
+ this.flagsData.filter(f => f.flags.partyName !== null || f.pathToFlagsFormGroup === this.caseLevelCaseFlagsFieldId);
19205
19177
  }
19206
19178
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
19207
19179
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -20369,18 +20341,19 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
20369
20341
  field.value = { CaseReference: value };
20370
20342
  return field;
20371
20343
  }
20372
- toCaseField(id, label, field_type, value) {
20344
+ toCaseField(id, label, fieldType, value) {
20373
20345
  return plainToClassFromExist(new CaseField(), {
20374
20346
  id,
20375
20347
  label,
20376
20348
  display_context: 'READONLY',
20377
20349
  value,
20378
- field_type
20350
+ field_type: fieldType
20379
20351
  });
20380
20352
  }
20381
20353
  sortRowsByColumns(column) {
20382
20354
  const shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
20383
20355
  || this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
20356
+ // tslint:disable-next-line:switch-default
20384
20357
  switch (this.columnsHorizontalLabel[column].type.type) {
20385
20358
  case 'Number':
20386
20359
  case 'MoneyGBP': {
@@ -21357,6 +21330,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
21357
21330
  class FeeValue {
21358
21331
  }
21359
21332
 
21333
+ // tslint:disable:variable-name
21360
21334
  class Fee {
21361
21335
  }
21362
21336
 
@@ -21961,7 +21935,7 @@ CcdTabFieldsPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTab
21961
21935
 
21962
21936
  class CcdPageFieldsPipe {
21963
21937
  transform(page, dataFormGroup) {
21964
- const complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
21938
+ const complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
21965
21939
  const control = dataFormGroup.controls['data'].get(key);
21966
21940
  return control['caseField'];
21967
21941
  }).filter(field => {
@@ -21980,7 +21954,7 @@ class CcdPageFieldsPipe {
21980
21954
  field_type: {
21981
21955
  id: page.id,
21982
21956
  type: 'Complex',
21983
- complex_fields
21957
+ complex_fields: complexFields
21984
21958
  }
21985
21959
  });
21986
21960
  }
@@ -22139,11 +22113,11 @@ class CollectionCreateCheckerService {
22139
22113
  }
22140
22114
  return childrenCaseFields;
22141
22115
  }
22142
- isComplex(case_field) {
22143
- return case_field.field_type.type === 'Complex';
22116
+ isComplex(caseField) {
22117
+ return caseField.field_type.type === 'Complex';
22144
22118
  }
22145
- isCollection(case_field) {
22146
- return case_field.field_type.type === 'Collection';
22119
+ isCollection(caseField) {
22120
+ return caseField.field_type.type === 'Collection';
22147
22121
  }
22148
22122
  hasCreateAccess(caseField, role) {
22149
22123
  return !!caseField.acls.find(acl => acl.role === role && acl.create === true);
@@ -23257,7 +23231,7 @@ class CaseEditSubmitComponent {
23257
23231
  if (caseField.field_type.type === 'Complex') {
23258
23232
  // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
23259
23233
  // handle both null and undefined values
23260
- if (caseField.value != null) {
23234
+ if (caseField.value !== null) {
23261
23235
  // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
23262
23236
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
23263
23237
  // parent)
@@ -23319,8 +23293,8 @@ class CaseEditSubmitComponent {
23319
23293
  this.caseEdit.navigateToPage(pageId);
23320
23294
  }
23321
23295
  callbackErrorsNotify(errorContext) {
23322
- this.ignoreWarning = errorContext.ignore_warning;
23323
- this.triggerText = errorContext.trigger_text;
23296
+ this.ignoreWarning = errorContext.ignoreWarning;
23297
+ this.triggerText = errorContext.triggerText;
23324
23298
  }
23325
23299
  summaryCaseField(field) {
23326
23300
  if (null === this.editForm.get('data').get(field.id)) {
@@ -23873,6 +23847,7 @@ class CaseEventCompletionComponent {
23873
23847
  { provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
23874
23848
  ]
23875
23849
  });
23850
+ // tslint:disable-next-line:switch-default
23876
23851
  switch (portalType) {
23877
23852
  case EventCompletionPortalTypes.TaskCancelled:
23878
23853
  this.selectedComponentPortal = new ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
@@ -24343,27 +24318,27 @@ class PaginationComponent {
24343
24318
  this.screenReaderCurrentLabel = `You're on page`;
24344
24319
  this.pageChange = new EventEmitter();
24345
24320
  this.pageBoundsCorrection = new EventEmitter();
24346
- this._directionLinks = true;
24347
- this._autoHide = false;
24348
- this._responsive = false;
24321
+ this.pDirectionLinks = true;
24322
+ this.pAutoHide = false;
24323
+ this.pResponsive = false;
24349
24324
  }
24350
24325
  get directionLinks() {
24351
- return this._directionLinks;
24326
+ return this.pDirectionLinks;
24352
24327
  }
24353
24328
  set directionLinks(value) {
24354
- this._directionLinks = coerceToBoolean(value);
24329
+ this.pDirectionLinks = coerceToBoolean(value);
24355
24330
  }
24356
24331
  get autoHide() {
24357
- return this._autoHide;
24332
+ return this.pAutoHide;
24358
24333
  }
24359
24334
  set autoHide(value) {
24360
- this._autoHide = coerceToBoolean(value);
24335
+ this.pAutoHide = coerceToBoolean(value);
24361
24336
  }
24362
24337
  get responsive() {
24363
- return this._responsive;
24338
+ return this.pResponsive;
24364
24339
  }
24365
24340
  set responsive(value) {
24366
- this._responsive = coerceToBoolean(value);
24341
+ this.pResponsive = coerceToBoolean(value);
24367
24342
  }
24368
24343
  }
24369
24344
  PaginationComponent.ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
@@ -25024,7 +24999,7 @@ class WorkbasketFiltersComponent {
25024
24999
  const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
25025
25000
  workbasketInputs.forEach(item => {
25026
25001
  if (item.field.elementPath) {
25027
- item.field.id = item.field.id + '.' + item.field.elementPath;
25002
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
25028
25003
  }
25029
25004
  item.field.label = item.label;
25030
25005
  if (formValue) {
@@ -25076,7 +25051,7 @@ class WorkbasketFiltersComponent {
25076
25051
  const value = formGroupLS[key];
25077
25052
  // Clear the filter form group control values if it has a value in local storage
25078
25053
  // The regionList form group control value should be ignored as it always contain the latest value
25079
- if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
25054
+ if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
25080
25055
  this.formGroup.get(key).setValue(null);
25081
25056
  }
25082
25057
  }
@@ -26095,7 +26070,7 @@ class CaseEventTriggerComponent {
26095
26070
  this.eventTrigger = this.route.snapshot.data.eventTrigger;
26096
26071
  if (this.activityPollingService.isEnabled) {
26097
26072
  this.ngZone.runOutsideAngular(() => {
26098
- this.activitySubscription = this.postEditActivity().subscribe((_resolved) => {
26073
+ this.activitySubscription = this.postEditActivity().subscribe(() => {
26099
26074
  // console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
26100
26075
  });
26101
26076
  });
@@ -26157,7 +26132,9 @@ class CaseEventTriggerComponent {
26157
26132
  }
26158
26133
  cancel() {
26159
26134
  if (this.router.url && this.router.url.includes('linkCases')) {
26160
- this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
26135
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(() => {
26136
+ window.location.hash = 'Linked cases';
26137
+ });
26161
26138
  }
26162
26139
  else {
26163
26140
  return this.router.navigate([this.parentUrl]);
@@ -26670,9 +26647,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
26670
26647
  i0.ɵɵelementEnd();
26671
26648
  i0.ɵɵelementEnd();
26672
26649
  } if (rf & 2) {
26673
- const field_r23 = i0.ɵɵnextContext(2).$implicit;
26650
+ const field_r24 = i0.ɵɵnextContext(2).$implicit;
26674
26651
  i0.ɵɵadvance(2);
26675
- i0.ɵɵtextInterpolate(field_r23.label);
26652
+ i0.ɵɵtextInterpolate(field_r24.label);
26676
26653
  } }
26677
26654
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
26678
26655
  i0.ɵɵelementStart(0, "tr");
@@ -26684,14 +26661,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
26684
26661
  i0.ɵɵelementEnd();
26685
26662
  i0.ɵɵelementEnd();
26686
26663
  } if (rf & 2) {
26687
- const field_r23 = i0.ɵɵnextContext().$implicit;
26688
- const ctx_r24 = i0.ɵɵnextContext(4);
26664
+ const field_r24 = i0.ɵɵnextContext().$implicit;
26665
+ const ctx_r25 = i0.ɵɵnextContext(4);
26689
26666
  i0.ɵɵadvance(1);
26690
- i0.ɵɵproperty("ngIf", !ctx_r24.isFieldToHaveNoLabel(field_r23));
26667
+ i0.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
26691
26668
  i0.ɵɵadvance(1);
26692
- i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
26669
+ i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
26693
26670
  i0.ɵɵadvance(2);
26694
- i0.ɵɵproperty("topLevelFormGroup", ctx_r24.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r24.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r24.markdownUseHrefAsRouterLink);
26671
+ i0.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
26695
26672
  } }
26696
26673
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
26697
26674
  i0.ɵɵelementStart(0, "tr", 39);
@@ -26702,12 +26679,12 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
26702
26679
  i0.ɵɵelementEnd();
26703
26680
  i0.ɵɵelementEnd();
26704
26681
  } if (rf & 2) {
26705
- const field_r23 = i0.ɵɵnextContext().$implicit;
26706
- const ctx_r25 = i0.ɵɵnextContext(4);
26682
+ const field_r24 = i0.ɵɵnextContext().$implicit;
26683
+ const ctx_r26 = i0.ɵɵnextContext(4);
26707
26684
  i0.ɵɵadvance(1);
26708
- i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
26685
+ i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
26709
26686
  i0.ɵɵadvance(2);
26710
- i0.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
26687
+ i0.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
26711
26688
  } }
26712
26689
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
26713
26690
  i0.ɵɵelementContainerStart(0);
@@ -26720,12 +26697,12 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
26720
26697
  i0.ɵɵelementEnd();
26721
26698
  i0.ɵɵelementContainerEnd();
26722
26699
  } if (rf & 2) {
26723
- const field_r23 = ctx.$implicit;
26724
- const ctx_r22 = i0.ɵɵnextContext(4);
26700
+ const field_r24 = ctx.$implicit;
26701
+ const ctx_r23 = i0.ɵɵnextContext(4);
26725
26702
  i0.ɵɵadvance(1);
26726
- i0.ɵɵproperty("caseField", field_r23)("contextFields", ctx_r22.caseFields)("hidden", field_r23.hidden);
26703
+ i0.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
26727
26704
  i0.ɵɵadvance(1);
26728
- i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6, field_r23));
26705
+ i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(3, 6, field_r24));
26729
26706
  i0.ɵɵadvance(2);
26730
26707
  i0.ɵɵproperty("ngSwitchCase", true);
26731
26708
  i0.ɵɵadvance(1);
@@ -26742,10 +26719,10 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_Tem
26742
26719
  i0.ɵɵelementEnd();
26743
26720
  } if (rf & 2) {
26744
26721
  const tab_r20 = i0.ɵɵnextContext().$implicit;
26745
- const ctx_r21 = i0.ɵɵnextContext(2);
26722
+ const ctx_r22 = i0.ɵɵnextContext(2);
26746
26723
  i0.ɵɵclassMap(tab_r20.id);
26747
26724
  i0.ɵɵadvance(2);
26748
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(3, 3, i0.ɵɵpureFunction2(11, _c1$3, i0.ɵɵpipeBind1(4, 9, tab_r20), ctx_r21.formGroup.controls["data"])));
26725
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(3, 3, i0.ɵɵpureFunction2(11, _c1$3, i0.ɵɵpipeBind1(4, 9, tab_r20), ctx_r22.formGroup.controls["data"])));
26749
26726
  } }
26750
26727
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) { if (rf & 1) {
26751
26728
  i0.ɵɵelementStart(0, "mat-tab", 26);
@@ -26758,17 +26735,17 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx)
26758
26735
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template(rf, ctx) { if (rf & 1) {
26759
26736
  i0.ɵɵelement(0, "mat-tab", 26);
26760
26737
  } if (rf & 2) {
26761
- const tab_r31 = ctx.$implicit;
26762
- i0.ɵɵproperty("id", tab_r31.id)("label", tab_r31.label);
26738
+ const tab_r32 = ctx.$implicit;
26739
+ i0.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
26763
26740
  } }
26764
26741
  function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) { if (rf & 1) {
26765
26742
  i0.ɵɵelement(0, "router-outlet");
26766
26743
  } }
26767
26744
  function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
26768
- const _r33 = i0.ɵɵgetCurrentView();
26745
+ const _r34 = i0.ɵɵgetCurrentView();
26769
26746
  i0.ɵɵelementContainerStart(0);
26770
26747
  i0.ɵɵelementStart(1, "mat-tab-group", 23, 24);
26771
- i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.tabChanged($event); });
26748
+ i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
26772
26749
  i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
26773
26750
  i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
26774
26751
  i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
@@ -26939,8 +26916,8 @@ class CaseFullAccessViewComponent {
26939
26916
  return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
26940
26917
  }
26941
26918
  callbackErrorsNotify(callbackErrorsContext) {
26942
- this.ignoreWarning = callbackErrorsContext.ignore_warning;
26943
- this.triggerText = callbackErrorsContext.trigger_text;
26919
+ this.ignoreWarning = callbackErrorsContext.ignoreWarning;
26920
+ this.triggerText = callbackErrorsContext.triggerText;
26944
26921
  }
26945
26922
  isDraft() {
26946
26923
  return Draft.isDraft(this.caseDetails.case_id);
@@ -27020,7 +26997,9 @@ class CaseFullAccessViewComponent {
27020
26997
  }
27021
26998
  else {
27022
26999
  const label = tabChangeEvent.tab.textLabel;
27023
- this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: label });
27000
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(() => {
27001
+ window.location.hash = label;
27002
+ });
27024
27003
  }
27025
27004
  }
27026
27005
  onLinkClicked(triggerOutputEventText) {
@@ -27205,7 +27184,7 @@ class PrintUrlPipe {
27205
27184
  * or the empty string
27206
27185
  */
27207
27186
  transform(remoteUrl) {
27208
- if (remoteUrl && remoteUrl.length > 0) {
27187
+ if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
27209
27188
  let printServiceUrlPathname;
27210
27189
  /**
27211
27190
  * Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
@@ -27221,7 +27200,7 @@ class PrintUrlPipe {
27221
27200
  printServiceUrlPathname = urlParser.pathname;
27222
27201
  if (printServiceUrlPathname[0] !== '/') {
27223
27202
  // Fix for IE11; it returns the pathname without leading slash
27224
- printServiceUrlPathname = '/' + printServiceUrlPathname;
27203
+ printServiceUrlPathname = `/${printServiceUrlPathname}`;
27225
27204
  }
27226
27205
  }
27227
27206
  else {
@@ -27385,21 +27364,20 @@ class CaseViewerComponent {
27385
27364
  }
27386
27365
  }
27387
27366
  loadCaseDetails() {
27388
- if (this.route.snapshot.data.case) {
27389
- this.caseDetails = this.route.snapshot.data.case;
27390
- this.caseDetails.tabs = [...new Map(this.caseDetails.tabs.map(item => [item['label'], item])).values()];
27391
- this.setUserAccessType(this.caseDetails);
27392
- }
27393
- else {
27367
+ if (!this.route.snapshot.data.case) {
27394
27368
  this.caseSubscription = this.caseNotifier.caseView.subscribe(caseDetails => {
27395
27369
  this.caseDetails = caseDetails;
27396
27370
  this.setUserAccessType(this.caseDetails);
27397
27371
  });
27398
27372
  }
27373
+ else {
27374
+ this.caseDetails = this.route.snapshot.data.case;
27375
+ this.setUserAccessType(this.caseDetails);
27376
+ }
27399
27377
  }
27400
27378
  setUserAccessType(caseDetails) {
27401
27379
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
27402
- const accessProcess = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID);
27380
+ const accessProcess = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
27403
27381
  const accessGranted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
27404
27382
  this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
27405
27383
  this.userAccessType = accessProcess ? accessProcess.value : null;
@@ -27415,12 +27393,12 @@ class CaseViewerComponent {
27415
27393
  : true;
27416
27394
  }
27417
27395
  }
27418
- CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID = '[ACCESS_PROCESS]';
27396
+ CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
27419
27397
  CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
27420
27398
  CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
27421
27399
  CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
27422
27400
  CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
27423
- CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
27401
+ CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs", caseDetails: "caseDetails" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
27424
27402
  i0.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
27425
27403
  } if (rf & 2) {
27426
27404
  i0.ɵɵproperty("ngIf", ctx.isDataLoaded());
@@ -27439,6 +27417,8 @@ CaseViewerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseViewerComponent,
27439
27417
  type: Input
27440
27418
  }], appendedTabs: [{
27441
27419
  type: Input
27420
+ }], caseDetails: [{
27421
+ type: Input
27442
27422
  }] }); })();
27443
27423
 
27444
27424
  /**
@@ -28565,11 +28545,11 @@ class CaseChallengedAccessRequestComponent {
28565
28545
  };
28566
28546
  this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
28567
28547
  .pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
28568
- .subscribe(_response => {
28548
+ .subscribe(() => {
28569
28549
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
28570
28550
  // Angular 7.2!
28571
28551
  this.router.navigate(['success'], { relativeTo: this.route });
28572
- }, _error => {
28552
+ }, () => {
28573
28553
  // Navigate to error page
28574
28554
  });
28575
28555
  }
@@ -28583,7 +28563,7 @@ class CaseChallengedAccessRequestComponent {
28583
28563
  }
28584
28564
  }
28585
28565
  inputEmpty(input) {
28586
- return input.value == null || input.value.trim().length === 0;
28566
+ return input.value === null || input.value.trim().length === 0;
28587
28567
  }
28588
28568
  }
28589
28569
  CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
@@ -29169,11 +29149,11 @@ class CaseSpecificAccessRequestComponent {
29169
29149
  };
29170
29150
  this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId, specificAccessRequest)
29171
29151
  .pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
29172
- .subscribe(_response => {
29152
+ .subscribe(() => {
29173
29153
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
29174
29154
  // Angular 7.2
29175
29155
  this.router.navigate(['success'], { relativeTo: this.route });
29176
- }, _error => {
29156
+ }, () => {
29177
29157
  // Navigate to error page
29178
29158
  });
29179
29159
  }
@@ -29188,7 +29168,7 @@ class CaseSpecificAccessRequestComponent {
29188
29168
  }
29189
29169
  }
29190
29170
  inputEmpty(input) {
29191
- return input.value == null || input.value.trim().length === 0;
29171
+ return input.value === null || input.value.trim().length === 0;
29192
29172
  }
29193
29173
  }
29194
29174
  CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
@@ -30030,7 +30010,7 @@ class SearchFiltersComponent {
30030
30010
  }
30031
30011
  searchInputs.forEach(item => {
30032
30012
  if (item.field.elementPath) {
30033
- item.field.id = item.field.id + '.' + item.field.elementPath;
30013
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
30034
30014
  }
30035
30015
  item.field.label = item.label;
30036
30016
  if (formValueObject) {
@@ -30284,7 +30264,7 @@ function SearchResultComponent_table_0_div_4_Template(rf, ctx) { if (rf & 1) {
30284
30264
  } if (rf & 2) {
30285
30265
  const ctx_r3 = i0.ɵɵnextContext(2);
30286
30266
  i0.ɵɵadvance(6);
30287
- i0.ɵɵtextInterpolate1(" The total size of the result set is ", i0.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.total_results_count), ". Only the first 10,000 records are available for display. ");
30267
+ i0.ɵɵtextInterpolate1(" The total size of the result set is ", i0.ɵɵpipeBind1(7, 1, ctx_r3.paginationMetadata.totalResultsCount), ". Only the first 10,000 records are available for display. ");
30288
30268
  } }
30289
30269
  function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
30290
30270
  i0.ɵɵelementStart(0, "div", 15);
@@ -30742,7 +30722,7 @@ class SearchResultComponent {
30742
30722
  }
30743
30723
  }
30744
30724
  get resultTotal() {
30745
- const total = this.paginationMetadata.total_results_count;
30725
+ const total = this.paginationMetadata.totalResultsCount;
30746
30726
  const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
30747
30727
  this.paginationLimitEnforced = maximumResultReached;
30748
30728
  return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
@@ -30887,7 +30867,7 @@ class SearchResultComponent {
30887
30867
  return col;
30888
30868
  }
30889
30869
  hasResults() {
30890
- return this.resultView.results.length && this.paginationMetadata.total_pages_count;
30870
+ return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
30891
30871
  }
30892
30872
  hasDrafts() {
30893
30873
  return this.resultView.hasDrafts();
@@ -30986,7 +30966,7 @@ class SearchResultComponent {
30986
30966
  return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
30987
30967
  }
30988
30968
  getTotalResults() {
30989
- const total = this.paginationMetadata.total_results_count + this.draftsCount;
30969
+ const total = this.paginationMetadata.totalResultsCount + this.draftsCount;
30990
30970
  return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
30991
30971
  }
30992
30972
  prepareCaseLinkUrl(caseId) {
@@ -31131,6 +31111,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
31131
31111
  }], null, null); })();
31132
31112
  i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
31133
31113
 
31114
+ // tslint:disable:variable-name
31134
31115
  class ComplexFieldOverride {
31135
31116
  }
31136
31117
 
@@ -31149,24 +31130,24 @@ class CaseFieldBuilder {
31149
31130
  this.caseField.id = id;
31150
31131
  return this;
31151
31132
  }
31152
- withFieldType(field_type) {
31153
- this.caseField.field_type = field_type;
31133
+ withFieldType(fieldType) {
31134
+ this.caseField.field_type = fieldType;
31154
31135
  return this;
31155
31136
  }
31156
- withDisplayContext(display_context) {
31157
- this.caseField.display_context = display_context;
31137
+ withDisplayContext(displayContext) {
31138
+ this.caseField.display_context = displayContext;
31158
31139
  return this;
31159
31140
  }
31160
- withDisplayContextParameter(display_context_parameter) {
31161
- this.caseField.display_context_parameter = display_context_parameter;
31141
+ withDisplayContextParameter(displayContextParameter) {
31142
+ this.caseField.display_context_parameter = displayContextParameter;
31162
31143
  return this;
31163
31144
  }
31164
31145
  withHidden(hidden) {
31165
31146
  this.caseField.hidden = hidden;
31166
31147
  return this;
31167
31148
  }
31168
- withHintText(hint_text) {
31169
- this.caseField.hint_text = hint_text;
31149
+ withHintText(hintText) {
31150
+ this.caseField.hint_text = hintText;
31170
31151
  return this;
31171
31152
  }
31172
31153
  withLabel(label) {
@@ -31177,12 +31158,12 @@ class CaseFieldBuilder {
31177
31158
  this.caseField.order = order;
31178
31159
  return this;
31179
31160
  }
31180
- withSecurityLabel(security_label) {
31181
- this.caseField.security_label = security_label;
31161
+ withSecurityLabel(securityLabel) {
31162
+ this.caseField.security_label = securityLabel;
31182
31163
  return this;
31183
31164
  }
31184
- withShowCondition(show_condition) {
31185
- this.caseField.show_condition = show_condition;
31165
+ withShowCondition(showCondition) {
31166
+ this.caseField.show_condition = showCondition;
31186
31167
  return this;
31187
31168
  }
31188
31169
  withShowSummaryContentOption(option) {
@@ -31209,19 +31190,19 @@ const textFieldType = () => {
31209
31190
  complex_fields: []
31210
31191
  };
31211
31192
  };
31212
- const createCaseEventTrigger = (id, name, case_id, show_summary, case_fields, wizard_pages = [], can_save_draft = false) => {
31193
+ const createCaseEventTrigger = (id, name, caseId, showSummary, caseFields, wizardPages = [], canSaveDraft = false) => {
31213
31194
  const eventTrigger = new CaseEventTrigger();
31214
31195
  eventTrigger.id = id;
31215
31196
  eventTrigger.name = name;
31216
- eventTrigger.case_id = case_id;
31217
- eventTrigger.show_summary = show_summary;
31218
- eventTrigger.wizard_pages = wizard_pages;
31197
+ eventTrigger.case_id = caseId;
31198
+ eventTrigger.show_summary = showSummary;
31199
+ eventTrigger.wizard_pages = wizardPages;
31219
31200
  eventTrigger.event_token = 'test-token';
31220
- eventTrigger.case_fields = case_fields;
31221
- eventTrigger.can_save_draft = can_save_draft;
31201
+ eventTrigger.case_fields = caseFields;
31202
+ eventTrigger.can_save_draft = canSaveDraft;
31222
31203
  return eventTrigger;
31223
31204
  };
31224
- const aCaseField = (id, label, type, display_context, show_summary_content_option, typeComplexFields = [], retain_hidden_value, hidden) => {
31205
+ const aCaseField = (id, label, type, displayContext, showSummaryContentOption, typeComplexFields = [], retainHiddenValue, hidden) => {
31225
31206
  return ({
31226
31207
  id: id || 'personFirstName',
31227
31208
  field_type: {
@@ -31229,10 +31210,10 @@ const aCaseField = (id, label, type, display_context, show_summary_content_optio
31229
31210
  type: type || 'Text',
31230
31211
  complex_fields: typeComplexFields || []
31231
31212
  },
31232
- display_context: display_context || 'OPTIONAL',
31213
+ display_context: displayContext || 'OPTIONAL',
31233
31214
  label: label || 'First name',
31234
- show_summary_content_option,
31235
- retain_hidden_value: retain_hidden_value || false,
31215
+ show_summary_content_option: showSummaryContentOption,
31216
+ retain_hidden_value: retainHiddenValue || false,
31236
31217
  hidden: hidden || false
31237
31218
  });
31238
31219
  };
@@ -31270,59 +31251,59 @@ const createHiddenComplexFieldOverride = (id) => {
31270
31251
  complexFieldOverride.display_context = 'HIDDEN';
31271
31252
  return complexFieldOverride;
31272
31253
  };
31273
- const createCaseField = (id, label, hint, fieldType, display_context, order = undefined, show_condition = undefined, ACLs = undefined, hidden) => {
31254
+ const createCaseField = (id, label, hint, fieldType, displayContext, order = undefined, showCondition = undefined, acls = undefined, hidden) => {
31274
31255
  return CaseFieldBuilder.create()
31275
31256
  .withId(id || 'personFirstName')
31276
31257
  .withFieldType(fieldType || textFieldType())
31277
- .withDisplayContext(display_context || 'OPTIONAL')
31258
+ .withDisplayContext(displayContext || 'OPTIONAL')
31278
31259
  .withLabel(label || 'First name')
31279
31260
  .withHintText(hint || 'First name hint text')
31280
31261
  .withShowSummaryContentOption(0)
31281
31262
  .withOrder(order)
31282
- .withShowCondition(show_condition || undefined)
31283
- .withACLs(ACLs)
31263
+ .withShowCondition(showCondition || undefined)
31264
+ .withACLs(acls)
31284
31265
  .withHidden(hidden || false)
31285
31266
  .build();
31286
31267
  };
31287
- const newCaseField = (id, label, hint, fieldType, display_context, order = undefined) => {
31268
+ const newCaseField = (id, label, hint, fieldType, displayContext, order = undefined) => {
31288
31269
  return CaseFieldBuilder.create()
31289
31270
  .withId(id || 'personFirstName')
31290
31271
  .withFieldType(fieldType || textFieldType())
31291
- .withDisplayContext(display_context || 'OPTIONAL')
31272
+ .withDisplayContext(displayContext || 'OPTIONAL')
31292
31273
  .withHintText(hint || 'First name hint text')
31293
31274
  .withLabel(label || 'First name')
31294
31275
  .withOrder(order)
31295
31276
  .withShowSummaryContentOption(0);
31296
31277
  };
31297
- const createFieldType = (typeId, type, complex_fields = [], collection_field_type = undefined) => {
31278
+ const createFieldType = (typeId, type, complexFields = [], collectionFieldType = undefined) => {
31298
31279
  return {
31299
31280
  id: typeId || 'Text',
31300
31281
  type: type || 'Text',
31301
- complex_fields: complex_fields || [],
31302
- collection_field_type: collection_field_type || undefined
31282
+ complex_fields: complexFields || [],
31283
+ collection_field_type: collectionFieldType || undefined
31303
31284
  };
31304
31285
  };
31305
31286
  const createFixedListFieldType = (typeId, fixedListItems = []) => {
31306
31287
  return {
31307
- id: 'FixedList-' + typeId,
31288
+ id: `FixedList-${typeId}`,
31308
31289
  type: 'FixedList',
31309
31290
  fixed_list_items: fixedListItems || []
31310
31291
  };
31311
31292
  };
31312
31293
  const createMultiSelectListFieldType = (typeId, fixedListItems = []) => {
31313
31294
  return {
31314
- id: 'MultiSelectList-' + typeId,
31295
+ id: `MultiSelectList-${typeId}`,
31315
31296
  type: 'MultiSelectList',
31316
31297
  fixed_list_items: fixedListItems || []
31317
31298
  };
31318
31299
  };
31319
- const createACL = (role, create, read, update, _delete) => {
31300
+ const createACL = (role, aclCreate, aclRead, aclUpdate, aclDelete) => {
31320
31301
  return ({
31321
31302
  role: role || 'roleX',
31322
- create,
31323
- read,
31324
- update,
31325
- delete: _delete
31303
+ create: aclCreate,
31304
+ read: aclRead,
31305
+ update: aclUpdate,
31306
+ delete: aclDelete
31326
31307
  });
31327
31308
  };
31328
31309
 
@@ -31369,5 +31350,5 @@ class TestRouteSnapshotBuilder {
31369
31350
  * Generated bundle index. Do not edit.
31370
31351
  */
31371
31352
 
31372
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
31353
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
31373
31354
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map