@hmcts/ccd-case-ui-toolkit 6.14.5-case-flag-dual-error-msg-fix → 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 (233) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +716 -790
  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 -5
  13. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +4 -4
  14. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  15. package/esm2015/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.js +2 -1
  16. package/esm2015/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.js +3 -3
  17. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.js +2 -1
  18. package/esm2015/lib/shared/components/case-editor/domain/wizard-page-field.model.js +1 -1
  19. package/esm2015/lib/shared/components/case-editor/domain/wizard-page.model.js +2 -1
  20. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +11 -22
  21. package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
  22. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +12 -12
  23. package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
  24. package/esm2015/lib/shared/components/case-history/domain/case-history.model.js +2 -1
  25. package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
  26. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -2
  27. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +3 -3
  28. package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
  29. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
  30. package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
  31. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
  32. package/esm2015/lib/shared/components/error/callback-errors.component.js +5 -5
  33. package/esm2015/lib/shared/components/error/domain/error-context.js +1 -1
  34. package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
  35. package/esm2015/lib/shared/components/pagination/pagination.component.js +10 -10
  36. package/esm2015/lib/shared/components/palette/address/address-option.model.js +4 -7
  37. package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
  38. package/esm2015/lib/shared/components/palette/base-field/field-read-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/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  41. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +8 -22
  42. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +7 -20
  43. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  44. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +1 -12
  45. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  46. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +7 -7
  47. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +4 -3
  48. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +1 -1
  49. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +1 -1
  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/domain/linked-cases.model.js +2 -1
  54. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
  55. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
  56. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
  57. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +2 -1
  58. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  59. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  60. package/esm2015/lib/shared/components/palette/palette.service.js +2 -2
  61. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  62. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  63. package/esm2015/lib/shared/components/palette/yes-no/yes-no.service.js +3 -1
  64. package/esm2015/lib/shared/components/search-filters/domain/search-input.model.js +1 -1
  65. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  66. package/esm2015/lib/shared/components/search-result/search-result.component.js +5 -5
  67. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  68. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +4 -3
  69. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +5 -9
  70. package/esm2015/lib/shared/domain/addresses/address.model.js +2 -1
  71. package/esm2015/lib/shared/domain/case-details.model.js +2 -1
  72. package/esm2015/lib/shared/domain/case-event-data.model.js +2 -1
  73. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +1 -1
  74. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +2 -1
  75. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +1 -1
  76. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +2 -1
  77. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +2 -1
  78. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +2 -1
  79. package/esm2015/lib/shared/domain/case-view/case-event-trigger.model.js +2 -1
  80. package/esm2015/lib/shared/domain/case-view/case-tab.model.js +2 -1
  81. package/esm2015/lib/shared/domain/case-view/case-view-event.model.js +2 -1
  82. package/esm2015/lib/shared/domain/case-view/case-view.model.js +2 -1
  83. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  84. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  85. package/esm2015/lib/shared/domain/definition/case-event.model.js +1 -1
  86. package/esm2015/lib/shared/domain/definition/case-field.model.js +2 -1
  87. package/esm2015/lib/shared/domain/definition/case-type.model.js +2 -1
  88. package/esm2015/lib/shared/domain/definition/event-case-field.model.js +2 -1
  89. package/esm2015/lib/shared/domain/definition/field-type.model.js +2 -1
  90. package/esm2015/lib/shared/domain/document/document-data.model.js +2 -1
  91. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  92. package/esm2015/lib/shared/domain/pagination-metadata.model.js +1 -1
  93. package/esm2015/lib/shared/domain/search/field.model.js +1 -1
  94. package/esm2015/lib/shared/domain/search/search-result-view-column.model.js +1 -1
  95. package/esm2015/lib/shared/domain/search/search-result-view-item.model.js +2 -1
  96. package/esm2015/lib/shared/domain/search/search-result-view.model.js +2 -1
  97. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  98. package/esm2015/lib/shared/domain/workbasket/workbasket-input.model.js +1 -8
  99. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  100. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  101. package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
  102. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  103. package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
  104. package/esm2015/lib/shared/services/activity/activity.service.js +9 -18
  105. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  106. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  107. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  108. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  109. package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
  110. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  111. package/esm2015/lib/shared/services/fields/fields.utils.js +5 -4
  112. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +2 -1
  113. package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
  114. package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
  115. package/esm2015/lib/shared/services/search/search.service.js +5 -10
  116. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  117. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  118. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +699 -767
  119. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  120. package/lib/app.config.d.ts.map +1 -1
  121. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  122. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  123. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  124. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +3 -3
  125. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  126. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  127. package/lib/shared/components/case-editor/case-event-completion/case-event-completion.component.d.ts.map +1 -1
  128. 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
  129. 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
  130. package/lib/shared/components/case-editor/domain/wizard-page-field-complex-override.model.d.ts.map +1 -1
  131. package/lib/shared/components/case-editor/domain/wizard-page-field.model.d.ts.map +1 -1
  132. package/lib/shared/components/case-editor/domain/wizard-page.model.d.ts.map +1 -1
  133. package/lib/shared/components/case-editor/services/cases.service.d.ts +1 -3
  134. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  135. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  136. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  137. package/lib/shared/components/case-history/domain/case-history.model.d.ts.map +1 -1
  138. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  139. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  140. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  141. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  142. package/lib/shared/components/error/domain/error-context.d.ts +2 -2
  143. package/lib/shared/components/error/domain/error-context.d.ts.map +1 -1
  144. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  145. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  146. package/lib/shared/components/pagination/pagination.component.d.ts +3 -3
  147. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  148. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  149. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -7
  150. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  151. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -4
  152. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  153. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  154. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +2 -4
  155. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  156. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  157. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  158. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
  159. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  160. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  161. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -1
  162. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  163. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  164. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  165. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  166. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  167. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  168. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  169. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  170. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  171. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  172. package/lib/shared/components/palette/yes-no/yes-no.service.d.ts.map +1 -1
  173. package/lib/shared/components/search-filters/domain/search-input.model.d.ts.map +1 -1
  174. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  175. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  176. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  177. package/lib/shared/domain/addresses/address.model.d.ts.map +1 -1
  178. package/lib/shared/domain/case-details.model.d.ts.map +1 -1
  179. package/lib/shared/domain/case-event-data.model.d.ts.map +1 -1
  180. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -1
  181. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  182. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -1
  183. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  184. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  185. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  186. package/lib/shared/domain/case-view/case-event-trigger.model.d.ts.map +1 -1
  187. package/lib/shared/domain/case-view/case-tab.model.d.ts.map +1 -1
  188. package/lib/shared/domain/case-view/case-view-event.model.d.ts.map +1 -1
  189. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  190. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
  191. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  192. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  193. package/lib/shared/domain/definition/case-event.model.d.ts.map +1 -1
  194. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  195. package/lib/shared/domain/definition/case-type.model.d.ts.map +1 -1
  196. package/lib/shared/domain/definition/event-case-field.model.d.ts.map +1 -1
  197. package/lib/shared/domain/definition/field-type.model.d.ts.map +1 -1
  198. package/lib/shared/domain/document/document-data.model.d.ts.map +1 -1
  199. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  200. package/lib/shared/domain/pagination-metadata.model.d.ts +2 -2
  201. package/lib/shared/domain/pagination-metadata.model.d.ts.map +1 -1
  202. package/lib/shared/domain/search/field.model.d.ts.map +1 -1
  203. package/lib/shared/domain/search/search-result-view-column.model.d.ts.map +1 -1
  204. package/lib/shared/domain/search/search-result-view-item.model.d.ts.map +1 -1
  205. package/lib/shared/domain/search/search-result-view.model.d.ts.map +1 -1
  206. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  207. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts +0 -1
  208. package/lib/shared/domain/workbasket/workbasket-input.model.d.ts.map +1 -1
  209. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  210. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  211. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  212. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  213. package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
  214. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
  215. package/lib/shared/pipes/complex/index.d.ts +1 -1
  216. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  217. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  218. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  219. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  220. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  221. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  222. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  223. package/lib/shared/services/fields/fields.utils.d.ts +0 -1
  224. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  225. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  226. package/lib/shared/services/loading/loading.service.d.ts +1 -4
  227. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  228. package/lib/shared/services/search/search.service.d.ts +0 -2
  229. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  230. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  231. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  232. package/package.json +2 -2
  233. 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 {
@@ -9126,7 +9090,6 @@ class CaseEditPageComponent {
9126
9090
  id,
9127
9091
  message: `Please select Next to complete the ${action} of the ${action === 'update' ? 'selected ' : ''}case flag`
9128
9092
  });
