@hmcts/ccd-case-ui-toolkit 6.13.10-c → 6.13.10-case-file-view-display-document-upload-date

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 (188) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +549 -392
  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-page/case-edit-page.component.js +2 -2
  12. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +2 -2
  13. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +1 -1
  14. 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
  15. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +8 -16
  16. package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -2
  17. package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +2 -2
  18. package/esm2015/lib/shared/components/case-editor/services/work-allocation.service.js +1 -1
  19. package/esm2015/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.js +5 -5
  20. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +1 -1
  21. package/esm2015/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.js +4 -4
  22. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +5 -5
  23. package/esm2015/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.js +3 -3
  24. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +2 -2
  25. package/esm2015/lib/shared/components/event-start/event-guard/event-start.guard.js +2 -2
  26. package/esm2015/lib/shared/components/palette/address/address-option.model.js +4 -7
  27. package/esm2015/lib/shared/components/palette/address/write-address-field.component.js +4 -4
  28. package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +2 -2
  29. package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -2
  30. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +12 -5
  31. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +24 -15
  32. package/esm2015/lib/shared/components/palette/case-file-view/index.js +1 -2
  33. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +1 -1
  34. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +2 -2
  35. package/esm2015/lib/shared/components/palette/case-flag/enums/index.js +1 -1
  36. package/esm2015/lib/shared/components/palette/collection/collection-create-checker.service.js +5 -5
  37. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +17 -6
  38. package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +3 -3
  39. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +3 -0
  40. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +47 -0
  41. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +153 -0
  42. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -6
  43. package/esm2015/lib/shared/components/palette/index.js +2 -1
  44. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +1 -1
  45. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +2 -2
  46. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  47. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +1 -1
  48. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -2
  49. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +2 -3
  50. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +3 -4
  51. package/esm2015/lib/shared/components/palette/order-summary/fee.model.js +1 -1
  52. package/esm2015/lib/shared/components/palette/order-summary/order-summary.model.js +1 -1
  53. package/esm2015/lib/shared/components/palette/palette.module.js +30 -7
  54. package/esm2015/lib/shared/components/palette/palette.service.js +5 -3
  55. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +2 -2
  56. package/esm2015/lib/shared/components/palette/utils/date.pipe.js +4 -4
  57. package/esm2015/lib/shared/components/search-filters/search-filters.component.js +2 -2
  58. package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +3 -3
  59. package/esm2015/lib/shared/directives/conditional-show/domain/conditional-show.model.js +3 -3
  60. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +3 -7
  61. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
  62. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +1 -1
  63. package/esm2015/lib/shared/domain/case-view/case-view.model.js +1 -1
  64. package/esm2015/lib/shared/domain/case-view/role-assignment-response.model.js +1 -1
  65. package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
  66. package/esm2015/lib/shared/domain/definition/case-field.model.js +6 -3
  67. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  68. package/esm2015/lib/shared/domain/organisation/organisation-converter.js +8 -8
  69. package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
  70. package/esm2015/lib/shared/fixture/case-field-builder.js +13 -13
  71. package/esm2015/lib/shared/fixture/shared.test.fixture.js +27 -27
  72. package/esm2015/lib/shared/pipes/complex/{cdd-page-fields.pipe.js → ccd-page-fields.pipe.js} +3 -3
  73. package/esm2015/lib/shared/pipes/complex/index.js +2 -2
  74. package/esm2015/lib/shared/services/activity/activity.polling.service.js +2 -2
  75. package/esm2015/lib/shared/services/activity/activity.service.js +9 -18
  76. package/esm2015/lib/shared/services/addresses/address-parser.js +5 -5
  77. package/esm2015/lib/shared/services/case-fields/format-translator.service.js +2 -2
  78. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +2 -2
  79. package/esm2015/lib/shared/services/common-data-service/common-data-service.js +2 -2
  80. package/esm2015/lib/shared/services/definitions/definitions.service.js +3 -8
  81. package/esm2015/lib/shared/services/fields/fields.purger.js +15 -15
  82. package/esm2015/lib/shared/services/fields/fields.utils.js +4 -4
  83. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +16 -1
  84. package/esm2015/lib/shared/services/form/form-value.service.js +1 -2
  85. package/esm2015/lib/shared/services/loading/loading.service.js +2 -7
  86. package/esm2015/lib/shared/services/search/search.service.js +5 -10
  87. package/esm2015/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.js +5 -5
  88. package/esm2015/lib/shared/services/window/window.service.js +1 -1
  89. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +507 -362
  90. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  91. package/lib/app.config.d.ts.map +1 -1
  92. package/lib/components/header/header-bar/header-bar.component.d.ts.map +1 -1
  93. package/lib/shared/commons/case-edit-data/case-edit-data.module.d.ts.map +1 -1
  94. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  95. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  96. 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
  97. 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
  98. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  99. package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
  100. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  101. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  102. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  103. package/lib/shared/components/case-viewer/printer/pipes/print-url.pipe.d.ts.map +1 -1
  104. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  105. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +1 -1
  106. package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
  107. package/lib/shared/components/palette/address/address-option.model.d.ts.map +1 -1
  108. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  109. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +5 -2
  110. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  111. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  112. package/lib/shared/components/palette/case-file-view/index.d.ts +0 -1
  113. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
  114. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  115. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  116. package/lib/shared/components/palette/collection/collection-create-checker.service.d.ts.map +1 -1
  117. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +1 -0
  118. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  119. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts +1 -1
  120. package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
  121. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +3 -0
  122. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +1 -0
  123. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +9 -0
  124. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  125. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +17 -0
  126. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  127. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
  128. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
  129. package/lib/shared/components/palette/index.d.ts +1 -0
  130. package/lib/shared/components/palette/index.d.ts.map +1 -1
  131. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts +4 -4
  132. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  133. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  134. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  135. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  136. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  137. package/lib/shared/components/palette/order-summary/fee.model.d.ts.map +1 -1
  138. package/lib/shared/components/palette/order-summary/order-summary.model.d.ts.map +1 -1
  139. package/lib/shared/components/palette/palette.module.d.ts +60 -59
  140. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  141. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  142. package/lib/shared/components/palette/text-area/write-text-area-field.component.d.ts.map +1 -1
  143. package/lib/shared/components/palette/utils/date.pipe.d.ts.map +1 -1
  144. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  145. package/lib/shared/directives/conditional-show/domain/conditional-show.model.d.ts.map +1 -1
  146. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  147. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -1
  148. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  149. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +1 -0
  150. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
  151. package/lib/shared/domain/case-view/case-view.model.d.ts.map +1 -1
  152. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts +1 -2
  153. package/lib/shared/domain/case-view/role-assignment-response.model.d.ts.map +1 -1
  154. package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
  155. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  156. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  157. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  158. package/lib/shared/domain/organisation/organisation-converter.d.ts.map +1 -1
  159. package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
  160. package/lib/shared/fixture/case-field-builder.d.ts +6 -6
  161. package/lib/shared/fixture/case-field-builder.d.ts.map +1 -1
  162. package/lib/shared/fixture/shared.test.fixture.d.ts +6 -6
  163. package/lib/shared/fixture/shared.test.fixture.d.ts.map +1 -1
  164. package/lib/shared/pipes/complex/{cdd-page-fields.pipe.d.ts → ccd-page-fields.pipe.d.ts} +1 -1
  165. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -0
  166. package/lib/shared/pipes/complex/index.d.ts +1 -1
  167. package/lib/shared/pipes/pipes.module.d.ts +1 -1
  168. package/lib/shared/services/activity/activity.polling.service.d.ts.map +1 -1
  169. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  170. package/lib/shared/services/addresses/address-parser.d.ts.map +1 -1
  171. package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
  172. package/lib/shared/services/definitions/definitions.service.d.ts.map +1 -1
  173. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  174. package/lib/shared/services/fields/fields.utils.d.ts +0 -1
  175. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  176. package/lib/shared/services/form/field-type-sanitiser.d.ts +2 -0
  177. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  178. package/lib/shared/services/loading/loading.service.d.ts +1 -4
  179. package/lib/shared/services/loading/loading.service.d.ts.map +1 -1
  180. package/lib/shared/services/search/search.service.d.ts +0 -2
  181. package/lib/shared/services/search/search.service.d.ts.map +1 -1
  182. package/lib/shared/services/search-result/sorting/search-result-view-item-comparator-factory.d.ts.map +1 -1
  183. package/lib/shared/services/window/window.service.d.ts.map +1 -1
  184. package/package.json +2 -2
  185. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +0 -72
  186. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +0 -11
  187. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +0 -1
  188. package/lib/shared/pipes/complex/cdd-page-fields.pipe.d.ts.map +0 -1
@@ -118,7 +118,7 @@
118
118
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
119
119
  }
120
120
  }
121
- var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
121
+ var _c0$$ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
122
  var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
123
123
  var FooterComponent = /** @class */ (function () {
124
124
  function FooterComponent() {
@@ -128,7 +128,7 @@
128
128
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
129
129
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
130
130
  if (rf & 1) {
131
- i0__namespace.ɵɵprojectionDef(_c0$_);
131
+ i0__namespace.ɵɵprojectionDef(_c0$$);
132
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
133
133
  i0__namespace.ɵɵelementStart(1, "div", 1);
134
134
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -207,7 +207,7 @@
207
207
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
208
208
  }
209
209
  }
210
- var _c0$Z = [[["", "headerNavigation", ""]]];
210
+ var _c0$_ = [[["", "headerNavigation", ""]]];
211
211
  var _c1$r = ["[headerNavigation]"];
212
212
  var HeaderBarComponent = /** @class */ (function () {
213
213
  function HeaderBarComponent() {
@@ -221,7 +221,7 @@
221
221
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
222
222
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
223
223
  if (rf & 1) {
224
- i0__namespace.ɵɵprojectionDef(_c0$Z);
224
+ i0__namespace.ɵɵprojectionDef(_c0$_);
225
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
226
226
  i0__namespace.ɵɵelementStart(1, "div", 1);
227
227
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -282,7 +282,7 @@
282
282
  }] });
283
283
  })();
284
284
 
285
- var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
285
+ var _c0$Z = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
286
  var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
287
287
  var NavigationComponent = /** @class */ (function () {
288
288
  function NavigationComponent() {
@@ -292,7 +292,7 @@
292
292
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
293
293
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
294
294
  if (rf & 1) {
295
- i0__namespace.ɵɵprojectionDef(_c0$Y);
295
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
296
296
  i0__namespace.ɵɵelementStart(0, "div");
297
297
  i0__namespace.ɵɵelementStart(1, "nav", 0);
298
298
  i0__namespace.ɵɵprojection(2);
@@ -437,7 +437,7 @@
437
437
  }], null, null);
438
438
  })();
439
439
 
440
- var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
440
+ var _c0$Y = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
441
  var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
442
442
  var BodyComponent = /** @class */ (function () {
443
443
  function BodyComponent() {
@@ -447,7 +447,7 @@
447
447
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
448
448
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
449
449
  if (rf & 1) {
450
- i0__namespace.ɵɵprojectionDef(_c0$X);
450
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
451
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
452
452
  i0__namespace.ɵɵprojection(1);
453
453
  i0__namespace.ɵɵprojection(2, 1);
@@ -852,7 +852,7 @@
852
852
  return typeof state === "function" ? receiver === state : state.has(receiver);
853
853
  }
854
854
 
855
- var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
855
+ var _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
856
856
  function DateInputComponent_div_16_Template(rf, ctx) {
857
857
  if (rf & 1) {
858
858
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -870,7 +870,7 @@
870
870
  i0__namespace.ɵɵadvance(1);
871
871
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
872
872
  i0__namespace.ɵɵadvance(2);
873
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
873
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r3.isInvalid));
874
874
  }
875
875
  }
876
876
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -890,7 +890,7 @@
890
890
  i0__namespace.ɵɵadvance(1);
891
891
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
892
892
  i0__namespace.ɵɵadvance(2);
893
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
893
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r4.isInvalid));
894
894
  }
895
895
  }
896
896
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -910,7 +910,7 @@
910
910
  i0__namespace.ɵɵadvance(1);
911
911
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
912
912
  i0__namespace.ɵɵadvance(2);
913
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
913
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$X, ctx_r5.isInvalid));
914
914
  }
915
915
  }
916
916
  var DateInputComponent = /** @class */ (function () {
@@ -1036,22 +1036,22 @@
1036
1036
  }
1037
1037
  };
1038
1038
  DateInputComponent.prototype.dayId = function () {
1039
- return this.id + '-day';
1039
+ return this.id + "-day";
1040
1040
  };
1041
1041
  DateInputComponent.prototype.monthId = function () {
1042
- return this.id + '-month';
1042
+ return this.id + "-month";
1043
1043
  };
1044
1044
  DateInputComponent.prototype.yearId = function () {
1045
- return this.id + '-year';
1045
+ return this.id + "-year";
1046
1046
  };
1047
1047
  DateInputComponent.prototype.hourId = function () {
1048
- return this.id + '-hour';
1048
+ return this.id + "-hour";
1049
1049
  };
1050
1050
  DateInputComponent.prototype.minuteId = function () {
1051
- return this.id + '-minute';
1051
+ return this.id + "-minute";
1052
1052
  };
1053
1053
  DateInputComponent.prototype.secondId = function () {
1054
- return this.id + '-second';
1054
+ return this.id + "-second";
1055
1055
  };
1056
1056
  DateInputComponent.prototype.viewValue = function () {
1057
1057
  if (this.day || this.month || this.year || this.hour || this.minute || this.second) {
@@ -1066,7 +1066,7 @@
1066
1066
  this.minute ? this.pad(this.minute) : '',
1067
1067
  this.second ? this.pad(this.second) : ''
1068
1068
  ].join(':');
1069
- return date + 'T' + time + '.000';
1069
+ return date + "T" + time + ".000";
1070
1070
  }
