@hmcts/ccd-case-ui-toolkit 6.10.7-cfv-move-document-handle-error-v3 → 6.10.7-cfv-move-document-handle-error-v4

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 (84) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +655 -330
  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/shared/components/palette/base-field/field-read.component.js +2 -2
  6. package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -2
  7. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +12 -5
  8. package/esm2015/lib/shared/components/palette/case-file-view/index.js +1 -2
  9. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +13 -2
  10. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +3 -0
  11. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +47 -0
  12. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +153 -0
  13. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -6
  14. package/esm2015/lib/shared/components/palette/index.js +2 -1
  15. package/esm2015/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.js +31 -9
  16. package/esm2015/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.js +152 -77
  17. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.js +20 -18
  18. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +7 -7
  19. package/esm2015/lib/shared/components/palette/linked-cases/domain/linked-cases.model.js +3 -1
  20. package/esm2015/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.js +3 -1
  21. package/esm2015/lib/shared/components/palette/linked-cases/services/linked-cases.service.js +4 -4
  22. package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +6 -2
  23. package/esm2015/lib/shared/components/palette/palette.module.js +31 -7
  24. package/esm2015/lib/shared/components/palette/palette.service.js +5 -3
  25. package/esm2015/lib/shared/domain/definition/case-field.model.js +6 -3
  26. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  27. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +14 -11
  28. package/esm2015/lib/shared/pipes/index.js +2 -1
  29. package/esm2015/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.js +28 -0
  30. package/esm2015/lib/shared/pipes/link-cases-from-reason-code/index.js +2 -0
  31. package/esm2015/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.js +10 -5
  32. package/esm2015/lib/shared/pipes/pipes.module.js +8 -4
  33. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +16 -1
  34. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +596 -309
  35. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  36. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +5 -2
  37. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  38. package/lib/shared/components/palette/case-file-view/index.d.ts +0 -1
  39. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -1
  40. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +1 -0
  41. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  42. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +3 -0
  43. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +1 -0
  44. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +9 -0
  45. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  46. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +17 -0
  47. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  48. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
  49. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
  50. package/lib/shared/components/palette/index.d.ts +1 -0
  51. package/lib/shared/components/palette/index.d.ts.map +1 -1
  52. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +4 -0
  53. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
  54. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +1 -1
  55. package/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +1 -1
  56. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts +6 -3
  57. package/lib/shared/components/palette/linked-cases/domain/linked-cases.model.d.ts.map +1 -1
  58. package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts +3 -1
  59. package/lib/shared/components/palette/linked-cases/enums/write-linked-cases-field.enum.d.ts.map +1 -1
  60. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  61. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  62. package/lib/shared/components/palette/palette.module.d.ts +60 -59
  63. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  64. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  65. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  66. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  67. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  68. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  69. package/lib/shared/pipes/index.d.ts +1 -0
  70. package/lib/shared/pipes/index.d.ts.map +1 -1
  71. package/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.d.ts +12 -0
  72. package/lib/shared/pipes/link-cases-from-reason-code/ccd-link-cases-from-reason-code.pipe.d.ts.map +1 -0
  73. package/lib/shared/pipes/link-cases-from-reason-code/index.d.ts +2 -0
  74. package/lib/shared/pipes/link-cases-from-reason-code/index.d.ts.map +1 -0
  75. package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts +2 -1
  76. package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts.map +1 -1
  77. package/lib/shared/pipes/pipes.module.d.ts +3 -2
  78. package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
  79. package/lib/shared/services/form/field-type-sanitiser.d.ts +2 -0
  80. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  81. package/package.json +1 -1
  82. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +0 -106
  83. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +0 -8
  84. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.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 () {
@@ -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);
@@ -3360,9 +3360,12 @@
3360
3360
  }
3361
3361
  Object.defineProperty(CaseField.prototype, "value", {
3362
3362
  get: function () {
3363
- if (this.isDynamic()) {
3363
+ if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3364
3364
  return this._value && this._value.value ? this._value.value.code : this._value;
3365
3365
  }
3366
+ else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
3367
+ return this._value && this._value.value ? this._value.value : this._value;
3368
+ }
3366
3369
  else {
3367
3370
  return this._value;
3368
3371
  }
@@ -3452,7 +3455,7 @@
3452
3455
  };
3453
3456
  CaseField.prototype.isDynamic = function () {
3454
3457
  var _this = this;
3455
- var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
3458
+ var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
3456
3459
  if (!this.field_type) {
3457
3460
  return false;
3458
3461
  }
@@ -5653,6 +5656,9 @@
5653
5656
  }
5654
5657
  caseFields.forEach(function (caseField) {
5655
5658
  switch (caseField.field_type.type) {
5659
+ case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5660
+ _this.convertArrayToDynamicListOutput(caseField, data);
5661
+ break;
5656
5662
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
5657
5663
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
5658
5664
  _this.convertStringToDynamicListOutput(caseField, data);
@@ -5670,6 +5676,17 @@
5670
5676
  }
5671
5677
  });
5672
5678
  };
5679
+ FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
5680
+ var values = data[field.id];
5681
+ if (Array.isArray(values)) {
5682
+ var listItems = this.getListItems(field);
5683
+ var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
5684
+ data[field.id] = {
5685
+ value: matches,
5686
+ list_items: listItems
5687
+ };
5688
+ }
5689
+ };
5673
5690
  FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
5674
5691
  var stringValue = data[field.id];
5675
5692
  if (typeof stringValue === 'string') {
@@ -5700,6 +5717,7 @@
5700
5717
  FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
5701
5718
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
5702
5719
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
5720
+ FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
5703
5721
  FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
5704
5722
  FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
5705
5723
  (function () {
@@ -11012,7 +11030,7 @@
11012
11030
  return AddressOption;
11013
11031
  }());
11014
11032
 
11015
- var _c0$R = ["writeComplexFieldComponent"];
11033
+ var _c0$S = ["writeComplexFieldComponent"];
11016
11034
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11017
11035
  if (rf & 1) {
11018
11036
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11226,7 +11244,7 @@
11226
11244
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11227
11245
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11228
11246
  if (rf & 1) {
11229
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
11247
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
11230
11248
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11231
11249
  }
11232
11250
  if (rf & 2) {
@@ -11409,12 +11427,13 @@
11409
11427
  }
11410
11428
  }
11411
11429
  var CaseFileViewFieldComponent = /** @class */ (function () {
11412
- function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
11430
+ function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService) {
11413
11431
  this.elementRef = elementRef;
11414
11432
  this.route = route;
11415
11433
  this.caseFileViewService = caseFileViewService;
11416
11434
  this.documentManagementService = documentManagementService;
11417
11435
  this.loadingService = loadingService;
11436
+ this.sessionStorageService = sessionStorageService;
11418
11437
  this.allowMoving = true;
11419
11438
  this.getCategoriesAndDocumentsError = false;
11420
11439
  this.errorMessages = [];
@@ -11429,6 +11448,12 @@
11429
11448
  },
11430
11449
  error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
11431
11450
  });
11451
+ // EXUI-8000
11452
+ var userInfo = JSON.parse(this.sessionStorageService.getItem('userDetails'));
11453
+ // Get acls that intersects from acl roles and user roles
11454
+ var acls = this.caseField.acls.filter(function (acl) { return userInfo.roles.includes(acl.role); });
11455
+ // As there can be more than one intersecting role, if any acls are update: true
11456
+ this.allowMoving = acls.some(function (acl) { return acl.update; });
11432
11457
  };
11433
11458
  CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
11434
11459
  var slider = this.elementRef.nativeElement.querySelector('.slider');
@@ -11491,7 +11516,7 @@
11491
11516
  return CaseFileViewFieldComponent;
11492
11517
  }());
11493
11518
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
11494
- 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)); };
11519
+ 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)); };
11495
11520
  CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [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) {
11496
11521
  if (rf & 1) {
11497
11522
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
@@ -11514,132 +11539,7 @@
11514
11539
  templateUrl: './case-file-view-field.component.html',
11515
11540
  styleUrls: ['./case-file-view-field.component.scss'],
11516
11541
  }]
11517
- }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
11518
- })();
11519
-
11520
- function CaseFileViewFieldReadComponent_ng_container_0_li_7_Template(rf, ctx) {
11521
- if (rf & 1) {
11522
- i0__namespace.ɵɵelementStart(0, "li");
11523
- i0__namespace.ɵɵelementStart(1, "a", 8);
11524
- i0__namespace.ɵɵtext(2);
11525
- i0__namespace.ɵɵelementEnd();
11526
- i0__namespace.ɵɵelementEnd();
11527
- }
11528
- if (rf & 2) {
11529
- var errorMessage_r4 = ctx.$implicit;
11530
- i0__namespace.ɵɵadvance(2);
11531
- i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
11532
- }
11533
- }
11534
- function CaseFileViewFieldReadComponent_ng_container_0_Template(rf, ctx) {
11535
- if (rf & 1) {
11536
- i0__namespace.ɵɵelementContainerStart(0);
11537
- i0__namespace.ɵɵelementStart(1, "div", 2);
11538
- i0__namespace.ɵɵelementStart(2, "div", 3);
11539
- i0__namespace.ɵɵelementStart(3, "h2", 4);
11540
- i0__namespace.ɵɵtext(4, " There is a problem ");
11541
- i0__namespace.ɵɵelementEnd();
11542
- i0__namespace.ɵɵelementStart(5, "div", 5);
11543
- i0__namespace.ɵɵelementStart(6, "ul", 6);
11544
- i0__namespace.ɵɵtemplate(7, CaseFileViewFieldReadComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
11545
- i0__namespace.ɵɵelementEnd();
11546
- i0__namespace.ɵɵelementEnd();
11547
- i0__namespace.ɵɵelementEnd();
11548
- i0__namespace.ɵɵelementEnd();
11549
- i0__namespace.ɵɵelementContainerEnd();
11550
- }
11551
- if (rf & 2) {
11552
- var ctx_r0 = i0__namespace.ɵɵnextContext();
11553
- i0__namespace.ɵɵadvance(7);
11554
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
11555
- }
11556
- }
11557
- function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
11558
- if (rf & 1) {
11559
- i0__namespace.ɵɵelementStart(0, "div", 9);
11560
- i0__namespace.ɵɵelementStart(1, "h1", 10);
11561
- i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11562
- i0__namespace.ɵɵelementEnd();
11563
- i0__namespace.ɵɵelementStart(3, "p", 11);
11564
- i0__namespace.ɵɵtext(4, "Try again later.");
11565
- i0__namespace.ɵɵelementEnd();
11566
- i0__namespace.ɵɵelementEnd();
11567
- }
11568
- }
11569
- function CaseFileViewFieldReadComponent_div_2_ng_container_8_Template(rf, ctx) {
11570
- if (rf & 1) {
11571
- i0__namespace.ɵɵelementContainerStart(0);
11572
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
11573
- i0__namespace.ɵɵelementContainerEnd();
11574
- }
11575
- if (rf & 2) {
11576
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
11577
- i0__namespace.ɵɵadvance(1);
11578
- i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11579
- }
11580
- }
11581
- function CaseFileViewFieldReadComponent_div_2_Template(rf, ctx) {
11582
- if (rf & 1) {
11583
- var _r7_1 = i0__namespace.ɵɵgetCurrentView();
11584
- i0__namespace.ɵɵelementStart(0, "div");
11585
- i0__namespace.ɵɵelementStart(1, "h2", 12);
11586
- i0__namespace.ɵɵtext(2, "Case file");
11587
- i0__namespace.ɵɵelementEnd();
11588
- i0__namespace.ɵɵelementStart(3, "div", 13);
11589
- i0__namespace.ɵɵelementStart(4, "div", 14);
11590
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
11591
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldReadComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
11592
- i0__namespace.ɵɵelementEnd();
11593
- i0__namespace.ɵɵelementEnd();
11594
- i0__namespace.ɵɵelement(6, "div", 16);
11595
- i0__namespace.ɵɵelementStart(7, "div", 17);
11596
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
11597
- i0__namespace.ɵɵelementEnd();
11598
- i0__namespace.ɵɵelementEnd();
11599
- i0__namespace.ɵɵelementEnd();
11600
- }
11601
- if (rf & 2) {
11602
- var ctx_r2 = i0__namespace.ɵɵnextContext();
11603
- i0__namespace.ɵɵadvance(5);
11604
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
11605
- i0__namespace.ɵɵadvance(3);
11606
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
11607
- }
11608
- }
11609
- var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
11610
- __extends(CaseFileViewFieldReadComponent, _super);
11611
- function CaseFileViewFieldReadComponent() {
11612
- var _this = _super.apply(this, __spread(arguments)) || this;
11613
- _this.allowMoving = false;
11614
- return _this;
11615
- }
11616
- return CaseFileViewFieldReadComponent;
11617
- }(CaseFileViewFieldComponent));
11618
- CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
11619
- CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [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) {
11620
- if (rf & 1) {
11621
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
11622
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 5, 0, "div", 1);
11623
- i0__namespace.ɵɵtemplate(2, CaseFileViewFieldReadComponent_div_2_Template, 9, 3, "div", 0);
11624
- }
11625
- if (rf & 2) {
11626
- i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
11627
- i0__namespace.ɵɵadvance(1);
11628
- i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11629
- i0__namespace.ɵɵadvance(1);
11630
- i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
11631
- }
11632
- }, 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}"] });
11633
- var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
11634
- (function () {
11635
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
11636
- type: i0.Component,
11637
- args: [{
11638
- selector: 'ccd-case-file-view-field',
11639
- templateUrl: './case-file-view-field.component.html',
11640
- styleUrls: ['./case-file-view-field.component.scss'],
11641
- }]
11642
- }], null, null);
11542
+ }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }]; }, null);
11643
11543
  })();
