@hmcts/ccd-case-ui-toolkit 5.0.50-sscs-sit-release → 6.0.2-migration-dynamic-list

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 (41) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +355 -68
  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/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +1 -1
  8. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +13 -2
  9. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +3 -0
  10. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +47 -0
  11. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +153 -0
  12. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -6
  13. package/esm2015/lib/shared/components/palette/index.js +2 -1
  14. package/esm2015/lib/shared/components/palette/palette.module.js +35 -4
  15. package/esm2015/lib/shared/components/palette/palette.service.js +4 -1
  16. package/esm2015/lib/shared/domain/definition/case-field.model.js +6 -3
  17. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  18. package/esm2015/lib/shared/services/form/field-type-sanitiser.js +16 -1
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +318 -70
  20. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  21. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +1 -0
  22. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  23. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +3 -0
  24. package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +1 -0
  25. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +9 -0
  26. package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  27. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +17 -0
  28. package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +1 -0
  29. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
  30. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
  31. package/lib/shared/components/palette/index.d.ts +1 -0
  32. package/lib/shared/components/palette/index.d.ts.map +1 -1
  33. package/lib/shared/components/palette/palette.module.d.ts +61 -59
  34. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  35. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  36. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  37. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  38. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  39. package/lib/shared/services/form/field-type-sanitiser.d.ts +2 -0
  40. package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
  41. package/package.json +1 -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$r = ["[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$r, 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$q = ["[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$q, 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$p = ["[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$p, 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$o = ["[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$o, 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);
@@ -794,7 +794,7 @@
794
794
  return typeof state === "function" ? receiver === state : state.has(receiver);
795
795
  }
796
796
 
797
- var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
797
+ var _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
798
798
  function DateInputComponent_div_16_Template(rf, ctx) {
799
799
  if (rf & 1) {
800
800
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -812,7 +812,7 @@
812
812
  i0__namespace.ɵɵadvance(1);
813
813
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
814
814
  i0__namespace.ɵɵadvance(2);
815
- 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));
815
+ 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));
816
816
  }
817
817
  }
818
818
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -832,7 +832,7 @@
832
832
  i0__namespace.ɵɵadvance(1);
833
833
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
834
834
  i0__namespace.ɵɵadvance(2);
835
- 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));
835
+ 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));
836
836
  }
837
837
  }
838
838
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -852,7 +852,7 @@
852
852
  i0__namespace.ɵɵadvance(1);
853
853
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
854
854
  i0__namespace.ɵɵadvance(2);
855
- 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));
855
+ 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));
856
856
  }
857
857
  }
858
858
  var DateInputComponent = /** @class */ (function () {
@@ -1086,15 +1086,15 @@
1086
1086
  i0__namespace.ɵɵadvance(2);
1087
1087
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1088
1088
  i0__namespace.ɵɵadvance(2);
1089
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
1089
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$X, ctx.isInvalid));
1090
1090
  i0__namespace.ɵɵadvance(3);
1091
1091
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1092
1092
  i0__namespace.ɵɵadvance(2);
1093
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
1093
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$X, ctx.isInvalid));
1094
1094
  i0__namespace.ɵɵadvance(3);
1095
1095
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1096
1096
  i0__namespace.ɵɵadvance(2);
1097
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
1097
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$X, ctx.isInvalid));
1098
1098
  i0__namespace.ɵɵadvance(2);
1099
1099
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1100
1100
  i0__namespace.ɵɵadvance(1);
@@ -1175,7 +1175,7 @@
1175
1175
  i0__namespace.ɵɵelementContainerEnd();
1176
1176
  }
1177
1177
  }
1178
- var _c0$V = ["*"];
1178
+ var _c0$W = ["*"];
1179
1179
  exports.AlertMessageType = void 0;
1180
1180
  (function (AlertMessageType) {
1181
1181
  AlertMessageType["WARNING"] = "warning";
@@ -1196,7 +1196,7 @@
1196
1196
  AlertComponent.TYPE_ERROR = 'error';
1197
1197
  AlertComponent.TYPE_INFORMATION = 'information';
1198
1198
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1199
- 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) {
1199
+ 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) {
1200
1200
  if (rf & 1) {
1201
1201
  i0__namespace.ɵɵprojectionDef();
1202
1202
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1471,7 +1471,7 @@
1471
1471
  }] });
1472
1472
  })();
1473
1473
 