1071
1071
  else {
1072
1072
  return date;
@@ -1144,15 +1144,15 @@
1144
1144
  i0__namespace.ɵɵadvance(2);
1145
1145
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1146
1146
  i0__namespace.ɵɵadvance(2);
1147
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
1147
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$X, ctx.isInvalid));
1148
1148
  i0__namespace.ɵɵadvance(3);
1149
1149
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1150
1150
  i0__namespace.ɵɵadvance(2);
1151
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
1151
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$X, ctx.isInvalid));
1152
1152
  i0__namespace.ɵɵadvance(3);
1153
1153
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1154
1154
  i0__namespace.ɵɵadvance(2);
1155
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
1155
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$X, ctx.isInvalid));
1156
1156
  i0__namespace.ɵɵadvance(2);
1157
1157
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1158
1158
  i0__namespace.ɵɵadvance(1);
@@ -1233,7 +1233,7 @@
1233
1233
  i0__namespace.ɵɵelementContainerEnd();
1234
1234
  }
1235
1235
  }
1236
- var _c0$V = ["*"];
1236
+ var _c0$W = ["*"];
1237
1237
  exports.AlertMessageType = void 0;
1238
1238
  (function (AlertMessageType) {
1239
1239
  AlertMessageType["WARNING"] = "warning";
@@ -1254,7 +1254,7 @@
1254
1254
  AlertComponent.TYPE_ERROR = 'error';
1255
1255
  AlertComponent.TYPE_INFORMATION = 'information';
1256
1256
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1257
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1257
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$W, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1258
1258
  if (rf & 1) {
1259
1259
  i0__namespace.ɵɵprojectionDef();
1260
1260
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1529,7 +1529,7 @@
1529
1529
  }] });
1530
1530
  })();
1531
1531
 
1532
- var _c0$U = function (a0) { return { "js-hidden": a0 }; };
1532
+ var _c0$V = function (a0) { return { "js-hidden": a0 }; };
1533
1533
  var _c1$o = ["*"];
1534
1534
  var TabComponent = /** @class */ (function () {
1535
1535
  function TabComponent() {
@@ -1545,7 +1545,7 @@
1545
1545
  i0__namespace.ɵɵelementEnd();
1546
1546
  }
1547
1547
  if (rf & 2) {
1548
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
1548
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$V, !ctx.selected));
1549
1549
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1550
1550
  }
1551
1551
  }, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1568,7 +1568,7 @@
1568
1568
  }] });
1569
1569
  })();
1570
1570
 
1571
- var _c0$T = ["tab"];
1571
+ var _c0$U = ["tab"];
1572
1572
  var _c1$n = function () { return ["."]; };
1573
1573
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1574
1574
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1622,7 +1622,7 @@
1622
1622
  }
1623
1623
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1624
1624
  if (rf & 1) {
1625
- i0__namespace.ɵɵviewQuery(_c0$T, 1);
1625
+ i0__namespace.ɵɵviewQuery(_c0$U, 1);
1626
1626
  }
1627
1627
  if (rf & 2) {
1628
1628
  var _t = void 0;
@@ -1701,7 +1701,7 @@
1701
1701
  }], null, null);
1702
1702
  })();
1703
1703
 
1704
- var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1704
+ var _c0$T = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1705
1705
  var ActivityBannerComponent = /** @class */ (function () {
1706
1706
  function ActivityBannerComponent() {
1707
1707
  }
@@ -1722,7 +1722,7 @@
1722
1722
  i0__namespace.ɵɵelementEnd();
1723
1723
  }
1724
1724
  if (rf & 2) {
1725
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1725
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$T, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1726
1726
  i0__namespace.ɵɵadvance(2);
1727
1727
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1728
1728
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -2131,7 +2131,7 @@
2131
2131
  });
2132
2132
  ActivityService.handleHttpError = function (response) {
2133
2133
  var error = HttpErrorService.convertToHttpError(response);
2134
- if (response.status && response.status !== error.status) {
2134
+ if ((response === null || response === void 0 ? void 0 : response.status) !== error.status) {
2135
2135
  error.status = response.status;
2136
2136
  }
2137
2137
  return error;
@@ -2139,12 +2139,11 @@
2139
2139
  ActivityService.prototype.getOptions = function () {
2140
2140
  var userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
2141
2141
  var headers = new i1$2.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
2142
- var options = {
2142
+ return {
2143
2143
  headers: headers,
2144
2144
  withCredentials: true,
2145
2145
  observe: 'body',
2146
2146
  };
2147
- return options;
2148
2147
  };
2149
2148
  ActivityService.prototype.getActivities = function () {
2150
2149
  var caseId = [];
@@ -2153,41 +2152,33 @@
2153
2152
  }
2154
2153
  try {
2155
2154
  var options = this.getOptions();
2156
- var url = this.activityUrl() + ("/cases/" + caseId.join(',') + "/activity");
2155
+ var url = this.activityUrl() + "/cases/" + caseId.join(',') + "/activity";
2157
2156
  return this.http
2158
2157
  .get(url, options, false, ActivityService.handleHttpError)
2159
2158
  .pipe(operators.map(function (response) { return response; }));
2160
2159
  }
2161
2160
  catch (error) {
2162
- console.log('user may not be authenticated.' + error);
2161
+ console.log("user may not be authenticated." + error);
2163
2162
  }
2164
2163
  };
2165
2164
  ActivityService.prototype.postActivity = function (caseId, activity) {
2166
2165
  try {
2167
2166
  var options = this.getOptions();
2168
- var url = this.activityUrl() + ("/cases/" + caseId + "/activity");
2167
+ var url = this.activityUrl() + "/cases/" + caseId + "/activity";
2169
2168
  var body = { activity: activity };
2170
2169
  return this.http
2171
2170
  .post(url, body, options, false)
2172
2171
  .pipe(operators.map(function (response) { return response; }));
2173
2172
  }
2174
2173
  catch (error) {
2175
- console.log('user may not be authenticated.' + error);
2174
+ console.log("user may not be authenticated." + error);
2176
2175
  }
2177
2176
  };
2178
2177
  ActivityService.prototype.verifyUserIsAuthorized = function () {
2179
2178
  var _this = this;
2180
- if (this.sessionStorageService.getItem('userDetails') === undefined) {
2181
- return;
2182
- }
2183
- if (this.activityUrl() && this.userAuthorised === undefined) {
2179
+ if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
2184
2180
  this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(function () { return _this.userAuthorised = true; }, function (error) {
2185
- if ([401, 403].indexOf(error.status) > -1) {
2186
- _this.userAuthorised = false;
2187
- }
2188
- else {
2189
- _this.userAuthorised = true;
2190
- }
2181
+ _this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
2191
2182
  });
2192
2183
  }
2193
2184
  };
@@ -2300,7 +2291,7 @@
2300
2291
  requests.get(activity.caseId).next(activity);
2301
2292
  });
2302
2293
  }, function (err) {
2303
- console.log('error: ' + err);
2294
+ console.log("error: " + err);
2304
2295
  Array.from(requests.values()).forEach(function (subject) { return subject.error(err); });
2305
2296
  }); });
2306
2297
  });
@@ -2440,9 +2431,9 @@
2440
2431
  };
2441
2432
  ActivityComponent.prototype.generateDescription = function (prefix, suffix, namesArray, unknownCount) {
2442
2433
  var resultText = prefix;
2443
- resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + ' ' + activityInfo.surname; }).join(', ');
2434
+ resultText += namesArray.map(function (activityInfo) { return activityInfo.forename + " " + activityInfo.surname; }).join(', ');
2444
2435
  if (unknownCount > 0) {
2445
- resultText += (namesArray.length > 0 ? ' and ' + unknownCount + ' other' : unknownCount + ' user');
2436
+ resultText += (namesArray.length > 0 ? " and " + unknownCount + " other" : unknownCount + " user");
2446
2437
  resultText += (unknownCount > 1 ? 's' : '');
2447
2438
  }
2448
2439
  else {
@@ -2450,10 +2441,10 @@
2450
2441
  }
2451
2442
  if (suffix.length > 0) {
2452
2443
  if (namesArray.length + unknownCount > 1) {
2453
- resultText += ' are ' + suffix;
2444
+ resultText += " are " + suffix;
2454
2445
  }
2455
2446
  else {
2456
- resultText += ' is ' + suffix;
2447
+ resultText += " is " + suffix;
2457
2448
  }
2458
2449
  }
2459
2450
  return resultText;
@@ -2792,7 +2783,7 @@
2792
2783
  break;
2793
2784
  case 'n':
2794
2785
  case 'N':
2795
- maybePush(result, '***' + c + '***', inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2786
+ maybePush(result, "***" + c + "***", inQuote); // No way to support A - millisec of day, n - nano of second, N - nano of Day
2796
2787
  break;
2797
2788
  case 'V':
2798
2789
  case 'O':
@@ -2926,9 +2917,9 @@
2926
2917
  resultDate = offsetDate.getDate() + " " + DatePipe.MONTHS[offsetDate.getMonth()] + " " + offsetDate.getFullYear();
2927
2918
  if (match[4] && match[5] && match[6] && format !== 'short') {
2928
2919
  resultDate += ', ';
2929
- resultDate += this.getHour(offsetDate.getHours().toString()) + ':';
2930
- resultDate += this.pad(offsetDate.getMinutes()) + ':';
2931
- resultDate += this.pad(offsetDate.getSeconds()) + ' ';
2920
+ resultDate += this.getHour(offsetDate.getHours().toString()) + ":";
2921
+ resultDate += this.pad(offsetDate.getMinutes()) + ":";
2922
+ resultDate += this.pad(offsetDate.getSeconds()) + " ";
2932
2923
  resultDate += (this.toInt(offsetDate.getHours().toString()) >= 12) ? 'PM' : 'AM';
2933
2924
  }
2934
2925
  }
@@ -3360,9 +3351,12 @@
3360
3351
  }
3361
3352
  Object.defineProperty(CaseField.prototype, "value", {
3362
3353
  get: function () {
3363
- if (this.isDynamic()) {
3354
+ if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3364
3355
  return this._value && this._value.value ? this._value.value.code : this._value;
3365
3356
  }
3357
+ else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
3358
+ return this._value && this._value.value ? this._value.value : this._value;
3359
+ }
3366
3360
  else {
3367
3361
  return this._value;
3368
3362
  }
@@ -3452,7 +3446,7 @@
3452
3446
  };
3453
3447
  CaseField.prototype.isDynamic = function () {
3454
3448
  var _this = this;
3455
- var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
3449
+ var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
3456
3450
  if (!this.field_type) {
3457
3451
  return false;
3458
3452
  }
@@ -3741,25 +3735,25 @@
3741
3735
  OrganisationConverter.toSimpleAddress = function (organisationModel) {
3742
3736
  var simpleAddress = '';
3743
3737
  if (organisationModel.addressLine1) {
3744
- simpleAddress += organisationModel.addressLine1 + '<br>';
3738
+ simpleAddress += organisationModel.addressLine1 + "<br>";
3745
3739
  }
3746
3740
  if (organisationModel.addressLine2) {
3747
- simpleAddress += organisationModel.addressLine2 + '<br>';
3741
+ simpleAddress += organisationModel.addressLine2 + "<br>";
3748
3742
  }
3749
3743
  if (organisationModel.addressLine3) {
3750
- simpleAddress += organisationModel.addressLine3 + '<br>';
3744
+ simpleAddress += organisationModel.addressLine3 + "<br>";
3751
3745
  }
3752
3746
  if (organisationModel.townCity) {
3753
- simpleAddress += organisationModel.townCity + '<br>';
3747
+ simpleAddress += organisationModel.townCity + "<br>";
3754
3748
  }
3755
3749
  if (organisationModel.county) {
3756
- simpleAddress += organisationModel.county + '<br>';
3750
+ simpleAddress += organisationModel.county + "<br>";
3757
3751
  }
3758
3752
  if (organisationModel.country) {
3759
- simpleAddress += organisationModel.country + '<br>';
3753
+ simpleAddress += organisationModel.country + "<br>";
3760
3754
  }
3761
3755
  if (organisationModel.postCode) {
3762
- simpleAddress += organisationModel.postCode + '<br>';
3756
+ simpleAddress += organisationModel.postCode + "<br>";
3763
3757
  }
3764
3758
  return simpleAddress;
3765
3759
  };
@@ -3938,9 +3932,9 @@
3938
3932
  });
3939
3933
  return valueMap;
3940
3934
  };
3941
- FieldsUtils.getType = function (elem) {
3942
- return Object.prototype.toString.call(elem).slice(8, -1);
3943
- };
3935
+ // public static getType(elem: any): string {
3936
+ // return Object.prototype.toString.call(elem).slice(8, -1);
3937
+ // }
3944
3938
  FieldsUtils.isObject = function (elem) {
3945
3939
  return typeof elem === 'object' && elem !== null;
3946
3940
  };
@@ -4498,7 +4492,6 @@
4498
4492
  if (!condition) {
4499
4493
  return null;
4500
4494
  }
4501
- ;
4502
4495
  condition = condition.replace(/CONTAINS/g, ' CONTAINS');
4503
4496
  return peg.parse(condition.trim(), {});
4504
4497
  };
@@ -4512,14 +4505,12 @@
4512
4505
  if (!conditions || conditions.length === 0) {
4513
4506
  return true;
4514
4507
  }
4515
- ;
4516
4508
  var validJoinComparators = ['AND', 'OR'];
