@hmcts/ccd-case-ui-toolkit 5.0.55-rollback-case-link → 6.0.2-migration-dynamic-list-rc1

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 +53 -51
  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$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
121
+ var _c0$Z = [[["", "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$Y);
131
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
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$X = [[["", "headerNavigation", ""]]];
210
+ var _c0$Y = [[["", "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$X);
224
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
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$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
285
+ var _c0$X = [[["", "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$W);
295
+ i0__namespace.ɵɵprojectionDef(_c0$X);
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$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
440
+ var _c0$W = [[["", "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$V);
450
+ i0__namespace.ɵɵprojectionDef(_c0$W);
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$U = function (a0) { return { "govuk-input--error": a0 }; };
797
+ var _c0$V = 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$U, 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$V, 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$U, 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$V, 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$U, 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$V, 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$U, ctx.isInvalid));
1089
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$V, 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$U, ctx.isInvalid));
1093
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$V, 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$U, ctx.isInvalid));
1097
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$V, 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$T = ["*"];
1178
+ var _c0$U = ["*"];
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$T, 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$U, 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$S = function (a0) { return { "js-hidden": a0 }; };
1474
+ var _c0$T = 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$S, !ctx.selected));
1490
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$T, !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$R = ["tab"];
1513
+ var _c0$S = ["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$R, 1);
1567
+ i0__namespace.ɵɵviewQuery(_c0$S, 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$Q = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1646
+ var _c0$R = 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$Q, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1667
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$R, 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);
@@ -3302,9 +3302,12 @@
3302
3302
  }
3303
3303
  Object.defineProperty(CaseField.prototype, "value", {
3304
3304
  get: function () {
3305
- if (this.isDynamic()) {
3305
+ if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3306
3306
  return this._value && this._value.value ? this._value.value.code : this._value;
3307
3307
  }
3308
+ else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
3309
+ return this._value && this._value.value ? this._value.value : this._value;
3310
+ }
3308
3311
  else {
3309
3312
  return this._value;
3310
3313
  }
@@ -3394,7 +3397,7 @@
3394
3397
  };
3395
3398
  CaseField.prototype.isDynamic = function () {
3396
3399
  var _this = this;
3397
- var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
3400
+ var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList', 'DynamicMultiSelectList'];
3398
3401
  if (!this.field_type) {
3399
3402
  return false;
3400
3403
  }
@@ -5481,6 +5484,9 @@
5481
5484
  }
5482
5485
  caseFields.forEach(function (caseField) {
5483
5486
  switch (caseField.field_type.type) {
5487
+ case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
5488
+ _this.convertArrayToDynamicListOutput(caseField, data);
5489
+ break;
5484
5490
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
5485
5491
  case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
5486
5492
  _this.convertStringToDynamicListOutput(caseField, data);
@@ -5498,6 +5504,17 @@
5498
5504
  }
5499
5505
  });
5500
5506
  };
5507
+ FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
5508
+ var values = data[field.id];
5509
+ if (Array.isArray(values)) {
5510
+ var listItems = this.getListItems(field);
5511
+ var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
5512
+ data[field.id] = {
5513
+ value: matches,
5514
+ list_items: listItems
5515
+ };
5516
+ }
5517
+ };
5501
5518
  FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
5502
5519
  var stringValue = data[field.id];
5503
5520
  if (typeof stringValue === 'string') {
@@ -5528,6 +5545,7 @@
5528
5545
  FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
5529
5546
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
5530
5547
  FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
5548
+ FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
5531
5549
  FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
5532
5550
  FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
5533
5551
  (function () {
@@ -11442,7 +11460,7 @@
11442
11460
  return AddressOption;
11443
11461
  }());
11444
11462
 
11445
- var _c0$P = ["writeComplexFieldComponent"];
11463
+ var _c0$Q = ["writeComplexFieldComponent"];
11446
11464
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11447
11465
  if (rf & 1) {
11448
11466
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11656,7 +11674,7 @@
11656
11674
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11657
11675
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11658
11676
  if (rf & 1) {
11659
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
11677
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
11660
11678
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11661
11679
  }
11662
11680
  if (rf & 2) {
@@ -12316,7 +12334,7 @@
12316
12334
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
12317
12335
  }
12318
12336
  }
12319
- var _c0$O = function (a0) { return { "form-group-error": a0 }; };
12337
+ var _c0$P = function (a0) { return { "form-group-error": a0 }; };
12320
12338
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12321
12339
  if (rf & 1) {
12322
12340
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12337,7 +12355,7 @@
12337
12355
  i0__namespace.ɵɵadvance(1);
12338
12356
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12339
12357
  i0__namespace.ɵɵadvance(1);
12340
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$O, ctx_r1.errorMessages.length > 0));
12358
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$P, ctx_r1.errorMessages.length > 0));
12341
12359
  i0__namespace.ɵɵadvance(1);
12342
12360
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
12343
12361
  i0__namespace.ɵɵadvance(1);
@@ -12767,7 +12785,7 @@
12767
12785
  }], null, null);
