@hmcts/ccd-case-ui-toolkit 6.19.10-doc-upload → 6.19.11-exui-848
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 +166 -127
- 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 +7 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +16 -12
- package/esm2015/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.js +2 -1
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-table.component.js +4 -3
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +16 -2
- 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 +26 -13
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +164 -126
- 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/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +1 -0
- package/lib/shared/components/palette/document/write-document-field.component.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 {
|
|
@@ -7400,6 +7400,7 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7400
7400
|
childrenCaseFields.forEach(e => this.hideParentIfAllChildrenHidden(e));
|
|
7401
7401
|
if (childrenCaseFields.length > 0 && this.allCaseFieldsHidden(childrenCaseFields)) {
|
|
7402
7402
|
caseField.hidden = true;
|
|
7403
|
+
caseField.display_context = 'HIDDEN';
|
|
7403
7404
|
}
|
|
7404
7405
|
}
|
|
7405
7406
|
getCaseFieldChildren(caseField) {
|
|
@@ -8514,25 +8515,29 @@ class ValidPageListCaseFieldsService {
|
|
|
8514
8515
|
constructor(fieldsUtils) {
|
|
8515
8516
|
this.fieldsUtils = fieldsUtils;
|
|
8516
8517
|
}
|
|
8517
|
-
isShown(page, eventTriggerFields,
|
|
8518
|
+
isShown(page, eventTriggerFields, formFields) {
|
|
8518
8519
|
const fields = this.fieldsUtils
|
|
8519
|
-
.mergeCaseFieldsAndFormFields(eventTriggerFields,
|
|
8520
|
+
.mergeCaseFieldsAndFormFields(eventTriggerFields, formFields);
|
|
8520
8521
|
return page.parsedShowCondition.match(fields);
|
|
8521
8522
|
}
|
|
8522
|
-
deleteNonValidatedFields(validPageList,
|
|
8523
|
+
deleteNonValidatedFields(validPageList, caseEventDatadata, eventTriggerFields, fromPreviousPage, formFields) {
|
|
8524
|
+
const pageListCaseFields = this.validPageListCaseFields(validPageList, eventTriggerFields, formFields);
|
|
8525
|
+
if (!fromPreviousPage && pageListCaseFields.length > 0) {
|
|
8526
|
+
Object.keys(caseEventDatadata).forEach(key => {
|
|
8527
|
+
if (pageListCaseFields.findIndex((element) => element.id === key) < 0) {
|
|
8528
|
+
delete caseEventDatadata[key];
|
|
8529
|
+
}
|
|
8530
|
+
});
|
|
8531
|
+
}
|
|
8532
|
+
}
|
|
8533
|
+
validPageListCaseFields(validPageList, eventTriggerFields, formFields) {
|
|
8523
8534
|
const validPageListCaseFields = [];
|
|
8524
8535
|
validPageList.forEach(page => {
|
|
8525
|
-
if (this.isShown(page, eventTriggerFields,
|
|
8536
|
+
if (this.isShown(page, eventTriggerFields, formFields)) {
|
|
8526
8537
|
page.case_fields.forEach(field => validPageListCaseFields.push(field));
|
|
8527
8538
|
}
|
|
8528
8539
|
});
|
|
8529
|
-
|
|
8530
|
-
Object.keys(data).forEach(key => {
|
|
8531
|
-
if (validPageListCaseFields.findIndex((element) => element.id === key) < 0) {
|
|
8532
|
-
delete data[key];
|
|
8533
|
-
}
|
|
8534
|
-
});
|
|
8535
|
-
}
|
|
8540
|
+
return validPageListCaseFields;
|
|
8536
8541
|
}
|
|
8537
8542
|
}
|
|
8538
8543
|
ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0.ɵɵinject(FieldsUtils)); };
|
|
@@ -8726,7 +8731,12 @@ class CaseEditComponent {
|
|
|
8726
8731
|
// Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
|
|
8727
8732
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
8728
8733
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
8729
|
-
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
|
|
8734
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false, form.controls['data'].value);
|
|
8735
|
+
const pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, eventTrigger.case_fields, form.controls['data'].value);
|
|
8736
|
+
// Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
|
|
8737
|
+
if (!this.isCaseFlagSubmission) {
|
|
8738
|
+
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
|
|
8739
|
+
}
|
|
8730
8740
|
caseEventData.event_token = eventTrigger.event_token;
|
|
8731
8741
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
8732
8742
|
if (this.confirmation) {
|
|
@@ -9973,7 +9983,7 @@ class CaseEditPageComponent {
|
|
|
9973
9983
|
// Get hold of the CaseEventData.
|
|
9974
9984
|
const caseEventData = this.formValueService.sanitise(formFields);
|
|
9975
9985
|
// delete fields which are not part of the case event journey wizard pages case fields
|
|
9976
|
-
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
|
|
9986
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage, this.editForm.controls['data'].value);
|
|
9977
9987
|
// Tidy it up before we return it.
|
|
9978
9988
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
|
|
9979
9989
|
return caseEventData;
|
|
@@ -10489,7 +10499,7 @@ WriteComplexFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteComplexFi
|
|
|
10489
10499
|
type: Input
|
|
10490
10500
|
}] }); })();
|
|
10491
10501
|
|
|
10492
|
-
const _c0$
|
|
10502
|
+
const _c0$T = ["writeComplexFieldComponent"];
|
|
10493
10503
|
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
10494
10504
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10495
10505
|
i0.ɵɵtext(1);
|
|
@@ -10701,7 +10711,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10701
10711
|
}
|
|
10702
10712
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10703
10713
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10704
|
-
i0.ɵɵviewQuery(_c0$
|
|
10714
|
+
i0.ɵɵviewQuery(_c0$T, 1);
|
|
10705
10715
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10706
10716
|
} if (rf & 2) {
|
|
10707
10717
|
let _t;
|
|
@@ -11279,7 +11289,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if
|
|
|
11279
11289
|
i0.ɵɵadvance(1);
|
|
11280
11290
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
11281
11291
|
} }
|
|
11282
|
-
const _c0$
|
|
11292
|
+
const _c0$S = function (a0) { return { "form-group-error": a0 }; };
|
|
11283
11293
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11284
11294
|
i0.ɵɵelementStart(0, "div", 8);
|
|
11285
11295
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -11299,7 +11309,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
11299
11309
|
i0.ɵɵadvance(1);
|
|
11300
11310
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
11301
11311
|
i0.ɵɵadvance(1);
|
|
11302
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
11312
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$S, ctx_r1.errorMessages.length > 0));
|
|
11303
11313
|
i0.ɵɵadvance(1);
|
|
11304
11314
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r1.createFlagCaption), " ");
|
|
11305
11315
|
i0.ɵɵadvance(2);
|
|
@@ -11736,7 +11746,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11736
11746
|
}]
|
|
11737
11747
|
}], null, null); })();
|
|
11738
11748
|
|
|
11739
|
-
const _c0$
|
|
11749
|
+
const _c0$R = ["writeComplexFieldComponent"];
|
|
11740
11750
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11741
11751
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11742
11752
|
i0.ɵɵtext(1);
|
|
@@ -11817,7 +11827,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11817
11827
|
}
|
|
11818
11828
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11819
11829
|
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$
|
|
11830
|
+
i0.ɵɵviewQuery(_c0$R, 1);
|
|
11821
11831
|
} if (rf & 2) {
|
|
11822
11832
|
let _t;
|
|
11823
11833
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11855,7 +11865,7 @@ const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheri
|
|
|
11855
11865
|
args: ['writeComplexFieldComponent']
|
|
11856
11866
|
}] }); })();
|
|
11857
11867
|
|
|
11858
|
-
const _c0$
|
|
11868
|
+
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
11869
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11860
11870
|
i0.ɵɵelementStart(0, "tbody");
|
|
11861
11871
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11868,7 +11878,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11868
11878
|
} if (rf & 2) {
|
|
11869
11879
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11870
11880
|
i0.ɵɵadvance(4);
|
|
11871
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11881
|
+
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
11882
|
} }
|
|
11873
11883
|
const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11874
11884
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12009,7 +12019,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
12009
12019
|
}]
|
|
12010
12020
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
12011
12021
|
|
|
12012
|
-
const _c0$
|
|
12022
|
+
const _c0$P = ["collectionItem"];
|
|
12013
12023
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
12014
12024
|
i0.ɵɵelementStart(0, "span", 9);
|
|
12015
12025
|
i0.ɵɵtext(1);
|
|
@@ -12403,7 +12413,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12403
12413
|
}
|
|
12404
12414
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
12405
12415
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12406
|
-
i0.ɵɵviewQuery(_c0$
|
|
12416
|
+
i0.ɵɵviewQuery(_c0$P, 1);
|
|
12407
12417
|
} if (rf & 2) {
|
|
12408
12418
|
let _t;
|
|
12409
12419
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12740,7 +12750,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12740
12750
|
type: Injectable
|
|
12741
12751
|
}], null, null); })();
|
|
12742
12752
|
|
|
12743
|
-
const _c0$
|
|
12753
|
+
const _c0$O = ["fileInput"];
|
|
12744
12754
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
12745
12755
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12746
12756
|
i0.ɵɵtext(1);
|
|
@@ -12779,6 +12789,15 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12779
12789
|
this.jurisdictionService = jurisdictionService;
|
|
12780
12790
|
this.valid = true;
|
|
12781
12791
|
}
|
|
12792
|
+
clickout(event) {
|
|
12793
|
+
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
12794
|
+
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
12795
|
+
this.clickInsideTheDocument = true;
|
|
12796
|
+
}
|
|
12797
|
+
else {
|
|
12798
|
+
this.fileValidations();
|
|
12799
|
+
}
|
|
12800
|
+
}
|
|
12782
12801
|
ngOnInit() {
|
|
12783
12802
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
12784
12803
|
if (this.secureModeOn) {
|
|
@@ -13029,10 +13048,12 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
13029
13048
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
13030
13049
|
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)); };
|
|
13031
13050
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13032
|
-
i0.ɵɵviewQuery(_c0$
|
|
13051
|
+
i0.ɵɵviewQuery(_c0$O, 1);
|
|
13033
13052
|
} if (rf & 2) {
|
|
13034
13053
|
let _t;
|
|
13035
13054
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
13055
|
+
} }, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
13056
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0.ɵɵresolveDocument);
|
|
13036
13057
|
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13037
13058
|
i0.ɵɵelementStart(0, "div", 0);
|
|
13038
13059
|
i0.ɵɵelementStart(1, "label", 1);
|
|
@@ -13097,6 +13118,9 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
13097
13118
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
13098
13119
|
type: ViewChild,
|
|
13099
13120
|
args: ['fileInput', { static: false }]
|
|
13121
|
+
}], clickout: [{
|
|
13122
|
+
type: HostListener,
|
|
13123
|
+
args: ['document:click', ['$event']]
|
|
13100
13124
|
}] }); })();
|
|
13101
13125
|
|
|
13102
13126
|
class DynamicListPipe {
|
|
@@ -13199,7 +13223,7 @@ function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1
|
|
|
13199
13223
|
i0.ɵɵadvance(1);
|
|
13200
13224
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r5.label));
|
|
13201
13225
|
} }
|
|
13202
|
-
const _c0$
|
|
13226
|
+
const _c0$N = function (a0) { return { "form-group-error": a0 }; };
|
|
13203
13227
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
13204
13228
|
ngOnInit() {
|
|
13205
13229
|
/**
|
|
@@ -13242,7 +13266,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
13242
13266
|
i0.ɵɵelementEnd();
|
|
13243
13267
|
i0.ɵɵelementEnd();
|
|
13244
13268
|
} if (rf & 2) {
|
|
13245
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$
|
|
13269
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$N, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
13246
13270
|
i0.ɵɵadvance(1);
|
|
13247
13271
|
i0.ɵɵproperty("for", ctx.id());
|
|
13248
13272
|
i0.ɵɵadvance(1);
|
|
@@ -13427,7 +13451,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
13427
13451
|
i0.ɵɵadvance(1);
|
|
13428
13452
|
i0.ɵɵproperty("content", checkbox_r4.label);
|
|
13429
13453
|
} }
|
|
13430
|
-
const _c0$
|
|
13454
|
+
const _c0$M = function (a0) { return { "error": a0 }; };
|
|
13431
13455
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
13432
13456
|
ngOnInit() {
|
|
13433
13457
|
this.checkboxes = new FormArray([]);
|
|
@@ -13501,7 +13525,7 @@ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type:
|
|
|
13501
13525
|
i0.ɵɵelementEnd();
|
|
13502
13526
|
i0.ɵɵelementEnd();
|
|
13503
13527
|
} if (rf & 2) {
|
|
13504
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
13528
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$M, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
13505
13529
|
i0.ɵɵadvance(3);
|
|
13506
13530
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
13507
13531
|
i0.ɵɵadvance(1);
|
|
@@ -13623,7 +13647,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
13623
13647
|
i0.ɵɵadvance(1);
|
|
13624
13648
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
13625
13649
|
} }
|
|
13626
|
-
const _c0$
|
|
13650
|
+
const _c0$L = function (a0) { return { selected: a0 }; };
|
|
13627
13651
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
13628
13652
|
i0.ɵɵelementStart(0, "div", 10);
|
|
13629
13653
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -13635,7 +13659,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13635
13659
|
} if (rf & 2) {
|
|
13636
13660
|
const radioButton_r5 = ctx.$implicit;
|
|
13637
13661
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
13638
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13662
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$L, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
13639
13663
|
i0.ɵɵadvance(1);
|
|
13640
13664
|
i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
13641
13665
|
i0.ɵɵadvance(1);
|
|
@@ -13770,7 +13794,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13770
13794
|
i0.ɵɵadvance(1);
|
|
13771
13795
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
13772
13796
|
} }
|
|
13773
|
-
const _c0$
|
|
13797
|
+
const _c0$K = function (a0) { return { "form-group-error": a0 }; };
|
|
13774
13798
|
const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13775
13799
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
13776
13800
|
ngOnInit() {
|
|
@@ -13788,7 +13812,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13788
13812
|
i0.ɵɵelement(5, "input", 5);
|
|
13789
13813
|
i0.ɵɵelementEnd();
|
|
13790
13814
|
} if (rf & 2) {
|
|
13791
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13815
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$K, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
13792
13816
|
i0.ɵɵadvance(1);
|
|
13793
13817
|
i0.ɵɵproperty("for", ctx.id());
|
|
13794
13818
|
i0.ɵɵadvance(1);
|
|
@@ -13874,7 +13898,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
13874
13898
|
i0.ɵɵadvance(1);
|
|
13875
13899
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
13876
13900
|
} }
|
|
13877
|
-
const _c0$
|
|
13901
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
13878
13902
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
13879
13903
|
get listItems() {
|
|
13880
13904
|
if (this.caseField) {
|
|
@@ -13912,7 +13936,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13912
13936
|
i0.ɵɵelementEnd();
|
|
13913
13937
|
i0.ɵɵelementEnd();
|
|
13914
13938
|
} if (rf & 2) {
|
|
13915
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13939
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$J, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13916
13940
|
i0.ɵɵadvance(1);
|
|
13917
13941
|
i0.ɵɵproperty("for", ctx.id());
|
|
13918
13942
|
i0.ɵɵadvance(1);
|
|
@@ -14007,7 +14031,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
14007
14031
|
i0.ɵɵadvance(1);
|
|
14008
14032
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
14009
14033
|
} }
|
|
14010
|
-
const _c0$
|
|
14034
|
+
const _c0$I = function (a0) { return { selected: a0 }; };
|
|
14011
14035
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
14012
14036
|
i0.ɵɵelementStart(0, "div", 9);
|
|
14013
14037
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -14019,7 +14043,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
14019
14043
|
} if (rf & 2) {
|
|
14020
14044
|
const radioButton_r4 = ctx.$implicit;
|
|
14021
14045
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
14022
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
14046
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
14023
14047
|
i0.ɵɵadvance(1);
|
|
14024
14048
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
14025
14049
|
i0.ɵɵadvance(1);
|
|
@@ -14160,7 +14184,7 @@ function WriteJudicialUserFieldComponent_span_4_Template(rf, ctx) { if (rf & 1)
|
|
|
14160
14184
|
i0.ɵɵadvance(1);
|
|
14161
14185
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.errors, ctx_r2.caseField.label), " ");
|
|
14162
14186
|
} }
|
|
14163
|
-
const _c0$
|
|
14187
|
+
const _c0$H = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
14164
14188
|
function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
14165
14189
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
14166
14190
|
i0.ɵɵelementStart(0, "mat-option", 13);
|
|
@@ -14170,7 +14194,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
14170
14194
|
} if (rf & 2) {
|
|
14171
14195
|
const judicialUser_r7 = ctx.$implicit;
|
|
14172
14196
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
14173
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
14197
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$H, !ctx_r4.showAutocomplete))("value", judicialUser_r7);
|
|
14174
14198
|
i0.ɵɵadvance(1);
|
|
14175
14199
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r7 == null ? null : judicialUser_r7.fullName) ? judicialUser_r7.fullName : "", "", (judicialUser_r7 == null ? null : judicialUser_r7.emailId) ? " (" + judicialUser_r7.emailId + ")" : "", " ");
|
|
14176
14200
|
} }
|
|
@@ -14994,7 +15018,7 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
14994
15018
|
i0.ɵɵadvance(3);
|
|
14995
15019
|
i0.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
|
|
14996
15020
|
} }
|
|
14997
|
-
const _c0$
|
|
15021
|
+
const _c0$G = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
14998
15022
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
14999
15023
|
i0.ɵɵelementStart(0, "div", 35);
|
|
15000
15024
|
i0.ɵɵelementStart(1, "h3", 22);
|
|
@@ -15010,7 +15034,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
15010
15034
|
i0.ɵɵelementEnd();
|
|
15011
15035
|
} if (rf & 2) {
|
|
15012
15036
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
15013
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$
|
|
15037
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$G, !!ctx_r7.caseReasonCommentsError));
|
|
15014
15038
|
i0.ɵɵadvance(3);
|
|
15015
15039
|
i0.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
|
|
15016
15040
|
} }
|
|
@@ -15061,11 +15085,11 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
15061
15085
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15062
15086
|
i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
15063
15087
|
i0.ɵɵadvance(1);
|
|
15064
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15088
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$G, !!ctx_r0.caseNumberError));
|
|
15065
15089
|
i0.ɵɵadvance(3);
|
|
15066
15090
|
i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
15067
15091
|
i0.ɵɵadvance(2);
|
|
15068
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
15092
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$G, !!ctx_r0.caseReasonError));
|
|
15069
15093
|
i0.ɵɵadvance(5);
|
|
15070
15094
|
i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
15071
15095
|
i0.ɵɵadvance(2);
|
|
@@ -15476,7 +15500,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
|
|
|
15476
15500
|
i0.ɵɵadvance(4);
|
|
15477
15501
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
15478
15502
|
i0.ɵɵadvance(4);
|
|
15479
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
15503
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !!ctx.noSelectedCaseError));
|
|
15480
15504
|
i0.ɵɵadvance(1);
|
|
15481
15505
|
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
15482
15506
|
i0.ɵɵadvance(18);
|
|
@@ -16107,7 +16131,7 @@ function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16107
16131
|
i0.ɵɵadvance(1);
|
|
16108
16132
|
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
16109
16133
|
} }
|
|
16110
|
-
const _c0$
|
|
16134
|
+
const _c0$F = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
16111
16135
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16112
16136
|
i0.ɵɵelementStart(0, "div", 7);
|
|
16113
16137
|
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
@@ -16117,7 +16141,7 @@ function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16117
16141
|
i0.ɵɵelementEnd();
|
|
16118
16142
|
} if (rf & 2) {
|
|
16119
16143
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
16120
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
16144
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$F, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
16121
16145
|
i0.ɵɵadvance(1);
|
|
16122
16146
|
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
16123
16147
|
i0.ɵɵadvance(2);
|
|
@@ -16887,7 +16911,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16887
16911
|
i0.ɵɵadvance(1);
|
|
16888
16912
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
16889
16913
|
} }
|
|
16890
|
-
const _c0$
|
|
16914
|
+
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
16891
16915
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
16892
16916
|
ngOnInit() {
|
|
16893
16917
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -16910,7 +16934,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
16910
16934
|
i0.ɵɵelementEnd();
|
|
16911
16935
|
i0.ɵɵelementEnd();
|
|
16912
16936
|
} if (rf & 2) {
|
|
16913
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
16937
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
16914
16938
|
i0.ɵɵadvance(1);
|
|
16915
16939
|
i0.ɵɵproperty("for", ctx.id());
|
|
16916
16940
|
i0.ɵɵadvance(1);
|
|
@@ -17034,7 +17058,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
17034
17058
|
i0.ɵɵadvance(1);
|
|
17035
17059
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
17036
17060
|
} }
|
|
17037
|
-
const _c0$
|
|
17061
|
+
const _c0$D = function (a0) { return { "error": a0 }; };
|
|
17038
17062
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
17039
17063
|
ngOnInit() {
|
|
17040
17064
|
this.checkboxes = new FormArray([]);
|
|
@@ -17089,7 +17113,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
17089
17113
|
i0.ɵɵelementEnd();
|
|
17090
17114
|
i0.ɵɵelementEnd();
|
|
17091
17115
|
} if (rf & 2) {
|
|
17092
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17116
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
17093
17117
|
i0.ɵɵadvance(3);
|
|
17094
17118
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17095
17119
|
i0.ɵɵadvance(1);
|
|
@@ -17161,7 +17185,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17161
17185
|
i0.ɵɵadvance(1);
|
|
17162
17186
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
|
|
17163
17187
|
} }
|
|
17164
|
-
const _c0$
|
|
17188
|
+
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
17165
17189
|
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17166
17190
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
17167
17191
|
ngOnInit() {
|
|
@@ -17179,7 +17203,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
17179
17203
|
i0.ɵɵelement(5, "input", 5);
|
|
17180
17204
|
i0.ɵɵelementEnd();
|
|
17181
17205
|
} if (rf & 2) {
|
|
17182
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
17206
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
17183
17207
|
i0.ɵɵadvance(1);
|
|
17184
17208
|
i0.ɵɵproperty("for", ctx.id());
|
|
17185
17209
|
i0.ɵɵadvance(1);
|
|
@@ -17465,7 +17489,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_div_4_Template(rf, ct
|
|
|
17465
17489
|
i0.ɵɵadvance(2);
|
|
17466
17490
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "No results found."), " ");
|
|
17467
17491
|
} }
|
|
17468
|
-
const _c0$
|
|
17492
|
+
const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
|
|
17469
17493
|
function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
17470
17494
|
i0.ɵɵelementStart(0, "div", 26);
|
|
17471
17495
|
i0.ɵɵpipe(1, "async");
|
|
@@ -17479,7 +17503,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
|
|
|
17479
17503
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
17480
17504
|
let tmp_0_0 = null;
|
|
17481
17505
|
let tmp_2_0 = null;
|
|
17482
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
17506
|
+
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));
|
|
17483
17507
|
i0.ɵɵadvance(2);
|
|
17484
17508
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
17485
17509
|
i0.ɵɵadvance(2);
|
|
@@ -17904,7 +17928,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17904
17928
|
i0.ɵɵadvance(1);
|
|
17905
17929
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
|
|
17906
17930
|
} }
|
|
17907
|
-
const _c0$
|
|
17931
|
+
const _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
17908
17932
|
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17909
17933
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
17910
17934
|
ngOnInit() {
|
|
@@ -17922,7 +17946,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
17922
17946
|
i0.ɵɵelement(5, "input", 5);
|
|
17923
17947
|
i0.ɵɵelementEnd();
|
|
17924
17948
|
} if (rf & 2) {
|
|
17925
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
17949
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$A, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
17926
17950
|
i0.ɵɵadvance(1);
|
|
17927
17951
|
i0.ɵɵproperty("for", ctx.id());
|
|
17928
17952
|
i0.ɵɵadvance(1);
|
|
@@ -17996,7 +18020,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17996
18020
|
i0.ɵɵadvance(1);
|
|
17997
18021
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
|
|
17998
18022
|
} }
|
|
17999
|
-
const _c0$
|
|
18023
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
18000
18024
|
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
18001
18025
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
18002
18026
|
constructor(browserService) {
|
|
@@ -18027,7 +18051,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
18027
18051
|
i0.ɵɵelementEnd();
|
|
18028
18052
|
i0.ɵɵelementEnd();
|
|
18029
18053
|
} if (rf & 2) {
|
|
18030
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18054
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
18031
18055
|
i0.ɵɵadvance(1);
|
|
18032
18056
|
i0.ɵɵproperty("for", ctx.id());
|
|
18033
18057
|
i0.ɵɵadvance(1);
|
|
@@ -18101,7 +18125,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18101
18125
|
i0.ɵɵadvance(1);
|
|
18102
18126
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
|
|
18103
18127
|
} }
|
|
18104
|
-
const _c0$
|
|
18128
|
+
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
18105
18129
|
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18106
18130
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
18107
18131
|
ngOnInit() {
|
|
@@ -18124,7 +18148,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
18124
18148
|
i0.ɵɵelementEnd();
|
|
18125
18149
|
i0.ɵɵelementEnd();
|
|
18126
18150
|
} if (rf & 2) {
|
|
18127
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18151
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
18128
18152
|
i0.ɵɵadvance(1);
|
|
18129
18153
|
i0.ɵɵproperty("for", ctx.id());
|
|
18130
18154
|
i0.ɵɵadvance(1);
|
|
@@ -18295,7 +18319,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
18295
18319
|
i0.ɵɵadvance(1);
|
|
18296
18320
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
|
|
18297
18321
|
} }
|
|
18298
|
-
const _c0$
|
|
18322
|
+
const _c0$x = function (a0) { return { selected: a0 }; };
|
|
18299
18323
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
18300
18324
|
i0.ɵɵelementStart(0, "div", 10);
|
|
18301
18325
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -18306,7 +18330,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
18306
18330
|
} if (rf & 2) {
|
|
18307
18331
|
const value_r4 = ctx.$implicit;
|
|
18308
18332
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
18309
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
18333
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$x, ctx_r3.yesNoControl.value === value_r4));
|
|
18310
18334
|
i0.ɵɵadvance(1);
|
|
18311
18335
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
18312
18336
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -18461,7 +18485,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
18461
18485
|
type: Injectable
|
|
18462
18486
|
}], null, null); })();
|
|
18463
18487
|
|
|
18464
|
-
const _c0$
|
|
18488
|
+
const _c0$w = ["fieldContainer"];
|
|
18465
18489
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
18466
18490
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
18467
18491
|
constructor(resolver, paletteService) {
|
|
@@ -18509,7 +18533,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
18509
18533
|
}
|
|
18510
18534
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
18511
18535
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18512
|
-
i0.ɵɵviewQuery(_c0$
|
|
18536
|
+
i0.ɵɵviewQuery(_c0$w, 1, ViewContainerRef);
|
|
18513
18537
|
} if (rf & 2) {
|
|
18514
18538
|
let _t;
|
|
18515
18539
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -18543,7 +18567,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
18543
18567
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
18544
18568
|
}] }); })();
|
|
18545
18569
|
|
|
18546
|
-
const _c0$
|
|
18570
|
+
const _c0$v = ["fieldContainer"];
|
|
18547
18571
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
18548
18572
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
18549
18573
|
constructor(resolver, paletteService) {
|
|
@@ -18587,7 +18611,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
18587
18611
|
}
|
|
18588
18612
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
18589
18613
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
18590
|
-
i0.ɵɵviewQuery(_c0$
|
|
18614
|
+
i0.ɵɵviewQuery(_c0$v, 3, ViewContainerRef);
|
|
18591
18615
|
} if (rf & 2) {
|
|
18592
18616
|
let _t;
|
|
18593
18617
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -18637,7 +18661,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
18637
18661
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
18638
18662
|
i0.ɵɵprojection(0);
|
|
18639
18663
|
} }
|
|
18640
|
-
const _c0$
|
|
18664
|
+
const _c0$u = ["*"];
|
|
18641
18665
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
18642
18666
|
constructor() {
|
|
18643
18667
|
super(...arguments);
|
|
@@ -18672,7 +18696,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
18672
18696
|
}
|
|
18673
18697
|
}
|
|
18674
18698
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
18675
|
-
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
18699
|
+
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) {
|
|
18676
18700
|
i0.ɵɵprojectionDef();
|
|
18677
18701
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18678
18702
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 1);
|
|
@@ -18704,7 +18728,7 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
18704
18728
|
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18705
18729
|
i0.ɵɵelementContainer(0);
|
|
18706
18730
|
} }
|
|
18707
|
-
const _c0$
|
|
18731
|
+
const _c0$t = function (a0) { return { cat: a0, level: 1 }; };
|
|
18708
18732
|
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
18709
18733
|
i0.ɵɵelementContainerStart(0);
|
|
18710
18734
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -18714,7 +18738,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
18714
18738
|
i0.ɵɵnextContext();
|
|
18715
18739
|
const _r1 = i0.ɵɵreference(13);
|
|
18716
18740
|
i0.ɵɵadvance(1);
|
|
18717
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
18741
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$t, cat_r3));
|
|
18718
18742
|
} }
|
|
18719
18743
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
18720
18744
|
i0.ɵɵelementContainer(0);
|
|
@@ -18905,7 +18929,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
18905
18929
|
i0.ɵɵadvance(1);
|
|
18906
18930
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
18907
18931
|
} }
|
|
18908
|
-
const _c0$
|
|
18932
|
+
const _c0$s = [[["", "trigger", ""]]];
|
|
18909
18933
|
const _c1$8 = ["[trigger]"];
|
|
18910
18934
|
class CaseFileViewOverlayMenuComponent {
|
|
18911
18935
|
constructor() {
|
|
@@ -18921,7 +18945,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
18921
18945
|
}
|
|
18922
18946
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18923
18947
|
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) {
|
|
18924
|
-
i0.ɵɵprojectionDef(_c0$
|
|
18948
|
+
i0.ɵɵprojectionDef(_c0$s);
|
|
18925
18949
|
i0.ɵɵelementStart(0, "div");
|
|
18926
18950
|
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
18927
18951
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -19520,7 +19544,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
19520
19544
|
i0.ɵɵadvance(2);
|
|
19521
19545
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.flagCommentsCharLimitErrorMessage), " ");
|
|
19522
19546
|
} }
|
|
19523
|
-
const _c0$
|
|
19547
|
+
const _c0$r = function (a0) { return { "form-group-error": a0 }; };
|
|
19524
19548
|
class AddCommentsComponent {
|
|
19525
19549
|
constructor() {
|
|
19526
19550
|
this.optional = false;
|
|
@@ -19602,7 +19626,7 @@ AddCommentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddCommentsComponent
|
|
|
19602
19626
|
} if (rf & 2) {
|
|
19603
19627
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
19604
19628
|
i0.ɵɵadvance(2);
|
|
19605
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$
|
|
19629
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(21, _c0$r, ctx.errorMessages.length > 0));
|
|
19606
19630
|
i0.ɵɵadvance(2);
|
|
19607
19631
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
19608
19632
|
i0.ɵɵadvance(1);
|
|
@@ -19923,7 +19947,7 @@ function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
19923
19947
|
i0.ɵɵadvance(2);
|
|
19924
19948
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
19925
19949
|
} }
|
|
19926
|
-
const _c0$
|
|
19950
|
+
const _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
19927
19951
|
class ManageCaseFlagsComponent {
|
|
19928
19952
|
constructor() {
|
|
19929
19953
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -20083,7 +20107,7 @@ ManageCaseFlagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ManageCaseFlagsC
|
|
|
20083
20107
|
} if (rf & 2) {
|
|
20084
20108
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20085
20109
|
i0.ɵɵadvance(1);
|
|
20086
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20110
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$q, ctx.errorMessages.length > 0));
|
|
20087
20111
|
i0.ɵɵadvance(4);
|
|
20088
20112
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
20089
20113
|
i0.ɵɵadvance(2);
|
|
@@ -20174,7 +20198,7 @@ function SearchLanguageInterpreterComponent_div_21_div_5_Template(rf, ctx) { if
|
|
|
20174
20198
|
i0.ɵɵadvance(3);
|
|
20175
20199
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
20176
20200
|
} }
|
|
20177
|
-
const _c0$
|
|
20201
|
+
const _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
20178
20202
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
20179
20203
|
i0.ɵɵelementStart(0, "div", 25);
|
|
20180
20204
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -20189,7 +20213,7 @@ function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf &
|
|
|
20189
20213
|
} if (rf & 2) {
|
|
20190
20214
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
20191
20215
|
i0.ɵɵadvance(1);
|
|
20192
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
20216
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
20193
20217
|
i0.ɵɵadvance(2);
|
|
20194
20218
|
i0.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
20195
20219
|
i0.ɵɵadvance(1);
|
|
@@ -20355,7 +20379,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
|
|
|
20355
20379
|
const _r2 = i0.ɵɵreference(12);
|
|
20356
20380
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20357
20381
|
i0.ɵɵadvance(1);
|
|
20358
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$
|
|
20382
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
20359
20383
|
i0.ɵɵadvance(2);
|
|
20360
20384
|
i0.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
20361
20385
|
i0.ɵɵadvance(1);
|
|
@@ -20479,7 +20503,7 @@ function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
20479
20503
|
i0.ɵɵadvance(2);
|
|
20480
20504
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
20481
20505
|
} }
|
|
20482
|
-
const _c0$
|
|
20506
|
+
const _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
20483
20507
|
class SelectFlagLocationComponent {
|
|
20484
20508
|
constructor() {
|
|
20485
20509
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -20565,7 +20589,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
|
|
|
20565
20589
|
} if (rf & 2) {
|
|
20566
20590
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20567
20591
|
i0.ɵɵadvance(1);
|
|
20568
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
20592
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx.errorMessages.length > 0));
|
|
20569
20593
|
i0.ɵɵadvance(4);
|
|
20570
20594
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
20571
20595
|
i0.ɵɵadvance(2);
|
|
@@ -20635,7 +20659,7 @@ function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20635
20659
|
i0.ɵɵadvance(3);
|
|
20636
20660
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
20637
20661
|
} }
|
|
20638
|
-
const _c0$
|
|
20662
|
+
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
20639
20663
|
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20640
20664
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
20641
20665
|
i0.ɵɵelementStart(0, "div", 15);
|
|
@@ -20650,7 +20674,7 @@ function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
20650
20674
|
} if (rf & 2) {
|
|
20651
20675
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
20652
20676
|
i0.ɵɵadvance(1);
|
|
20653
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
20677
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$n, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
20654
20678
|
i0.ɵɵadvance(3);
|
|
20655
20679
|
i0.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
20656
20680
|
i0.ɵɵadvance(1);
|
|
@@ -20808,7 +20832,7 @@ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeCom
|
|
|
20808
20832
|
} if (rf & 2) {
|
|
20809
20833
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20810
20834
|
i0.ɵɵadvance(1);
|
|
20811
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
20835
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$n, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
20812
20836
|
i0.ɵɵadvance(4);
|
|
20813
20837
|
i0.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
20814
20838
|
i0.ɵɵadvance(1);
|
|
@@ -20872,7 +20896,7 @@ function UpdateFlagComponent_button_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
20872
20896
|
i0.ɵɵtext(1, " Make inactive ");
|
|
20873
20897
|
i0.ɵɵelementEnd();
|
|
20874
20898
|
} }
|
|
20875
|
-
const _c0$
|
|
20899
|
+
const _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
20876
20900
|
const _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
20877
20901
|
class UpdateFlagComponent {
|
|
20878
20902
|
constructor() {
|
|
@@ -20991,7 +21015,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
20991
21015
|
} if (rf & 2) {
|
|
20992
21016
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20993
21017
|
i0.ɵɵadvance(2);
|
|
20994
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$
|
|
21018
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$m, ctx.errorMessages.length > 0));
|
|
20995
21019
|
i0.ɵɵadvance(2);
|
|
20996
21020
|
i0.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
20997
21021
|
i0.ɵɵadvance(1);
|
|
@@ -21051,7 +21075,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
|
|
|
21051
21075
|
i0.ɵɵadvance(1);
|
|
21052
21076
|
i0.ɵɵproperty("caseField", field_r1)("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
21053
21077
|
} }
|
|
21054
|
-
const _c0$
|
|
21078
|
+
const _c0$l = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
|
|
21055
21079
|
/**
|
|
21056
21080
|
* Display a complex type fields as a list of values without labels.
|
|
21057
21081
|
* This is intended for rendering of Check Your Answer page.
|
|
@@ -21070,7 +21094,7 @@ ReadComplexFieldRawComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComplexF
|
|
|
21070
21094
|
i0.ɵɵelementEnd();
|
|
21071
21095
|
} if (rf & 2) {
|
|
21072
21096
|
i0.ɵɵadvance(1);
|
|
21073
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(2, 1, i0.ɵɵpureFunction3(8, _c0$
|
|
21097
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(2, 1, i0.ɵɵpureFunction3(8, _c0$l, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
|
|
21074
21098
|
} }, 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}"] });
|
|
21075
21099
|
const ɵReadComplexFieldRawComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent);
|
|
21076
21100
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
|
|
@@ -21139,6 +21163,7 @@ function ReadComplexFieldTableComponent_ng_container_9_Template(rf, ctx) { if (r
|
|
|
21139
21163
|
i0.ɵɵadvance(1);
|
|
21140
21164
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 2, field_r1))("ngIfElse", _r3);
|
|
21141
21165
|
} }
|
|
21166
|
+
const _c0$k = function (a0, a4, a6) { return [a0, false, undefined, true, a4, undefined, a6]; };
|
|
21142
21167
|
class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
21143
21168
|
constructor() {
|
|
21144
21169
|
super(...arguments);
|
|
@@ -21146,7 +21171,7 @@ class ReadComplexFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
21146
21171
|
}
|
|
21147
21172
|
}
|
|
21148
21173
|
ReadComplexFieldTableComponent.ɵfac = function ReadComplexFieldTableComponent_Factory(t) { return ɵReadComplexFieldTableComponent_BaseFactory(t || ReadComplexFieldTableComponent); };
|
|
21149
|
-
ReadComplexFieldTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComplexFieldTableComponent, selectors: [["ccd-read-complex-field-table"]], inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars:
|
|
21174
|
+
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) {
|
|
21150
21175
|
i0.ɵɵelementStart(0, "div", 0);
|
|
21151
21176
|
i0.ɵɵelementStart(1, "dl", 1);
|
|
21152
21177
|
i0.ɵɵelementStart(2, "dt");
|
|
@@ -21168,7 +21193,7 @@ ReadComplexFieldTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadComple
|
|
|
21168
21193
|
i0.ɵɵadvance(4);
|
|
21169
21194
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 2, ctx.caseField.label));
|
|
21170
21195
|
i0.ɵɵadvance(5);
|
|
21171
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵ
|
|
21196
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(10, 4, i0.ɵɵpureFunction3(12, _c0$k, ctx.caseField, ctx.topLevelFormGroup, ctx.idPrefix)));
|
|
21172
21197
|
} }, 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}"] });
|
|
21173
21198
|
const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadComplexFieldTableComponent);
|
|
21174
21199
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldTableComponent, [{
|
|
@@ -22926,17 +22951,17 @@ class ReadFieldsFilterPipe {
|
|
|
22926
22951
|
/**
|
|
22927
22952
|
* Complex type should have at least on simple field descendant with a value.
|
|
22928
22953
|
*/
|
|
22929
|
-
static isValidComplex(field, values) {
|
|
22954
|
+
static isValidComplex(field, values, checkConditionalShowAgainst) {
|
|
22930
22955
|
values = values || {};
|
|
22931
22956
|
const type = field.field_type;
|
|
22932
22957
|
const value = ReadFieldsFilterPipe.getValue(field, values);
|
|
22933
22958
|
const hasChildrenWithValue = type.complex_fields.find(f => {
|
|
22934
|
-
const willKeep = ReadFieldsFilterPipe.keepField(f, value, true);
|
|
22935
|
-
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f,
|
|
22959
|
+
const willKeep = ReadFieldsFilterPipe.keepField(f, value, true, checkConditionalShowAgainst);
|
|
22960
|
+
return willKeep && ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst).hidden !== true;
|
|
22936
22961
|
});
|
|
22937
22962
|
return !!hasChildrenWithValue;
|
|
22938
22963
|
}
|
|
22939
|
-
static isValidCollection(field, values) {
|
|
22964
|
+
static isValidCollection(field, values, checkConditionalShowAgainst) {
|
|
22940
22965
|
// if field is collection and it has complex/collection child field; parent field doesnt have value defined
|
|
22941
22966
|
if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
|
|
22942
22967
|
return true;
|
|
@@ -22950,7 +22975,7 @@ class ReadFieldsFilterPipe {
|
|
|
22950
22975
|
value: item.value,
|
|
22951
22976
|
label: null,
|
|
22952
22977
|
});
|
|
22953
|
-
return ReadFieldsFilterPipe.isValidComplex(complexField);
|
|
22978
|
+
return ReadFieldsFilterPipe.isValidComplex(complexField, undefined, checkConditionalShowAgainst);
|
|
22954
22979
|
});
|
|
22955
22980
|
}
|
|
22956
22981
|
return isNotEmpty;
|
|
@@ -22962,11 +22987,11 @@ class ReadFieldsFilterPipe {
|
|
|
22962
22987
|
static isCompound(field) {
|
|
22963
22988
|
return ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type];
|
|
22964
22989
|
}
|
|
22965
|
-
static isValidCompound(field, value) {
|
|
22990
|
+
static isValidCompound(field, value, checkConditionalShowAgainst) {
|
|
22966
22991
|
return ReadFieldsFilterPipe.isCompound(field)
|
|
22967
|
-
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
22992
|
+
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value, checkConditionalShowAgainst);
|
|
22968
22993
|
}
|
|
22969
|
-
static keepField(field, value, ignoreLabels = false) {
|
|
22994
|
+
static keepField(field, value, ignoreLabels = false, checkConditionalShowAgainst) {
|
|
22970
22995
|
// We shouldn't ditch labels.
|
|
22971
22996
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
22972
22997
|
return true;
|
|
@@ -22977,7 +23002,7 @@ class ReadFieldsFilterPipe {
|
|
|
22977
23002
|
}
|
|
22978
23003
|
value = value || {};
|
|
22979
23004
|
if (ReadFieldsFilterPipe.isCompound(field)) {
|
|
22980
|
-
return ReadFieldsFilterPipe.isValidCompound(field, value);
|
|
23005
|
+
return ReadFieldsFilterPipe.isValidCompound(field, value, checkConditionalShowAgainst);
|
|
22981
23006
|
}
|
|
22982
23007
|
return !ReadFieldsFilterPipe.isEmpty(field.value)
|
|
22983
23008
|
|| !ReadFieldsFilterPipe.isEmpty(value[field.id]);
|
|
@@ -23020,7 +23045,7 @@ class ReadFieldsFilterPipe {
|
|
|
23020
23045
|
/**
|
|
23021
23046
|
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
23022
23047
|
*/
|
|
23023
|
-
transform(complexField, keepEmpty, index, setupHidden = false, formGroup, path) {
|
|
23048
|
+
transform(complexField, keepEmpty, index, setupHidden = false, formGroup, path, idPrefix) {
|
|
23024
23049
|
if (!complexField || !complexField.field_type) {
|
|
23025
23050
|
return [];
|
|
23026
23051
|
}
|
|
@@ -23029,8 +23054,21 @@ class ReadFieldsFilterPipe {
|
|
|
23029
23054
|
let checkConditionalShowAgainst = values;
|
|
23030
23055
|
let formGroupAvailable = false;
|
|
23031
23056
|
if (formGroup) {
|
|
23032
|
-
checkConditionalShowAgainst = formGroup.
|
|
23057
|
+
checkConditionalShowAgainst = formGroup.parent.getRawValue().data;
|
|
23033
23058
|
formGroupAvailable = true;
|
|
23059
|
+
if (idPrefix !== undefined) {
|
|
23060
|
+
if (idPrefix !== '') {
|
|
23061
|
+
const fieldId = idPrefix.substring(0, idPrefix.indexOf('_'));
|
|
23062
|
+
if (checkConditionalShowAgainst[fieldId]) {
|
|
23063
|
+
checkConditionalShowAgainst = values;
|
|
23064
|
+
formGroupAvailable = false;
|
|
23065
|
+
}
|
|
23066
|
+
}
|
|
23067
|
+
else {
|
|
23068
|
+
checkConditionalShowAgainst = Object.assign(checkConditionalShowAgainst, values);
|
|
23069
|
+
formGroupAvailable = false;
|
|
23070
|
+
}
|
|
23071
|
+
}
|
|
23034
23072
|
}
|
|
23035
23073
|
return fields
|
|
23036
23074
|
.map(f => {
|
|
@@ -23050,7 +23088,7 @@ class ReadFieldsFilterPipe {
|
|
|
23050
23088
|
}
|
|
23051
23089
|
return f;
|
|
23052
23090
|
})
|
|
23053
|
-
.filter(f => keepEmpty || ReadFieldsFilterPipe.keepField(f));
|
|
23091
|
+
.filter(f => keepEmpty || ReadFieldsFilterPipe.keepField(f, undefined, false, checkConditionalShowAgainst));
|
|
23054
23092
|
}
|
|
23055
23093
|
}
|
|
23056
23094
|
ReadFieldsFilterPipe.EMPTY_VALUES = [
|