4517
- var result = conditions.reduce(function (accumulator, condition, index) {
4509
+ return conditions.reduce(function (accumulator, condition, index) {
4518
4510
  var isJoinComparator = function (comparator) { return (typeof comparator === 'string' && validJoinComparators.indexOf(comparator) !== -1); };
4519
4511
  if (isJoinComparator(condition)) {
4520
4512
  return accumulator;
4521
4513
  }
4522
- ;
4523
4514
  var currentConditionResult = true;
4524
4515
  if (Array.isArray(condition)) {
4525
4516
  currentConditionResult = _this.evaluate(fields, condition);
@@ -4536,7 +4527,6 @@
4536
4527
  }
4537
4528
  return currentConditionResult;
4538
4529
  }, true);
4539
- return result;
4540
4530
  };
4541
4531
  ConditionParser.evaluateJoin = function (leftResult, comparator, rightResult) {
4542
4532
  switch (comparator) {
@@ -4743,8 +4733,8 @@
4743
4733
  if (originalCondition.indexOf(condition.fieldReference) > -1) {
4744
4734
  if (this.processedList && this.processedList.indexOf(condition.fieldReference) === -1) {
4745
4735
  this.processedList.push(condition.fieldReference);
4746
- var regularExp = new RegExp('(\\b)' + condition.fieldReference + '(?=[^"]*(?:"[^"]*"[^"]*)*$)(\\b)', 'g');
4747
- return originalCondition.replace(regularExp, pathPrefix + '.' + condition.fieldReference);
4736
+ var regularExp = new RegExp("(\\b)" + condition.fieldReference + "(?=[^\"]*(?:\"[^\"]*\"[^\"]*)*$)(\\b)", 'g');
4737
+ return originalCondition.replace(regularExp, pathPrefix + "." + condition.fieldReference);
4748
4738
  }
4749
4739
  else {
4750
4740
  return originalCondition;
@@ -5313,14 +5303,14 @@
5313
5303
  var formFields = form.getRawValue();
5314
5304
  var currentPage = wizard.getPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
5315
5305
  currentPage.wizard_page_fields.forEach(function (wpf) {
5316
- var case_field = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5317
- if (_this.hasShowConditionField(case_field, formFields)) {
5318
- var condition = new ShowCondition(case_field.show_condition);
5319
- if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(case_field))) {
5320
- _this.resetField(form, case_field);
5306
+ var caseField = _this.findCaseFieldByWizardPageFieldId(currentPage, wpf);
5307
+ if (_this.hasShowConditionField(caseField, formFields)) {
5308
+ var condition = new ShowCondition(caseField.show_condition);
5309
+ if (_this.isHidden(condition, formFields.data) && !(_this.isReadonly(caseField))) {
5310
+ _this.resetField(form, caseField);
5321
5311
  }
5322
5312
  }
5323
- _this.retainHiddenValueByFieldType(case_field, form);
5313
+ _this.retainHiddenValueByFieldType(caseField, form);
5324
5314
  });
5325
5315
  };
5326
5316
  FieldsPurger.prototype.retainHiddenValueByFieldType = function (field, form) {
@@ -5351,13 +5341,13 @@
5351
5341
  FieldsPurger.prototype.hasShowConditionPage = function (wizardPage, formFields) {
5352
5342
  return wizardPage.show_condition && formFields[this.getShowConditionKey(wizardPage.show_condition)];
5353
5343
  };
5354
- FieldsPurger.prototype.hasShowConditionField = function (case_field, formFields) {
5355
- return case_field.show_condition && formFields.data[this.getShowConditionKey(case_field.show_condition)];
5344
+ FieldsPurger.prototype.hasShowConditionField = function (caseField, formFields) {
5345
+ return caseField.show_condition && formFields.data[this.getShowConditionKey(caseField.show_condition)];
5356
5346
  };
5357
- FieldsPurger.prototype.getShowConditionKey = function (show_condition) {
5347
+ FieldsPurger.prototype.getShowConditionKey = function (showCondition) {
5358
5348
  // Need to allow for negated conditions, i.e. !=, as well as regular ones (=)
5359
5349
  // Also need to allow for conditions specified using the "CONTAINS" keyword
5360
- return show_condition.split(/!=|=|CONTAINS/)[0];
5350
+ return showCondition.split(/!=|=|CONTAINS/)[0];
5361
5351
  };
5362
5352
  FieldsPurger.prototype.resetField = function (form, field) {
5363
5353
  var e_1, _a;
@@ -5453,8 +5443,8 @@
5453
5443
  FieldsPurger.prototype.resetPage = function (form, wizardPage) {
5454
5444
  var _this = this;
5455
5445
  wizardPage.wizard_page_fields.forEach(function (wpf) {
5456
- var case_field = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5457
- _this.resetField(form, case_field);
5446
+ var caseField = _this.findCaseFieldByWizardPageFieldId(wizardPage, wpf);
5447
+ _this.resetField(form, caseField);
5458
5448
  });
5459
5449
  };
5460
5450
  FieldsPurger.prototype.getType = function (elem) {
@@ -5464,8 +5454,8 @@
5464
5454
  return this.getType(elem) === 'Object';
5465
5455
  };
5466
5456
  // TODO: call isReadOnly on CaseFields once we make it available
5467
- FieldsPurger.prototype.isReadonly = function (case_field) {
5468
- return case_field.display_context.toUpperCase() === 'READONLY';
5457
+ FieldsPurger.prototype.isReadonly = function (caseField) {
5458
+ return caseField.display_context.toUpperCase() === 'READONLY';
5469
5459
  };
5470
5460
  /**
5471
5461
  * Deletes a field value by setting the value of the corresponding {@link FormControl} to null (or an empty array
@@ -5653,6 +5643,9 @@
5653
5643
  }
5654
5644
  caseFields.forEach(function (caseField) {
5655
5645
  switch (caseField.field_type.type) {
5646
+ case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5647
+ _this.convertArrayToDynamicListOutput(caseField, data);
5648
+ break;
5656
5649
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
5657
5650
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
5658
5651
  _this.convertStringToDynamicListOutput(caseField, data);
@@ -5670,6 +5663,17 @@
5670
5663
  }
5671
5664
  });
5672
5665
  };
5666
+ FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
5667
+ var values = data[field.id];
5668
+ if (Array.isArray(values)) {
5669
+ var listItems = this.getListItems(field);
5670
+ var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
5671
+ data[field.id] = {
5672
+ value: matches,
5673
+ list_items: listItems
5674
+ };
5675
+ }
5676
+ };
5673
5677
  FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
5674
5678
  var stringValue = data[field.id];
5675
5679
  if (typeof stringValue === 'string') {
@@ -5700,6 +5704,7 @@
5700
5704
  FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
5701
5705
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
5702
5706
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
5707
+ FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
5703
5708
  FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
5704
5709
  FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
5705
5710
  (function () {
@@ -6345,7 +6350,6 @@
6345
6350
  });
6346
6351
  }
6347
6352
  }
6348
- ;
6349
6353
  });
6350
6354
  }
6351
6355
  };
@@ -6784,7 +6788,7 @@
6784
6788
  return addressModel;
6785
6789
  };
6786
6790
  AddressParser.prototype.parseAddressLine1 = function (classification, address) {
6787
- var addressLine = '';
6791
+ var addressLine;
6788
6792
  if (classification === AddressType.RD06) {
6789
6793
  addressLine =
6790
6794
  address.SUB_BUILDING_NAME + " " + address.ORGANISATION_NAME + " " + address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER;
@@ -6797,7 +6801,7 @@
6797
6801
  return this.removeNonAddressValues(addressLine);
6798
6802
  };
6799
6803
  AddressParser.prototype.parseAddressLine2 = function (classification, address) {
6800
- var addressLine = '';
6804
+ var addressLine;
6801
6805
  if (classification === AddressType.RD06) {
6802
6806
  addressLine = address.BUILDING_NAME + " ";
6803
6807
  }
@@ -6808,7 +6812,7 @@
6808
6812
  return this.removeNonAddressValues(addressLine);
6809
6813
  };
6810
6814
  AddressParser.prototype.parseAddressLine3 = function (classification, address) {
6811
- var addressLine = '';
6815
+ var addressLine;
6812
6816
  if (classification === AddressType.RD06) {
6813
6817
  addressLine =
6814
6818
  address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
@@ -6836,7 +6840,7 @@
6836
6840
  return value.replace(new RegExp('^,', 'gi'), '');
6837
6841
  };
6838
6842
  AddressParser.prototype.prefixWithCommaIfPresent = function (value) {
6839
- return value ? ', ' + value : value;
6843
+ return value ? ", " + value : value;
6840
6844
  };
6841
6845
  return AddressParser;
6842
6846
  }());
@@ -7086,7 +7090,7 @@
7086
7090
  if (flagType) {
7087
7091
  url += "?flag-type=" + flagType;
7088
7092
  }
7089
- if (welshRequired != null) {
7093
+ if (typeof welshRequired === 'boolean') {
7090
7094
  // Check if flag-type has been added to the query string; if so, append welsh-required with '&'
7091
7095
  url.indexOf('?') > -1 ? url += '&' : url += '?';
7092
7096
  welshRequired ? url += 'welsh-required=Y' : url += 'welsh-required=N';
@@ -7692,18 +7696,6 @@
7692
7696
  }], null, null);
7693
7697
  })();
7694
7698
 
7695
- var HasLoadingState = /** @class */ (function () {
7696
- function HasLoadingState() {
7697
- }
7698
- Object.defineProperty(HasLoadingState.prototype, "isLoading", {
7699
- get: function () {
7700
- return;
7701
- },
7702
- enumerable: false,
7703
- configurable: true
7704
- });
7705
- return HasLoadingState;
7706
- }());
7707
7699
  var LoadingService = /** @class */ (function () {
7708
7700
  function LoadingService() {
7709
7701
  this.registered = new Map();
@@ -7728,7 +7720,7 @@
7728
7720
  };
7729
7721
  LoadingService.prototype.generateToken = function () {
7730
7722
  var timestamp = window.performance.now();
7731
- return 'toolkit-loading-' + timestamp; // format: [source-library]-[unique incrementing number]
7723
+ return "toolkit-loading-" + timestamp; // format: [source-library]-[unique incrementing number]
7732
7724
  };
7733
7725
  return LoadingService;
7734
7726
  }());
@@ -7749,10 +7741,7 @@
7749
7741
  }
7750
7742
  SearchService.prototype.search = function (jurisdictionId, caseTypeId, metaCriteria, caseCriteria, view) {
7751
7743
  var _this = this;
7752
- var url = this.appConfig.getApiUrl() + "/caseworkers/:uid"
7753
- + ("/jurisdictions/" + jurisdictionId)
7754
- + ("/case-types/" + caseTypeId)
7755
- + "/cases";
7744
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases";
7756
7745
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7757
7746
  var loadingToken = this.loadingService.register();
7758
7747
  return this.httpService
@@ -7761,15 +7750,14 @@
7761
7750
  };
7762
7751
  SearchService.prototype.searchCasesByIds = function (caseTypeId, filter, view, sort) {
7763
7752
  var _this = this;
7764
- var url = this.appConfig.getCaseDataUrl() +
7765
- ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7753
+ var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
7766
7754
  var body = Object.assign(Object.assign({ sort: sort }, filter), { size: this.appConfig.getPaginationPageSize() });
7767
7755
  var loadingToken = this.loadingService.register();
7768
7756
  return this.httpService.post(url, body).pipe(operators.map(function (response) { return response; }), operators.finalize(function () { return _this.loadingService.unregister(loadingToken); }));
7769
7757
  };
7770
7758
  SearchService.prototype.searchCases = function (caseTypeId, metaCriteria, caseCriteria, view, sort) {
7771
7759
  var _this = this;
7772
- var url = this.appConfig.getCaseDataUrl() + ("/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view);
7760
+ var url = this.appConfig.getCaseDataUrl() + "/internal/searchCases?ctid=" + caseTypeId + "&use_case=" + view;
7773
7761
  var options = this.requestOptionsBuilder.buildOptions(metaCriteria, caseCriteria, view);
7774
7762
  var body = {
7775
7763
  sort: sort,
@@ -7814,9 +7802,8 @@
7814
7802
  return SearchService;
7815
7803
  }());
7816
7804
  SearchService.V2_MEDIATYPE_SEARCH_INPUTS = 'application/vnd.uk.gov.hmcts.ccd-data-store-api.ui-search-input-details.v2+json;charset=UTF-8';
7817
- SearchService.VIEW_SEARCH = 'SEARCH';
7805
+ // public static readonly VIEW_SEARCH = 'SEARCH';
7818
7806
  SearchService.VIEW_WORKBASKET = 'WORKBASKET';
7819
- SearchService.FIELD_PREFIX = 'case.';
7820
7807
  SearchService.ɵfac = function SearchService_Factory(t) { return new (t || SearchService)(i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(RequestOptionsBuilder), i0__namespace.ɵɵinject(LoadingService)); };
7821
7808
  SearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: SearchService, factory: SearchService.ɵfac });
7822
7809
  (function () {
@@ -7946,17 +7933,12 @@
7946
7933
  this.appConfig = appConfig;
7947
7934
  }
7948
7935
  DefinitionsService.prototype.getCaseTypes = function (jurisdictionId, access) {
7949
- var url = this.appConfig.getApiUrl()
7950
- + "/caseworkers/:uid"
7951
- + ("/jurisdictions/" + jurisdictionId)
7952
- + ("/case-types?access=" + access);
7936
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types?access=" + access;
7953
7937
  return this.http
7954
7938
  .get(url).pipe(operators.map(function (response) { return response; }));
7955
7939
  };
7956
7940
  DefinitionsService.prototype.getJurisdictions = function (access) {
7957
- var url = this.appConfig.getApiUrl()
7958
- + "/caseworkers/:uid"
7959
- + ("/jurisdictions?access=" + access);
7941
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions?access=" + access;
7960
7942
  return this.http
7961
7943
  .get(url)
7962
7944
  .pipe(operators.map(function (response) { return response; }));
@@ -8038,8 +8020,8 @@
8038
8020
  compare: function (a, b) {
8039
8021
  var fieldA = a.case_fields[fieldId];
8040
8022
  var fieldB = b.case_fields[fieldId];
8041
- fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.toLowerCase();
8042
- fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.toLowerCase();
8023
+ fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.toLowerCase();
8024
+ fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.toLowerCase();
8043
8025
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8044
8026
  }
8045
8027
  };
@@ -8049,8 +8031,8 @@
8049
8031
  compare: function (a, b) {
8050
8032
  var fieldA = a.case_fields[fieldId];
8051
8033
  var fieldB = b.case_fields[fieldId];
8052
- fieldA = util.isUndefined(fieldA) || fieldA == null ? '' : fieldA.join().toLowerCase();
8053
- fieldB = util.isUndefined(fieldB) || fieldB == null ? '' : fieldB.join().toLowerCase();
8034
+ fieldA = util.isUndefined(fieldA) || fieldA === null ? '' : fieldA.join().toLowerCase();
8035
+ fieldB = util.isUndefined(fieldB) || fieldB === null ? '' : fieldB.join().toLowerCase();
8054
8036
  return fieldA === fieldB ? 0 : fieldA > fieldB ? 1 : -1;
8055
8037
  }
8056
8038
  };
@@ -8346,7 +8328,7 @@
8346
8328
  });
8347
8329
  };
8348
8330
  WizardPageFieldToCaseFieldMapper.prototype.preparePathPrefix = function (pathPrefix, caseField) {
8349
- return pathPrefix.length === 0 ? caseField : pathPrefix + '.' + caseField;
8331
+ return pathPrefix.length === 0 ? caseField : pathPrefix + "." + caseField;
8350
8332
  };
8351
8333
  WizardPageFieldToCaseFieldMapper.prototype.getCaseFieldLeaf = function (caseFieldId, caseFields) {
8352
8334
  var _a = __read(caseFieldId), head = _a[0], tail = _a.slice(1);
@@ -8638,11 +8620,7 @@
8638
8620
  };
8639
8621
  CasesService.prototype.getCaseView = function (jurisdictionId, caseTypeId, caseId) {
8640
8622
  var _this = this;
8641
- var url = this.appConfig.getApiUrl()
8642
- + "/caseworkers/:uid"
8643
- + ("/jurisdictions/" + jurisdictionId)
8644
- + ("/case-types/" + caseTypeId)
8645
- + ("/cases/" + caseId);
8623
+ var url = this.appConfig.getApiUrl() + "/caseworkers/:uid/jurisdictions/" + jurisdictionId + "/case-types/" + caseTypeId + "/cases/" + caseId;
8646
8624
  var loadingToken = this.loadingService.register();
8647
8625
  return this.http
8648
8626
  .get(url)
@@ -8694,7 +8672,7 @@
8694
8672
  CasesService.prototype.createEvent = function (caseDetails, eventData) {
8695
8673
  var _this = this;
8696
8674
  var caseId = caseDetails.case_id;
8697
- var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
8675
+ var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/events";
8698
8676
  var headers = new i1$2.HttpHeaders()
8699
8677
  .set('experimental', 'true')
8700
8678
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
@@ -8708,9 +8686,8 @@
8708
8686
  };
8709
8687
  CasesService.prototype.validateCase = function (ctid, eventData, pageId) {
8710
8688
  var _this = this;
8711
- var pageIdString = pageId ? '?pageId=' + pageId : '';
8712
- var url = this.appConfig.getCaseDataUrl()
8713
- + ("/case-types/" + ctid + "/validate" + pageIdString);
8689
+ var pageIdString = pageId ? "?pageId=" + pageId : '';
8690
+ var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/validate" + pageIdString;
8714
8691
  var headers = new i1$2.HttpHeaders()
8715
8692
  .set('experimental', 'true')
8716
8693
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
@@ -8728,8 +8705,7 @@
8728
8705
  if (eventData.ignore_warning) {
8729
8706
  ignoreWarning = 'true';
8730
8707
  }
8731
- var url = this.appConfig.getCaseDataUrl()
8732
- + ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
8708
+ var url = this.appConfig.getCaseDataUrl() + "/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning;
8733
8709
  var headers = new i1$2.HttpHeaders()
8734
8710
  .set('experimental', 'true')
8735
8711
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
@@ -8743,9 +8719,7 @@
8743
8719
  };
8744
8720
  CasesService.prototype.getPrintDocuments = function (caseId) {
8745
8721
  var _this = this;
8746
- var url = this.appConfig.getCaseDataUrl()
8747
- + ("/cases/" + caseId)
8748
- + "/documents";
8722
+ var url = this.appConfig.getCaseDataUrl() + "/cases/" + caseId + "/documents";
8749
8723
  var headers = new i1$2.HttpHeaders()
8750
8724
  .set('experimental', 'true')
8751
8725
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
@@ -9481,7 +9455,7 @@
9481
9455
  PageValidationService.prototype.isHidden = function (caseField, editForm, path) {
9482
9456
  var formFields = editForm.getRawValue();
9483
9457
  var condition = ShowCondition.getInstance(caseField.show_condition);
9484
- if (path && path.indexOf('_' + caseField.id + '_') === -1) {
9458
+ if (path && path.indexOf("_" + caseField.id + "_") === -1) {
9485
9459
  path = "" + path + caseField.id;
9486
9460
  }
9487
9461
  return !condition.match(formFields.data, path);
@@ -10451,7 +10425,7 @@
10451
10425
  var label = casefield.label || 'Field';
10452
10426
  var id_1 = casefield.id;
10453
10427
  if (fieldElement['component'] && fieldElement['component'].parent) {
10454
- if (fieldElement['component'].idPrefix.indexOf('_' + id_1 + '_') === -1) {
10428
+ if (fieldElement['component'].idPrefix.indexOf("_" + id_1 + "_") === -1) {
10455
10429
  id_1 = "" + fieldElement['component'].idPrefix + id_1;
10456
10430
  }
10457
10431
  else {
@@ -10989,7 +10963,7 @@
10989
10963
 
10990
10964
  var AddressOption = /** @class */ (function () {
10991
10965
  function AddressOption(addressModel, description) {
10992
- if (description == null) {
10966
+ if (description === null) {
10993
10967
  this.value = addressModel;
10994
10968
  this.description = this.getDescription();
10995
10969
  }
@@ -10998,13 +10972,10 @@
10998
10972
  }
10999
10973
  }
11000
10974
  AddressOption.prototype.getDescription = function () {
11001
- return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
11002
- + this.prefixWithCommaIfPresent(this.value.AddressLine2)
11003
- + this.prefixWithCommaIfPresent(this.value.AddressLine3)
11004
- + ', ' + this.value.PostTown);
10975
+ return this.removeInitialCommaIfPresent("" + (this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1) + this.prefixWithCommaIfPresent(this.value.AddressLine2) + this.prefixWithCommaIfPresent(this.value.AddressLine3) + ", " + this.value.PostTown);
11005
10976
  };
11006
10977
  AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
11007
- return value ? ', ' + value : value;
10978
+ return value ? ", " + value : value;
11008
10979
  };
11009
10980
  AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
11010
10981
  return value.replace(new RegExp('^,', 'gi'), '');
@@ -11012,7 +10983,7 @@
11012
10983
  return AddressOption;
11013
10984
  }());
11014
10985
 
11015
- var _c0$R = ["writeComplexFieldComponent"];
10986
+ var _c0$S = ["writeComplexFieldComponent"];
11016
10987
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11017
10988
  if (rf & 1) {
11018
10989
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11148,7 +11119,7 @@
11148
11119
  this.missingPostcode = false;
11149
11120
  var postcode_1 = this.postcode.value;
11150
11121
  this.caseField.value = null;
11151
- this.addressOptions = new Array();
11122
+ this.addressOptions = [];
11152
11123
  this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
11153
11124
  result.forEach(function (address) {
11154
11125
  _this.addressOptions.push(new AddressOption(address, null));
@@ -11191,7 +11162,7 @@
11191
11162
  var hasAddress = false;
11192
11163
  if (address) {
11193
11164
  Object.keys(address).forEach(function (key) {
11194
- if (address[key] != null) {
11165
+ if (address[key] !== null) {
11195
11166
  hasAddress = true;
11196
11167
  }
11197
11168
  });
@@ -11214,7 +11185,7 @@
11214
11185
  };
11215
11186
  WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
11216
11187
  return numberOfAddresses === 0 ? 'No address found'
11217
- : numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
11188
+ : "" + numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + "found";
11218
11189
  };
11219
11190
  WriteAddressFieldComponent.prototype.setFormValue = function () {
11220
11191
  if (this.writeComplexFieldComponent.complexGroup) {
@@ -11226,7 +11197,7 @@
11226
11197
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11227
11198
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11228
11199
  if (rf & 1) {
11229
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
11200
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
11230
11201
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11231
11202
  }
11232
11203
  if (rf & 2) {
@@ -11372,12 +11343,13 @@
11372
11343
  }
11373
11344
  }
11374
11345
  var CaseFileViewFieldComponent = /** @class */ (function () {
11375
- function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
11346
+ function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
11376
11347
  this.elementRef = elementRef;
11377
11348
  this.route = route;
11378
11349
  this.caseFileViewService = caseFileViewService;
11379
11350
  this.documentManagementService = documentManagementService;
11380
11351
  this.loadingService = loadingService;
11352
+ this.sessionStorageService = sessionStorageService;
11381
11353
  this.allowMoving = true;
11382
11354
  this.getCategoriesAndDocumentsError = false;
11383
11355
  }
@@ -11391,6 +11363,12 @@
11391
11363
  },
11392
11364
  error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
11393
11365
  });
11366
+ // EXUI-8000
11367
+ var userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
11368
+ // Get acls that intersects from acl roles and user roles
11369
+ var acls = this.caseField.acls.filter(function (acl) { return userInfo.roles.includes(acl.role); });
11370
+ // As there can be more than one intersecting role, if any acls are update: true
11371
+ this.allowMoving = acls.some(function (acl) { return acl.update; });
11394
11372
  };
11395
11373
  CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
11396
11374
  var slider = this.elementRef.nativeElement.querySelector('.slider');
@@ -11438,7 +11416,7 @@
11438
11416
  return CaseFileViewFieldComponent;
11439
11417
  }());
11440
11418
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
11441
- CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
11419
+ CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
11442
11420
  CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
11443
11421
  if (rf & 1) {
11444
11422
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
@@ -11458,94 +11436,7 @@
11458
11436
  templateUrl: './case-file-view-field.component.html',
11459
11437
  styleUrls: ['./case-file-view-field.component.scss'],
11460
11438
  }]
11461
- }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
11462
- })();
11463
-
11464
- function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
11465
- if (rf & 1) {
11466
- i0__namespace.ɵɵelementStart(0, "div", 2);
11467
- i0__namespace.ɵɵelementStart(1, "h1", 3);
11468
- i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11469
- i0__namespace.ɵɵelementEnd();
11470
- i0__namespace.ɵɵelementStart(3, "p", 4);
11471
- i0__namespace.ɵɵtext(4, "Try again later.");
11472
- i0__namespace.ɵɵelementEnd();
11473
- i0__namespace.ɵɵelementEnd();
11474
- }
11475
- }
11476
- function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
11477
- if (rf & 1) {
11478
- i0__namespace.ɵɵelementContainerStart(0);
11479
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11480
- i0__namespace.ɵɵelementContainerEnd();
11481
- }
11482
- if (rf & 2) {
11483
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11484
- i0__namespace.ɵɵadvance(1);
11485
- i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11486
- }
11487
- }
11488
- function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
11489
- if (rf & 1) {
11490
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11491
- i0__namespace.ɵɵelementStart(0, "div");
11492
- i0__namespace.ɵɵelementStart(1, "h2", 5);
11493
- i0__namespace.ɵɵtext(2, "Case file");
11494
- i0__namespace.ɵɵelementEnd();
11495
- i0__namespace.ɵɵelementStart(3, "div", 6);
11496
- i0__namespace.ɵɵelementStart(4, "div", 7);
11497
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11498
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
11499
- i0__namespace.ɵɵelementEnd();
11500
- i0__namespace.ɵɵelementEnd();
11501
- i0__namespace.ɵɵelement(6, "div", 9);
11502
- i0__namespace.ɵɵelementStart(7, "div", 10);
11503
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
11504
- i0__namespace.ɵɵelementEnd();
11505
- i0__namespace.ɵɵelementEnd();
11506
- i0__namespace.ɵɵelementEnd();
11507
- }
11508
- if (rf & 2) {
11509
- var ctx_r1 = i0__namespace.ɵɵnextContext();
11510
- i0__namespace.ɵɵadvance(5);
11511
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
11512
- i0__namespace.ɵɵadvance(3);
11513
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
11514
- }
11515
- }
11516
- var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
11517
- __extends(CaseFileViewFieldReadComponent, _super);
11518
- function CaseFileViewFieldReadComponent() {
11519
- return _super !== null && _super.apply(this, arguments) || this;
11520
- }
11521
- CaseFileViewFieldReadComponent.prototype.ngOnInit = function () {
11522
- _super.prototype.ngOnInit.call(this);
11523
- this.allowMoving = this.caseField.acls.some(function (acl) { return acl.update; });
11524
- };
11525
- return CaseFileViewFieldReadComponent;
11526
- }(CaseFileViewFieldComponent));
11527
- CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
11528
- CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
11529
- if (rf & 1) {
11530
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
11531
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
11532
- }
11533
- if (rf & 2) {
11534
- i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11535
- i0__namespace.ɵɵadvance(1);
11536
- i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
11537
- }
11538
- }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
11539
- var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
11540
- (function () {
11541
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
11542
- type: i0.Component,
11543
- args: [{
11544
- selector: 'ccd-case-file-view-field',
11545
- templateUrl: './case-file-view-field.component.html',
11546
- styleUrls: ['./case-file-view-field.component.scss'],
11547
- }]
11548
- }], null, null);
11439
+ }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
11549
11440
  })();
