@hmcts/ccd-case-ui-toolkit 6.13.10-dl-rc1 → 6.13.10-eui-8000
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.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +76 -358
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +2 -2
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +2 -13
- package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +6 -5
- package/esm2015/lib/shared/components/palette/index.js +1 -2
- package/esm2015/lib/shared/components/palette/palette.module.js +1 -29
- package/esm2015/lib/shared/components/palette/palette.service.js +1 -4
- package/esm2015/lib/shared/domain/definition/case-field.model.js +3 -6
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/services/form/field-type-sanitiser.js +1 -16
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +76 -321
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +5 -2
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +0 -1
- package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts +1 -1
- package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +0 -1
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +59 -61
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/services/form/field-type-sanitiser.d.ts +0 -2
- package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/index.js +0 -3
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.js +0 -47
- package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +0 -153
- package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts +0 -3
- package/lib/shared/components/palette/dynamic-multi-select-list/index.d.ts.map +0 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts +0 -9
- package/lib/shared/components/palette/dynamic-multi-select-list/read-dynamic-multi-select-list-field.component.d.ts.map +0 -1
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts +0 -17
- package/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.d.ts.map +0 -1
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
var _c0
|
|
121
|
+
var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
122
|
var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
123
123
|
var FooterComponent = /** @class */ (function () {
|
|
124
124
|
function FooterComponent() {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
129
129
|
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
|
|
130
130
|
if (rf & 1) {
|
|
131
|
-
i0__namespace.ɵɵprojectionDef(_c0
|
|
131
|
+
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
132
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
133
133
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
134
134
|
i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
var _c0$
|
|
210
|
+
var _c0$Z = [[["", "headerNavigation", ""]]];
|
|
211
211
|
var _c1$r = ["[headerNavigation]"];
|
|
212
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
213
213
|
function HeaderBarComponent() {
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
222
222
|
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
|
|
223
223
|
if (rf & 1) {
|
|
224
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
224
|
+
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
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$
|
|
285
|
+
var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
286
|
var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
287
287
|
var NavigationComponent = /** @class */ (function () {
|
|
288
288
|
function NavigationComponent() {
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
293
293
|
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
294
294
|
if (rf & 1) {
|
|
295
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
295
|
+
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
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$
|
|
440
|
+
var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
441
|
var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
442
442
|
var BodyComponent = /** @class */ (function () {
|
|
443
443
|
function BodyComponent() {
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
448
448
|
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
449
449
|
if (rf & 1) {
|
|
450
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
450
|
+
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
451
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
452
452
|
i0__namespace.ɵɵprojection(1);
|
|
453
453
|
i0__namespace.ɵɵprojection(2, 1);
|
|
@@ -852,7 +852,7 @@
|
|
|
852
852
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
-
var _c0$
|
|
855
|
+
var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
|
|
856
856
|
function DateInputComponent_div_16_Template(rf, ctx) {
|
|
857
857
|
if (rf & 1) {
|
|
858
858
|
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
i0__namespace.ɵɵadvance(1);
|
|
871
871
|
i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
|
|
872
872
|
i0__namespace.ɵɵadvance(2);
|
|
873
|
-
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
873
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
876
|
function DateInputComponent_div_17_Template(rf, ctx) {
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
i0__namespace.ɵɵadvance(1);
|
|
891
891
|
i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
|
|
892
892
|
i0__namespace.ɵɵadvance(2);
|
|
893
|
-
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
893
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
896
|
function DateInputComponent_div_18_Template(rf, ctx) {
|
|
@@ -910,7 +910,7 @@
|
|
|
910
910
|
i0__namespace.ɵɵadvance(1);
|
|
911
911
|
i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
|
|
912
912
|
i0__namespace.ɵɵadvance(2);
|
|
913
|
-
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
913
|
+
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
var DateInputComponent = /** @class */ (function () {
|
|
@@ -1144,15 +1144,15 @@
|
|
|
1144
1144
|
i0__namespace.ɵɵadvance(2);
|
|
1145
1145
|
i0__namespace.ɵɵproperty("for", ctx.dayId());
|
|
1146
1146
|
i0__namespace.ɵɵadvance(2);
|
|
1147
|
-
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$
|
|
1147
|
+
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
|
|
1148
1148
|
i0__namespace.ɵɵadvance(3);
|
|
1149
1149
|
i0__namespace.ɵɵproperty("for", ctx.monthId());
|
|
1150
1150
|
i0__namespace.ɵɵadvance(2);
|
|
1151
|
-
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$
|
|
1151
|
+
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
|
|
1152
1152
|
i0__namespace.ɵɵadvance(3);
|
|
1153
1153
|
i0__namespace.ɵɵproperty("for", ctx.yearId());
|
|
1154
1154
|
i0__namespace.ɵɵadvance(2);
|
|
1155
|
-
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$
|
|
1155
|
+
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
|
|
1156
1156
|
i0__namespace.ɵɵadvance(2);
|
|
1157
1157
|
i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
1158
1158
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1233,7 +1233,7 @@
|
|
|
1233
1233
|
i0__namespace.ɵɵelementContainerEnd();
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
var _c0$
|
|
1236
|
+
var _c0$V = ["*"];
|
|
1237
1237
|
exports.AlertMessageType = void 0;
|
|
1238
1238
|
(function (AlertMessageType) {
|
|
1239
1239
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
AlertComponent.TYPE_ERROR = 'error';
|
|
1255
1255
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
1256
1256
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
1257
|
-
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
1257
|
+
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
|
|
1258
1258
|
if (rf & 1) {
|
|
1259
1259
|
i0__namespace.ɵɵprojectionDef();
|
|
1260
1260
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1529,7 +1529,7 @@
|
|
|
1529
1529
|
}] });
|
|
1530
1530
|
})();
|
|
1531
1531
|
|
|
1532
|
-
var _c0$
|
|
1532
|
+
var _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1533
1533
|
var _c1$o = ["*"];
|
|
1534
1534
|
var TabComponent = /** @class */ (function () {
|
|
1535
1535
|
function TabComponent() {
|
|
@@ -1545,7 +1545,7 @@
|
|
|
1545
1545
|
i0__namespace.ɵɵelementEnd();
|
|
1546
1546
|
}
|
|
1547
1547
|
if (rf & 2) {
|
|
1548
|
-
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$
|
|
1548
|
+
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
|
|
1549
1549
|
i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1550
1550
|
}
|
|
1551
1551
|
}, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
@@ -1568,7 +1568,7 @@
|
|
|
1568
1568
|
}] });
|
|
1569
1569
|
})();
|
|
1570
1570
|
|
|
1571
|
-
var _c0$
|
|
1571
|
+
var _c0$T = ["tab"];
|
|
1572
1572
|
var _c1$n = function () { return ["."]; };
|
|
1573
1573
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1574
1574
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
@@ -1622,7 +1622,7 @@
|
|
|
1622
1622
|
}
|
|
1623
1623
|
}, viewQuery: function TabsComponent_Query(rf, ctx) {
|
|
1624
1624
|
if (rf & 1) {
|
|
1625
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
1625
|
+
i0__namespace.ɵɵviewQuery(_c0$T, 1);
|
|
1626
1626
|
}
|
|
1627
1627
|
if (rf & 2) {
|
|
1628
1628
|
var _t = void 0;
|
|
@@ -1701,7 +1701,7 @@
|
|
|
1701
1701
|
}], null, null);
|
|
1702
1702
|
})();
|
|
1703
1703
|
|
|
1704
|
-
var _c0$
|
|
1704
|
+
var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1705
1705
|
var ActivityBannerComponent = /** @class */ (function () {
|
|
1706
1706
|
function ActivityBannerComponent() {
|
|
1707
1707
|
}
|
|
@@ -1722,7 +1722,7 @@
|
|
|
1722
1722
|
i0__namespace.ɵɵelementEnd();
|
|
1723
1723
|
}
|
|
1724
1724
|
if (rf & 2) {
|
|
1725
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$
|
|
1725
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1726
1726
|
i0__namespace.ɵɵadvance(2);
|
|
1727
1727
|
i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1728
1728
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
|
|
@@ -3360,12 +3360,9 @@
|
|
|
3360
3360
|
}
|
|
3361
3361
|
Object.defineProperty(CaseField.prototype, "value", {
|
|
3362
3362
|
get: function () {
|
|
3363
|
-
if (this.
|
|
3363
|
+
if (this.isDynamic()) {
|
|
3364
3364
|
return this._value && this._value.value ? this._value.value.code : this._value;
|
|
3365
3365
|
}
|
|
3366
|
-
else if (this.field_type && this.field_type.type === 'DynamicMultiSelectList') {
|
|
3367
|
-
return this._value && this._value.value ? this._value.value : this._value;
|
|
3368
|
-
}
|
|
3369
3366
|
else {
|
|
3370
3367
|
return this._value;
|
|
3371
3368
|
}
|
|
@@ -3455,7 +3452,7 @@
|
|
|
3455
3452
|
};
|
|
3456
3453
|
CaseField.prototype.isDynamic = function () {
|
|
3457
3454
|
var _this = this;
|
|
3458
|
-
var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'
|
|
3455
|
+
var dynamicFieldTypes = ['DynamicList', 'DynamicRadioList'];
|
|
3459
3456
|
if (!this.field_type) {
|
|
3460
3457
|
return false;
|
|
3461
3458
|
}
|
|
@@ -5656,9 +5653,6 @@
|
|
|
5656
5653
|
}
|
|
5657
5654
|
caseFields.forEach(function (caseField) {
|
|
5658
5655
|
switch (caseField.field_type.type) {
|
|
5659
|
-
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST:
|
|
5660
|
-
_this.convertArrayToDynamicListOutput(caseField, data);
|
|
5661
|
-
break;
|
|
5662
5656
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST:
|
|
5663
5657
|
case FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST:
|
|
5664
5658
|
_this.convertStringToDynamicListOutput(caseField, data);
|
|
@@ -5676,17 +5670,6 @@
|
|
|
5676
5670
|
}
|
|
5677
5671
|
});
|
|
5678
5672
|
};
|
|
5679
|
-
FieldTypeSanitiser.prototype.convertArrayToDynamicListOutput = function (field, data) {
|
|
5680
|
-
var values = data[field.id];
|
|
5681
|
-
if (Array.isArray(values)) {
|
|
5682
|
-
var listItems = this.getListItems(field);
|
|
5683
|
-
var matches = listItems.filter(function (item) { return values.map(function (v) { return v.code; }).indexOf(item.code) !== -1; });
|
|
5684
|
-
data[field.id] = {
|
|
5685
|
-
value: matches,
|
|
5686
|
-
list_items: listItems
|
|
5687
|
-
};
|
|
5688
|
-
}
|
|
5689
|
-
};
|
|
5690
5673
|
FieldTypeSanitiser.prototype.convertStringToDynamicListOutput = function (field, data) {
|
|
5691
5674
|
var stringValue = data[field.id];
|
|
5692
5675
|
if (typeof stringValue === 'string') {
|
|
@@ -5717,7 +5700,6 @@
|
|
|
5717
5700
|
FieldTypeSanitiser.FIELD_TYPE_COLLECTION = 'Collection';
|
|
5718
5701
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_LIST = 'DynamicList';
|
|
5719
5702
|
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_RADIO_LIST = 'DynamicRadioList';
|
|
5720
|
-
FieldTypeSanitiser.FIELD_TYPE_DYNAMIC_MULTISELECT_LIST = 'DynamicMultiSelectList';
|
|
5721
5703
|
FieldTypeSanitiser.ɵfac = function FieldTypeSanitiser_Factory(t) { return new (t || FieldTypeSanitiser)(); };
|
|
5722
5704
|
FieldTypeSanitiser.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: FieldTypeSanitiser, factory: FieldTypeSanitiser.ɵfac });
|
|
5723
5705
|
(function () {
|
|
@@ -11030,7 +11012,7 @@
|
|
|
11030
11012
|
return AddressOption;
|
|
11031
11013
|
}());
|
|
11032
11014
|
|
|
11033
|
-
var _c0$
|
|
11015
|
+
var _c0$R = ["writeComplexFieldComponent"];
|
|
11034
11016
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
|
|
11035
11017
|
if (rf & 1) {
|
|
11036
11018
|
i0__namespace.ɵɵelementStart(0, "span", 14);
|
|
@@ -11244,7 +11226,7 @@
|
|
|
11244
11226
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
11245
11227
|
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
11246
11228
|
if (rf & 1) {
|
|
11247
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
11229
|
+
i0__namespace.ɵɵviewQuery(_c0$R, 1);
|
|
11248
11230
|
i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
|
|
11249
11231
|
}
|
|
11250
11232
|
if (rf & 2) {
|
|
@@ -11534,10 +11516,12 @@
|
|
|
11534
11516
|
var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
|
|
11535
11517
|
__extends(CaseFileViewFieldReadComponent, _super);
|
|
11536
11518
|
function CaseFileViewFieldReadComponent() {
|
|
11537
|
-
|
|
11538
|
-
_this.allowMoving = false;
|
|
11539
|
-
return _this;
|
|
11519
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
11540
11520
|
}
|
|
11521
|
+
CaseFileViewFieldReadComponent.prototype.ngOnInit = function () {
|
|
11522
|
+
_super.prototype.ngOnInit.call(this);
|
|
11523
|
+
this.allowMoving = this.caseField.acls.some(function (acl) { return acl.update; });
|
|
11524
|
+
};
|
|
11541
11525
|
return CaseFileViewFieldReadComponent;
|
|
11542
11526
|
}(CaseFileViewFieldComponent));
|
|
11543
11527
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
@@ -11916,7 +11900,7 @@
|
|
|
11916
11900
|
i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
11917
11901
|
}
|
|
11918
11902
|
}
|
|
11919
|
-
var _c0$
|
|
11903
|
+
var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
|
|
11920
11904
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
|
|
11921
11905
|
if (rf & 1) {
|
|
11922
11906
|
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
@@ -11937,7 +11921,7 @@
|
|
|
11937
11921
|
i0__namespace.ɵɵadvance(1);
|
|
11938
11922
|
i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
11939
11923
|
i0__namespace.ɵɵadvance(1);
|
|
11940
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
11924
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
|
|
11941
11925
|
i0__namespace.ɵɵadvance(1);
|
|
11942
11926
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
11943
11927
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12413,7 +12397,7 @@
|
|
|
12413
12397
|
}], null, null);
|
|
12414
12398
|
})();
|
|
12415
12399
|
|
|
12416
|
-
var _c0$
|
|
12400
|
+
var _c0$P = ["writeComplexFieldComponent"];
|
|
12417
12401
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
12418
12402
|
if (rf & 1) {
|
|
12419
12403
|
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
@@ -12518,7 +12502,7 @@
|
|
|
12518
12502
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
12519
12503
|
WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
|
|
12520
12504
|
if (rf & 1) {
|
|
12521
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
12505
|
+
i0__namespace.ɵɵviewQuery(_c0$P, 1);
|
|
12522
12506
|
}
|
|
12523
12507
|
if (rf & 2) {
|
|
12524
12508
|
var _t = void 0;
|
|
@@ -12563,7 +12547,7 @@
|
|
|
12563
12547
|
}] });
|
|
12564
12548
|
})();
|
|
12565
12549
|
|
|
12566
|
-
var _c0$
|
|
12550
|
+
var _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
12567
12551
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
12568
12552
|
if (rf & 1) {
|
|
12569
12553
|
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
@@ -12578,7 +12562,7 @@
|
|
|
12578
12562
|
if (rf & 2) {
|
|
12579
12563
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
12580
12564
|
i0__namespace.ɵɵadvance(4);
|
|
12581
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$
|
|
12565
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
|
|
12582
12566
|
}
|
|
12583
12567
|
}
|
|
12584
12568
|
var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
@@ -12729,7 +12713,7 @@
|
|
|
12729
12713
|
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
12730
12714
|
})();
|
|
12731
12715
|
|
|
12732
|
-
var _c0$
|
|
12716
|
+
var _c0$N = ["collectionItem"];
|
|
12733
12717
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
|
|
12734
12718
|
if (rf & 1) {
|
|
12735
12719
|
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
@@ -12971,11 +12955,6 @@
|
|
|
12971
12955
|
// Manually resetting errors is required to prevent `ExpressionChangedAfterItHasBeenCheckedError`
|
|
12972
12956
|
this.formArray.setErrors(null);
|
|
12973
12957
|
var item = { value: null };
|
|
12974
|
-
if (this.isCollectionDynamic()) {
|
|
12975
|
-
item = Object.assign({}, this.caseField.value[this.caseField.value.length - 1]);
|
|
12976
|
-
var key = Number(item['id'][item['id'].length - 1]) + 1;
|
|
12977
|
-
item.id = item['id'].replace(/.$/, key.toString());
|
|
12978
|
-
}
|
|
12979
12958
|
this.caseField.value.push(item);
|
|
12980
12959
|
var index = this.caseField.value.length - 1;
|
|
12981
12960
|
var caseField = this.buildCaseField(item, index, true);
|
|
@@ -12998,12 +12977,6 @@
|
|
|
12998
12977
|
setTimeout(function () { return _this.focusLastItem(); });
|
|
12999
12978
|
}
|
|
13000
12979
|
};
|
|
13001
|
-
WriteCollectionFieldComponent.prototype.isCollectionDynamic = function () {
|
|
13002
|
-
if (!this.caseField.field_type || !this.caseField.field_type.collection_field_type) {
|
|
13003
|
-
return false;
|
|
13004
|
-
}
|
|
13005
|
-
return this.caseField.field_type.collection_field_type.id === 'DynamicRadioList';
|
|
13006
|
-
};
|
|
13007
12980
|
WriteCollectionFieldComponent.prototype.newCaseField = function (id, item, index, isNew) {
|
|
13008
12981
|
if (isNew === void 0) { isNew = false; }
|
|
13009
12982
|
var isNotAuthorisedToUpdate = !isNew && this.isNotAuthorisedToUpdate(index);
|
|
@@ -13153,7 +13126,7 @@
|
|
|
13153
13126
|
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)); };
|
|
13154
13127
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
13155
13128
|
if (rf & 1) {
|
|
13156
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13129
|
+
i0__namespace.ɵɵviewQuery(_c0$N, 1);
|
|
13157
13130
|
}
|
|
13158
13131
|
if (rf & 2) {
|
|
13159
13132
|
var _t = void 0;
|
|
@@ -13847,7 +13820,7 @@
|
|
|
13847
13820
|
}], null, null);
|
|
13848
13821
|
})();
|
|
13849
13822
|
|
|
13850
|
-
var _c0$
|
|
13823
|
+
var _c0$M = ["fileInput"];
|
|
13851
13824
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
|
|
13852
13825
|
if (rf & 1) {
|
|
13853
13826
|
i0__namespace.ɵɵelementStart(0, "span", 12);
|
|
@@ -14141,7 +14114,7 @@
|
|
|
14141
14114
|
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)); };
|
|
14142
14115
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14143
14116
|
if (rf & 1) {
|
|
14144
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
14117
|
+
i0__namespace.ɵɵviewQuery(_c0$M, 1);
|
|
14145
14118
|
}
|
|
14146
14119
|
if (rf & 2) {
|
|
14147
14120
|
var _t = void 0;
|
|
@@ -14341,7 +14314,7 @@
|
|
|
14341
14314
|
i0__namespace.ɵɵtextInterpolate(type_r5.label);
|
|
14342
14315
|
}
|
|
14343
14316
|
}
|
|
14344
|
-
var _c0$
|
|
14317
|
+
var _c0$L = function (a0) { return { "form-group-error": a0 }; };
|
|
14345
14318
|
var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
|
|
14346
14319
|
__extends(WriteDynamicListFieldComponent, _super);
|
|
14347
14320
|
function WriteDynamicListFieldComponent() {
|
|
@@ -14390,7 +14363,7 @@
|
|
|
14390
14363
|
i0__namespace.ɵɵelementEnd();
|
|
14391
14364
|
}
|
|
14392
14365
|
if (rf & 2) {
|
|
14393
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
14366
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
14394
14367
|
i0__namespace.ɵɵadvance(1);
|
|
14395
14368
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14396
14369
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14540,7 +14513,7 @@
|
|
|
14540
14513
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
14541
14514
|
}
|
|
14542
14515
|
}
|
|
14543
|
-
var _c0$
|
|
14516
|
+
var _c0$K = function (a0) { return { selected: a0 }; };
|
|
14544
14517
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
14545
14518
|
if (rf & 1) {
|
|
14546
14519
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -14553,11 +14526,12 @@
|
|
|
14553
14526
|
if (rf & 2) {
|
|
14554
14527
|
var radioButton_r5 = ctx.$implicit;
|
|
14555
14528
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
14556
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
14529
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
14557
14530
|
i0__namespace.ɵɵadvance(1);
|
|
14558
|
-
i0__namespace.ɵɵ
|
|
14531
|
+
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
14532
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
14559
14533
|
i0__namespace.ɵɵadvance(1);
|
|
14560
|
-
i0__namespace.ɵɵproperty("for", ctx_r4.
|
|
14534
|
+
i0__namespace.ɵɵproperty("for", ctx_r4.buildElementId(radioButton_r5.code));
|
|
14561
14535
|
i0__namespace.ɵɵadvance(1);
|
|
14562
14536
|
i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
|
|
14563
14537
|
}
|
|
@@ -14586,8 +14560,8 @@
|
|
|
14586
14560
|
this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
|
|
14587
14561
|
this.dynamicRadioListControl.setValue(this.caseField.value);
|
|
14588
14562
|
};
|
|
14589
|
-
WriteDynamicRadioListFieldComponent.prototype.
|
|
14590
|
-
return this.
|
|
14563
|
+
WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
|
|
14564
|
+
return this.id() + "-" + name;
|
|
14591
14565
|
};
|
|
14592
14566
|
return WriteDynamicRadioListFieldComponent;
|
|
14593
14567
|
}(AbstractFieldWriteComponent));
|
|
@@ -14717,7 +14691,7 @@
|
|
|
14717
14691
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
14718
14692
|
}
|
|
14719
14693
|
}
|
|
14720
|
-
var _c0$
|
|
14694
|
+
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
14721
14695
|
var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14722
14696
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
14723
14697
|
__extends(WriteEmailFieldComponent, _super);
|
|
@@ -14742,7 +14716,7 @@
|
|
|
14742
14716
|
i0__namespace.ɵɵelementEnd();
|
|
14743
14717
|
}
|
|
14744
14718
|
if (rf & 2) {
|
|
14745
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
14719
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
14746
14720
|
i0__namespace.ɵɵadvance(1);
|
|
14747
14721
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14748
14722
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14874,7 +14848,7 @@
|
|
|
14874
14848
|
i0__namespace.ɵɵtextInterpolate(type_r4.label);
|
|
14875
14849
|
}
|
|
14876
14850
|
}
|
|
14877
|
-
var _c0$
|
|
14851
|
+
var _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
14878
14852
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
14879
14853
|
__extends(WriteFixedListFieldComponent, _super);
|
|
14880
14854
|
function WriteFixedListFieldComponent() {
|
|
@@ -14923,7 +14897,7 @@
|
|
|
14923
14897
|
i0__namespace.ɵɵelementEnd();
|
|
14924
14898
|
}
|
|
14925
14899
|
if (rf & 2) {
|
|
14926
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
14900
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
14927
14901
|
i0__namespace.ɵɵadvance(1);
|
|
14928
14902
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14929
14903
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15041,7 +15015,7 @@
|
|
|
15041
15015
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
15042
15016
|
}
|
|
15043
15017
|
}
|
|
15044
|
-
var _c0$
|
|
15018
|
+
var _c0$H = function (a0) { return { selected: a0 }; };
|
|
15045
15019
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
15046
15020
|
if (rf & 1) {
|
|
15047
15021
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -15054,7 +15028,7 @@
|
|
|
15054
15028
|
if (rf & 2) {
|
|
15055
15029
|
var radioButton_r4 = ctx.$implicit;
|
|
15056
15030
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15057
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
15031
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
15058
15032
|
i0__namespace.ɵɵadvance(1);
|
|
15059
15033
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
15060
15034
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15224,7 +15198,7 @@
|
|
|
15224
15198
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
15225
15199
|
}
|
|
15226
15200
|
}
|
|
15227
|
-
var _c0$
|
|
15201
|
+
var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
15228
15202
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
|
|
15229
15203
|
if (rf & 1) {
|
|
15230
15204
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -15236,7 +15210,7 @@
|
|
|
15236
15210
|
if (rf & 2) {
|
|
15237
15211
|
var judicialUser_r5 = ctx.$implicit;
|
|
15238
15212
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15239
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
15213
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
15240
15214
|
i0__namespace.ɵɵadvance(1);
|
|
15241
15215
|
i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
15242
15216
|
}
|
|
@@ -16026,7 +16000,7 @@
|
|
|
16026
16000
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
16027
16001
|
}
|
|
16028
16002
|
}
|
|
16029
|
-
var _c0$
|
|
16003
|
+
var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
16030
16004
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
|
|
16031
16005
|
if (rf & 1) {
|
|
16032
16006
|
i0__namespace.ɵɵelementStart(0, "div", 35);
|
|
@@ -16044,7 +16018,7 @@
|
|
|
16044
16018
|
}
|
|
16045
16019
|
if (rf & 2) {
|
|
16046
16020
|
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
16047
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$
|
|
16021
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$F, !!ctx_r7.caseReasonCommentsError));
|
|
16048
16022
|
i0__namespace.ɵɵadvance(3);
|
|
16049
16023
|
i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
16050
16024
|
}
|
|
@@ -16101,11 +16075,11 @@
|
|
|
16101
16075
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
16102
16076
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
16103
16077
|
i0__namespace.ɵɵadvance(1);
|
|
16104
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16078
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !!ctx_r0.caseNumberError));
|
|
16105
16079
|
i0__namespace.ɵɵadvance(3);
|
|
16106
16080
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
16107
16081
|
i0__namespace.ɵɵadvance(2);
|
|
16108
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
16082
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$F, !!ctx_r0.caseReasonError));
|
|
16109
16083
|
i0__namespace.ɵɵadvance(5);
|
|
16110
16084
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
16111
16085
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -16539,7 +16513,7 @@
|
|
|
16539
16513
|
i0__namespace.ɵɵadvance(4);
|
|
16540
16514
|
i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
16541
16515
|
i0__namespace.ɵɵadvance(4);
|
|
16542
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
16516
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$F, !!ctx.noSelectedCaseError));
|
|
16543
16517
|
i0__namespace.ɵɵadvance(1);
|
|
16544
16518
|
i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
16545
16519
|
i0__namespace.ɵɵadvance(18);
|
|
@@ -17223,7 +17197,7 @@
|
|
|
17223
17197
|
i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
17224
17198
|
}
|
|
17225
17199
|
}
|
|
17226
|
-
var _c0$
|
|
17200
|
+
var _c0$E = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
17227
17201
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
|
|
17228
17202
|
if (rf & 1) {
|
|
17229
17203
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
@@ -17235,7 +17209,7 @@
|
|
|
17235
17209
|
}
|
|
17236
17210
|
if (rf & 2) {
|
|
17237
17211
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
17238
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
17212
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
17239
17213
|
i0__namespace.ɵɵadvance(1);
|
|
17240
17214
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
17241
17215
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -18177,7 +18151,7 @@
|
|
|
18177
18151
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
18178
18152
|
}
|
|
18179
18153
|
}
|
|
18180
|
-
var _c0$
|
|
18154
|
+
var _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
18181
18155
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
18182
18156
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
18183
18157
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -18207,7 +18181,7 @@
|
|
|
18207
18181
|
i0__namespace.ɵɵelementEnd();
|
|
18208
18182
|
}
|
|
18209
18183
|
if (rf & 2) {
|
|
18210
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
18184
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
18211
18185
|
i0__namespace.ɵɵadvance(1);
|
|
18212
18186
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
18213
18187
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18355,7 +18329,7 @@
|
|
|
18355
18329
|
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
18356
18330
|
}
|
|
18357
18331
|
}
|
|
18358
|
-
var _c0$
|
|
18332
|
+
var _c0$C = function (a0) { return { "error": a0 }; };
|
|
18359
18333
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
18360
18334
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
18361
18335
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -18419,7 +18393,7 @@
|
|
|
18419
18393
|
i0__namespace.ɵɵelementEnd();
|
|
18420
18394
|
}
|
|
18421
18395
|
if (rf & 2) {
|
|
18422
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
18396
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
18423
18397
|
i0__namespace.ɵɵadvance(3);
|
|
18424
18398
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
18425
18399
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18510,7 +18484,7 @@
|
|
|
18510
18484
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
18511
18485
|
}
|
|
18512
18486
|
}
|
|
18513
|
-
var _c0$
|
|
18487
|
+
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
18514
18488
|
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18515
18489
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
18516
18490
|
__extends(WriteNumberFieldComponent, _super);
|
|
@@ -18535,7 +18509,7 @@
|
|
|
18535
18509
|
i0__namespace.ɵɵelementEnd();
|
|
18536
18510
|
}
|
|
18537
18511
|
if (rf & 2) {
|
|
18538
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
18512
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
18539
18513
|
i0__namespace.ɵɵadvance(1);
|
|
18540
18514
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
18541
18515
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -18836,7 +18810,7 @@
|
|
|
18836
18810
|
i0__namespace.ɵɵelementEnd();
|
|
18837
18811
|
}
|
|
18838
18812
|
}
|
|
18839
|
-
var _c0$
|
|
18813
|
+
var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
|
|
18840
18814
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
|
|
18841
18815
|
if (rf & 1) {
|
|
18842
18816
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -18852,7 +18826,7 @@
|
|
|
18852
18826
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
18853
18827
|
var tmp_0_0 = null;
|
|
18854
18828
|
var tmp_2_0 = null;
|
|
18855
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
18829
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
18856
18830
|
i0__namespace.ɵɵadvance(2);
|
|
18857
18831
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
18858
18832
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19256,231 +19230,6 @@
|
|
|
19256
19230
|
}], function () { return [{ type: AbstractAppConfig }, { type: SessionStorageService }]; }, null);
|
|
19257
19231
|
})();
|
|
19258
19232
|
|
|
19259
|
-
function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
|
|
19260
|
-
if (rf & 1) {
|
|
19261
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
19262
|
-
i0__namespace.ɵɵtext(1);
|
|
19263
|
-
i0__namespace.ɵɵpipe(2, "ccdFixedList");
|
|
19264
|
-
i0__namespace.ɵɵelementEnd();
|
|
19265
|
-
}
|
|
19266
|
-
if (rf & 2) {
|
|
19267
|
-
var value_r1 = ctx.$implicit;
|
|
19268
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19269
|
-
i0__namespace.ɵɵadvance(1);
|
|
19270
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
|
|
19271
|
-
}
|
|
19272
|
-
}
|
|
19273
|
-
var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
19274
|
-
__extends(ReadDynamicMultiSelectListFieldComponent, _super);
|
|
19275
|
-
function ReadDynamicMultiSelectListFieldComponent() {
|
|
19276
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19277
|
-
}
|
|
19278
|
-
ReadDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
19279
|
-
/**
|
|
19280
|
-
*
|
|
19281
|
-
* Reassigning list_items from formatted_list when list_items is empty
|
|
19282
|
-
*/
|
|
19283
|
-
if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
|
|
19284
|
-
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
19285
|
-
}
|
|
19286
|
-
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
19287
|
-
this.caseField.value = this.caseField.formatted_value.value;
|
|
19288
|
-
}
|
|
19289
|
-
_super.prototype.ngOnInit.call(this);
|
|
19290
|
-
};
|
|
19291
|
-
return ReadDynamicMultiSelectListFieldComponent;
|
|
19292
|
-
}(AbstractFieldReadComponent));
|
|
19293
|
-
ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
|
|
19294
|
-
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) {
|
|
19295
|
-
if (rf & 1) {
|
|
19296
|
-
i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
|
|
19297
|
-
}
|
|
19298
|
-
if (rf & 2) {
|
|
19299
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
|
|
19300
|
-
}
|
|
19301
|
-
}, 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}"] });
|
|
19302
|
-
var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
|
|
19303
|
-
(function () {
|
|
19304
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
|
|
19305
|
-
type: i0.Component,
|
|
19306
|
-
args: [{
|
|
19307
|
-
selector: 'ccd-read-dynamic-multi-select-list-field',
|
|
19308
|
-
templateUrl: './read-dynamic-multi-select-list-field.html',
|
|
19309
|
-
styleUrls: ['./read-dynamic-multi-select-list-field.component.scss']
|
|
19310
|
-
}]
|
|
19311
|
-
}], null, null);
|
|
19312
|
-
})();
|
|
19313
|
-
|
|
19314
|
-
function WriteDynamicMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
|
|
19315
|
-
if (rf & 1) {
|
|
19316
|
-
i0__namespace.ɵɵelementStart(0, "span", 5);
|
|
19317
|
-
i0__namespace.ɵɵtext(1);
|
|
19318
|
-
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
19319
|
-
i0__namespace.ɵɵelementEnd();
|
|
19320
|
-
}
|
|
19321
|
-
if (rf & 2) {
|
|
19322
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19323
|
-
i0__namespace.ɵɵadvance(1);
|
|
19324
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19325
|
-
}
|
|
19326
|
-
}
|
|
19327
|
-
function WriteDynamicMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
|
|
19328
|
-
if (rf & 1) {
|
|
19329
|
-
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
19330
|
-
i0__namespace.ɵɵtext(1);
|
|
19331
|
-
i0__namespace.ɵɵelementEnd();
|
|
19332
|
-
}
|
|
19333
|
-
if (rf & 2) {
|
|
19334
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
19335
|
-
i0__namespace.ɵɵadvance(1);
|
|
19336
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
19337
|
-
}
|
|
19338
|
-
}
|
|
19339
|
-
function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) {
|
|
19340
|
-
if (rf & 1) {
|
|
19341
|
-
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
19342
|
-
i0__namespace.ɵɵtext(1);
|
|
19343
|
-
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
19344
|
-
i0__namespace.ɵɵelementEnd();
|
|
19345
|
-
}
|
|
19346
|
-
if (rf & 2) {
|
|
19347
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
19348
|
-
i0__namespace.ɵɵadvance(1);
|
|
19349
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
|
|
19350
|
-
}
|
|
19351
|
-
}
|
|
19352
|
-
function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
|
|
19353
|
-
if (rf & 1) {
|
|
19354
|
-
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19355
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
19356
|
-
i0__namespace.ɵɵelementStart(1, "div", 8);
|
|
19357
|
-
i0__namespace.ɵɵelementStart(2, "input", 9);
|
|
19358
|
-
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); });
|
|
19359
|
-
i0__namespace.ɵɵelementEnd();
|
|
19360
|
-
i0__namespace.ɵɵelementStart(3, "label", 10);
|
|
19361
|
-
i0__namespace.ɵɵtext(4);
|
|
19362
|
-
i0__namespace.ɵɵelementEnd();
|
|
19363
|
-
i0__namespace.ɵɵelementEnd();
|
|
19364
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19365
|
-
}
|
|
19366
|
-
if (rf & 2) {
|
|
19367
|
-
var checkbox_r4 = ctx.$implicit;
|
|
19368
|
-
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
19369
|
-
i0__namespace.ɵɵadvance(2);
|
|
19370
|
-
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r3.createElementId(checkbox_r4.code));
|
|
19371
|
-
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r3.id());
|
|
19372
|
-
i0__namespace.ɵɵproperty("value", checkbox_r4.code)("checked", ctx_r3.isSelected(checkbox_r4.code));
|
|
19373
|
-
i0__namespace.ɵɵadvance(1);
|
|
19374
|
-
i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
19375
|
-
i0__namespace.ɵɵadvance(1);
|
|
19376
|
-
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
19377
|
-
}
|
|
19378
|
-
}
|
|
19379
|
-
var _c0$A = function (a0) { return { "error": a0 }; };
|
|
19380
|
-
var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
19381
|
-
__extends(WriteDynamicMultiSelectListFieldComponent, _super);
|
|
19382
|
-
function WriteDynamicMultiSelectListFieldComponent() {
|
|
19383
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
19384
|
-
}
|
|
19385
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.ngOnInit = function () {
|
|
19386
|
-
var _this = this;
|
|
19387
|
-
this.checkboxes = new i2.FormArray([]);
|
|
19388
|
-
this.setInitialCaseList();
|
|
19389
|
-
this.setInitialCaseFieldValue();
|
|
19390
|
-
// Initialise array with existing values
|
|
19391
|
-
if (this.caseField.value && Array.isArray(this.caseField.value)) {
|
|
19392
|
-
var values = this.caseField.value;
|
|
19393
|
-
values.forEach(function (value) {
|
|
19394
|
-
_this.checkboxes.push(new i2.FormControl(value));
|
|
19395
|
-
});
|
|
19396
|
-
}
|
|
19397
|
-
this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.checkboxes.value));
|
|
19398
|
-
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
19399
|
-
};
|
|
19400
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.onCheckChange = function (event) {
|
|
19401
|
-
var _this = this;
|
|
19402
|
-
var target = event.target;
|
|
19403
|
-
if (!target || !target.value) {
|
|
19404
|
-
return;
|
|
19405
|
-
}
|
|
19406
|
-
var selectedListItem = this.getValueListItem(target.value);
|
|
19407
|
-
if (!this.isSelected(target.value)) {
|
|
19408
|
-
// Add a new control in the FormArray
|
|
19409
|
-
this.checkboxes.push(new i2.FormControl(selectedListItem));
|
|
19410
|
-
}
|
|
19411
|
-
else {
|
|
19412
|
-
// Remove the control from the FormArray
|
|
19413
|
-
this.checkboxes.controls.forEach(function (ctrl, i) {
|
|
19414
|
-
if (ctrl.value.code === target.value) {
|
|
19415
|
-
_this.checkboxes.removeAt(i);
|
|
19416
|
-
}
|
|
19417
|
-
});
|
|
19418
|
-
}
|
|
19419
|
-
this.dynamicListFormControl.setValue(this.checkboxes.value);
|
|
19420
|
-
};
|
|
19421
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.isSelected = function (code) {
|
|
19422
|
-
if (this.checkboxes && this.checkboxes.controls) {
|
|
19423
|
-
return this.checkboxes.controls.find(function (control) { return control.value.code === code; });
|
|
19424
|
-
}
|
|
19425
|
-
};
|
|
19426
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.getValueListItem = function (value) {
|
|
19427
|
-
return this.caseField.list_items.find(function (i) { return i.code === value; });
|
|
19428
|
-
};
|
|
19429
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseList = function () {
|
|
19430
|
-
var hasListItems = this.caseField.list_items && this.caseField.list_items.length > 0;
|
|
19431
|
-
var hasFormattedListItems = this.caseField.formatted_value && this.caseField.formatted_value.list_items.length > 0;
|
|
19432
|
-
if (!hasListItems && hasFormattedListItems) {
|
|
19433
|
-
this.caseField.list_items = this.caseField.formatted_value.list_items;
|
|
19434
|
-
}
|
|
19435
|
-
};
|
|
19436
|
-
WriteDynamicMultiSelectListFieldComponent.prototype.setInitialCaseFieldValue = function () {
|
|
19437
|
-
if (!this.caseField.value && this.caseField.formatted_value && this.caseField.formatted_value.value) {
|
|
19438
|
-
this.caseField.value = this.caseField.formatted_value.value;
|
|
19439
|
-
}
|
|
19440
|
-
var isNull = this.caseField.value === undefined || this.caseField.value === '';
|
|
19441
|
-
if (isNull || !Array.isArray(this.caseField.value)) {
|
|
19442
|
-
this.caseField.value = [];
|
|
19443
|
-
}
|
|
19444
|
-
};
|
|
19445
|
-
return WriteDynamicMultiSelectListFieldComponent;
|
|
19446
|
-
}(AbstractFieldWriteComponent));
|
|
19447
|
-
WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
|
|
19448
|
-
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) {
|
|
19449
|
-
if (rf & 1) {
|
|
19450
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19451
|
-
i0__namespace.ɵɵelementStart(1, "fieldset");
|
|
19452
|
-
i0__namespace.ɵɵelementStart(2, "legend");
|
|
19453
|
-
i0__namespace.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
19454
|
-
i0__namespace.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
19455
|
-
i0__namespace.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
19456
|
-
i0__namespace.ɵɵelementEnd();
|
|
19457
|
-
i0__namespace.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
19458
|
-
i0__namespace.ɵɵelementEnd();
|
|
19459
|
-
i0__namespace.ɵɵelementEnd();
|
|
19460
|
-
}
|
|
19461
|
-
if (rf & 2) {
|
|
19462
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
19463
|
-
i0__namespace.ɵɵadvance(3);
|
|
19464
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
19465
|
-
i0__namespace.ɵɵadvance(1);
|
|
19466
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
19467
|
-
i0__namespace.ɵɵadvance(1);
|
|
19468
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
|
|
19469
|
-
i0__namespace.ɵɵadvance(1);
|
|
19470
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
|
|
19471
|
-
}
|
|
19472
|
-
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
19473
|
-
var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
|
|
19474
|
-
(function () {
|
|
19475
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
19476
|
-
type: i0.Component,
|
|
19477
|
-
args: [{
|
|
19478
|
-
selector: 'ccd-write-dynamic-multi-select-list-field',
|
|
19479
|
-
templateUrl: './write-dynamic-multi-select-list-field.html'
|
|
19480
|
-
}]
|
|
19481
|
-
}], null, null);
|
|
19482
|
-
})();
|
|
19483
|
-
|
|
19484
19233
|
var ReadPhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
19485
19234
|
__extends(ReadPhoneUKFieldComponent, _super);
|
|
19486
19235
|
function ReadPhoneUKFieldComponent() {
|
|
@@ -20143,8 +19892,6 @@
|
|
|
20143
19892
|
return write ? WriteFixedListFieldComponent : ReadFixedListFieldComponent;
|
|
20144
19893
|
case 'DynamicRadioList':
|
|
20145
19894
|
return write ? WriteDynamicRadioListFieldComponent : ReadDynamicRadioListFieldComponent;
|
|
20146
|
-
case 'DynamicMultiSelectList':
|
|
20147
|
-
return write ? WriteDynamicMultiSelectListFieldComponent : ReadDynamicMultiSelectListFieldComponent;
|
|
20148
19895
|
case 'FixedRadioList':
|
|
20149
19896
|
return write ? WriteFixedRadioListFieldComponent : ReadFixedRadioListFieldComponent;
|
|
20150
19897
|
case 'Complex':
|
|
@@ -20214,7 +19961,7 @@
|
|
|
20214
19961
|
})();
|
|
20215
19962
|
|
|
20216
19963
|
var _c0$v = ["fieldContainer"];
|
|
20217
|
-
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'
|
|
19964
|
+
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
20218
19965
|
var FieldReadComponent = /** @class */ (function (_super) {
|
|
20219
19966
|
__extends(FieldReadComponent, _super);
|
|
20220
19967
|
function FieldReadComponent(resolver, paletteService) {
|
|
@@ -20304,7 +20051,7 @@
|
|
|
20304
20051
|
})();
|
|
20305
20052
|
|
|
20306
20053
|
var _c0$u = ["fieldContainer"];
|
|
20307
|
-
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'
|
|
20054
|
+
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
20308
20055
|
var FieldWriteComponent = /** @class */ (function (_super) {
|
|
20309
20056
|
__extends(FieldWriteComponent, _super);
|
|
20310
20057
|
function FieldWriteComponent(resolver, paletteService) {
|
|
@@ -25689,8 +25436,6 @@
|
|
|
25689
25436
|
WriteDocumentFieldComponent,
|
|
25690
25437
|
WriteDynamicListFieldComponent,
|
|
25691
25438
|
WriteDynamicRadioListFieldComponent,
|
|
25692
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
25693
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
25694
25439
|
WriteTextFieldComponent,
|
|
25695
25440
|
WriteDateContainerFieldComponent,
|
|
25696
25441
|
WriteTextAreaFieldComponent,
|
|
@@ -25720,13 +25465,6 @@
|
|
|
25720
25465
|
CaseFileViewOverlayMenuComponent,
|
|
25721
25466
|
CaseFileViewFolderDocumentActionsComponent,
|
|
25722
25467
|
CaseFileViewFolderSelectorComponent,
|
|
25723
|
-
// component for dynamic list
|
|
25724
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
25725
|
-
WriteDynamicRadioListFieldComponent,
|
|
25726
|
-
WriteDynamicListFieldComponent,
|
|
25727
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
25728
|
-
ReadDynamicListFieldComponent,
|
|
25729
|
-
ReadDynamicRadioListFieldComponent,
|
|
25730
25468
|
LinkedCasesToTableComponent,
|
|
25731
25469
|
LinkedCasesFromTableComponent,
|
|
25732
25470
|
BeforeYouStartComponent,
|
|
@@ -25857,8 +25595,6 @@
|
|
|
25857
25595
|
WriteDocumentFieldComponent,
|
|
25858
25596
|
WriteDynamicListFieldComponent,
|
|
25859
25597
|
WriteDynamicRadioListFieldComponent,
|
|
25860
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
25861
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
25862
25598
|
WriteTextFieldComponent,
|
|
25863
25599
|
WriteDateContainerFieldComponent,
|
|
25864
25600
|
WriteTextAreaFieldComponent,
|
|
@@ -25888,13 +25624,6 @@
|
|
|
25888
25624
|
CaseFileViewOverlayMenuComponent,
|
|
25889
25625
|
CaseFileViewFolderDocumentActionsComponent,
|
|
25890
25626
|
CaseFileViewFolderSelectorComponent,
|
|
25891
|
-
// component for dynamic list
|
|
25892
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
25893
|
-
WriteDynamicRadioListFieldComponent,
|
|
25894
|
-
WriteDynamicListFieldComponent,
|
|
25895
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
25896
|
-
ReadDynamicListFieldComponent,
|
|
25897
|
-
ReadDynamicRadioListFieldComponent,
|
|
25898
25627
|
LinkedCasesToTableComponent,
|
|
25899
25628
|
LinkedCasesFromTableComponent,
|
|
25900
25629
|
BeforeYouStartComponent,
|
|
@@ -25984,8 +25713,6 @@
|
|
|
25984
25713
|
WriteDocumentFieldComponent,
|
|
25985
25714
|
WriteDynamicListFieldComponent,
|
|
25986
25715
|
WriteDynamicRadioListFieldComponent,
|
|
25987
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
25988
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
25989
25716
|
WriteTextFieldComponent,
|
|
25990
25717
|
WriteDateContainerFieldComponent,
|
|
25991
25718
|
WriteTextAreaFieldComponent,
|
|
@@ -26015,13 +25742,6 @@
|
|
|
26015
25742
|
CaseFileViewOverlayMenuComponent,
|
|
26016
25743
|
CaseFileViewFolderDocumentActionsComponent,
|
|
26017
25744
|
CaseFileViewFolderSelectorComponent,
|
|
26018
|
-
// component for dynamic list
|
|
26019
|
-
WriteDynamicMultiSelectListFieldComponent,
|
|
26020
|
-
WriteDynamicRadioListFieldComponent,
|
|
26021
|
-
WriteDynamicListFieldComponent,
|
|
26022
|
-
ReadDynamicMultiSelectListFieldComponent,
|
|
26023
|
-
ReadDynamicListFieldComponent,
|
|
26024
|
-
ReadDynamicRadioListFieldComponent,
|
|
26025
25745
|
LinkedCasesToTableComponent,
|
|
26026
25746
|
LinkedCasesFromTableComponent,
|
|
26027
25747
|
BeforeYouStartComponent,
|
|
@@ -36088,7 +35808,6 @@
|
|
|
36088
35808
|
exports.ReadDateFieldComponent = ReadDateFieldComponent;
|
|
36089
35809
|
exports.ReadDocumentFieldComponent = ReadDocumentFieldComponent;
|
|
36090
35810
|
exports.ReadDynamicListFieldComponent = ReadDynamicListFieldComponent;
|
|
36091
|
-
exports.ReadDynamicMultiSelectListFieldComponent = ReadDynamicMultiSelectListFieldComponent;
|
|
36092
35811
|
exports.ReadDynamicRadioListFieldComponent = ReadDynamicRadioListFieldComponent;
|
|
36093
35812
|
exports.ReadEmailFieldComponent = ReadEmailFieldComponent;
|
|
36094
35813
|
exports.ReadFieldsFilterPipe = ReadFieldsFilterPipe;
|
|
@@ -36165,7 +35884,6 @@
|
|
|
36165
35884
|
exports.WriteDateFieldComponent = WriteDateFieldComponent;
|
|
36166
35885
|
exports.WriteDocumentFieldComponent = WriteDocumentFieldComponent;
|
|
36167
35886
|
exports.WriteDynamicListFieldComponent = WriteDynamicListFieldComponent;
|
|
36168
|
-
exports.WriteDynamicMultiSelectListFieldComponent = WriteDynamicMultiSelectListFieldComponent;
|
|
36169
35887
|
exports.WriteDynamicRadioListFieldComponent = WriteDynamicRadioListFieldComponent;
|
|
36170
35888
|
exports.WriteEmailFieldComponent = WriteEmailFieldComponent;
|
|
36171
35889
|
exports.WriteFixedListFieldComponent = WriteFixedListFieldComponent;
|