12768
12786
  })();
12769
12787
 
12770
- var _c0$N = ["writeComplexFieldComponent"];
12788
+ var _c0$O = ["writeComplexFieldComponent"];
12771
12789
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12772
12790
  if (rf & 1) {
12773
12791
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12872,7 +12890,7 @@
12872
12890
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12873
12891
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12874
12892
  if (rf & 1) {
12875
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
12893
+ i0__namespace.ɵɵviewQuery(_c0$O, 1);
12876
12894
  }
12877
12895
  if (rf & 2) {
12878
12896
  var _t = void 0;
@@ -12917,7 +12935,7 @@
12917
12935
  }] });
12918
12936
  })();
12919
12937
 
12920
- var _c0$M = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12938
+ var _c0$N = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12921
12939
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12922
12940
  if (rf & 1) {
12923
12941
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12932,7 +12950,7 @@
12932
12950
  if (rf & 2) {
12933
12951
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12934
12952
  i0__namespace.ɵɵadvance(4);
12935
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$M, 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);
12953
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$N, 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);
12936
12954
  }
12937
12955
  }
12938
12956
  var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -13083,7 +13101,7 @@
13083
13101
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
13084
13102
  })();
13085
13103
 
13086
- var _c0$L = ["collectionItem"];
13104
+ var _c0$M = ["collectionItem"];
13087
13105
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
13088
13106
  if (rf & 1) {
13089
13107
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13325,6 +13343,11 @@
13325
13343
  // Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
13326
13344
  this.formArray.setErrors(null);
13327
13345
  var item = { value: null };
13346
+ if (this.isCollectionDynamic()) {
13347
+ item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
13348
+ var key = Number(item['id'][item['id'].length - 1]) + 1;
13349
+ item.id = item['id'].replace(/.$/, key.toString());
13350
+ }
13328
13351
  this.caseField.value.push(item);
13329
13352
  var index = this.caseField.value.length - 1;
13330
13353
  var caseField = this.buildCaseField(item, index, true);
@@ -13347,6 +13370,12 @@
13347
13370
  setTimeout(function () { return _this.focusLastItem(); });
13348
13371
  }
13349
13372
  };
13373
+ WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
13374
+ if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
13375
+ return false;
13376
+ }
13377
+ return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
13378
+ };
13350
13379
  WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
13351
13380
  if (isNew === void 0) { isNew = false; }
13352
13381
  var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
@@ -13496,7 +13525,7 @@
13496
13525
  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)); };
13497
13526
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13498
13527
  if (rf & 1) {
13499
- i0__namespace.ɵɵviewQuery(_c0$L, 1);
13528
+ i0__namespace.ɵɵviewQuery(_c0$M, 1);
13500
13529
  }
13501
13530
  if (rf & 2) {
13502
13531
  var _t = void 0;
@@ -14084,7 +14113,7 @@
14084
14113
  }], null, null);
14085
14114
  })();
14086
14115
 