11550
11441
 
11551
11442
  exports.AddCommentsErrorMessage = void 0;
@@ -11900,7 +11791,7 @@
11900
11791
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
11901
11792
  }
11902
11793
  }
11903
- var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
11794
+ var _c0$R = function (a0) { return { "form-group-error": a0 }; };
11904
11795
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
11905
11796
  if (rf & 1) {
11906
11797
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -11921,7 +11812,7 @@
11921
11812
  i0__namespace.ɵɵadvance(1);
11922
11813
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
11923
11814
  i0__namespace.ɵɵadvance(1);
11924
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
11815
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
11925
11816
  i0__namespace.ɵɵadvance(1);
11926
11817
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
11927
11818
  i0__namespace.ɵɵadvance(1);
@@ -12397,7 +12288,7 @@
12397
12288
  }], null, null);
12398
12289
  })();
12399
12290
 
12400
- var _c0$P = ["writeComplexFieldComponent"];
12291
+ var _c0$Q = ["writeComplexFieldComponent"];
12401
12292
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12402
12293
  if (rf & 1) {
12403
12294
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12502,7 +12393,7 @@
12502
12393
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12503
12394
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12504
12395
  if (rf & 1) {
12505
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
12396
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
12506
12397
  }
12507
12398
  if (rf & 2) {
12508
12399
  var _t = void 0;
@@ -12547,7 +12438,7 @@
12547
12438
  }] });