9129
- this.caseEditDataService.setFormValidationErrors(this.validationErrors);
9130
9093
  }
9131
9094
  else {
9132
9095
  this.validationErrors.push({ id, message: `Select or fill the required ${casefield.label} field` });
@@ -9206,8 +9169,8 @@ class CaseEditPageComponent {
9206
9169
  }
9207
9170
  }
9208
9171
  callbackErrorsNotify(errorContext) {
9209
- this.ignoreWarning = errorContext.ignore_warning;
9210
- this.triggerText = errorContext.trigger_text;
9172
+ this.ignoreWarning = errorContext.ignoreWarning;
9173
+ this.triggerText = errorContext.triggerText;
9211
9174
  }
9212
9175
  next() {
9213
9176
  this.resetErrors();
@@ -9519,12 +9482,12 @@ class CallbackErrorsComponent {
9519
9482
  buildCallbackErrorsContext() {
9520
9483
  const errorContext = new CallbackErrorsContext();
9521
9484
  if (this.hasWarnings() && !this.hasErrors() && !this.hasInvalidData()) {
9522
- errorContext.ignore_warning = true;
9523
- errorContext.trigger_text = this.triggerTextIgnore;
9485
+ errorContext.ignoreWarning = true;
9486
+ errorContext.triggerText = this.triggerTextIgnore;
9524
9487
  }
9525
9488
  else {
9526
- errorContext.ignore_warning = false;
9527
- errorContext.trigger_text = this.triggerTextContinue;
9489
+ errorContext.ignoreWarning = false;
9490
+ errorContext.triggerText = this.triggerTextContinue;
9528
9491
  }
9529
9492
  return errorContext;
9530
9493
  }
@@ -9563,7 +9526,7 @@ CallbackErrorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CallbackErrorsCom
9563
9526
 
9564
9527
  class AddressOption {
9565
9528
  constructor(addressModel, description) {
9566
- if (description == null) {
9529
+ if (description === null) {
9567
9530
  this.value = addressModel;
9568
9531
  this.description = this.getDescription();
9569
9532
  }
@@ -9572,13 +9535,10 @@ class AddressOption {
9572
9535
  }
9573
9536
  }
9574
9537
  getDescription() {
9575
- return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
9576
- + this.prefixWithCommaIfPresent(this.value.AddressLine2)
9577
- + this.prefixWithCommaIfPresent(this.value.AddressLine3)
9578
- + ', ' + 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}`);
9579
9539
  }
9580
9540
  prefixWithCommaIfPresent(value) {
9581
- return value ? ', ' + value : value;
9541
+ return value ? `, ${value}` : value;
9582
9542
  }
9583
9543
  removeInitialCommaIfPresent(value) {
9584
9544
  return value.replace(new RegExp('^,', 'gi'), '');
@@ -9966,7 +9926,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
9966
9926
  this.missingPostcode = false;
9967
9927
  const postcode = this.postcode.value;
9968
9928
  this.caseField.value = null;
9969
- this.addressOptions = new Array();
9929
+ this.addressOptions = [];
9970
9930
  this.addressesService.getAddressesForPostcode(postcode.replace(' ', '').toUpperCase()).subscribe(result => {
9971
9931
  result.forEach(address => {
9972
9932
  this.addressOptions.push(new AddressOption(address, null));
@@ -10009,7 +9969,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
10009
9969
  let hasAddress = false;
10010
9970
  if (address) {
10011
9971
  Object.keys(address).forEach((key) => {
10012
- if (address[key] != null) {
9972
+ if (address[key] !== null) {
10013
9973
  hasAddress = true;
10014
9974
  }
10015
9975
  });
@@ -10032,7 +9992,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
10032
9992
  }
10033
9993
  defaultLabel(numberOfAddresses) {
10034
9994
  return numberOfAddresses === 0 ? 'No address found'
10035
- : numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
9995
+ : `${numberOfAddresses}${numberOfAddresses === 1 ? ' address ' : ' addresses '}found`;
10036
9996
  }
10037
9997
  setFormValue() {
10038
9998
  if (this.writeComplexFieldComponent.complexGroup) {
@@ -10708,13 +10668,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
10708
10668
  });
10709
10669
  }
10710
10670
  }
10711
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
10712
- next: (validationErrors) => {
10713
- if (validationErrors.length) {
10714
- this.errorMessages = [];
10715
- }
10716
- }
10717
- });
10718
10671
  }
10719
10672
  setDisplayContextParameterUpdate(caseFields) {
10720
10673
  return caseFields.some(caseField => FieldsUtils.isFlagLauncherCaseField(caseField) && caseField.display_context_parameter === this.updateMode);
@@ -10944,10 +10897,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
10944
10897
  this.formGroup.updateValueAndValidity();
10945
10898
  this.caseEditDataService.setTriggerSubmitEvent(true);
10946
10899
  }
10947
- ngOnDestroy() {
10948
- var _a;
10949
- (_a = this.caseValidationErrorsSubscription$) === null || _a === void 0 ? void 0 : _a.unsubscribe();
10950
- }
10951
10900
  }
10952
10901
  WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService)); };
10953
10902
  WriteCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
@@ -11572,6 +11521,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
11572
11521
  this.formArray.removeAt(index);
11573
11522
  }
11574
11523
  resetIds(index) {
11524
+ var _a, _b;
11575
11525
  for (let i = index; i < this.collItems.length; i++) {
11576
11526
  const counter = i + 1;
11577
11527
  if (this.collItems[i].index && this.collItems[i].index === counter) {
@@ -11581,16 +11531,15 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
11581
11531
  && this.collItems[i].caseField.id === counter.toString()) {
11582
11532
  this.collItems[i].caseField.id = i.toString();
11583
11533
  }
11584
- const idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
11585
- 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()}`);
11586
11536
  if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
11587
11537
  this.collItems[i].prefix = idPrefix1;
11588
11538
  }
11589
- const idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
11590
- && 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);
11591
11540
  const idPrefix2 = idPrefixAvailable ?
11592
- this.collItems[i].container['component'].idPrefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
11593
- 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()}`);
11594
11543
  if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
11595
11544
  this.collItems[i].container['component'].idPrefix = idPrefix2;
11596
11545
  }
@@ -12473,34 +12422,243 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
12473
12422
  i0.ɵɵelementStart(7, "option", 6);
12474
12423
  i0.ɵɵtext(8, "--Select a value--");
12475
12424
  i0.ɵɵelementEnd();
12476
- i0.ɵɵtemplate(9, WriteDynamicListFieldComponent_option_9_Template, 2, 2, "option", 7);
12425
+ i0.ɵɵtemplate(9, WriteDynamicListFieldComponent_option_9_Template, 2, 2, "option", 7);
12426
+ i0.ɵɵelementEnd();
12427
+ i0.ɵɵelementEnd();
12428
+ } if (rf & 2) {
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);
12477
12643
  i0.ɵɵelementEnd();
12478
12644
  i0.ɵɵelementEnd();
12479
12645
  } if (rf & 2) {
12480
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
12481
- i0.ɵɵadvance(1);
12482
- i0.ɵɵproperty("for", ctx.id());
12483
- i0.ɵɵadvance(1);
12646
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$L, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
12647
+ i0.ɵɵadvance(3);
12484
12648
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
12485
12649
  i0.ɵɵadvance(1);
12486
12650
  i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
12487
12651
  i0.ɵɵadvance(1);
12488
- i0.ɵɵproperty("ngIf", !ctx.caseField.label && !ctx.caseField.hint_text);
12489
- i0.ɵɵadvance(1);
12490
- i0.ɵɵproperty("ngIf", ctx.dynamicListFormControl.errors && ctx.dynamicListFormControl.dirty);
12491
- i0.ɵɵadvance(1);
12492
- i0.ɵɵproperty("id", ctx.id())("formControl", ctx.dynamicListFormControl);
12652
+ i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
12493
12653
  i0.ɵɵadvance(1);
12494
- i0.ɵɵproperty("ngValue", null);
12495
- i0.ɵɵadvance(2);
12496
12654
  i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
12497
- } }, 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 });
12498
- const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
12499
- (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, [{
12500
12658
  type: Component,
12501
12659
  args: [{
12502
- selector: 'ccd-write-dynamic-list-field',
12503
- templateUrl: './write-dynamic-list-field.html'
12660
+ selector: 'ccd-write-dynamic-multi-select-list-field',
12661
+ templateUrl: './write-dynamic-multi-select-list-field.html'
12504
12662
  }]
12505
12663
  }], null, null); })();
12506
12664
 
@@ -12598,7 +12756,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
12598
12756
  i0.ɵɵadvance(1);
12599
12757
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
12600
12758
  } }
12601
- const _c0$L = function (a0) { return { selected: a0 }; };
12759
+ const _c0$K = function (a0) { return { selected: a0 }; };
12602
12760
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
12603
12761
  i0.ɵɵelementStart(0, "div", 10);
12604
12762
  i0.ɵɵelement(1, "input", 11);
@@ -12609,7 +12767,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
12609
12767
  } if (rf & 2) {
12610
12768
  const radioButton_r5 = ctx.$implicit;
12611
12769
  const ctx_r4 = i0.ɵɵnextContext();
12612
- 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));
12613
12771
  i0.ɵɵadvance(1);
12614
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);
12615
12773
  i0.ɵɵadvance(1);
@@ -12742,7 +12900,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
12742
12900
  i0.ɵɵadvance(1);
12743
12901
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
12744
12902
  } }
12745
- const _c0$K = function (a0) { return { "form-group-error": a0 }; };
12903
+ const _c0$J = function (a0) { return { "form-group-error": a0 }; };
12746
12904
  const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
12747
12905
  class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
12748
12906
  ngOnInit() {
@@ -12760,7 +12918,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
12760
12918
  i0.ɵɵelement(5, "input", 5);
12761
12919
  i0.ɵɵelementEnd();
12762
12920
  } if (rf & 2) {
12763
- 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)));
12764
12922
  i0.ɵɵadvance(1);
12765
12923
  i0.ɵɵproperty("for", ctx.id());
12766
12924
  i0.ɵɵadvance(1);
@@ -12781,27 +12939,6 @@ const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherited
12781
12939
  }]
12782
12940
  }], null, null); })();
12783
12941
 
12784
- class FixedListPipe {
12785
- transform(value, items) {
12786
- if (!!items) {
12787
- const item = items.find(i => i.code === value);
12788
- return item ? item.label : FixedListPipe.EMPTY;
12789
- }
12790
- else {
12791
- return FixedListPipe.EMPTY;
12792
- }
12793
- }
12794
- }
12795
- FixedListPipe.EMPTY = '';
12796
- FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
12797
- FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
12798
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
12799
- type: Pipe,
12800
- args: [{
12801
- name: 'ccdFixedList'
12802
- }]
12803
- }], null, null); })();
12804
-
12805
12942
  class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
12806
12943
  }
12807
12944
  ReadFixedListFieldComponent.ɵfac = function ReadFixedListFieldComponent_Factory(t) { return ɵReadFixedListFieldComponent_BaseFactory(t || ReadFixedListFieldComponent); };
@@ -12862,7 +12999,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
12862
12999
  i0.ɵɵadvance(1);
12863
13000
  i0.ɵɵtextInterpolate(type_r4.label);
12864
13001
  } }
12865
- const _c0$J = function (a0) { return { "form-group-error": a0 }; };
13002
+ const _c0$I = function (a0) { return { "form-group-error": a0 }; };
12866
13003
  class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
12867
13004
  get listItems() {
12868
13005
  if (this.caseField) {
@@ -12900,7 +13037,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
12900
13037
  i0.ɵɵelementEnd();
12901
13038
  i0.ɵɵelementEnd();
12902
13039
  } if (rf & 2) {
12903
- 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)));
12904
13041
  i0.ɵɵadvance(1);
12905
13042
  i0.ɵɵproperty("for", ctx.id());
12906
13043
  i0.ɵɵadvance(1);
@@ -12991,7 +13128,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
12991
13128
  i0.ɵɵadvance(1);
12992
13129
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
12993
13130
  } }
12994
- const _c0$I = function (a0) { return { selected: a0 }; };
13131
+ const _c0$H = function (a0) { return { selected: a0 }; };
12995
13132
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
12996
13133
  i0.ɵɵelementStart(0, "div", 9);
12997
13134
  i0.ɵɵelement(1, "input", 10);
@@ -13002,7 +13139,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
13002
13139
  } if (rf & 2) {
13003
13140
  const radioButton_r4 = ctx.$implicit;
13004
13141
  const ctx_r3 = i0.ɵɵnextContext();
13005
- 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));
13006
13143
  i0.ɵɵadvance(1);
13007
13144
  i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
13008
13145
  i0.ɵɵadvance(1);
@@ -13133,7 +13270,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
13133
13270
  i0.ɵɵadvance(1);
13134
13271
  i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
13135
13272
  } }
13136
- const _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
13273
+ const _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
13137
13274
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
13138
13275
  const _r7 = i0.ɵɵgetCurrentView();
13139
13276
  i0.ɵɵelementStart(0, "mat-option", 11);
@@ -13143,7 +13280,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
13143
13280
  } if (rf & 2) {
13144
13281
  const judicialUser_r5 = ctx.$implicit;
13145
13282
  const ctx_r3 = i0.ɵɵnextContext();
13146
- 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);
13147
13284
  i0.ɵɵadvance(1);
13148
13285
  i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
13149
13286
  } }
@@ -13362,7 +13499,7 @@ class LinkedCasesService {
13362
13499
  casesResponse.push(this.mapResponse(result));
13363
13500
  });
13364
13501
  });
13365
- const caseLinks = casesResponse.map(item => {
13502
+ this.linkedCases = casesResponse.map(item => {
13366
13503
  return {
13367
13504
  caseReference: item.caseReference,
13368
13505
  caseName: item.caseName,
@@ -13376,7 +13513,6 @@ class LinkedCasesService {
13376
13513
  }),
13377
13514
  };
13378
13515
  });
13379
- this.linkedCases = caseLinks;
13380
13516
  this.serverLinkedApiError = null;
13381
13517
  }, err => {
13382
13518
  this.serverLinkedApiError = {
@@ -13839,7 +13975,7 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
13839
13975
  i0.ɵɵadvance(3);
13840
13976
  i0.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
13841
13977
  } }
13842
- const _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
13978
+ const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
13843
13979
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
13844
13980
  i0.ɵɵelementStart(0, "div", 35);
13845
13981
  i0.ɵɵelementStart(1, "h3", 22);
@@ -13855,7 +13991,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
13855
13991
  i0.ɵɵelementEnd();
13856
13992
  } if (rf & 2) {
13857
13993
  const ctx_r7 = i0.ɵɵnextContext(2);
13858
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
13994
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
13859
13995
  i0.ɵɵadvance(3);
13860
13996
  i0.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
13861
13997
  } }
@@ -13906,11 +14042,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
13906
14042
  const ctx_r0 = i0.ɵɵnextContext();
13907
14043
  i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
13908
14044
  i0.ɵɵadvance(1);
13909
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
14045
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
13910
14046
  i0.ɵɵadvance(3);
13911
14047
  i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
13912
14048
  i0.ɵɵadvance(2);
13913
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
14049
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
13914
14050
  i0.ɵɵadvance(5);
13915
14051
  i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
13916
14052
  i0.ɵɵadvance(2);
@@ -14321,7 +14457,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
14321
14457
  i0.ɵɵadvance(4);
14322
14458
  i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
14323
14459
  i0.ɵɵadvance(4);
14324
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
14460
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
14325
14461
  i0.ɵɵadvance(1);
14326
14462
  i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
14327
14463
  i0.ɵɵadvance(18);
@@ -14930,7 +15066,7 @@ function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1)
14930
15066
  i0.ɵɵadvance(1);
14931
15067
  i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
14932
15068
  } }
14933
- const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
15069
+ const _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
14934
15070
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
14935
15071
  i0.ɵɵelementStart(0, "div", 7);
14936
15072
  i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
@@ -14940,7 +15076,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
14940
15076
  i0.ɵɵelementEnd();
14941
15077
  } if (rf & 2) {
14942
15078
  const ctx_r1 = i0.ɵɵnextContext(2);
14943
- 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);
14944
15080
  i0.ɵɵadvance(1);
14945
15081
  i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
14946
15082
  i0.ɵɵadvance(2);
@@ -15099,6 +15235,7 @@ UnLinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UnLinkCasesComponent
15099
15235
  type: Output
15100
15236
  }] }); })();
15101
15237
 
15238
+ // tslint:disable:variable-name
15102
15239
  class LinkCaseReason {
15103
15240
  }
15104
15241
  class CCDCaseLinkType {
@@ -15209,7 +15346,7 @@ class ReadLinkedCasesFieldComponent {
15209
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');
15210
15347
  }
15211
15348
  this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
15212
- const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
15349
+ const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
15213
15350
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
15214
15351
  next: reasons => {
15215
15352
  this.reasonListLoaded = true;
@@ -15444,7 +15581,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
15444
15581
  }
15445
15582
  }
15446
15583
  getLinkedCaseReasons() {
15447
- const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
15584
+ const reasonCodeAPIurl = `${this.appConfig.getRDCommonDataApiUrl()}/lov/categories/CaseLinkingReasonCode`;
15448
15585
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
15449
15586
  next: reasons => {
15450
15587
  // Sort in ascending order
@@ -15502,8 +15639,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
15502
15639
  getLinkedCases() {
15503
15640
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
15504
15641
  const caseViewFiltered = caseView.tabs.filter(tab => {
15505
- const linkField = tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
15506
- return linkField;
15642
+ return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
15507
15643
  });
15508
15644
  if (caseViewFiltered) {
15509
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; });
@@ -15759,7 +15895,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15759
15895
  i0.ɵɵadvance(1);
15760
15896
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
15761
15897
  } }
15762
- const _c0$E = function (a0) { return { "form-group-error": a0 }; };
15898
+ const _c0$D = function (a0) { return { "form-group-error": a0 }; };
15763
15899
  class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
15764
15900
  ngOnInit() {
15765
15901
  this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
@@ -15782,7 +15918,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
15782
15918
  i0.ɵɵelementEnd();
15783
15919
  i0.ɵɵelementEnd();
15784
15920
  } if (rf & 2) {
15785
- 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)));
15786
15922
  i0.ɵɵadvance(1);
15787
15923
  i0.ɵɵproperty("for", ctx.id());
15788
15924
  i0.ɵɵadvance(1);
@@ -15899,7 +16035,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
15899
16035
  i0.ɵɵadvance(1);
15900
16036
  i0.ɵɵtextInterpolate(checkbox_r4.label);
15901
16037
  } }
15902
- const _c0$D = function (a0) { return { "error": a0 }; };
16038
+ const _c0$C = function (a0) { return { "error": a0 }; };
15903
16039
  class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
15904
16040
  ngOnInit() {
15905
16041
  this.checkboxes = new FormArray([]);
@@ -15954,7 +16090,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
15954
16090
  i0.ɵɵelementEnd();
15955
16091
  i0.ɵɵelementEnd();
15956
16092
  } if (rf & 2) {
15957
- 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());
15958
16094
  i0.ɵɵadvance(3);
15959
16095
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
15960
16096
  i0.ɵɵadvance(1);
@@ -16023,7 +16159,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16023
16159
  i0.ɵɵadvance(1);
16024
16160
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16025
16161
  } }
16026
- const _c0$C = function (a0) { return { "form-group-error": a0 }; };
16162
+ const _c0$B = function (a0) { return { "form-group-error": a0 }; };
16027
16163
  const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16028
16164
  class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
16029
16165
  ngOnInit() {
@@ -16041,7 +16177,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
16041
16177
  i0.ɵɵelement(5, "input", 5);
16042
16178
  i0.ɵɵelementEnd();
16043
16179
  } if (rf & 2) {
16044
- 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));
16045
16181
  i0.ɵɵadvance(1);
16046
16182
  i0.ɵɵproperty("for", ctx.id());
16047
16183
  i0.ɵɵadvance(1);
@@ -16291,7 +16427,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
16291
16427
  i0.ɵɵelementEnd();
16292
16428
  i0.ɵɵelementEnd();
16293
16429
  } }
16294
- const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
16430
+ const _c0$A = function (a0) { return { "scroll-container ": a0 }; };
16295
16431
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
16296
16432
  i0.ɵɵelementStart(0, "div", 26);
16297
16433
  i0.ɵɵpipe(1, "async");
@@ -16305,7 +16441,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
16305
16441
  const ctx_r2 = i0.ɵɵnextContext(2);
16306
16442
  let tmp_0_0 = null;
16307
16443
  let tmp_2_0 = null;
16308
- 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));
16309
16445
  i0.ɵɵadvance(2);
16310
16446
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16311
16447
  i0.ɵɵadvance(2);
@@ -16658,194 +16794,6 @@ CasePaymentHistoryViewerFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Ca
16658
16794
  }]
16659
16795
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null); })();
16660
16796
 
16661
- function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
16662
- i0.ɵɵelementStart(0, "div");
16663
- i0.ɵɵtext(1);
16664
- i0.ɵɵpipe(2, "ccdFixedList");
16665
- i0.ɵɵelementEnd();
16666
- } if (rf & 2) {
16667
- const value_r1 = ctx.$implicit;
16668
- const ctx_r0 = i0.ɵɵnextContext();
16669
- i0.ɵɵadvance(1);
16670
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
16671
- } }
16672
- class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
16673
- ngOnInit() {
16674
- /**
16675
- *
16676
- * Reassigning list_items from formatted_list when list_items is empty
16677
- */
16678
- if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
16679
- this.caseField.list_items = this.caseField.formatted_value.list_items;
16680
- }
16681
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
16682
- this.caseField.value = this.caseField.formatted_value.value;
16683
- }
16684
- super.ngOnInit();
16685
- }
16686
- }
16687
- ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
16688
- 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) {
16689
- i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
16690
- } if (rf & 2) {
16691
- i0.ɵɵproperty("ngForOf", ctx.caseField.value);
16692
- } }, 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}"] });
16693
- const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
16694
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
16695
- type: Component,
16696
- args: [{
16697
- selector: 'ccd-read-dynamic-multi-select-list-field',
16698
- templateUrl: './read-dynamic-multi-select-list-field.html',
16699
- styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
16700
- }]
16701
- }], null, null); })();
16702
-
16703
- function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16704
- i0.ɵɵelementStart(0, "span", 5);
16705
- i0.ɵɵtext(1);
16706
- i0.ɵɵpipe(2, "ccdFieldLabel");
16707
- i0.ɵɵelementEnd();
16708
- } if (rf & 2) {
16709
- const ctx_r0 = i0.ɵɵnextContext();
16710
- i0.ɵɵadvance(1);
16711
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
16712
- } }
16713
- function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16714
- i0.ɵɵelementStart(0, "span", 6);
16715
- i0.ɵɵtext(1);
16716
- i0.ɵɵelementEnd();
16717
- } if (rf & 2) {
16718
- const ctx_r1 = i0.ɵɵnextContext();
16719
- i0.ɵɵadvance(1);
16720
- i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
16721
- } }
16722
- function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
16723
- i0.ɵɵelementStart(0, "span", 7);
16724
- i0.ɵɵtext(1);
16725
- i0.ɵɵpipe(2, "ccdFirstError");
16726
- i0.ɵɵelementEnd();
16727
- } if (rf & 2) {
16728
- const ctx_r2 = i0.ɵɵnextContext();
16729
- i0.ɵɵadvance(1);
16730
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
16731
- } }
16732
- function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
16733
- const _r6 = i0.ɵɵgetCurrentView();
16734
- i0.ɵɵelementContainerStart(0);
16735
- i0.ɵɵelementStart(1, "div", 8);
16736
- i0.ɵɵelementStart(2, "input", 9);
16737
- 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); });
16738
- i0.ɵɵelementEnd();
16739
- i0.ɵɵelementStart(3, "label", 10);
16740
- i0.ɵɵtext(4);
16741
- i0.ɵɵelementEnd();
16742
- i0.ɵɵelementEnd();
16743
- i0.ɵɵelementContainerEnd();
16744
- } if (rf & 2) {
16745
- const checkbox_r4 = ctx.$implicit;
16746
- const ctx_r3 = i0.ɵɵnextContext();
16747
- i0.ɵɵadvance(2);
16748
- i0.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
16749
- i0.ɵɵpropertyInterpolate("name", ctx_r3.id());
16750
- i0.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
16751
- i0.ɵɵadvance(1);
16752
- i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
16753
- i0.ɵɵadvance(1);
16754
- i0.ɵɵtextInterpolate(checkbox_r4.label);
16755
- } }
16756
- const _c0$A = function (a0) { return { "error": a0 }; };
16757
- class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
16758
- ngOnInit() {
16759
- this.checkboxes = new FormArray([]);
16760
- this.setInitialCaseList();
16761
- this.setInitialCaseFieldValue();
16762
- // Initialise array with existing values
16763
- if (this.caseField.value && Array.isArray(this.caseField.value)) {
16764
- const values = this.caseField.value;
16765
- values.forEach(value => {
16766
- this.checkboxes.push(new FormControl(value));
16767
- });
16768
- }
16769
- this.dynamicListFormControl = this.registerControl(new FormControl(this.checkboxes.value));
16770
- this.dynamicListFormControl.setValue(this.checkboxes.value);
16771
- }
16772
- onCheckChange(event) {
16773
- const target = event.target;
16774
- if (!target || !target.value) {
16775
- return;
16776
- }
16777
- const selectedListItem = this.getValueListItem(target.value);
16778
- if (!this.isSelected(target.value)) {
16779
- // Add a new control in the FormArray
16780
- this.checkboxes.push(new FormControl(selectedListItem));
16781
- }
16782
- else {
16783
- // Remove the control from the FormArray
16784
- this.checkboxes.controls.forEach((ctrl, i) => {
16785
- if (ctrl.value.code === target.value) {
16786
- this.checkboxes.removeAt(i);
16787
- }
16788
- });
16789
- }
16790
- this.dynamicListFormControl.setValue(this.checkboxes.value);
16791
- }
16792
- isSelected(code) {
16793
- if (this.checkboxes && this.checkboxes.controls) {
16794
- return this.checkboxes.controls.find(control => control.value.code === code);
16795
- }
16796
- }
16797
- getValueListItem(value) {
16798
- return this.caseField.list_items.find(i => i.code === value);
16799
- }
16800
- setInitialCaseList() {
16801
- const hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
16802
- const hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
16803
- if (!hasListItems && hasFormattedListItems) {
16804
- this.caseField.list_items = this.caseField.formatted_value.list_items;
16805
- }
16806
- }
16807
- setInitialCaseFieldValue() {
16808
- if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
16809
- this.caseField.value = this.caseField.formatted_value.value;
16810
- }
16811
- const isNull = this.caseField.value === undefined || this.caseField.value === '';
16812
- if (isNull || !Array.isArray(this.caseField.value)) {
16813
- this.caseField.value = [];
16814
- }
16815
- }
16816
- }
16817
- WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
16818
- 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) {
16819
- i0.ɵɵelementStart(0, "div", 0);
16820
- i0.ɵɵelementStart(1, "fieldset");
16821
- i0.ɵɵelementStart(2, "legend");
16822
- i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
16823
- i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
16824
- i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
16825
- i0.ɵɵelementEnd();
16826
- i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
16827
- i0.ɵɵelementEnd();
16828
- i0.ɵɵelementEnd();
16829
- } if (rf & 2) {
16830
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
16831
- i0.ɵɵadvance(3);
16832
- i0.ɵɵproperty("ngIf", ctx.caseField.label);
16833
- i0.ɵɵadvance(1);
16834
- i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
16835
- i0.ɵɵadvance(1);
16836
- i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
16837
- i0.ɵɵadvance(1);
16838
- i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
16839
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16840
- const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
16841
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
16842
- type: Component,
16843
- args: [{
16844
- selector: 'ccd-write-dynamic-multi-select-list-field',
16845
- templateUrl: './write-dynamic-multi-select-list-field.html'
16846
- }]
16847
- }], null, null); })();
16848
-
16849
16797
  class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
16850
16798
  }
16851
16799
  ReadPhoneUKFieldComponent.ɵfac = function ReadPhoneUKFieldComponent_Factory(t) { return ɵReadPhoneUKFieldComponent_BaseFactory(t || ReadPhoneUKFieldComponent); };
@@ -16996,7 +16944,7 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
16996
16944
  autoGrow(event) {
16997
16945
  if (this.browserService.isIEOrEdge()) {
16998
16946
  event.target.style.height = 'auto';
16999
- event.target.style.height = event.target.scrollHeight + 'px';
16947
+ event.target.style.height = `${event.target.scrollHeight}px`;
17000
16948
  event.target.scrollTop = event.target.scrollHeight;
17001
16949
  }
17002
16950
  }
@@ -17182,6 +17130,7 @@ class YesNoService {
17182
17130
  return YesNoService.EMPTY;
17183
17131
  }
17184
17132
  isYes(value) {
17133
+ // tslint:disable-next-line:switch-default
17185
17134
  switch (typeof (value)) {
17186
17135
  case 'boolean':
17187
17136
  return value;
@@ -17191,6 +17140,7 @@ class YesNoService {
17191
17140
  return false;
17192
17141
  }
17193
17142
  isNo(value) {
17143
+ // tslint:disable-next-line:switch-default
17194
17144
  switch (typeof (value)) {
17195
17145
  case 'boolean':
17196
17146
  return !value;
@@ -17572,7 +17522,7 @@ FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent,
17572
17522
  } if (rf & 2) {
17573
17523
  i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
17574
17524
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
17575
- } }, 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}"] });
17576
17526
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
17577
17527
  type: Component,
17578
17528
  args: [{
@@ -17657,7 +17607,7 @@ FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelCom
17657
17607
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
17658
17608
  i0.ɵɵadvance(1);
17659
17609
  i0.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", _r1);
17660
- } }, 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}"] });
17661
17611
  const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(FieldReadLabelComponent);
17662
17612
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadLabelComponent, [{
17663
17613
  type: Component,
@@ -18012,6 +17962,7 @@ CaseFileViewFolderSortComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileV
18012
17962
  class CaseFileViewCategory {
18013
17963
  }
18014
17964
 
17965
+ // tslint:disable:variable-name
18015
17966
  class CaseFileViewDocument {
18016
17967
  }
18017
17968
 
@@ -18672,9 +18623,8 @@ function SelectFlagTypeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
18672
18623
  i0.ɵɵelementEnd();
18673
18624
  } }
18674
18625
  class SelectFlagTypeComponent {
18675
- constructor(caseFlagRefdataService, caseEditDataService) {
18626
+ constructor(caseFlagRefdataService) {
18676
18627
  this.caseFlagRefdataService = caseFlagRefdataService;
18677
- this.caseEditDataService = caseEditDataService;
18678
18628
  this.caseFlagStateEmitter = new EventEmitter();
18679
18629
  this.flagCommentsOptionalEmitter = new EventEmitter();
18680
18630
  this.flagTypeNotSelectedErrorMessage = '';
@@ -18724,21 +18674,11 @@ class SelectFlagTypeComponent {
18724
18674
  error: error => this.onRefdataError(error)
18725
18675
  });
18726
18676
  }
18727
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
18728
- next: (validationErrors) => {
18729
- if (validationErrors.length) {
18730
- this.errorMessages = [];
18731
- this.flagTypeNotSelectedErrorMessage = '';
18732
- this.flagTypeErrorMessage = '';
18733
- }
18734
- }
18735
- });
18736
18677
  }
18737
18678
  ngOnDestroy() {
18738
18679
  if (this.flagRefdata$) {
18739
18680
  this.flagRefdata$.unsubscribe();
18740
18681
  }
18741
- this.caseValidationErrorsSubscription$.unsubscribe();
18742
18682
  }
18743
18683
  onFlagTypeChanged(flagType) {
18744
18684
  this.selectedFlagType = flagType;
@@ -18803,7 +18743,7 @@ class SelectFlagTypeComponent {
18803
18743
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
18804
18744
  }
18805
18745
  }
18806
- SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
18746
+ SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
18807
18747
  SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
18808
18748
  i0.ɵɵelementStart(0, "div", 0);
18809
18749
  i0.ɵɵelementStart(1, "div", 1);
@@ -18844,7 +18784,7 @@ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeCom
18844
18784
  templateUrl: './select-flag-type.component.html',
18845
18785
  styleUrls: ['./select-flag-type.component.scss']
18846
18786
  }]
18847
- }], function () { return [{ type: CaseFlagRefdataService }, { type: CaseEditDataService }]; }, { formGroup: [{
18787
+ }], function () { return [{ type: CaseFlagRefdataService }]; }, { formGroup: [{
18848
18788
  type: Input
18849
18789
  }], jurisdiction: [{
18850
18790
  type: Input
@@ -19218,8 +19158,7 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
19218
19158
  } }
19219
19159
  const _c0$o = function (a0) { return { "form-group-error": a0 }; };
19220
19160
  class SelectFlagLocationComponent {
19221
- constructor(caseEditDataService) {
19222
- this.caseEditDataService = caseEditDataService;
19161
+ constructor() {
19223
19162
  this.caseFlagStateEmitter = new EventEmitter();
19224
19163
  this.errorMessages = [];
19225
19164
  this.flagLocationNotSelectedErrorMessage = null;
@@ -19234,7 +19173,7 @@ class SelectFlagLocationComponent {
19234
19173
  // is expected not to have a party name)
19235
19174
  if (this.flagsData) {
19236
19175
  this.filteredFlagsData =
19237
- 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);
19238
19177
  }
19239
19178
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
19240
19179
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -19246,14 +19185,6 @@ class SelectFlagLocationComponent {
19246
19185
  // flags in future)
19247
19186
  this.onCaseFlagsConfigError();
19248
19187
  }
19249
- this.caseValidationErrorsSubscription$ = this.caseEditDataService.caseFormValidationErrors$.subscribe({
19250
- next: (validationErrors) => {
19251
- if (validationErrors.length) {
19252
- this.errorMessages = [];
19253
- this.flagLocationNotSelectedErrorMessage = null;
19254
- }
19255
- }
19256
- });
19257
19188
  }
19258
19189
  onNext() {
19259
19190
  // Validate flag location selection
@@ -19288,11 +19219,8 @@ class SelectFlagLocationComponent {
19288
19219
  // Return case flag field state and error messages to the parent
19289
19220
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
19290
19221
  }
19291
- ngOnDestroy() {
19292
- this.caseValidationErrorsSubscription$.unsubscribe();
19293
- }
19294
19222
  }
19295
- SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(i0.ɵɵdirectiveInject(CaseEditDataService)); };
19223
+ SelectFlagLocationComponent.ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
19296
19224
  SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 10, vars: 8, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
19297
19225
  i0.ɵɵelementStart(0, "div", 0);
19298
19226
  i0.ɵɵelementStart(1, "div", 1);
@@ -19329,7 +19257,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
19329
19257
  selector: 'ccd-select-flag-location',
19330
19258
  templateUrl: './select-flag-location.component.html'
19331
19259
  }]
19332
- }], function () { return [{ type: CaseEditDataService }]; }, { formGroup: [{
19260
+ }], null, { formGroup: [{
19333
19261
  type: Input
19334
19262
  }], flagsData: [{
19335
19263
  type: Input
@@ -20413,18 +20341,19 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
20413
20341
  field.value = { CaseReference: value };
20414
20342
  return field;
20415
20343
  }
20416
- toCaseField(id, label, field_type, value) {
20344
+ toCaseField(id, label, fieldType, value) {
20417
20345
  return plainToClassFromExist(new CaseField(), {
20418
20346
  id,
20419
20347
  label,
20420
20348
  display_context: 'READONLY',
20421
20349
  value,
20422
- field_type
20350
+ field_type: fieldType
20423
20351
  });
20424
20352
  }
20425
20353
  sortRowsByColumns(column) {
20426
20354
  const shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
20427
20355
  || this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
20356
+ // tslint:disable-next-line:switch-default
20428
20357
  switch (this.columnsHorizontalLabel[column].type.type) {
20429
20358
  case 'Number':
20430
20359
  case 'MoneyGBP': {
@@ -21401,6 +21330,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
21401
21330
  class FeeValue {
21402
21331
  }
21403
21332
 
21333
+ // tslint:disable:variable-name
21404
21334
  class Fee {
21405
21335
  }
21406
21336
 
@@ -22005,7 +21935,7 @@ CcdTabFieldsPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdTabFields", type: CcdTab
22005
21935
 
22006
21936
  class CcdPageFieldsPipe {
22007
21937
  transform(page, dataFormGroup) {
22008
- const complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
21938
+ const complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(key => {
22009
21939
  const control = dataFormGroup.controls['data'].get(key);
22010
21940
  return control['caseField'];
22011
21941
  }).filter(field => {
@@ -22024,7 +21954,7 @@ class CcdPageFieldsPipe {
22024
21954
  field_type: {
22025
21955
  id: page.id,
22026
21956
  type: 'Complex',
22027
- complex_fields
21957
+ complex_fields: complexFields
22028
21958
  }
22029
21959
  });
22030
21960
  }
@@ -22183,11 +22113,11 @@ class CollectionCreateCheckerService {
22183
22113
  }
22184
22114
  return childrenCaseFields;
22185
22115
  }
22186
- isComplex(case_field) {
22187
- return case_field.field_type.type === 'Complex';
22116
+ isComplex(caseField) {
22117
+ return caseField.field_type.type === 'Complex';
22188
22118
  }
22189
- isCollection(case_field) {
22190
- return case_field.field_type.type === 'Collection';
22119
+ isCollection(caseField) {
22120
+ return caseField.field_type.type === 'Collection';
22191
22121
  }
22192
22122
  hasCreateAccess(caseField, role) {
22193
22123
  return !!caseField.acls.find(acl => acl.role === role && acl.create === true);
@@ -23301,7 +23231,7 @@ class CaseEditSubmitComponent {
23301
23231
  if (caseField.field_type.type === 'Complex') {
23302
23232
  // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
23303
23233
  // handle both null and undefined values
23304
- if (caseField.value != null) {
23234
+ if (caseField.value !== null) {
23305
23235
  // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
23306
23236
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
23307
23237
  // parent)
@@ -23363,8 +23293,8 @@ class CaseEditSubmitComponent {
23363
23293
  this.caseEdit.navigateToPage(pageId);
23364
23294
  }
23365
23295
  callbackErrorsNotify(errorContext) {
23366
- this.ignoreWarning = errorContext.ignore_warning;
23367
- this.triggerText = errorContext.trigger_text;
23296
+ this.ignoreWarning = errorContext.ignoreWarning;
23297
+ this.triggerText = errorContext.triggerText;
23368
23298
  }
23369
23299
  summaryCaseField(field) {
23370
23300
  if (null === this.editForm.get('data').get(field.id)) {
@@ -23917,6 +23847,7 @@ class CaseEventCompletionComponent {
23917
23847
  { provide: COMPONENT_PORTAL_INJECTION_TOKEN, useValue: this }
23918
23848
  ]
23919
23849
  });
23850
+ // tslint:disable-next-line:switch-default
23920
23851
  switch (portalType) {
23921
23852
  case EventCompletionPortalTypes.TaskCancelled:
23922
23853
  this.selectedComponentPortal = new ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
@@ -24387,27 +24318,27 @@ class PaginationComponent {
24387
24318
  this.screenReaderCurrentLabel = `You're on page`;
