@hmcts/ccd-case-ui-toolkit 6.19.8 → 6.19.9-rc2
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 +137 -122
- 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/case-editor/case-edit/case-edit.component.js +4 -1
- package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +13 -9
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +4 -3
- package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +2 -2
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +20 -13
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +136 -121
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +2 -1
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
var _c0
|
|
147
|
+
var _c0$10 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
148
148
|
var _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
149
149
|
var FooterComponent = /** @class */ (function () {
|
|
150
150
|
function FooterComponent() {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
155
155
|
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$t, 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) {
|
|
156
156
|
if (rf & 1) {
|
|
157
|
-
i0__namespace.ɵɵprojectionDef(_c0
|
|
157
|
+
i0__namespace.ɵɵprojectionDef(_c0$10);
|
|
158
158
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
159
159
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
160
160
|
i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
var _c0
|
|
243
|
+
var _c0$$ = [[["", "headerNavigation", ""]]];
|
|
244
244
|
var _c1$s = ["[headerNavigation]"];
|
|
245
245
|
var HeaderBarComponent = /** @class */ (function () {
|
|
246
246
|
function HeaderBarComponent() {
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
255
255
|
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$s, decls: 17, vars: 14, 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) {
|
|
256
256
|
if (rf & 1) {
|
|
257
|
-
i0__namespace.ɵɵprojectionDef(_c0
|
|
257
|
+
i0__namespace.ɵɵprojectionDef(_c0$$);
|
|
258
258
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
259
259
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
260
260
|
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
}] });
|
|
322
322
|
})();
|
|
323
323
|
|
|
324
|
-
var _c0$
|
|
324
|
+
var _c0$_ = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
325
325
|
var _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
326
326
|
var NavigationComponent = /** @class */ (function () {
|
|
327
327
|
function NavigationComponent() {
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
332
332
|
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$r, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
333
333
|
if (rf & 1) {
|
|
334
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
334
|
+
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
335
335
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
336
336
|
i0__namespace.ɵɵelementStart(1, "nav", 0);
|
|
337
337
|
i0__namespace.ɵɵprojection(2);
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
}], null, null);
|
|
488
488
|
})();
|
|
489
489
|
|
|
490
|
-
var _c0$
|
|
490
|
+
var _c0$Z = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
491
491
|
var _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
492
492
|
var BodyComponent = /** @class */ (function () {
|
|
493
493
|
function BodyComponent() {
|
|
@@ -497,7 +497,7 @@
|
|
|
497
497
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
498
498
|
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
499
499
|
if (rf & 1) {
|
|
500
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
500
|
+
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
501
501
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
502
502
|
i0__namespace.ɵɵprojection(1);
|
|
503
503
|
i0__namespace.ɵɵprojection(2, 1);
|
|
@@ -981,7 +981,7 @@
|
|
|
981
981
|
__disposeResources: __disposeResources,
|
|
982
982
|
};
|
|
983
983
|
|
|
984
|
-
var _c0$
|
|
984
|
+
var _c0$Y = function (a0) { return { "govuk-input--error": a0 }; };
|
|
985
985
|
function DateInputComponent_div_19_Template(rf, ctx) {
|
|
986
986
|
if (rf & 1) {
|
|
987
987
|
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -1002,7 +1002,7 @@
|
|
|
1002
1002
|
i0__namespace.ɵɵadvance(1);
|
|
1003
1003
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Hour"));
|
|
1004
1004
|
i0__namespace.ɵɵadvance(2);
|
|
1005
|
-
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
1005
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r3.isInvalid));
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
function DateInputComponent_div_20_Template(rf, ctx) {
|
|
@@ -1025,7 +1025,7 @@
|
|
|
1025
1025
|
i0__namespace.ɵɵadvance(1);
|
|
1026
1026
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Minute"));
|
|
1027
1027
|
i0__namespace.ɵɵadvance(2);
|
|
1028
|
-
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
1028
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r4.isInvalid));
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
function DateInputComponent_div_21_Template(rf, ctx) {
|
|
@@ -1048,7 +1048,7 @@
|
|
|
1048
1048
|
i0__namespace.ɵɵadvance(1);
|
|
1049
1049
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Second"));
|
|
1050
1050
|
i0__namespace.ɵɵadvance(2);
|
|
1051
|
-
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
1051
|
+
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Y, ctx_r5.isInvalid));
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
var DateInputComponent = /** @class */ (function () {
|
|
@@ -1287,19 +1287,19 @@
|
|
|
1287
1287
|
i0__namespace.ɵɵadvance(1);
|
|
1288
1288
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 21, "Day"));
|
|
1289
1289
|
i0__namespace.ɵɵadvance(2);
|
|
1290
|
-
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$
|
|
1290
|
+
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$Y, ctx.isInvalid));
|
|
1291
1291
|
i0__namespace.ɵɵadvance(3);
|
|
1292
1292
|
i0__namespace.ɵɵproperty("for", ctx.monthId());
|
|
1293
1293
|
i0__namespace.ɵɵadvance(1);
|
|
1294
1294
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 23, "Month"));
|
|
1295
1295
|
i0__namespace.ɵɵadvance(2);
|
|
1296
|
-
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$
|
|
1296
|
+
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$Y, ctx.isInvalid));
|
|
1297
1297
|
i0__namespace.ɵɵadvance(3);
|
|
1298
1298
|
i0__namespace.ɵɵproperty("for", ctx.yearId());
|
|
1299
1299
|
i0__namespace.ɵɵadvance(1);
|
|
1300
1300
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 25, "Year"));
|
|
1301
1301
|
i0__namespace.ɵɵadvance(2);
|
|
1302
|
-
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$
|
|
1302
|
+
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$Y, ctx.isInvalid));
|
|
1303
1303
|
i0__namespace.ɵɵadvance(2);
|
|
1304
1304
|
i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
1305
1305
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1380,7 +1380,7 @@
|
|
|
1380
1380
|
i0__namespace.ɵɵelementContainerEnd();
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
var _c0$
|
|
1383
|
+
var _c0$X = ["*"];
|
|
1384
1384
|
exports.AlertMessageType = void 0;
|
|
1385
1385
|
(function (AlertMessageType) {
|
|
1386
1386
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -1401,7 +1401,7 @@
|
|
|
1401
1401
|
AlertComponent.TYPE_ERROR = 'error';
|
|
1402
1402
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
1403
1403
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
1404
|
-
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
1404
|
+
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$X, decls: 11, vars: 12, 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) {
|
|
1405
1405
|
if (rf & 1) {
|
|
1406
1406
|
i0__namespace.ɵɵprojectionDef();
|
|
1407
1407
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1683,7 +1683,7 @@
|
|
|
1683
1683
|
}] });
|
|
1684
1684
|
})();
|
|
1685
1685
|
|
|
1686
|
-
var _c0$
|
|
1686
|
+
var _c0$W = function (a0) { return { "js-hidden": a0 }; };
|
|
1687
1687
|
var _c1$p = ["*"];
|
|
1688
1688
|
var TabComponent = /** @class */ (function () {
|
|
1689
1689
|
function TabComponent() {
|
|
@@ -1699,7 +1699,7 @@
|
|
|
1699
1699
|
i0__namespace.ɵɵelementEnd();
|
|
1700
1700
|
}
|
|
1701
1701
|
if (rf & 2) {
|
|
1702
|
-
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$
|
|
1702
|
+
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$W, !ctx.selected));
|
|
1703
1703
|
i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1704
1704
|
}
|
|
1705
1705
|
}, directives: [i2__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}}"] });
|
|
@@ -1722,7 +1722,7 @@
|
|
|
1722
1722
|
}] });
|
|
1723
1723
|
})();
|
|
1724
1724
|
|
|
1725
|
-
var _c0$
|
|
1725
|
+
var _c0$V = ["tab"];
|
|
1726
1726
|
var _c1$o = function () { return ["."]; };
|
|
1727
1727
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1728
1728
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
@@ -1778,7 +1778,7 @@
|
|
|
1778
1778
|
}
|
|
1779
1779
|
}, viewQuery: function TabsComponent_Query(rf, ctx) {
|
|
1780
1780
|
if (rf & 1) {
|
|
1781
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
1781
|
+
i0__namespace.ɵɵviewQuery(_c0$V, 1);
|
|
1782
1782
|
}
|
|
1783
1783
|
if (rf & 2) {
|
|
1784
1784
|
var _t = void 0;
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
}], null, null);
|
|
1860
1860
|
})();
|
|
1861
1861
|
|
|
1862
|
-
var _c0$
|
|
1862
|
+
var _c0$U = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1863
1863
|
var ActivityBannerComponent = /** @class */ (function () {
|
|
1864
1864
|
function ActivityBannerComponent() {
|
|
1865
1865
|
}
|
|
@@ -1882,7 +1882,7 @@
|
|
|
1882
1882
|
i0__namespace.ɵɵelementEnd();
|
|
1883
1883
|
}
|
|
1884
1884
|
if (rf & 2) {
|
|
1885
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$
|
|
1885
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$U, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1886
1886
|
i0__namespace.ɵɵadvance(2);
|
|
1887
1887
|
i0__namespace.ɵɵpropertyInterpolate("alt", i0__namespace.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1888
1888
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
|
|
@@ -4868,7 +4868,7 @@
|
|
|
4868
4868
|
};
|
|
4869
4869
|
ConditionParser.findValueForComplexConditionInArray = function (fields, head, tail, path) {
|
|
4870
4870
|
// use the path to resolve which array element we refer to
|
|
4871
|
-
if (path.startsWith(head)) {
|
|
4871
|
+
if (path && path.startsWith(head)) {
|
|
4872
4872
|
var _a = __read(path.split(/[_]+/g)), _ = _a[0], pathTail = _a.slice(1);
|
|
4873
4873
|
if (pathTail.length > 0) {
|
|
4874
4874
|
try {
|
|
@@ -9893,22 +9893,26 @@
|
|
|
9893
9893
|
.mergeCaseFieldsAndFormFields(eventTriggerFields, data);
|
|
9894
9894
|
return page.parsedShowCondition.match(fields);
|
|
9895
9895
|
};
|
|
9896
|
-
ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList,
|
|
9897
|
-
var _this = this;
|
|
9896
|
+
ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage) {
|
|
9898
9897
|
if (fromPreviousPage === void 0) { fromPreviousPage = false; }
|
|
9898
|
+
var pageListCaseFields = this.validPageListCaseFields(validPageList, caseEventDatadata, eventTriggerFields);
|
|
9899
|
+
if (!fromPreviousPage && pageListCaseFields.length > 0) {
|
|
9900
|
+
Object.keys(caseEventDatadata).forEach(function (key) {
|
|
9901
|
+
if (pageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
|
|
9902
|
+
delete caseEventDatadata[key];
|
|
9903
|
+
}
|
|
9904
|
+
});
|
|
9905
|
+
}
|
|
9906
|
+
};
|
|
9907
|
+
ValidPageListCaseFieldsService.prototype.validPageListCaseFields = function (validPageList, data, eventTriggerFields) {
|
|
9908
|
+
var _this = this;
|
|
9899
9909
|
var validPageListCaseFields = [];
|
|
9900
9910
|
validPageList.forEach(function (page) {
|
|
9901
9911
|
if (_this.isShown(page, eventTriggerFields, data)) {
|
|
9902
9912
|
page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
|
|
9903
9913
|
}
|
|
9904
9914
|
});
|
|
9905
|
-
|
|
9906
|
-
Object.keys(data).forEach(function (key) {
|
|
9907
|
-
if (validPageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
|
|
9908
|
-
delete data[key];
|
|
9909
|
-
}
|
|
9910
|
-
});
|
|
9911
|
-
}
|
|
9915
|
+
return validPageListCaseFields;
|
|
9912
9916
|
};
|
|
9913
9917
|
return ValidPageListCaseFieldsService;
|
|
9914
9918
|
}());
|
|
@@ -10110,6 +10114,9 @@
|
|
|
10110
10114
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
10111
10115
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
10112
10116
|
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
|
|
10117
|
+
var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
|
|
10118
|
+
// // Remove unnesessary case fields which are hidden
|
|
10119
|
+
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
|
|
10113
10120
|
caseEventData.event_token = eventTrigger.event_token;
|
|
10114
10121
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
10115
10122
|
if (this.confirmation) {
|
|
@@ -11770,7 +11777,7 @@
|
|
|
11770
11777
|
return AddressOption;
|
|
11771
11778
|
}());
|
|
11772
11779
|
|
|
11773
|
-
var _c0$
|
|
11780
|
+
var _c0$T = ["writeComplexFieldComponent"];
|
|
11774
11781
|
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
|
|
11775
11782
|
if (rf & 1) {
|
|
11776
11783
|
i0__namespace.ɵɵelementStart(0, "span", 14);
|
|
@@ -12005,7 +12012,7 @@
|
|
|
12005
12012
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
12006
12013
|
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
12007
12014
|
if (rf & 1) {
|
|
12008
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
12015
|
+
i0__namespace.ɵɵviewQuery(_c0$T, 1);
|
|
12009
12016
|
i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
|
|
12010
12017
|
}
|
|
12011
12018
|
if (rf & 2) {
|
|
@@ -12659,7 +12666,7 @@
|
|
|
12659
12666
|
i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
12660
12667
|
}
|
|
12661
12668
|
}
|
|
12662
|
-
var _c0$
|
|
12669
|
+
var _c0$S = function (a0) { return { "form-group-error": a0 }; };
|
|
12663
12670
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
|
|
12664
12671
|
if (rf & 1) {
|
|
12665
12672
|
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
@@ -12681,7 +12688,7 @@
|
|
|
12681
12688
|
i0__namespace.ɵɵadvance(1);
|
|
12682
12689
|
i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
12683
12690
|
i0__namespace.ɵɵadvance(1);
|
|
12684
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
12691
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$S, ctx_r1.errorMessages.length > 0));
|
|
12685
12692
|
i0__namespace.ɵɵadvance(1);
|
|
12686
12693
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 8, ctx_r1.createFlagCaption), " ");
|
|
12687
12694
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -13157,7 +13164,7 @@
|
|
|
13157
13164
|
}], null, null);
|
|
13158
13165
|
})();
|
|
13159
13166
|
|
|
13160
|
-
var _c0$
|
|
13167
|
+
var _c0$R = ["writeComplexFieldComponent"];
|
|
13161
13168
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
13162
13169
|
if (rf & 1) {
|
|
13163
13170
|
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
@@ -13265,7 +13272,7 @@
|
|
|
13265
13272
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
13266
13273
|
WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
|
|
13267
13274
|
if (rf & 1) {
|
|
13268
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13275
|
+
i0__namespace.ɵɵviewQuery(_c0$R, 1);
|
|
13269
13276
|
}
|
|
13270
13277
|
if (rf & 2) {
|
|
13271
13278
|
var _t = void 0;
|
|
@@ -13310,7 +13317,7 @@
|
|
|
13310
13317
|
}] });
|
|
13311
13318
|
})();
|
|
13312
13319
|
|
|
13313
|
-
var _c0$
|
|
13320
|
+
var _c0$Q = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
13314
13321
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
13315
13322
|
if (rf & 1) {
|
|
13316
13323
|
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
@@ -13325,7 +13332,7 @@
|
|
|
13325
13332
|
if (rf & 2) {
|
|
13326
13333
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
13327
13334
|
i0__namespace.ɵɵadvance(4);
|
|
13328
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$
|
|
13335
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$Q, 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);
|
|
13329
13336
|
}
|
|
13330
13337
|
}
|
|
13331
13338
|
var _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
@@ -13490,7 +13497,7 @@
|
|
|
13490
13497
|
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
13491
13498
|
})();
|
|
13492
13499
|
|
|
13493
|
-
var _c0$
|
|
13500
|
+
var _c0$P = ["collectionItem"];
|
|
13494
13501
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
|
|
13495
13502
|
if (rf & 1) {
|
|
13496
13503
|
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
@@ -13923,7 +13930,7 @@
|
|
|
13923
13930
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
13924
13931
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
13925
13932
|
if (rf & 1) {
|
|
13926
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13933
|
+
i0__namespace.ɵɵviewQuery(_c0$P, 1);
|
|
13927
13934
|
}
|
|
13928
13935
|
if (rf & 2) {
|
|
13929
13936
|
var _t = void 0;
|
|
@@ -14636,7 +14643,7 @@
|
|
|
14636
14643
|
}], null, null);
|
|
14637
14644
|
})();
|
|
14638
14645
|
|
|
14639
|
-
var _c0$
|
|
14646
|
+
var _c0$O = ["fileInput"];
|
|
14640
14647
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
14641
14648
|
if (rf & 1) {
|
|
14642
14649
|
i0__namespace.ɵɵelementStart(0, "span", 12);
|
|
@@ -14950,7 +14957,7 @@
|
|
|
14950
14957
|
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), i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
|
|
14951
14958
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14952
14959
|
if (rf & 1) {
|
|
14953
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
14960
|
+
i0__namespace.ɵɵviewQuery(_c0$O, 1);
|
|
14954
14961
|
}
|
|
14955
14962
|
if (rf & 2) {
|
|
14956
14963
|
var _t = void 0;
|
|
@@ -15164,7 +15171,7 @@
|
|
|
15164
15171
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r5.label));
|
|
15165
15172
|
}
|
|
15166
15173
|
}
|
|
15167
|
-
var _c0$
|
|
15174
|
+
var _c0$N = function (a0) { return { "form-group-error": a0 }; };
|
|
15168
15175
|
var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
|
|
15169
15176
|
__extends(WriteDynamicListFieldComponent, _super);
|
|
15170
15177
|
function WriteDynamicListFieldComponent() {
|
|
@@ -15214,7 +15221,7 @@
|
|
|
15214
15221
|
i0__namespace.ɵɵelementEnd();
|
|
15215
15222
|
}
|
|
15216
15223
|
if (rf & 2) {
|
|
15217
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$
|
|
15224
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$N, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
15218
15225
|
i0__namespace.ɵɵadvance(1);
|
|
15219
15226
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15220
15227
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15441,7 +15448,7 @@
|
|
|
15441
15448
|
i0__namespace.ɵɵproperty("content", checkbox_r4.label);
|
|
15442
15449
|
}
|
|
15443
15450
|
}
|
|
15444
|
-
var _c0$
|
|
15451
|
+
var _c0$M = function (a0) { return { "error": a0 }; };
|
|
15445
15452
|
var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
15446
15453
|
__extends(WriteDynamicMultiSelectListFieldComponent, _super);
|
|
15447
15454
|
function WriteDynamicMultiSelectListFieldComponent() {
|
|
@@ -15524,7 +15531,7 @@
|
|
|
15524
15531
|
i0__namespace.ɵɵelementEnd();
|
|
15525
15532
|
}
|
|
15526
15533
|
if (rf & 2) {
|
|
15527
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
15534
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$M, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
15528
15535
|
i0__namespace.ɵɵadvance(3);
|
|
15529
15536
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15530
15537
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15676,7 +15683,7 @@
|
|
|
15676
15683
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
15677
15684
|
}
|
|
15678
15685
|
}
|
|
15679
|
-
var _c0$
|
|
15686
|
+
var _c0$L = function (a0) { return { selected: a0 }; };
|
|
15680
15687
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
15681
15688
|
if (rf & 1) {
|
|
15682
15689
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -15690,7 +15697,7 @@
|
|
|
15690
15697
|
if (rf & 2) {
|
|
15691
15698
|
var radioButton_r5 = ctx.$implicit;
|
|
15692
15699
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
15693
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15700
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
15694
15701
|
i0__namespace.ɵɵadvance(1);
|
|
15695
15702
|
i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
15696
15703
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15856,7 +15863,7 @@
|
|
|
15856
15863
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
15857
15864
|
}
|
|
15858
15865
|
}
|
|
15859
|
-
var _c0$
|
|
15866
|
+
var _c0$K = function (a0) { return { "form-group-error": a0 }; };
|
|
15860
15867
|
var _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15861
15868
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
15862
15869
|
__extends(WriteEmailFieldComponent, _super);
|
|
@@ -15881,7 +15888,7 @@
|
|
|
15881
15888
|
i0__namespace.ɵɵelementEnd();
|
|
15882
15889
|
}
|
|
15883
15890
|
if (rf & 2) {
|
|
15884
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
15891
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
15885
15892
|
i0__namespace.ɵɵadvance(1);
|
|
15886
15893
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15887
15894
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15992,7 +15999,7 @@
|
|
|
15992
15999
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
15993
16000
|
}
|
|
15994
16001
|
}
|
|
15995
|
-
var _c0$
|
|
16002
|
+
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
15996
16003
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
15997
16004
|
__extends(WriteFixedListFieldComponent, _super);
|
|
15998
16005
|
function WriteFixedListFieldComponent() {
|
|
@@ -16041,7 +16048,7 @@
|
|
|
16041
16048
|
i0__namespace.ɵɵelementEnd();
|
|
16042
16049
|
}
|
|
16043
16050
|
if (rf & 2) {
|
|
16044
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
16051
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
16045
16052
|
i0__namespace.ɵɵadvance(1);
|
|
16046
16053
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
16047
16054
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16163,7 +16170,7 @@
|
|
|
16163
16170
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
16164
16171
|
}
|
|
16165
16172
|
}
|
|
16166
|
-
var _c0$
|
|
16173
|
+
var _c0$I = function (a0) { return { selected: a0 }; };
|
|
16167
16174
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
16168
16175
|
if (rf & 1) {
|
|
16169
16176
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -16177,7 +16184,7 @@
|
|
|
16177
16184
|
if (rf & 2) {
|
|
16178
16185
|
var radioButton_r4 = ctx.$implicit;
|
|
16179
16186
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
16180
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
16187
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
16181
16188
|
i0__namespace.ɵɵadvance(1);
|
|
16182
16189
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
16183
16190
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16360,7 +16367,7 @@
|
|
|
16360
16367
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.errors, ctx_r2.caseField.label), " ");
|
|
16361
16368
|
}
|
|
16362
16369
|
}
|
|
16363
|
-
var _c0$
|
|
16370
|
+
var _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
16364
16371
|
function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) {
|
|
16365
16372
|
if (rf & 1) {
|
|
16366
16373
|
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -16372,7 +16379,7 @@
|
|
|
16372
16379
|
if (rf & 2) {
|
|
16373
16380
|
var judicialUser_r7 = ctx.$implicit;
|
|
16374
16381
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
16375
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
16382
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, !ctx_r4.showAutocomplete))("value", judicialUser_r7);
|
|
16376
16383
|
i0__namespace.ɵɵadvance(1);
|
|
16377
16384
|
i0__namespace.ɵɵtextInterpolate2(" ", (judicialUser_r7 == null ? null : judicialUser_r7.fullName) ? judicialUser_r7.fullName : "", "", (judicialUser_r7 == null ? null : judicialUser_r7.emailId) ? " (" + judicialUser_r7.emailId + ")" : "", " ");
|
|
16378
16385
|
}
|
|
@@ -17301,7 +17308,7 @@
|
|
|
17301
17308
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
17302
17309
|
}
|
|
17303
17310
|
}
|
|
17304
|
-
var _c0$
|
|
17311
|
+
var _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
17305
17312
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
|
|
17306
17313
|
if (rf & 1) {
|
|
17307
17314
|
i0__namespace.ɵɵelementStart(0, "div", 35);
|
|
@@ -17319,7 +17326,7 @@
|
|
|
17319
17326
|
}
|
|
17320
17327
|
if (rf & 2) {
|
|
17321
17328
|
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
17322
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$
|
|
17329
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
|
|
17323
17330
|
i0__namespace.ɵɵadvance(3);
|
|
17324
17331
|
i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
17325
17332
|
}
|
|
@@ -17376,11 +17383,11 @@
|
|
|
17376
17383
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
17377
17384
|
i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
17378
17385
|
i0__namespace.ɵɵadvance(1);
|
|
17379
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17386
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
|
|
17380
17387
|
i0__namespace.ɵɵadvance(3);
|
|
17381
17388
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
17382
17389
|
i0__namespace.ɵɵadvance(2);
|
|
17383
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
17390
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
|
|
17384
17391
|
i0__namespace.ɵɵadvance(5);
|
|
17385
17392
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
17386
17393
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -17814,7 +17821,7 @@
|
|
|
17814
17821
|
i0__namespace.ɵɵadvance(4);
|
|
17815
17822
|
i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
17816
17823
|
i0__namespace.ɵɵadvance(4);
|
|
17817
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
17824
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
|
|
17818
17825
|
i0__namespace.ɵɵadvance(1);
|
|
17819
17826
|
i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
17820
17827
|
i0__namespace.ɵɵadvance(18);
|
|
@@ -18521,7 +18528,7 @@
|
|
|
18521
18528
|
i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
18522
18529
|
}
|
|
18523
18530
|
}
|
|
18524
|
-
var _c0$
|
|
18531
|
+
var _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
18525
18532
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
|
|
18526
18533
|
if (rf & 1) {
|
|
18527
18534
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
@@ -18533,7 +18540,7 @@
|
|
|
18533
18540
|
}
|
|
18534
18541
|
if (rf & 2) {
|
|
18535
18542
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
18536
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
18543
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
18537
18544
|
i0__namespace.ɵɵadvance(1);
|
|
18538
18545
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
18539
18546
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -19420,7 +19427,7 @@
|
|
|
19420
19427
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
19421
19428
|
}
|
|
19422
19429
|
}
|
|
19423
|
-
var _c0$
|
|
19430
|
+
var _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
19424
19431
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
19425
19432
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
19426
19433
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -19450,7 +19457,7 @@
|
|
|
19450
19457
|
i0__namespace.ɵɵelementEnd();
|
|
19451
19458
|
}
|
|
19452
19459
|
if (rf & 2) {
|
|
19453
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
19460
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
19454
19461
|
i0__namespace.ɵɵadvance(1);
|
|
19455
19462
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
19456
19463
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -19605,7 +19612,7 @@
|
|
|
19605
19612
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
19606
19613
|
}
|
|
19607
19614
|
}
|
|
19608
|
-
var _c0$
|
|
19615
|
+
var _c0$D = function (a0) { return { "error": a0 }; };
|
|
19609
19616
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
19610
19617
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
19611
19618
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -19669,7 +19676,7 @@
|
|
|
19669
19676
|
i0__namespace.ɵɵelementEnd();
|
|
19670
19677
|
}
|
|
19671
19678
|
if (rf & 2) {
|
|
19672
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
19679
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
19673
19680
|
i0__namespace.ɵɵadvance(3);
|
|
19674
19681
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
19675
19682
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -19763,7 +19770,7 @@
|
|
|
19763
19770
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
|
|
19764
19771
|
}
|
|
19765
19772
|
}
|
|
19766
|
-
var _c0$
|
|
19773
|
+
var _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
19767
19774
|
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19768
19775
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
19769
19776
|
__extends(WriteNumberFieldComponent, _super);
|
|
@@ -19788,7 +19795,7 @@
|
|
|
19788
19795
|
i0__namespace.ɵɵelementEnd();
|
|
19789
19796
|
}
|
|
19790
19797
|
if (rf & 2) {
|
|
19791
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
19798
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
19792
19799
|
i0__namespace.ɵɵadvance(1);
|
|
19793
19800
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
19794
19801
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20127,7 +20134,7 @@
|
|
|
20127
20134
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 1, "No results found."), " ");
|
|
20128
20135
|
}
|
|
20129
20136
|
}
|
|
20130
|
-
var _c0$
|
|
20137
|
+
var _c0$B = function (a0) { return { "scroll-container ": a0 }; };
|
|
20131
20138
|
function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) {
|
|
20132
20139
|
if (rf & 1) {
|
|
20133
20140
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -20143,7 +20150,7 @@
|
|
|
20143
20150
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
20144
20151
|
var tmp_0_0 = null;
|
|
20145
20152
|
var tmp_2_0 = null;
|
|
20146
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
20153
|
+
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));
|
|
20147
20154
|
i0__namespace.ɵɵadvance(2);
|
|
20148
20155
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
20149
20156
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -20641,7 +20648,7 @@
|
|
|
20641
20648
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
|
|
20642
20649
|
}
|
|
20643
20650
|
}
|
|
20644
|
-
var _c0$
|
|
20651
|
+
var _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
20645
20652
|
var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20646
20653
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
20647
20654
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
@@ -20666,7 +20673,7 @@
|
|
|
20666
20673
|
i0__namespace.ɵɵelementEnd();
|
|
20667
20674
|
}
|
|
20668
20675
|
if (rf & 2) {
|
|
20669
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
20676
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$A, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
20670
20677
|
i0__namespace.ɵɵadvance(1);
|
|
20671
20678
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
20672
20679
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20762,7 +20769,7 @@
|
|
|
20762
20769
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
|
|
20763
20770
|
}
|
|
20764
20771
|
}
|
|
20765
|
-
var _c0$
|
|
20772
|
+
var _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
20766
20773
|
var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
20767
20774
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
20768
20775
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
@@ -20798,7 +20805,7 @@
|
|
|
20798
20805
|
i0__namespace.ɵɵelementEnd();
|
|
20799
20806
|
}
|
|
20800
20807
|
if (rf & 2) {
|
|
20801
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
20808
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
20802
20809
|
i0__namespace.ɵɵadvance(1);
|
|
20803
20810
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
20804
20811
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -20894,7 +20901,7 @@
|
|
|
20894
20901
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
|
|
20895
20902
|
}
|
|
20896
20903
|
}
|
|
20897
|
-
var _c0$
|
|
20904
|
+
var _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
20898
20905
|
var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20899
20906
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
20900
20907
|
__extends(WriteTextFieldComponent, _super);
|
|
@@ -20924,7 +20931,7 @@
|
|
|
20924
20931
|
i0__namespace.ɵɵelementEnd();
|
|
20925
20932
|
}
|
|
20926
20933
|
if (rf & 2) {
|
|
20927
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
20934
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
20928
20935
|
i0__namespace.ɵɵadvance(1);
|
|
20929
20936
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
20930
20937
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21137,7 +21144,7 @@
|
|
|
21137
21144
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
|
|
21138
21145
|
}
|
|
21139
21146
|
}
|
|
21140
|
-
var _c0$
|
|
21147
|
+
var _c0$x = function (a0) { return { selected: a0 }; };
|
|
21141
21148
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
|
|
21142
21149
|
if (rf & 1) {
|
|
21143
21150
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -21150,7 +21157,7 @@
|
|
|
21150
21157
|
if (rf & 2) {
|
|
21151
21158
|
var value_r4 = ctx.$implicit;
|
|
21152
21159
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
21153
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
21160
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, ctx_r3.yesNoControl.value === value_r4));
|
|
21154
21161
|
i0__namespace.ɵɵadvance(1);
|
|
21155
21162
|
i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
21156
21163
|
i0__namespace.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -21318,7 +21325,7 @@
|
|
|
21318
21325
|
}], null, null);
|
|
21319
21326
|
})();
|
|
21320
21327
|
|
|
21321
|
-
var _c0$
|
|
21328
|
+
var _c0$w = ["fieldContainer"];
|
|
21322
21329
|
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
21323
21330
|
var FieldReadComponent = /** @class */ (function (_super) {
|
|
21324
21331
|
__extends(FieldReadComponent, _super);
|
|
@@ -21371,7 +21378,7 @@
|
|
|
21371
21378
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
21372
21379
|
FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
|
|
21373
21380
|
if (rf & 1) {
|
|
21374
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
21381
|
+
i0__namespace.ɵɵviewQuery(_c0$w, 1, i0.ViewContainerRef);
|
|
21375
21382
|
}
|
|
21376
21383
|
if (rf & 2) {
|
|
21377
21384
|
var _t = void 0;
|
|
@@ -21412,7 +21419,7 @@
|
|
|
21412
21419
|
}] });
|
|
21413
21420
|
})();
|
|
21414
21421
|
|
|
21415
|
-
var _c0$
|
|
21422
|
+
var _c0$v = ["fieldContainer"];
|
|
21416
21423
|
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
21417
21424
|
var FieldWriteComponent = /** @class */ (function (_super) {
|
|
21418
21425
|
__extends(FieldWriteComponent, _super);
|
|
@@ -21460,7 +21467,7 @@
|
|
|
21460
21467
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
21461
21468
|
FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
|
|
21462
21469
|
if (rf & 1) {
|
|
21463
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
21470
|
+
i0__namespace.ɵɵviewQuery(_c0$v, 3, i0.ViewContainerRef);
|
|
21464
21471
|
}
|
|
21465
21472
|
if (rf & 2) {
|
|
21466
21473
|
var _t = void 0;
|
|
@@ -21524,7 +21531,7 @@
|
|
|
21524
21531
|
i0__namespace.ɵɵprojection(0);
|
|
21525
21532
|
}
|
|
21526
21533
|
}
|
|
21527
|
-
var _c0$
|
|
21534
|
+
var _c0$u = ["*"];
|
|
21528
21535
|
var FieldReadLabelComponent = /** @class */ (function (_super) {
|
|
21529
21536
|
__extends(FieldReadLabelComponent, _super);
|
|
21530
21537
|
function FieldReadLabelComponent() {
|
|
@@ -21562,7 +21569,7 @@
|
|
|
21562
21569
|
return FieldReadLabelComponent;
|
|
21563
21570
|
}(AbstractFieldReadComponent));
|
|
21564
21571
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
21565
|
-
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
21572
|
+
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$u, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
|
|
21566
21573
|
if (rf & 1) {
|
|
21567
21574
|
i0__namespace.ɵɵprojectionDef();
|
|
21568
21575
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -21601,7 +21608,7 @@
|
|
|
21601
21608
|
i0__namespace.ɵɵelementContainer(0);
|
|
21602
21609
|
}
|
|
21603
21610
|
}
|
|
21604
|
-
var _c0$
|
|
21611
|
+
var _c0$t = function (a0) { return { cat: a0, level: 1 }; };
|
|
21605
21612
|
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
21606
21613
|
if (rf & 1) {
|
|
21607
21614
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -21613,7 +21620,7 @@
|
|
|
21613
21620
|
i0__namespace.ɵɵnextContext();
|
|
21614
21621
|
var _r1 = i0__namespace.ɵɵreference(13);
|
|
21615
21622
|
i0__namespace.ɵɵadvance(1);
|
|
21616
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$
|
|
21623
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$t, cat_r3));
|
|
21617
21624
|
}
|
|
21618
21625
|
}
|
|
21619
21626
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
|
|
@@ -21855,7 +21862,7 @@
|
|
|
21855
21862
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
21856
21863
|
}
|
|
21857
21864
|
}
|
|
21858
|
-
var _c0$
|
|
21865
|
+
var _c0$s = [[["", "trigger", ""]]];
|
|
21859
21866
|
var _c1$8 = ["[trigger]"];
|
|
21860
21867
|
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
21861
21868
|
function CaseFileViewOverlayMenuComponent() {
|
|
@@ -21873,7 +21880,7 @@
|
|
|
21873
21880
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
21874
21881
|
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$8, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
21875
21882
|
if (rf & 1) {
|
|
21876
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
21883
|
+
i0__namespace.ɵɵprojectionDef(_c0$s);
|
|
21877
21884
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
21878
21885
|
i0__namespace.ɵɵelementStart(1, "button", 0, 1);
|
|
21879
21886
|
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -22543,7 +22550,7 @@
|
|
|
22543
22550
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.flagCommentsCharLimitErrorMessage), " ");
|
|
22544
22551
|
}
|
|
22545
22552
|
}
|
|
22546
|
-
var _c0$
|
|
22553
|
+
var _c0$r = function (a0) { return { "form-group-error": a0 }; };
|
|
22547
22554
|
var AddCommentsComponent = /** @class */ (function () {
|
|
22548
22555
|
function AddCommentsComponent() {
|
|
22549
22556
|
this.optional = false;
|
|
@@ -22628,7 +22635,7 @@
|
|
|
22628
22635
|
if (rf & 2) {
|
|
22629
22636
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
22630
22637
|
i0__namespace.ɵɵadvance(2);
|
|
22631
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c0$
|
|
22638
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c0$r, ctx.errorMessages.length > 0));
|
|
22632
22639
|
i0__namespace.ɵɵadvance(2);
|
|
22633
22640
|
i0__namespace.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
22634
22641
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23002,7 +23009,7 @@
|
|
|
23002
23009
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "Next"));
|
|
23003
23010
|
}
|
|
23004
23011
|
}
|
|
23005
|
-
var _c0$
|
|
23012
|
+
var _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
23006
23013
|
var ManageCaseFlagsComponent = /** @class */ (function () {
|
|
23007
23014
|
function ManageCaseFlagsComponent() {
|
|
23008
23015
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -23163,7 +23170,7 @@
|
|
|
23163
23170
|
if (rf & 2) {
|
|
23164
23171
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23165
23172
|
i0__namespace.ɵɵadvance(1);
|
|
23166
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
23173
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$q, ctx.errorMessages.length > 0));
|
|
23167
23174
|
i0__namespace.ɵɵadvance(4);
|
|
23168
23175
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
23169
23176
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -23274,7 +23281,7 @@
|
|
|
23274
23281
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
23275
23282
|
}
|
|
23276
23283
|
}
|
|
23277
|
-
var _c0$
|
|
23284
|
+
var _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
23278
23285
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) {
|
|
23279
23286
|
if (rf & 1) {
|
|
23280
23287
|
i0__namespace.ɵɵelementStart(0, "div", 25);
|
|
@@ -23291,7 +23298,7 @@
|
|
|
23291
23298
|
if (rf & 2) {
|
|
23292
23299
|
var ctx_r5 = i0__namespace.ɵɵnextContext();
|
|
23293
23300
|
i0__namespace.ɵɵadvance(1);
|
|
23294
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
23301
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
23295
23302
|
i0__namespace.ɵɵadvance(2);
|
|
23296
23303
|
i0__namespace.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
23297
23304
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23466,7 +23473,7 @@
|
|
|
23466
23473
|
var _r2 = i0__namespace.ɵɵreference(12);
|
|
23467
23474
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23468
23475
|
i0__namespace.ɵɵadvance(1);
|
|
23469
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$
|
|
23476
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
23470
23477
|
i0__namespace.ɵɵadvance(2);
|
|
23471
23478
|
i0__namespace.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
23472
23479
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23611,7 +23618,7 @@
|
|
|
23611
23618
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "Next"));
|
|
23612
23619
|
}
|
|
23613
23620
|
}
|
|
23614
|
-
var _c0$
|
|
23621
|
+
var _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
23615
23622
|
var SelectFlagLocationComponent = /** @class */ (function () {
|
|
23616
23623
|
function SelectFlagLocationComponent() {
|
|
23617
23624
|
this.caseFlagStateEmitter = new i0.EventEmitter();
|
|
@@ -23701,7 +23708,7 @@
|
|
|
23701
23708
|
if (rf & 2) {
|
|
23702
23709
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23703
23710
|
i0__namespace.ɵɵadvance(1);
|
|
23704
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
23711
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$o, ctx.errorMessages.length > 0));
|
|
23705
23712
|
i0__namespace.ɵɵadvance(4);
|
|
23706
23713
|
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
23707
23714
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -23783,7 +23790,7 @@
|
|
|
23783
23790
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
23784
23791
|
}
|
|
23785
23792
|
}
|
|
23786
|
-
var _c0$
|
|
23793
|
+
var _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
23787
23794
|
var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
23788
23795
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
|
|
23789
23796
|
if (rf & 1) {
|
|
@@ -23800,7 +23807,7 @@
|
|
|
23800
23807
|
if (rf & 2) {
|
|
23801
23808
|
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
23802
23809
|
i0__namespace.ɵɵadvance(1);
|
|
23803
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
23810
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$n, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
23804
23811
|
i0__namespace.ɵɵadvance(3);
|
|
23805
23812
|
i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
23806
23813
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -23969,7 +23976,7 @@
|
|
|
23969
23976
|
if (rf & 2) {
|
|
23970
23977
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23971
23978
|
i0__namespace.ɵɵadvance(1);
|
|
23972
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
23979
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$n, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
23973
23980
|
i0__namespace.ɵɵadvance(4);
|
|
23974
23981
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
23975
23982
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -24044,7 +24051,7 @@
|
|
|
24044
24051
|
i0__namespace.ɵɵelementEnd();
|
|
24045
24052
|
}
|
|
24046
24053
|
}
|
|
24047
|
-
var _c0$
|
|
24054
|
+
var _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
24048
24055
|
var _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
24049
24056
|
var UpdateFlagComponent = /** @class */ (function () {
|
|
24050
24057
|
function UpdateFlagComponent() {
|
|
@@ -24166,7 +24173,7 @@
|
|
|
24166
24173
|
if (rf & 2) {
|
|
24167
24174
|
i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24168
24175
|
i0__namespace.ɵɵadvance(2);
|
|
24169
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$
|
|
24176
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$m, ctx.errorMessages.length > 0));
|
|
24170
24177
|
i0__namespace.ɵɵadvance(2);
|
|
24171
24178
|
i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
24172
24179
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -24232,7 +24239,7 @@
|
|
|
24232
24239
|
i0__namespace.ɵɵproperty("caseField", field_r1)("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
24233
24240
|
}
|
|
24234
24241
|
}
|
|
24235
|
-
var _c0$
|
|
24242
|
+
var _c0$l = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
|
|
24236
24243
|
/**
|
|
24237
24244
|
* Display a complex type fields as a list of values without labels.
|
|
24238
24245
|
* This is intended for rendering of Check Your Answer page.
|
|
@@ -24256,7 +24263,7 @@
|
|
|
24256
24263
|
}
|
|
24257
24264
|
if (rf & 2) {
|
|
24258
24265
|
i0__namespace.ɵɵadvance(1);
|
|
24259
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$
|
|
24266
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$l, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
|
|
24260
24267
|
}
|
|
24261
24268
|
}, styles: ["dl.complex-raw[_ngcontent-%COMP%]{list-style-type:none;margin:5px 0 10px}dl.complex-raw[_ngcontent-%COMP%] dl.complex-raw[_ngcontent-%COMP%]{padding-left:2ch}dl.complex-raw[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{font-weight:700}"] });
|
|
24262
24269
|
var ɵReadComplexFieldRawComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent);
|
|
@@ -24337,6 +24344,7 @@
|
|
|
24337
24344
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(2, 2, field_r1))("ngIfElse", _r3);
|
|
24338
24345
|
}
|
|
24339
24346
|
}
|
|
24347
|
+
var _c0$k = function (a0, a4, a6) { return [a0, false, undefined, true, a4, undefined, a6]; };
|
|
24340
24348
|
var ReadComplexFieldTableComponent = /** @class */ (function (_super) {
|
|
24341
24349
|
__extends(ReadComplexFieldTableComponent, _super);
|
|
24342
24350
|
function ReadComplexFieldTableComponent() {
|
|
@@ -24347,7 +24355,7 @@
|
|
|
24347
24355
|
return ReadComplexFieldTableComponent;
|
|
24348
24356
|
}(AbstractFieldReadComponent));
|
|
24349
24357
|
ReadComplexFieldTableComponent.ɵfac = function ReadComplexFieldTableComponent_Factory(t) { return ɵReadComplexFieldTableComponent_BaseFactory(t || ReadComplexFieldTableComponent); };
|
|
24350
|
-
ReadComplexFieldTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 11, vars:
|
|
24358
|
+
ReadComplexFieldTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 11, vars: 16, consts: [[1, "complex-panel"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex field table", 1, "complex-panel-table"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["SimpleRow", ""], [1, "complex-panel-compound-field", 3, "hidden"], ["colspan", "2"], [3, "topLevelFormGroup", "caseField", "context"], [1, "complex-panel-simple-field", 3, "hidden"], ["id", "complex-panel-simple-field-label"]], template: function ReadComplexFieldTableComponent_Template(rf, ctx) {
|
|
24351
24359
|
if (rf & 1) {
|
|
24352
24360
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
24353
24361
|
i0__namespace.ɵɵelementStart(1, "dl", 1);
|
|
@@ -24371,7 +24379,7 @@
|
|
|
24371
24379
|
i0__namespace.ɵɵadvance(4);
|
|
24372
24380
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 2, ctx.caseField.label));
|
|
24373
24381
|
i0__namespace.ɵɵadvance(5);
|
|
24374
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵ
|
|
24382
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(10, 4, i0__namespace.ɵɵpureFunction3(12, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.idPrefix)));
|
|
24375
24383
|
}
|
|
24376
24384
|
}, styles: [".complex-panel[_ngcontent-%COMP%]{margin:13px 0;border:1px solid #bfc1c3}.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{background-color:#dee0e2;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;padding:5px 5px 2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.complex-panel[_ngcontent-%COMP%] .complex-panel-title[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{vertical-align:top}.complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%], .complex-panel[_ngcontent-%COMP%] .complex-panel-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%]{border-bottom:none}.complex-panel[_ngcontent-%COMP%] .complex-panel-simple-field[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-left:5px;width:295px}.complex-panel[_ngcontent-%COMP%] .complex-panel-compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px}"] });
|
|
24377
24385
|
var ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent);
|
|
@@ -26405,17 +26413,17 @@
|
|
|
26405
26413
|
/**
|
|
26406
26414
|
* Complex type should have at least on simple field descendant with a value.
|
|
26407
26415
|
*/
|
|
26408
|
-
ReadFieldsFilterPipe.isValidComplex = function (field, values) {
|
|
26416
|
+
ReadFieldsFilterPipe.isValidComplex = function (field, values, checkConditionalShowAgainst) {
|
|
26409
26417
|
values = values || {};
|
|
26410
26418
|
var type = field.field_type;
|
|
26411
26419
|
var value = ReadFieldsFilterPipe.getValue(field, values);
|
|
26412
26420
|
var hasChildrenWithValue = type.complex_fields.find(function (f) {
|
|
26413
|
-
var willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
|
|
26414
|
-
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f,
|
|
26421
|
+
var willKeep = ReadFieldsFilterPipe.keepField(f, value, true, checkConditionalShowAgainst);
|
|
26422
|
+
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst).hidden !== true;
|
|
26415
26423
|
});
|
|
26416
26424
|
return !!hasChildrenWithValue;
|
|
26417
26425
|
};
|
|
26418
|
-
ReadFieldsFilterPipe.isValidCollection = function (field, values) {
|
|
26426
|
+
ReadFieldsFilterPipe.isValidCollection = function (field, values, checkConditionalShowAgainst) {
|
|
26419
26427
|
// if field is collection and it has complex/collection child field; parent field doesnt have value defined
|
|
26420
26428
|
if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
|
|
26421
26429
|
return true;
|
|
@@ -26429,7 +26437,7 @@
|
|
|
26429
26437
|
value: item.value,
|
|
26430
26438
|
label: null,
|
|
26431
26439
|
});
|
|
26432
|
-
return ReadFieldsFilterPipe.isValidComplex(complexField);
|
|
26440
|
+
return ReadFieldsFilterPipe.isValidComplex(complexField, undefined, checkConditionalShowAgainst);
|
|
26433
26441
|
});
|
|
26434
26442
|
}
|
|
26435
26443
|
return isNotEmpty;
|
|
@@ -26441,11 +26449,11 @@
|
|
|
26441
26449
|
ReadFieldsFilterPipe.isCompound = function (field) {
|
|
26442
26450
|
return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
|
|
26443
26451
|
};
|
|
26444
|
-
ReadFieldsFilterPipe.isValidCompound = function (field, value) {
|
|
26452
|
+
ReadFieldsFilterPipe.isValidCompound = function (field, value, checkConditionalShowAgainst) {
|
|
26445
26453
|
return ReadFieldsFilterPipe.isCompound(field)
|
|
26446
|
-
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
26454
|
+
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value, checkConditionalShowAgainst);
|
|
26447
26455
|
};
|
|
26448
|
-
ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels) {
|
|
26456
|
+
ReadFieldsFilterPipe.keepField = function (field, value, ignoreLabels, checkConditionalShowAgainst) {
|
|
26449
26457
|
if (ignoreLabels === void 0) { ignoreLabels = false; }
|
|
26450
26458
|
// We shouldn't ditch labels.
|
|
26451
26459
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
@@ -26457,7 +26465,7 @@
|
|
|
26457
26465
|
}
|
|
26458
26466
|
value = value || {};
|
|
26459
26467
|
if (ReadFieldsFilterPipe.isCompound(field)) {
|
|
26460
|
-
return ReadFieldsFilterPipe.isValidCompound(field, value);
|
|
26468
|
+
return ReadFieldsFilterPipe.isValidCompound(field, value, checkConditionalShowAgainst);
|
|
26461
26469
|
}
|
|
26462
26470
|
return !ReadFieldsFilterPipe.isEmpty(field.value)
|
|
26463
26471
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
@@ -26500,7 +26508,7 @@
|
|
|
26500
26508
|
/**
|
|
26501
26509
|
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
26502
26510
|
*/
|
|
26503
|
-
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path) {
|
|
26511
|
+
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix) {
|
|
26504
26512
|
if (setupHidden === void 0) { setupHidden = false; }
|
|
26505
26513
|
if (!complexField || !complexField.field_type) {
|
|
26506
26514
|
return [];
|
|
@@ -26510,8 +26518,15 @@
|
|
|
26510
26518
|
var checkConditionalShowAgainst = values;
|
|
26511
26519
|
var formGroupAvailable = false;
|
|
26512
26520
|
if (formGroup) {
|
|
26513
|
-
checkConditionalShowAgainst = formGroup.
|
|
26521
|
+
checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
|
|
26514
26522
|
formGroupAvailable = true;
|
|
26523
|
+
if (idPrefix) {
|
|
26524
|
+
var fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
|
|
26525
|
+
if (checkConditionalShowAgainst[fieldId]) {
|
|
26526
|
+
checkConditionalShowAgainst = values;
|
|
26527
|
+
formGroupAvailable = false;
|
|
26528
|
+
}
|
|
26529
|
+
}
|
|
26515
26530
|
}
|
|
26516
26531
|
return fields
|
|
26517
26532
|
.map(function (f) {
|
|
@@ -26531,7 +26546,7 @@
|
|
|
26531
26546
|
}
|
|
26532
26547
|
return f;
|
|
26533
26548
|
})
|
|
26534
|
-
.filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f); });
|
|
26549
|
+
.filter(function (f) { return keepEmpty || ReadFieldsFilterPipe.keepField(f, undefined, false, checkConditionalShowAgainst); });
|
|
26535
26550
|
};
|
|
26536
26551
|
return ReadFieldsFilterPipe;
|
|
26537
26552
|
}());
|