12548
12439
  })();
12549
12440
 
12550
- var _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12441
+ var _c0$P = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12551
12442
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12552
12443
  if (rf & 1) {
12553
12444
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12562,7 +12453,7 @@
12562
12453
  if (rf & 2) {
12563
12454
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12564
12455
  i0__namespace.ɵɵadvance(4);
12565
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
12456
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$P, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
12566
12457
  }
12567
12458
  }
12568
12459
  var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -12713,7 +12604,7 @@
12713
12604
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
12714
12605
  })();
12715
12606
 
12716
- var _c0$N = ["collectionItem"];
12607
+ var _c0$O = ["collectionItem"];
12717
12608
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
12718
12609
  if (rf & 1) {
12719
12610
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -12955,6 +12846,11 @@
12955
12846
  // Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
12956
12847
  this.formArray.setErrors(null);
12957
12848
  var item = { value: null };
12849
+ if (this.isCollectionDynamic()) {
12850
+ item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
12851
+ var key = Number(item['id'][item['id'].length - 1]) + 1;
12852
+ item.id = item['id'].replace(/.$/, key.toString());
12853
+ }
12958
12854
  this.caseField.value.push(item);
12959
12855
  var index = this.caseField.value.length - 1;
12960
12856
  var caseField = this.buildCaseField(item, index, true);
@@ -12977,6 +12873,12 @@
12977
12873
  setTimeout(function () { return _this.focusLastItem(); });
12978
12874
  }
12979
12875
  };
12876
+ WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
12877
+ if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
12878
+ return false;
12879
+ }
12880
+ return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
12881
+ };
12980
12882
  WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
12981
12883
  if (isNew === void 0) { isNew = false; }
12982
12884
  var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
@@ -13028,16 +12930,16 @@
13028
12930
  && this.collItems[i].caseField.id === counter.toString()) {
13029
12931
  this.collItems[i].caseField.id = i.toString();
13030
12932
  }
13031
- var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13032
- var idPrefix1Current = idPrefix1.replace('_' + i.toString(), '_' + counter.toString());
12933
+ var idPrefix1 = this.collItems[i].prefix ? this.collItems[i].prefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
12934
+ var idPrefix1Current = idPrefix1.replace("_" + i.toString(), "_" + counter.toString());
13033
12935
  if (this.collItems[i].prefix && this.collItems[i].prefix === idPrefix1Current) {
13034
12936
  this.collItems[i].prefix = idPrefix1;
13035
12937
  }
13036
12938
  var idPrefixAvailable = this.collItems[i].container && this.collItems[i].container['component']
13037
12939
  && this.collItems[i].container['component'].idPrefix ? true : false;
13038
12940
  var idPrefix2 = idPrefixAvailable ?
13039
- this.collItems[i].container['component'].idPrefix.replace('_' + counter.toString(), '_' + i.toString()) : '';
13040
- var idPrefix2current = idPrefix2.replace('_' + i.toString(), '_' + counter.toString());
12941
+ this.collItems[i].container['component'].idPrefix.replace("_" + counter.toString(), "_" + i.toString()) : '';
12942
+ var idPrefix2current = idPrefix2.replace("_" + i.toString(), "_" + counter.toString());
13041
12943
  if (idPrefixAvailable && this.collItems[i].container['component'].idPrefix === idPrefix2current) {
13042
12944
  this.collItems[i].container['component'].idPrefix = idPrefix2;
13043
12945
  }
@@ -13126,7 +13028,7 @@
13126
13028
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13127
13029
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13128
13030
  if (rf & 1) {
13129
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
13031
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
13130
13032
  }
13131
13033
  if (rf & 2) {
13132
13034
  var _t = void 0;
@@ -13820,7 +13722,7 @@
13820
13722
  }], null, null);
13821
13723
  })();
13822
13724
 
13823
- var _c0$M = ["fileInput"];
13725
+ var _c0$N = ["fileInput"];
13824
13726
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
13825
13727
  if (rf & 1) {
13826
13728
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14114,7 +14016,7 @@
14114
14016
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14115
14017
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14116
14018
  if (rf & 1) {
14117
- i0__namespace.ɵɵviewQuery(_c0$M, 1);
14019
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
14118
14020
  }
14119
14021
  if (rf & 2) {
14120
14022
  var _t = void 0;
@@ -14314,7 +14216,7 @@
14314
14216
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14315
14217
  }
14316
14218
  }
14317
- var _c0$L = function (a0) { return { "form-group-error": a0 }; };
14219
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
14318
14220
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14319
14221
  __extends(WriteDynamicListFieldComponent, _super);
14320
14222
  function WriteDynamicListFieldComponent() {
@@ -14363,7 +14265,7 @@
14363
14265
  i0__namespace.ɵɵelementEnd();
14364
14266
  }
14365
14267
  if (rf & 2) {
14366
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14268
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14367
14269
  i0__namespace.ɵɵadvance(1);
14368
14270
  i0__namespace.ɵɵproperty("for", ctx.id());
14369
14271
  i0__namespace.ɵɵadvance(1);
@@ -14513,7 +14415,7 @@
14513
14415
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14514
14416
  }
14515
14417
  }
14516
- var _c0$K = function (a0) { return { selected: a0 }; };
14418
+ var _c0$L = function (a0) { return { selected: a0 }; };
14517
14419
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14518
14420
  if (rf & 1) {
14519
14421
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14526,12 +14428,11 @@
14526
14428
  if (rf & 2) {
14527
14429
  var radioButton_r5 = ctx.$implicit;
14528
14430
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14529
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14431
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14530
14432
  i0__namespace.ɵɵadvance(1);
14531
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14532
- i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14433
+ i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14533
14434
  i0__namespace.ɵɵadvance(1);
14534
- i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
14435
+ i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
14535
14436
  i0__namespace.ɵɵadvance(1);
14536
14437
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14537
14438
  }
@@ -14560,8 +14461,8 @@
14560
14461
  this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
14561
14462
  this.dynamicRadioListControl.setValue(this.caseField.value);
14562
14463
  };
14563
- WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
14564
- return this.id() + "-" + name;
14464
+ WriteDynamicRadioListFieldComponent.prototype.createElementId = function (name) {
14465
+ return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : _super.prototype.createElementId.call(this, name);
14565
14466
  };
14566
14467
  return WriteDynamicRadioListFieldComponent;
14567
14468
  }(AbstractFieldWriteComponent));
@@ -14691,7 +14592,7 @@
14691
14592
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
14692
14593
  }
14693
14594
  }
14694
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14595
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
14695
14596
  var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
14696
14597
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
14697
14598
  __extends(WriteEmailFieldComponent, _super);
@@ -14716,7 +14617,7 @@
14716
14617
  i0__namespace.ɵɵelementEnd();
14717
14618
  }
14718
14619
  if (rf & 2) {
14719
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14620
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14720
14621
  i0__namespace.ɵɵadvance(1);
14721
14622
  i0__namespace.ɵɵproperty("for", ctx.id());
14722
14623
  i0__namespace.ɵɵadvance(1);
@@ -14848,7 +14749,7 @@
14848
14749
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
14849
14750
  }
14850
14751
  }
14851
- var _c0$I = function (a0) { return { "form-group-error": a0 }; };
14752
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14852
14753
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
14853
14754
  __extends(WriteFixedListFieldComponent, _super);
14854
14755
  function WriteFixedListFieldComponent() {
@@ -14897,7 +14798,7 @@
14897
14798
  i0__namespace.ɵɵelementEnd();
14898
14799
  }
14899
14800
  if (rf & 2) {
14900
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
14801
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
14901
14802
  i0__namespace.ɵɵadvance(1);
14902
14803
  i0__namespace.ɵɵproperty("for", ctx.id());
14903
14804
  i0__namespace.ɵɵadvance(1);
@@ -15015,7 +14916,7 @@
15015
14916
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15016
14917
  }
15017
14918
  }
15018
- var _c0$H = function (a0) { return { selected: a0 }; };
14919
+ var _c0$I = function (a0) { return { selected: a0 }; };
15019
14920
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15020
14921
  if (rf & 1) {
15021
14922
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15028,7 +14929,7 @@
15028
14929
  if (rf & 2) {
15029
14930
  var radioButton_r4 = ctx.$implicit;
15030
14931
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15031
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
14932
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15032
14933
  i0__namespace.ɵɵadvance(1);
15033
14934
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15034
14935
  i0__namespace.ɵɵadvance(1);
@@ -15198,7 +15099,7 @@
15198
15099
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15199
15100
  }
15200
15101
  }
15201
- var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
15102
+ var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
15202
15103
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15203
15104
  if (rf & 1) {
15204
15105
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15210,7 +15111,7 @@
15210
15111
  if (rf & 2) {
15211
15112
  var judicialUser_r5 = ctx.$implicit;
15212
15113
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15213
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15114
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15214
15115
  i0__namespace.ɵɵadvance(1);
15215
15116
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15216
15117
  }
@@ -15449,7 +15350,7 @@
15449
15350
  casesResponse.push(_this.mapResponse(result));
15450
15351
  });
15451
15352
  });
15452
- var caseLinks = casesResponse.map(function (item) {
15353
+ _this.linkedCases = casesResponse.map(function (item) {
15453
15354
  return {
15454
15355
  caseReference: item.caseReference,
15455
15356
  caseName: item.caseName,
@@ -15463,7 +15364,6 @@
15463
15364
  }),
15464
15365
  };
15465
15366
  });
15466
- _this.linkedCases = caseLinks;
15467
15367
  _this.serverLinkedApiError = null;
15468
15368
  }, function (err) {
15469
15369
  _this.serverLinkedApiError = {
@@ -16000,7 +15900,7 @@
16000
15900
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
16001
15901
  }
16002
15902
  }
16003
- var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
15903
+ var _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
16004
15904
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
16005
15905
  if (rf & 1) {
16006
15906
  i0__namespace.ɵɵelementStart(0, "div", 35);
@@ -16018,7 +15918,7 @@
16018
15918
  }
16019
15919
  if (rf & 2) {
16020
15920
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
16021
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
15921
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
16022
15922
  i0__namespace.ɵɵadvance(3);
16023
15923
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
16024
15924
  }
@@ -16075,11 +15975,11 @@
16075
15975
  var ctx_r0 = i0__namespace.ɵɵnextContext();
16076
15976
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
16077
15977
  i0__namespace.ɵɵadvance(1);
16078
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
15978
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
16079
15979
  i0__namespace.ɵɵadvance(3);
16080
15980
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
16081
15981
  i0__namespace.ɵɵadvance(2);
16082
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
15982
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
16083
15983
  i0__namespace.ɵɵadvance(5);
16084
15984
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
16085
15985
  i0__namespace.ɵɵadvance(2);
@@ -16513,7 +16413,7 @@
16513
16413
  i0__namespace.ɵɵadvance(4);
16514
16414
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
16515
16415
  i0__namespace.ɵɵadvance(4);
16516
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
16416
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
16517
16417
  i0__namespace.ɵɵadvance(1);
16518
16418
  i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
16519
16419
  i0__namespace.ɵɵadvance(18);
@@ -17197,7 +17097,7 @@
17197
17097
  i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
17198
17098
  }
17199
17099
  }
17200
- var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
17100
+ var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
17201
17101
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
17202
17102
  if (rf & 1) {
17203
17103
  i0__namespace.ɵɵelementStart(0, "div", 7);
@@ -17209,7 +17109,7 @@
17209
17109
  }
17210
17110
  if (rf & 2) {
17211
17111
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
17212
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17112
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17213
17113
  i0__namespace.ɵɵadvance(1);
17214
17114
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
17215
17115
  i0__namespace.ɵɵadvance(2);
@@ -17543,7 +17443,7 @@
17543
17443
  this.caseField = (_a = tab === null || tab === void 0 ? void 0 : tab.fields) === null || _a === void 0 ? void 0 : _a.find(function (field) { return field.id === 'caseLinks'; });
17544
17444
  }
17545
17445
  this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
17546
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17446
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17547
17447
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17548
17448
  next: function (reasons) {
17549
17449
  _this.reasonListLoaded = true;
@@ -17805,7 +17705,7 @@
17805
17705
  };