11644
11544
 
11645
11545
  exports.AddCommentsErrorMessage = void 0;
@@ -11994,7 +11894,7 @@
11994
11894
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
11995
11895
  }
11996
11896
  }
11997
- var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
11897
+ var _c0$R = function (a0) { return { "form-group-error": a0 }; };
11998
11898
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
11999
11899
  if (rf & 1) {
12000
11900
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12015,7 +11915,7 @@
12015
11915
  i0__namespace.ɵɵadvance(1);
12016
11916
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12017
11917
  i0__namespace.ɵɵadvance(1);
12018
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
11918
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
12019
11919
  i0__namespace.ɵɵadvance(1);
12020
11920
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
12021
11921
  i0__namespace.ɵɵadvance(1);
@@ -12491,7 +12391,7 @@
12491
12391
  }], null, null);
12492
12392
  })();
12493
12393
 
12494
- var _c0$P = ["writeComplexFieldComponent"];
12394
+ var _c0$Q = ["writeComplexFieldComponent"];
12495
12395
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12496
12396
  if (rf & 1) {
12497
12397
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12596,7 +12496,7 @@
12596
12496
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12597
12497
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12598
12498
  if (rf & 1) {
12599
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
12499
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
12600
12500
  }
12601
12501
  if (rf & 2) {
12602
12502
  var _t = void 0;
@@ -12641,7 +12541,7 @@
12641
12541
  }] });
12642
12542
  })();
12643
12543
 
12644
- 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 }; };
12544
+ 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 }; };
12645
12545
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12646
12546
  if (rf & 1) {
12647
12547
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12656,7 +12556,7 @@
12656
12556
  if (rf & 2) {
12657
12557
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12658
12558
  i0__namespace.ɵɵadvance(4);
12659
- 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);
12559
+ 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);
12660
12560
  }
12661
12561
  }
12662
12562
  var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -12807,7 +12707,7 @@
12807
12707
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
12808
12708
  })();
12809
12709
 
12810
- var _c0$N = ["collectionItem"];
12710
+ var _c0$O = ["collectionItem"];
12811
12711
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
12812
12712
  if (rf & 1) {
12813
12713
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13049,6 +12949,11 @@
13049
12949
  // Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
13050
12950
  this.formArray.setErrors(null);
13051
12951
  var item = { value: null };
12952
+ if (this.isCollectionDynamic()) {
12953
+ item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
12954
+ var key = Number(item['id'][item['id'].length - 1]) + 1;
12955
+ item.id = item['id'].replace(/.$/, key.toString());
12956
+ }
13052
12957
  this.caseField.value.push(item);
13053
12958
  var index = this.caseField.value.length - 1;
13054
12959
  var caseField = this.buildCaseField(item, index, true);
@@ -13071,6 +12976,12 @@
13071
12976
  setTimeout(function () { return _this.focusLastItem(); });
13072
12977
  }
13073
12978
  };
12979
+ WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
12980
+ if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
12981
+ return false;
12982
+ }
12983
+ return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
12984
+ };
13074
12985
  WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
13075
12986
  if (isNew === void 0) { isNew = false; }
13076
12987
  var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
@@ -13220,7 +13131,7 @@
13220
13131
  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)); };
13221
13132
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13222
13133
  if (rf & 1) {
13223
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
13134
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
13224
13135
  }
13225
13136
  if (rf & 2) {
13226
13137
  var _t = void 0;
@@ -13914,7 +13825,7 @@
13914
13825
  }], null, null);
13915
13826
  })();
13916
13827
 
13917
- var _c0$M = ["fileInput"];
13828
+ var _c0$N = ["fileInput"];
13918
13829
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
13919
13830
  if (rf & 1) {
13920
13831
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14208,7 +14119,7 @@
14208
14119
  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)); };
14209
14120
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14210
14121
  if (rf & 1) {
14211
- i0__namespace.ɵɵviewQuery(_c0$M, 1);
14122
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
14212
14123
  }
14213
14124
  if (rf & 2) {
14214
14125
  var _t = void 0;
@@ -14408,7 +14319,7 @@
14408
14319
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14409
14320
  }
14410
14321
  }
14411
- var _c0$L = function (a0) { return { "form-group-error": a0 }; };
14322
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
14412
14323
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14413
14324
  __extends(WriteDynamicListFieldComponent, _super);
14414
14325
  function WriteDynamicListFieldComponent() {
@@ -14457,7 +14368,7 @@
14457
14368
  i0__namespace.ɵɵelementEnd();
14458
14369
  }
14459
14370
  if (rf & 2) {
14460
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14371
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14461
14372
  i0__namespace.ɵɵadvance(1);
14462
14373
  i0__namespace.ɵɵproperty("for", ctx.id());
14463
14374
  i0__namespace.ɵɵadvance(1);
@@ -14607,7 +14518,7 @@
14607
14518
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14608
14519
  }
14609
14520
  }
14610
- var _c0$K = function (a0) { return { selected: a0 }; };
14521
+ var _c0$L = function (a0) { return { selected: a0 }; };
14611
14522
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14612
14523
  if (rf & 1) {
14613
14524
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14620,12 +14531,11 @@
14620
14531
  if (rf & 2) {
14621
14532
  var radioButton_r5 = ctx.$implicit;
14622
14533
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14623
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14534
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14624
14535
  i0__namespace.ɵɵadvance(1);
14625
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14626
- i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14536
+ 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);
14627
14537
  i0__namespace.ɵɵadvance(1);
14628
- i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
14538
+ i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
14629
14539
  i0__namespace.ɵɵadvance(1);
14630
14540
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14631
14541
  }
@@ -14654,8 +14564,8 @@
14654
14564
  this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
14655
14565
  this.dynamicRadioListControl.setValue(this.caseField.value);
14656
14566
  };
14657
- WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
14658
- return this.id() + "-" + name;
14567
+ WriteDynamicRadioListFieldComponent.prototype.createElementId = function (name) {
14568
+ return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : _super.prototype.createElementId.call(this, name);
14659
14569
  };
14660
14570
  return WriteDynamicRadioListFieldComponent;
14661
14571
  }(AbstractFieldWriteComponent));
@@ -14785,7 +14695,7 @@
14785
14695
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
14786
14696
  }
14787
14697
  }
14788
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14698
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
14789
14699
  var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
14790
14700
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
14791
14701
  __extends(WriteEmailFieldComponent, _super);
@@ -14810,7 +14720,7 @@
14810
14720
  i0__namespace.ɵɵelementEnd();
14811
14721
  }
14812
14722
  if (rf & 2) {
14813
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14723
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14814
14724
  i0__namespace.ɵɵadvance(1);
14815
14725
  i0__namespace.ɵɵproperty("for", ctx.id());
14816
14726
  i0__namespace.ɵɵadvance(1);
@@ -14942,7 +14852,7 @@
14942
14852
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
14943
14853
  }
14944
14854
  }
14945
- var _c0$I = function (a0) { return { "form-group-error": a0 }; };
14855
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14946
14856
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
14947
14857
  __extends(WriteFixedListFieldComponent, _super);
14948
14858
  function WriteFixedListFieldComponent() {
@@ -14991,7 +14901,7 @@
14991
14901
  i0__namespace.ɵɵelementEnd();
14992
14902
  }
14993
14903
  if (rf & 2) {
14994
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
14904
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
14995
14905
  i0__namespace.ɵɵadvance(1);
14996
14906
  i0__namespace.ɵɵproperty("for", ctx.id());
14997
14907
  i0__namespace.ɵɵadvance(1);
@@ -15109,7 +15019,7 @@
15109
15019
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15110
15020
  }
15111
15021
  }
15112
- var _c0$H = function (a0) { return { selected: a0 }; };
15022
+ var _c0$I = function (a0) { return { selected: a0 }; };
15113
15023
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15114
15024
  if (rf & 1) {
15115
15025
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15122,7 +15032,7 @@
15122
15032
  if (rf & 2) {
15123
15033
  var radioButton_r4 = ctx.$implicit;
15124
15034
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15125
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15035
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15126
15036
  i0__namespace.ɵɵadvance(1);
15127
15037
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15128
15038
  i0__namespace.ɵɵadvance(1);
@@ -15292,7 +15202,7 @@
15292
15202
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15293
15203
  }
15294
15204
  }
15295
- var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
15205
+ var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
15296
15206
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15297
15207
  if (rf & 1) {
15298
15208
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15304,7 +15214,7 @@
15304
15214
  if (rf & 2) {
15305
15215
  var judicialUser_r5 = ctx.$implicit;
15306
15216
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15307
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15217
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15308
15218
  i0__namespace.ɵɵadvance(1);
15309
15219
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15310
15220
  }
@@ -15460,6 +15370,8 @@
15460
15370
  LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
15461
15371
  LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
15462
15372
  LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
15373
+ LinkedCasesErrorMessages["otherDescriptionError"] = "Provide a description of the reason";
15374
+ LinkedCasesErrorMessages["otherDescriptionMaxLengthError"] = "Description provided must be 100 characters or fewer";
15463
15375
  })(exports.LinkedCasesErrorMessages || (exports.LinkedCasesErrorMessages = {}));
