@hmcts/ccd-case-ui-toolkit 7.0.7 → 7.0.8
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/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +83 -38
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +6 -5
- package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +4 -1
- package/esm2020/lib/shared/services/form/form-validators.service.mjs +27 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +177 -95
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +168 -95
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +8 -3
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
- package/lib/shared/services/form/form-validators.service.d.ts +2 -0
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -126,11 +126,11 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
126
126
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
127
127
|
} }
|
|
128
128
|
const _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
129
|
-
const _c1$
|
|
129
|
+
const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
130
130
|
class FooterComponent {
|
|
131
131
|
}
|
|
132
132
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
133
|
-
FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
133
|
+
FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, 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) {
|
|
134
134
|
i0.ɵɵprojectionDef(_c0$13);
|
|
135
135
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
136
136
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -190,7 +190,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
190
190
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
191
191
|
} }
|
|
192
192
|
const _c0$12 = [[["", "headerNavigation", ""]]];
|
|
193
|
-
const _c1$
|
|
193
|
+
const _c1$t = ["[headerNavigation]"];
|
|
194
194
|
class HeaderBarComponent {
|
|
195
195
|
constructor() {
|
|
196
196
|
this.signOutRequest = new EventEmitter();
|
|
@@ -200,7 +200,7 @@ class HeaderBarComponent {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
203
|
-
HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
203
|
+
HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, 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) {
|
|
204
204
|
i0.ɵɵprojectionDef(_c0$12);
|
|
205
205
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
206
206
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3);
|
|
@@ -251,11 +251,11 @@ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBa
|
|
|
251
251
|
}] }); })();
|
|
252
252
|
|
|
253
253
|
const _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
254
|
-
const _c1$
|
|
254
|
+
const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
255
255
|
class NavigationComponent {
|
|
256
256
|
}
|
|
257
257
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
258
|
-
NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
258
|
+
NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
259
259
|
i0.ɵɵprojectionDef(_c0$11);
|
|
260
260
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
261
261
|
i0.ɵɵprojection(2);
|
|
@@ -366,11 +366,11 @@ HeadersModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
|
|
|
366
366
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
367
367
|
|
|
368
368
|
const _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
369
|
-
const _c1$
|
|
369
|
+
const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
370
370
|
class BodyComponent {
|
|
371
371
|
}
|
|
372
372
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
373
|
-
BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
373
|
+
BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
374
374
|
i0.ɵɵprojectionDef(_c0$10);
|
|
375
375
|
i0.ɵɵelementStart(0, "div", 0);
|
|
376
376
|
i0.ɵɵprojection(1);
|
|
@@ -980,11 +980,11 @@ NotificationBannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
980
980
|
}] }); })();
|
|
981
981
|
|
|
982
982
|
const _c0$Z = function (a0) { return { "js-hidden": a0 }; };
|
|
983
|
-
const _c1$
|
|
983
|
+
const _c1$q = ["*"];
|
|
984
984
|
class TabComponent {
|
|
985
985
|
}
|
|
986
986
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
987
|
-
TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
987
|
+
TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$q, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
988
988
|
i0.ɵɵprojectionDef();
|
|
989
989
|
i0.ɵɵelementStart(0, "div", 0);
|
|
990
990
|
i0.ɵɵprojection(1);
|
|
@@ -1005,8 +1005,8 @@ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent,
|
|
|
1005
1005
|
}] }); })();
|
|
1006
1006
|
|
|
1007
1007
|
const _c0$Y = ["tab"];
|
|
1008
|
-
const _c1$
|
|
1009
|
-
const _c2$
|
|
1008
|
+
const _c1$p = function () { return ["."]; };
|
|
1009
|
+
const _c2$4 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1010
1010
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
1011
1011
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1012
1012
|
i0.ɵɵelementStart(0, "li", 4)(1, "a", 5, 6);
|
|
@@ -1017,7 +1017,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1017
1017
|
} if (rf & 2) {
|
|
1018
1018
|
const panel_r1 = ctx.$implicit;
|
|
1019
1019
|
i0.ɵɵadvance(1);
|
|
1020
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$
|
|
1020
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$p))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$4, panel_r1.selected));
|
|
1021
1021
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1022
1022
|
i0.ɵɵadvance(2);
|
|
1023
1023
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, panel_r1.title));
|
|
@@ -2729,6 +2729,9 @@ class FirstErrorPipe {
|
|
|
2729
2729
|
else if (keys[0] === 'pattern') {
|
|
2730
2730
|
errorMessage = 'The data entered is not valid for %FIELDLABEL%';
|
|
2731
2731
|
}
|
|
2732
|
+
else if (keys[0] === 'markDownPattern') {
|
|
2733
|
+
errorMessage = 'The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field';
|
|
2734
|
+
}
|
|
2732
2735
|
else if (keys[0] === 'minlength') {
|
|
2733
2736
|
errorMessage = '%FIELDLABEL% is below the minimum length';
|
|
2734
2737
|
}
|
|
@@ -4545,6 +4548,7 @@ class FormValidatorsService {
|
|
|
4545
4548
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
|
|
4546
4549
|
const validators = [Validators.required];
|
|
4547
4550
|
if (caseField.field_type.type === 'Text') {
|
|
4551
|
+
validators.push(this.markDownPatternValidator());
|
|
4548
4552
|
if (caseField.field_type.regular_expression) {
|
|
4549
4553
|
validators.push(Validators.pattern(caseField.field_type.regular_expression));
|
|
4550
4554
|
}
|
|
@@ -4558,22 +4562,38 @@ class FormValidatorsService {
|
|
|
4558
4562
|
validators.push(Validators.maxLength(caseField.field_type.max));
|
|
4559
4563
|
}
|
|
4560
4564
|
}
|
|
4565
|
+
if (caseField.field_type.type === 'TextArea') {
|
|
4566
|
+
validators.push(this.emptyValidator());
|
|
4567
|
+
validators.push(this.markDownPatternValidator());
|
|
4568
|
+
}
|
|
4561
4569
|
if (control.validator) {
|
|
4562
4570
|
validators.push(control.validator);
|
|
4563
4571
|
}
|
|
4564
4572
|
control.setValidators(validators);
|
|
4565
4573
|
}
|
|
4574
|
+
else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
|
|
4575
|
+
control.setValidators(this.markDownPatternValidator());
|
|
4576
|
+
}
|
|
4566
4577
|
return control;
|
|
4567
4578
|
}
|
|
4568
4579
|
static emptyValidator() {
|
|
4569
4580
|
const validator = (control) => {
|
|
4570
|
-
if (control
|
|
4581
|
+
if (control?.value?.toString().trim().length === 0) {
|
|
4571
4582
|
return { required: {} };
|
|
4572
4583
|
}
|
|
4573
4584
|
return null;
|
|
4574
4585
|
};
|
|
4575
4586
|
return validator;
|
|
4576
4587
|
}
|
|
4588
|
+
static markDownPatternValidator() {
|
|
4589
|
+
const pattern = /(\[[^\]]{0,500}\]\([^)]{0,500}\)|!\[[^\]]{0,500}\]\([^)]{0,500}\)|<img[^>]{0,500}>|<a[^>]{0,500}>.*?<\/a>)/;
|
|
4590
|
+
return (control) => {
|
|
4591
|
+
const value = control?.value?.toString().trim();
|
|
4592
|
+
return value && pattern.test(value)
|
|
4593
|
+
? { markDownPattern: {} }
|
|
4594
|
+
: null;
|
|
4595
|
+
};
|
|
4596
|
+
}
|
|
4577
4597
|
// TODO: Strip this out as it's only here for the moment because
|
|
4578
4598
|
// the service is being injected all over the place but it doesn't
|
|
4579
4599
|
// need to be as FormValidatorsService.addValidators is perfectly
|
|
@@ -4581,6 +4601,14 @@ class FormValidatorsService {
|
|
|
4581
4601
|
addValidators(caseField, control) {
|
|
4582
4602
|
return FormValidatorsService.addValidators(caseField, control);
|
|
4583
4603
|
}
|
|
4604
|
+
addMarkDownValidators(formGroup, controlPath) {
|
|
4605
|
+
const control = formGroup.get(controlPath);
|
|
4606
|
+
if (control) {
|
|
4607
|
+
control.setValidators(FormValidatorsService.markDownPatternValidator());
|
|
4608
|
+
control.updateValueAndValidity();
|
|
4609
|
+
}
|
|
4610
|
+
return control;
|
|
4611
|
+
}
|
|
4584
4612
|
}
|
|
4585
4613
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES = [
|
|
4586
4614
|
'Date', 'MoneyGBP', 'Label', 'JudicialUser'
|
|
@@ -10871,8 +10899,8 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (r
|
|
|
10871
10899
|
i0.ɵɵadvance(1);
|
|
10872
10900
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
|
|
10873
10901
|
} }
|
|
10874
|
-
const _c1$
|
|
10875
|
-
const _c2$
|
|
10902
|
+
const _c1$o = function (a0) { return { "form-group-error": a0 }; };
|
|
10903
|
+
const _c2$3 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
10876
10904
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10877
10905
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
10878
10906
|
i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
|
|
@@ -10888,7 +10916,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10888
10916
|
i0.ɵɵelementEnd()();
|
|
10889
10917
|
} if (rf & 2) {
|
|
10890
10918
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10891
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
10919
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r2.missingPostcode));
|
|
10892
10920
|
i0.ɵɵadvance(1);
|
|
10893
10921
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
10894
10922
|
i0.ɵɵadvance(2);
|
|
@@ -10896,7 +10924,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10896
10924
|
i0.ɵɵadvance(2);
|
|
10897
10925
|
i0.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
|
|
10898
10926
|
i0.ɵɵadvance(1);
|
|
10899
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$
|
|
10927
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$3, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
|
|
10900
10928
|
i0.ɵɵadvance(2);
|
|
10901
10929
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
|
|
10902
10930
|
} }
|
|
@@ -12312,7 +12340,7 @@ function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
12312
12340
|
i0.ɵɵadvance(1);
|
|
12313
12341
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
|
|
12314
12342
|
} }
|
|
12315
|
-
const _c1$
|
|
12343
|
+
const _c1$n = function (a0) { return { "form-group-error": a0 }; };
|
|
12316
12344
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
12317
12345
|
ngOnInit() {
|
|
12318
12346
|
if (this.caseField.value) {
|
|
@@ -12373,7 +12401,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12373
12401
|
i0.ɵɵelement(5, "input", 5);
|
|
12374
12402
|
i0.ɵɵelementEnd();
|
|
12375
12403
|
} if (rf & 2) {
|
|
12376
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
12404
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
12377
12405
|
i0.ɵɵadvance(1);
|
|
12378
12406
|
i0.ɵɵproperty("for", ctx.id());
|
|
12379
12407
|
i0.ɵɵadvance(1);
|
|
@@ -12405,7 +12433,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
12405
12433
|
i0.ɵɵadvance(4);
|
|
12406
12434
|
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$S, 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);
|
|
12407
12435
|
} }
|
|
12408
|
-
const _c1$
|
|
12436
|
+
const _c1$m = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
12409
12437
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
12410
12438
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
12411
12439
|
i0.ɵɵelement(2, "ccd-field-read", 7);
|
|
@@ -12415,7 +12443,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
12415
12443
|
const i_r5 = ctx.index;
|
|
12416
12444
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
12417
12445
|
i0.ɵɵadvance(2);
|
|
12418
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
12446
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$m, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
|
|
12419
12447
|
} }
|
|
12420
12448
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
12421
12449
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -13236,7 +13264,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
13236
13264
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13237
13265
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
13238
13266
|
} }
|
|
13239
|
-
const _c1$
|
|
13267
|
+
const _c1$l = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
13240
13268
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
13241
13269
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
13242
13270
|
super();
|
|
@@ -13542,7 +13570,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13542
13570
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
13543
13571
|
i0.ɵɵelementEnd()();
|
|
13544
13572
|
} if (rf & 2) {
|
|
13545
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
13573
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
|
|
13546
13574
|
i0.ɵɵadvance(1);
|
|
13547
13575
|
i0.ɵɵproperty("for", ctx.id());
|
|
13548
13576
|
i0.ɵɵadvance(1);
|
|
@@ -14086,7 +14114,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
14086
14114
|
i0.ɵɵadvance(1);
|
|
14087
14115
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
14088
14116
|
} }
|
|
14089
|
-
const _c1$
|
|
14117
|
+
const _c1$k = function (a0) { return { "form-group-error": a0 }; };
|
|
14090
14118
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
14091
14119
|
ngOnInit() {
|
|
14092
14120
|
/**
|
|
@@ -14124,7 +14152,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14124
14152
|
i0.ɵɵelementContainerEnd();
|
|
14125
14153
|
i0.ɵɵelementEnd()();
|
|
14126
14154
|
} if (rf & 2) {
|
|
14127
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
14155
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$k, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
14128
14156
|
i0.ɵɵadvance(3);
|
|
14129
14157
|
i0.ɵɵproperty("for", ctx.id());
|
|
14130
14158
|
i0.ɵɵadvance(1);
|
|
@@ -14205,7 +14233,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14205
14233
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
14206
14234
|
} }
|
|
14207
14235
|
const _c0$M = function (a0) { return { "form-group-error": a0 }; };
|
|
14208
|
-
const _c1$
|
|
14236
|
+
const _c1$j = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14209
14237
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
14210
14238
|
ngOnInit() {
|
|
14211
14239
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14231,7 +14259,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
14231
14259
|
i0.ɵɵadvance(1);
|
|
14232
14260
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
14233
14261
|
i0.ɵɵadvance(1);
|
|
14234
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14262
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
14235
14263
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
14236
14264
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
14237
14265
|
type: Component,
|
|
@@ -14442,7 +14470,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
14442
14470
|
i0.ɵɵadvance(1);
|
|
14443
14471
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
14444
14472
|
} }
|
|
14445
|
-
const _c1$
|
|
14473
|
+
const _c1$i = function (a0) { return { "form-group-error": a0 }; };
|
|
14446
14474
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
14447
14475
|
ngOnInit() {
|
|
14448
14476
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -14462,7 +14490,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
14462
14490
|
i0.ɵɵelementContainerEnd();
|
|
14463
14491
|
i0.ɵɵelementEnd()();
|
|
14464
14492
|
} if (rf & 2) {
|
|
14465
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
14493
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$i, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
14466
14494
|
i0.ɵɵadvance(3);
|
|
14467
14495
|
i0.ɵɵproperty("for", ctx.id());
|
|
14468
14496
|
i0.ɵɵadvance(1);
|
|
@@ -14584,7 +14612,7 @@ function WriteJudicialUserFieldComponent_mat_option_11_Template(rf, ctx) { if (r
|
|
|
14584
14612
|
i0.ɵɵtext(1, " Invalid search term ");
|
|
14585
14613
|
i0.ɵɵelementEnd();
|
|
14586
14614
|
} }
|
|
14587
|
-
const _c1$
|
|
14615
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
14588
14616
|
class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
14589
14617
|
constructor(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
|
|
14590
14618
|
super(compoundPipe, validatorsService);
|
|
@@ -14731,7 +14759,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
|
|
|
14731
14759
|
i0.ɵɵelementEnd()();
|
|
14732
14760
|
} if (rf & 2) {
|
|
14733
14761
|
const _r3 = i0.ɵɵreference(7);
|
|
14734
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
14762
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$h, !!ctx.judicialUserControl && ctx.errors));
|
|
14735
14763
|
i0.ɵɵadvance(1);
|
|
14736
14764
|
i0.ɵɵproperty("for", ctx.id());
|
|
14737
14765
|
i0.ɵɵadvance(1);
|
|
@@ -15421,7 +15449,7 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
15421
15449
|
i0.ɵɵadvance(1);
|
|
15422
15450
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r19));
|
|
15423
15451
|
} }
|
|
15424
|
-
const _c1$
|
|
15452
|
+
const _c1$g = function (a0) { return { "table-group-error": a0 }; };
|
|
15425
15453
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
15426
15454
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
15427
15455
|
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
|
|
@@ -15452,7 +15480,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
15452
15480
|
const case_r16 = ctx.$implicit;
|
|
15453
15481
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
15454
15482
|
i0.ɵɵadvance(2);
|
|
15455
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
15483
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
15456
15484
|
i0.ɵɵadvance(2);
|
|
15457
15485
|
i0.ɵɵtextInterpolate1("", case_r16.caseName, " ");
|
|
15458
15486
|
i0.ɵɵadvance(2);
|
|
@@ -17352,7 +17380,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17352
17380
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
|
|
17353
17381
|
} }
|
|
17354
17382
|
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
17355
|
-
const _c1$
|
|
17383
|
+
const _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17356
17384
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
17357
17385
|
ngOnInit() {
|
|
17358
17386
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -17378,7 +17406,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
|
|
|
17378
17406
|
i0.ɵɵadvance(1);
|
|
17379
17407
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
17380
17408
|
i0.ɵɵadvance(1);
|
|
17381
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
17409
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
17382
17410
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
17383
17411
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
17384
17412
|
type: Component,
|
|
@@ -18019,7 +18047,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18019
18047
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
|
|
18020
18048
|
} }
|
|
18021
18049
|
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
18022
|
-
const _c1$
|
|
18050
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18023
18051
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
18024
18052
|
ngOnInit() {
|
|
18025
18053
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -18045,7 +18073,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
18045
18073
|
i0.ɵɵadvance(1);
|
|
18046
18074
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
18047
18075
|
i0.ɵɵadvance(1);
|
|
18048
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18076
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
18049
18077
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18050
18078
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
18051
18079
|
type: Component,
|
|
@@ -20061,7 +20089,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20061
20089
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
|
|
20062
20090
|
} }
|
|
20063
20091
|
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
20064
|
-
const _c1$
|
|
20092
|
+
const _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
20065
20093
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
20066
20094
|
constructor(browserService) {
|
|
20067
20095
|
super();
|
|
@@ -20099,7 +20127,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
20099
20127
|
i0.ɵɵadvance(1);
|
|
20100
20128
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
20101
20129
|
i0.ɵɵadvance(1);
|
|
20102
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
20130
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
20103
20131
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
20104
20132
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
20105
20133
|
type: Component,
|
|
@@ -20157,7 +20185,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20157
20185
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
|
|
20158
20186
|
} }
|
|
20159
20187
|
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
20160
|
-
const _c1$
|
|
20188
|
+
const _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20161
20189
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
20162
20190
|
ngOnInit() {
|
|
20163
20191
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -20187,7 +20215,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
20187
20215
|
i0.ɵɵadvance(1);
|
|
20188
20216
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
20189
20217
|
i0.ɵɵadvance(1);
|
|
20190
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
20218
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
20191
20219
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
20192
20220
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
20193
20221
|
type: Component,
|
|
@@ -20363,7 +20391,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20363
20391
|
i0.ɵɵadvance(1);
|
|
20364
20392
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4));
|
|
20365
20393
|
} }
|
|
20366
|
-
const _c1$
|
|
20394
|
+
const _c1$b = function (a0) { return { "form-group-error": a0 }; };
|
|
20367
20395
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
20368
20396
|
constructor(yesNoService) {
|
|
20369
20397
|
super();
|
|
@@ -20385,7 +20413,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
20385
20413
|
i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
|
|
20386
20414
|
i0.ɵɵelementEnd()()();
|
|
20387
20415
|
} if (rf & 2) {
|
|
20388
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
20416
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
20389
20417
|
i0.ɵɵadvance(3);
|
|
20390
20418
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
20391
20419
|
i0.ɵɵadvance(1);
|
|
@@ -20742,7 +20770,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
20742
20770
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20743
20771
|
i0.ɵɵelementContainer(0);
|
|
20744
20772
|
} }
|
|
20745
|
-
const _c1$
|
|
20773
|
+
const _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
20746
20774
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
20747
20775
|
i0.ɵɵelementContainerStart(0);
|
|
20748
20776
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -20753,7 +20781,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
20753
20781
|
i0.ɵɵnextContext();
|
|
20754
20782
|
const _r1 = i0.ɵɵreference(13);
|
|
20755
20783
|
i0.ɵɵadvance(1);
|
|
20756
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$
|
|
20784
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
|
|
20757
20785
|
} }
|
|
20758
20786
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
20759
20787
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -20921,7 +20949,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
20921
20949
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
20922
20950
|
} }
|
|
20923
20951
|
const _c0$s = [[["", "trigger", ""]]];
|
|
20924
|
-
const _c1$
|
|
20952
|
+
const _c1$9 = ["[trigger]"];
|
|
20925
20953
|
class CaseFileViewOverlayMenuComponent {
|
|
20926
20954
|
constructor() {
|
|
20927
20955
|
this.title = '';
|
|
@@ -20935,7 +20963,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
20935
20963
|
}
|
|
20936
20964
|
}
|
|
20937
20965
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
20938
|
-
CaseFileViewOverlayMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$
|
|
20966
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, 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) {
|
|
20939
20967
|
i0.ɵɵprojectionDef(_c0$s);
|
|
20940
20968
|
i0.ɵɵelementStart(0, "div")(1, "button", 0, 1);
|
|
20941
20969
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -23002,7 +23030,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
23002
23030
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
23003
23031
|
} }
|
|
23004
23032
|
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
23005
|
-
const _c1$
|
|
23033
|
+
const _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
23006
23034
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23007
23035
|
i0.ɵɵelementStart(0, "div", 18)(1, "div", 3)(2, "label", 19);
|
|
23008
23036
|
i0.ɵɵtext(3);
|
|
@@ -23022,7 +23050,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
23022
23050
|
i0.ɵɵadvance(3);
|
|
23023
23051
|
i0.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
|
|
23024
23052
|
i0.ɵɵadvance(1);
|
|
23025
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
23053
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$8, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
|
|
23026
23054
|
i0.ɵɵadvance(1);
|
|
23027
23055
|
i0.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
|
|
23028
23056
|
} }
|
|
@@ -23522,7 +23550,7 @@ function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
23522
23550
|
i0.ɵɵadvance(3);
|
|
23523
23551
|
i0.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
23524
23552
|
} }
|
|
23525
|
-
const _c1$
|
|
23553
|
+
const _c1$7 = function (a0) { return { "form-group-error": a0 }; };
|
|
23526
23554
|
class UpdateFlagComponent {
|
|
23527
23555
|
constructor(rpxTranslationService) {
|
|
23528
23556
|
this.rpxTranslationService = rpxTranslationService;
|
|
@@ -23724,7 +23752,7 @@ UpdateFlagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateF
|
|
|
23724
23752
|
const _r3 = i0.ɵɵreference(17);
|
|
23725
23753
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23726
23754
|
i0.ɵɵadvance(2);
|
|
23727
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$
|
|
23755
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$7, ctx.errorMessages.length > 0));
|
|
23728
23756
|
i0.ɵɵadvance(3);
|
|
23729
23757
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
23730
23758
|
i0.ɵɵadvance(2);
|
|
@@ -24994,7 +25022,7 @@ const CUSTOM_MOMENT_FORMATS = {
|
|
|
24994
25022
|
};
|
|
24995
25023
|
|
|
24996
25024
|
const _c0$g = ["picker"];
|
|
24997
|
-
const _c1$
|
|
25025
|
+
const _c1$6 = ["input"];
|
|
24998
25026
|
function DatetimePickerComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
24999
25027
|
i0.ɵɵelementStart(0, "span", 11);
|
|
25000
25028
|
i0.ɵɵtext(1);
|
|
@@ -25043,7 +25071,7 @@ function DatetimePickerComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
25043
25071
|
i0.ɵɵadvance(1);
|
|
25044
25072
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "This date is later than the maximum date allowed"));
|
|
25045
25073
|
} }
|
|
25046
|
-
const _c2$
|
|
25074
|
+
const _c2$2 = function (a0) { return { "form-group-error": a0 }; };
|
|
25047
25075
|
class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
25048
25076
|
constructor(formatTranslationService, ngxMatDateFormats) {
|
|
25049
25077
|
super();
|
|
@@ -25208,7 +25236,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
25208
25236
|
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0.ɵɵdirectiveInject(FormatTranslatorService), i0.ɵɵdirectiveInject(NGX_MAT_DATE_FORMATS)); };
|
|
25209
25237
|
DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
25210
25238
|
i0.ɵɵviewQuery(_c0$g, 5);
|
|
25211
|
-
i0.ɵɵviewQuery(_c1$
|
|
25239
|
+
i0.ɵɵviewQuery(_c1$6, 5);
|
|
25212
25240
|
} if (rf & 2) {
|
|
25213
25241
|
let _t;
|
|
25214
25242
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimePicker = _t.first);
|
|
@@ -25240,7 +25268,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
25240
25268
|
i0.ɵɵelementEnd()()()()()();
|
|
25241
25269
|
} if (rf & 2) {
|
|
25242
25270
|
const _r6 = i0.ɵɵreference(13);
|
|
25243
|
-
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$
|
|
25271
|
+
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$2, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
|
|
25244
25272
|
i0.ɵɵadvance(3);
|
|
25245
25273
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
25246
25274
|
i0.ɵɵadvance(1);
|
|
@@ -25464,7 +25492,7 @@ function EventLogTableComponent_tr_20_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
25464
25492
|
i0.ɵɵadvance(3);
|
|
25465
25493
|
i0.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
|
|
25466
25494
|
} }
|
|
25467
|
-
const _c1$
|
|
25495
|
+
const _c1$5 = function (a0) { return { "EventLogTable-Selected": a0 }; };
|
|
25468
25496
|
function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
|
|
25469
25497
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
25470
25498
|
i0.ɵɵelementStart(0, "tr", 4);
|
|
@@ -25495,7 +25523,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
25495
25523
|
} if (rf & 2) {
|
|
25496
25524
|
const event_r1 = ctx.$implicit;
|
|
25497
25525
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
25498
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$
|
|
25526
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$5, ctx_r0.selected === event_r1));
|
|
25499
25527
|
i0.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
|
|
25500
25528
|
i0.ɵɵadvance(2);
|
|
25501
25529
|
i0.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
|
|
@@ -27383,6 +27411,30 @@ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) { if (r
|
|
|
27383
27411
|
i0.ɵɵadvance(3);
|
|
27384
27412
|
i0.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
27385
27413
|
} }
|
|
27414
|
+
function CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
27415
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
27416
|
+
i0.ɵɵtext(1);
|
|
27417
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27418
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
27419
|
+
i0.ɵɵelementEnd();
|
|
27420
|
+
} if (rf & 2) {
|
|
27421
|
+
const ctx_r36 = i0.ɵɵnextContext(3);
|
|
27422
|
+
i0.ɵɵadvance(1);
|
|
27423
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r36.summary.errors, ctx_r36.eventSummaryLabel)), " ");
|
|
27424
|
+
} }
|
|
27425
|
+
function CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
27426
|
+
i0.ɵɵelementStart(0, "span", 48);
|
|
27427
|
+
i0.ɵɵtext(1);
|
|
27428
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27429
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
27430
|
+
i0.ɵɵelementEnd();
|
|
27431
|
+
} if (rf & 2) {
|
|
27432
|
+
const ctx_r37 = i0.ɵɵnextContext(3);
|
|
27433
|
+
i0.ɵɵadvance(1);
|
|
27434
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r37.description.errors, ctx_r37.eventDescriptionLabel)), " ");
|
|
27435
|
+
} }
|
|
27436
|
+
const _c1$4 = function (a0) { return { "form-group-error": a0 }; };
|
|
27437
|
+
const _c2$1 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
27386
27438
|
function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
27387
27439
|
i0.ɵɵelementContainerStart(0);
|
|
27388
27440
|
i0.ɵɵelementStart(1, "fieldset", 39);
|
|
@@ -27392,19 +27444,35 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
27392
27444
|
i0.ɵɵelementStart(6, "span", 43);
|
|
27393
27445
|
i0.ɵɵtext(7, "A few words describing the purpose of the event.");
|
|
27394
27446
|
i0.ɵɵelementEnd()();
|
|
27395
|
-
i0.ɵɵ
|
|
27447
|
+
i0.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template, 4, 6, "span", 44);
|
|
27448
|
+
i0.ɵɵelement(9, "input", 45);
|
|
27396
27449
|
i0.ɵɵelementEnd();
|
|
27397
|
-
i0.ɵɵelementStart(
|
|
27398
|
-
i0.ɵɵtext(
|
|
27450
|
+
i0.ɵɵelementStart(10, "div", 41)(11, "label", 46);
|
|
27451
|
+
i0.ɵɵtext(12, "Event description (optional)");
|
|
27399
27452
|
i0.ɵɵelementEnd();
|
|
27400
|
-
i0.ɵɵ
|
|
27453
|
+
i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template, 4, 6, "span", 44);
|
|
27454
|
+
i0.ɵɵelement(14, "textarea", 47);
|
|
27401
27455
|
i0.ɵɵelementEnd()();
|
|
27402
27456
|
i0.ɵɵelementContainerEnd();
|
|
27457
|
+
} if (rf & 2) {
|
|
27458
|
+
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
27459
|
+
i0.ɵɵadvance(3);
|
|
27460
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$4, !!ctx_r9.summary && !ctx_r9.summary.valid && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
|
|
27461
|
+
i0.ɵɵadvance(5);
|
|
27462
|
+
i0.ɵɵproperty("ngIf", (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched));
|
|
27463
|
+
i0.ɵɵadvance(1);
|
|
27464
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$1, (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
|
|
27465
|
+
i0.ɵɵadvance(1);
|
|
27466
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$4, !!ctx_r9.description && !ctx_r9.description.valid && (ctx_r9.description.dirty || ctx_r9.description.touched)));
|
|
27467
|
+
i0.ɵɵadvance(3);
|
|
27468
|
+
i0.ɵɵproperty("ngIf", (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched));
|
|
27469
|
+
i0.ɵɵadvance(1);
|
|
27470
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$1, (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched)));
|
|
27403
27471
|
} }
|
|
27404
27472
|
function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1) {
|
|
27405
|
-
const
|
|
27406
|
-
i0.ɵɵelementStart(0, "button",
|
|
27407
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
27473
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
27474
|
+
i0.ɵɵelementStart(0, "button", 49);
|
|
27475
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r38.previous()); });
|
|
27408
27476
|
i0.ɵɵtext(1);
|
|
27409
27477
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27410
27478
|
i0.ɵɵelementEnd();
|
|
@@ -27415,7 +27483,7 @@ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1)
|
|
|
27415
27483
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
27416
27484
|
} }
|
|
27417
27485
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
27418
|
-
const
|
|
27486
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
27419
27487
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
27420
27488
|
i0.ɵɵtext(2);
|
|
27421
27489
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -27425,13 +27493,13 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27425
27493
|
i0.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
27426
27494
|
i0.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
|
|
27427
27495
|
i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
|
|
27428
|
-
i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(
|
|
27496
|
+
i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.callbackErrorsNotify($event)); });
|
|
27429
27497
|
i0.ɵɵelementEnd();
|
|
27430
27498
|
i0.ɵɵelementStart(11, "form", 8);
|
|
27431
|
-
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(
|
|
27499
|
+
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r41); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.submit()); });
|
|
27432
27500
|
i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
|
|
27433
27501
|
i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
|
|
27434
|
-
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template,
|
|
27502
|
+
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 15, 14, "ng-container", 0);
|
|
27435
27503
|
i0.ɵɵelementStart(15, "div", 9);
|
|
27436
27504
|
i0.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
|
|
27437
27505
|
i0.ɵɵelementStart(17, "button", 11);
|
|
@@ -27439,7 +27507,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27439
27507
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
27440
27508
|
i0.ɵɵelementEnd()();
|
|
27441
27509
|
i0.ɵɵelementStart(20, "p", 12)(21, "a", 13);
|
|
27442
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(
|
|
27510
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r41); const ctx_r43 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r43.cancel()); });
|
|
27443
27511
|
i0.ɵɵtext(22);
|
|
27444
27512
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
27445
27513
|
i0.ɵɵelementEnd()()()();
|
|
@@ -27475,9 +27543,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27475
27543
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 20, ctx_r0.getCancelText()));
|
|
27476
27544
|
} }
|
|
27477
27545
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) { if (rf & 1) {
|
|
27478
|
-
const
|
|
27479
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
27480
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
27546
|
+
const _r45 = i0.ɵɵgetCurrentView();
|
|
27547
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 50);
|
|
27548
|
+
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.onEventCanBeCompleted($event)); });
|
|
27481
27549
|
i0.ɵɵelementEnd();
|
|
27482
27550
|
} if (rf & 2) {
|
|
27483
27551
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -27485,14 +27553,17 @@ function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
|
27485
27553
|
} }
|
|
27486
27554
|
// @dynamic
|
|
27487
27555
|
class CaseEditSubmitComponent {
|
|
27488
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
27556
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
|
|
27489
27557
|
this.caseEdit = caseEdit;
|
|
27490
27558
|
this.fieldsUtils = fieldsUtils;
|
|
27491
27559
|
this.caseFieldService = caseFieldService;
|
|
27492
27560
|
this.route = route;
|
|
27493
27561
|
this.orderService = orderService;
|
|
27494
27562
|
this.profileNotifier = profileNotifier;
|
|
27563
|
+
this.formValidatorsService = formValidatorsService;
|
|
27495
27564
|
this.paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
|
|
27565
|
+
this.eventSummaryLabel = 'Event summary';
|
|
27566
|
+
this.eventDescriptionLabel = 'Event description';
|
|
27496
27567
|
}
|
|
27497
27568
|
get isDisabled() {
|
|
27498
27569
|
// EUI-3452.
|
|
@@ -27502,7 +27573,7 @@ class CaseEditSubmitComponent {
|
|
|
27502
27573
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
27503
27574
|
}
|
|
27504
27575
|
ngOnInit() {
|
|
27505
|
-
this.profileSubscription = this.profileNotifier.profile.subscribe(_ => this.profile = _);
|
|
27576
|
+
this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
|
|
27506
27577
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
27507
27578
|
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
27508
27579
|
this.editForm = this.caseEdit.form;
|
|
@@ -27516,10 +27587,12 @@ class CaseEditSubmitComponent {
|
|
|
27516
27587
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
27517
27588
|
// a FlagLauncher field in the event trigger
|
|
27518
27589
|
this.caseEdit.isCaseFlagSubmission =
|
|
27519
|
-
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
|
|
27590
|
+
this.eventTrigger.case_fields.some((caseField) => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
|
|
27520
27591
|
this.caseEdit.isLinkedCasesSubmission =
|
|
27521
27592
|
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
|
|
27522
27593
|
this.pageTitle = this.getPageTitle();
|
|
27594
|
+
this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
|
|
27595
|
+
this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
|
|
27523
27596
|
}
|
|
27524
27597
|
ngOnDestroy() {
|
|
27525
27598
|
/* istanbul ignore else */
|
|
@@ -27528,12 +27601,14 @@ class CaseEditSubmitComponent {
|
|
|
27528
27601
|
}
|
|
27529
27602
|
}
|
|
27530
27603
|
submit() {
|
|
27531
|
-
this.
|
|
27532
|
-
|
|
27533
|
-
|
|
27534
|
-
|
|
27535
|
-
|
|
27536
|
-
|
|
27604
|
+
if (this.summary.valid && this.description.valid) {
|
|
27605
|
+
this.caseEdit.submitForm({
|
|
27606
|
+
eventTrigger: this.eventTrigger,
|
|
27607
|
+
form: this.editForm,
|
|
27608
|
+
submit: this.caseEdit.submit,
|
|
27609
|
+
caseDetails: this.caseEdit.caseDetails
|
|
27610
|
+
});
|
|
27611
|
+
}
|
|
27537
27612
|
}
|
|
27538
27613
|
onEventCanBeCompleted(eventCanBeCompleted) {
|
|
27539
27614
|
this.caseEdit.onEventCanBeCompleted({
|
|
@@ -27541,7 +27616,7 @@ class CaseEditSubmitComponent {
|
|
|
27541
27616
|
eventCanBeCompleted,
|
|
27542
27617
|
caseDetails: this.caseEdit.caseDetails,
|
|
27543
27618
|
form: this.editForm,
|
|
27544
|
-
submit: this.caseEdit.submit
|
|
27619
|
+
submit: this.caseEdit.submit
|
|
27545
27620
|
});
|
|
27546
27621
|
}
|
|
27547
27622
|
getPageTitle() {
|
|
@@ -27616,7 +27691,7 @@ class CaseEditSubmitComponent {
|
|
|
27616
27691
|
}
|
|
27617
27692
|
}
|
|
27618
27693
|
readOnlySummaryFieldsToDisplayExists() {
|
|
27619
|
-
return this.eventTrigger.case_fields.some(field => field.show_summary_content_option >= 0);
|
|
27694
|
+
return this.eventTrigger.case_fields.some((field) => field.show_summary_content_option >= 0);
|
|
27620
27695
|
}
|
|
27621
27696
|
showEventNotes() {
|
|
27622
27697
|
// Display event notes related controls only if the following conditions are met
|
|
@@ -27631,7 +27706,7 @@ class CaseEditSubmitComponent {
|
|
|
27631
27706
|
}
|
|
27632
27707
|
getLastPageShown() {
|
|
27633
27708
|
let lastPage;
|
|
27634
|
-
this.wizard.reverse().forEach(page => {
|
|
27709
|
+
this.wizard.reverse().forEach((page) => {
|
|
27635
27710
|
if (!lastPage && this.isShown(page)) {
|
|
27636
27711
|
lastPage = page;
|
|
27637
27712
|
}
|
|
@@ -27650,7 +27725,7 @@ class CaseEditSubmitComponent {
|
|
|
27650
27725
|
}
|
|
27651
27726
|
isShown(page) {
|
|
27652
27727
|
const fields = this.fieldsUtils
|
|
27653
|
-
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls
|
|
27728
|
+
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls.data.value);
|
|
27654
27729
|
return page.parsedShowCondition.match(fields);
|
|
27655
27730
|
}
|
|
27656
27731
|
canShowFieldInCYA(field) {
|
|
@@ -27659,7 +27734,7 @@ class CaseEditSubmitComponent {
|
|
|
27659
27734
|
sortFieldsByShowSummaryContent(fields) {
|
|
27660
27735
|
return this.orderService
|
|
27661
27736
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
27662
|
-
.filter(cf => cf.show_summary_content_option);
|
|
27737
|
+
.filter((cf) => cf.show_summary_content_option);
|
|
27663
27738
|
}
|
|
27664
27739
|
getCaseFields() {
|
|
27665
27740
|
if (this.caseEdit.caseDetails) {
|
|
@@ -27678,9 +27753,7 @@ class CaseEditSubmitComponent {
|
|
|
27678
27753
|
if (this.eventTrigger.can_save_draft) {
|
|
27679
27754
|
return 'Return to case list';
|
|
27680
27755
|
}
|
|
27681
|
-
|
|
27682
|
-
return 'Cancel';
|
|
27683
|
-
}
|
|
27756
|
+
return 'Cancel';
|
|
27684
27757
|
}
|
|
27685
27758
|
}
|
|
27686
27759
|
CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
@@ -27694,8 +27767,8 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
|
27694
27767
|
}
|
|
27695
27768
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
27696
27769
|
};
|
|
27697
|
-
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
27698
|
-
CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27770
|
+
CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
27771
|
+
CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27699
27772
|
i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
|
|
27700
27773
|
i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
27701
27774
|
} if (rf & 2) {
|
|
@@ -27705,8 +27778,8 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
|
|
|
27705
27778
|
} }, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.no-bottom-border[_ngcontent-%COMP%]{border-bottom:none}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
27706
27779
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
27707
27780
|
type: Component,
|
|
27708
|
-
args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n
|
|
27709
|
-
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null); })();
|
|
27781
|
+
args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
|
|
27782
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }]; }, null); })();
|
|
27710
27783
|
|
|
27711
27784
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
27712
27785
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -28062,7 +28135,7 @@ i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i4.NgIf
|
|
|
28062
28135
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i4.NgForOf, i4.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
28063
28136
|
CaseEditGenericErrorsComponent]; }, function () { return [i4.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
28064
28137
|
i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
|
|
28065
|
-
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
|
|
28138
|
+
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [FirstErrorPipe, IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
|
|
28066
28139
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
28067
28140
|
i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
28068
28141
|
|