17806
17706
  WriteLinkedCasesFieldComponent.prototype.getLinkedCaseReasons = function () {
17807
17707
  var _this = this;
17808
- var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17708
+ var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
17809
17709
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17810
17710
  next: function (reasons) {
17811
17711
  // Sort in ascending order
@@ -17864,11 +17764,10 @@
17864
17764
  var _this = this;
17865
17765
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe(function (caseView) {
17866
17766
  var caseViewFiltered = caseView.tabs.filter(function (tab) {
17867
- var linkField = tab.fields.some(function (_b) {
17767
+ return tab.fields.some(function (_b) {
17868
17768
  var field_type = _b.field_type;
17869
17769
  return field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink';
17870
17770
  });
17871
- return linkField;
17872
17771
  });
17873
17772
  if (caseViewFiltered) {
17874
17773
  var caseLinkFieldValue = caseViewFiltered.map(function (filtered) { var _a; return ((_a = filtered.fields) === null || _a === void 0 ? void 0 : _a.length) > 0 && filtered.fields.filter(function (field) { return field.id === 'caseLinks'; })[0].value; });
@@ -18151,7 +18050,7 @@
18151
18050
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
18152
18051
  }
18153
18052
  }
18154
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
18053
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
18155
18054
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
18156
18055
  __extends(WriteMoneyGbpFieldComponent, _super);
18157
18056
  function WriteMoneyGbpFieldComponent() {
@@ -18181,7 +18080,7 @@
18181
18080
  i0__namespace.ɵɵelementEnd();
18182
18081
  }
18183
18082
  if (rf & 2) {
18184
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18083
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18185
18084
  i0__namespace.ɵɵadvance(1);
18186
18085
  i0__namespace.ɵɵproperty("for", ctx.id());
18187
18086
  i0__namespace.ɵɵadvance(1);
@@ -18329,7 +18228,7 @@
18329
18228
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
18330
18229
  }
18331
18230
  }
18332
- var _c0$C = function (a0) { return { "error": a0 }; };
18231
+ var _c0$D = function (a0) { return { "error": a0 }; };
18333
18232
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
18334
18233
  __extends(WriteMultiSelectListFieldComponent, _super);
18335
18234
  function WriteMultiSelectListFieldComponent() {
@@ -18393,7 +18292,7 @@
18393
18292
  i0__namespace.ɵɵelementEnd();
18394
18293
  }
18395
18294
  if (rf & 2) {
18396
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18295
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18397
18296
  i0__namespace.ɵɵadvance(3);
18398
18297
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
18399
18298
  i0__namespace.ɵɵadvance(1);
@@ -18484,7 +18383,7 @@
18484
18383
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
18485
18384
  }
18486
18385
  }
18487
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
18386
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
18488
18387
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
18489
18388
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
18490
18389
  __extends(WriteNumberFieldComponent, _super);
@@ -18509,7 +18408,7 @@
18509
18408
  i0__namespace.ɵɵelementEnd();
18510
18409
  }
18511
18410
  if (rf & 2) {
18512
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
18411
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
18513
18412
  i0__namespace.ɵɵadvance(1);
18514
18413
  i0__namespace.ɵɵproperty("for", ctx.id());
18515
18414
  i0__namespace.ɵɵadvance(1);
@@ -18810,7 +18709,7 @@
18810
18709
  i0__namespace.ɵɵelementEnd();
18811
18710
  }
18812
18711
  }
18813
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
18712
+ var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
18814
18713
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
18815
18714
  if (rf & 1) {
18816
18715
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -18826,7 +18725,7 @@
18826
18725
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
18827
18726
  var tmp_0_0 = null;
18828
18727
  var tmp_2_0 = null;
18829
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
18728
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
18830
18729
  i0__namespace.ɵɵadvance(2);
18831
18730
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
18832
18731
  i0__namespace.ɵɵadvance(2);
@@ -19230,6 +19129,231 @@
19230
19129
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
19231
19130
  })();
19232
19131
 
19132
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
19133
+ if (rf & 1) {
19134
+ i0__namespace.ɵɵelementStart(0, "div");
19135
+ i0__namespace.ɵɵtext(1);
19136
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
19137
+ i0__namespace.ɵɵelementEnd();
19138
+ }
19139
+ if (rf & 2) {
19140
+ var value_r1 = ctx.$implicit;
19141
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19142
+ i0__namespace.ɵɵadvance(1);
19143
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
19144
+ }
19145
+ }
19146
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19147
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
19148
+ function ReadDynamicMultiSelectListFieldComponent() {
19149
+ return _super !== null && _super.apply(this, arguments) || this;
19150
+ }
19151
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19152
+ /**
19153
+ *
19154
+ * Reassigning list_items from formatted_list when list_items is empty
19155
+ */
19156
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
19157
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19158
+ }
19159
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19160
+ this.caseField.value = this.caseField.formatted_value.value;
19161
+ }
19162
+ _super.prototype.ngOnInit.call(this);
19163
+ };
19164
+ return ReadDynamicMultiSelectListFieldComponent;
19165
+ }(AbstractFieldReadComponent));
19166
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
19167
+ ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
19168
+ if (rf & 1) {
19169
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
19170
+ }
19171
+ if (rf & 2) {
19172
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
19173
+ }
19174
+ }, directives: [i1__namespace.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
19175
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
19176
+ (function () {
19177
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
19178
+ type: i0.Component,
19179
+ args: [{
19180
+ selector: 'ccd-read-dynamic-multi-select-list-field',
19181
+ templateUrl: './read-dynamic-multi-select-list-field.html',
19182
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
19183
+ }]
19184
+ }], null, null);
19185
+ })();
19186
+
19187
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
19188
+ if (rf & 1) {
19189
+ i0__namespace.ɵɵelementStart(0, "span", 5);
19190
+ i0__namespace.ɵɵtext(1);
19191
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
19192
+ i0__namespace.ɵɵelementEnd();
19193
+ }
19194
+ if (rf & 2) {
19195
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19196
+ i0__namespace.ɵɵadvance(1);
19197
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
19198
+ }
19199
+ }
19200
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
19201
+ if (rf & 1) {
19202
+ i0__namespace.ɵɵelementStart(0, "span", 6);
19203
+ i0__namespace.ɵɵtext(1);
19204
+ i0__namespace.ɵɵelementEnd();
19205
+ }
19206
+ if (rf & 2) {
19207
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
19208
+ i0__namespace.ɵɵadvance(1);
19209
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
19210
+ }
19211
+ }
19212
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
19213
+ if (rf & 1) {
19214
+ i0__namespace.ɵɵelementStart(0, "span", 7);
19215
+ i0__namespace.ɵɵtext(1);
19216
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
19217
+ i0__namespace.ɵɵelementEnd();
19218
+ }
19219
+ if (rf & 2) {
19220
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
19221
+ i0__namespace.ɵɵadvance(1);
19222
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
19223
+ }
19224
+ }
19225
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
19226
+ if (rf & 1) {
19227
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
19228
+ i0__namespace.ɵɵelementContainerStart(0);
19229
+ i0__namespace.ɵɵelementStart(1, "div", 8);
19230
+ i0__namespace.ɵɵelementStart(2, "input", 9);
19231
+ i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
19232
+ i0__namespace.ɵɵelementEnd();
19233
+ i0__namespace.ɵɵelementStart(3, "label", 10);
19234
+ i0__namespace.ɵɵtext(4);
19235
+ i0__namespace.ɵɵelementEnd();
19236
+ i0__namespace.ɵɵelementEnd();
19237
+ i0__namespace.ɵɵelementContainerEnd();
19238
+ }
19239
+ if (rf & 2) {
19240
+ var checkbox_r4 = ctx.$implicit;
19241
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
19242
+ i0__namespace.ɵɵadvance(2);
19243
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
19244
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
19245
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
19246
+ i0__namespace.ɵɵadvance(1);
19247
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
19248
+ i0__namespace.ɵɵadvance(1);
19249
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
19250
+ }
19251
+ }
19252
+ var _c0$A = function (a0) { return { "error": a0 }; };
19253
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19254
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
19255
+ function WriteDynamicMultiSelectListFieldComponent() {
19256
+ return _super !== null && _super.apply(this, arguments) || this;
19257
+ }
19258
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19259
+ var _this = this;
19260
+ this.checkboxes = new i2.FormArray([]);
19261
+ this.setInitialCaseList();
19262
+ this.setInitialCaseFieldValue();
19263
+ // Initialise array with existing values
19264
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
19265
+ var values = this.caseField.value;
19266
+ values.forEach(function (value) {
19267
+ _this.checkboxes.push(new i2.FormControl(value));
19268
+ });
19269
+ }
19270
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
19271
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19272
+ };
19273
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
19274
+ var _this = this;
19275
+ var target = event.target;
19276
+ if (!target || !target.value) {
19277
+ return;
19278
+ }
19279
+ var selectedListItem = this.getValueListItem(target.value);
19280
+ if (!this.isSelected(target.value)) {
19281
+ // Add a new control in the FormArray
19282
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
19283
+ }
19284
+ else {
19285
+ // Remove the control from the FormArray
19286
+ this.checkboxes.controls.forEach(function (ctrl, i) {
19287
+ if (ctrl.value.code === target.value) {
19288
+ _this.checkboxes.removeAt(i);
19289
+ }
19290
+ });
19291
+ }
19292
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19293
+ };
19294
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
19295
+ if (this.checkboxes && this.checkboxes.controls) {
19296
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
19297
+ }
19298
+ };
19299
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
19300
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
19301
+ };
19302
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
19303
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
19304
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
19305
+ if (!hasListItems && hasFormattedListItems) {
19306
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19307
+ }
19308
+ };
19309
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
19310
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19311
+ this.caseField.value = this.caseField.formatted_value.value;
19312
+ }
19313
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
19314
+ if (isNull || !Array.isArray(this.caseField.value)) {
19315
+ this.caseField.value = [];
19316
+ }
19317
+ };
19318
+ return WriteDynamicMultiSelectListFieldComponent;
19319
+ }(AbstractFieldWriteComponent));
19320
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
19321
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
19322
+ if (rf & 1) {
19323
+ i0__namespace.ɵɵelementStart(0, "div", 0);
19324
+ i0__namespace.ɵɵelementStart(1, "fieldset");
19325
+ i0__namespace.ɵɵelementStart(2, "legend");
19326
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
19327
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
19328
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
19329
+ i0__namespace.ɵɵelementEnd();
19330
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
19331
+ i0__namespace.ɵɵelementEnd();
19332
+ i0__namespace.ɵɵelementEnd();
19333
+ }
19334
+ if (rf & 2) {
19335
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
19336
+ i0__namespace.ɵɵadvance(3);
19337
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
19338
+ i0__namespace.ɵɵadvance(1);
19339
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
19340
+ i0__namespace.ɵɵadvance(1);
19341
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
19342
+ i0__namespace.ɵɵadvance(1);
19343
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
19344
+ }
19345
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
19346
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
19347
+ (function () {
19348
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
19349
+ type: i0.Component,
19350
+ args: [{
19351
+ selector: 'ccd-write-dynamic-multi-select-list-field',
19352
+ templateUrl: './write-dynamic-multi-select-list-field.html'
19353
+ }]
19354
+ }], null, null);
19355
+ })();
19356
+
19233
19357
  var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
19234
19358
  __extends(ReadPhoneUKFieldComponent, _super);
19235
19359
  function ReadPhoneUKFieldComponent() {
@@ -19430,7 +19554,7 @@
19430
19554
  WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
19431
19555
  if (this.browserService.isIEOrEdge()) {
19432
19556
  event.target.style.height = 'auto';
19433
- event.target.style.height = event.target.scrollHeight + 'px';
19557
+ event.target.style.height = event.target.scrollHeight + "px";
19434
19558
  event.target.scrollTop = event.target.scrollHeight;
19435
19559
  }
19436
19560
  };
@@ -19862,7 +19986,7 @@
19862
19986
  function PaletteService() {
19863
19987
  var _b;
19864
19988
  this.componentLauncherRegistry = (_b = {},
19865
- _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent],
19989
+ _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
19866
19990
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
19867
19991
  _b);
19868
19992
  }
@@ -19892,6 +20016,8 @@
19892
20016
  return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
19893
20017
  case 'DynamicRadioList':
19894
20018
  return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
20019
+ case 'DynamicMultiSelectList':
20020
+ return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
19895
20021
  case 'FixedRadioList':
19896
20022
  return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
19897
20023
  case 'Complex':
@@ -19961,7 +20087,7 @@
19961
20087
  })();
19962
20088
 
19963
20089
  var _c0$v = ["fieldContainer"];