15464
15376
  exports.LinkedCasesEventTriggers = void 0;
15465
15377
  (function (LinkedCasesEventTriggers) {
@@ -15510,6 +15422,7 @@
15510
15422
  };
15511
15423
  };
15512
15424
  LinkedCasesService.prototype.mapResponse = function (esSearchCasesResponse) {
15425
+ var _a;
15513
15426
  var caseInfo = this.caseFieldValue.find(function (item) { return item.value && item.value.CaseReference === esSearchCasesResponse.case_id; });
15514
15427
  return caseInfo && {
15515
15428
  caseReference: esSearchCasesResponse.case_id,
@@ -15517,8 +15430,7 @@
15517
15430
  caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
15518
15431
  service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
15519
15432
  state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
15520
- reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
15521
- caseInfo.value.ReasonForLink.map(function (reason) { return reason.value && reason.value.Reason; }),
15433
+ reasons: (_a = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.value) === null || _a === void 0 ? void 0 : _a.ReasonForLink
15522
15434
  };
15523
15435
  };
15524
15436
  LinkedCasesService.prototype.searchCasesByCaseIds = function (searchCasesResponse) {
@@ -15550,7 +15462,7 @@
15550
15462
  unlink: false,
15551
15463
  reasons: item.reasons && item.reasons.map(function (reason) {
15552
15464
  return {
15553
- reasonCode: reason
15465
+ Reason: reason
15554
15466
  };
15555
15467
  }),
15556
15468
  };
@@ -15811,6 +15723,32 @@
15811
15723
  i0__namespace.ɵɵelement(0, "th", 8);
15812
15724
  }
15813
15725
  }
15726
+ function CheckYourAnswersComponent_tr_17_span_8_span_1_Template(rf, ctx) {
15727
+ if (rf & 1) {
15728
+ i0__namespace.ɵɵelementStart(0, "span");
15729
+ i0__namespace.ɵɵtext(1);
15730
+ i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
15731
+ i0__namespace.ɵɵelementEnd();
15732
+ }
15733
+ if (rf & 2) {
15734
+ var reason_r12 = i0__namespace.ɵɵnextContext().$implicit;
15735
+ i0__namespace.ɵɵadvance(1);
15736
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, reason_r12), " ");
15737
+ }
15738
+ }
15739
+ function CheckYourAnswersComponent_tr_17_span_8_span_2_Template(rf, ctx) {
15740
+ if (rf & 1) {
15741
+ i0__namespace.ɵɵelementStart(0, "span");
15742
+ i0__namespace.ɵɵtext(1);
15743
+ i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
15744
+ i0__namespace.ɵɵelementEnd();
15745
+ }
15746
+ if (rf & 2) {
15747
+ var reason_r12 = i0__namespace.ɵɵnextContext().$implicit;
15748
+ i0__namespace.ɵɵadvance(1);
15749
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, reason_r12.Reason.value), " ");
15750
+ }
15751
+ }
15814
15752
  function CheckYourAnswersComponent_tr_17_span_8_br_3_Template(rf, ctx) {
15815
15753
  if (rf & 1) {
15816
15754
  i0__namespace.ɵɵelement(0, "br");
@@ -15819,26 +15757,28 @@
15819
15757
  function CheckYourAnswersComponent_tr_17_span_8_Template(rf, ctx) {
15820
15758
  if (rf & 1) {
15821
15759
  i0__namespace.ɵɵelementStart(0, "span");
15822
- i0__namespace.ɵɵtext(1);
15823
- i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
15760
+ i0__namespace.ɵɵtemplate(1, CheckYourAnswersComponent_tr_17_span_8_span_1_Template, 3, 3, "span", 19);
15761
+ i0__namespace.ɵɵtemplate(2, CheckYourAnswersComponent_tr_17_span_8_span_2_Template, 3, 3, "span", 19);
15824
15762
  i0__namespace.ɵɵtemplate(3, CheckYourAnswersComponent_tr_17_span_8_br_3_Template, 1, 0, "br", 19);
15825
15763
  i0__namespace.ɵɵelementEnd();
15826
15764
  }
15827
15765
  if (rf & 2) {
15828
- var reason_r12 = ctx.$implicit;
15829
15766
  var isLast_r13 = ctx.last;
15767
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
15768
+ i0__namespace.ɵɵadvance(1);
15769
+ i0__namespace.ɵɵproperty("ngIf", ctx_r10.isLinkCasesJourney);
15770
+ i0__namespace.ɵɵadvance(1);
15771
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r10.isLinkCasesJourney);
15830
15772
  i0__namespace.ɵɵadvance(1);
15831
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, reason_r12.reasonCode), "");
15832
- i0__namespace.ɵɵadvance(2);
15833
15773
  i0__namespace.ɵɵproperty("ngIf", !isLast_r13);
15834
15774
  }
15835
15775
  }
15836
15776
  function CheckYourAnswersComponent_tr_17_td_10_Template(rf, ctx) {
15837
15777
  if (rf & 1) {
15838
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
15778
+ var _r20_1 = i0__namespace.ɵɵgetCurrentView();
15839
15779
  i0__namespace.ɵɵelementStart(0, "td", 14);
15840
15780
  i0__namespace.ɵɵelementStart(1, "a", 15);
15841
- i0__namespace.ɵɵlistener("click", function CheckYourAnswersComponent_tr_17_td_10_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.onChange(); });
15781
+ i0__namespace.ɵɵlistener("click", function CheckYourAnswersComponent_tr_17_td_10_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.onChange(); });
15842
15782
  i0__namespace.ɵɵtext(2, "Change");
15843
15783
  i0__namespace.ɵɵelementEnd();
15844
15784
  i0__namespace.ɵɵelementEnd();
@@ -15856,7 +15796,7 @@
15856
15796
  i0__namespace.ɵɵelementEnd();
15857
15797
  i0__namespace.ɵɵelementEnd();
15858
15798
  i0__namespace.ɵɵelementStart(7, "td", 14);
15859
- i0__namespace.ɵɵtemplate(8, CheckYourAnswersComponent_tr_17_span_8_Template, 4, 4, "span", 17);
15799
+ i0__namespace.ɵɵtemplate(8, CheckYourAnswersComponent_tr_17_span_8_Template, 4, 3, "span", 17);
15860
15800
  i0__namespace.ɵɵelementEnd();
15861
15801
  i0__namespace.ɵɵelement(9, "td", 14);
15862
15802
  i0__namespace.ɵɵtemplate(10, CheckYourAnswersComponent_tr_17_td_10_Template, 3, 0, "td", 18);
@@ -15996,8 +15936,8 @@
15996
15936
 
15997
15937
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) {
15998
15938
  if (rf & 1) {
15999
- i0__namespace.ɵɵelementStart(0, "span", 28);
16000
- i0__namespace.ɵɵelementStart(1, "span", 29);
15939
+ i0__namespace.ɵɵelementStart(0, "span", 30);
15940
+ i0__namespace.ɵɵelementStart(1, "span", 31);
16001
15941
  i0__namespace.ɵɵtext(2, "Error:");
16002
15942
  i0__namespace.ɵɵelementEnd();
16003
15943
  i0__namespace.ɵɵtext(3);
@@ -16009,10 +15949,10 @@
16009
15949
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.caseNumberError, " ");
16010
15950
  }
16011
15951
  }
16012
- function LinkCasesComponent_div_8_span_10_Template(rf, ctx) {
15952
+ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) {
16013
15953
  if (rf & 1) {
16014
- i0__namespace.ɵɵelementStart(0, "span", 28);
16015
- i0__namespace.ɵɵelementStart(1, "span", 29);
15954
+ i0__namespace.ɵɵelementStart(0, "span", 30);
15955
+ i0__namespace.ɵɵelementStart(1, "span", 31);
16016
15956
  i0__namespace.ɵɵtext(2, "Error:");
16017
15957
  i0__namespace.ɵɵelementEnd();
16018
15958
  i0__namespace.ɵɵtext(3);
@@ -16024,95 +15964,140 @@
16024
15964
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r5.caseReasonError, " ");
16025
15965
  }
16026
15966
  }
16027
- function LinkCasesComponent_div_8_div_12_Template(rf, ctx) {
15967
+ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) {
16028
15968
  if (rf & 1) {
16029
- i0__namespace.ɵɵelementStart(0, "div", 30);
16030
- i0__namespace.ɵɵelement(1, "input", 31);
16031
- i0__namespace.ɵɵelementStart(2, "label", 32);
15969
+ var _r12_1 = i0__namespace.ɵɵgetCurrentView();
15970
+ i0__namespace.ɵɵelementStart(0, "div", 32);
15971
+ i0__namespace.ɵɵelementStart(1, "input", 33);
15972
+ i0__namespace.ɵɵlistener("change", function LinkCasesComponent_div_8_div_13_Template_input_change_1_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.toggleLinkCaseReasonOtherComments($event); });
15973
+ i0__namespace.ɵɵelementEnd();
15974
+ i0__namespace.ɵɵelementStart(2, "label", 34);
16032
15975
  i0__namespace.ɵɵtext(3);
16033
15976
  i0__namespace.ɵɵelementEnd();
16034
15977
  i0__namespace.ɵɵelementEnd();
16035
15978
  }
16036
15979
  if (rf & 2) {
16037
- var reason_r8 = ctx.$implicit;
16038
- var pos_r9 = ctx.index;
16039
- i0__namespace.ɵɵproperty("formGroupName", pos_r9);
15980
+ var reason_r9 = ctx.$implicit;
15981
+ var pos_r10 = ctx.index;
15982
+ i0__namespace.ɵɵproperty("formGroupName", pos_r10);
16040
15983
  i0__namespace.ɵɵadvance(1);
16041
- i0__namespace.ɵɵpropertyInterpolate("id", reason_r8.key);
16042
- i0__namespace.ɵɵproperty("value", reason_r8.value_en);
15984
+ i0__namespace.ɵɵpropertyInterpolate("id", reason_r9.key);
15985
+ i0__namespace.ɵɵproperty("value", reason_r9.value_en);
16043
15986
  i0__namespace.ɵɵadvance(1);
16044
- i0__namespace.ɵɵpropertyInterpolate("for", reason_r8.key);
15987
+ i0__namespace.ɵɵpropertyInterpolate("for", reason_r9.key);
16045
15988
  i0__namespace.ɵɵadvance(1);
16046
- i0__namespace.ɵɵtextInterpolate(reason_r8.value_en);
15989
+ i0__namespace.ɵɵtextInterpolate(reason_r9.value_en);
16047
15990
  }
16048
15991
  }