24388
24319
  this.pageChange = new EventEmitter();
24389
24320
  this.pageBoundsCorrection = new EventEmitter();
24390
- this._directionLinks = true;
24391
- this._autoHide = false;
24392
- this._responsive = false;
24321
+ this.pDirectionLinks = true;
24322
+ this.pAutoHide = false;
24323
+ this.pResponsive = false;
24393
24324
  }
24394
24325
  get directionLinks() {
24395
- return this._directionLinks;
24326
+ return this.pDirectionLinks;
24396
24327
  }
24397
24328
  set directionLinks(value) {
24398
- this._directionLinks = coerceToBoolean(value);
24329
+ this.pDirectionLinks = coerceToBoolean(value);
24399
24330
  }
24400
24331
  get autoHide() {
24401
- return this._autoHide;
24332
+ return this.pAutoHide;
24402
24333
  }
24403
24334
  set autoHide(value) {
24404
- this._autoHide = coerceToBoolean(value);
24335
+ this.pAutoHide = coerceToBoolean(value);
24405
24336
  }
24406
24337
  get responsive() {
24407
- return this._responsive;
24338
+ return this.pResponsive;
24408
24339
  }
24409
24340
  set responsive(value) {
24410
- this._responsive = coerceToBoolean(value);
24341
+ this.pResponsive = coerceToBoolean(value);
24411
24342
  }