1474
- var _c0$U = function (a0) { return { "js-hidden": a0 }; };
1474
+ var _c0$V = function (a0) { return { "js-hidden": a0 }; };
1475
1475
  var _c1$n = ["*"];
1476
1476
  var TabComponent = /** @class */ (function () {
1477
1477
  function TabComponent() {
@@ -1487,7 +1487,7 @@
1487
1487
  i0__namespace.ɵɵelementEnd();
1488
1488
  }
1489
1489
  if (rf & 2) {
1490
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
1490
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$V, !ctx.selected));
1491
1491
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1492
1492
  }
1493
1493
  }, 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}}"] });
@@ -1510,7 +1510,7 @@
1510
1510
  }] });
1511
1511
  })();
1512
1512
 
1513
- var _c0$T = ["tab"];
1513
+ var _c0$U = ["tab"];
1514
1514
  var _c1$m = function () { return ["."]; };
1515
1515
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1516
1516
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1564,7 +1564,7 @@
1564
1564
  }
1565
1565
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1566
1566
  if (rf & 1) {
1567
- i0__namespace.ɵɵviewQuery(_c0$T, 1);
1567
+ i0__namespace.ɵɵviewQuery(_c0$U, 1);
1568
1568
  }
1569
1569
  if (rf & 2) {
1570
1570
  var _t = void 0;
@@ -1643,7 +1643,7 @@
1643
1643
  }], null, null);
1644
1644
  })();
1645
1645
 
1646
- var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1646
+ var _c0$T = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1647
1647
  var ActivityBannerComponent = /** @class */ (function () {
1648
1648
  function ActivityBannerComponent() {
1649
1649
  }
@@ -1664,7 +1664,7 @@
1664
1664
  i0__namespace.ɵɵelementEnd();
1665
1665
  }
1666
1666
  if (rf & 2) {
1667
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1667
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$T, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1668
1668
  i0__namespace.ɵɵadvance(2);
1669
1669
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1670
1670
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -3311,9 +3311,12 @@
3311
3311
  }
3312
3312
  Object.defineProperty(CaseField.prototype, "value", {
3313
3313
  get: function () {
3314
- if (this.isDynamic()) {
3314
+ if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3315
3315
  return this._value && this._value.value ? this._value.value.code : this._value;
3316
3316
  }
3317
+ else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
3318
+ return this._value && this._value.value ? this._value.value : this._value;
3319
+ }
3317
3320
  else {
3318
3321
  return this._value;
3319
3322
  }
@@ -3403,7 +3406,7 @@
3403
3406
  };
3404
3407
  CaseField.prototype.isDynamic = function () {
3405
3408
  var _this = this;
3406
- var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
3409
+ var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
3407
3410
  if (!this.field_type) {
3408
3411
  return false;
3409
3412
  }
@@ -5498,6 +5501,9 @@
5498
5501
  }
5499
5502
  caseFields.forEach(function (caseField) {
5500
5503
  switch (caseField.field_type.type) {
5504
+ case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5505
+ _this.convertArrayToDynamicListOutput(caseField, data);
5506
+ break;
5501
5507
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
5502
5508
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
5503
5509
  _this.convertStringToDynamicListOutput(caseField, data);
@@ -5515,6 +5521,17 @@
5515
5521
  }
5516
5522
  });
5517
5523
  };
5524
+ FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
5525
+ var values = data[field.id];
5526
+ if (Array.isArray(values)) {
5527
+ var listItems = this.getListItems(field);
5528
+ var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
5529
+ data[field.id] = {
5530
+ value: matches,
5531
+ list_items: listItems
5532
+ };
5533
+ }
5534
+ };
5518
5535
  FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
5519
5536
  var stringValue = data[field.id];