16049
- function LinkCasesComponent_div_8_span_15_Template(rf, ctx) {
15992
+ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) {
16050
15993
  if (rf & 1) {
16051
- i0__namespace.ɵɵelementStart(0, "span", 28);
16052
- i0__namespace.ɵɵelementStart(1, "span", 29);
15994
+ i0__namespace.ɵɵelementStart(0, "span", 30);
15995
+ i0__namespace.ɵɵelementStart(1, "span", 31);
16053
15996
  i0__namespace.ɵɵtext(2, "Error:");
16054
15997
  i0__namespace.ɵɵelementEnd();
16055
15998
  i0__namespace.ɵɵtext(3);
16056
15999
  i0__namespace.ɵɵelementEnd();
16057
16000
  }
16001
+ if (rf & 2) {
16002
+ var ctx_r13 = i0__namespace.ɵɵnextContext(3);
16003
+ i0__namespace.ɵɵadvance(3);
16004
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
16005
+ }
16006
+ }
16007
+ var _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
16008
+ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
16009
+ if (rf & 1) {
16010
+ i0__namespace.ɵɵelementStart(0, "div", 35);
16011
+ i0__namespace.ɵɵelementStart(1, "h3", 22);
16012
+ i0__namespace.ɵɵtext(2, "Comments");
16013
+ i0__namespace.ɵɵelementEnd();
16014
+ i0__namespace.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
16015
+ i0__namespace.ɵɵelementStart(4, "textarea", 36);
16016
+ i0__namespace.ɵɵtext(5, " ");
16017
+ i0__namespace.ɵɵelementEnd();
16018
+ i0__namespace.ɵɵelementStart(6, "div", 37);
16019
+ i0__namespace.ɵɵtext(7, " You can enter up to 100 characters ");
16020
+ i0__namespace.ɵɵelementEnd();
16021
+ i0__namespace.ɵɵelementEnd();
16022
+ }
16058
16023
  if (rf & 2) {
16059
16024
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
16025
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
16060
16026
  i0__namespace.ɵɵadvance(3);
16061
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.caseSelectionError, " ");
16027
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
16028
+ }
16029
+ }
16030
+ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) {
16031
+ if (rf & 1) {
16032
+ i0__namespace.ɵɵelementStart(0, "span", 30);
16033
+ i0__namespace.ɵɵelementStart(1, "span", 31);
16034
+ i0__namespace.ɵɵtext(2, "Error:");
16035
+ i0__namespace.ɵɵelementEnd();
16036
+ i0__namespace.ɵɵtext(3);
16037
+ i0__namespace.ɵɵelementEnd();
16038
+ }
16039
+ if (rf & 2) {
16040
+ var ctx_r8 = i0__namespace.ɵɵnextContext(2);
16041
+ i0__namespace.ɵɵadvance(3);
16042
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.caseSelectionError, " ");
16062
16043
  }
16063
16044
  }
16064
- var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
16065
16045
  function LinkCasesComponent_div_8_Template(rf, ctx) {
16066
16046
  if (rf & 1) {
16067
- var _r11_1 = i0__namespace.ɵɵgetCurrentView();
16047
+ var _r15_1 = i0__namespace.ɵɵgetCurrentView();
16068
16048
  i0__namespace.ɵɵelementStart(0, "div", 21);
16069
- i0__namespace.ɵɵelementStart(1, "h3", 22);
16070
- i0__namespace.ɵɵtext(2, "Enter case reference");
16049
+ i0__namespace.ɵɵelementStart(1, "div", 5);
16050
+ i0__namespace.ɵɵelementStart(2, "h3", 22);
16051
+ i0__namespace.ɵɵtext(3, "Enter case reference");
16071
16052
  i0__namespace.ɵɵelementEnd();
16072
- i0__namespace.ɵɵelementStart(3, "div", 5);
16073
16053
  i0__namespace.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
16074
16054
  i0__namespace.ɵɵelement(5, "input", 23);
16075
16055
  i0__namespace.ɵɵelementEnd();
16076
- i0__namespace.ɵɵelementStart(6, "h3", 22);
16077
- i0__namespace.ɵɵtext(7, "Why should these cases be linked?");
16056
+ i0__namespace.ɵɵelementStart(6, "div", 24);
16057
+ i0__namespace.ɵɵelementStart(7, "h3", 22);
16058
+ i0__namespace.ɵɵtext(8, "Why should these cases be linked?");
16059
+ i0__namespace.ɵɵelementEnd();
16060
+ i0__namespace.ɵɵelementStart(9, "div", 25);
16061
+ i0__namespace.ɵɵtext(10, " Select all that apply. ");
16078
16062
  i0__namespace.ɵɵelementEnd();
16079
- i0__namespace.ɵɵelementStart(8, "div", 24);
16080
- i0__namespace.ɵɵtext(9, " Select all that apply. ");
16063
+ i0__namespace.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
16064
+ i0__namespace.ɵɵelementStart(12, "div", 26);
16065
+ i0__namespace.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 27);
16081
16066
  i0__namespace.ɵɵelementEnd();
16082
- i0__namespace.ɵɵtemplate(10, LinkCasesComponent_div_8_span_10_Template, 4, 1, "span", 6);
16083
- i0__namespace.ɵɵelementStart(11, "div", 25);
16084
- i0__namespace.ɵɵtemplate(12, LinkCasesComponent_div_8_div_12_Template, 4, 5, "div", 26);
16085
16067
  i0__namespace.ɵɵelementEnd();
16086
- i0__namespace.ɵɵelement(13, "br");
16087
- i0__namespace.ɵɵelement(14, "br");
16088
- i0__namespace.ɵɵtemplate(15, LinkCasesComponent_div_8_span_15_Template, 4, 1, "span", 6);
16089
- i0__namespace.ɵɵelementStart(16, "button", 27);
16090
- i0__namespace.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.submitCaseInfo(); });
16091
- i0__namespace.ɵɵtext(17, "Propose case link");
16068
+ i0__namespace.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 28);
16069
+ i0__namespace.ɵɵelement(15, "br");
16070
+ i0__namespace.ɵɵelement(16, "br");
16071
+ i0__namespace.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
16072
+ i0__namespace.ɵɵelementStart(18, "button", 29);
16073
+ i0__namespace.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_18_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.submitCaseInfo(); });
16074
+ i0__namespace.ɵɵtext(19, "Propose case link");
16092
16075
  i0__namespace.ɵɵelementEnd();
16093
16076
  i0__namespace.ɵɵelementEnd();
16094
16077
  }
16095
16078
  if (rf & 2) {
16096
16079
  var ctx_r0 = i0__namespace.ɵɵnextContext();
16097
16080
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
16098
- i0__namespace.ɵɵadvance(3);
16099
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$F, !!ctx_r0.caseNumberError));
16100
16081
  i0__namespace.ɵɵadvance(1);
16082
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
16083
+ i0__namespace.ɵɵadvance(3);
16101
16084
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
16102
- i0__namespace.ɵɵadvance(6);
16085
+ i0__namespace.ɵɵadvance(2);
16086
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
16087
+ i0__namespace.ɵɵadvance(5);
16103
16088
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
16104
- i0__namespace.ɵɵadvance(1);
16105
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx_r0.caseReasonError));
16106
- i0__namespace.ɵɵadvance(1);
16089
+ i0__namespace.ɵɵadvance(2);
16107
16090
  i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
16091
+ i0__namespace.ɵɵadvance(1);
16092
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.showComments);
16108
16093
  i0__namespace.ɵɵadvance(3);
16109
16094
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
16110
16095
  }
16111
16096
  }
16112
16097
  function LinkCasesComponent_span_13_Template(rf, ctx) {
16113
16098
  if (rf & 1) {
16114
- i0__namespace.ɵɵelementStart(0, "span", 28);
16115
- i0__namespace.ɵɵelementStart(1, "span", 29);
16099
+ i0__namespace.ɵɵelementStart(0, "span", 30);
16100
+ i0__namespace.ɵɵelementStart(1, "span", 31);
16116
16101
  i0__namespace.ɵɵtext(2, "Error:");
16117
16102
  i0__namespace.ɵɵelementEnd();
16118
16103
  i0__namespace.ɵɵtext(3);
@@ -16133,18 +16118,18 @@
16133
16118
  i0__namespace.ɵɵelementEnd();
16134
16119
  }
16135
16120
  if (rf & 2) {
16136
- var reason_r15 = ctx.$implicit;
16121
+ var reason_r19 = ctx.$implicit;
16137
16122
  i0__namespace.ɵɵadvance(1);
16138
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, reason_r15.reasonCode));
16123
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, reason_r19));
16139
16124
  }
16140
16125
  }
16141
16126
  var _c1$f = function (a0) { return { "table-group-error": a0 }; };
16142
16127
  function LinkCasesComponent_tr_31_Template(rf, ctx) {
16143
16128
  if (rf & 1) {
16144
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
16129
+ var _r21_1 = i0__namespace.ɵɵgetCurrentView();
16145
16130
  i0__namespace.ɵɵelementStart(0, "tr", 10);
16146
- i0__namespace.ɵɵelementStart(1, "td", 33);
16147
- i0__namespace.ɵɵelement(2, "div", 34);
16131
+ i0__namespace.ɵɵelementStart(1, "td", 38);
16132
+ i0__namespace.ɵɵelement(2, "div", 39);
16148
16133
  i0__namespace.ɵɵelementStart(3, "span");
16149
16134
  i0__namespace.ɵɵtext(4);
16150
16135
  i0__namespace.ɵɵelement(5, "br");
@@ -16152,55 +16137,55 @@
16152
16137
  i0__namespace.ɵɵpipe(7, "ccdCaseReference");
16153
16138
  i0__namespace.ɵɵelementEnd();
16154
16139
  i0__namespace.ɵɵelementEnd();
16155
- i0__namespace.ɵɵelementStart(8, "td", 35);
16140
+ i0__namespace.ɵɵelementStart(8, "td", 40);
16156
16141
  i0__namespace.ɵɵtext(9);
16157
16142
  i0__namespace.ɵɵelementEnd();
16158
- i0__namespace.ɵɵelementStart(10, "td", 33);
16143
+ i0__namespace.ɵɵelementStart(10, "td", 38);
16159
16144
  i0__namespace.ɵɵtext(11);
16160
16145
  i0__namespace.ɵɵelementEnd();
16161
- i0__namespace.ɵɵelementStart(12, "td", 35);
16146
+ i0__namespace.ɵɵelementStart(12, "td", 40);
16162
16147
  i0__namespace.ɵɵtext(13);
16163
16148
  i0__namespace.ɵɵelementEnd();
16164
- i0__namespace.ɵɵelementStart(14, "td", 33);
16165
- i0__namespace.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 36);
16149
+ i0__namespace.ɵɵelementStart(14, "td", 38);
16150
+ i0__namespace.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 41);
16166
16151
  i0__namespace.ɵɵelementEnd();
16167
- i0__namespace.ɵɵelementStart(16, "td", 33);
16168
- i0__namespace.ɵɵelementStart(17, "a", 37);
16169
- i0__namespace.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var pos_r13 = ctx.index; var case_r12 = ctx.$implicit; var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onSelectedLinkedCaseRemove(pos_r13, case_r12.caseReference); });
16152
+ i0__namespace.ɵɵelementStart(16, "td", 38);
16153
+ i0__namespace.ɵɵelementStart(17, "a", 42);
16154
+ i0__namespace.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var pos_r17 = ctx.index; var case_r16 = ctx.$implicit; var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.onSelectedLinkedCaseRemove(pos_r17, case_r16.caseReference); });
16170
16155
  i0__namespace.ɵɵtext(18, "Remove");