24412
24343
  }
24413
24344
  PaginationComponent.ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
@@ -25068,7 +24999,7 @@ class WorkbasketFiltersComponent {
25068
24999
  const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
25069
25000
  workbasketInputs.forEach(item => {
25070
25001
  if (item.field.elementPath) {
25071
- item.field.id = item.field.id + '.' + item.field.elementPath;
25002
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
25072
25003
  }
25073
25004
  item.field.label = item.label;
25074
25005
  if (formValue) {
@@ -25120,7 +25051,7 @@ class WorkbasketFiltersComponent {
25120
25051
  const value = formGroupLS[key];
25121
25052
  // Clear the filter form group control values if it has a value in local storage
25122
25053
  // The regionList form group control value should be ignored as it always contain the latest value
25123
- if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
25054
+ if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
25124
25055
  this.formGroup.get(key).setValue(null);
25125
25056
  }
25126
25057
  }
@@ -26139,7 +26070,7 @@ class CaseEventTriggerComponent {
26139
26070
  this.eventTrigger = this.route.snapshot.data.eventTrigger;
26140
26071
  if (this.activityPollingService.isEnabled) {
26141
26072
  this.ngZone.runOutsideAngular(() => {
26142
- this.activitySubscription = this.postEditActivity().subscribe((_resolved) => {
26073
+ this.activitySubscription = this.postEditActivity().subscribe(() => {
26143
26074
  // console.log('Posted EDIT activity and result is: ' + JSON.stringify(_resolved));
26144
26075
  });
26145
26076
  });
@@ -26985,8 +26916,8 @@ class CaseFullAccessViewComponent {
26985
26916
  return this.sortedTabs.length > 0 || this.prependedTabs.length > 0 || this.appendedTabs.length > 0;
26986
26917
  }
26987
26918
  callbackErrorsNotify(callbackErrorsContext) {
26988
- this.ignoreWarning = callbackErrorsContext.ignore_warning;
26989
- this.triggerText = callbackErrorsContext.trigger_text;
26919
+ this.ignoreWarning = callbackErrorsContext.ignoreWarning;
26920
+ this.triggerText = callbackErrorsContext.triggerText;
26990
26921
  }
26991
26922
  isDraft() {
26992
26923
  return Draft.isDraft(this.caseDetails.case_id);
@@ -27253,7 +27184,7 @@ class PrintUrlPipe {
27253
27184
  * or the empty string
27254
27185
  */
27255
27186
  transform(remoteUrl) {
27256
- if (remoteUrl && remoteUrl.length > 0) {
27187
+ if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
27257
27188
  let printServiceUrlPathname;
27258
27189
  /**
27259
27190
  * Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
@@ -27269,7 +27200,7 @@ class PrintUrlPipe {
27269
27200
  printServiceUrlPathname = urlParser.pathname;
27270
27201
  if (printServiceUrlPathname[0] !== '/') {
27271
27202
  // Fix for IE11; it returns the pathname without leading slash
27272
- printServiceUrlPathname = '/' + printServiceUrlPathname;
27203
+ printServiceUrlPathname = `/${printServiceUrlPathname}`;
27273
27204
  }
27274
27205
  }
27275
27206
  else {
@@ -27446,10 +27377,10 @@ class CaseViewerComponent {
27446
27377
  }
27447
27378
  setUserAccessType(caseDetails) {
27448
27379
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
27449
- const access_process = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
27450
- const access_granted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
27451
- this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
27452
- this.userAccessType = access_process ? access_process.value : null;
27380
+ const accessProcess = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID);
27381
+ const accessGranted = caseDetails.metadataFields.find(metadataField => metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID);
27382
+ this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
27383
+ this.userAccessType = accessProcess ? accessProcess.value : null;
27453
27384
  }
27454
27385
  }
27455
27386
  isDataLoaded() {
@@ -28614,11 +28545,11 @@ class CaseChallengedAccessRequestComponent {
28614
28545
  };
28615
28546
  this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId, challengedAccessRequest)
28616
28547
  .pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
28617
- .subscribe(_response => {
28548
+ .subscribe(() => {
28618
28549
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
28619
28550
  // Angular 7.2!
28620
28551
  this.router.navigate(['success'], { relativeTo: this.route });
28621
- }, _error => {
28552
+ }, () => {
28622
28553
  // Navigate to error page
28623
28554
  });
28624
28555
  }
@@ -28632,7 +28563,7 @@ class CaseChallengedAccessRequestComponent {
28632
28563
  }
28633
28564
  }
28634
28565
  inputEmpty(input) {
28635
- return input.value == null || input.value.trim().length === 0;
28566
+ return input.value === null || input.value.trim().length === 0;
28636
28567
  }
28637
28568
  }
28638
28569
  CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
@@ -29218,11 +29149,11 @@ class CaseSpecificAccessRequestComponent {
29218
29149
  };
29219
29150
  this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId, specificAccessRequest)
29220
29151
  .pipe(switchMap(() => this.caseNotifier.fetchAndRefresh(caseId)))
29221
- .subscribe(_response => {
29152
+ .subscribe(() => {
29222
29153
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
29223
29154
  // Angular 7.2
29224
29155
  this.router.navigate(['success'], { relativeTo: this.route });
29225
- }, _error => {
29156
+ }, () => {
29226
29157
  // Navigate to error page
29227
29158
  });
29228
29159
  }
@@ -29237,7 +29168,7 @@ class CaseSpecificAccessRequestComponent {
29237
29168
  }
29238
29169
  }
29239
29170
  inputEmpty(input) {
29240
- return input.value == null || input.value.trim().length === 0;
29171
+ return input.value === null || input.value.trim().length === 0;
29241
29172
  }
29242
29173
  }
29243
29174
  CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
@@ -30079,7 +30010,7 @@ class SearchFiltersComponent {
30079
30010
  }
30080
30011
  searchInputs.forEach(item => {
30081
30012
  if (item.field.elementPath) {
30082
- item.field.id = item.field.id + '.' + item.field.elementPath;
30013
+ item.field.id = `${item.field.id}.${item.field.elementPath}`;
30083
30014
  }
30084
30015
  item.field.label = item.label;
30085
30016
  if (formValueObject) {
@@ -30333,7 +30264,7 @@ function SearchResultComponent_table_0_div_4_Template(rf, ctx) { if (rf & 1) {
30333
30264
  } if (rf & 2) {
30334
30265
  const ctx_r3 = i0.ɵɵnextContext(2);
30335
30266
  i0.ɵɵadvance(6);
30336
- 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. ");
30337
30268
  } }
30338
30269
  function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
30339
30270
  i0.ɵɵelementStart(0, "div", 15);
@@ -30791,7 +30722,7 @@ class SearchResultComponent {
30791
30722
  }
30792
30723
  }
30793
30724
  get resultTotal() {
30794
- const total = this.paginationMetadata.total_results_count;
30725
+ const total = this.paginationMetadata.totalResultsCount;
30795
30726
  const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
30796
30727
  this.paginationLimitEnforced = maximumResultReached;
30797
30728
  return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
@@ -30936,7 +30867,7 @@ class SearchResultComponent {
30936
30867
  return col;
30937
30868
  }
30938
30869
  hasResults() {
30939
- return this.resultView.results.length && this.paginationMetadata.total_pages_count;
30870
+ return this.resultView.results.length && this.paginationMetadata.totalPagesCount;
30940
30871
  }
30941
30872
  hasDrafts() {
30942
30873
  return this.resultView.hasDrafts();
@@ -31035,7 +30966,7 @@ class SearchResultComponent {
31035
30966
  return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
31036
30967
  }
31037
30968
  getTotalResults() {
31038
- const total = this.paginationMetadata.total_results_count + this.draftsCount;
30969
+ const total = this.paginationMetadata.totalResultsCount + this.draftsCount;
31039
30970
  return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
31040
30971
  }
31041
30972
  prepareCaseLinkUrl(caseId) {
@@ -31180,6 +31111,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
31180
31111
  }], null, null); })();
31181
31112
  i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
31182
31113
 
31114
+ // tslint:disable:variable-name
31183
31115
  class ComplexFieldOverride {
31184
31116
  }
31185
31117
 
@@ -31198,24 +31130,24 @@ class CaseFieldBuilder {
31198
31130
  this.caseField.id = id;
31199
31131
  return this;
31200
31132
  }
31201
- withFieldType(field_type) {
31202
- this.caseField.field_type = field_type;
31133
+ withFieldType(fieldType) {
31134
+ this.caseField.field_type = fieldType;
31203
31135
  return this;
31204
31136
  }
31205
- withDisplayContext(display_context) {
31206
- this.caseField.display_context = display_context;
31137
+ withDisplayContext(displayContext) {
31138
+ this.caseField.display_context = displayContext;
31207
31139
  return this;
31208
31140
  }
31209
- withDisplayContextParameter(display_context_parameter) {
31210
- this.caseField.display_context_parameter = display_context_parameter;
31141
+ withDisplayContextParameter(displayContextParameter) {
31142
+ this.caseField.display_context_parameter = displayContextParameter;
31211
31143
  return this;
31212
31144
  }
31213
31145
  withHidden(hidden) {
31214
31146
  this.caseField.hidden = hidden;
31215
31147
  return this;
31216
31148
  }
31217
- withHintText(hint_text) {
31218
- this.caseField.hint_text = hint_text;
31149
+ withHintText(hintText) {
31150
+ this.caseField.hint_text = hintText;
31219
31151
  return this;
31220
31152
  }
31221
31153
  withLabel(label) {
@@ -31226,12 +31158,12 @@ class CaseFieldBuilder {
31226
31158
  this.caseField.order = order;
31227
31159
  return this;
31228
31160
  }
31229
- withSecurityLabel(security_label) {
31230
- this.caseField.security_label = security_label;
31161
+ withSecurityLabel(securityLabel) {
31162
+ this.caseField.security_label = securityLabel;
31231
31163
  return this;
31232
31164
  }
31233
- withShowCondition(show_condition) {
31234
- this.caseField.show_condition = show_condition;
31165
+ withShowCondition(showCondition) {
31166
+ this.caseField.show_condition = showCondition;
31235
31167
  return this;
31236
31168
  }
31237
31169
  withShowSummaryContentOption(option) {
@@ -31258,19 +31190,19 @@ const textFieldType = () => {
31258
31190
  complex_fields: []
31259
31191
  };
31260
31192
  };
31261
- 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) => {
31262
31194
  const eventTrigger = new CaseEventTrigger();
31263
31195
  eventTrigger.id = id;
31264
31196
  eventTrigger.name = name;
31265
- eventTrigger.case_id = case_id;
31266
- eventTrigger.show_summary = show_summary;
31267
- eventTrigger.wizard_pages = wizard_pages;
31197
+ eventTrigger.case_id = caseId;
31198
+ eventTrigger.show_summary = showSummary;
31199
+ eventTrigger.wizard_pages = wizardPages;
31268
31200
  eventTrigger.event_token = 'test-token';
31269
- eventTrigger.case_fields = case_fields;
31270
- eventTrigger.can_save_draft = can_save_draft;
31201
+ eventTrigger.case_fields = caseFields;
31202
+ eventTrigger.can_save_draft = canSaveDraft;
31271
31203
  return eventTrigger;
31272
31204
  };
31273
- 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) => {
31274
31206
  return ({
31275
31207
  id: id || 'personFirstName',
31276
31208
  field_type: {
@@ -31278,10 +31210,10 @@ const aCaseField = (id, label, type, display_context, show_summary_content_optio
31278
31210
  type: type || 'Text',
31279
31211
  complex_fields: typeComplexFields || []
31280
31212
  },
31281
- display_context: display_context || 'OPTIONAL',
31213
+ display_context: displayContext || 'OPTIONAL',
31282
31214
  label: label || 'First name',
31283
- show_summary_content_option,
31284
- retain_hidden_value: retain_hidden_value || false,
31215
+ show_summary_content_option: showSummaryContentOption,
31216
+ retain_hidden_value: retainHiddenValue || false,
31285
31217
  hidden: hidden || false
31286
31218
  });
31287
31219
  };
@@ -31319,59 +31251,59 @@ const createHiddenComplexFieldOverride = (id) => {
31319
31251
  complexFieldOverride.display_context = 'HIDDEN';
31320
31252
  return complexFieldOverride;
31321
31253
  };
31322
- 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) => {
31323
31255
  return CaseFieldBuilder.create()
31324
31256
  .withId(id || 'personFirstName')
31325
31257
  .withFieldType(fieldType || textFieldType())
31326
- .withDisplayContext(display_context || 'OPTIONAL')
31258
+ .withDisplayContext(displayContext || 'OPTIONAL')
31327
31259
  .withLabel(label || 'First name')
31328
31260
  .withHintText(hint || 'First name hint text')
31329
31261
  .withShowSummaryContentOption(0)
31330
31262
  .withOrder(order)
31331
- .withShowCondition(show_condition || undefined)
31332
- .withACLs(ACLs)
31263
+ .withShowCondition(showCondition || undefined)
31264
+ .withACLs(acls)
31333
31265
  .withHidden(hidden || false)
31334
31266
  .build();
31335
31267
  };
31336
- const newCaseField = (id, label, hint, fieldType, display_context, order = undefined) => {
31268
+ const newCaseField = (id, label, hint, fieldType, displayContext, order = undefined) => {
31337
31269
  return CaseFieldBuilder.create()
31338
31270
  .withId(id || 'personFirstName')
31339
31271
  .withFieldType(fieldType || textFieldType())
31340
- .withDisplayContext(display_context || 'OPTIONAL')
31272
+ .withDisplayContext(displayContext || 'OPTIONAL')
31341
31273
  .withHintText(hint || 'First name hint text')
31342
31274
  .withLabel(label || 'First name')
31343
31275
  .withOrder(order)
31344
31276
  .withShowSummaryContentOption(0);
31345
31277
  };
31346
- const createFieldType = (typeId, type, complex_fields = [], collection_field_type = undefined) => {
31278
+ const createFieldType = (typeId, type, complexFields = [], collectionFieldType = undefined) => {
31347
31279
  return {
31348
31280
  id: typeId || 'Text',
31349
31281
  type: type || 'Text',
31350
- complex_fields: complex_fields || [],
31351
- collection_field_type: collection_field_type || undefined
31282
+ complex_fields: complexFields || [],
31283
+ collection_field_type: collectionFieldType || undefined
31352
31284
  };
31353
31285
  };
31354
31286
  const createFixedListFieldType = (typeId, fixedListItems = []) => {
31355
31287
  return {
31356
- id: 'FixedList-' + typeId,
31288
+ id: `FixedList-${typeId}`,
31357
31289
  type: 'FixedList',
31358
31290
  fixed_list_items: fixedListItems || []
31359
31291
  };
31360
31292
  };
31361
31293
  const createMultiSelectListFieldType = (typeId, fixedListItems = []) => {
31362
31294
  return {
31363
- id: 'MultiSelectList-' + typeId,
31295
+ id: `MultiSelectList-${typeId}`,
31364
31296
  type: 'MultiSelectList',
31365
31297
  fixed_list_items: fixedListItems || []
31366
31298
  };
31367
31299
  };
31368
- const createACL = (role, create, read, update, _delete) => {
31300
+ const createACL = (role, aclCreate, aclRead, aclUpdate, aclDelete) => {
31369
31301
  return ({
31370
31302
  role: role || 'roleX',
31371
- create,
31372
- read,
31373
- update,
31374
- delete: _delete
31303
+ create: aclCreate,
31304
+ read: aclRead,
31305
+ update: aclUpdate,
31306
+ delete: aclDelete
31375
31307
  });
31376
31308
  };
31377
31309
 
@@ -31418,5 +31350,5 @@ class TestRouteSnapshotBuilder {
31418
31350
  * Generated bundle index. Do not edit.
31419
31351
  */
31420
31352
 
31421
- 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 };
31422
31354
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map