14087
- var _c0$K = ["fileInput"];
14116
+ var _c0$L = ["fileInput"];
14088
14117
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
14089
14118
  if (rf & 1) {
14090
14119
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14378,7 +14407,7 @@
14378
14407
  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)); };
14379
14408
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14380
14409
  if (rf & 1) {
14381
- i0__namespace.ɵɵviewQuery(_c0$K, 1);
14410
+ i0__namespace.ɵɵviewQuery(_c0$L, 1);
14382
14411
  }
14383
14412
  if (rf & 2) {
14384
14413
  var _t = void 0;
@@ -14578,7 +14607,7 @@
14578
14607
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14579
14608
  }
14580
14609
  }
14581
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14610
+ var _c0$K = function (a0) { return { "form-group-error": a0 }; };
14582
14611
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14583
14612
  __extends(WriteDynamicListFieldComponent, _super);
14584
14613
  function WriteDynamicListFieldComponent() {
@@ -14627,7 +14656,7 @@
14627
14656
  i0__namespace.ɵɵelementEnd();
14628
14657
  }
14629
14658
  if (rf & 2) {
14630
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$J, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14659
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$K, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14631
14660
  i0__namespace.ɵɵadvance(1);
14632
14661
  i0__namespace.ɵɵproperty("for", ctx.id());
14633
14662
  i0__namespace.ɵɵadvance(1);
@@ -14777,7 +14806,7 @@
14777
14806
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14778
14807
  }
14779
14808
  }
14780
- var _c0$I = function (a0) { return { selected: a0 }; };
14809
+ var _c0$J = function (a0) { return { selected: a0 }; };
14781
14810
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14782
14811
  if (rf & 1) {
14783
14812
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14790,12 +14819,11 @@
14790
14819
  if (rf & 2) {
14791
14820
  var radioButton_r5 = ctx.$implicit;
14792
14821
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14793
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14822
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$J, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14794
14823
  i0__namespace.ɵɵadvance(1);
14795
- i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14796
- i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14824
+ 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);
14797
14825
  i0__namespace.ɵɵadvance(1);
14798
- i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
14826
+ i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
14799
14827
  i0__namespace.ɵɵadvance(1);
14800
14828
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14801
14829
  }
@@ -14824,8 +14852,8 @@
14824
14852
  this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
14825
14853
  this.dynamicRadioListControl.setValue(this.caseField.value);
14826
14854
  };
14827
- WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
14828
- return this.id() + "-" + name;
14855
+ WriteDynamicRadioListFieldComponent.prototype.createElementId = function (name) {
14856
+ return this.parent && this.parent.value ? this.parent.value.id + this.parent.value.value : _super.prototype.createElementId.call(this, name);
14829
14857
  };
14830
14858
  return WriteDynamicRadioListFieldComponent;
14831
14859
  }(AbstractFieldWriteComponent));
@@ -14955,7 +14983,7 @@
14955
14983
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
14956
14984
  }
14957
14985
  }
14958
- var _c0$H = function (a0) { return { "form-group-error": a0 }; };
14986
+ var _c0$I = function (a0) { return { "form-group-error": a0 }; };
14959
14987
  var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
14960
14988
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
14961
14989
  __extends(WriteEmailFieldComponent, _super);
@@ -14980,7 +15008,7 @@
14980
15008
  i0__namespace.ɵɵelementEnd();
14981
15009
  }
14982
15010
  if (rf & 2) {
14983
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$H, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15011
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$I, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14984
15012
  i0__namespace.ɵɵadvance(1);
14985
15013
  i0__namespace.ɵɵproperty("for", ctx.id());
14986
15014
  i0__namespace.ɵɵadvance(1);
@@ -15112,7 +15140,7 @@
15112
15140
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
15113
15141
  }
15114
15142
  }
15115
- var _c0$G = function (a0) { return { "form-group-error": a0 }; };
15143
+ var _c0$H = function (a0) { return { "form-group-error": a0 }; };
15116
15144
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15117
15145
  __extends(WriteFixedListFieldComponent, _super);