5520
5537
  if (typeof stringValue === 'string') {
@@ -5545,6 +5562,7 @@
5545
5562
  FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
5546
5563
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
5547
5564
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
5565
+ FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
5548
5566
  FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
5549
5567
  FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
5550
5568
  (function () {
@@ -11687,7 +11705,7 @@
11687
11705
  return AddressOption;
11688
11706
  }());
11689
11707
 
11690
- var _c0$R = ["writeComplexFieldComponent"];
11708
+ var _c0$S = ["writeComplexFieldComponent"];
11691
11709
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11692
11710
  if (rf & 1) {
11693
11711
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11901,7 +11919,7 @@
11901
11919
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11902
11920
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11903
11921
  if (rf & 1) {
11904
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
11922
+ i0__namespace.ɵɵviewQuery(_c0$S, 1);
11905
11923
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11906
11924
  }
11907
11925
  if (rf & 2) {
@@ -12561,7 +12579,7 @@
12561
12579
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
12562
12580
  }
12563
12581
  }
12564
- var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
12582
+ var _c0$R = function (a0) { return { "form-group-error": a0 }; };
12565
12583
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12566
12584
  if (rf & 1) {
12567
12585
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12582,7 +12600,7 @@
12582
12600
  i0__namespace.ɵɵadvance(1);
12583
12601
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12584
12602
  i0__namespace.ɵɵadvance(1);
12585
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
12603
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$R, ctx_r1.errorMessages.length > 0));
12586
12604
  i0__namespace.ɵɵadvance(1);
12587
12605
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
12588
12606
  i0__namespace.ɵɵadvance(1);
@@ -13034,7 +13052,7 @@
13034
13052
  }], null, null);
13035
13053
  })();
13036
13054
 
13037
- var _c0$P = ["writeComplexFieldComponent"];
13055
+ var _c0$Q = ["writeComplexFieldComponent"];
13038
13056
  function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
13039
13057
  if (rf & 1) {
13040
13058
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -13160,7 +13178,7 @@
13160
13178
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
13161
13179
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
13162
13180
  if (rf & 1) {
13163
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
13181
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
13164
13182
  }
13165
13183
  if (rf & 2) {
13166
13184
  var _t = void 0;
@@ -13197,7 +13215,7 @@
13197
13215
  }] });
13198
13216
  })();
13199
13217
 
13200
- 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 }; };
13218
+ 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 }; };
13201
13219
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
13202
13220
  if (rf & 1) {
13203
13221
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -13212,7 +13230,7 @@
13212
13230
  if (rf & 2) {
13213
13231
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
13214
13232
  i0__namespace.ɵɵadvance(4);
13215
- 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);
13233
+ 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);
13216
13234
  }
13217
13235
  }
13218
13236
  var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -13363,7 +13381,7 @@
13363
13381
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
13364
13382
  })();
13365
13383
 
13366
- var _c0$N = ["collectionItem"];
13384
+ var _c0$O = ["collectionItem"];
13367
13385
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
13368
13386
  if (rf & 1) {
13369
13387
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13605,6 +13623,11 @@
13605
13623
  // Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
13606
13624
  this.formArray.setErrors(null);
13607
13625
  var item = { value: null };
13626
+ if (this.isCollectionDynamic()) {
13627
+ item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
13628
+ var key = Number(item['id'][item['id'].length - 1]) + 1;
13629
+ item.id = item['id'].replace(/.$/, key.toString());
13630
+ }
13608
13631
  this.caseField.value.push(item);
13609
13632
  var index = this.caseField.value.length - 1;
13610
13633
  var caseField = this.buildCaseField(item, index, true);
@@ -13627,6 +13650,12 @@
13627
13650
  setTimeout(function () { return _this.focusLastItem(); });
13628
13651
  }
13629
13652
  };
13653
+ WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
13654
+ if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
13655
+ return false;
13656
+ }
13657
+ return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
13658
+ };
13630
13659
  WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
13631
13660
  if (isNew === void 0) { isNew = false; }
13632
13661
  var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
@@ -13776,7 +13805,7 @@
13776
13805
  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)); };
13777
13806
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13778
13807
  if (rf & 1) {
13779
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
13808
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
13780
13809
  }
13781
13810
  if (rf & 2) {
13782
13811
  var _t = void 0;
@@ -14364,7 +14393,7 @@
14364
14393
  }], null, null);
14365
14394
  })();
14366
14395
 
14367
- var _c0$M = ["fileInput"];
14396
+ var _c0$N = ["fileInput"];
14368
14397
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
14369
14398
  if (rf & 1) {
14370
14399
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14658,7 +14687,7 @@
14658
14687
  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)); };
14659
14688
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14660
14689
  if (rf & 1) {
14661
- i0__namespace.ɵɵviewQuery(_c0$M, 1);
14690
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
14662
14691
  }
14663
14692
  if (rf & 2) {
14664
14693
  var _t = void 0;
@@ -14858,7 +14887,7 @@
14858
14887
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14859
14888
  }
14860
14889
  }