19964
- var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
20090
+ var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
19965
20091
  var FieldReadComponent = /** @class */ (function (_super) {
19966
20092
  __extends(FieldReadComponent, _super);
19967
20093
  function FieldReadComponent(resolver, paletteService) {
@@ -20051,7 +20177,7 @@
20051
20177
  })();
20052
20178
 
20053
20179
  var _c0$u = ["fieldContainer"];
20054
- var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
20180
+ var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
20055
20181
  var FieldWriteComponent = /** @class */ (function (_super) {
20056
20182
  __extends(FieldWriteComponent, _super);
20057
20183
  function FieldWriteComponent(resolver, paletteService) {
@@ -20790,10 +20916,14 @@
20790
20916
  i0__namespace.ɵɵelementEnd();
20791
20917
  i0__namespace.ɵɵelementStart(4, "span", 16);
20792
20918
  i0__namespace.ɵɵtext(5);
20919
+ i0__namespace.ɵɵelement(6, "br");
20920
+ i0__namespace.ɵɵelementStart(7, "span", 17);
20921
+ i0__namespace.ɵɵtext(8);
20922
+ i0__namespace.ɵɵelementEnd();
20793
20923
  i0__namespace.ɵɵelementEnd();
20794
- i0__namespace.ɵɵelementStart(6, "div", 17);
20795
- i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
20796
- i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
20924
+ i0__namespace.ɵɵelementStart(9, "div", 18);
20925
+ i0__namespace.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
20926
+ i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
20797
20927
  i0__namespace.ɵɵelementEnd();
20798
20928
  i0__namespace.ɵɵelementEnd();
20799
20929
  i0__namespace.ɵɵelementEnd();
@@ -20805,27 +20935,29 @@
20805
20935
  i0__namespace.ɵɵadvance(1);
20806
20936
  i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
20807
20937
  i0__namespace.ɵɵadvance(4);
20808
- i0__namespace.ɵɵtextInterpolate(node_r4.name);
20938
+ i0__namespace.ɵɵtextInterpolate1(" ", node_r4.name, " ");
20939
+ i0__namespace.ɵɵadvance(3);
20940
+ i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
20809
20941
  i0__namespace.ɵɵadvance(2);
20810
20942
  i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
20811
20943
  }
20812
20944
  }
20813
20945
  function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
20814
20946
  if (rf & 1) {
20815
- i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
20816
- i0__namespace.ɵɵelementStart(1, "button", 20);
20817
- i0__namespace.ɵɵelementStart(2, "div", 21);
20818
- i0__namespace.ɵɵelement(3, "img", 22);
20819
- i0__namespace.ɵɵelementStart(4, "span", 23);
20947
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
20948
+ i0__namespace.ɵɵelementStart(1, "button", 21);
20949
+ i0__namespace.ɵɵelementStart(2, "div", 22);
20950
+ i0__namespace.ɵɵelement(3, "img", 23);
20951
+ i0__namespace.ɵɵelementStart(4, "span", 24);
20820
20952
  i0__namespace.ɵɵtext(5);
20821
20953
  i0__namespace.ɵɵelementEnd();
20822
20954
  i0__namespace.ɵɵelementEnd();
20823
- i0__namespace.ɵɵelementStart(6, "span", 24);
20955
+ i0__namespace.ɵɵelementStart(6, "span", 25);
20824
20956
  i0__namespace.ɵɵtext(7);
20825
20957
  i0__namespace.ɵɵelementEnd();
20826
20958
  i0__namespace.ɵɵelementEnd();
20827
20959
  i0__namespace.ɵɵelementStart(8, "div");
20828
- i0__namespace.ɵɵelementContainer(9, 25);
20960
+ i0__namespace.ɵɵelementContainer(9, 26);
20829
20961
  i0__namespace.ɵɵelementEnd();
20830
20962
  i0__namespace.ɵɵelementEnd();
20831
20963
  }
@@ -20850,7 +20982,7 @@
20850
20982
  i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
20851
20983
  i0__namespace.ɵɵelementStart(2, "div");
20852
20984
  i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
20853
- i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
20985
+ i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
20854
20986
  i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
20855
20987
  i0__namespace.ɵɵelementEnd();
20856
20988
  i0__namespace.ɵɵelementEnd();
@@ -20945,6 +21077,7 @@
20945
21077
  documentTreeNode.document_filename = document.document_filename;
20946
21078
  documentTreeNode.document_binary_url = document.document_binary_url;
20947
21079
  documentTreeNode.attribute_path = document.attribute_path;
21080
+ documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
20948
21081
  documentsToReturn.push(documentTreeNode);
20949
21082
  });
20950
21083
  return documentsToReturn;
@@ -20958,6 +21091,7 @@
20958
21091
  documentTreeNode.document_filename = document.document_filename;
20959
21092
  documentTreeNode.document_binary_url = document.document_binary_url;
20960
21093
  documentTreeNode.attribute_path = document.attribute_path;
21094
+ documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
20961
21095
  documents.push(documentTreeNode);
20962
21096
  });
20963
21097
  var uncategorisedNode = new DocumentTreeNode();
@@ -21082,7 +21216,7 @@
21082
21216
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
21083
21217
  CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
21084
21218
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
21085
- CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
21219
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
21086
21220
  if (rf & 1) {
21087
21221
  i0__namespace.ɵɵelementStart(0, "div", 0);
21088
21222
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -21109,7 +21243,7 @@
21109
21243
  i0__namespace.ɵɵadvance(3);
21110
21244
  i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
21111
21245
  }