16171
16156
  i0__namespace.ɵɵelementEnd();
16172
16157
  i0__namespace.ɵɵelementEnd();
16173
16158
  i0__namespace.ɵɵelementEnd();
16174
16159
  }
16175
16160
  if (rf & 2) {
16176
- var case_r12 = ctx.$implicit;
16161
+ var case_r16 = ctx.$implicit;
16177
16162
  var ctx_r2 = i0__namespace.ɵɵnextContext();
16178
16163
  i0__namespace.ɵɵadvance(2);
16179
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r12.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
16164
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
16180
16165
  i0__namespace.ɵɵadvance(2);
16181
- i0__namespace.ɵɵtextInterpolate1("", case_r12.caseName, " ");
16166
+ i0__namespace.ɵɵtextInterpolate1("", case_r16.caseName, " ");
16182
16167
  i0__namespace.ɵɵadvance(2);
16183
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 10, case_r12.caseReference), "");
16168
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 10, case_r16.caseReference), "");
16184
16169
  i0__namespace.ɵɵadvance(2);
16185
- i0__namespace.ɵɵproperty("title", case_r12.caseTypeDescription);
16170
+ i0__namespace.ɵɵproperty("title", case_r16.caseTypeDescription);
16186
16171
  i0__namespace.ɵɵadvance(1);
16187
- i0__namespace.ɵɵtextInterpolate(case_r12.caseType);
16172
+ i0__namespace.ɵɵtextInterpolate(case_r16.caseType);
16188
16173
  i0__namespace.ɵɵadvance(2);
16189
- i0__namespace.ɵɵtextInterpolate(case_r12.caseService);
16174
+ i0__namespace.ɵɵtextInterpolate(case_r16.caseService);
16190
16175
  i0__namespace.ɵɵadvance(1);
16191
- i0__namespace.ɵɵproperty("title", case_r12.caseStateDescription);
16176
+ i0__namespace.ɵɵproperty("title", case_r16.caseStateDescription);
16192
16177
  i0__namespace.ɵɵadvance(1);
16193
- i0__namespace.ɵɵtextInterpolate(case_r12.caseState);
16178
+ i0__namespace.ɵɵtextInterpolate(case_r16.caseState);
16194
16179
  i0__namespace.ɵɵadvance(2);
16195
- i0__namespace.ɵɵproperty("ngForOf", case_r12.reasons);
16180
+ i0__namespace.ɵɵproperty("ngForOf", case_r16.reasons);
16196
16181
  i0__namespace.ɵɵadvance(2);
16197
- i0__namespace.ɵɵattribute("id", case_r12.caseReference);
16182
+ i0__namespace.ɵɵattribute("id", case_r16.caseReference);
16198
16183
  }
16199
16184
  }
16200
16185
  function LinkCasesComponent_tr_32_Template(rf, ctx) {
16201
16186
  if (rf & 1) {
16202
16187
  i0__namespace.ɵɵelementStart(0, "tr", 10);
16203
- i0__namespace.ɵɵelementStart(1, "td", 38);
16188
+ i0__namespace.ɵɵelementStart(1, "td", 43);
16204
16189
  i0__namespace.ɵɵtext(2, " None ");
16205
16190
  i0__namespace.ɵɵelementEnd();
16206
16191
  i0__namespace.ɵɵelementEnd();
@@ -16215,7 +16200,7 @@
16215
16200
  this.linkedCasesStateEmitter = new i0.EventEmitter();
16216
16201
  this.errorMessages = [];
16217
16202
  this.selectedCases = [];
16218
- this.linkCaseReasons = [];
16203
+ this.showComments = false;
16219
16204
  this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
16220
16205
  }
16221
16206
  LinkCasesComponent.prototype.ngOnInit = function () {
@@ -16235,6 +16220,7 @@
16235
16220
  this.linkCaseForm = this.fb.group({
16236
16221
  caseNumber: ['', [i2.Validators.minLength(16), this.validatorsUtils.regexPattern(exports.Patterns.CASE_REF)]],
16237
16222
  reasonType: this.getReasonTypeFormArray,
16223
+ otherDescription: ['', [i2.Validators.maxLength(100)]]
16238
16224
  });
16239
16225
  };
16240
16226
  Object.defineProperty(LinkCasesComponent.prototype, "getReasonTypeFormArray", {
@@ -16254,16 +16240,22 @@
16254
16240
  enumerable: false,
16255
16241
  configurable: true
16256
16242
  });
16243
+ LinkCasesComponent.prototype.toggleLinkCaseReasonOtherComments = function (event) {
16244
+ this.linkCaseReasons.find(function (reason) { return reason.value_en === event.target.value; }).selected = event.target.checked;
16245
+ this.showComments = this.linkCaseReasons.find(function (reason) { return reason.value_en === 'Other'; }).selected;
16246
+ };
16257
16247
  LinkCasesComponent.prototype.submitCaseInfo = function () {
16258
16248
  this.errorMessages = [];
16259
16249
  this.caseReasonError = null;
16250
+ this.caseReasonCommentsError = null;
16260
16251
  this.caseNumberError = null;
16261
16252
  this.caseSelectionError = null;
16262
16253
  this.noSelectedCaseError = null;
16263
16254
  if (this.linkCaseForm.valid &&
16264
16255
  !this.isCaseSelected(this.selectedCases) &&
16265
16256
  !this.isCaseSelected(this.linkedCasesService.linkedCases) &&
16266
- !this.isCaseSelectedSameAsCurrentCase()) {
16257
+ !this.isCaseSelectedSameAsCurrentCase() &&
16258
+ !this.isOtherOptionSelectedButOtherDescriptionNotEntered()) {
16267
16259
  this.getCaseInfo();
16268
16260
  }
16269
16261
  else {
@@ -16280,6 +16272,9 @@
16280
16272
  LinkCasesComponent.prototype.isCaseSelectedSameAsCurrentCase = function () {
16281
16273
  return this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('');
16282
16274
  };
16275
+ LinkCasesComponent.prototype.isOtherOptionSelectedButOtherDescriptionNotEntered = function () {
16276
+ return this.showComments && this.linkCaseForm.value.otherDescription.trim().length === 0;
16277
+ };
16283
16278
  LinkCasesComponent.prototype.showErrorInfo = function () {
16284
16279
  if (this.linkCaseForm.controls.caseNumber.invalid) {
16285
16280
  this.caseNumberError = exports.LinkedCasesErrorMessages.CaseNumberError;
@@ -16297,6 +16292,25 @@
16297
16292
  fieldId: 'caseReason',
16298
16293
  });
16299
16294
  }
16295
+ if (this.linkCaseForm.controls.reasonType.valid
16296
+ && this.linkCaseReasons.find(function (reason) { return reason.value_en === 'Other'; }).selected) {
16297
+ if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
16298
+ this.caseReasonCommentsError = exports.LinkedCasesErrorMessages.otherDescriptionError;
16299
+ this.errorMessages.push({
16300
+ title: 'dummy-case-reason-comments',
16301
+ description: exports.LinkedCasesErrorMessages.otherDescriptionError,
16302
+ fieldId: 'otherDescription',
16303
+ });
16304
+ }
16305
+ if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
16306
+ this.caseReasonCommentsError = exports.LinkedCasesErrorMessages.otherDescriptionMaxLengthError;
16307
+ this.errorMessages.push({
16308
+ title: 'dummy-case-reason-comments',
16309
+ description: exports.LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
16310
+ fieldId: 'otherDescription',
16311
+ });
16312
+ }
16313
+ }
16300
16314
  if (this.isCaseSelected(this.selectedCases)) {
16301
16315
  this.caseSelectionError = exports.LinkedCasesErrorMessages.CaseProposedError;
16302
16316
  this.errorMessages.push({
@@ -16352,6 +16366,7 @@
16352
16366
  }
16353
16367
  _this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
16354
16368
  _this.selectedCases.push(caseLink);
16369
+ _this.linkCaseReasons.forEach(function (reason) { return reason.selected = false; });
16355
16370
  _this.initForm();
16356
16371
  _this.emitLinkedCasesState(false);
16357
16372
  }, function (error) {
@@ -16375,23 +16390,31 @@
16375
16390
  });
16376
16391
  };
16377
16392
  LinkCasesComponent.prototype.getSelectedCaseReasons = function () {
16393
+ var _this = this;
16378
16394
  var selectedReasons = [];
16379
16395
  this.linkCaseForm.controls.reasonType.value.forEach(function (selectedReason) {
16380
16396
  if (selectedReason.selected) {
16381
16397
  selectedReasons.push({
16382
- reasonCode: selectedReason.key
16398
+ Reason: selectedReason.key,
16399
+ OtherDescription: selectedReason.value_en === 'Other'
16400
+ ? _this.linkCaseForm.controls.otherDescription.value
16401
+ : ''
16383
16402
  });
16384
16403
  }
16385
16404
  });
16386
16405
  return selectedReasons;
16387
16406
  };
16388
16407
  LinkCasesComponent.prototype.getSelectedCCDTypeCaseReason = function () {
16408
+ var _this = this;
16389
16409
  var selectedReasons = [];
16390
16410
  this.linkCaseForm.controls.reasonType.value.forEach(function (selectedReason) {
16391
16411
  if (selectedReason.selected) {
16392
16412
  selectedReasons.push({
16393
16413
  value: {
16394
16414
  Reason: selectedReason.key,
16415
+ OtherDescription: selectedReason.value_en === 'Other'
16416
+ ? _this.linkCaseForm.controls.otherDescription.value
16417
+ : ''
16395
16418
  }
16396
16419
  });
16397
16420
  }
@@ -16430,7 +16453,7 @@
16430
16453
  return LinkCasesComponent;
16431
16454
  }());
16432
16455
  LinkCasesComponent.ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(ValidatorsUtils), i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
16433
- LinkCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes", 3, "ngClass"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) {
16456
+ LinkCasesComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "value", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) {
16434
16457
  if (rf & 1) {
16435
16458
  i0__namespace.ɵɵelementStart(0, "div", 0);
16436
16459
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -16442,7 +16465,7 @@
16442
16465
  i0__namespace.ɵɵelementStart(6, "h1", 3);
16443
16466
  i0__namespace.ɵɵtext(7, "Select a\u00A0case you want to link to this case");
16444
16467
  i0__namespace.ɵɵelementEnd();
16445
- i0__namespace.ɵɵtemplate(8, LinkCasesComponent_div_8_Template, 18, 11, "div", 4);
16468
+ i0__namespace.ɵɵtemplate(8, LinkCasesComponent_div_8_Template, 20, 12, "div", 4);
16446
16469
  i0__namespace.ɵɵelement(9, "hr");
16447
16470
  i0__namespace.ɵɵelement(10, "br");
16448
16471
  i0__namespace.ɵɵelement(11, "br");
@@ -16494,7 +16517,7 @@
16494
16517
  i0__namespace.ɵɵadvance(4);
16495
16518
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
16496
16519
  i0__namespace.ɵɵadvance(4);
16497
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
16520
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
16498
16521
  i0__namespace.ɵɵadvance(1);
16499
16522
  i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
16500
16523
  i0__namespace.ɵɵadvance(18);
@@ -16534,14 +16557,14 @@
16534
16557
  if (rf & 1) {
16535
16558
  i0__namespace.ɵɵelementStart(0, "span");
16536
16559
  i0__namespace.ɵɵtext(1);
16537
- i0__namespace.ɵɵpipe(2, "ccdLinkCasesReasonValue");
16560
+ i0__namespace.ɵɵpipe(2, "ccdLinkCasesFromReasonValue");
16538
16561
  i0__namespace.ɵɵelement(3, "br");
16539
16562
  i0__namespace.ɵɵelementEnd();
16540
16563
  }
16541
16564
  if (rf & 2) {
16542
16565
  var reason_r11 = ctx.$implicit;
16543
16566
  i0__namespace.ɵɵadvance(1);
16544
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, reason_r11.reasonCode), " ");
16567
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, reason_r11), " ");
16545
16568
  }