14861
- var _c0$L = function (a0) { return { "form-group-error": a0 }; };
14890
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
14862
14891
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14863
14892
  __extends(WriteDynamicListFieldComponent, _super);
14864
14893
  function WriteDynamicListFieldComponent() {
@@ -14907,7 +14936,7 @@
14907
14936
  i0__namespace.ɵɵelementEnd();
14908
14937
  }
14909
14938
  if (rf & 2) {
14910
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14939
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$M, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14911
14940
  i0__namespace.ɵɵadvance(1);
14912
14941
  i0__namespace.ɵɵproperty("for", ctx.id());
14913
14942
  i0__namespace.ɵɵadvance(1);
@@ -15057,7 +15086,7 @@
15057
15086
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
15058
15087
  }
15059
15088
  }
15060
- var _c0$K = function (a0) { return { selected: a0 }; };
15089
+ var _c0$L = function (a0) { return { selected: a0 }; };
15061
15090
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
15062
15091
  if (rf & 1) {
15063
15092
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -15070,12 +15099,11 @@
15070
15099
  if (rf & 2) {
15071
15100
  var radioButton_r5 = ctx.$implicit;
15072
15101
  var ctx_r4 = i0__namespace.ɵɵnextContext();
15073
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15102
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15074
15103
  i0__namespace.ɵɵadvance(1);
15075
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
15076
- i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
15104
+ 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);
15077
15105
  i0__namespace.ɵɵadvance(1);
15078
- i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
15106
+ i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
15079
15107
  i0__namespace.ɵɵadvance(1);
15080
15108
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
15081
15109
  }
@@ -15104,8 +15132,8 @@
15104
15132
  this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
15105
15133
  this.dynamicRadioListControl.setValue(this.caseField.value);
15106
15134
  };
15107
- WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
15108
- return this.id() + "-" + name;
15135
+ WriteDynamicRadioListFieldComponent.prototype.createElementId = function (name) {
15136
+ return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : _super.prototype.createElementId.call(this, name);
15109
15137
  };
15110
15138
  return WriteDynamicRadioListFieldComponent;
15111
15139
  }(AbstractFieldWriteComponent));
@@ -15235,7 +15263,7 @@
15235
15263
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
15236
15264
  }
15237
15265
  }
15238
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15266
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
15239
15267
  var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15240
15268
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15241
15269
  __extends(WriteEmailFieldComponent, _super);
@@ -15260,7 +15288,7 @@
15260
15288
  i0__namespace.ɵɵelementEnd();
15261
15289
  }
15262
15290
  if (rf & 2) {
15263
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15291
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15264
15292
  i0__namespace.ɵɵadvance(1);
15265
15293
  i0__namespace.ɵɵproperty("for", ctx.id());
15266
15294
  i0__namespace.ɵɵadvance(1);
@@ -15392,7 +15420,7 @@
15392
15420
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
15393
15421
  }
15394
15422
  }
15395
- var _c0$I = function (a0) { return { "form-group-error": a0 }; };
15423
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15396
15424
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15397
15425
  __extends(WriteFixedListFieldComponent, _super);
15398
15426
  function WriteFixedListFieldComponent() {
@@ -15441,7 +15469,7 @@
15441
15469
  i0__namespace.ɵɵelementEnd();
15442
15470
  }
15443
15471
  if (rf & 2) {
15444
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15472
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15445
15473
  i0__namespace.ɵɵadvance(1);
15446
15474
  i0__namespace.ɵɵproperty("for", ctx.id());
15447
15475
  i0__namespace.ɵɵadvance(1);
@@ -15559,7 +15587,7 @@
15559
15587
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15560
15588
  }
15561
15589
  }
15562
- var _c0$H = function (a0) { return { selected: a0 }; };
15590
+ var _c0$I = function (a0) { return { selected: a0 }; };
15563
15591
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15564
15592
  if (rf & 1) {
15565
15593
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15572,7 +15600,7 @@
15572
15600
  if (rf & 2) {
15573
15601
  var radioButton_r4 = ctx.$implicit;
15574
15602
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15575
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15603
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15576
15604
  i0__namespace.ɵɵadvance(1);
15577
15605
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15578
15606
  i0__namespace.ɵɵadvance(1);
@@ -15742,7 +15770,7 @@
15742
15770
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15743
15771
  }
15744
15772
  }