21112
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
21246
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
21113
21247
  (function () {
21114
21248
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
21115
21249
  type: i0.Component,
@@ -22003,7 +22137,7 @@
22003
22137
  // is expected not to have a party name)
22004
22138
  if (this.flagsData) {
22005
22139
  this.filteredFlagsData =
22006
- this.flagsData.filter(function (f) { return f.flags.partyName != null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22140
+ this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
22007
22141
  }
22008
22142
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
22009
22143
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -23300,13 +23434,13 @@
23300
23434
  field.value = { CaseReference: value };
23301
23435
  return field;
23302
23436
  };
23303
- ReadComplexFieldCollectionTableComponent.prototype.toCaseField = function (id, label, field_type, value) {
23437
+ ReadComplexFieldCollectionTableComponent.prototype.toCaseField = function (id, label, fieldType, value) {
23304
23438
  return classTransformer.plainToClassFromExist(new CaseField(), {
23305
23439
  id: id,
23306
23440
  label: label,
23307
23441
  display_context: 'READONLY',
23308
23442
  value: value,
23309
- field_type: field_type
23443
+ field_type: fieldType
23310
23444
  });
23311
23445
  };
23312
23446
  ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
@@ -25142,7 +25276,7 @@
25142
25276
  function CcdPageFieldsPipe() {
25143
25277
  }
25144
25278
  CcdPageFieldsPipe.prototype.transform = function (page, dataFormGroup) {
25145
- var complex_fields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25279
+ var complexFields = Object.keys(dataFormGroup.controls['data'].controls).map(function (key) {
25146
25280
  var control = dataFormGroup.controls['data'].get(key);
25147
25281
  return control['caseField'];
25148
25282
  }).filter(function (field) {
@@ -25162,7 +25296,7 @@
25162
25296
  field_type: {
25163
25297
  id: page.id,
25164
25298
  type: 'Complex',
25165
- complex_fields: complex_fields
25299
+ complex_fields: complexFields
25166
25300
  }
25167
25301
  });
25168
25302
  };
@@ -25341,11 +25475,11 @@
25341
25475
  }
25342
25476
  return childrenCaseFields;
25343
25477
  };
25344
- CollectionCreateCheckerService.prototype.isComplex = function (case_field) {
25345
- return case_field.field_type.type === 'Complex';
25478
+ CollectionCreateCheckerService.prototype.isComplex = function (caseField) {
25479
+ return caseField.field_type.type === 'Complex';
25346
25480
  };
25347
- CollectionCreateCheckerService.prototype.isCollection = function (case_field) {
25348
- return case_field.field_type.type === 'Collection';
25481
+ CollectionCreateCheckerService.prototype.isCollection = function (caseField) {
25482
+ return caseField.field_type.type === 'Collection';
25349
25483
  };
25350
25484
  CollectionCreateCheckerService.prototype.hasCreateAccess = function (caseField, role) {
25351
25485
  return !!caseField.acls.find(function (acl) { return acl.role === role && acl.create === true; });
@@ -25439,6 +25573,8 @@
25439
25573
  WriteDocumentFieldComponent,
25440
25574
  WriteDynamicListFieldComponent,
25441
25575
  WriteDynamicRadioListFieldComponent,
25576
+ WriteDynamicMultiSelectListFieldComponent,
25577
+ ReadDynamicMultiSelectListFieldComponent,
25442
25578
  WriteTextFieldComponent,
25443
25579
  WriteDateContainerFieldComponent,
25444
25580
  WriteTextAreaFieldComponent,
@@ -25462,12 +25598,18 @@
25462
25598
  WriteCollectionFieldComponent,
25463
25599
  // ComponentLauncher web components
25464
25600
  CaseFileViewFieldComponent,
25465
- CaseFileViewFieldReadComponent,
25466
25601
  CaseFileViewFolderComponent,
25467
25602
  CaseFileViewFolderSortComponent,
25468
25603
  CaseFileViewOverlayMenuComponent,
25469
25604
  CaseFileViewFolderDocumentActionsComponent,
25470
25605
  CaseFileViewFolderSelectorComponent,
25606
+ // component for dynamic list
25607
+ WriteDynamicMultiSelectListFieldComponent,
25608
+ WriteDynamicRadioListFieldComponent,
25609
+ WriteDynamicListFieldComponent,
25610
+ ReadDynamicMultiSelectListFieldComponent,
25611
+ ReadDynamicListFieldComponent,
25612
+ ReadDynamicRadioListFieldComponent,
25471
25613
  LinkedCasesToTableComponent,
25472
25614
  LinkedCasesFromTableComponent,
25473
25615
  BeforeYouStartComponent,
@@ -25598,6 +25740,8 @@
25598
25740
  WriteDocumentFieldComponent,
25599
25741
  WriteDynamicListFieldComponent,
25600
25742
  WriteDynamicRadioListFieldComponent,
25743
+ WriteDynamicMultiSelectListFieldComponent,
25744
+ ReadDynamicMultiSelectListFieldComponent,
25601
25745
  WriteTextFieldComponent,
25602
25746
  WriteDateContainerFieldComponent,
25603
25747
  WriteTextAreaFieldComponent,
@@ -25621,12 +25765,18 @@
25621
25765
  WriteCollectionFieldComponent,
25622
25766
  // ComponentLauncher web components
25623
25767
  CaseFileViewFieldComponent,
25624
- CaseFileViewFieldReadComponent,
25625
25768
  CaseFileViewFolderComponent,
25626
25769
  CaseFileViewFolderSortComponent,
25627
25770
  CaseFileViewOverlayMenuComponent,
25628
25771
  CaseFileViewFolderDocumentActionsComponent,
25629
25772
  CaseFileViewFolderSelectorComponent,
25773
+ // component for dynamic list
25774
+ WriteDynamicMultiSelectListFieldComponent,
25775
+ WriteDynamicRadioListFieldComponent,
25776
+ WriteDynamicListFieldComponent,
25777
+ ReadDynamicMultiSelectListFieldComponent,
25778
+ ReadDynamicListFieldComponent,
25779
+ ReadDynamicRadioListFieldComponent,
25630
25780
  LinkedCasesToTableComponent,
25631
25781
  LinkedCasesFromTableComponent,
25632
25782
  BeforeYouStartComponent,
@@ -25716,6 +25866,8 @@
25716
25866
  WriteDocumentFieldComponent,
25717
25867
  WriteDynamicListFieldComponent,
25718
25868
  WriteDynamicRadioListFieldComponent,
25869
+ WriteDynamicMultiSelectListFieldComponent,
25870
+ ReadDynamicMultiSelectListFieldComponent,
25719
25871
  WriteTextFieldComponent,
25720
25872
  WriteDateContainerFieldComponent,
25721
25873
  WriteTextAreaFieldComponent,
@@ -25739,12 +25891,18 @@
25739
25891
  WriteCollectionFieldComponent,
25740
25892
  // ComponentLauncher web components
25741
25893
  CaseFileViewFieldComponent,
25742
- CaseFileViewFieldReadComponent,
25743
25894
  CaseFileViewFolderComponent,
25744
25895
  CaseFileViewFolderSortComponent,
25745
25896
  CaseFileViewOverlayMenuComponent,
25746
25897
  CaseFileViewFolderDocumentActionsComponent,
25747
25898
  CaseFileViewFolderSelectorComponent,
25899
+ // component for dynamic list
25900
+ WriteDynamicMultiSelectListFieldComponent,
25901
+ WriteDynamicRadioListFieldComponent,
25902
+ WriteDynamicListFieldComponent,
25903
+ ReadDynamicMultiSelectListFieldComponent,
25904
+ ReadDynamicListFieldComponent,
25905
+ ReadDynamicRadioListFieldComponent,
25748
25906
  LinkedCasesToTableComponent,
25749
25907
  LinkedCasesFromTableComponent,
25750
25908
  BeforeYouStartComponent,
@@ -25870,8 +26028,7 @@
25870
26028
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
25871
26029
  i0__namespace.ɵɵsetComponentScope(
25872
26030
  // ComponentLauncher web components
25873
- CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25874
- i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
26031
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
25875
26032
  i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
25876
26033
  i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
25877
26034
  i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
@@ -26523,7 +26680,7 @@
26523
26680
  if (caseField.field_type.type === 'Complex') {
26524
26681
  // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
26525
26682
  // handle both null and undefined values
26526
- if (caseField.value != null) {
26683
+ if (caseField.value !== null) {
26527
26684
  // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
26528
26685
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
26529
26686
  // parent)
@@ -28552,7 +28709,7 @@
28552
28709
  var formValue = _this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
28553
28710
  workbasketInputs.forEach(function (item) {
28554
28711
  if (item.field.elementPath) {
28555
- item.field.id = item.field.id + '.' + item.field.elementPath;
28712
+ item.field.id = item.field.id + "." + item.field.elementPath;
28556
28713
  }
28557
28714
  item.field.label = item.label;
28558
28715
  if (formValue) {
@@ -28604,7 +28761,7 @@
28604
28761
  var value = formGroupLS[key];
28605
28762
  // Clear the filter form group control values if it has a value in local storage
28606
28763
  // The regionList form group control value should be ignored as it always contain the latest value
28607
- if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
28764
+ if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
28608
28765
  this.formGroup.get(key).setValue(null);
28609
28766
  }
28610
28767
  }
@@ -30985,7 +31142,7 @@
30985
31142
  * or the empty string
30986
31143
  */
30987
31144
  PrintUrlPipe.prototype.transform = function (remoteUrl) {
30988
- if (remoteUrl && remoteUrl.length > 0) {
31145
+ if ((remoteUrl === null || remoteUrl === void 0 ? void 0 : remoteUrl.length) > 0) {
30989
31146
  var printServiceUrlPathname = void 0;
30990
31147
  /**
30991
31148
  * Check navigator.userAgent to see if the browser is IE or not. Check for either the browser name, "MSIE", or
@@ -31001,7 +31158,7 @@
31001
31158
  printServiceUrlPathname = urlParser.pathname;
31002
31159
  if (printServiceUrlPathname[0] !== '/') {
31003
31160
  // Fix for IE11; it returns the pathname without leading slash
31004
- printServiceUrlPathname = '/' + printServiceUrlPathname;
31161
+ printServiceUrlPathname = "/" + printServiceUrlPathname;
31005
31162
  }
31006
31163
  }
31007
31164
  else {
@@ -31204,10 +31361,10 @@
31204
31361
  };
31205
31362
  CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
31206
31363
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
31207
- var access_process = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31208
- var access_granted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31209
- this.accessGranted = access_granted ? access_granted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31210
- this.userAccessType = access_process ? access_process.value : null;
31364
+ var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31365
+ var accessGranted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31366
+ this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31367
+ this.userAccessType = accessProcess ? accessProcess.value : null;
31211
31368
  }
31212
31369
  };
31213
31370
  CaseViewerComponent.prototype.isDataLoaded = function () {
@@ -32503,11 +32660,11 @@
32503
32660
  };
32504
32661
  this.$roleAssignmentResponseSubscription = this.casesService.createChallengedAccessRequest(caseId_1, challengedAccessRequest)
32505
32662
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
32506
- .subscribe(function (_response) {
32663
+ .subscribe(function () {
32507
32664
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
32508
32665
  // Angular 7.2!
32509
32666
  _this.router.navigate(['success'], { relativeTo: _this.route });
32510
- }, function (_error) {
32667
+ }, function () {
32511
32668
  // Navigate to error page
32512
32669
  });
32513
32670
  }
@@ -32521,7 +32678,7 @@
32521
32678
  }
32522
32679
  };
32523
32680
  CaseChallengedAccessRequestComponent.prototype.inputEmpty = function (input) {
32524
- return input.value == null || input.value.trim().length === 0;
32681
+ return input.value === null || input.value.trim().length === 0;
32525
32682
  };
32526
32683
  return CaseChallengedAccessRequestComponent;
32527
32684
  }());
@@ -33145,11 +33302,11 @@
33145
33302
  };
33146
33303
  this.$roleAssignmentResponseSubscription = this.casesService.createSpecificAccessRequest(caseId_1, specificAccessRequest)
33147
33304
  .pipe(operators.switchMap(function () { return _this.caseNotifier.fetchAndRefresh(caseId_1); }))
33148
- .subscribe(function (_response) {
33305
+ .subscribe(function () {
33149
33306
  // Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
33150
33307
  // Angular 7.2
33151
33308
  _this.router.navigate(['success'], { relativeTo: _this.route });
33152
- }, function (_error) {
33309
+ }, function () {
33153
33310
  // Navigate to error page
33154
33311
  });
33155
33312
  }
@@ -33164,7 +33321,7 @@
33164
33321
  }
33165
33322
  };
33166
33323
  CaseSpecificAccessRequestComponent.prototype.inputEmpty = function (input) {
33167
- return input.value == null || input.value.trim().length === 0;
33324
+ return input.value === null || input.value.trim().length === 0;
33168
33325
  };
33169
33326
  return CaseSpecificAccessRequestComponent;
33170
33327
  }());
@@ -34065,7 +34222,7 @@
34065
34222
  }
34066
34223
  searchInputs.forEach(function (item) {
34067
34224
  if (item.field.elementPath) {
34068
- item.field.id = item.field.id + '.' + item.field.elementPath;
34225
+ item.field.id = item.field.id + "." + item.field.elementPath;
34069
34226
  }
34070
34227
  item.field.label = item.label;
34071
34228
  if (formValueObject) {
@@ -35332,24 +35489,24 @@
35332
35489
  this.caseField.id = id;
35333
35490
  return this;
35334
35491
  };
35335
- CaseFieldBuilder.prototype.withFieldType = function (field_type) {
35336
- this.caseField.field_type = field_type;
35492
+ CaseFieldBuilder.prototype.withFieldType = function (fieldType) {
35493
+ this.caseField.field_type = fieldType;
35337
35494
  return this;
35338
35495
  };
35339
- CaseFieldBuilder.prototype.withDisplayContext = function (display_context) {
35340
- this.caseField.display_context = display_context;
35496
+ CaseFieldBuilder.prototype.withDisplayContext = function (displayContext) {
35497
+ this.caseField.display_context = displayContext;
35341
35498
  return this;
35342
35499
  };
35343
- CaseFieldBuilder.prototype.withDisplayContextParameter = function (display_context_parameter) {
35344
- this.caseField.display_context_parameter = display_context_parameter;
35500
+ CaseFieldBuilder.prototype.withDisplayContextParameter = function (displayContextParameter) {
35501
+ this.caseField.display_context_parameter = displayContextParameter;
35345
35502
  return this;
35346
35503
  };
35347
35504
  CaseFieldBuilder.prototype.withHidden = function (hidden) {
35348
35505
  this.caseField.hidden = hidden;
35349
35506
  return this;
35350
35507
  };
35351
- CaseFieldBuilder.prototype.withHintText = function (hint_text) {
35352
- this.caseField.hint_text = hint_text;
35508
+ CaseFieldBuilder.prototype.withHintText = function (hintText) {
35509
+ this.caseField.hint_text = hintText;
35353
35510
  return this;
35354
35511
  };
35355
35512
  CaseFieldBuilder.prototype.withLabel = function (label) {
@@ -35360,12 +35517,12 @@
35360
35517
  this.caseField.order = order;
35361
35518
  return this;
35362
35519
  };
35363
- CaseFieldBuilder.prototype.withSecurityLabel = function (security_label) {
35364
- this.caseField.security_label = security_label;
35520
+ CaseFieldBuilder.prototype.withSecurityLabel = function (securityLabel) {
35521
+ this.caseField.security_label = securityLabel;
35365
35522
  return this;
35366
35523
  };
35367
- CaseFieldBuilder.prototype.withShowCondition = function (show_condition) {
35368
- this.caseField.show_condition = show_condition;
35524
+ CaseFieldBuilder.prototype.withShowCondition = function (showCondition) {
35525
+ this.caseField.show_condition = showCondition;
35369
35526
  return this;
35370
35527
  };
35371
35528
  CaseFieldBuilder.prototype.withShowSummaryContentOption = function (option) {
@@ -35393,21 +35550,21 @@
35393
35550
  complex_fields: []
35394
35551
  };
35395
35552
  };
35396
- var createCaseEventTrigger = function (id, name, case_id, show_summary, case_fields, wizard_pages, can_save_draft) {
35397
- if (wizard_pages === void 0) { wizard_pages = []; }
35398
- if (can_save_draft === void 0) { can_save_draft = false; }
35553
+ var createCaseEventTrigger = function (id, name, caseId, showSummary, caseFields, wizardPages, canSaveDraft) {
35554
+ if (wizardPages === void 0) { wizardPages = []; }
35555
+ if (canSaveDraft === void 0) { canSaveDraft = false; }
35399
35556
  var eventTrigger = new CaseEventTrigger();
35400
35557
  eventTrigger.id = id;
35401
35558
  eventTrigger.name = name;
35402
- eventTrigger.case_id = case_id;
35403
- eventTrigger.show_summary = show_summary;
35404
- eventTrigger.wizard_pages = wizard_pages;
35559
+ eventTrigger.case_id = caseId;
35560
+ eventTrigger.show_summary = showSummary;
35561
+ eventTrigger.wizard_pages = wizardPages;
35405
35562
  eventTrigger.event_token = 'test-token';
35406
- eventTrigger.case_fields = case_fields;
35407
- eventTrigger.can_save_draft = can_save_draft;
35563
+ eventTrigger.case_fields = caseFields;
35564
+ eventTrigger.can_save_draft = canSaveDraft;
35408
35565
  return eventTrigger;
35409
35566
  };
35410
- var aCaseField = function (id, label, type, display_context, show_summary_content_option, typeComplexFields, retain_hidden_value, hidden) {
35567
+ var aCaseField = function (id, label, type, displayContext, showSummaryContentOption, typeComplexFields, retainHiddenValue, hidden) {
35411
35568
  if (typeComplexFields === void 0) { typeComplexFields = []; }
35412
35569
  return ({
35413
35570
  id: id || 'personFirstName',
@@ -35416,10 +35573,10 @@
35416
35573
  type: type || 'Text',
35417
35574
  complex_fields: typeComplexFields || []
35418
35575
  },
35419
- display_context: display_context || 'OPTIONAL',
35576
+ display_context: displayContext || 'OPTIONAL',
35420
35577
  label: label || 'First name',
35421
- show_summary_content_option: show_summary_content_option,
35422
- retain_hidden_value: retain_hidden_value || false,
35578
+ show_summary_content_option: showSummaryContentOption,
35579
+ retain_hidden_value: retainHiddenValue || false,
35423
35580
  hidden: hidden || false
35424
35581
  });
35425
35582
  };
@@ -35461,48 +35618,48 @@
35461
35618
  complexFieldOverride.display_context = 'HIDDEN';
35462
35619
  return complexFieldOverride;
35463
35620
  };
35464
- var createCaseField = function (id, label, hint, fieldType, display_context, order, show_condition, ACLs, hidden) {
35621
+ var createCaseField = function (id, label, hint, fieldType, displayContext, order, showCondition, acls, hidden) {
35465
35622
  if (order === void 0) { order = undefined; }
35466
- if (show_condition === void 0) { show_condition = undefined; }
35467
- if (ACLs === void 0) { ACLs = undefined; }
35623
+ if (showCondition === void 0) { showCondition = undefined; }
35624
+ if (acls === void 0) { acls = undefined; }
35468
35625
  return CaseFieldBuilder.create()
35469
35626
  .withId(id || 'personFirstName')
35470
35627
  .withFieldType(fieldType || textFieldType())
35471
- .withDisplayContext(display_context || 'OPTIONAL')
35628
+ .withDisplayContext(displayContext || 'OPTIONAL')
35472
35629
  .withLabel(label || 'First name')
35473
35630
  .withHintText(hint || 'First name hint text')
35474
35631
  .withShowSummaryContentOption(0)
35475
35632
  .withOrder(order)
35476
- .withShowCondition(show_condition || undefined)
35477
- .withACLs(ACLs)
35633
+ .withShowCondition(showCondition || undefined)
35634
+ .withACLs(acls)
35478
35635
  .withHidden(hidden || false)
35479
35636
  .build();
35480
35637
  };
35481
- var newCaseField = function (id, label, hint, fieldType, display_context, order) {
35638
+ var newCaseField = function (id, label, hint, fieldType, displayContext, order) {
35482
35639
  if (order === void 0) { order = undefined; }
35483
35640
  return CaseFieldBuilder.create()
35484
35641
  .withId(id || 'personFirstName')
35485
35642
  .withFieldType(fieldType || textFieldType())
35486
- .withDisplayContext(display_context || 'OPTIONAL')
35643
+ .withDisplayContext(displayContext || 'OPTIONAL')
35487
35644
  .withHintText(hint || 'First name hint text')
35488
35645
  .withLabel(label || 'First name')
35489
35646
  .withOrder(order)
35490
35647
  .withShowSummaryContentOption(0);
35491
35648
  };
35492
- var createFieldType = function (typeId, type, complex_fields, collection_field_type) {
35493
- if (complex_fields === void 0) { complex_fields = []; }
35494
- if (collection_field_type === void 0) { collection_field_type = undefined; }
35649
+ var createFieldType = function (typeId, type, complexFields, collectionFieldType) {
35650
+ if (complexFields === void 0) { complexFields = []; }
35651
+ if (collectionFieldType === void 0) { collectionFieldType = undefined; }
35495
35652
  return {
35496
35653
  id: typeId || 'Text',
35497
35654
  type: type || 'Text',
35498
- complex_fields: complex_fields || [],
35499
- collection_field_type: collection_field_type || undefined
35655
+ complex_fields: complexFields || [],
35656
+ collection_field_type: collectionFieldType || undefined
35500
35657
  };
35501
35658
  };
35502
35659
  var createFixedListFieldType = function (typeId, fixedListItems) {
35503
35660
  if (fixedListItems === void 0) { fixedListItems = []; }
35504
35661
  return {
35505
- id: 'FixedList-' + typeId,
35662
+ id: "FixedList-" + typeId,
35506
35663
  type: 'FixedList',
35507
35664
  fixed_list_items: fixedListItems || []
35508
35665
  };
@@ -35510,18 +35667,18 @@
35510
35667
  var createMultiSelectListFieldType = function (typeId, fixedListItems) {
35511
35668
  if (fixedListItems === void 0) { fixedListItems = []; }
35512
35669
  return {
35513
- id: 'MultiSelectList-' + typeId,
35670
+ id: "MultiSelectList-" + typeId,
35514
35671
  type: 'MultiSelectList',
35515
35672
  fixed_list_items: fixedListItems || []
35516
35673
  };
35517
35674
  };
35518
- var createACL = function (role, create, read, update, _delete) {
35675
+ var createACL = function (role, aclCreate, aclRead, aclUpdate, aclDelete) {
35519
35676
  return ({
35520
35677
  role: role || 'roleX',
35521
- create: create,
35522
- read: read,
35523
- update: update,
35524
- delete: _delete
35678
+ create: aclCreate,
35679
+ read: aclRead,
35680
+ update: aclUpdate,
35681
+ delete: aclDelete
35525
35682
  });
35526
35683
  };
35527
35684
 
@@ -35621,7 +35778,6 @@
35621
35778
  exports.CaseField = CaseField;
35622
35779
  exports.CaseFieldService = CaseFieldService;
35623
35780
  exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
35624
- exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
35625
35781
  exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
35626
35782
  exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
35627
35783
  exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
@@ -35741,7 +35897,6 @@
35741
35897
  exports.FormatTranslatorService = FormatTranslatorService;
35742
35898
  exports.GreyBarService = GreyBarService;
35743
35899
  exports.HRef = HRef;
35744
- exports.HasLoadingState = HasLoadingState;
35745
35900
  exports.HeaderBarComponent = HeaderBarComponent;
35746
35901
  exports.HeadersModule = HeadersModule;
35747
35902
  exports.HttpError = HttpError;
@@ -35811,6 +35966,7 @@
35811
35966
  exports.ReadDateFieldComponent = ReadDateFieldComponent;
35812
35967
  exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
35813
35968
  exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
35969
+ exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
35814
35970
  exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
35815
35971
  exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
35816
35972
  exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
@@ -35887,6 +36043,7 @@
35887
36043
  exports.WriteDateFieldComponent = WriteDateFieldComponent;
35888
36044
  exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
35889
36045
  exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
36046
+ exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
35890
36047
  exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
35891
36048
  exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
35892
36049
  exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;