16546
16569
  }
16547
16570
  function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template(rf, ctx) {
@@ -16672,7 +16695,6 @@
16672
16695
  this.casesService = casesService;
16673
16696
  this.linkedCasesService = linkedCasesService;
16674
16697
  this.notifyAPIFailure = new i0.EventEmitter(false);
16675
- this.getLinkedCasesResponse = [];
16676
16698
  this.showHideLinkText = 'Show';
16677
16699
  this.noLinkedCases = true;
16678
16700
  this.isServerError = false;
@@ -16694,20 +16716,23 @@
16694
16716
  LinkedCasesFromTableComponent.prototype.fetchPageData = function () {
16695
16717
  var _this = this;
16696
16718
  this.caseId = this.route.snapshot.data.case.case_id;
16697
- this.getLinkedCases().subscribe(function (response) {
16698
- _this.isServerError = false;
16699
- _this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(function (item) {
16700
- var mappedCasetype = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
16701
- var mappedCasetypeDescription = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
16702
- var mappedCaseState = _this.mapLookupIDToValueFromJurisdictions('STATE', item.state);
16703
- var mappedCaseStateDescription = _this.mapLookupIDToValueFromJurisdictions('STATE_DESCRIPTION', item.state);
16704
- var mappedCaseService = _this.mapLookupIDToValueFromJurisdictions('JURISDICTION', item.ccdJurisdiction);
16705
- return Object.assign(Object.assign({}, item), { ccdCaseType: mappedCasetype, ccdCaseTypeDescription: mappedCasetypeDescription, ccdJurisdiction: mappedCaseService, state: mappedCaseState, stateDescription: mappedCaseStateDescription, caseNameHmctsInternal: item.caseNameHmctsInternal || LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT });
16706
- });
16707
- _this.noLinkedCases = !response.linkedCases || !response.linkedCases.length;
16708
- }, function (err) {
16709
- _this.isServerError = true;
16710
- _this.notifyAPIFailure.emit(true);
16719
+ this.getLinkedCases().subscribe({
16720
+ next: function (response) {
16721
+ _this.isServerError = false;
16722
+ _this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(function (item) {
16723
+ var mappedCasetype = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
16724
+ var mappedCasetypeDescription = _this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
16725
+ var mappedCaseState = _this.mapLookupIDToValueFromJurisdictions('STATE', item.state);
16726
+ var mappedCaseStateDescription = _this.mapLookupIDToValueFromJurisdictions('STATE_DESCRIPTION', item.state);
16727
+ var mappedCaseService = _this.mapLookupIDToValueFromJurisdictions('JURISDICTION', item.ccdJurisdiction);
16728
+ return Object.assign(Object.assign({}, item), { ccdCaseType: mappedCasetype, ccdCaseTypeDescription: mappedCasetypeDescription, ccdJurisdiction: mappedCaseService, state: mappedCaseState, stateDescription: mappedCaseStateDescription, caseNameHmctsInternal: item.caseNameHmctsInternal || LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT, linkDetails: item.linkDetails });
16729
+ });
16730
+ _this.noLinkedCases = !response.linkedCases || !response.linkedCases.length;
16731
+ },
16732
+ error: function () {
16733
+ _this.isServerError = true;
16734
+ _this.notifyAPIFailure.emit(true);
16735
+ }
16711
16736
  });
16712
16737
  };
16713
16738
  LinkedCasesFromTableComponent.prototype.getLinkedCases = function () {
@@ -16786,9 +16811,9 @@
16786
16811
  var isLast_r8 = ctx.last;
16787
16812
  var ctx_r5 = i0__namespace.ɵɵnextContext(4);
16788
16813
  i0__namespace.ɵɵadvance(1);
16789
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 3, reason_r6), "");
16814
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 3, reason_r6.value), "");
16790
16815
  i0__namespace.ɵɵadvance(3);
16791
- i0__namespace.ɵɵproperty("ngIf", ctx_r5.hasLeadCaseOrConsolidated(reason_r6));
16816
+ i0__namespace.ɵɵproperty("ngIf", ctx_r5.hasLeadCaseOrConsolidated(reason_r6.value.Reason));
16792
16817
  i0__namespace.ɵɵadvance(1);
16793
16818
  i0__namespace.ɵɵproperty("ngIf", !isLast_r8);
16794
16819
  }
@@ -16902,7 +16927,7 @@
16902
16927
  i0__namespace.ɵɵadvance(14);
16903
16928
  i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
16904
16929
  i0__namespace.ɵɵadvance(1);
16905
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.isServerReasonCodeError));
16930
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.isServerReasonCodeError));
16906
16931
  }
16907
16932
  }
16908
16933
  var LinkedCasesToTableComponent = /** @class */ (function () {
@@ -16984,7 +17009,7 @@
16984
17009
  unlink: false,
16985
17010
  reasons: item.reasons && item.reasons.map(function (reason) {
16986
17011
  return {
16987
- reasonCode: reason
17012
+ Reason: reason
16988
17013
  };
16989
17014
  }),
16990
17015
  };
@@ -17006,6 +17031,7 @@
17006
17031
  reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE;
17007
17032
  };
17008
17033
  LinkedCasesToTableComponent.prototype.mapResponse = function (esSearchCasesResponse) {
17034
+ var _a;
17009
17035
  var caseInfo = this.caseField.value.find(function (item) { return item.value && item.value.CaseReference === esSearchCasesResponse.case_id; });
17010
17036
  return caseInfo && {
17011
17037
  caseReference: esSearchCasesResponse.case_id,
@@ -17015,8 +17041,7 @@
17015
17041
  service: esSearchCasesResponse.case_type && esSearchCasesResponse.case_type.jurisdiction.description || '',
17016
17042
  state: esSearchCasesResponse.state.name || '',
17017
17043
  stateDescription: esSearchCasesResponse.state.description || '',
17018
- reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
17019
- caseInfo.value.ReasonForLink.map(function (reason) { return reason.value && reason.value.Reason; }),
17044
+ reasons: (_a = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.value) === null || _a === void 0 ? void 0 : _a.ReasonForLink
17020
17045
  };
17021
17046
  };
17022
17047
  return LinkedCasesToTableComponent;
@@ -17176,7 +17201,7 @@
17176
17201
  i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
17177
17202
  }
17178
17203
  }
17179
- var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
17204
+ var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
17180
17205
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
17181
17206
  if (rf & 1) {
17182
17207
  i0__namespace.ɵɵelementStart(0, "div", 7);
@@ -17188,7 +17213,7 @@
17188
17213
  }
17189
17214
  if (rf & 2) {
17190
17215
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
17191
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17216
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17192
17217
  i0__namespace.ɵɵadvance(1);
17193
17218
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
17194
17219
  i0__namespace.ɵɵadvance(2);
@@ -17384,6 +17409,11 @@
17384
17409
  }
17385
17410
  return LinkReason;
17386
17411
  }());
17412
+ var LinkFromReason = /** @class */ (function () {
17413
+ function LinkFromReason() {
17414
+ }
17415
+ return LinkFromReason;
17416
+ }());
17387
17417
  var LinkedCasesResponse = /** @class */ (function () {
17388
17418
  function LinkedCasesResponse() {
17389
17419
  }
@@ -17782,7 +17812,11 @@
17782
17812
  var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
17783
17813
  this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
17784
17814
  next: function (reasons) {
17785
- _this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort(function (a, b) { return (a.value_en > b.value_en) ? 1 : -1; });
17815
+ // Sort in ascending order
17816
+ var linkCaseReasons = reasons.list_of_values.sort(function (a, b) { return (a.value_en > b.value_en) ? 1 : -1; });
17817
+ // Move Other option to the end of the list
17818
+ _this.linkedCasesService.linkCaseReasons = linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.filter(function (reason) { return reason.value_en !== 'Other'; });
17819
+ _this.linkedCasesService.linkCaseReasons.push(linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.find(function (reason) { return reason.value_en === 'Other'; }));
17786
17820
  }
17787
17821
  });
17788
17822
  };
@@ -18121,7 +18155,7 @@
18121
18155
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
18122
18156
  }
18123
18157
  }
18124
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
18158
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
18125
18159
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
18126
18160
  __extends(WriteMoneyGbpFieldComponent, _super);
18127
18161
  function WriteMoneyGbpFieldComponent() {
@@ -18151,7 +18185,7 @@
18151
18185
  i0__namespace.ɵɵelementEnd();
18152
18186
  }
18153
18187
  if (rf & 2) {
18154
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18188
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18155
18189
  i0__namespace.ɵɵadvance(1);
18156
18190
  i0__namespace.ɵɵproperty("for", ctx.id());
18157
18191
  i0__namespace.ɵɵadvance(1);
@@ -18299,7 +18333,7 @@
18299
18333
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
18300
18334
  }
18301
18335
  }
18302
- var _c0$C = function (a0) { return { "error": a0 }; };
18336
+ var _c0$D = function (a0) { return { "error": a0 }; };
18303
18337
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
18304
18338
  __extends(WriteMultiSelectListFieldComponent, _super);
18305
18339
  function WriteMultiSelectListFieldComponent() {
@@ -18363,7 +18397,7 @@
18363
18397
  i0__namespace.ɵɵelementEnd();
18364
18398
  }
18365
18399
  if (rf & 2) {
18366
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18400
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
18367
18401
  i0__namespace.ɵɵadvance(3);
18368
18402
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
18369
18403
  i0__namespace.ɵɵadvance(1);
@@ -18454,7 +18488,7 @@
18454
18488
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
18455
18489
  }
18456
18490
  }
18457
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
18491
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
18458
18492
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
18459
18493
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
18460
18494
  __extends(WriteNumberFieldComponent, _super);
@@ -18479,7 +18513,7 @@
18479
18513
  i0__namespace.ɵɵelementEnd();
18480
18514
  }
18481
18515
  if (rf & 2) {
18482
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
18516
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
18483
18517
  i0__namespace.ɵɵadvance(1);
18484
18518
  i0__namespace.ɵɵproperty("for", ctx.id());
18485
18519
  i0__namespace.ɵɵadvance(1);
@@ -18780,7 +18814,7 @@
18780
18814
  i0__namespace.ɵɵelementEnd();
18781
18815
  }
18782
18816
  }
18783
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
18817
+ var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
18784
18818
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
18785
18819
  if (rf & 1) {
18786
18820
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -18796,7 +18830,7 @@
18796
18830
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
18797
18831
  var tmp_0_0 = null;
18798
18832
  var tmp_2_0 = null;
18799
- 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));
18833
+ 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));
18800
18834
  i0__namespace.ɵɵadvance(2);