15745
- var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
15773
+ var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
15746
15774
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15747
15775
  if (rf & 1) {
15748
15776
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15754,7 +15782,7 @@
15754
15782
  if (rf & 2) {
15755
15783
  var judicialUser_r5 = ctx.$implicit;
15756
15784
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15757
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15785
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15758
15786
  i0__namespace.ɵɵadvance(1);
15759
15787
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15760
15788
  }
@@ -16101,7 +16129,7 @@
16101
16129
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
16102
16130
  }
16103
16131
  }
16104
- var _c0$F = function (a0) { return { "form-group-error": a0 }; };
16132
+ var _c0$G = function (a0) { return { "form-group-error": a0 }; };
16105
16133
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
16106
16134
  __extends(WriteMoneyGbpFieldComponent, _super);
16107
16135
  function WriteMoneyGbpFieldComponent() {
@@ -16131,7 +16159,7 @@
16131
16159
  i0__namespace.ɵɵelementEnd();
16132
16160
  }
16133
16161
  if (rf & 2) {
16134
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$F, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
16162
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$G, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
16135
16163
  i0__namespace.ɵɵadvance(1);
16136
16164
  i0__namespace.ɵɵproperty("for", ctx.id());
16137
16165
  i0__namespace.ɵɵadvance(1);
@@ -16279,7 +16307,7 @@
16279
16307
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
16280
16308
  }
16281
16309
  }
16282
- var _c0$E = function (a0) { return { "error": a0 }; };
16310
+ var _c0$F = function (a0) { return { "error": a0 }; };
16283
16311
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
16284
16312
  __extends(WriteMultiSelectListFieldComponent, _super);
16285
16313
  function WriteMultiSelectListFieldComponent() {
@@ -16343,7 +16371,7 @@
16343
16371
  i0__namespace.ɵɵelementEnd();
16344
16372
  }
16345
16373
  if (rf & 2) {
16346
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$E, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16374
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$F, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16347
16375
  i0__namespace.ɵɵadvance(3);
16348
16376
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
16349
16377
  i0__namespace.ɵɵadvance(1);
@@ -16434,7 +16462,7 @@
16434
16462
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16435
16463
  }
16436
16464
  }
16437
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
16465
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
16438
16466
  var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
16439
16467
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16440
16468
  __extends(WriteNumberFieldComponent, _super);
@@ -16459,7 +16487,7 @@
16459
16487
  i0__namespace.ɵɵelementEnd();
16460
16488
  }
16461
16489
  if (rf & 2) {
16462
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$D, !ctx.numberControl.valid && ctx.numberControl.dirty));
16490
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$E, !ctx.numberControl.valid && ctx.numberControl.dirty));
16463
16491
  i0__namespace.ɵɵadvance(1);
16464
16492
  i0__namespace.ɵɵproperty("for", ctx.id());
16465
16493
  i0__namespace.ɵɵadvance(1);
@@ -16760,7 +16788,7 @@
16760
16788
  i0__namespace.ɵɵelementEnd();
16761
16789
  }
16762
16790
  }
16763
- var _c0$C = function (a0) { return { "scroll-container ": a0 }; };
16791
+ var _c0$D = function (a0) { return { "scroll-container ": a0 }; };
16764
16792
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
16765
16793
  if (rf & 1) {
16766
16794
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -16776,7 +16804,7 @@
16776
16804
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
16777
16805
  var tmp_0_0 = null;
16778
16806
  var tmp_2_0 = null;
16779
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$C, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16807
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16780
16808
  i0__namespace.ɵɵadvance(2);
16781
16809
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16782
16810
  i0__namespace.ɵɵadvance(2);
@@ -17180,6 +17208,231 @@
17180
17208
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
17181
17209
  })();
17182
17210
 