15118
15146
  function WriteFixedListFieldComponent() {
@@ -15161,7 +15189,7 @@
15161
15189
  i0__namespace.ɵɵelementEnd();
15162
15190
  }
15163
15191
  if (rf & 2) {
15164
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15192
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$H, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15165
15193
  i0__namespace.ɵɵadvance(1);
15166
15194
  i0__namespace.ɵɵproperty("for", ctx.id());
15167
15195
  i0__namespace.ɵɵadvance(1);
@@ -15279,7 +15307,7 @@
15279
15307
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15280
15308
  }
15281
15309
  }
15282
- var _c0$F = function (a0) { return { selected: a0 }; };
15310
+ var _c0$G = function (a0) { return { selected: a0 }; };
15283
15311
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15284
15312
  if (rf & 1) {
15285
15313
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15292,7 +15320,7 @@
15292
15320
  if (rf & 2) {
15293
15321
  var radioButton_r4 = ctx.$implicit;
15294
15322
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15295
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$F, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15323
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$G, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15296
15324
  i0__namespace.ɵɵadvance(1);
15297
15325
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15298
15326
  i0__namespace.ɵɵadvance(1);
@@ -15462,7 +15490,7 @@
15462
15490
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15463
15491
  }
15464
15492
  }
15465
- var _c0$E = function (a0) { return { "hide-autocomplete": a0 }; };
15493
+ var _c0$F = function (a0) { return { "hide-autocomplete": a0 }; };
15466
15494
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15467
15495
  if (rf & 1) {
15468
15496
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15474,7 +15502,7 @@
15474
15502
  if (rf & 2) {
15475
15503
  var judicialUser_r5 = ctx.$implicit;
15476
15504
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15477
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15505
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15478
15506
  i0__namespace.ɵɵadvance(1);
15479
15507
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15480
15508
  }
@@ -15821,7 +15849,7 @@
15821
15849
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
15822
15850
  }
15823
15851
  }
15824
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
15852
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
15825
15853
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
15826
15854
  __extends(WriteMoneyGbpFieldComponent, _super);
15827
15855
  function WriteMoneyGbpFieldComponent() {
@@ -15851,7 +15879,7 @@
15851
15879
  i0__namespace.ɵɵelementEnd();
15852
15880
  }
15853
15881
  if (rf & 2) {
15854
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15882
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15855
15883
  i0__namespace.ɵɵadvance(1);
15856
15884
  i0__namespace.ɵɵproperty("for", ctx.id());
15857
15885
  i0__namespace.ɵɵadvance(1);
@@ -15999,7 +16027,7 @@
15999
16027
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
16000
16028
  }
16001
16029
  }
16002
- var _c0$C = function (a0) { return { "error": a0 }; };
16030
+ var _c0$D = function (a0) { return { "error": a0 }; };
16003
16031
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
16004
16032
  __extends(WriteMultiSelectListFieldComponent, _super);
16005
16033
  function WriteMultiSelectListFieldComponent() {
@@ -16063,7 +16091,7 @@
16063
16091
  i0__namespace.ɵɵelementEnd();
16064
16092
  }
16065
16093
  if (rf & 2) {
16066
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16094
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16067
16095
  i0__namespace.ɵɵadvance(3);
16068
16096
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
16069
16097
  i0__namespace.ɵɵadvance(1);
@@ -16154,7 +16182,7 @@
16154
16182
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16155
16183
  }
16156
16184
  }
16157
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
16185
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
16158
16186
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16159
16187
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16160
16188
  __extends(WriteNumberFieldComponent, _super);
@@ -16179,7 +16207,7 @@
16179
16207
  i0__namespace.ɵɵelementEnd();
16180
16208
  }
16181
16209
  if (rf & 2) {
16182
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
16210
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
16183
16211
  i0__namespace.ɵɵadvance(1);
16184
16212
  i0__namespace.ɵɵproperty("for", ctx.id());
16185
16213
  i0__namespace.ɵɵadvance(1);
@@ -16480,7 +16508,7 @@
16480
16508
  i0__namespace.ɵɵelementEnd();
16481
16509
  }