18801
18835
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
18802
18836
  i0__namespace.ɵɵadvance(2);
@@ -19200,6 +19234,231 @@
19200
19234
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
19201
19235
  })();
19202
19236
 
19237
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
19238
+ if (rf & 1) {
19239
+ i0__namespace.ɵɵelementStart(0, "div");
19240
+ i0__namespace.ɵɵtext(1);
19241
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
19242
+ i0__namespace.ɵɵelementEnd();
19243
+ }
19244
+ if (rf & 2) {
19245
+ var value_r1 = ctx.$implicit;
19246
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19247
+ i0__namespace.ɵɵadvance(1);
19248
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
19249
+ }
19250
+ }
19251
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19252
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
19253
+ function ReadDynamicMultiSelectListFieldComponent() {
19254
+ return _super !== null && _super.apply(this, arguments) || this;
19255
+ }
19256
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19257
+ /**
19258
+ *
19259
+ * Reassigning list_items from formatted_list when list_items is empty
19260
+ */
19261
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
19262
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19263
+ }
19264
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19265
+ this.caseField.value = this.caseField.formatted_value.value;
19266
+ }
19267
+ _super.prototype.ngOnInit.call(this);
19268
+ };
19269
+ return ReadDynamicMultiSelectListFieldComponent;
19270
+ }(AbstractFieldReadComponent));
19271
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
19272
+ 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) {
19273
+ if (rf & 1) {
19274
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
19275
+ }
19276
+ if (rf & 2) {
19277
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
19278
+ }
19279
+ }, 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}"] });
19280
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
19281
+ (function () {
19282
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
19283
+ type: i0.Component,
19284
+ args: [{
19285
+ selector: 'ccd-read-dynamic-multi-select-list-field',
19286
+ templateUrl: './read-dynamic-multi-select-list-field.html',
19287
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
19288
+ }]
19289
+ }], null, null);
19290
+ })();
19291
+
19292
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
19293
+ if (rf & 1) {
19294
+ i0__namespace.ɵɵelementStart(0, "span", 5);
19295
+ i0__namespace.ɵɵtext(1);
19296
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
19297
+ i0__namespace.ɵɵelementEnd();
19298
+ }
19299
+ if (rf & 2) {
19300
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19301
+ i0__namespace.ɵɵadvance(1);
19302
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
19303
+ }
19304
+ }
19305
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
19306
+ if (rf & 1) {
19307
+ i0__namespace.ɵɵelementStart(0, "span", 6);
19308
+ i0__namespace.ɵɵtext(1);
19309
+ i0__namespace.ɵɵelementEnd();
19310
+ }
19311
+ if (rf & 2) {
19312
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
19313
+ i0__namespace.ɵɵadvance(1);
19314
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
19315
+ }
19316
+ }
19317
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
19318
+ if (rf & 1) {
19319
+ i0__namespace.ɵɵelementStart(0, "span", 7);
19320
+ i0__namespace.ɵɵtext(1);
19321
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
19322
+ i0__namespace.ɵɵelementEnd();
19323
+ }
19324
+ if (rf & 2) {
19325
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
19326
+ i0__namespace.ɵɵadvance(1);
19327
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
19328
+ }
19329
+ }
19330
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
19331
+ if (rf & 1) {
19332
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
19333
+ i0__namespace.ɵɵelementContainerStart(0);
19334
+ i0__namespace.ɵɵelementStart(1, "div", 8);
19335
+ i0__namespace.ɵɵelementStart(2, "input", 9);
19336
+ 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); });
19337
+ i0__namespace.ɵɵelementEnd();
19338
+ i0__namespace.ɵɵelementStart(3, "label", 10);
19339
+ i0__namespace.ɵɵtext(4);
19340
+ i0__namespace.ɵɵelementEnd();
19341
+ i0__namespace.ɵɵelementEnd();
19342
+ i0__namespace.ɵɵelementContainerEnd();
19343
+ }
19344
+ if (rf & 2) {
19345
+ var checkbox_r4 = ctx.$implicit;
19346
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
19347
+ i0__namespace.ɵɵadvance(2);
19348
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
19349
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
19350
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
19351
+ i0__namespace.ɵɵadvance(1);
19352
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
19353
+ i0__namespace.ɵɵadvance(1);
19354
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
19355
+ }
19356
+ }
19357
+ var _c0$A = function (a0) { return { "error": a0 }; };
19358
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
19359
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
19360
+ function WriteDynamicMultiSelectListFieldComponent() {
19361
+ return _super !== null && _super.apply(this, arguments) || this;
19362
+ }
19363
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
19364
+ var _this = this;
19365
+ this.checkboxes = new i2.FormArray([]);
19366
+ this.setInitialCaseList();
19367
+ this.setInitialCaseFieldValue();
19368
+ // Initialise array with existing values
19369
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
19370
+ var values = this.caseField.value;
19371
+ values.forEach(function (value) {
19372
+ _this.checkboxes.push(new i2.FormControl(value));
19373
+ });
19374
+ }
19375
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
19376
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19377
+ };
19378
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
19379
+ var _this = this;
19380
+ var target = event.target;
19381
+ if (!target || !target.value) {
19382
+ return;
19383
+ }
19384
+ var selectedListItem = this.getValueListItem(target.value);
19385
+ if (!this.isSelected(target.value)) {
19386
+ // Add a new control in the FormArray
19387
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
19388
+ }
19389
+ else {
19390
+ // Remove the control from the FormArray
19391
+ this.checkboxes.controls.forEach(function (ctrl, i) {
19392
+ if (ctrl.value.code === target.value) {
19393
+ _this.checkboxes.removeAt(i);
19394
+ }
19395
+ });
19396
+ }
19397
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
19398
+ };
19399
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
19400
+ if (this.checkboxes && this.checkboxes.controls) {
19401
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
19402
+ }
19403
+ };
19404
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
19405
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
19406
+ };
19407
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
19408
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
19409
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
19410
+ if (!hasListItems && hasFormattedListItems) {
19411
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
19412
+ }
19413
+ };
19414
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
19415
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
19416
+ this.caseField.value = this.caseField.formatted_value.value;
19417
+ }
19418
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
19419
+ if (isNull || !Array.isArray(this.caseField.value)) {
19420
+ this.caseField.value = [];
19421
+ }
19422
+ };
19423
+ return WriteDynamicMultiSelectListFieldComponent;
19424
+ }(AbstractFieldWriteComponent));
19425
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
19426
+ 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) {
19427
+ if (rf & 1) {
19428
+ i0__namespace.ɵɵelementStart(0, "div", 0);
19429
+ i0__namespace.ɵɵelementStart(1, "fieldset");
19430
+ i0__namespace.ɵɵelementStart(2, "legend");
19431
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
19432
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
19433
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
19434
+ i0__namespace.ɵɵelementEnd();
19435
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
19436
+ i0__namespace.ɵɵelementEnd();
19437
+ i0__namespace.ɵɵelementEnd();
19438
+ }
19439
+ if (rf & 2) {
19440
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
19441
+ i0__namespace.ɵɵadvance(3);
19442
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
19443
+ i0__namespace.ɵɵadvance(1);
19444
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
19445
+ i0__namespace.ɵɵadvance(1);
19446
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
19447
+ i0__namespace.ɵɵadvance(1);
19448
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
19449
+ }
19450
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
19451
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
19452
+ (function () {
19453
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
19454
+ type: i0.Component,
19455
+ args: [{
19456
+ selector: 'ccd-write-dynamic-multi-select-list-field',
19457
+ templateUrl: './write-dynamic-multi-select-list-field.html'
19458
+ }]
19459
+ }], null, null);
19460
+ })();
19461
+
19203
19462
  var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
19204
19463
  __extends(ReadPhoneUKFieldComponent, _super);
19205
19464
  function ReadPhoneUKFieldComponent() {
@@ -19832,7 +20091,7 @@
19832
20091
  function PaletteService() {
19833
20092
  var _b;
19834
20093
  this.componentLauncherRegistry = (_b = {},
19835
- _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent],
20094
+ _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
19836
20095
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
19837
20096
  _b);
19838
20097
  }
@@ -19862,6 +20121,8 @@
19862
20121
  return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
19863
20122
  case 'DynamicRadioList':
19864
20123
  return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
20124
+ case 'DynamicMultiSelectList':
20125
+ return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
19865
20126
  case 'FixedRadioList':
19866
20127
  return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
19867
20128
  case 'Complex':
@@ -19931,7 +20192,7 @@
19931
20192
  })();
19932
20193
 
19933
20194
  var _c0$v = ["fieldContainer"];
19934
- var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
20195
+ var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
19935
20196
  var FieldReadComponent = /** @class */ (function (_super) {
19936
20197
  __extends(FieldReadComponent, _super);
19937
20198
  function FieldReadComponent(resolver, paletteService) {
@@ -20021,7 +20282,7 @@
20021
20282
  })();
20022
20283
 
20023
20284
  var _c0$u = ["fieldContainer"];
20024
- var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
20285
+ var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
20025
20286
  var FieldWriteComponent = /** @class */ (function (_super) {
20026
20287
  __extends(FieldWriteComponent, _super);
20027
20288
  function FieldWriteComponent(resolver, paletteService) {
@@ -24981,23 +25242,26 @@
24981
25242
  || !ReadFieldsFilterPipe.isEmpty(value[field.id]);
24982
25243
  };
24983
25244
  ReadFieldsFilterPipe.getValue = function (field, values, index) {
24984
- var value;
24985
- if (index >= 0) {
24986
- value = values[index].value[field.id];
24987
- }
24988
- else {
24989
- value = values[field.id];
25245
+ if (ReadFieldsFilterPipe.isEmpty(field.value)) {
25246
+ var value = void 0;
25247
+ if (index >= 0) {
25248
+ value = values[index].value[field.id];
25249
+ }
25250
+ else {
25251
+ value = values[field.id];
25252
+ }
25253
+ return value;
24990
25254
  }
24991
- return ReadFieldsFilterPipe.isEmpty(field.value) ? value : field.value;
25255
+ return field.value;
24992
25256
  };
24993
- ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvaliable, fieldId) {
25257
+ ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
24994
25258
  if (field.display_context === 'HIDDEN') {
24995
25259
  field.hidden = true;
24996
25260
  }
24997
25261
  else if (field.show_condition) {
24998
25262
  var cond = void 0;
24999
- if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !formGroupAvaliable && !!Object.keys(formValue).length) {
25000
- var search = fieldId + '.';
25263
+ if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
25264
+ var search = fieldId + ".";
25001
25265
  var searchRegExp = new RegExp(search, 'g');
25002
25266
  var replaceWith = '';
25003
25267
  cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
@@ -25146,14 +25410,46 @@
25146
25410
  }], null, null);
25147
25411
  })();
25148
25412
 