17211
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
17212
+ if (rf & 1) {
17213
+ i0__namespace.ɵɵelementStart(0, "div");
17214
+ i0__namespace.ɵɵtext(1);
17215
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
17216
+ i0__namespace.ɵɵelementEnd();
17217
+ }
17218
+ if (rf & 2) {
17219
+ var value_r1 = ctx.$implicit;
17220
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
17221
+ i0__namespace.ɵɵadvance(1);
17222
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
17223
+ }
17224
+ }
17225
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
17226
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
17227
+ function ReadDynamicMultiSelectListFieldComponent() {
17228
+ return _super !== null && _super.apply(this, arguments) || this;
17229
+ }
17230
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
17231
+ /**
17232
+ *
17233
+ * Reassigning list_items from formatted_list when list_items is empty
17234
+ */
17235
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
17236
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
17237
+ }
17238
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
17239
+ this.caseField.value = this.caseField.formatted_value.value;
17240
+ }
17241
+ _super.prototype.ngOnInit.call(this);
17242
+ };
17243
+ return ReadDynamicMultiSelectListFieldComponent;
17244
+ }(AbstractFieldReadComponent));
17245
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
17246
+ 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) {
17247
+ if (rf & 1) {
17248
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
17249
+ }
17250
+ if (rf & 2) {
17251
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
17252
+ }
17253
+ }, 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}"] });
17254
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
17255
+ (function () {
17256
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
17257
+ type: i0.Component,
17258
+ args: [{
17259
+ selector: 'ccd-read-dynamic-multi-select-list-field',
17260
+ templateUrl: './read-dynamic-multi-select-list-field.html',
17261
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
17262
+ }]
17263
+ }], null, null);
17264
+ })();
17265
+
17266
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
17267
+ if (rf & 1) {
17268
+ i0__namespace.ɵɵelementStart(0, "span", 5);
17269
+ i0__namespace.ɵɵtext(1);
17270
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
17271
+ i0__namespace.ɵɵelementEnd();
17272
+ }
17273
+ if (rf & 2) {
17274
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
17275
+ i0__namespace.ɵɵadvance(1);
17276
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
17277
+ }
17278
+ }
17279
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
17280
+ if (rf & 1) {
17281
+ i0__namespace.ɵɵelementStart(0, "span", 6);
17282
+ i0__namespace.ɵɵtext(1);
17283
+ i0__namespace.ɵɵelementEnd();
17284
+ }
17285
+ if (rf & 2) {
17286
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
17287
+ i0__namespace.ɵɵadvance(1);
17288
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
17289
+ }
17290
+ }
17291
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
17292
+ if (rf & 1) {
17293
+ i0__namespace.ɵɵelementStart(0, "span", 7);
17294
+ i0__namespace.ɵɵtext(1);
17295
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
17296
+ i0__namespace.ɵɵelementEnd();
17297
+ }
17298
+ if (rf & 2) {
17299
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
17300
+ i0__namespace.ɵɵadvance(1);
17301
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
17302
+ }
17303
+ }
17304
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
17305
+ if (rf & 1) {
17306
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
17307
+ i0__namespace.ɵɵelementContainerStart(0);
17308
+ i0__namespace.ɵɵelementStart(1, "div", 8);
17309
+ i0__namespace.ɵɵelementStart(2, "input", 9);
17310
+ 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); });
17311
+ i0__namespace.ɵɵelementEnd();
17312
+ i0__namespace.ɵɵelementStart(3, "label", 10);
17313
+ i0__namespace.ɵɵtext(4);
17314
+ i0__namespace.ɵɵelementEnd();
17315
+ i0__namespace.ɵɵelementEnd();
17316
+ i0__namespace.ɵɵelementContainerEnd();
17317
+ }
17318
+ if (rf & 2) {
17319
+ var checkbox_r4 = ctx.$implicit;
17320
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
17321
+ i0__namespace.ɵɵadvance(2);
17322
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
17323
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
17324
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
17325
+ i0__namespace.ɵɵadvance(1);
17326
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
17327
+ i0__namespace.ɵɵadvance(1);
17328
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
17329
+ }
17330
+ }
17331
+ var _c0$C = function (a0) { return { "error": a0 }; };
17332
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
17333
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
17334
+ function WriteDynamicMultiSelectListFieldComponent() {
17335
+ return _super !== null && _super.apply(this, arguments) || this;
17336
+ }
17337
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
17338
+ var _this = this;
17339
+ this.checkboxes = new i2.FormArray([]);
17340
+ this.setInitialCaseList();
17341
+ this.setInitialCaseFieldValue();
17342
+ // Initialise array with existing values
17343
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
17344
+ var values = this.caseField.value;
17345
+ values.forEach(function (value) {
17346
+ _this.checkboxes.push(new i2.FormControl(value));
17347
+ });
17348
+ }
17349
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
17350
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
17351
+ };
17352
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
17353
+ var _this = this;
17354
+ var target = event.target;
17355
+ if (!target || !target.value) {
17356
+ return;
17357
+ }
17358
+ var selectedListItem = this.getValueListItem(target.value);
17359
+ if (!this.isSelected(target.value)) {
17360
+ // Add a new control in the FormArray
17361
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
17362
+ }
17363
+ else {
17364
+ // Remove the control from the FormArray
17365
+ this.checkboxes.controls.forEach(function (ctrl, i) {
17366
+ if (ctrl.value.code === target.value) {
17367
+ _this.checkboxes.removeAt(i);
17368
+ }
17369
+ });
17370
+ }
17371
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
17372
+ };
17373
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
17374
+ if (this.checkboxes && this.checkboxes.controls) {
17375
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
17376
+ }
17377
+ };
17378
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
17379
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
17380
+ };
17381
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
17382
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
17383
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
17384
+ if (!hasListItems && hasFormattedListItems) {
17385
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
17386
+ }
17387
+ };
17388
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
17389
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
17390
+ this.caseField.value = this.caseField.formatted_value.value;
17391
+ }
17392
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
17393
+ if (isNull || !Array.isArray(this.caseField.value)) {
17394
+ this.caseField.value = [];
17395
+ }
17396
+ };
17397
+ return WriteDynamicMultiSelectListFieldComponent;
17398
+ }(AbstractFieldWriteComponent));
17399
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
17400
+ 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) {
17401
+ if (rf & 1) {
17402
+ i0__namespace.ɵɵelementStart(0, "div", 0);
17403
+ i0__namespace.ɵɵelementStart(1, "fieldset");
17404
+ i0__namespace.ɵɵelementStart(2, "legend");
17405
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
17406
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
17407
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
17408
+ i0__namespace.ɵɵelementEnd();
17409
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
17410
+ i0__namespace.ɵɵelementEnd();
17411
+ i0__namespace.ɵɵelementEnd();
17412
+ }
17413
+ if (rf & 2) {
17414
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
17415
+ i0__namespace.ɵɵadvance(3);
17416
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17417
+ i0__namespace.ɵɵadvance(1);
17418
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
17419
+ i0__namespace.ɵɵadvance(1);
17420
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
17421
+ i0__namespace.ɵɵadvance(1);
17422
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
17423
+ }
17424
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17425
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
17426
+ (function () {
17427
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
17428
+ type: i0.Component,
17429
+ args: [{
17430
+ selector: 'ccd-write-dynamic-multi-select-list-field',
17431
+ templateUrl: './write-dynamic-multi-select-list-field.html'
17432
+ }]
17433
+ }], null, null);
17434
+ })();
17435
+
17183
17436
  var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
