@hmcts/ccd-case-ui-toolkit 7.0.8 → 7.0.9
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/case-edit.component.mjs +2 -2
- package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +38 -83
- package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +5 -6
- 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 +1 -4
- package/esm2020/lib/shared/services/form/form-validators.service.mjs +2 -27
- package/esm2020/lib/shared/services/form/form-value.service.mjs +7 -10
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +102 -187
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +102 -178
- 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 +3 -8
- 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 +0 -2
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts +1 -1
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -132,11 +132,11 @@ function FooterComponent_div_3_Template(rf, ctx) {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
const _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
135
|
-
const _c1$
|
|
135
|
+
const _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
136
136
|
class FooterComponent {
|
|
137
137
|
}
|
|
138
138
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
139
|
-
FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
139
|
+
FooterComponent.ɵcmp = /*@__PURE__*/ 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) {
|
|
140
140
|
if (rf & 1) {
|
|
141
141
|
i0.ɵɵprojectionDef(_c0$13);
|
|
142
142
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
@@ -210,7 +210,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
const _c0$12 = [[["", "headerNavigation", ""]]];
|
|
213
|
-
const _c1$
|
|
213
|
+
const _c1$s = ["[headerNavigation]"];
|
|
214
214
|
class HeaderBarComponent {
|
|
215
215
|
constructor() {
|
|
216
216
|
this.signOutRequest = new EventEmitter();
|
|
@@ -220,7 +220,7 @@ class HeaderBarComponent {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
223
|
-
HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
223
|
+
HeaderBarComponent.ɵcmp = /*@__PURE__*/ 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) {
|
|
224
224
|
if (rf & 1) {
|
|
225
225
|
i0.ɵɵprojectionDef(_c0$12);
|
|
226
226
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
@@ -276,11 +276,11 @@ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBa
|
|
|
276
276
|
})();
|
|
277
277
|
|
|
278
278
|
const _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
279
|
-
const _c1$
|
|
279
|
+
const _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
280
280
|
class NavigationComponent {
|
|
281
281
|
}
|
|
282
282
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
283
|
-
NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
283
|
+
NavigationComponent.ɵcmp = /*@__PURE__*/ 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) {
|
|
284
284
|
if (rf & 1) {
|
|
285
285
|
i0.ɵɵprojectionDef(_c0$11);
|
|
286
286
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
@@ -411,11 +411,11 @@ HeadersModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
|
|
|
411
411
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
412
412
|
|
|
413
413
|
const _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
414
|
-
const _c1$
|
|
414
|
+
const _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
415
415
|
class BodyComponent {
|
|
416
416
|
}
|
|
417
417
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
418
|
-
BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
418
|
+
BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
419
419
|
if (rf & 1) {
|
|
420
420
|
i0.ɵɵprojectionDef(_c0$10);
|
|
421
421
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -1084,11 +1084,11 @@ NotificationBannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
1084
1084
|
})();
|
|
1085
1085
|
|
|
1086
1086
|
const _c0$Z = function (a0) { return { "js-hidden": a0 }; };
|
|
1087
|
-
const _c1$
|
|
1087
|
+
const _c1$p = ["*"];
|
|
1088
1088
|
class TabComponent {
|
|
1089
1089
|
}
|
|
1090
1090
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1091
|
-
TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1091
|
+
TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$p, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1092
1092
|
if (rf & 1) {
|
|
1093
1093
|
i0.ɵɵprojectionDef();
|
|
1094
1094
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -1114,8 +1114,8 @@ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent,
|
|
|
1114
1114
|
})();
|
|
1115
1115
|
|
|
1116
1116
|
const _c0$Y = ["tab"];
|
|
1117
|
-
const _c1$
|
|
1118
|
-
const _c2$
|
|
1117
|
+
const _c1$o = function () { return ["."]; };
|
|
1118
|
+
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1119
1119
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1120
1120
|
if (rf & 1) {
|
|
1121
1121
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -1128,7 +1128,7 @@ function TabsComponent_li_2_Template(rf, ctx) {
|
|
|
1128
1128
|
if (rf & 2) {
|
|
1129
1129
|
const panel_r1 = ctx.$implicit;
|
|
1130
1130
|
i0.ɵɵadvance(1);
|
|
1131
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$
|
|
1131
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$o))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
|
|
1132
1132
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1133
1133
|
i0.ɵɵadvance(2);
|
|
1134
1134
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, panel_r1.title));
|
|
@@ -2695,9 +2695,6 @@ class FirstErrorPipe {
|
|
|
2695
2695
|
else if (keys[0] === 'pattern') {
|
|
2696
2696
|
errorMessage = 'The data entered is not valid for %FIELDLABEL%';
|
|
2697
2697
|
}
|
|
2698
|
-
else if (keys[0] === 'markDownPattern') {
|
|
2699
|
-
errorMessage = 'The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field';
|
|
2700
|
-
}
|
|
2701
2698
|
else if (keys[0] === 'minlength') {
|
|
2702
2699
|
errorMessage = '%FIELDLABEL% is below the minimum length';
|
|
2703
2700
|
}
|
|
@@ -4545,7 +4542,6 @@ class FormValidatorsService {
|
|
|
4545
4542
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
|
|
4546
4543
|
const validators = [Validators.required];
|
|
4547
4544
|
if (caseField.field_type.type === 'Text') {
|
|
4548
|
-
validators.push(this.markDownPatternValidator());
|
|
4549
4545
|
if (caseField.field_type.regular_expression) {
|
|
4550
4546
|
validators.push(Validators.pattern(caseField.field_type.regular_expression));
|
|
4551
4547
|
}
|
|
@@ -4559,40 +4555,22 @@ class FormValidatorsService {
|
|
|
4559
4555
|
validators.push(Validators.maxLength(caseField.field_type.max));
|
|
4560
4556
|
}
|
|
4561
4557
|
}
|
|
4562
|
-
if (caseField.field_type.type === 'TextArea') {
|
|
4563
|
-
validators.push(this.emptyValidator());
|
|
4564
|
-
validators.push(this.markDownPatternValidator());
|
|
4565
|
-
}
|
|
4566
4558
|
if (control.validator) {
|
|
4567
4559
|
validators.push(control.validator);
|
|
4568
4560
|
}
|
|
4569
4561
|
control.setValidators(validators);
|
|
4570
4562
|
}
|
|
4571
|
-
else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
|
|
4572
|
-
control.setValidators(this.markDownPatternValidator());
|
|
4573
|
-
}
|
|
4574
4563
|
return control;
|
|
4575
4564
|
}
|
|
4576
4565
|
static emptyValidator() {
|
|
4577
4566
|
const validator = (control) => {
|
|
4578
|
-
|
|
4579
|
-
if (((_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.toString().trim().length) === 0) {
|
|
4567
|
+
if (control && control.value && control.value.toString().trim().length === 0) {
|
|
4580
4568
|
return { required: {} };
|
|
4581
4569
|
}
|
|
4582
4570
|
return null;
|
|
4583
4571
|
};
|
|
4584
4572
|
return validator;
|
|
4585
4573
|
}
|
|
4586
|
-
static markDownPatternValidator() {
|
|
4587
|
-
const pattern = /(\[[^\]]{0,500}\]\([^)]{0,500}\)|!\[[^\]]{0,500}\]\([^)]{0,500}\)|<img[^>]{0,500}>|<a[^>]{0,500}>.*?<\/a>)/;
|
|
4588
|
-
return (control) => {
|
|
4589
|
-
var _a;
|
|
4590
|
-
const value = (_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.toString().trim();
|
|
4591
|
-
return value && pattern.test(value)
|
|
4592
|
-
? { markDownPattern: {} }
|
|
4593
|
-
: null;
|
|
4594
|
-
};
|
|
4595
|
-
}
|
|
4596
4574
|
// TODO: Strip this out as it's only here for the moment because
|
|
4597
4575
|
// the service is being injected all over the place but it doesn't
|
|
4598
4576
|
// need to be as FormValidatorsService.addValidators is perfectly
|
|
@@ -4600,14 +4578,6 @@ class FormValidatorsService {
|
|
|
4600
4578
|
addValidators(caseField, control) {
|
|
4601
4579
|
return FormValidatorsService.addValidators(caseField, control);
|
|
4602
4580
|
}
|
|
4603
|
-
addMarkDownValidators(formGroup, controlPath) {
|
|
4604
|
-
const control = formGroup.get(controlPath);
|
|
4605
|
-
if (control) {
|
|
4606
|
-
control.setValidators(FormValidatorsService.markDownPatternValidator());
|
|
4607
|
-
control.updateValueAndValidity();
|
|
4608
|
-
}
|
|
4609
|
-
return control;
|
|
4610
|
-
}
|
|
4611
4581
|
}
|
|
4612
4582
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES = [
|
|
4613
4583
|
'Date', 'MoneyGBP', 'Label', 'JudicialUser'
|
|
@@ -5688,7 +5658,7 @@ class FormValueService {
|
|
|
5688
5658
|
* @param clearEmpty Whether or not we should clear out empty, optional, complex objects.
|
|
5689
5659
|
* @param clearNonCase Whether or not we should clear out non-case fields at the top level.
|
|
5690
5660
|
*/
|
|
5691
|
-
removeUnnecessaryFields(data, caseFields, clearEmpty = false, clearNonCase = false, fromPreviousPage = false, currentPageCaseFields = []
|
|
5661
|
+
removeUnnecessaryFields(data, caseFields, clearEmpty = false, clearNonCase = false, fromPreviousPage = false, currentPageCaseFields = []) {
|
|
5692
5662
|
if (data && caseFields && caseFields.length > 0) {
|
|
5693
5663
|
// check if there is any data at the top level of the form that's not in the caseFields
|
|
5694
5664
|
if (clearNonCase) {
|
|
@@ -5699,13 +5669,10 @@ class FormValueService {
|
|
|
5699
5669
|
// Retain anything that is readonly and not a label.
|
|
5700
5670
|
continue;
|
|
5701
5671
|
}
|
|
5702
|
-
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.display_context !== 'HIDDEN_TEMP' && field.id !== 'caseLinks') {
|
|
5672
|
+
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.display_context !== 'HIDDEN_TEMP' && field.id !== 'caseLinks' && !field.retain_hidden_value) {
|
|
5703
5673
|
// Delete anything that is hidden (that is NOT readonly), and that
|
|
5704
5674
|
// hasn't had its display_context overridden to make it hidden.
|
|
5705
|
-
|
|
5706
|
-
if ((isCalledFromSubmit && !field.retain_hidden_value) || !isCalledFromSubmit) {
|
|
5707
|
-
delete data[field.id];
|
|
5708
|
-
}
|
|
5675
|
+
delete data[field.id];
|
|
5709
5676
|
}
|
|
5710
5677
|
else if (field.field_type) {
|
|
5711
5678
|
switch (field.field_type.type) {
|
|
@@ -5719,7 +5686,7 @@ class FormValueService {
|
|
|
5719
5686
|
}
|
|
5720
5687
|
break;
|
|
5721
5688
|
case 'Complex':
|
|
5722
|
-
this.removeUnnecessaryFields(data[field.id], field.field_type.complex_fields, clearEmpty
|
|
5689
|
+
this.removeUnnecessaryFields(data[field.id], field.field_type.complex_fields, clearEmpty);
|
|
5723
5690
|
// Also remove any optional complex objects that are completely empty.
|
|
5724
5691
|
// EUI-4244: Ritesh's fix, passing true instead of clearEmpty.
|
|
5725
5692
|
if (FormValueService.clearOptionalEmpty(true, data[field.id], field)) {
|
|
@@ -5742,8 +5709,8 @@ class FormValueService {
|
|
|
5742
5709
|
if (field.field_type.collection_field_type.type === 'Complex') {
|
|
5743
5710
|
// Iterate through the elements and remove any unnecessary fields within.
|
|
5744
5711
|
for (const item of collection) {
|
|
5745
|
-
this.removeUnnecessaryFields(item, field.field_type.collection_field_type.complex_fields, clearEmpty
|
|
5746
|
-
this.removeUnnecessaryFields(item.value, field.field_type.collection_field_type.complex_fields, false
|
|
5712
|
+
this.removeUnnecessaryFields(item, field.field_type.collection_field_type.complex_fields, clearEmpty);
|
|
5713
|
+
this.removeUnnecessaryFields(item.value, field.field_type.collection_field_type.complex_fields, false);
|
|
5747
5714
|
}
|
|
5748
5715
|
}
|
|
5749
5716
|
}
|
|
@@ -9175,7 +9142,7 @@ class CaseEditComponent {
|
|
|
9175
9142
|
const pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, eventTrigger.case_fields, form.controls['data'].value);
|
|
9176
9143
|
// Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
|
|
9177
9144
|
if (!this.isCaseFlagSubmission) {
|
|
9178
|
-
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true
|
|
9145
|
+
this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
|
|
9179
9146
|
}
|
|
9180
9147
|
caseEventData.event_token = eventTrigger.event_token;
|
|
9181
9148
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
@@ -11082,8 +11049,8 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) {
|
|
|
11082
11049
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
|
|
11083
11050
|
}
|
|
11084
11051
|
}
|
|
11085
|
-
const _c1$
|
|
11086
|
-
const _c2$
|
|
11052
|
+
const _c1$n = function (a0) { return { "form-group-error": a0 }; };
|
|
11053
|
+
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11087
11054
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11088
11055
|
if (rf & 1) {
|
|
11089
11056
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -11101,7 +11068,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
|
11101
11068
|
}
|
|
11102
11069
|
if (rf & 2) {
|
|
11103
11070
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
11104
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
11071
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
|
|
11105
11072
|
i0.ɵɵadvance(1);
|
|
11106
11073
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11107
11074
|
i0.ɵɵadvance(2);
|
|
@@ -11109,7 +11076,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
|
11109
11076
|
i0.ɵɵadvance(2);
|
|
11110
11077
|
i0.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
|
|
11111
11078
|
i0.ɵɵadvance(1);
|
|
11112
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$
|
|
11079
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
|
|
11113
11080
|
i0.ɵɵadvance(2);
|
|
11114
11081
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
|
|
11115
11082
|
}
|
|
@@ -12683,7 +12650,7 @@ function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) {
|
|
|
12683
12650
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
|
|
12684
12651
|
}
|
|
12685
12652
|
}
|
|
12686
|
-
const _c1$
|
|
12653
|
+
const _c1$m = function (a0) { return { "form-group-error": a0 }; };
|
|
12687
12654
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
12688
12655
|
ngOnInit() {
|
|
12689
12656
|
if (this.caseField.value) {
|
|
@@ -12749,7 +12716,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12749
12716
|
i0.ɵɵelementEnd();
|
|
12750
12717
|
}
|
|
12751
12718
|
if (rf & 2) {
|
|
12752
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
12719
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
12753
12720
|
i0.ɵɵadvance(1);
|
|
12754
12721
|
i0.ɵɵproperty("for", ctx.id());
|
|
12755
12722
|
i0.ɵɵadvance(1);
|
|
@@ -12787,7 +12754,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
|
12787
12754
|
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);
|
|
12788
12755
|
}
|
|
12789
12756
|
}
|
|
12790
|
-
const _c1$
|
|
12757
|
+
const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
12791
12758
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
12792
12759
|
if (rf & 1) {
|
|
12793
12760
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
@@ -12799,7 +12766,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
|
12799
12766
|
const i_r5 = ctx.index;
|
|
12800
12767
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
12801
12768
|
i0.ɵɵadvance(2);
|
|
12802
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
12769
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$l, 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));
|
|
12803
12770
|
}
|
|
12804
12771
|
}
|
|
12805
12772
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
@@ -13995,7 +13962,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
13995
13962
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
13996
13963
|
}
|
|
13997
13964
|
}
|
|
13998
|
-
const _c1$
|
|
13965
|
+
const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
13999
13966
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
14000
13967
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
14001
13968
|
super();
|
|
@@ -14301,7 +14268,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
14301
14268
|
i0.ɵɵelementEnd()();
|
|
14302
14269
|
}
|
|
14303
14270
|
if (rf & 2) {
|
|
14304
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
14271
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$k, !ctx.valid));
|
|
14305
14272
|
i0.ɵɵadvance(1);
|
|
14306
14273
|
i0.ɵɵproperty("for", ctx.id());
|
|
14307
14274
|
i0.ɵɵadvance(1);
|
|
@@ -14931,7 +14898,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
|
14931
14898
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
14932
14899
|
}
|
|
14933
14900
|
}
|
|
14934
|
-
const _c1$
|
|
14901
|
+
const _c1$j = function (a0) { return { "form-group-error": a0 }; };
|
|
14935
14902
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
14936
14903
|
ngOnInit() {
|
|
14937
14904
|
/**
|
|
@@ -14971,7 +14938,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14971
14938
|
i0.ɵɵelementEnd()();
|
|
14972
14939
|
}
|
|
14973
14940
|
if (rf & 2) {
|
|
14974
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
14941
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
14975
14942
|
i0.ɵɵadvance(3);
|
|
14976
14943
|
i0.ɵɵproperty("for", ctx.id());
|
|
14977
14944
|
i0.ɵɵadvance(1);
|
|
@@ -15072,7 +15039,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) {
|
|
|
15072
15039
|
}
|
|
15073
15040
|
}
|
|
15074
15041
|
const _c0$M = function (a0) { return { "form-group-error": a0 }; };
|
|
15075
|
-
const _c1$
|
|
15042
|
+
const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15076
15043
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
15077
15044
|
ngOnInit() {
|
|
15078
15045
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15100,7 +15067,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
15100
15067
|
i0.ɵɵadvance(1);
|
|
15101
15068
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15102
15069
|
i0.ɵɵadvance(1);
|
|
15103
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15070
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$i, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15104
15071
|
}
|
|
15105
15072
|
}, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
15106
15073
|
(function () {
|
|
@@ -15355,7 +15322,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
|
15355
15322
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
15356
15323
|
}
|
|
15357
15324
|
}
|
|
15358
|
-
const _c1$
|
|
15325
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
15359
15326
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
15360
15327
|
ngOnInit() {
|
|
15361
15328
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -15377,7 +15344,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
15377
15344
|
i0.ɵɵelementEnd()();
|
|
15378
15345
|
}
|
|
15379
15346
|
if (rf & 2) {
|
|
15380
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
15347
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
15381
15348
|
i0.ɵɵadvance(3);
|
|
15382
15349
|
i0.ɵɵproperty("for", ctx.id());
|
|
15383
15350
|
i0.ɵɵadvance(1);
|
|
@@ -15531,7 +15498,7 @@ function WriteJudicialUserFieldComponent_mat_option_11_Template(rf, ctx) {
|
|
|
15531
15498
|
i0.ɵɵelementEnd();
|
|
15532
15499
|
}
|
|
15533
15500
|
}
|
|
15534
|
-
const _c1$
|
|
15501
|
+
const _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
15535
15502
|
class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
15536
15503
|
constructor(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
|
|
15537
15504
|
super(compoundPipe, validatorsService);
|
|
@@ -15684,7 +15651,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
|
|
|
15684
15651
|
}
|
|
15685
15652
|
if (rf & 2) {
|
|
15686
15653
|
const _r3 = i0.ɵɵreference(7);
|
|
15687
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
15654
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
|
|
15688
15655
|
i0.ɵɵadvance(1);
|
|
15689
15656
|
i0.ɵɵproperty("for", ctx.id());
|
|
15690
15657
|
i0.ɵɵadvance(1);
|
|
@@ -16471,7 +16438,7 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) {
|
|
|
16471
16438
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r19));
|
|
16472
16439
|
}
|
|
16473
16440
|
}
|
|
16474
|
-
const _c1$
|
|
16441
|
+
const _c1$f = function (a0) { return { "table-group-error": a0 }; };
|
|
16475
16442
|
function LinkCasesComponent_tr_31_Template(rf, ctx) {
|
|
16476
16443
|
if (rf & 1) {
|
|
16477
16444
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
@@ -16504,7 +16471,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) {
|
|
|
16504
16471
|
const case_r16 = ctx.$implicit;
|
|
16505
16472
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
16506
16473
|
i0.ɵɵadvance(2);
|
|
16507
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
16474
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
16508
16475
|
i0.ɵɵadvance(2);
|
|
16509
16476
|
i0.ɵɵtextInterpolate1("", case_r16.caseName, " ");
|
|
16510
16477
|
i0.ɵɵadvance(2);
|
|
@@ -18591,7 +18558,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) {
|
|
|
18591
18558
|
}
|
|
18592
18559
|
}
|
|
18593
18560
|
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
18594
|
-
const _c1$
|
|
18561
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18595
18562
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
18596
18563
|
ngOnInit() {
|
|
18597
18564
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -18619,7 +18586,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
|
|
|
18619
18586
|
i0.ɵɵadvance(1);
|
|
18620
18587
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
18621
18588
|
i0.ɵɵadvance(1);
|
|
18622
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18589
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
18623
18590
|
}
|
|
18624
18591
|
}, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18625
18592
|
(function () {
|
|
@@ -19335,7 +19302,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) {
|
|
|
19335
19302
|
}
|
|
19336
19303
|
}
|
|
19337
19304
|
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
19338
|
-
const _c1$
|
|
19305
|
+
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
19339
19306
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
19340
19307
|
ngOnInit() {
|
|
19341
19308
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -19363,7 +19330,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
19363
19330
|
i0.ɵɵadvance(1);
|
|
19364
19331
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
19365
19332
|
i0.ɵɵadvance(1);
|
|
19366
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
19333
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
19367
19334
|
}
|
|
19368
19335
|
}, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19369
19336
|
(function () {
|
|
@@ -21605,7 +21572,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) {
|
|
|
21605
21572
|
}
|
|
21606
21573
|
}
|
|
21607
21574
|
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
21608
|
-
const _c1$
|
|
21575
|
+
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
21609
21576
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
21610
21577
|
constructor(browserService) {
|
|
21611
21578
|
super();
|
|
@@ -21645,7 +21612,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21645
21612
|
i0.ɵɵadvance(1);
|
|
21646
21613
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
21647
21614
|
i0.ɵɵadvance(1);
|
|
21648
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
21615
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
21649
21616
|
}
|
|
21650
21617
|
}, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21651
21618
|
(function () {
|
|
@@ -21720,7 +21687,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) {
|
|
|
21720
21687
|
}
|
|
21721
21688
|
}
|
|
21722
21689
|
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
21723
|
-
const _c1$
|
|
21690
|
+
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
21724
21691
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
21725
21692
|
ngOnInit() {
|
|
21726
21693
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -21752,7 +21719,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
21752
21719
|
i0.ɵɵadvance(1);
|
|
21753
21720
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
21754
21721
|
i0.ɵɵadvance(1);
|
|
21755
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
21722
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
21756
21723
|
}
|
|
21757
21724
|
}, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21758
21725
|
(function () {
|
|
@@ -21962,7 +21929,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
|
|
|
21962
21929
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4));
|
|
21963
21930
|
}
|
|
21964
21931
|
}
|
|
21965
|
-
const _c1$
|
|
21932
|
+
const _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
21966
21933
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
21967
21934
|
constructor(yesNoService) {
|
|
21968
21935
|
super();
|
|
@@ -21986,7 +21953,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
21986
21953
|
i0.ɵɵelementEnd()()();
|
|
21987
21954
|
}
|
|
21988
21955
|
if (rf & 2) {
|
|
21989
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
21956
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
21990
21957
|
i0.ɵɵadvance(3);
|
|
21991
21958
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
21992
21959
|
i0.ɵɵadvance(1);
|
|
@@ -22384,7 +22351,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_co
|
|
|
22384
22351
|
i0.ɵɵelementContainer(0);
|
|
22385
22352
|
}
|
|
22386
22353
|
}
|
|
22387
|
-
const _c1$
|
|
22354
|
+
const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
22388
22355
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
|
|
22389
22356
|
if (rf & 1) {
|
|
22390
22357
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22397,7 +22364,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
22397
22364
|
i0.ɵɵnextContext();
|
|
22398
22365
|
const _r1 = i0.ɵɵreference(13);
|
|
22399
22366
|
i0.ɵɵadvance(1);
|
|
22400
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$
|
|
22367
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
22401
22368
|
}
|
|
22402
22369
|
}
|
|
22403
22370
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
@@ -22588,7 +22555,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
|
|
|
22588
22555
|
}
|
|
22589
22556
|
}
|
|
22590
22557
|
const _c0$s = [[["", "trigger", ""]]];
|
|
22591
|
-
const _c1$
|
|
22558
|
+
const _c1$8 = ["[trigger]"];
|
|
22592
22559
|
class CaseFileViewOverlayMenuComponent {
|
|
22593
22560
|
constructor() {
|
|
22594
22561
|
this.title = '';
|
|
@@ -22602,7 +22569,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
22602
22569
|
}
|
|
22603
22570
|
}
|
|
22604
22571
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
22605
|
-
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$
|
|
22572
|
+
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$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) {
|
|
22606
22573
|
if (rf & 1) {
|
|
22607
22574
|
i0.ɵɵprojectionDef(_c0$s);
|
|
22608
22575
|
i0.ɵɵelementStart(0, "div")(1, "button", 0, 1);
|
|
@@ -24863,7 +24830,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
24863
24830
|
}
|
|
24864
24831
|
}
|
|
24865
24832
|
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
24866
|
-
const _c1$
|
|
24833
|
+
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
24867
24834
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
|
|
24868
24835
|
if (rf & 1) {
|
|
24869
24836
|
i0.ɵɵelementStart(0, "div", 18)(1, "div", 3)(2, "label", 19);
|
|
@@ -24885,7 +24852,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
|
|
|
24885
24852
|
i0.ɵɵadvance(3);
|
|
24886
24853
|
i0.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
|
|
24887
24854
|
i0.ɵɵadvance(1);
|
|
24888
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
24855
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$7, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
|
|
24889
24856
|
i0.ɵɵadvance(1);
|
|
24890
24857
|
i0.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
|
|
24891
24858
|
}
|
|
@@ -25455,7 +25422,7 @@ function UpdateFlagComponent_div_22_Template(rf, ctx) {
|
|
|
25455
25422
|
i0.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
25456
25423
|
}
|
|
25457
25424
|
}
|
|
25458
|
-
const _c1$
|
|
25425
|
+
const _c1$6 = function (a0) { return { "form-group-error": a0 }; };
|
|
25459
25426
|
class UpdateFlagComponent {
|
|
25460
25427
|
constructor(rpxTranslationService) {
|
|
25461
25428
|
this.rpxTranslationService = rpxTranslationService;
|
|
@@ -25664,7 +25631,7 @@ UpdateFlagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateF
|
|
|
25664
25631
|
const _r3 = i0.ɵɵreference(17);
|
|
25665
25632
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25666
25633
|
i0.ɵɵadvance(2);
|
|
25667
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$
|
|
25634
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$6, ctx.errorMessages.length > 0));
|
|
25668
25635
|
i0.ɵɵadvance(3);
|
|
25669
25636
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
25670
25637
|
i0.ɵɵadvance(2);
|
|
@@ -27060,7 +27027,7 @@ const CUSTOM_MOMENT_FORMATS = {
|
|
|
27060
27027
|
};
|
|
27061
27028
|
|
|
27062
27029
|
const _c0$g = ["picker"];
|
|
27063
|
-
const _c1$
|
|
27030
|
+
const _c1$5 = ["input"];
|
|
27064
27031
|
function DatetimePickerComponent_span_3_Template(rf, ctx) {
|
|
27065
27032
|
if (rf & 1) {
|
|
27066
27033
|
i0.ɵɵelementStart(0, "span", 11);
|
|
@@ -27124,7 +27091,7 @@ function DatetimePickerComponent_span_7_Template(rf, ctx) {
|
|
|
27124
27091
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "This date is later than the maximum date allowed"));
|
|
27125
27092
|
}
|
|
27126
27093
|
}
|
|
27127
|
-
const _c2$
|
|
27094
|
+
const _c2$1 = function (a0) { return { "form-group-error": a0 }; };
|
|
27128
27095
|
class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
27129
27096
|
constructor(formatTranslationService, ngxMatDateFormats) {
|
|
27130
27097
|
super();
|
|
@@ -27290,7 +27257,7 @@ DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { re
|
|
|
27290
27257
|
DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
27291
27258
|
if (rf & 1) {
|
|
27292
27259
|
i0.ɵɵviewQuery(_c0$g, 5);
|
|
27293
|
-
i0.ɵɵviewQuery(_c1$
|
|
27260
|
+
i0.ɵɵviewQuery(_c1$5, 5);
|
|
27294
27261
|
}
|
|
27295
27262
|
if (rf & 2) {
|
|
27296
27263
|
let _t;
|
|
@@ -27326,7 +27293,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
27326
27293
|
}
|
|
27327
27294
|
if (rf & 2) {
|
|
27328
27295
|
const _r6 = i0.ɵɵreference(13);
|
|
27329
|
-
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$
|
|
27296
|
+
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$1, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
|
|
27330
27297
|
i0.ɵɵadvance(3);
|
|
27331
27298
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
27332
27299
|
i0.ɵɵadvance(1);
|
|
@@ -27580,7 +27547,7 @@ function EventLogTableComponent_tr_20_div_6_Template(rf, ctx) {
|
|
|
27580
27547
|
i0.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
|
|
27581
27548
|
}
|
|
27582
27549
|
}
|
|
27583
|
-
const _c1$
|
|
27550
|
+
const _c1$4 = function (a0) { return { "EventLogTable-Selected": a0 }; };
|
|
27584
27551
|
function EventLogTableComponent_tr_20_Template(rf, ctx) {
|
|
27585
27552
|
if (rf & 1) {
|
|
27586
27553
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -27613,7 +27580,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) {
|
|
|
27613
27580
|
if (rf & 2) {
|
|
27614
27581
|
const event_r1 = ctx.$implicit;
|
|
27615
27582
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
27616
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$
|
|
27583
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$4, ctx_r0.selected === event_r1));
|
|
27617
27584
|
i0.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
|
|
27618
27585
|
i0.ɵɵadvance(2);
|
|
27619
27586
|
i0.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
|
|
@@ -29681,36 +29648,6 @@ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
|
|
|
29681
29648
|
i0.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
29682
29649
|
}
|
|
29683
29650
|
}
|
|
29684
|
-
function CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template(rf, ctx) {
|
|
29685
|
-
if (rf & 1) {
|
|
29686
|
-
i0.ɵɵelementStart(0, "span", 48);
|
|
29687
|
-
i0.ɵɵtext(1);
|
|
29688
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
29689
|
-
i0.ɵɵpipe(3, "ccdFirstError");
|
|
29690
|
-
i0.ɵɵelementEnd();
|
|
29691
|
-
}
|
|
29692
|
-
if (rf & 2) {
|
|
29693
|
-
const ctx_r36 = i0.ɵɵnextContext(3);
|
|
29694
|
-
i0.ɵɵadvance(1);
|
|
29695
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r36.summary.errors, ctx_r36.eventSummaryLabel)), " ");
|
|
29696
|
-
}
|
|
29697
|
-
}
|
|
29698
|
-
function CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template(rf, ctx) {
|
|
29699
|
-
if (rf & 1) {
|
|
29700
|
-
i0.ɵɵelementStart(0, "span", 48);
|
|
29701
|
-
i0.ɵɵtext(1);
|
|
29702
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
29703
|
-
i0.ɵɵpipe(3, "ccdFirstError");
|
|
29704
|
-
i0.ɵɵelementEnd();
|
|
29705
|
-
}
|
|
29706
|
-
if (rf & 2) {
|
|
29707
|
-
const ctx_r37 = i0.ɵɵnextContext(3);
|
|
29708
|
-
i0.ɵɵadvance(1);
|
|
29709
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r37.description.errors, ctx_r37.eventDescriptionLabel)), " ");
|
|
29710
|
-
}
|
|
29711
|
-
}
|
|
29712
|
-
const _c1$4 = function (a0) { return { "form-group-error": a0 }; };
|
|
29713
|
-
const _c2$1 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
29714
29651
|
function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
|
|
29715
29652
|
if (rf & 1) {
|
|
29716
29653
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -29721,38 +29658,21 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
|
|
|
29721
29658
|
i0.ɵɵelementStart(6, "span", 43);
|
|
29722
29659
|
i0.ɵɵtext(7, "A few words describing the purpose of the event.");
|
|
29723
29660
|
i0.ɵɵelementEnd()();
|
|
29724
|
-
i0.ɵɵ
|
|
29725
|
-
i0.ɵɵelement(9, "input", 45);
|
|
29661
|
+
i0.ɵɵelement(8, "input", 44);
|
|
29726
29662
|
i0.ɵɵelementEnd();
|
|
29727
|
-
i0.ɵɵelementStart(
|
|
29728
|
-
i0.ɵɵtext(
|
|
29663
|
+
i0.ɵɵelementStart(9, "div", 41)(10, "label", 45);
|
|
29664
|
+
i0.ɵɵtext(11, "Event description (optional)");
|
|
29729
29665
|
i0.ɵɵelementEnd();
|
|
29730
|
-
i0.ɵɵ
|
|
29731
|
-
i0.ɵɵelement(14, "textarea", 47);
|
|
29666
|
+
i0.ɵɵelement(12, "textarea", 46);
|
|
29732
29667
|
i0.ɵɵelementEnd()();
|
|
29733
29668
|
i0.ɵɵelementContainerEnd();
|
|
29734
29669
|
}
|
|
29735
|
-
if (rf & 2) {
|
|
29736
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
29737
|
-
i0.ɵɵadvance(3);
|
|
29738
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$4, !!ctx_r9.summary && !ctx_r9.summary.valid && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
|
|
29739
|
-
i0.ɵɵadvance(5);
|
|
29740
|
-
i0.ɵɵproperty("ngIf", (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched));
|
|
29741
|
-
i0.ɵɵadvance(1);
|
|
29742
|
-
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)));
|
|
29743
|
-
i0.ɵɵadvance(1);
|
|
29744
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$4, !!ctx_r9.description && !ctx_r9.description.valid && (ctx_r9.description.dirty || ctx_r9.description.touched)));
|
|
29745
|
-
i0.ɵɵadvance(3);
|
|
29746
|
-
i0.ɵɵproperty("ngIf", (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched));
|
|
29747
|
-
i0.ɵɵadvance(1);
|
|
29748
|
-
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)));
|
|
29749
|
-
}
|
|
29750
29670
|
}
|
|
29751
29671
|
function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) {
|
|
29752
29672
|
if (rf & 1) {
|
|
29753
|
-
const
|
|
29754
|
-
i0.ɵɵelementStart(0, "button",
|
|
29755
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
29673
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
29674
|
+
i0.ɵɵelementStart(0, "button", 47);
|
|
29675
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r36.previous()); });
|
|
29756
29676
|
i0.ɵɵtext(1);
|
|
29757
29677
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
29758
29678
|
i0.ɵɵelementEnd();
|
|
@@ -29766,7 +29686,7 @@ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) {
|
|
|
29766
29686
|
}
|
|
29767
29687
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
29768
29688
|
if (rf & 1) {
|
|
29769
|
-
const
|
|
29689
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
29770
29690
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
29771
29691
|
i0.ɵɵtext(2);
|
|
29772
29692
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -29776,13 +29696,13 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
|
29776
29696
|
i0.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
29777
29697
|
i0.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
|
|
29778
29698
|
i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
|
|
29779
|
-
i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(
|
|
29699
|
+
i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.callbackErrorsNotify($event)); });
|
|
29780
29700
|
i0.ɵɵelementEnd();
|
|
29781
29701
|
i0.ɵɵelementStart(11, "form", 8);
|
|
29782
|
-
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(
|
|
29702
|
+
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r39); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.submit()); });
|
|
29783
29703
|
i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
|
|
29784
29704
|
i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
|
|
29785
|
-
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template,
|
|
29705
|
+
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
|
|
29786
29706
|
i0.ɵɵelementStart(15, "div", 9);
|
|
29787
29707
|
i0.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
|
|
29788
29708
|
i0.ɵɵelementStart(17, "button", 11);
|
|
@@ -29790,7 +29710,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
|
29790
29710
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
29791
29711
|
i0.ɵɵelementEnd()();
|
|
29792
29712
|
i0.ɵɵelementStart(20, "p", 12)(21, "a", 13);
|
|
29793
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(
|
|
29713
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r39); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.cancel()); });
|
|
29794
29714
|
i0.ɵɵtext(22);
|
|
29795
29715
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
29796
29716
|
i0.ɵɵelementEnd()()()();
|
|
@@ -29829,9 +29749,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
|
|
|
29829
29749
|
}
|
|
29830
29750
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
29831
29751
|
if (rf & 1) {
|
|
29832
|
-
const
|
|
29833
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
29834
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
29752
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
29753
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
29754
|
+
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.onEventCanBeCompleted($event)); });
|
|
29835
29755
|
i0.ɵɵelementEnd();
|
|
29836
29756
|
}
|
|
29837
29757
|
if (rf & 2) {
|
|
@@ -29841,17 +29761,14 @@ function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
|
29841
29761
|
}
|
|
29842
29762
|
// @dynamic
|
|
29843
29763
|
class CaseEditSubmitComponent {
|
|
29844
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier
|
|
29764
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
29845
29765
|
this.caseEdit = caseEdit;
|
|
29846
29766
|
this.fieldsUtils = fieldsUtils;
|
|
29847
29767
|
this.caseFieldService = caseFieldService;
|
|
29848
29768
|
this.route = route;
|
|
29849
29769
|
this.orderService = orderService;
|
|
29850
29770
|
this.profileNotifier = profileNotifier;
|
|
29851
|
-
this.formValidatorsService = formValidatorsService;
|
|
29852
29771
|
this.paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
|
|
29853
|
-
this.eventSummaryLabel = 'Event summary';
|
|
29854
|
-
this.eventDescriptionLabel = 'Event description';
|
|
29855
29772
|
}
|
|
29856
29773
|
get isDisabled() {
|
|
29857
29774
|
// EUI-3452.
|
|
@@ -29862,7 +29779,7 @@ class CaseEditSubmitComponent {
|
|
|
29862
29779
|
}
|
|
29863
29780
|
ngOnInit() {
|
|
29864
29781
|
var _a, _b, _c;
|
|
29865
|
-
this.profileSubscription = this.profileNotifier.profile.subscribe(
|
|
29782
|
+
this.profileSubscription = this.profileNotifier.profile.subscribe(_ => this.profile = _);
|
|
29866
29783
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
29867
29784
|
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
29868
29785
|
this.editForm = this.caseEdit.form;
|
|
@@ -29875,12 +29792,10 @@ class CaseEditSubmitComponent {
|
|
|
29875
29792
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
29876
29793
|
// a FlagLauncher field in the event trigger
|
|
29877
29794
|
this.caseEdit.isCaseFlagSubmission =
|
|
29878
|
-
this.eventTrigger.case_fields.some(
|
|
29795
|
+
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
|
|
29879
29796
|
this.caseEdit.isLinkedCasesSubmission =
|
|
29880
29797
|
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
|
|
29881
29798
|
this.pageTitle = this.getPageTitle();
|
|
29882
|
-
this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
|
|
29883
|
-
this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
|
|
29884
29799
|
}
|
|
29885
29800
|
ngOnDestroy() {
|
|
29886
29801
|
/* istanbul ignore else */
|
|
@@ -29889,14 +29804,12 @@ class CaseEditSubmitComponent {
|
|
|
29889
29804
|
}
|
|
29890
29805
|
}
|
|
29891
29806
|
submit() {
|
|
29892
|
-
|
|
29893
|
-
this.
|
|
29894
|
-
|
|
29895
|
-
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
});
|
|
29899
|
-
}
|
|
29807
|
+
this.caseEdit.submitForm({
|
|
29808
|
+
eventTrigger: this.eventTrigger,
|
|
29809
|
+
form: this.editForm,
|
|
29810
|
+
submit: this.caseEdit.submit,
|
|
29811
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
29812
|
+
});
|
|
29900
29813
|
}
|
|
29901
29814
|
onEventCanBeCompleted(eventCanBeCompleted) {
|
|
29902
29815
|
this.caseEdit.onEventCanBeCompleted({
|
|
@@ -29904,7 +29817,7 @@ class CaseEditSubmitComponent {
|
|
|
29904
29817
|
eventCanBeCompleted,
|
|
29905
29818
|
caseDetails: this.caseEdit.caseDetails,
|
|
29906
29819
|
form: this.editForm,
|
|
29907
|
-
submit: this.caseEdit.submit
|
|
29820
|
+
submit: this.caseEdit.submit,
|
|
29908
29821
|
});
|
|
29909
29822
|
}
|
|
29910
29823
|
getPageTitle() {
|
|
@@ -29980,7 +29893,7 @@ class CaseEditSubmitComponent {
|
|
|
29980
29893
|
}
|
|
29981
29894
|
}
|
|
29982
29895
|
readOnlySummaryFieldsToDisplayExists() {
|
|
29983
|
-
return this.eventTrigger.case_fields.some(
|
|
29896
|
+
return this.eventTrigger.case_fields.some(field => field.show_summary_content_option >= 0);
|
|
29984
29897
|
}
|
|
29985
29898
|
showEventNotes() {
|
|
29986
29899
|
var _a;
|
|
@@ -29996,7 +29909,7 @@ class CaseEditSubmitComponent {
|
|
|
29996
29909
|
}
|
|
29997
29910
|
getLastPageShown() {
|
|
29998
29911
|
let lastPage;
|
|
29999
|
-
this.wizard.reverse().forEach(
|
|
29912
|
+
this.wizard.reverse().forEach(page => {
|
|
30000
29913
|
if (!lastPage && this.isShown(page)) {
|
|
30001
29914
|
lastPage = page;
|
|
30002
29915
|
}
|
|
@@ -30015,7 +29928,7 @@ class CaseEditSubmitComponent {
|
|
|
30015
29928
|
}
|
|
30016
29929
|
isShown(page) {
|
|
30017
29930
|
const fields = this.fieldsUtils
|
|
30018
|
-
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls
|
|
29931
|
+
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls['data'].value);
|
|
30019
29932
|
return page.parsedShowCondition.match(fields);
|
|
30020
29933
|
}
|
|
30021
29934
|
canShowFieldInCYA(field) {
|
|
@@ -30024,7 +29937,7 @@ class CaseEditSubmitComponent {
|
|
|
30024
29937
|
sortFieldsByShowSummaryContent(fields) {
|
|
30025
29938
|
return this.orderService
|
|
30026
29939
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
30027
|
-
.filter(
|
|
29940
|
+
.filter(cf => cf.show_summary_content_option);
|
|
30028
29941
|
}
|
|
30029
29942
|
getCaseFields() {
|
|
30030
29943
|
if (this.caseEdit.caseDetails) {
|
|
@@ -30043,7 +29956,9 @@ class CaseEditSubmitComponent {
|
|
|
30043
29956
|
if (this.eventTrigger.can_save_draft) {
|
|
30044
29957
|
return 'Return to case list';
|
|
30045
29958
|
}
|
|
30046
|
-
|
|
29959
|
+
else {
|
|
29960
|
+
return 'Cancel';
|
|
29961
|
+
}
|
|
30047
29962
|
}
|
|
30048
29963
|
}
|
|
30049
29964
|
CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
@@ -30057,8 +29972,8 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
|
30057
29972
|
}
|
|
30058
29973
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
30059
29974
|
};
|
|
30060
|
-
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)
|
|
30061
|
-
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"
|
|
29975
|
+
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)); };
|
|
29976
|
+
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) {
|
|
30062
29977
|
if (rf & 1) {
|
|
30063
29978
|
i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
|
|
30064
29979
|
i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
@@ -30072,8 +29987,8 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
|
|
|
30072
29987
|
(function () {
|
|
30073
29988
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
30074
29989
|
type: Component,
|
|
30075
|
-
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\"
|
|
30076
|
-
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }
|
|
29990
|
+
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 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"] }]
|
|
29991
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
30077
29992
|
})();
|
|
30078
29993
|
|
|
30079
29994
|
function CaseProgressComponent_div_0_Template(rf, ctx) {
|
|
@@ -30471,7 +30386,7 @@ i0.ɵɵsetComponentScope(CaseEditPageComponent, function () {
|
|
|
30471
30386
|
CaseEditGenericErrorsComponent];
|
|
30472
30387
|
}, function () { return [i4.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
30473
30388
|
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]; });
|
|
30474
|
-
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.
|
|
30389
|
+
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]; });
|
|
30475
30390
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
30476
30391
|
i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
30477
30392
|
|