25413
+ var LinkCasesFromReasonValuePipe = /** @class */ (function () {
25414
+ function LinkCasesFromReasonValuePipe(linkedCasesService) {
25415
+ this.linkedCasesService = linkedCasesService;
25416
+ }
25417
+ LinkCasesFromReasonValuePipe.prototype.transform = function (linkFromReason) {
25418
+ var _a, _b, _c;
25419
+ if (linkFromReason === null || linkFromReason === void 0 ? void 0 : linkFromReason.otherDescription) {
25420
+ var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkFromReason.reasonCode; });
25421
+ return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
25422
+ ? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkFromReason.otherDescription
25423
+ : reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
25424
+ }
25425
+ return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkFromReason.reasonCode; })) === null || _c === void 0 ? void 0 : _c.value_en;
25426
+ };
25427
+ return LinkCasesFromReasonValuePipe;
25428
+ }());
25429
+ LinkCasesFromReasonValuePipe.ɵfac = function LinkCasesFromReasonValuePipe_Factory(t) { return new (t || LinkCasesFromReasonValuePipe)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
25430
+ LinkCasesFromReasonValuePipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdLinkCasesFromReasonValue", type: LinkCasesFromReasonValuePipe, pure: true });
25431
+ (function () {
25432
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LinkCasesFromReasonValuePipe, [{
25433
+ type: i0.Pipe,
25434
+ args: [{
25435
+ name: 'ccdLinkCasesFromReasonValue'
25436
+ }]
25437
+ }], function () { return [{ type: LinkedCasesService }]; }, null);
25438
+ })();
25439
+
25149
25440
  var LinkCasesReasonValuePipe = /** @class */ (function () {
25150
25441
  function LinkCasesReasonValuePipe(linkedCasesService) {
25151
25442
  this.linkedCasesService = linkedCasesService;
25152
25443
  }
25153
- LinkCasesReasonValuePipe.prototype.transform = function (reasonCode) {
25154
- var reasonCodeMapping = this.linkedCasesService.linkCaseReasons &&
25155
- this.linkedCasesService.linkCaseReasons.find(function (reason) { return reason.key === reasonCode; });
25156
- return reasonCodeMapping && reasonCodeMapping.value_en;
25444
+ LinkCasesReasonValuePipe.prototype.transform = function (linkReason) {
25445
+ var _a, _b, _c;
25446
+ if (linkReason === null || linkReason === void 0 ? void 0 : linkReason.OtherDescription) {
25447
+ var reasonCodeMapping = (_a = this.linkedCasesService.linkCaseReasons) === null || _a === void 0 ? void 0 : _a.find(function (reason) { return reason.key === linkReason.Reason; });
25448
+ return (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) === 'Other'
25449
+ ? (reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en) + " - " + linkReason.OtherDescription
25450
+ : reasonCodeMapping === null || reasonCodeMapping === void 0 ? void 0 : reasonCodeMapping.value_en;
25451
+ }
25452
+ return (_c = (_b = this.linkedCasesService.linkCaseReasons) === null || _b === void 0 ? void 0 : _b.find(function (reason) { return reason.key === linkReason.Reason; })) === null || _c === void 0 ? void 0 : _c.value_en;
25157
25453
  };
25158
25454
  return LinkCasesReasonValuePipe;
25159
25455
  }());
@@ -25202,7 +25498,8 @@
25202
25498
  ReadFieldsFilterPipe,
25203
25499
  CcdTabFieldsPipe,
25204
25500
  CcdPageFieldsPipe,
25205
- LinkCasesReasonValuePipe
25501
+ LinkCasesReasonValuePipe,
25502
+ LinkCasesFromReasonValuePipe
25206
25503
  ];
25207
25504
  var PipesModule = /** @class */ (function () {
25208
25505
  function PipesModule() {
@@ -25223,7 +25520,8 @@
25223
25520
  ReadFieldsFilterPipe,
25224
25521
  CcdTabFieldsPipe,
25225
25522
  CcdPageFieldsPipe,
25226
- LinkCasesReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
25523
+ LinkCasesReasonValuePipe,
25524
+ LinkCasesFromReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
25227
25525
  SortSearchResultPipe,
25228
25526
  CcdCaseTitlePipe,
25229
25527
  CcdCollectionTableCaseFieldsFilterPipe,
@@ -25231,7 +25529,8 @@
25231
25529
  ReadFieldsFilterPipe,
25232
25530
  CcdTabFieldsPipe,
25233
25531
  CcdPageFieldsPipe,
25234
- LinkCasesReasonValuePipe] });
25532
+ LinkCasesReasonValuePipe,
25533
+ LinkCasesFromReasonValuePipe] });
25235
25534
  })();
25236
25535
  (function () {
25237
25536
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
@@ -25371,6 +25670,8 @@
25371
25670
  WriteDocumentFieldComponent,
25372
25671
  WriteDynamicListFieldComponent,
25373
25672
  WriteDynamicRadioListFieldComponent,
25673
+ WriteDynamicMultiSelectListFieldComponent,
25674
+ ReadDynamicMultiSelectListFieldComponent,
25374
25675
  WriteTextFieldComponent,
25375
25676
  WriteDateContainerFieldComponent,
25376
25677
  WriteTextAreaFieldComponent,
@@ -25394,12 +25695,18 @@
25394
25695
  WriteCollectionFieldComponent,
25395
25696
  // ComponentLauncher web components
25396
25697
  CaseFileViewFieldComponent,
25397
- CaseFileViewFieldReadComponent,
25398
25698
  CaseFileViewFolderComponent,
25399
25699
  CaseFileViewFolderSortComponent,
25400
25700
  CaseFileViewOverlayMenuComponent,
25401
25701
  CaseFileViewFolderDocumentActionsComponent,
25402
25702
  CaseFileViewFolderSelectorComponent,
25703
+ // component for dynamic list
25704
+ WriteDynamicMultiSelectListFieldComponent,
25705
+ WriteDynamicRadioListFieldComponent,
25706
+ WriteDynamicListFieldComponent,
25707
+ ReadDynamicMultiSelectListFieldComponent,
25708
+ ReadDynamicListFieldComponent,
25709
+ ReadDynamicRadioListFieldComponent,
25403
25710
  LinkedCasesToTableComponent,
25404
25711
  LinkedCasesFromTableComponent,
25405
25712
  BeforeYouStartComponent,
@@ -25530,6 +25837,8 @@
25530
25837
  WriteDocumentFieldComponent,
25531
25838
  WriteDynamicListFieldComponent,
25532
25839
  WriteDynamicRadioListFieldComponent,
25840
+ WriteDynamicMultiSelectListFieldComponent,
25841
+ ReadDynamicMultiSelectListFieldComponent,
25533
25842
  WriteTextFieldComponent,
25534
25843
  WriteDateContainerFieldComponent,
25535
25844
  WriteTextAreaFieldComponent,
@@ -25553,12 +25862,18 @@
25553
25862
  WriteCollectionFieldComponent,
25554
25863
  // ComponentLauncher web components
25555
25864
  CaseFileViewFieldComponent,
25556
- CaseFileViewFieldReadComponent,
25557
25865
  CaseFileViewFolderComponent,
25558
25866
  CaseFileViewFolderSortComponent,
25559
25867
  CaseFileViewOverlayMenuComponent,
25560
25868
  CaseFileViewFolderDocumentActionsComponent,
25561
25869
  CaseFileViewFolderSelectorComponent,
25870
+ // component for dynamic list
25871
+ WriteDynamicMultiSelectListFieldComponent,
25872
+ WriteDynamicRadioListFieldComponent,
25873
+ WriteDynamicListFieldComponent,
25874
+ ReadDynamicMultiSelectListFieldComponent,
25875
+ ReadDynamicListFieldComponent,
25876
+ ReadDynamicRadioListFieldComponent,
25562
25877
  LinkedCasesToTableComponent,
25563
25878
  LinkedCasesFromTableComponent,
25564
25879
  BeforeYouStartComponent,
@@ -25648,6 +25963,8 @@
25648
25963
  WriteDocumentFieldComponent,
25649
25964
  WriteDynamicListFieldComponent,
25650
25965
  WriteDynamicRadioListFieldComponent,
25966
+ WriteDynamicMultiSelectListFieldComponent,
25967
+ ReadDynamicMultiSelectListFieldComponent,
25651
25968
  WriteTextFieldComponent,
25652
25969
  WriteDateContainerFieldComponent,
25653
25970
  WriteTextAreaFieldComponent,
@@ -25671,12 +25988,18 @@
25671
25988
  WriteCollectionFieldComponent,
25672
25989
  // ComponentLauncher web components
25673
25990
  CaseFileViewFieldComponent,
25674
- CaseFileViewFieldReadComponent,
25675
25991
  CaseFileViewFolderComponent,
25676
25992
  CaseFileViewFolderSortComponent,
25677
25993
  CaseFileViewOverlayMenuComponent,
25678
25994
  CaseFileViewFolderDocumentActionsComponent,
25679
25995
  CaseFileViewFolderSelectorComponent,
25996
+ // component for dynamic list
25997
+ WriteDynamicMultiSelectListFieldComponent,
25998
+ WriteDynamicRadioListFieldComponent,
25999
+ WriteDynamicListFieldComponent,
26000
+ ReadDynamicMultiSelectListFieldComponent,
26001
+ ReadDynamicListFieldComponent,
26002
+ ReadDynamicRadioListFieldComponent,
25680
26003
  LinkedCasesToTableComponent,
25681
26004
  LinkedCasesFromTableComponent,
25682
26005
  BeforeYouStartComponent,
@@ -25803,9 +26126,8 @@
25803
26126
  i0__namespace.ɵɵsetComponentScope(
25804
26127
  // ComponentLauncher web components
25805
26128
  CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25806
- i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25807
26129
  i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
25808
- i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
26130
+ i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
25809
26131
  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]);
25810
26132
  i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
25811
26133
 
@@ -35553,7 +35875,6 @@
35553
35875
  exports.CaseField = CaseField;
35554
35876
  exports.CaseFieldService = CaseFieldService;
35555
35877
  exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
35556
- exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
35557
35878
  exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
35558
35879
  exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
35559
35880
  exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
@@ -35691,8 +36012,10 @@
35691
36012
  exports.LabelSubstitutorModule = LabelSubstitutorModule;
35692
36013
  exports.LinkCaseReason = LinkCaseReason;
35693
36014
  exports.LinkCasesComponent = LinkCasesComponent;
36015
+ exports.LinkCasesFromReasonValuePipe = LinkCasesFromReasonValuePipe;
35694
36016
  exports.LinkCasesReasonValuePipe = LinkCasesReasonValuePipe;
35695
36017
  exports.LinkDetails = LinkDetails;
36018
+ exports.LinkFromReason = LinkFromReason;
35696
36019
  exports.LinkReason = LinkReason;
35697
36020
  exports.LinkedCasesFromTableComponent = LinkedCasesFromTableComponent;
35698
36021
  exports.LinkedCasesResponse = LinkedCasesResponse;
@@ -35741,6 +36064,7 @@
35741
36064
  exports.ReadDateFieldComponent = ReadDateFieldComponent;
35742
36065
  exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
35743
36066
  exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
36067
+ exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
35744
36068
  exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
35745
36069
  exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
35746
36070
  exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
@@ -35817,6 +36141,7 @@
35817
36141
  exports.WriteDateFieldComponent = WriteDateFieldComponent;
35818
36142
  exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
35819
36143
  exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
36144
+ exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
35820
36145
  exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
35821
36146
  exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
35822
36147
  exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;