@hmcts/ccd-case-ui-toolkit 7.0.34-pre-release-markdown → 7.0.34
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 +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/document/write-document-field.component.mjs +4 -4
- package/esm2020/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +5 -5
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +3 -26
- 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/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +109 -214
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +109 -205
- 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/markdown/markdown.component.d.ts +1 -4
- package/lib/shared/components/palette/markdown/markdown.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 -4
- package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,6 @@ import { MatDialogConfig } from '@angular/material/dialog';
|
|
|
27
27
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
28
28
|
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
29
29
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
30
|
-
import * as marked from 'marked';
|
|
31
30
|
import * as i1$4 from 'ngx-md';
|
|
32
31
|
import { NgxMdModule } from 'ngx-md';
|
|
33
32
|
import * as i5 from '@angular/material/legacy-autocomplete';
|
|
@@ -128,11 +127,11 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
128
127
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
129
128
|
} }
|
|
130
129
|
const _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
131
|
-
const _c1$
|
|
130
|
+
const _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
132
131
|
class FooterComponent {
|
|
133
132
|
}
|
|
134
133
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
135
|
-
FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
134
|
+
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) { if (rf & 1) {
|
|
136
135
|
i0.ɵɵprojectionDef(_c0$13);
|
|
137
136
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
138
137
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -192,7 +191,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
192
191
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
193
192
|
} }
|
|
194
193
|
const _c0$12 = [[["", "headerNavigation", ""]]];
|
|
195
|
-
const _c1$
|
|
194
|
+
const _c1$s = ["[headerNavigation]"];
|
|
196
195
|
class HeaderBarComponent {
|
|
197
196
|
constructor() {
|
|
198
197
|
this.signOutRequest = new EventEmitter();
|
|
@@ -202,7 +201,7 @@ class HeaderBarComponent {
|
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
205
|
-
HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
204
|
+
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) { if (rf & 1) {
|
|
206
205
|
i0.ɵɵprojectionDef(_c0$12);
|
|
207
206
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
208
207
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3);
|
|
@@ -253,11 +252,11 @@ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBa
|
|
|
253
252
|
}] }); })();
|
|
254
253
|
|
|
255
254
|
const _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
256
|
-
const _c1$
|
|
255
|
+
const _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
257
256
|
class NavigationComponent {
|
|
258
257
|
}
|
|
259
258
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
260
|
-
NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
259
|
+
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) { if (rf & 1) {
|
|
261
260
|
i0.ɵɵprojectionDef(_c0$11);
|
|
262
261
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
263
262
|
i0.ɵɵprojection(2);
|
|
@@ -368,11 +367,11 @@ HeadersModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
|
|
|
368
367
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
369
368
|
|
|
370
369
|
const _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
371
|
-
const _c1$
|
|
370
|
+
const _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
372
371
|
class BodyComponent {
|
|
373
372
|
}
|
|
374
373
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
375
|
-
BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
374
|
+
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) { if (rf & 1) {
|
|
376
375
|
i0.ɵɵprojectionDef(_c0$10);
|
|
377
376
|
i0.ɵɵelementStart(0, "div", 0);
|
|
378
377
|
i0.ɵɵprojection(1);
|
|
@@ -982,11 +981,11 @@ NotificationBannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
982
981
|
}] }); })();
|
|
983
982
|
|
|
984
983
|
const _c0$Z = function (a0) { return { "js-hidden": a0 }; };
|
|
985
|
-
const _c1$
|
|
984
|
+
const _c1$p = ["*"];
|
|
986
985
|
class TabComponent {
|
|
987
986
|
}
|
|
988
987
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
989
|
-
TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
988
|
+
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) { if (rf & 1) {
|
|
990
989
|
i0.ɵɵprojectionDef();
|
|
991
990
|
i0.ɵɵelementStart(0, "div", 0);
|
|
992
991
|
i0.ɵɵprojection(1);
|
|
@@ -1007,8 +1006,8 @@ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent,
|
|
|
1007
1006
|
}] }); })();
|
|
1008
1007
|
|
|
1009
1008
|
const _c0$Y = ["tab"];
|
|
1010
|
-
const _c1$
|
|
1011
|
-
const _c2$
|
|
1009
|
+
const _c1$o = function () { return ["."]; };
|
|
1010
|
+
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1012
1011
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
1013
1012
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
1014
1013
|
i0.ɵɵelementStart(0, "li", 4)(1, "a", 5, 6);
|
|
@@ -1019,7 +1018,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1019
1018
|
} if (rf & 2) {
|
|
1020
1019
|
const panel_r1 = ctx.$implicit;
|
|
1021
1020
|
i0.ɵɵadvance(1);
|
|
1022
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$
|
|
1021
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$o))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
|
|
1023
1022
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1024
1023
|
i0.ɵɵadvance(2);
|
|
1025
1024
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, panel_r1.title));
|
|
@@ -2737,9 +2736,6 @@ class FirstErrorPipe {
|
|
|
2737
2736
|
else if (keys[0] === 'pattern') {
|
|
2738
2737
|
errorMessage = 'The data entered is not valid for %FIELDLABEL%';
|
|
2739
2738
|
}
|
|
2740
|
-
else if (keys[0] === 'markDownPattern') {
|
|
2741
|
-
errorMessage = 'The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field';
|
|
2742
|
-
}
|
|
2743
2739
|
else if (keys[0] === 'minlength') {
|
|
2744
2740
|
errorMessage = '%FIELDLABEL% is below the minimum length';
|
|
2745
2741
|
}
|
|
@@ -4557,7 +4553,6 @@ class FormValidatorsService {
|
|
|
4557
4553
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
|
|
4558
4554
|
const validators = [Validators.required];
|
|
4559
4555
|
if (caseField.field_type.type === 'Text') {
|
|
4560
|
-
validators.push(this.markDownPatternValidator());
|
|
4561
4556
|
if (caseField.field_type.regular_expression) {
|
|
4562
4557
|
validators.push(Validators.pattern(caseField.field_type.regular_expression));
|
|
4563
4558
|
}
|
|
@@ -4571,36 +4566,22 @@ class FormValidatorsService {
|
|
|
4571
4566
|
validators.push(Validators.maxLength(caseField.field_type.max));
|
|
4572
4567
|
}
|
|
4573
4568
|
}
|
|
4574
|
-
if (caseField.field_type.type === 'TextArea') {
|
|
4575
|
-
validators.push(this.emptyValidator());
|
|
4576
|
-
validators.push(this.markDownPatternValidator());
|
|
4577
|
-
}
|
|
4578
4569
|
if (control.validator) {
|
|
4579
4570
|
validators.push(control.validator);
|
|
4580
4571
|
}
|
|
4581
4572
|
control.setValidators(validators);
|
|
4582
4573
|
}
|
|
4583
|
-
else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
|
|
4584
|
-
control.setValidators(this.markDownPatternValidator());
|
|
4585
|
-
}
|
|
4586
4574
|
return control;
|
|
4587
4575
|
}
|
|
4588
4576
|
static emptyValidator() {
|
|
4589
4577
|
const validator = (control) => {
|
|
4590
|
-
if (control
|
|
4578
|
+
if (control && control.value && control.value.toString().trim().length === 0) {
|
|
4591
4579
|
return { required: {} };
|
|
4592
4580
|
}
|
|
4593
4581
|
return null;
|
|
4594
4582
|
};
|
|
4595
4583
|
return validator;
|
|
4596
4584
|
}
|
|
4597
|
-
static markDownPatternValidator() {
|
|
4598
|
-
const pattern = /(\[[^\]]{0,500}\]\([^)]{0,500}\)|!\[[^\]]{0,500}\]\([^)]{0,500}\)|<img[^>]{0,500}>|<a[^>]{0,500}>.*?<\/a>)/;
|
|
4599
|
-
return (control) => {
|
|
4600
|
-
const value = control?.value?.toString().trim();
|
|
4601
|
-
return (value && pattern.test(value)) ? { markDownPattern: {} } : null;
|
|
4602
|
-
};
|
|
4603
|
-
}
|
|
4604
4585
|
// TODO: Strip this out as it's only here for the moment because
|
|
4605
4586
|
// the service is being injected all over the place but it doesn't
|
|
4606
4587
|
// need to be as FormValidatorsService.addValidators is perfectly
|
|
@@ -4608,20 +4589,10 @@ class FormValidatorsService {
|
|
|
4608
4589
|
addValidators(caseField, control) {
|
|
4609
4590
|
return FormValidatorsService.addValidators(caseField, control);
|
|
4610
4591
|
}
|
|
4611
|
-
addMarkDownValidators(formGroup, controlPath) {
|
|
4612
|
-
const control = formGroup.get(controlPath);
|
|
4613
|
-
if (control) {
|
|
4614
|
-
control.setValidators(FormValidatorsService.markDownPatternValidator());
|
|
4615
|
-
control.updateValueAndValidity();
|
|
4616
|
-
}
|
|
4617
|
-
return control;
|
|
4618
|
-
}
|
|
4619
4592
|
}
|
|
4620
4593
|
FormValidatorsService.CUSTOM_VALIDATED_TYPES = [
|
|
4621
4594
|
'Date', 'MoneyGBP', 'Label', 'JudicialUser'
|
|
4622
4595
|
];
|
|
4623
|
-
FormValidatorsService.DEFAULT_INPUT_TEXT = 'text';
|
|
4624
|
-
FormValidatorsService.DEFAULT_INPUT_TEXTAREA = 'textAreas';
|
|
4625
4596
|
FormValidatorsService.ɵfac = function FormValidatorsService_Factory(t) { return new (t || FormValidatorsService)(); };
|
|
4626
4597
|
FormValidatorsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormValidatorsService, factory: FormValidatorsService.ɵfac });
|
|
4627
4598
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormValidatorsService, [{
|
|
@@ -10973,8 +10944,8 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (r
|
|
|
10973
10944
|
i0.ɵɵadvance(1);
|
|
10974
10945
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r5.errorMessage));
|
|
10975
10946
|
} }
|
|
10976
|
-
const _c1$
|
|
10977
|
-
const _c2$
|
|
10947
|
+
const _c1$n = function (a0) { return { "form-group-error": a0 }; };
|
|
10948
|
+
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
10978
10949
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10979
10950
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
10980
10951
|
i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
|
|
@@ -10990,7 +10961,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10990
10961
|
i0.ɵɵelementEnd()();
|
|
10991
10962
|
} if (rf & 2) {
|
|
10992
10963
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10993
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
10964
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
|
|
10994
10965
|
i0.ɵɵadvance(1);
|
|
10995
10966
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
10996
10967
|
i0.ɵɵadvance(2);
|
|
@@ -10998,7 +10969,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10998
10969
|
i0.ɵɵadvance(2);
|
|
10999
10970
|
i0.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
|
|
11000
10971
|
i0.ɵɵadvance(1);
|
|
11001
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$
|
|
10972
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
|
|
11002
10973
|
i0.ɵɵadvance(2);
|
|
11003
10974
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
|
|
11004
10975
|
} }
|
|
@@ -11036,7 +11007,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
|
|
|
11036
11007
|
i0.ɵɵelementEnd()();
|
|
11037
11008
|
} if (rf & 2) {
|
|
11038
11009
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
11039
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
11010
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$n, ctx_r3.noAddressSelected));
|
|
11040
11011
|
i0.ɵɵadvance(1);
|
|
11041
11012
|
i0.ɵɵproperty("for", ctx_r3.createElementId("addressList"));
|
|
11042
11013
|
i0.ɵɵadvance(2);
|
|
@@ -12453,7 +12424,7 @@ function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
12453
12424
|
i0.ɵɵadvance(1);
|
|
12454
12425
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
|
|
12455
12426
|
} }
|
|
12456
|
-
const _c1$
|
|
12427
|
+
const _c1$m = function (a0) { return { "form-group-error": a0 }; };
|
|
12457
12428
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
12458
12429
|
ngOnInit() {
|
|
12459
12430
|
if (this.caseField.value) {
|
|
@@ -12514,7 +12485,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12514
12485
|
i0.ɵɵelement(5, "input", 5);
|
|
12515
12486
|
i0.ɵɵelementEnd();
|
|
12516
12487
|
} if (rf & 2) {
|
|
12517
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
12488
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
12518
12489
|
i0.ɵɵadvance(1);
|
|
12519
12490
|
i0.ɵɵproperty("for", ctx.id());
|
|
12520
12491
|
i0.ɵɵadvance(1);
|
|
@@ -12546,7 +12517,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
12546
12517
|
i0.ɵɵadvance(4);
|
|
12547
12518
|
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);
|
|
12548
12519
|
} }
|
|
12549
|
-
const _c1$
|
|
12520
|
+
const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
12550
12521
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
12551
12522
|
i0.ɵɵelementStart(0, "tr")(1, "td");
|
|
12552
12523
|
i0.ɵɵelement(2, "ccd-field-read", 7);
|
|
@@ -12556,7 +12527,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
12556
12527
|
const i_r5 = ctx.index;
|
|
12557
12528
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
12558
12529
|
i0.ɵɵadvance(2);
|
|
12559
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
12530
|
+
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));
|
|
12560
12531
|
} }
|
|
12561
12532
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
12562
12533
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -13379,7 +13350,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
13379
13350
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13380
13351
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
13381
13352
|
} }
|
|
13382
|
-
const _c1$
|
|
13353
|
+
const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
13383
13354
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
13384
13355
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
13385
13356
|
super();
|
|
@@ -13687,7 +13658,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13687
13658
|
} if (rf & 2) {
|
|
13688
13659
|
let _t;
|
|
13689
13660
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
13690
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 20, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"
|
|
13661
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 20, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13691
13662
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1)(2, "span", 2);
|
|
13692
13663
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13693
13664
|
i0.ɵɵtext(4);
|
|
@@ -13699,7 +13670,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13699
13670
|
i0.ɵɵtemplate(9, WriteDocumentFieldComponent_ccd_read_document_field_9_Template, 1, 1, "ccd-read-document-field", 5);
|
|
13700
13671
|
i0.ɵɵelementEnd();
|
|
13701
13672
|
i0.ɵɵelementStart(10, "div", 6)(11, "div", 7);
|
|
13702
|
-
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { return ctx.fileSelectEvent(); })
|
|
13673
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { return ctx.fileSelectEvent(); });
|
|
13703
13674
|
i0.ɵɵelementEnd();
|
|
13704
13675
|
i0.ɵɵelementStart(12, "input", 8, 9);
|
|
13705
13676
|
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { return ctx.fileValidationsOnTab(); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { return ctx.fileChangeEvent($event); });
|
|
@@ -13710,7 +13681,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13710
13681
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
13711
13682
|
i0.ɵɵelementEnd()();
|
|
13712
13683
|
} if (rf & 2) {
|
|
13713
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
13684
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$k, !ctx.valid));
|
|
13714
13685
|
i0.ɵɵadvance(1);
|
|
13715
13686
|
i0.ɵɵproperty("for", ctx.id());
|
|
13716
13687
|
i0.ɵɵadvance(1);
|
|
@@ -13735,7 +13706,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13735
13706
|
} }, encapsulation: 2 });
|
|
13736
13707
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
13737
13708
|
type: Component,
|
|
13738
|
-
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\"
|
|
13709
|
+
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
13739
13710
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
13740
13711
|
type: ViewChild,
|
|
13741
13712
|
args: ['fileInput', { static: false }]
|
|
@@ -13904,14 +13875,9 @@ WriteDynamicListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
13904
13875
|
}], null, null); })();
|
|
13905
13876
|
|
|
13906
13877
|
class MarkdownComponent {
|
|
13907
|
-
constructor() {
|
|
13908
|
-
this.renderUrlToTextFeature = true;
|
|
13909
|
-
}
|
|
13878
|
+
constructor() { }
|
|
13910
13879
|
ngOnInit() {
|
|
13911
13880
|
this.content = this.content.replace(/ \n/g, '<br>');
|
|
13912
|
-
if (this.renderUrlToTextFeature) {
|
|
13913
|
-
this.renderUrlToText();
|
|
13914
|
-
}
|
|
13915
13881
|
}
|
|
13916
13882
|
onMarkdownClick(event) {
|
|
13917
13883
|
// If we don't have an anchor tag, we don't need to do anything.
|
|
@@ -13920,26 +13886,11 @@ class MarkdownComponent {
|
|
|
13920
13886
|
}
|
|
13921
13887
|
return true;
|
|
13922
13888
|
}
|
|
13923
|
-
renderUrlToText() {
|
|
13924
|
-
const renderer = new marked.Renderer();
|
|
13925
|
-
renderer.link = (href, title, text) => {
|
|
13926
|
-
// Return the text without turning it into a link if it's not an internal link
|
|
13927
|
-
return this.isAllowedUrl(href) ? `<a href="${href}">${text}</a>` : text;
|
|
13928
|
-
};
|
|
13929
|
-
marked.setOptions({
|
|
13930
|
-
renderer: renderer
|
|
13931
|
-
});
|
|
13932
|
-
}
|
|
13933
|
-
isAllowedUrl(url) {
|
|
13934
|
-
const currentOrigin = window.location.origin;
|
|
13935
|
-
const urlOrigin = new URL(url, window.location.href).origin;
|
|
13936
|
-
return urlOrigin === currentOrigin || url.startsWith('/'); // Check if same origin or relative
|
|
13937
|
-
}
|
|
13938
13889
|
}
|
|
13939
13890
|
MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
|
|
13940
13891
|
MarkdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
13941
13892
|
i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
|
|
13942
|
-
} }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink"
|
|
13893
|
+
} }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 4, vars: 5, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13943
13894
|
i0.ɵɵelementStart(0, "div");
|
|
13944
13895
|
i0.ɵɵelement(1, "markdown", 0);
|
|
13945
13896
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -13956,8 +13907,6 @@ MarkdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownC
|
|
|
13956
13907
|
type: Input
|
|
13957
13908
|
}], markdownUseHrefAsRouterLink: [{
|
|
13958
13909
|
type: Input
|
|
13959
|
-
}], renderUrlToTextFeature: [{
|
|
13960
|
-
type: Input
|
|
13961
13910
|
}], onMarkdownClick: [{
|
|
13962
13911
|
type: HostListener,
|
|
13963
13912
|
args: ['click', ['$event']]
|
|
@@ -14070,7 +14019,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
14070
14019
|
i0.ɵɵadvance(1);
|
|
14071
14020
|
i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
|
|
14072
14021
|
i0.ɵɵadvance(1);
|
|
14073
|
-
i0.ɵɵproperty("content", checkbox_r4.label)
|
|
14022
|
+
i0.ɵɵproperty("content", checkbox_r4.label);
|
|
14074
14023
|
} }
|
|
14075
14024
|
const _c0$O = function (a0) { return { "error": a0 }; };
|
|
14076
14025
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
@@ -14134,13 +14083,13 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
14134
14083
|
}
|
|
14135
14084
|
}
|
|
14136
14085
|
WriteDynamicMultiSelectListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(t || WriteDynamicMultiSelectListFieldComponent); }; }();
|
|
14137
|
-
WriteDynamicMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"], [3, "content"
|
|
14086
|
+
WriteDynamicMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"], [3, "content"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14138
14087
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
14139
14088
|
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
14140
14089
|
i0.ɵɵtemplate(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2);
|
|
14141
14090
|
i0.ɵɵtemplate(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
14142
14091
|
i0.ɵɵelementEnd();
|
|
14143
|
-
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5,
|
|
14092
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 5, 6, "ng-container", 4);
|
|
14144
14093
|
i0.ɵɵelementEnd()();
|
|
14145
14094
|
} if (rf & 2) {
|
|
14146
14095
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$O, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
@@ -14155,7 +14104,7 @@ WriteDynamicMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineCom
|
|
|
14155
14104
|
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, MarkdownComponent, FieldLabelPipe, FirstErrorPipe], styles: ["ccd-markdown[_ngcontent-%COMP%]{display:inline-block}"] });
|
|
14156
14105
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
14157
14106
|
type: Component,
|
|
14158
|
-
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label class=\"form-label\" for=\"{{ createElementId(checkbox.code) }}\">\n <ccd-markdown [content]=\"checkbox.label\"
|
|
14107
|
+
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label class=\"form-label\" for=\"{{ createElementId(checkbox.code) }}\">\n <ccd-markdown [content]=\"checkbox.label\"></ccd-markdown>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
|
|
14159
14108
|
}], null, null); })();
|
|
14160
14109
|
|
|
14161
14110
|
class DynamicRadioListPipe {
|
|
@@ -14276,7 +14225,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
14276
14225
|
i0.ɵɵadvance(1);
|
|
14277
14226
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
14278
14227
|
} }
|
|
14279
|
-
const _c1$
|
|
14228
|
+
const _c1$j = function (a0) { return { "form-group-error": a0 }; };
|
|
14280
14229
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
14281
14230
|
ngOnInit() {
|
|
14282
14231
|
/**
|
|
@@ -14314,7 +14263,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14314
14263
|
i0.ɵɵelementContainerEnd();
|
|
14315
14264
|
i0.ɵɵelementEnd()();
|
|
14316
14265
|
} if (rf & 2) {
|
|
14317
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
14266
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
14318
14267
|
i0.ɵɵadvance(3);
|
|
14319
14268
|
i0.ɵɵproperty("for", ctx.id());
|
|
14320
14269
|
i0.ɵɵadvance(1);
|
|
@@ -14395,7 +14344,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14395
14344
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
14396
14345
|
} }
|
|
14397
14346
|
const _c0$M = function (a0) { return { "form-group-error": a0 }; };
|
|
14398
|
-
const _c1$
|
|
14347
|
+
const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14399
14348
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
14400
14349
|
ngOnInit() {
|
|
14401
14350
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14421,7 +14370,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
14421
14370
|
i0.ɵɵadvance(1);
|
|
14422
14371
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
14423
14372
|
i0.ɵɵadvance(1);
|
|
14424
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14373
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$i, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
14425
14374
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
14426
14375
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
14427
14376
|
type: Component,
|
|
@@ -14632,7 +14581,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
14632
14581
|
i0.ɵɵadvance(1);
|
|
14633
14582
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
14634
14583
|
} }
|
|
14635
|
-
const _c1$
|
|
14584
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
14636
14585
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
14637
14586
|
ngOnInit() {
|
|
14638
14587
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -14652,7 +14601,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
14652
14601
|
i0.ɵɵelementContainerEnd();
|
|
14653
14602
|
i0.ɵɵelementEnd()();
|
|
14654
14603
|
} if (rf & 2) {
|
|
14655
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
14604
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
14656
14605
|
i0.ɵɵadvance(3);
|
|
14657
14606
|
i0.ɵɵproperty("for", ctx.id());
|
|
14658
14607
|
i0.ɵɵadvance(1);
|
|
@@ -14774,7 +14723,7 @@ function WriteJudicialUserFieldComponent_mat_option_11_Template(rf, ctx) { if (r
|
|
|
14774
14723
|
i0.ɵɵtext(1, " Invalid search term ");
|
|
14775
14724
|
i0.ɵɵelementEnd();
|
|
14776
14725
|
} }
|
|
14777
|
-
const _c1$
|
|
14726
|
+
const _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
14778
14727
|
class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
14779
14728
|
constructor(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
|
|
14780
14729
|
super(compoundPipe, validatorsService);
|
|
@@ -14921,7 +14870,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
|
|
|
14921
14870
|
i0.ɵɵelementEnd()();
|
|
14922
14871
|
} if (rf & 2) {
|
|
14923
14872
|
const _r3 = i0.ɵɵreference(7);
|
|
14924
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
14873
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
|
|
14925
14874
|
i0.ɵɵadvance(1);
|
|
14926
14875
|
i0.ɵɵproperty("for", ctx.id());
|
|
14927
14876
|
i0.ɵɵadvance(1);
|
|
@@ -15611,7 +15560,7 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
15611
15560
|
i0.ɵɵadvance(1);
|
|
15612
15561
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r19));
|
|
15613
15562
|
} }
|
|
15614
|
-
const _c1$
|
|
15563
|
+
const _c1$f = function (a0) { return { "table-group-error": a0 }; };
|
|
15615
15564
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
15616
15565
|
const _r21 = i0.ɵɵgetCurrentView();
|
|
15617
15566
|
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
|
|
@@ -15642,7 +15591,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
15642
15591
|
const case_r16 = ctx.$implicit;
|
|
15643
15592
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
15644
15593
|
i0.ɵɵadvance(2);
|
|
15645
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
15594
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
15646
15595
|
i0.ɵɵadvance(2);
|
|
15647
15596
|
i0.ɵɵtextInterpolate1("", case_r16.caseName, " ");
|
|
15648
15597
|
i0.ɵɵadvance(2);
|
|
@@ -17542,7 +17491,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17542
17491
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
|
|
17543
17492
|
} }
|
|
17544
17493
|
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
17545
|
-
const _c1$
|
|
17494
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17546
17495
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
17547
17496
|
ngOnInit() {
|
|
17548
17497
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -17568,7 +17517,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
|
|
|
17568
17517
|
i0.ɵɵadvance(1);
|
|
17569
17518
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
17570
17519
|
i0.ɵɵadvance(1);
|
|
17571
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
17520
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
17572
17521
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
17573
17522
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
17574
17523
|
type: Component,
|
|
@@ -18209,7 +18158,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18209
18158
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
|
|
18210
18159
|
} }
|
|
18211
18160
|
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
18212
|
-
const _c1$
|
|
18161
|
+
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
18213
18162
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
18214
18163
|
ngOnInit() {
|
|
18215
18164
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -18235,7 +18184,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
18235
18184
|
i0.ɵɵadvance(1);
|
|
18236
18185
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
18237
18186
|
i0.ɵɵadvance(1);
|
|
18238
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18187
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
18239
18188
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18240
18189
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
18241
18190
|
type: Component,
|
|
@@ -20251,7 +20200,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20251
20200
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
|
|
20252
20201
|
} }
|
|
20253
20202
|
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
20254
|
-
const _c1$
|
|
20203
|
+
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
20255
20204
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
20256
20205
|
constructor(browserService) {
|
|
20257
20206
|
super();
|
|
@@ -20289,7 +20238,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
20289
20238
|
i0.ɵɵadvance(1);
|
|
20290
20239
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
20291
20240
|
i0.ɵɵadvance(1);
|
|
20292
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
20241
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
20293
20242
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
20294
20243
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
20295
20244
|
type: Component,
|
|
@@ -20347,7 +20296,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
20347
20296
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
|
|
20348
20297
|
} }
|
|
20349
20298
|
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
20350
|
-
const _c1$
|
|
20299
|
+
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
20351
20300
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
20352
20301
|
ngOnInit() {
|
|
20353
20302
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -20377,7 +20326,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
20377
20326
|
i0.ɵɵadvance(1);
|
|
20378
20327
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
20379
20328
|
i0.ɵɵadvance(1);
|
|
20380
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
20329
|
+
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);
|
|
20381
20330
|
} }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
20382
20331
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
20383
20332
|
type: Component,
|
|
@@ -20550,7 +20499,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20550
20499
|
i0.ɵɵadvance(1);
|
|
20551
20500
|
i0.ɵɵtextInterpolate(ctx_r3.caseField.label ? i0.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4) : value_r4);
|
|
20552
20501
|
} }
|
|
20553
|
-
const _c1$
|
|
20502
|
+
const _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
20554
20503
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
20555
20504
|
constructor(yesNoService) {
|
|
20556
20505
|
super();
|
|
@@ -20572,7 +20521,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
20572
20521
|
i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
|
|
20573
20522
|
i0.ɵɵelementEnd()()();
|
|
20574
20523
|
} if (rf & 2) {
|
|
20575
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
20524
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
20576
20525
|
i0.ɵɵadvance(3);
|
|
20577
20526
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
20578
20527
|
i0.ɵɵadvance(1);
|
|
@@ -20929,7 +20878,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
20929
20878
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20930
20879
|
i0.ɵɵelementContainer(0);
|
|
20931
20880
|
} }
|
|
20932
|
-
const _c1$
|
|
20881
|
+
const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
20933
20882
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
20934
20883
|
i0.ɵɵelementContainerStart(0);
|
|
20935
20884
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -20940,7 +20889,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
20940
20889
|
i0.ɵɵnextContext();
|
|
20941
20890
|
const _r1 = i0.ɵɵreference(13);
|
|
20942
20891
|
i0.ɵɵadvance(1);
|
|
20943
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$
|
|
20892
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
20944
20893
|
} }
|
|
20945
20894
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
20946
20895
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -21109,7 +21058,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
21109
21058
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
21110
21059
|
} }
|
|
21111
21060
|
const _c0$s = [[["", "trigger", ""]]];
|
|
21112
|
-
const _c1$
|
|
21061
|
+
const _c1$8 = ["[trigger]"];
|
|
21113
21062
|
class CaseFileViewOverlayMenuComponent {
|
|
21114
21063
|
constructor() {
|
|
21115
21064
|
this.title = '';
|
|
@@ -21123,7 +21072,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
21123
21072
|
}
|
|
21124
21073
|
}
|
|
21125
21074
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
21126
|
-
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$
|
|
21075
|
+
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) { if (rf & 1) {
|
|
21127
21076
|
i0.ɵɵprojectionDef(_c0$s);
|
|
21128
21077
|
i0.ɵɵelementStart(0, "div")(1, "button", 0, 1);
|
|
21129
21078
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -23192,7 +23141,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
23192
23141
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
23193
23142
|
} }
|
|
23194
23143
|
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
23195
|
-
const _c1$
|
|
23144
|
+
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
23196
23145
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23197
23146
|
i0.ɵɵelementStart(0, "div", 18)(1, "div", 3)(2, "label", 19);
|
|
23198
23147
|
i0.ɵɵtext(3);
|
|
@@ -23212,7 +23161,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
23212
23161
|
i0.ɵɵadvance(3);
|
|
23213
23162
|
i0.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
|
|
23214
23163
|
i0.ɵɵadvance(1);
|
|
23215
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
23164
|
+
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);
|
|
23216
23165
|
i0.ɵɵadvance(1);
|
|
23217
23166
|
i0.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
|
|
23218
23167
|
} }
|
|
@@ -23712,7 +23661,7 @@ function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
23712
23661
|
i0.ɵɵadvance(3);
|
|
23713
23662
|
i0.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
23714
23663
|
} }
|
|
23715
|
-
const _c1$
|
|
23664
|
+
const _c1$6 = function (a0) { return { "form-group-error": a0 }; };
|
|
23716
23665
|
class UpdateFlagComponent {
|
|
23717
23666
|
constructor(rpxTranslationService) {
|
|
23718
23667
|
this.rpxTranslationService = rpxTranslationService;
|
|
@@ -23914,7 +23863,7 @@ UpdateFlagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateF
|
|
|
23914
23863
|
const _r3 = i0.ɵɵreference(17);
|
|
23915
23864
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23916
23865
|
i0.ɵɵadvance(2);
|
|
23917
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$
|
|
23866
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$6, ctx.errorMessages.length > 0));
|
|
23918
23867
|
i0.ɵɵadvance(3);
|
|
23919
23868
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
23920
23869
|
i0.ɵɵadvance(2);
|
|
@@ -25184,7 +25133,7 @@ const CUSTOM_MOMENT_FORMATS = {
|
|
|
25184
25133
|
};
|
|
25185
25134
|
|
|
25186
25135
|
const _c0$g = ["picker"];
|
|
25187
|
-
const _c1$
|
|
25136
|
+
const _c1$5 = ["input"];
|
|
25188
25137
|
function DatetimePickerComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
25189
25138
|
i0.ɵɵelementStart(0, "span", 11);
|
|
25190
25139
|
i0.ɵɵtext(1);
|
|
@@ -25233,7 +25182,7 @@ function DatetimePickerComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
25233
25182
|
i0.ɵɵadvance(1);
|
|
25234
25183
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "This date is later than the maximum date allowed"));
|
|
25235
25184
|
} }
|
|
25236
|
-
const _c2$
|
|
25185
|
+
const _c2$1 = function (a0) { return { "form-group-error": a0 }; };
|
|
25237
25186
|
class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
25238
25187
|
constructor(formatTranslationService, ngxMatDateFormats) {
|
|
25239
25188
|
super();
|
|
@@ -25398,7 +25347,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
|
|
|
25398
25347
|
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0.ɵɵdirectiveInject(FormatTranslatorService), i0.ɵɵdirectiveInject(NGX_MAT_DATE_FORMATS)); };
|
|
25399
25348
|
DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
25400
25349
|
i0.ɵɵviewQuery(_c0$g, 5);
|
|
25401
|
-
i0.ɵɵviewQuery(_c1$
|
|
25350
|
+
i0.ɵɵviewQuery(_c1$5, 5);
|
|
25402
25351
|
} if (rf & 2) {
|
|
25403
25352
|
let _t;
|
|
25404
25353
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimePicker = _t.first);
|
|
@@ -25430,7 +25379,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
25430
25379
|
i0.ɵɵelementEnd()()()()()();
|
|
25431
25380
|
} if (rf & 2) {
|
|
25432
25381
|
const _r6 = i0.ɵɵreference(13);
|
|
25433
|
-
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$
|
|
25382
|
+
i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$1, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
|
|
25434
25383
|
i0.ɵɵadvance(3);
|
|
25435
25384
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
25436
25385
|
i0.ɵɵadvance(1);
|
|
@@ -25654,11 +25603,11 @@ function EventLogTableComponent_tr_20_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
25654
25603
|
i0.ɵɵadvance(3);
|
|
25655
25604
|
i0.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
|
|
25656
25605
|
} }
|
|
25657
|
-
const _c1$
|
|
25606
|
+
const _c1$4 = function (a0) { return { "EventLogTable-Selected": a0 }; };
|
|
25658
25607
|
function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
|
|
25659
25608
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
25660
25609
|
i0.ɵɵelementStart(0, "tr", 4);
|
|
25661
|
-
i0.ɵɵlistener("click", function EventLogTableComponent_tr_20_Template_tr_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r18); const event_r1 = restoredCtx.$implicit; const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.select(event_r1)); })
|
|
25610
|
+
i0.ɵɵlistener("click", function EventLogTableComponent_tr_20_Template_tr_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r18); const event_r1 = restoredCtx.$implicit; const ctx_r17 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r17.select(event_r1)); });
|
|
25662
25611
|
i0.ɵɵelementStart(1, "td");
|
|
25663
25612
|
i0.ɵɵelementContainerStart(2, 5);
|
|
25664
25613
|
i0.ɵɵtemplate(3, EventLogTableComponent_tr_20_div_3_Template, 2, 1, "div", 6);
|
|
@@ -25668,7 +25617,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
25668
25617
|
i0.ɵɵtemplate(6, EventLogTableComponent_tr_20_div_6_Template, 5, 3, "div", 9);
|
|
25669
25618
|
i0.ɵɵelementEnd();
|
|
25670
25619
|
i0.ɵɵelementStart(7, "td", 10);
|
|
25671
|
-
i0.ɵɵlistener("keydown.enter", function EventLogTableComponent_tr_20_Template_td_keydown_enter_7_listener() { const restoredCtx = i0.ɵɵrestoreView(_r18); const event_r1 = restoredCtx.$implicit; const
|
|
25620
|
+
i0.ɵɵlistener("keydown.enter", function EventLogTableComponent_tr_20_Template_td_keydown_enter_7_listener() { const restoredCtx = i0.ɵɵrestoreView(_r18); const event_r1 = restoredCtx.$implicit; const ctx_r19 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r19.select(event_r1)); });
|
|
25672
25621
|
i0.ɵɵelementStart(8, "div", 11);
|
|
25673
25622
|
i0.ɵɵtext(9);
|
|
25674
25623
|
i0.ɵɵpipe(10, "ccdDate");
|
|
@@ -25685,7 +25634,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
25685
25634
|
} if (rf & 2) {
|
|
25686
25635
|
const event_r1 = ctx.$implicit;
|
|
25687
25636
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
25688
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$
|
|
25637
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$4, ctx_r0.selected === event_r1));
|
|
25689
25638
|
i0.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
|
|
25690
25639
|
i0.ɵɵadvance(2);
|
|
25691
25640
|
i0.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
|
|
@@ -25755,7 +25704,7 @@ class EventLogTableComponent {
|
|
|
25755
25704
|
}
|
|
25756
25705
|
}
|
|
25757
25706
|
EventLogTableComponent.ɵfac = function EventLogTableComponent_Factory(t) { return new (t || EventLogTableComponent)(); };
|
|
25758
|
-
EventLogTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogTableComponent, selectors: [["ccd-event-log-table"]], inputs: { events: "events", selected: "selected" }, outputs: { onSelect: "onSelect", onCaseHistory: "onCaseHistory" }, decls: 21, vars: 13, consts: [[1, "EventLogTable"], [1, "heading-h2"], [1, "text-16"], ["tabindex", "0", 3, "ngClass", "click",
|
|
25707
|
+
EventLogTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogTableComponent, selectors: [["ccd-event-log-table"]], inputs: { events: "events", selected: "selected" }, outputs: { onSelect: "onSelect", onCaseHistory: "onCaseHistory" }, decls: 21, vars: 13, consts: [[1, "EventLogTable"], [1, "heading-h2"], [1, "text-16"], ["tabindex", "0", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["tabindex", "0", 3, "ngClass", "click"], [3, "ngSwitch"], ["id", "case-timeline", 4, "ngSwitchCase"], [4, "ngSwitchCase"], [4, "ngIf"], ["class", "tooltip", 4, "ngIf"], ["tabindex", "0", 3, "keydown.enter"], [1, "tooltip", "text-16"], [1, "tooltiptext"], ["tabindex", "0"], ["id", "case-timeline"], ["class", "text-16 event-link", 3, "click", 4, "ngIf"], [1, "text-16", "event-link", 3, "click"], ["class", "text-16 event-link", 3, "routerLink", "target", 4, "ngIf"], [1, "text-16", "event-link", 3, "routerLink", "target"], [1, "tooltip"], ["target", "_blank", "rel", "noopener", 3, "href"], ["alt", "document image", "src", "data:image/png;base64,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", 1, "doc-img"], [1, "tooltiptext", "doc-tooltip"]], template: function EventLogTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25759
25708
|
i0.ɵɵelementStart(0, "table", 0)(1, "caption")(2, "h2", 1);
|
|
25760
25709
|
i0.ɵɵtext(3);
|
|
25761
25710
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -25789,7 +25738,7 @@ EventLogTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Even
|
|
|
25789
25738
|
} }, dependencies: [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i1$1.RouterLink, i4.UpperCasePipe, i4.TitleCasePipe, DatePipe, i1.RpxTranslatePipe], styles: ["#case-timeline[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#005ea5}#case-timeline[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#2b8cc4}#case-timeline[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#4c2c92}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding-left:10px}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr.EventLogTable-Selected[_ngcontent-%COMP%]{border-left:8px solid #005ea5;background-color:#f8f8f8}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr.EventLogTable-Selected[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{padding-left:6px}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:not(.EventLogTable-Selected):hover{border-left:8px solid #2b8cc4;background-color:#f8f8f8;cursor:pointer;cursor:hand}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:not(.EventLogTable-Selected):hover td[_ngcontent-%COMP%]:first-child{padding-left:6px}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] .event-link[_ngcontent-%COMP%]{float:left;padding-right:8px}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] .doc-img[_ngcontent-%COMP%]{width:16px;float:left}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] .doc-tooltip[_ngcontent-%COMP%]{left:35%;bottom:7px}.EventLogTable[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] .doc-tooltip[_ngcontent-%COMP%]:after{border-color:transparent}"] });
|
|
25790
25739
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogTableComponent, [{
|
|
25791
25740
|
type: Component,
|
|
25792
|
-
args: [{ selector: 'ccd-event-log-table', template: "<table class=\"EventLogTable\">\n <caption><h2 class=\"heading-h2\">{{'History' | rpxTranslate}}</h2></caption>\n <thead>\n <tr>\n <th><span class=\"text-16\">{{'Event' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Date' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Author' | rpxTranslate}}</span></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let event of events\" (click)=\"select(event)\"
|
|
25741
|
+
args: [{ selector: 'ccd-event-log-table', template: "<table class=\"EventLogTable\">\n <caption><h2 class=\"heading-h2\">{{'History' | rpxTranslate}}</h2></caption>\n <thead>\n <tr>\n <th><span class=\"text-16\">{{'Event' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Date' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Author' | rpxTranslate}}</span></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let event of events\" (click)=\"select(event)\" [ngClass]=\"{'EventLogTable-Selected': selected === event}\" tabindex=\"0\" attr.aria-label=\"{{getAriaLabelforRow(event)}}\">\n <td>\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <div id=\"case-timeline\" *ngSwitchCase=\"true\">\n <a (click)=\"caseHistoryClicked(event.id)\"\n *ngIf=\"event.state_id !== 'Draft'\" class=\"text-16 event-link\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">{{event.event_name | rpxTranslate}}</a>\n </div>\n <div *ngSwitchCase=\"false\">\n <a [routerLink]=\"['./', 'event', event.id, 'history']\"\n [target]=\"'_blank'\"\n *ngIf=\"event.state_id !== 'Draft'\" class=\"text-16 event-link\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">{{event.event_name | rpxTranslate}}</a>\n </div>\n </ng-container>\n <span *ngIf=\"event.state_id === 'Draft'\">{{event.event_name}}</span>\n <div class=\"tooltip\" *ngIf=\"significantItemExist(event)\">\n <a href=\"{{getSignificantItemUrl(event)}}\" target=\"_blank\" rel=\"noopener\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">\n <img class=\"doc-img\" alt=\"document image\" src=\"data:image/png;base64,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\"/>\n </a>\n <span class=\"tooltiptext doc-tooltip\">{{getSignificantItemDesc(event)}}</span>\n </div>\n </td>\n <td tabindex=\"0\" attr.aria-label=\"{{getAriaLabelforColumn(event)}}\" (keydown.enter)=\"select(event)\"><div class=\"tooltip text-16\">{{event.timestamp | ccdDate : 'local'}}\n <span class=\"tooltiptext\">{{'Local:' | rpxTranslate}} {{event.timestamp | ccdDate : 'local'}}</span>\n </div></td>\n <td tabindex=\"0\"><span class=\"text-16\">{{event.user_first_name | titlecase}} {{event.user_last_name | uppercase}}</span></td>\n </tr>\n </tbody>\n</table>\n", styles: ["#case-timeline a{cursor:pointer;text-decoration:underline;color:#005ea5}#case-timeline a:hover{color:#2b8cc4}#case-timeline a:visited{color:#4c2c92}.EventLogTable tbody>tr td:first-child{padding-left:10px}.EventLogTable tbody>tr.EventLogTable-Selected{border-left:8px solid #005ea5;background-color:#f8f8f8}.EventLogTable tbody>tr.EventLogTable-Selected td:first-child{padding-left:6px}.EventLogTable tbody>tr:not(.EventLogTable-Selected):hover{border-left:8px solid #2b8cc4;background-color:#f8f8f8;cursor:pointer;cursor:hand}.EventLogTable tbody>tr:not(.EventLogTable-Selected):hover td:first-child{padding-left:6px}.EventLogTable tbody>tr .event-link{float:left;padding-right:8px}.EventLogTable tbody>tr .doc-img{width:16px;float:left}.EventLogTable tbody>tr .doc-tooltip{left:35%;bottom:7px}.EventLogTable tbody>tr .doc-tooltip:after{border-color:transparent}\n"] }]
|
|
25793
25742
|
}], null, { events: [{
|
|
25794
25743
|
type: Input
|
|
25795
25744
|
}], selected: [{
|
|
@@ -27573,30 +27522,6 @@ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) { if (r
|
|
|
27573
27522
|
i0.ɵɵadvance(3);
|
|
27574
27523
|
i0.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
|
|
27575
27524
|
} }
|
|
27576
|
-
function CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
27577
|
-
i0.ɵɵelementStart(0, "span", 48);
|
|
27578
|
-
i0.ɵɵtext(1);
|
|
27579
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27580
|
-
i0.ɵɵpipe(3, "ccdFirstError");
|
|
27581
|
-
i0.ɵɵelementEnd();
|
|
27582
|
-
} if (rf & 2) {
|
|
27583
|
-
const ctx_r36 = i0.ɵɵnextContext(3);
|
|
27584
|
-
i0.ɵɵadvance(1);
|
|
27585
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r36.summary.errors, ctx_r36.eventSummaryLabel)), " ");
|
|
27586
|
-
} }
|
|
27587
|
-
function CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
27588
|
-
i0.ɵɵelementStart(0, "span", 48);
|
|
27589
|
-
i0.ɵɵtext(1);
|
|
27590
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27591
|
-
i0.ɵɵpipe(3, "ccdFirstError");
|
|
27592
|
-
i0.ɵɵelementEnd();
|
|
27593
|
-
} if (rf & 2) {
|
|
27594
|
-
const ctx_r37 = i0.ɵɵnextContext(3);
|
|
27595
|
-
i0.ɵɵadvance(1);
|
|
27596
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r37.description.errors, ctx_r37.eventDescriptionLabel)), " ");
|
|
27597
|
-
} }
|
|
27598
|
-
const _c1$4 = function (a0) { return { "form-group-error": a0 }; };
|
|
27599
|
-
const _c2$1 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
27600
27525
|
function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
27601
27526
|
i0.ɵɵelementContainerStart(0);
|
|
27602
27527
|
i0.ɵɵelementStart(1, "fieldset", 39);
|
|
@@ -27606,35 +27531,19 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
27606
27531
|
i0.ɵɵelementStart(6, "span", 43);
|
|
27607
27532
|
i0.ɵɵtext(7, "A few words describing the purpose of the event.");
|
|
27608
27533
|
i0.ɵɵelementEnd()();
|
|
27609
|
-
i0.ɵɵ
|
|
27610
|
-
i0.ɵɵelement(9, "input", 45);
|
|
27534
|
+
i0.ɵɵelement(8, "input", 44);
|
|
27611
27535
|
i0.ɵɵelementEnd();
|
|
27612
|
-
i0.ɵɵelementStart(
|
|
27613
|
-
i0.ɵɵtext(
|
|
27536
|
+
i0.ɵɵelementStart(9, "div", 41)(10, "label", 45);
|
|
27537
|
+
i0.ɵɵtext(11, "Event description (optional)");
|
|
27614
27538
|
i0.ɵɵelementEnd();
|
|
27615
|
-
i0.ɵɵ
|
|
27616
|
-
i0.ɵɵelement(14, "textarea", 47);
|
|
27539
|
+
i0.ɵɵelement(12, "textarea", 46);
|
|
27617
27540
|
i0.ɵɵelementEnd()();
|
|
27618
27541
|
i0.ɵɵelementContainerEnd();
|
|
27619
|
-
} if (rf & 2) {
|
|
27620
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
27621
|
-
i0.ɵɵadvance(3);
|
|
27622
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$4, !!ctx_r9.summary && !ctx_r9.summary.valid && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
|
|
27623
|
-
i0.ɵɵadvance(5);
|
|
27624
|
-
i0.ɵɵproperty("ngIf", (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched));
|
|
27625
|
-
i0.ɵɵadvance(1);
|
|
27626
|
-
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)));
|
|
27627
|
-
i0.ɵɵadvance(1);
|
|
27628
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$4, !!ctx_r9.description && !ctx_r9.description.valid && (ctx_r9.description.dirty || ctx_r9.description.touched)));
|
|
27629
|
-
i0.ɵɵadvance(3);
|
|
27630
|
-
i0.ɵɵproperty("ngIf", (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched));
|
|
27631
|
-
i0.ɵɵadvance(1);
|
|
27632
|
-
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)));
|
|
27633
27542
|
} }
|
|
27634
27543
|
function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1) {
|
|
27635
|
-
const
|
|
27636
|
-
i0.ɵɵelementStart(0, "button",
|
|
27637
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
27544
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
27545
|
+
i0.ɵɵelementStart(0, "button", 47);
|
|
27546
|
+
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()); });
|
|
27638
27547
|
i0.ɵɵtext(1);
|
|
27639
27548
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27640
27549
|
i0.ɵɵelementEnd();
|
|
@@ -27645,7 +27554,7 @@ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1)
|
|
|
27645
27554
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
27646
27555
|
} }
|
|
27647
27556
|
function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
27648
|
-
const
|
|
27557
|
+
const _r39 = i0.ɵɵgetCurrentView();
|
|
27649
27558
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
27650
27559
|
i0.ɵɵtext(2);
|
|
27651
27560
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -27655,13 +27564,13 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27655
27564
|
i0.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
27656
27565
|
i0.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
|
|
27657
27566
|
i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
|
|
27658
|
-
i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(
|
|
27567
|
+
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)); });
|
|
27659
27568
|
i0.ɵɵelementEnd();
|
|
27660
27569
|
i0.ɵɵelementStart(11, "form", 8);
|
|
27661
|
-
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(
|
|
27570
|
+
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()); });
|
|
27662
27571
|
i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
|
|
27663
27572
|
i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
|
|
27664
|
-
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template,
|
|
27573
|
+
i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
|
|
27665
27574
|
i0.ɵɵelementStart(15, "div", 9);
|
|
27666
27575
|
i0.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
|
|
27667
27576
|
i0.ɵɵelementStart(17, "button", 11);
|
|
@@ -27669,7 +27578,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27669
27578
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
27670
27579
|
i0.ɵɵelementEnd()();
|
|
27671
27580
|
i0.ɵɵelementStart(20, "p", 12)(21, "a", 13);
|
|
27672
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(
|
|
27581
|
+
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()); });
|
|
27673
27582
|
i0.ɵɵtext(22);
|
|
27674
27583
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
27675
27584
|
i0.ɵɵelementEnd()()()();
|
|
@@ -27705,9 +27614,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
27705
27614
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 20, ctx_r0.getCancelText()));
|
|
27706
27615
|
} }
|
|
27707
27616
|
function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) { if (rf & 1) {
|
|
27708
|
-
const
|
|
27709
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
27710
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
27617
|
+
const _r43 = i0.ɵɵgetCurrentView();
|
|
27618
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 48);
|
|
27619
|
+
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)); });
|
|
27711
27620
|
i0.ɵɵelementEnd();
|
|
27712
27621
|
} if (rf & 2) {
|
|
27713
27622
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -27715,17 +27624,14 @@ function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
|
|
|
27715
27624
|
} }
|
|
27716
27625
|
// @dynamic
|
|
27717
27626
|
class CaseEditSubmitComponent {
|
|
27718
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier
|
|
27627
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
|
|
27719
27628
|
this.caseEdit = caseEdit;
|
|
27720
27629
|
this.fieldsUtils = fieldsUtils;
|
|
27721
27630
|
this.caseFieldService = caseFieldService;
|
|
27722
27631
|
this.route = route;
|
|
27723
27632
|
this.orderService = orderService;
|
|
27724
27633
|
this.profileNotifier = profileNotifier;
|
|
27725
|
-
this.formValidatorsService = formValidatorsService;
|
|
27726
27634
|
this.paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
|
|
27727
|
-
this.eventSummaryLabel = 'Event summary';
|
|
27728
|
-
this.eventDescriptionLabel = 'Event description';
|
|
27729
27635
|
}
|
|
27730
27636
|
get isDisabled() {
|
|
27731
27637
|
// EUI-3452.
|
|
@@ -27735,7 +27641,7 @@ class CaseEditSubmitComponent {
|
|
|
27735
27641
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
27736
27642
|
}
|
|
27737
27643
|
ngOnInit() {
|
|
27738
|
-
this.profileSubscription = this.profileNotifier.profile.subscribe(
|
|
27644
|
+
this.profileSubscription = this.profileNotifier.profile.subscribe(_ => this.profile = _);
|
|
27739
27645
|
this.eventTrigger = this.caseEdit.eventTrigger;
|
|
27740
27646
|
this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
|
|
27741
27647
|
this.editForm = this.caseEdit.form;
|
|
@@ -27749,12 +27655,10 @@ class CaseEditSubmitComponent {
|
|
|
27749
27655
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
27750
27656
|
// a FlagLauncher field in the event trigger
|
|
27751
27657
|
this.caseEdit.isCaseFlagSubmission =
|
|
27752
|
-
this.eventTrigger.case_fields.some(
|
|
27658
|
+
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
|
|
27753
27659
|
this.caseEdit.isLinkedCasesSubmission =
|
|
27754
27660
|
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
|
|
27755
27661
|
this.pageTitle = this.getPageTitle();
|
|
27756
|
-
this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
|
|
27757
|
-
this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
|
|
27758
27662
|
}
|
|
27759
27663
|
ngOnDestroy() {
|
|
27760
27664
|
/* istanbul ignore else */
|
|
@@ -27763,14 +27667,12 @@ class CaseEditSubmitComponent {
|
|
|
27763
27667
|
}
|
|
27764
27668
|
}
|
|
27765
27669
|
submit() {
|
|
27766
|
-
|
|
27767
|
-
this.
|
|
27768
|
-
|
|
27769
|
-
|
|
27770
|
-
|
|
27771
|
-
|
|
27772
|
-
});
|
|
27773
|
-
}
|
|
27670
|
+
this.caseEdit.submitForm({
|
|
27671
|
+
eventTrigger: this.eventTrigger,
|
|
27672
|
+
form: this.editForm,
|
|
27673
|
+
submit: this.caseEdit.submit,
|
|
27674
|
+
caseDetails: this.caseEdit.caseDetails,
|
|
27675
|
+
});
|
|
27774
27676
|
}
|
|
27775
27677
|
onEventCanBeCompleted(eventCanBeCompleted) {
|
|
27776
27678
|
this.caseEdit.onEventCanBeCompleted({
|
|
@@ -27778,7 +27680,7 @@ class CaseEditSubmitComponent {
|
|
|
27778
27680
|
eventCanBeCompleted,
|
|
27779
27681
|
caseDetails: this.caseEdit.caseDetails,
|
|
27780
27682
|
form: this.editForm,
|
|
27781
|
-
submit: this.caseEdit.submit
|
|
27683
|
+
submit: this.caseEdit.submit,
|
|
27782
27684
|
});
|
|
27783
27685
|
}
|
|
27784
27686
|
getPageTitle() {
|
|
@@ -27853,7 +27755,7 @@ class CaseEditSubmitComponent {
|
|
|
27853
27755
|
}
|
|
27854
27756
|
}
|
|
27855
27757
|
readOnlySummaryFieldsToDisplayExists() {
|
|
27856
|
-
return this.eventTrigger.case_fields.some(
|
|
27758
|
+
return this.eventTrigger.case_fields.some(field => field.show_summary_content_option >= 0);
|
|
27857
27759
|
}
|
|
27858
27760
|
showEventNotes() {
|
|
27859
27761
|
// Display event notes related controls only if the following conditions are met
|
|
@@ -27868,7 +27770,7 @@ class CaseEditSubmitComponent {
|
|
|
27868
27770
|
}
|
|
27869
27771
|
getLastPageShown() {
|
|
27870
27772
|
let lastPage;
|
|
27871
|
-
this.wizard.reverse().forEach(
|
|
27773
|
+
this.wizard.reverse().forEach(page => {
|
|
27872
27774
|
if (!lastPage && this.isShown(page)) {
|
|
27873
27775
|
lastPage = page;
|
|
27874
27776
|
}
|
|
@@ -27887,7 +27789,7 @@ class CaseEditSubmitComponent {
|
|
|
27887
27789
|
}
|
|
27888
27790
|
isShown(page) {
|
|
27889
27791
|
const fields = this.fieldsUtils
|
|
27890
|
-
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls
|
|
27792
|
+
.mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls['data'].value);
|
|
27891
27793
|
return page.parsedShowCondition.match(fields);
|
|
27892
27794
|
}
|
|
27893
27795
|
canShowFieldInCYA(field) {
|
|
@@ -27896,7 +27798,7 @@ class CaseEditSubmitComponent {
|
|
|
27896
27798
|
sortFieldsByShowSummaryContent(fields) {
|
|
27897
27799
|
return this.orderService
|
|
27898
27800
|
.sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
|
|
27899
|
-
.filter(
|
|
27801
|
+
.filter(cf => cf.show_summary_content_option);
|
|
27900
27802
|
}
|
|
27901
27803
|
getCaseFields() {
|
|
27902
27804
|
if (this.caseEdit.caseDetails) {
|
|
@@ -27915,7 +27817,9 @@ class CaseEditSubmitComponent {
|
|
|
27915
27817
|
if (this.eventTrigger.can_save_draft) {
|
|
27916
27818
|
return 'Return to case list';
|
|
27917
27819
|
}
|
|
27918
|
-
|
|
27820
|
+
else {
|
|
27821
|
+
return 'Cancel';
|
|
27822
|
+
}
|
|
27919
27823
|
}
|
|
27920
27824
|
}
|
|
27921
27825
|
CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
@@ -27929,8 +27833,8 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
|
|
|
27929
27833
|
}
|
|
27930
27834
|
return a.show_summary_content_option - b.show_summary_content_option;
|
|
27931
27835
|
};
|
|
27932
|
-
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)
|
|
27933
|
-
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"
|
|
27836
|
+
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)); };
|
|
27837
|
+
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) {
|
|
27934
27838
|
i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
|
|
27935
27839
|
i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
|
|
27936
27840
|
} if (rf & 2) {
|
|
@@ -27940,8 +27844,8 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
|
|
|
27940
27844
|
} }, 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%}"] });
|
|
27941
27845
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
27942
27846
|
type: Component,
|
|
27943
|
-
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\"
|
|
27944
|
-
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }
|
|
27847
|
+
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"] }]
|
|
27848
|
+
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null); })();
|
|
27945
27849
|
|
|
27946
27850
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
27947
27851
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -28297,7 +28201,7 @@ i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i4.NgIf
|
|
|
28297
28201
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i4.NgForOf, i4.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
28298
28202
|
CaseEditGenericErrorsComponent]; }, function () { return [i4.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
28299
28203
|
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]; });
|
|
28300
|
-
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.
|
|
28204
|
+
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]; });
|
|
28301
28205
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
28302
28206
|
i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
|
|
28303
28207
|
|