17184
17437
  __extends(ReadPhoneUKFieldComponent, _super);
17185
17438
  function ReadPhoneUKFieldComponent() {
@@ -17840,6 +18093,8 @@
17840
18093
  return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
17841
18094
  case 'DynamicRadioList':
17842
18095
  return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
18096
+ case 'DynamicMultiSelectList':
18097
+ return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
17843
18098
  case 'FixedRadioList':
17844
18099
  return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
17845
18100
  case 'Complex':
@@ -17908,7 +18163,7 @@
17908
18163
  })();
17909
18164
 
17910
18165
  var _c0$x = ["fieldContainer"];
17911
- var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
18166
+ var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
17912
18167
  var FieldReadComponent = /** @class */ (function (_super) {
17913
18168
  __extends(FieldReadComponent, _super);
17914
18169
  function FieldReadComponent(resolver, paletteService) {
@@ -17998,7 +18253,7 @@
17998
18253
  })();
17999
18254
 
18000
18255
  var _c0$w = ["fieldContainer"];
18001
- var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
18256
+ var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
18002
18257
  var FieldWriteComponent = /** @class */ (function (_super) {
18003
18258
  __extends(FieldWriteComponent, _super);
18004
18259
  function FieldWriteComponent(resolver, paletteService) {
@@ -18360,7 +18615,7 @@
18360
18615
  i0__namespace.ɵɵadvance(2);
18361
18616
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18362
18617
  }
18363
- }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
18618
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder,.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
18364
18619
  (function () {
18365
18620
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18366
18621
  type: i0.Component,
@@ -25087,6 +25342,9 @@
25087
25342
  WriteDocumentFieldComponent,
25088
25343
  WriteDynamicListFieldComponent,
25089
25344
  WriteDynamicRadioListFieldComponent,
25345
+ WriteDynamicMultiSelectListFieldComponent,
25346
+ ReadDynamicMultiSelectListFieldComponent,
25347
+ WriteDynamicMultiSelectListFieldComponent,
25090
25348
  WriteTextFieldComponent,
25091
25349
  WriteDateContainerFieldComponent,
25092
25350
  WriteTextAreaFieldComponent,
@@ -25122,7 +25380,14 @@
25122
25380
  CheckYourAnswersComponent,
25123
25381
  WriteLinkedCasesComponent,
25124
25382
  UnLinkCasesComponent,
25125
- NoLinkedCasesComponent
25383
+ NoLinkedCasesComponent,
25384
+ // component for dynamic list
25385
+ WriteDynamicMultiSelectListFieldComponent,
25386
+ WriteDynamicRadioListFieldComponent,
25387
+ WriteDynamicListFieldComponent,
25388
+ ReadDynamicMultiSelectListFieldComponent,
25389
+ ReadDynamicListFieldComponent,
25390
+ ReadDynamicRadioListFieldComponent
25126
25391
  ];
25127
25392
  var PaletteModule = /** @class */ (function () {
25128
25393
  function PaletteModule() {
@@ -25246,6 +25511,9 @@
25246
25511
  WriteDocumentFieldComponent,
25247
25512
  WriteDynamicListFieldComponent,
25248
25513
  WriteDynamicRadioListFieldComponent,
25514
+ WriteDynamicMultiSelectListFieldComponent,
25515
+ ReadDynamicMultiSelectListFieldComponent,
25516
+ WriteDynamicMultiSelectListFieldComponent,
25249
25517
  WriteTextFieldComponent,
25250
25518
  WriteDateContainerFieldComponent,
25251
25519
  WriteTextAreaFieldComponent,
@@ -25281,7 +25549,14 @@
25281
25549
  CheckYourAnswersComponent,
25282
25550
  WriteLinkedCasesComponent,
25283
25551
  UnLinkCasesComponent,
25284
- NoLinkedCasesComponent], imports: [i1.CommonModule,
25552
+ NoLinkedCasesComponent,
25553
+ // component for dynamic list
25554
+ WriteDynamicMultiSelectListFieldComponent,
25555
+ WriteDynamicRadioListFieldComponent,
25556
+ WriteDynamicListFieldComponent,
25557
+ ReadDynamicMultiSelectListFieldComponent,
25558
+ ReadDynamicListFieldComponent,
25559
+ ReadDynamicRadioListFieldComponent], imports: [i1.CommonModule,
25285
25560
  i1$1.RouterModule,
25286
25561
  i2.FormsModule,
25287
25562
  i2.ReactiveFormsModule,
@@ -25364,6 +25639,9 @@
25364
25639
  WriteDocumentFieldComponent,
25365
25640
  WriteDynamicListFieldComponent,
25366
25641
  WriteDynamicRadioListFieldComponent,
25642
+ WriteDynamicMultiSelectListFieldComponent,
25643
+ ReadDynamicMultiSelectListFieldComponent,
25644
+ WriteDynamicMultiSelectListFieldComponent,
25367
25645
  WriteTextFieldComponent,
25368
25646
  WriteDateContainerFieldComponent,
25369
25647
  WriteTextAreaFieldComponent,
@@ -25399,7 +25677,14 @@
25399
25677
  CheckYourAnswersComponent,
25400
25678
  WriteLinkedCasesComponent,
25401
25679
  UnLinkCasesComponent,
25402
- NoLinkedCasesComponent] });
25680
+ NoLinkedCasesComponent,
25681
+ // component for dynamic list
25682
+ WriteDynamicMultiSelectListFieldComponent,
25683
+ WriteDynamicRadioListFieldComponent,
25684
+ WriteDynamicListFieldComponent,
25685
+ ReadDynamicMultiSelectListFieldComponent,
25686
+ ReadDynamicListFieldComponent,
25687
+ ReadDynamicRadioListFieldComponent] });
25403
25688
  })();
25404
25689
  (function () {
25405
25690
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -35440,6 +35725,7 @@
35440
35725
  exports.ReadDateFieldComponent = ReadDateFieldComponent;
35441
35726
  exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
35442
35727
  exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
35728
+ exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
35443
35729
  exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
35444
35730
  exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
35445
35731
  exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
@@ -35516,6 +35802,7 @@
35516
35802
  exports.WriteDateFieldComponent = WriteDateFieldComponent;
35517
35803
  exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
35518
35804
  exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
35805
+ exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
35519
35806
  exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
35520
35807
  exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
35521
35808
  exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;