16482
16510
  }
16483
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
16511
+ var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
16484
16512
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
16485
16513
  if (rf & 1) {
16486
16514
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -16496,7 +16524,7 @@
16496
16524
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
16497
16525
  var tmp_0_0 = null;
16498
16526
  var tmp_2_0 = null;
16499
- 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));
16527
+ 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));
16500
16528
  i0__namespace.ɵɵadvance(2);
16501
16529
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16502
16530
  i0__namespace.ɵɵadvance(2);
@@ -16900,6 +16928,231 @@
16900
16928
  }], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
16901
16929
  })();
16902
16930
 
16931
+ function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
16932
+ if (rf & 1) {
16933
+ i0__namespace.ɵɵelementStart(0, "div");
16934
+ i0__namespace.ɵɵtext(1);
16935
+ i0__namespace.ɵɵpipe(2, "ccdFixedList");
16936
+ i0__namespace.ɵɵelementEnd();
16937
+ }
16938
+ if (rf & 2) {
16939
+ var value_r1 = ctx.$implicit;
16940
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
16941
+ i0__namespace.ɵɵadvance(1);
16942
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
16943
+ }
16944
+ }
16945
+ var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
16946
+ __extends(ReadDynamicMultiSelectListFieldComponent, _super);
16947
+ function ReadDynamicMultiSelectListFieldComponent() {
16948
+ return _super !== null && _super.apply(this, arguments) || this;
16949
+ }
16950
+ ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
16951
+ /**
16952
+ *
16953
+ * Reassigning list_items from formatted_list when list_items is empty
16954
+ */
16955
+ if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
16956
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
16957
+ }
16958
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
16959
+ this.caseField.value = this.caseField.formatted_value.value;
16960
+ }
16961
+ _super.prototype.ngOnInit.call(this);
16962
+ };
16963
+ return ReadDynamicMultiSelectListFieldComponent;
16964
+ }(AbstractFieldReadComponent));
16965
+ ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
16966
+ 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) {
16967
+ if (rf & 1) {
16968
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
16969
+ }
16970
+ if (rf & 2) {
16971
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
16972
+ }
16973
+ }, 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}"] });
16974
+ var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
16975
+ (function () {
16976
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
16977
+ type: i0.Component,
16978
+ args: [{
16979
+ selector: 'ccd-read-dynamic-multi-select-list-field',
16980
+ templateUrl: './read-dynamic-multi-select-list-field.html',
16981
+ styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
16982
+ }]
16983
+ }], null, null);
16984
+ })();
16985
+
16986
+ function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
16987
+ if (rf & 1) {
16988
+ i0__namespace.ɵɵelementStart(0, "span", 5);
16989
+ i0__namespace.ɵɵtext(1);
16990
+ i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
16991
+ i0__namespace.ɵɵelementEnd();
16992
+ }
16993
+ if (rf & 2) {
16994
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
16995
+ i0__namespace.ɵɵadvance(1);
16996
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
16997
+ }
16998
+ }
16999
+ function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
17000
+ if (rf & 1) {
17001
+ i0__namespace.ɵɵelementStart(0, "span", 6);
17002
+ i0__namespace.ɵɵtext(1);
17003
+ i0__namespace.ɵɵelementEnd();
17004
+ }
17005
+ if (rf & 2) {
17006
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
17007
+ i0__namespace.ɵɵadvance(1);
17008
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
17009
+ }
17010
+ }
17011
+ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
17012
+ if (rf & 1) {
17013
+ i0__namespace.ɵɵelementStart(0, "span", 7);
17014
+ i0__namespace.ɵɵtext(1);
17015
+ i0__namespace.ɵɵpipe(2, "ccdFirstError");
17016
+ i0__namespace.ɵɵelementEnd();
17017
+ }
17018
+ if (rf & 2) {
17019
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
17020
+ i0__namespace.ɵɵadvance(1);
17021
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
17022
+ }
17023
+ }
17024
+ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
17025
+ if (rf & 1) {
17026
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
17027
+ i0__namespace.ɵɵelementContainerStart(0);
17028
+ i0__namespace.ɵɵelementStart(1, "div", 8);
17029
+ i0__namespace.ɵɵelementStart(2, "input", 9);
17030
+ 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); });
17031
+ i0__namespace.ɵɵelementEnd();
17032
+ i0__namespace.ɵɵelementStart(3, "label", 10);
17033
+ i0__namespace.ɵɵtext(4);
17034
+ i0__namespace.ɵɵelementEnd();
17035
+ i0__namespace.ɵɵelementEnd();
17036
+ i0__namespace.ɵɵelementContainerEnd();
17037
+ }
17038
+ if (rf & 2) {
17039
+ var checkbox_r4 = ctx.$implicit;
17040
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
17041
+ i0__namespace.ɵɵadvance(2);
17042
+ i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
17043
+ i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
17044
+ i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
17045
+ i0__namespace.ɵɵadvance(1);
17046
+ i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
17047
+ i0__namespace.ɵɵadvance(1);
17048
+ i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
17049
+ }
17050
+ }
17051
+ var _c0$A = function (a0) { return { "error": a0 }; };
17052
+ var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
17053
+ __extends(WriteDynamicMultiSelectListFieldComponent, _super);
17054
+ function WriteDynamicMultiSelectListFieldComponent() {
17055
+ return _super !== null && _super.apply(this, arguments) || this;
17056
+ }
17057
+ WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
17058
+ var _this = this;
17059
+ this.checkboxes = new i2.FormArray([]);
17060
+ this.setInitialCaseList();
17061
+ this.setInitialCaseFieldValue();
17062
+ // Initialise array with existing values
17063
+ if (this.caseField.value && Array.isArray(this.caseField.value)) {
17064
+ var values = this.caseField.value;
17065
+ values.forEach(function (value) {
17066
+ _this.checkboxes.push(new i2.FormControl(value));
17067
+ });
17068
+ }
17069
+ this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
17070
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
17071
+ };
17072
+ WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
17073
+ var _this = this;
17074
+ var target = event.target;
17075
+ if (!target || !target.value) {
17076
+ return;
17077
+ }
17078
+ var selectedListItem = this.getValueListItem(target.value);
17079
+ if (!this.isSelected(target.value)) {
17080
+ // Add a new control in the FormArray
17081
+ this.checkboxes.push(new i2.FormControl(selectedListItem));
17082
+ }
17083
+ else {
17084
+ // Remove the control from the FormArray
17085
+ this.checkboxes.controls.forEach(function (ctrl, i) {
17086
+ if (ctrl.value.code === target.value) {
17087
+ _this.checkboxes.removeAt(i);
17088
+ }
17089
+ });
17090
+ }
17091
+ this.dynamicListFormControl.setValue(this.checkboxes.value);
17092
+ };
17093
+ WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
17094
+ if (this.checkboxes && this.checkboxes.controls) {
17095
+ return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
17096
+ }
17097
+ };
17098
+ WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
17099
+ return this.caseField.list_items.find(function (i) { return i.code === value; });
17100
+ };
17101
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
17102
+ var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
17103
+ var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
17104
+ if (!hasListItems && hasFormattedListItems) {
17105
+ this.caseField.list_items = this.caseField.formatted_value.list_items;
17106
+ }
17107
+ };
17108
+ WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
17109
+ if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
17110
+ this.caseField.value = this.caseField.formatted_value.value;
17111
+ }
17112
+ var isNull = this.caseField.value === undefined || this.caseField.value === '';
17113
+ if (isNull || !Array.isArray(this.caseField.value)) {
17114
+ this.caseField.value = [];
17115
+ }
17116
+ };
17117
+ return WriteDynamicMultiSelectListFieldComponent;
17118
+ }(AbstractFieldWriteComponent));
17119
+ WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
17120
+ 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) {
17121
+ if (rf & 1) {
17122
+ i0__namespace.ɵɵelementStart(0, "div", 0);
17123
+ i0__namespace.ɵɵelementStart(1, "fieldset");
17124
+ i0__namespace.ɵɵelementStart(2, "legend");
17125
+ i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
17126
+ i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
17127
+ i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
17128
+ i0__namespace.ɵɵelementEnd();
17129
+ i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
17130
+ i0__namespace.ɵɵelementEnd();
17131
+ i0__namespace.ɵɵelementEnd();
17132
+ }
17133
+ if (rf & 2) {
17134
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
17135
+ i0__namespace.ɵɵadvance(3);
17136
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17137
+ i0__namespace.ɵɵadvance(1);
17138
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
17139
+ i0__namespace.ɵɵadvance(1);
17140
+ i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
17141
+ i0__namespace.ɵɵadvance(1);
17142
+ i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
17143
+ }
17144
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17145
+ var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
17146
+ (function () {
17147
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
17148
+ type: i0.Component,
17149
+ args: [{
17150
+ selector: 'ccd-write-dynamic-multi-select-list-field',
17151
+ templateUrl: './write-dynamic-multi-select-list-field.html'
17152
+ }]
17153
+ }], null, null);
17154
+ })();
17155
+
16903
17156
  var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
