@hmcts/ccd-case-ui-toolkit 6.19.8 → 6.19.9-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +135 -120
- 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 +18 -11
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +134 -119
- 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
|
@@ -142,13 +142,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
142
142
|
i0.ɵɵadvance(4);
|
|
143
143
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
144
144
|
} }
|
|
145
|
-
const _c0
|
|
145
|
+
const _c0$10 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
146
146
|
const _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
147
147
|
class FooterComponent {
|
|
148
148
|
}
|
|
149
149
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
150
150
|
FooterComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
151
|
-
i0.ɵɵprojectionDef(_c0
|
|
151
|
+
i0.ɵɵprojectionDef(_c0$10);
|
|
152
152
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
153
153
|
i0.ɵɵelementStart(1, "div", 1);
|
|
154
154
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -221,7 +221,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
221
221
|
i0.ɵɵadvance(3);
|
|
222
222
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
223
223
|
} }
|
|
224
|
-
const _c0
|
|
224
|
+
const _c0$$ = [[["", "headerNavigation", ""]]];
|
|
225
225
|
const _c1$s = ["[headerNavigation]"];
|
|
226
226
|
class HeaderBarComponent {
|
|
227
227
|
constructor() {
|
|
@@ -233,7 +233,7 @@ class HeaderBarComponent {
|
|
|
233
233
|
}
|
|
234
234
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
235
235
|
HeaderBarComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
236
|
-
i0.ɵɵprojectionDef(_c0
|
|
236
|
+
i0.ɵɵprojectionDef(_c0$$);
|
|
237
237
|
i0.ɵɵelementStart(0, "header", 0);
|
|
238
238
|
i0.ɵɵelementStart(1, "div", 1);
|
|
239
239
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -296,13 +296,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
296
296
|
type: Output
|
|
297
297
|
}] }); })();
|
|
298
298
|
|
|
299
|
-
const _c0$
|
|
299
|
+
const _c0$_ = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
300
300
|
const _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
301
301
|
class NavigationComponent {
|
|
302
302
|
}
|
|
303
303
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
304
304
|
NavigationComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
305
|
-
i0.ɵɵprojectionDef(_c0$
|
|
305
|
+
i0.ɵɵprojectionDef(_c0$_);
|
|
306
306
|
i0.ɵɵelementStart(0, "div");
|
|
307
307
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
308
308
|
i0.ɵɵprojection(2);
|
|
@@ -430,13 +430,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
430
430
|
}]
|
|
431
431
|
}], null, null); })();
|
|
432
432
|
|
|
433
|
-
const _c0$
|
|
433
|
+
const _c0$Z = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
434
434
|
const _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
435
435
|
class BodyComponent {
|
|
436
436
|
}
|
|
437
437
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
438
438
|
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
439
|
-
i0.ɵɵprojectionDef(_c0$
|
|
439
|
+
i0.ɵɵprojectionDef(_c0$Z);
|
|
440
440
|
i0.ɵɵelementStart(0, "div", 0);
|
|
441
441
|
i0.ɵɵprojection(1);
|
|
442
442
|
i0.ɵɵprojection(2, 1);
|
|
@@ -453,7 +453,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
453
453
|
}]
|
|
454
454
|
}], null, null); })();
|
|
455
455
|
|
|
456
|
-
const _c0$
|
|
456
|
+
const _c0$Y = function (a0) { return { "govuk-input--error": a0 }; };
|
|
457
457
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
458
458
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
459
459
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -472,7 +472,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
472
472
|
i0.ɵɵadvance(1);
|
|
473
473
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Hour"));
|
|
474
474
|
i0.ɵɵadvance(2);
|
|
475
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
475
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$Y, ctx_r3.isInvalid));
|
|
476
476
|
} }
|
|
477
477
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
478
478
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -492,7 +492,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
492
492
|
i0.ɵɵadvance(1);
|
|
493
493
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Minute"));
|
|
494
494
|
i0.ɵɵadvance(2);
|
|
495
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
495
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$Y, ctx_r4.isInvalid));
|
|
496
496
|
} }
|
|
497
497
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
498
498
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -512,7 +512,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
512
512
|
i0.ɵɵadvance(1);
|
|
513
513
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Second"));
|
|
514
514
|
i0.ɵɵadvance(2);
|
|
515
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
515
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$Y, ctx_r5.isInvalid));
|
|
516
516
|
} }
|
|
517
517
|
class DateInputComponent {
|
|
518
518
|
constructor() {
|
|
@@ -746,19 +746,19 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
746
746
|
i0.ɵɵadvance(1);
|
|
747
747
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Day"));
|
|
748
748
|
i0.ɵɵadvance(2);
|
|
749
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$
|
|
749
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$Y, ctx.isInvalid));
|
|
750
750
|
i0.ɵɵadvance(3);
|
|
751
751
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
752
752
|
i0.ɵɵadvance(1);
|
|
753
753
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Month"));
|
|
754
754
|
i0.ɵɵadvance(2);
|
|
755
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$
|
|
755
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$Y, ctx.isInvalid));
|
|
756
756
|
i0.ɵɵadvance(3);
|
|
757
757
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
758
758
|
i0.ɵɵadvance(1);
|
|
759
759
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 25, "Year"));
|
|
760
760
|
i0.ɵɵadvance(2);
|
|
761
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$
|
|
761
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$Y, ctx.isInvalid));
|
|
762
762
|
i0.ɵɵadvance(2);
|
|
763
763
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
764
764
|
i0.ɵɵadvance(1);
|
|
@@ -828,7 +828,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
828
828
|
i0.ɵɵelementEnd();
|
|
829
829
|
i0.ɵɵelementContainerEnd();
|
|
830
830
|
} }
|
|
831
|
-
const _c0$
|
|
831
|
+
const _c0$X = ["*"];
|
|
832
832
|
var AlertMessageType;
|
|
833
833
|
(function (AlertMessageType) {
|
|
834
834
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -848,7 +848,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
848
848
|
AlertComponent.TYPE_ERROR = 'error';
|
|
849
849
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
850
850
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
851
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
851
|
+
AlertComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
852
852
|
i0.ɵɵprojectionDef();
|
|
853
853
|
i0.ɵɵelementStart(0, "div", 0);
|
|
854
854
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1086,7 +1086,7 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1086
1086
|
type: Output
|
|
1087
1087
|
}] }); })();
|
|
1088
1088
|
|
|
1089
|
-
const _c0$
|
|
1089
|
+
const _c0$W = function (a0) { return { "js-hidden": a0 }; };
|
|
1090
1090
|
const _c1$p = ["*"];
|
|
1091
1091
|
class TabComponent {
|
|
1092
1092
|
}
|
|
@@ -1097,7 +1097,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1097
1097
|
i0.ɵɵprojection(1);
|
|
1098
1098
|
i0.ɵɵelementEnd();
|
|
1099
1099
|
} if (rf & 2) {
|
|
1100
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
1100
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$W, !ctx.selected));
|
|
1101
1101
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1102
1102
|
} }, directives: [i2.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}}"] });
|
|
1103
1103
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -1117,7 +1117,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1117
1117
|
type: Input
|
|
1118
1118
|
}] }); })();
|
|
1119
1119
|
|
|
1120
|
-
const _c0$
|
|
1120
|
+
const _c0$V = ["tab"];
|
|
1121
1121
|
const _c1$o = function () { return ["."]; };
|
|
1122
1122
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1123
1123
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1164,7 +1164,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
1164
1164
|
let _t;
|
|
1165
1165
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1166
1166
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1167
|
-
i0.ɵɵviewQuery(_c0$
|
|
1167
|
+
i0.ɵɵviewQuery(_c0$V, 1);
|
|
1168
1168
|
} if (rf & 2) {
|
|
1169
1169
|
let _t;
|
|
1170
1170
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1231,7 +1231,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1231
1231
|
}]
|
|
1232
1232
|
}], null, null); })();
|
|
1233
1233
|
|
|
1234
|
-
const _c0$
|
|
1234
|
+
const _c0$U = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1235
1235
|
class ActivityBannerComponent {
|
|
1236
1236
|
constructor() { }
|
|
1237
1237
|
ngOnInit() {
|
|
@@ -1250,7 +1250,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1250
1250
|
i0.ɵɵelementEnd();
|
|
1251
1251
|
i0.ɵɵelementEnd();
|
|
1252
1252
|
} if (rf & 2) {
|
|
1253
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$
|
|
1253
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$U, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1254
1254
|
i0.ɵɵadvance(2);
|
|
1255
1255
|
i0.ɵɵpropertyInterpolate("alt", i0.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1256
1256
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -4225,7 +4225,7 @@ class ConditionParser {
|
|
|
4225
4225
|
}
|
|
4226
4226
|
static findValueForComplexConditionInArray(fields, head, tail, path) {
|
|
4227
4227
|
// use the path to resolve which array element we refer to
|
|
4228
|
-
if (path.startsWith(head)) {
|
|
4228
|
+
if (path && path.startsWith(head)) {
|
|
4229
4229
|
const [_, ...pathTail] = path.split(/[_]+/g);
|
|
4230
4230
|
if (pathTail.length > 0) {
|
|
4231
4231
|
try {
|
|
@@ -8519,20 +8519,24 @@ class ValidPageListCaseFieldsService {
|
|
|
8519
8519
|
.mergeCaseFieldsAndFormFields(eventTriggerFields, data);
|
|
8520
8520
|
return page.parsedShowCondition.match(fields);
|
|
8521
8521
|
}
|
|
8522
|
-
deleteNonValidatedFields(validPageList,
|
|
8522
|
+
deleteNonValidatedFields(validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage = false) {
|
|
8523
|
+
const pageListCaseFields = this.validPageListCaseFields(validPageList, caseEventDatadata, eventTriggerFields);
|
|
8524
|
+
if (!fromPreviousPage && pageListCaseFields.length > 0) {
|
|
8525
|
+
Object.keys(caseEventDatadata).forEach(key => {
|
|
8526
|
+
if (pageListCaseFields.findIndex((element) => element.id === key) < 0) {
|
|
8527
|
+
delete caseEventDatadata[key];
|
|
8528
|
+
}
|
|
8529
|
+
});
|
|
8530
|
+
}
|
|
8531
|
+
}
|
|
8532
|
+
validPageListCaseFields(validPageList, data, eventTriggerFields) {
|
|
8523
8533
|
const validPageListCaseFields = [];
|
|
8524
8534
|
validPageList.forEach(page => {
|
|
8525
8535
|
if (this.isShown(page, eventTriggerFields, data)) {
|
|
8526
8536
|
page.case_fields.forEach(field => validPageListCaseFields.push(field));
|
|
8527
8537
|
}
|
|
8528
8538
|
});
|
|
8529
|
-
|
|
8530
|
-
Object.keys(data).forEach(key => {
|
|
8531
|
-
if (validPageListCaseFields.findIndex((element) => element.id === key) < 0) {
|
|
8532
|
-
delete data[key];
|
|
8533
|
-
}
|
|
8534
|
-
});
|
|
8535
|
-
}
|
|
8539
|
+
return validPageListCaseFields;
|
|
8536
8540
|
}
|
|
8537
8541
|
}
|
|
8538
8542
|
ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0.ɵɵinject(FieldsUtils)); };
|
|
@@ -8727,6 +8731,9 @@ class CaseEditComponent {
|
|
|
8727
8731
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
8728
8732
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
8729
8733
|
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
|
|
8734
|
+
const pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
|
|
8735
|
+
// // Remove unnesessary case fields which are hidden
|
|
8736
|
+
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
|
|
8730
8737
|
caseEventData.event_token = eventTrigger.event_token;
|
|
8731
8738
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
8732
8739
|
if (this.confirmation) {
|
|
@@ -10489,7 +10496,7 @@ WriteComplexFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteComplexFi
|
|
|
10489
10496
|
type: Input
|
|
10490
10497
|
}] }); })();
|
|
10491
10498
|
|
|
10492
|
-
const _c0$
|
|
10499
|
+
const _c0$T = ["writeComplexFieldComponent"];
|
|
10493
10500
|
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
10494
10501
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10495
10502
|
i0.ɵɵtext(1);
|
|
@@ -10701,7 +10708,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10701
10708
|
}
|
|
10702
10709
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10703
10710
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10704
|
-
i0.ɵɵviewQuery(_c0$
|
|
10711
|
+
i0.ɵɵviewQuery(_c0$T, 1);
|
|
10705
10712
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10706
10713
|
} if (rf & 2) {
|
|
10707
10714
|
let _t;
|
|
@@ -11279,7 +11286,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if
|
|
|
11279
11286
|
i0.ɵɵadvance(1);
|
|
11280
11287
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
11281
11288
|
} }
|
|
11282
|
-
const _c0$
|
|
11289
|
+
const _c0$S = function (a0) { return { "form-group-error": a0 }; };
|
|
11283
11290
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11284
11291
|
i0.ɵɵelementStart(0, "div", 8);
|
|
11285
11292
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -11299,7 +11306,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
11299
11306
|
i0.ɵɵadvance(1);
|
|
11300
11307
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
11301
11308
|
i0.ɵɵadvance(1);
|
|
11302
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
11309
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$S, ctx_r1.errorMessages.length > 0));
|
|
11303
11310
|
i0.ɵɵadvance(1);
|
|
11304
11311
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r1.createFlagCaption), " ");
|
|
11305
11312
|
i0.ɵɵadvance(2);
|
|
@@ -11736,7 +11743,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11736
11743
|
}]
|
|
11737
11744
|
}], null, null); })();
|
|
11738
11745
|
|
|
11739
|
-
const _c0$
|
|
11746
|
+
const _c0$R = ["writeComplexFieldComponent"];
|
|
11740
11747
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11741
11748
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11742
11749
|
i0.ɵɵtext(1);
|
|
@@ -11817,7 +11824,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11817
11824
|
}
|
|
11818
11825
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11819
11826
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11820
|
-
i0.ɵɵviewQuery(_c0$
|
|
11827
|
+
i0.ɵɵviewQuery(_c0$R, 1);
|
|
11821
11828
|
} if (rf & 2) {
|
|
11822
11829
|
let _t;
|
|
11823
11830
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11855,7 +11862,7 @@ const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheri
|
|
|
11855
11862
|
args: ['writeComplexFieldComponent']
|
|
11856
11863
|
}] }); })();
|
|
11857
11864
|
|
|
11858
|
-
const _c0$
|
|
11865
|
+
const _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 }; };
|
|
11859
11866
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11860
11867
|
i0.ɵɵelementStart(0, "tbody");
|
|
11861
11868
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11868,7 +11875,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11868
11875
|
} if (rf & 2) {
|
|
11869
11876
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11870
11877
|
i0.ɵɵadvance(4);
|
|
11871
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11878
|
+
i0.ɵɵproperty("caseField", i0.ɵɵ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);
|
|
11872
11879
|
} }
|
|
11873
11880
|
const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11874
11881
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12009,7 +12016,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
12009
12016
|
}]
|
|
12010
12017
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
12011
12018
|
|
|
12012
|
-
const _c0$
|
|
12019
|
+
const _c0$P = ["collectionItem"];
|
|
12013
12020
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
12014
12021
|
i0.ɵɵelementStart(0, "span", 9);
|
|
12015
12022
|
i0.ɵɵtext(1);
|
|
@@ -12403,7 +12410,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12403
12410
|
}
|
|
12404
12411
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
12405
12412
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12406
|
-
i0.ɵɵviewQuery(_c0$
|
|
12413
|
+
i0.ɵɵviewQuery(_c0$P, 1);
|
|
12407
12414
|
} if (rf & 2) {
|
|
12408
12415
|
let _t;
|
|
12409
12416
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12740,7 +12747,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12740
12747
|
type: Injectable
|
|
12741
12748
|
}], null, null); })();
|
|
12742
12749
|
|
|
12743
|
-
const _c0$
|
|
12750
|
+
const _c0$O = ["fileInput"];
|
|
12744
12751
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
12745
12752
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12746
12753
|
i0.ɵɵtext(1);
|
|
@@ -13038,7 +13045,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
13038
13045
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
13039
13046
|
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
13040
13047
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13041
|
-
i0.ɵɵviewQuery(_c0$
|
|
13048
|
+
i0.ɵɵviewQuery(_c0$O, 1);
|
|
13042
13049
|
} if (rf & 2) {
|
|
13043
13050
|
let _t;
|
|
13044
13051
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -13213,7 +13220,7 @@ function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1
|
|
|
13213
13220
|
i0.ɵɵadvance(1);
|
|
13214
13221
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r5.label));
|
|
13215
13222
|
} }
|
|
13216
|
-
const _c0$
|
|
13223
|
+
const _c0$N = function (a0) { return { "form-group-error": a0 }; };
|
|
13217
13224
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
13218
13225
|
ngOnInit() {
|
|
13219
13226
|
/**
|
|
@@ -13256,7 +13263,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
13256
13263
|
i0.ɵɵelementEnd();
|
|
13257
13264
|
i0.ɵɵelementEnd();
|
|
13258
13265
|
} if (rf & 2) {
|
|
13259
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$
|
|
13266
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$N, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
13260
13267
|
i0.ɵɵadvance(1);
|
|
13261
13268
|
i0.ɵɵproperty("for", ctx.id());
|
|
13262
13269
|
i0.ɵɵadvance(1);
|
|
@@ -13441,7 +13448,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
13441
13448
|
i0.ɵɵadvance(1);
|
|
13442
13449
|
i0.ɵɵproperty("content", checkbox_r4.label);
|
|
13443
13450
|
} }
|
|
13444
|
-
const _c0$
|
|
13451
|
+
const _c0$M = function (a0) { return { "error": a0 }; };
|
|
13445
13452
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
13446
13453
|
ngOnInit() {
|
|
13447
13454
|
this.checkboxes = new FormArray([]);
|
|
@@ -13515,7 +13522,7 @@ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type:
|
|
|
13515
13522
|
i0.ɵɵelementEnd();
|
|
13516
13523
|
i0.ɵɵelementEnd();
|
|
13517
13524
|
} if (rf & 2) {
|
|
13518
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
13525
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$M, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
13519
13526
|
i0.ɵɵadvance(3);
|
|
13520
13527
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
13521
13528
|
i0.ɵɵadvance(1);
|
|
@@ -13637,7 +13644,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
13637
13644
|
i0.ɵɵadvance(1);
|
|
13638
13645
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
13639
13646
|
} }
|
|
13640
|
-
const _c0$
|
|
13647
|
+
const _c0$L = function (a0) { return { selected: a0 }; };
|
|
13641
13648
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
13642
13649
|
i0.ɵɵelementStart(0, "div", 10);
|
|
13643
13650
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -13649,7 +13656,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13649
13656
|
} if (rf & 2) {
|
|
13650
13657
|
const radioButton_r5 = ctx.$implicit;
|
|
13651
13658
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
13652
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13659
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
13653
13660
|
i0.ɵɵadvance(1);
|
|
13654
13661
|
i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
13655
13662
|
i0.ɵɵadvance(1);
|
|
@@ -13784,7 +13791,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13784
13791
|
i0.ɵɵadvance(1);
|
|
13785
13792
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
13786
13793
|
} }
|
|
13787
|
-
const _c0$
|
|
13794
|
+
const _c0$K = function (a0) { return { "form-group-error": a0 }; };
|
|
13788
13795
|
const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13789
13796
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
13790
13797
|
ngOnInit() {
|
|
@@ -13802,7 +13809,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13802
13809
|
i0.ɵɵelement(5, "input", 5);
|
|
13803
13810
|
i0.ɵɵelementEnd();
|
|
13804
13811
|
} if (rf & 2) {
|
|
13805
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13812
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
13806
13813
|
i0.ɵɵadvance(1);
|
|
13807
13814
|
i0.ɵɵproperty("for", ctx.id());
|
|
13808
13815
|
i0.ɵɵadvance(1);
|
|
@@ -13888,7 +13895,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
13888
13895
|
i0.ɵɵadvance(1);
|
|
13889
13896
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
13890
13897
|
} }
|
|
13891
|
-
const _c0$
|
|
13898
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
13892
13899
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
13893
13900
|
get listItems() {
|
|
13894
13901
|
if (this.caseField) {
|
|
@@ -13926,7 +13933,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13926
13933
|
i0.ɵɵelementEnd();
|
|
13927
13934
|
i0.ɵɵelementEnd();
|
|
13928
13935
|
} if (rf & 2) {
|
|
13929
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13936
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13930
13937
|
i0.ɵɵadvance(1);
|
|
13931
13938
|
i0.ɵɵproperty("for", ctx.id());
|
|
13932
13939
|
i0.ɵɵadvance(1);
|
|
@@ -14021,7 +14028,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
14021
14028
|
i0.ɵɵadvance(1);
|
|
14022
14029
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
14023
14030
|
} }
|
|
14024
|
-
const _c0$
|
|
14031
|
+
const _c0$I = function (a0) { return { selected: a0 }; };
|
|
14025
14032
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
14026
14033
|
i0.ɵɵelementStart(0, "div", 9);
|
|
14027
14034
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -14033,7 +14040,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
14033
14040
|
} if (rf & 2) {
|
|
14034
14041
|
const radioButton_r4 = ctx.$implicit;
|
|
14035
14042
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
14036
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
14043
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
14037
14044
|
i0.ɵɵadvance(1);
|
|
14038
14045
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
14039
14046
|
i0.ɵɵadvance(1);
|
|
@@ -14174,7 +14181,7 @@ function WriteJudicialUserFieldComponent_span_4_Template(rf, ctx) { if (rf & 1)
|
|
|
14174
14181
|
i0.ɵɵadvance(1);
|
|
14175
14182
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.errors, ctx_r2.caseField.label), " ");
|
|
14176
14183
|
} }
|
|
14177
|
-
const _c0$
|
|
14184
|
+
const _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
14178
14185
|
function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
14179
14186
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
14180
14187
|
i0.ɵɵelementStart(0, "mat-option", 13);
|
|
@@ -14184,7 +14191,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
14184
14191
|
} if (rf & 2) {
|
|
14185
14192
|
const judicialUser_r7 = ctx.$implicit;
|
|
14186
14193
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
14187
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
14194
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$H, !ctx_r4.showAutocomplete))("value", judicialUser_r7);
|
|
14188
14195
|
i0.ɵɵadvance(1);
|
|
14189
14196
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r7 == null ? null : judicialUser_r7.fullName) ? judicialUser_r7.fullName : "", "", (judicialUser_r7 == null ? null : judicialUser_r7.emailId) ? " (" + judicialUser_r7.emailId + ")" : "", " ");
|
|
14190
14197
|
} }
|
|
@@ -15008,7 +15015,7 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
15008
15015
|
i0.ɵɵadvance(3);
|
|
15009
15016
|
i0.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
15010
15017
|
} }
|
|
15011
|
-
const _c0$
|
|
15018
|
+
const _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
15012
15019
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
15013
15020
|
i0.ɵɵelementStart(0, "div", 35);
|
|
15014
15021
|
i0.ɵɵelementStart(1, "h3", 22);
|
|
@@ -15024,7 +15031,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
15024
15031
|
i0.ɵɵelementEnd();
|
|
15025
15032
|
} if (rf & 2) {
|
|
15026
15033
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
15027
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$
|
|
15034
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
|
|
15028
15035
|
i0.ɵɵadvance(3);
|
|
15029
15036
|
i0.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
15030
15037
|
} }
|
|
@@ -15075,11 +15082,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
15075
15082
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15076
15083
|
i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
15077
15084
|
i0.ɵɵadvance(1);
|
|
15078
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15085
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
|
|
15079
15086
|
i0.ɵɵadvance(3);
|
|
15080
15087
|
i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
15081
15088
|
i0.ɵɵadvance(2);
|
|
15082
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
15089
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
|
|
15083
15090
|
i0.ɵɵadvance(5);
|
|
15084
15091
|
i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
15085
15092
|
i0.ɵɵadvance(2);
|
|
@@ -15490,7 +15497,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
|
|
|
15490
15497
|
i0.ɵɵadvance(4);
|
|
15491
15498
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
15492
15499
|
i0.ɵɵadvance(4);
|
|
15493
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
15500
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
|
|
15494
15501
|
i0.ɵɵadvance(1);
|
|
15495
15502
|
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
15496
15503
|
i0.ɵɵadvance(18);
|
|
@@ -16121,7 +16128,7 @@ function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16121
16128
|
i0.ɵɵadvance(1);
|
|
16122
16129
|
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
16123
16130
|
} }
|
|
16124
|
-
const _c0$
|
|
16131
|
+
const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
16125
16132
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16126
16133
|
i0.ɵɵelementStart(0, "div", 7);
|
|
16127
16134
|
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
@@ -16131,7 +16138,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16131
16138
|
i0.ɵɵelementEnd();
|
|
16132
16139
|
} if (rf & 2) {
|
|
16133
16140
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
16134
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
16141
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
16135
16142
|
i0.ɵɵadvance(1);
|
|
16136
16143
|
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
16137
16144
|
i0.ɵɵadvance(2);
|
|
@@ -16901,7 +16908,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16901
16908
|
i0.ɵɵadvance(1);
|
|
16902
16909
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
16903
16910
|
} }
|
|
16904
|
-
const _c0$
|
|
16911
|
+
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
16905
16912
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
16906
16913
|
ngOnInit() {
|
|
16907
16914
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -16924,7 +16931,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
16924
16931
|
i0.ɵɵelementEnd();
|
|
16925
16932
|
i0.ɵɵelementEnd();
|
|
16926
16933
|
} if (rf & 2) {
|
|
16927
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
16934
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
16928
16935
|
i0.ɵɵadvance(1);
|
|
16929
16936
|
i0.ɵɵproperty("for", ctx.id());
|
|
16930
16937
|
i0.ɵɵadvance(1);
|
|
@@ -17048,7 +17055,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
17048
17055
|
i0.ɵɵadvance(1);
|
|
17049
17056
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
17050
17057
|
} }
|
|
17051
|
-
const _c0$
|
|
17058
|
+
const _c0$D = function (a0) { return { "error": a0 }; };
|
|
17052
17059
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
17053
17060
|
ngOnInit() {
|
|
17054
17061
|
this.checkboxes = new FormArray([]);
|
|
@@ -17103,7 +17110,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
17103
17110
|
i0.ɵɵelementEnd();
|
|
17104
17111
|
i0.ɵɵelementEnd();
|
|
17105
17112
|
} if (rf & 2) {
|
|
17106
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17113
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
17107
17114
|
i0.ɵɵadvance(3);
|
|
17108
17115
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17109
17116
|
i0.ɵɵadvance(1);
|
|
@@ -17175,7 +17182,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17175
17182
|
i0.ɵɵadvance(1);
|
|
17176
17183
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
|
|
17177
17184
|
} }
|
|
17178
|
-
const _c0$
|
|
17185
|
+
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
17179
17186
|
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17180
17187
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
17181
17188
|
ngOnInit() {
|
|
@@ -17193,7 +17200,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
17193
17200
|
i0.ɵɵelement(5, "input", 5);
|
|
17194
17201
|
i0.ɵɵelementEnd();
|
|
17195
17202
|
} if (rf & 2) {
|
|
17196
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
17203
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
17197
17204
|
i0.ɵɵadvance(1);
|
|
17198
17205
|
i0.ɵɵproperty("for", ctx.id());
|
|
17199
17206
|
i0.ɵɵadvance(1);
|
|
@@ -17479,7 +17486,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_div_4_Template(rf, ct
|
|
|
17479
17486
|
i0.ɵɵadvance(2);
|
|
17480
17487
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "No results found."), " ");
|
|
17481
17488
|
} }
|
|
17482
|
-
const _c0$
|
|
17489
|
+
const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
|
|
17483
17490
|
function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
17484
17491
|
i0.ɵɵelementStart(0, "div", 26);
|
|
17485
17492
|
i0.ɵɵpipe(1, "async");
|
|
@@ -17493,7 +17500,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
|
|
|
17493
17500
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
17494
17501
|
let tmp_0_0 = null;
|
|
17495
17502
|
let tmp_2_0 = null;
|
|
17496
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
17503
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
17497
17504
|
i0.ɵɵadvance(2);
|
|
17498
17505
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
17499
17506
|
i0.ɵɵadvance(2);
|
|
@@ -17918,7 +17925,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17918
17925
|
i0.ɵɵadvance(1);
|
|
17919
17926
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
|
|
17920
17927
|
} }
|
|
17921
|
-
const _c0$
|
|
17928
|
+
const _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
17922
17929
|
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17923
17930
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
17924
17931
|
ngOnInit() {
|
|
@@ -17936,7 +17943,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
17936
17943
|
i0.ɵɵelement(5, "input", 5);
|
|
17937
17944
|
i0.ɵɵelementEnd();
|
|
17938
17945
|
} if (rf & 2) {
|
|
17939
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
17946
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$A, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
17940
17947
|
i0.ɵɵadvance(1);
|
|
17941
17948
|
i0.ɵɵproperty("for", ctx.id());
|
|
17942
17949
|
i0.ɵɵadvance(1);
|
|
@@ -18010,7 +18017,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18010
18017
|
i0.ɵɵadvance(1);
|
|
18011
18018
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
|
|
18012
18019
|
} }
|
|
18013
|
-
const _c0$
|
|
18020
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
18014
18021
|
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
18015
18022
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
18016
18023
|
constructor(browserService) {
|
|
@@ -18041,7 +18048,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
18041
18048
|
i0.ɵɵelementEnd();
|
|
18042
18049
|
i0.ɵɵelementEnd();
|
|
18043
18050
|
} if (rf & 2) {
|
|
18044
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18051
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
18045
18052
|
i0.ɵɵadvance(1);
|
|
18046
18053
|
i0.ɵɵproperty("for", ctx.id());
|
|
18047
18054
|
i0.ɵɵadvance(1);
|
|
@@ -18115,7 +18122,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18115
18122
|
i0.ɵɵadvance(1);
|
|
18116
18123
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
|
|
18117
18124
|
} }
|
|
18118
|
-
const _c0$
|
|
18125
|
+
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
18119
18126
|
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18120
18127
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
18121
18128
|
ngOnInit() {
|
|
@@ -18138,7 +18145,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
18138
18145
|
i0.ɵɵelementEnd();
|
|
18139
18146
|
i0.ɵɵelementEnd();
|
|
18140
18147
|
} if (rf & 2) {
|
|
18141
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18148
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
18142
18149
|
i0.ɵɵadvance(1);
|
|
18143
18150
|
i0.ɵɵproperty("for", ctx.id());
|
|
18144
18151
|
i0.ɵɵadvance(1);
|
|
@@ -18309,7 +18316,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
18309
18316
|
i0.ɵɵadvance(1);
|
|
18310
18317
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
|
|
18311
18318
|
} }
|
|
18312
|
-
const _c0$
|
|
18319
|
+
const _c0$x = function (a0) { return { selected: a0 }; };
|
|
18313
18320
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
18314
18321
|
i0.ɵɵelementStart(0, "div", 10);
|
|
18315
18322
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -18320,7 +18327,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
18320
18327
|
} if (rf & 2) {
|
|
18321
18328
|
const value_r4 = ctx.$implicit;
|
|
18322
18329
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
18323
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18330
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$x, ctx_r3.yesNoControl.value === value_r4));
|
|
18324
18331
|
i0.ɵɵadvance(1);
|
|
18325
18332
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
18326
18333
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -18475,7 +18482,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
18475
18482
|
type: Injectable
|
|
18476
18483
|
}], null, null); })();
|
|
18477
18484
|
|
|
18478
|
-
const _c0$
|
|
18485
|
+
const _c0$w = ["fieldContainer"];
|
|
18479
18486
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
18480
18487
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
18481
18488
|
constructor(resolver, paletteService) {
|
|
@@ -18523,7 +18530,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
18523
18530
|
}
|
|
18524
18531
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
18525
18532
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18526
|
-
i0.ɵɵviewQuery(_c0$
|
|
18533
|
+
i0.ɵɵviewQuery(_c0$w, 1, ViewContainerRef);
|
|
18527
18534
|
} if (rf & 2) {
|
|
18528
18535
|
let _t;
|
|
18529
18536
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -18557,7 +18564,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
18557
18564
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
18558
18565
|
}] }); })();
|
|
18559
18566
|
|
|
18560
|
-
const _c0$
|
|
18567
|
+
const _c0$v = ["fieldContainer"];
|
|
18561
18568
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
18562
18569
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
18563
18570
|
constructor(resolver, paletteService) {
|
|
@@ -18601,7 +18608,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
18601
18608
|
}
|
|
18602
18609
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
18603
18610
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18604
|
-
i0.ɵɵviewQuery(_c0$
|
|
18611
|
+
i0.ɵɵviewQuery(_c0$v, 3, ViewContainerRef);
|
|
18605
18612
|
} if (rf & 2) {
|
|
18606
18613
|
let _t;
|
|
18607
18614
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -18651,7 +18658,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
18651
18658
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
18652
18659
|
i0.ɵɵprojection(0);
|
|
18653
18660
|
} }
|
|
18654
|
-
const _c0$
|
|
18661
|
+
const _c0$u = ["*"];
|
|
18655
18662
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
18656
18663
|
constructor() {
|
|
18657
18664
|
super(...arguments);
|
|
@@ -18686,7 +18693,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
18686
18693
|
}
|
|
18687
18694
|
}
|
|
18688
18695
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
18689
|
-
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
18696
|
+
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵ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) { if (rf & 1) {
|
|
18690
18697
|
i0.ɵɵprojectionDef();
|
|
18691
18698
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18692
18699
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 1);
|
|
@@ -18718,7 +18725,7 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
18718
18725
|
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18719
18726
|
i0.ɵɵelementContainer(0);
|
|
18720
18727
|
} }
|
|
18721
|
-
const _c0$
|
|
18728
|
+
const _c0$t = function (a0) { return { cat: a0, level: 1 }; };
|
|
18722
18729
|
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
18723
18730
|
i0.ɵɵelementContainerStart(0);
|
|
18724
18731
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -18728,7 +18735,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
18728
18735
|
i0.ɵɵnextContext();
|
|
18729
18736
|
const _r1 = i0.ɵɵreference(13);
|
|
18730
18737
|
i0.ɵɵadvance(1);
|
|
18731
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
18738
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$t, cat_r3));
|
|
18732
18739
|
} }
|
|
18733
18740
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18734
18741
|
i0.ɵɵelementContainer(0);
|
|
@@ -18919,7 +18926,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
18919
18926
|
i0.ɵɵadvance(1);
|
|
18920
18927
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
18921
18928
|
} }
|
|
18922
|
-
const _c0$
|
|
18929
|
+
const _c0$s = [[["", "trigger", ""]]];
|
|
18923
18930
|
const _c1$8 = ["[trigger]"];
|
|
18924
18931
|
class CaseFileViewOverlayMenuComponent {
|
|
18925
18932
|
constructor() {
|
|
@@ -18935,7 +18942,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
18935
18942
|
}
|
|
18936
18943
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18937
18944
|
CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
18938
|
-
i0.ɵɵprojectionDef(_c0$
|
|
18945
|
+
i0.ɵɵprojectionDef(_c0$s);
|
|
18939
18946
|
i0.ɵɵelementStart(0, "div");
|
|
18940
18947
|
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
18941
18948
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -19534,7 +19541,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
19534
19541
|
i0.ɵɵadvance(2);
|
|
19535
19542
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.flagCommentsCharLimitErrorMessage), " ");
|
|
19536
19543
|
} }
|
|
19537
|
-
const _c0$
|
|
19544
|
+
const _c0$r = function (a0) { return { "form-group-error": a0 }; };
|
|
19538
19545
|
class AddCommentsComponent {
|
|
19539
19546
|
constructor() {
|
|
19540
19547
|
this.optional = false;
|
|
@@ -19616,7 +19623,7 @@ AddCommentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddCommentsComponent
|
|
|
19616
19623
|
} if (rf & 2) {
|
|
19617
19624
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
19618
19625
|
i0.ɵɵadvance(2);
|
|
19619
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$
|
|
19626
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$r, ctx.errorMessages.length > 0));
|
|
19620
19627
|
i0.ɵɵadvance(2);
|
|
19621
19628
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
19622
19629
|
i0.ɵɵadvance(1);
|
|
@@ -19937,7 +19944,7 @@ function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
19937
19944
|
i0.ɵɵadvance(2);
|
|
19938
19945
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
19939
19946
|
} }
|
|
19940
|
-
const _c0$
|
|
19947
|
+
const _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19941
19948
|
class ManageCaseFlagsComponent {
|
|
19942
19949
|
constructor() {
|
|
19943
19950
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -20097,7 +20104,7 @@ ManageCaseFlagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ManageCaseFlagsC
|
|
|
20097
20104
|
} if (rf & 2) {
|
|
20098
20105
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20099
20106
|
i0.ɵɵadvance(1);
|
|
20100
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20107
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$q, ctx.errorMessages.length > 0));
|
|
20101
20108
|
i0.ɵɵadvance(4);
|
|
20102
20109
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
20103
20110
|
i0.ɵɵadvance(2);
|
|
@@ -20188,7 +20195,7 @@ function SearchLanguageInterpreterComponent_div_21_div_5_Template(rf, ctx) { if
|
|
|
20188
20195
|
i0.ɵɵadvance(3);
|
|
20189
20196
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
20190
20197
|
} }
|
|
20191
|
-
const _c0$
|
|
20198
|
+
const _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
20192
20199
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
20193
20200
|
i0.ɵɵelementStart(0, "div", 25);
|
|
20194
20201
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -20203,7 +20210,7 @@ function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf &
|
|
|
20203
20210
|
} if (rf & 2) {
|
|
20204
20211
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
20205
20212
|
i0.ɵɵadvance(1);
|
|
20206
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
20213
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
20207
20214
|
i0.ɵɵadvance(2);
|
|
20208
20215
|
i0.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
20209
20216
|
i0.ɵɵadvance(1);
|
|
@@ -20369,7 +20376,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
|
|
|
20369
20376
|
const _r2 = i0.ɵɵreference(12);
|
|
20370
20377
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20371
20378
|
i0.ɵɵadvance(1);
|
|
20372
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$
|
|
20379
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
20373
20380
|
i0.ɵɵadvance(2);
|
|
20374
20381
|
i0.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
20375
20382
|
i0.ɵɵadvance(1);
|
|
@@ -20493,7 +20500,7 @@ function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
20493
20500
|
i0.ɵɵadvance(2);
|
|
20494
20501
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
20495
20502
|
} }
|
|
20496
|
-
const _c0$
|
|
20503
|
+
const _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
20497
20504
|
class SelectFlagLocationComponent {
|
|
20498
20505
|
constructor() {
|
|
20499
20506
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -20579,7 +20586,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
|
|
|
20579
20586
|
} if (rf & 2) {
|
|
20580
20587
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20581
20588
|
i0.ɵɵadvance(1);
|
|
20582
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20589
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx.errorMessages.length > 0));
|
|
20583
20590
|
i0.ɵɵadvance(4);
|
|
20584
20591
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
20585
20592
|
i0.ɵɵadvance(2);
|
|
@@ -20649,7 +20656,7 @@ function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20649
20656
|
i0.ɵɵadvance(3);
|
|
20650
20657
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
20651
20658
|
} }
|
|
20652
|
-
const _c0$
|
|
20659
|
+
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
20653
20660
|
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20654
20661
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
20655
20662
|
i0.ɵɵelementStart(0, "div", 15);
|
|
@@ -20664,7 +20671,7 @@ function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
20664
20671
|
} if (rf & 2) {
|
|
20665
20672
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
20666
20673
|
i0.ɵɵadvance(1);
|
|
20667
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
20674
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$n, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
20668
20675
|
i0.ɵɵadvance(3);
|
|
20669
20676
|
i0.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
20670
20677
|
i0.ɵɵadvance(1);
|
|
@@ -20822,7 +20829,7 @@ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeCom
|
|
|
20822
20829
|
} if (rf & 2) {
|
|
20823
20830
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20824
20831
|
i0.ɵɵadvance(1);
|
|
20825
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
20832
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$n, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
20826
20833
|
i0.ɵɵadvance(4);
|
|
20827
20834
|
i0.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
20828
20835
|
i0.ɵɵadvance(1);
|
|
@@ -20886,7 +20893,7 @@ function UpdateFlagComponent_button_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
20886
20893
|
i0.ɵɵtext(1, " Make inactive ");
|
|
20887
20894
|
i0.ɵɵelementEnd();
|
|
20888
20895
|
} }
|
|
20889
|
-
const _c0$
|
|
20896
|
+
const _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
20890
20897
|
const _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
20891
20898
|
class UpdateFlagComponent {
|
|
20892
20899
|
constructor() {
|
|
@@ -21005,7 +21012,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
21005
21012
|
} if (rf & 2) {
|
|
21006
21013
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21007
21014
|
i0.ɵɵadvance(2);
|
|
21008
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$
|
|
21015
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$m, ctx.errorMessages.length > 0));
|
|
21009
21016
|
i0.ɵɵadvance(2);
|
|
21010
21017
|
i0.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
21011
21018
|
i0.ɵɵadvance(1);
|
|
@@ -21065,7 +21072,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
21065
21072
|
i0.ɵɵadvance(1);
|
|
21066
21073
|
i0.ɵɵproperty("caseField", field_r1)("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
21067
21074
|
} }
|
|
21068
|
-
const _c0$
|
|
21075
|
+
const _c0$l = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
|
|
21069
21076
|
/**
|
|
21070
21077
|
* Display a complex type fields as a list of values without labels.
|
|
21071
21078
|
* This is intended for rendering of Check Your Answer page.
|
|
@@ -21084,7 +21091,7 @@ ReadComplexFieldRawComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComplexF
|
|
|
21084
21091
|
i0.ɵɵelementEnd();
|
|
21085
21092
|
} if (rf & 2) {
|
|
21086
21093
|
i0.ɵɵadvance(1);
|
|
21087
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(2, 1, i0.ɵɵpureFunction3(8, _c0$
|
|
21094
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(2, 1, i0.ɵɵpureFunction3(8, _c0$l, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
|
|
21088
21095
|
} }, 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}"] });
|
|
21089
21096
|
const ɵReadComplexFieldRawComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent);
|
|
21090
21097
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
@@ -21153,6 +21160,7 @@ function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (r
|
|
|
21153
21160
|
i0.ɵɵadvance(1);
|
|
21154
21161
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, field_r1))("ngIfElse", _r3);
|
|
21155
21162
|
} }
|
|
21163
|
+
const _c0$k = function (a0, a4, a6) { return [a0, false, undefined, true, a4, undefined, a6]; };
|
|
21156
21164
|
class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
21157
21165
|
constructor() {
|
|
21158
21166
|
super(...arguments);
|
|
@@ -21160,7 +21168,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
21160
21168
|
}
|
|
21161
21169
|
}
|
|
21162
21170
|
ReadComplexFieldTableComponent.ɵfac = function ReadComplexFieldTableComponent_Factory(t) { return ɵReadComplexFieldTableComponent_BaseFactory(t || ReadComplexFieldTableComponent); };
|
|
21163
|
-
ReadComplexFieldTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars:
|
|
21171
|
+
ReadComplexFieldTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0.ɵɵ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) { if (rf & 1) {
|
|
21164
21172
|
i0.ɵɵelementStart(0, "div", 0);
|
|
21165
21173
|
i0.ɵɵelementStart(1, "dl", 1);
|
|
21166
21174
|
i0.ɵɵelementStart(2, "dt");
|
|
@@ -21182,7 +21190,7 @@ ReadComplexFieldTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComple
|
|
|
21182
21190
|
i0.ɵɵadvance(4);
|
|
21183
21191
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 2, ctx.caseField.label));
|
|
21184
21192
|
i0.ɵɵadvance(5);
|
|
21185
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵ
|
|
21193
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(10, 4, i0.ɵɵpureFunction3(12, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.idPrefix)));
|
|
21186
21194
|
} }, 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}"] });
|
|
21187
21195
|
const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent);
|
|
21188
21196
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
@@ -22940,13 +22948,13 @@ class ReadFieldsFilterPipe {
|
|
|
22940
22948
|
/**
|
|
22941
22949
|
* Complex type should have at least on simple field descendant with a value.
|
|
22942
22950
|
*/
|
|
22943
|
-
static isValidComplex(field, values) {
|
|
22951
|
+
static isValidComplex(field, values, checkConditionalShowAgainst) {
|
|
22944
22952
|
values = values || {};
|
|
22945
22953
|
const type = field.field_type;
|
|
22946
22954
|
const value = ReadFieldsFilterPipe.getValue(field, values);
|
|
22947
22955
|
const hasChildrenWithValue = type.complex_fields.find(f => {
|
|
22948
|
-
const willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
|
|
22949
|
-
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f,
|
|
22956
|
+
const willKeep = ReadFieldsFilterPipe.keepField(f, value, true, checkConditionalShowAgainst);
|
|
22957
|
+
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst).hidden !== true;
|
|
22950
22958
|
});
|
|
22951
22959
|
return !!hasChildrenWithValue;
|
|
22952
22960
|
}
|
|
@@ -22976,11 +22984,11 @@ class ReadFieldsFilterPipe {
|
|
|
22976
22984
|
static isCompound(field) {
|
|
22977
22985
|
return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
|
|
22978
22986
|
}
|
|
22979
|
-
static isValidCompound(field, value) {
|
|
22987
|
+
static isValidCompound(field, value, checkConditionalShowAgainst) {
|
|
22980
22988
|
return ReadFieldsFilterPipe.isCompound(field)
|
|
22981
|
-
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
22989
|
+
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value, checkConditionalShowAgainst);
|
|
22982
22990
|
}
|
|
22983
|
-
static keepField(field, value, ignoreLabels = false) {
|
|
22991
|
+
static keepField(field, value, ignoreLabels = false, checkConditionalShowAgainst) {
|
|
22984
22992
|
// We shouldn't ditch labels.
|
|
22985
22993
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
22986
22994
|
return true;
|
|
@@ -22991,7 +22999,7 @@ class ReadFieldsFilterPipe {
|
|
|
22991
22999
|
}
|
|
22992
23000
|
value = value || {};
|
|
22993
23001
|
if (ReadFieldsFilterPipe.isCompound(field)) {
|
|
22994
|
-
return ReadFieldsFilterPipe.isValidCompound(field, value);
|
|
23002
|
+
return ReadFieldsFilterPipe.isValidCompound(field, value, checkConditionalShowAgainst);
|
|
22995
23003
|
}
|
|
22996
23004
|
return !ReadFieldsFilterPipe.isEmpty(field.value)
|
|
22997
23005
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
@@ -23034,7 +23042,7 @@ class ReadFieldsFilterPipe {
|
|
|
23034
23042
|
/**
|
|
23035
23043
|
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
23036
23044
|
*/
|
|
23037
|
-
transform(complexField, keepEmpty, index, setupHidden = false, formGroup, path) {
|
|
23045
|
+
transform(complexField, keepEmpty, index, setupHidden = false, formGroup, path, idPrefix) {
|
|
23038
23046
|
if (!complexField || !complexField.field_type) {
|
|
23039
23047
|
return [];
|
|
23040
23048
|
}
|
|
@@ -23043,8 +23051,15 @@ class ReadFieldsFilterPipe {
|
|
|
23043
23051
|
let checkConditionalShowAgainst = values;
|
|
23044
23052
|
let formGroupAvailable = false;
|
|
23045
23053
|
if (formGroup) {
|
|
23046
|
-
checkConditionalShowAgainst = formGroup.
|
|
23054
|
+
checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
|
|
23047
23055
|
formGroupAvailable = true;
|
|
23056
|
+
if (idPrefix) {
|
|
23057
|
+
const fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
|
|
23058
|
+
if (checkConditionalShowAgainst[fieldId]) {
|
|
23059
|
+
checkConditionalShowAgainst = values;
|
|
23060
|
+
formGroupAvailable = false;
|
|
23061
|
+
}
|
|
23062
|
+
}
|
|
23048
23063
|
}
|
|
23049
23064
|
return fields
|
|
23050
23065
|
.map(f => {
|
|
@@ -23064,7 +23079,7 @@ class ReadFieldsFilterPipe {
|
|
|
23064
23079
|
}
|
|
23065
23080
|
return f;
|
|
23066
23081
|
})
|
|
23067
|
-
.filter(f => keepEmpty || ReadFieldsFilterPipe.keepField(f));
|
|
23082
|
+
.filter(f => keepEmpty || ReadFieldsFilterPipe.keepField(f, undefined, false, checkConditionalShowAgainst));
|
|
23068
23083
|
}
|
|
23069
23084
|
}
|
|
23070
23085
|
ReadFieldsFilterPipe.EMPTY_VALUES = [
|