16904
17157
  __extends(ReadPhoneUKFieldComponent, _super);
16905
17158
  function ReadPhoneUKFieldComponent() {
@@ -17560,6 +17813,8 @@
17560
17813
  return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
17561
17814
  case 'DynamicRadioList':
17562
17815
  return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
17816
+ case 'DynamicMultiSelectList':
17817
+ return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
17563
17818
  case 'FixedRadioList':
17564
17819
  return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
17565
17820
  case 'Complex':
@@ -17620,7 +17875,7 @@
17620
17875
  })();
17621
17876
 
17622
17877
  var _c0$v = ["fieldContainer"];
17623
- var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
17878
+ var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
17624
17879
  var FieldReadComponent = /** @class */ (function (_super) {
17625
17880
  __extends(FieldReadComponent, _super);
17626
17881
  function FieldReadComponent(resolver, paletteService) {
@@ -17710,7 +17965,7 @@
17710
17965
  })();
17711
17966
 
17712
17967
  var _c0$u = ["fieldContainer"];
17713
- var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
17968
+ var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
17714
17969
  var FieldWriteComponent = /** @class */ (function (_super) {
17715
17970
  __extends(FieldWriteComponent, _super);
17716
17971
  function FieldWriteComponent(resolver, paletteService) {
@@ -18072,7 +18327,7 @@
18072
18327
  i0__namespace.ɵɵadvance(2);
18073
18328
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18074
18329
  }
18075
- }, 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 });
18330
+ }, 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 });
18076
18331
  (function () {
18077
18332
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18078
18333
  type: i0.Component,
@@ -22495,6 +22750,9 @@
22495
22750
  WriteDocumentFieldComponent,
22496
22751
  WriteDynamicListFieldComponent,
22497
22752
  WriteDynamicRadioListFieldComponent,
22753
+ WriteDynamicMultiSelectListFieldComponent,
22754
+ ReadDynamicMultiSelectListFieldComponent,
22755
+ WriteDynamicMultiSelectListFieldComponent,
22498
22756
  WriteTextFieldComponent,
22499
22757
  WriteDateContainerFieldComponent,
22500
22758
  WriteTextAreaFieldComponent,
@@ -22522,7 +22780,14 @@
22522
22780
  CaseFileViewFolderSortComponent,
22523
22781
  CaseFileViewOverlayMenuComponent,
22524
22782
  CaseFileViewFolderDocumentActionsComponent,
22525
- CaseFileViewFolderSelectorComponent
22783
+ CaseFileViewFolderSelectorComponent,
22784
+ // component for dynamic list
22785
+ WriteDynamicMultiSelectListFieldComponent,
22786
+ WriteDynamicRadioListFieldComponent,
22787
+ WriteDynamicListFieldComponent,
22788
+ ReadDynamicMultiSelectListFieldComponent,
22789
+ ReadDynamicListFieldComponent,
22790
+ ReadDynamicRadioListFieldComponent
22526
22791
  ];
22527
22792
  var PaletteModule = /** @class */ (function () {
22528
22793
  function PaletteModule() {
@@ -22644,6 +22909,9 @@
22644
22909
  WriteDocumentFieldComponent,
22645
22910
  WriteDynamicListFieldComponent,
22646
22911
  WriteDynamicRadioListFieldComponent,
22912
+ WriteDynamicMultiSelectListFieldComponent,
22913
+ ReadDynamicMultiSelectListFieldComponent,
22914
+ WriteDynamicMultiSelectListFieldComponent,
22647
22915
  WriteTextFieldComponent,
22648
22916
  WriteDateContainerFieldComponent,
22649
22917
  WriteTextAreaFieldComponent,
@@ -22671,7 +22939,14 @@
22671
22939
  CaseFileViewFolderSortComponent,
22672
22940
  CaseFileViewOverlayMenuComponent,
22673
22941
  CaseFileViewFolderDocumentActionsComponent,
22674
- CaseFileViewFolderSelectorComponent], imports: [i1.CommonModule,
22942
+ CaseFileViewFolderSelectorComponent,
22943
+ // component for dynamic list
22944
+ WriteDynamicMultiSelectListFieldComponent,
22945
+ WriteDynamicRadioListFieldComponent,
22946
+ WriteDynamicListFieldComponent,
22947
+ ReadDynamicMultiSelectListFieldComponent,
22948
+ ReadDynamicListFieldComponent,
22949
+ ReadDynamicRadioListFieldComponent], imports: [i1.CommonModule,
22675
22950
  i1$1.RouterModule,
22676
22951
  i2.FormsModule,
22677
22952
  i2.ReactiveFormsModule,
@@ -22753,6 +23028,9 @@
22753
23028
  WriteDocumentFieldComponent,
22754
23029
  WriteDynamicListFieldComponent,
22755
23030
  WriteDynamicRadioListFieldComponent,
23031
+ WriteDynamicMultiSelectListFieldComponent,
23032
+ ReadDynamicMultiSelectListFieldComponent,
23033
+ WriteDynamicMultiSelectListFieldComponent,
22756
23034
  WriteTextFieldComponent,
22757
23035
  WriteDateContainerFieldComponent,
22758
23036
  WriteTextAreaFieldComponent,
@@ -22780,7 +23058,14 @@
22780
23058
  CaseFileViewFolderSortComponent,
22781
23059
  CaseFileViewOverlayMenuComponent,
22782
23060
  CaseFileViewFolderDocumentActionsComponent,
22783
- CaseFileViewFolderSelectorComponent] });
23061
+ CaseFileViewFolderSelectorComponent,
23062
+ // component for dynamic list
23063
+ WriteDynamicMultiSelectListFieldComponent,
23064
+ WriteDynamicRadioListFieldComponent,
23065
+ WriteDynamicListFieldComponent,
23066
+ ReadDynamicMultiSelectListFieldComponent,
23067
+ ReadDynamicListFieldComponent,
23068
+ ReadDynamicRadioListFieldComponent] });
22784
23069
  })();
22785
23070
  (function () {
22786
23071
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -32793,6 +33078,7 @@
32793
33078
  exports.ReadDateFieldComponent = ReadDateFieldComponent;
32794
33079
  exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
32795
33080
  exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
33081
+ exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
32796
33082
  exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
32797
33083
  exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
32798
33084
  exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
@@ -32866,6 +33152,7 @@
32866
33152
  exports.WriteDateFieldComponent = WriteDateFieldComponent;
32867
33153
  exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
32868
33154
  exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
33155
+ exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
32869
33156
  exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
32870
33157
  exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
32871
33158
  exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;