@hmcts/ccd-case-ui-toolkit 7.0.51-ungrey-back-button → 7.0.51
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/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +24 -46
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +6 -9
- package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +4 -7
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +4 -14
- package/esm2022/lib/shared/components/palette/base-field/index.mjs +1 -3
- package/esm2022/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +21 -21
- package/esm2022/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +22 -22
- package/esm2022/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +25 -18
- package/esm2022/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +29 -32
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +28 -21
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +63 -111
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +28 -28
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +105 -107
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +29 -86
- package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +18 -27
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +7 -19
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +40 -46
- package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +9 -13
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +39 -45
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +17 -41
- package/esm2022/lib/shared/domain/index.mjs +1 -2
- package/esm2022/lib/shared/services/index.mjs +1 -2
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +516 -957
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +3 -10
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +2 -3
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +1 -2
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/index.d.ts +0 -2
- package/lib/shared/components/palette/base-field/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +3 -6
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +5 -11
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +3 -6
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +5 -8
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts +2 -6
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts +2 -5
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +0 -1
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/services/index.d.ts +0 -1
- package/lib/shared/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2022/lib/shared/components/palette/base-field/abstract-field-write-journey.component.mjs +0 -92
- package/esm2022/lib/shared/components/palette/base-field/abstract-journey.component.mjs +0 -83
- package/esm2022/lib/shared/domain/journey/index.mjs +0 -3
- package/esm2022/lib/shared/domain/journey/journey-instigator.model.mjs +0 -2
- package/esm2022/lib/shared/domain/journey/journey.model.mjs +0 -2
- package/esm2022/lib/shared/services/journey/index.mjs +0 -2
- package/esm2022/lib/shared/services/journey/multipage-component-state.service.mjs +0 -114
- package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts +0 -30
- package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts.map +0 -1
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts +0 -27
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts.map +0 -1
- package/lib/shared/domain/journey/index.d.ts +0 -3
- package/lib/shared/domain/journey/index.d.ts.map +0 -1
- package/lib/shared/domain/journey/journey-instigator.model.d.ts +0 -5
- package/lib/shared/domain/journey/journey-instigator.model.d.ts.map +0 -1
- package/lib/shared/domain/journey/journey.model.d.ts +0 -16
- package/lib/shared/domain/journey/journey.model.d.ts.map +0 -1
- package/lib/shared/services/journey/index.d.ts +0 -2
- package/lib/shared/services/journey/index.d.ts.map +0 -1
- package/lib/shared/services/journey/multipage-component-state.service.d.ts +0 -25
- package/lib/shared/services/journey/multipage-component-state.service.d.ts.map +0 -1
|
@@ -58,7 +58,7 @@ import * as i10 from '@angular/material/legacy-tabs';
|
|
|
58
58
|
import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
59
59
|
import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
|
|
60
60
|
|
|
61
|
-
const _c0$
|
|
61
|
+
const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
62
62
|
const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
63
63
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
64
64
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
@@ -136,7 +136,7 @@ class FooterComponent {
|
|
|
136
136
|
workhours;
|
|
137
137
|
static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
138
138
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
-
i0.ɵɵprojectionDef(_c0$
|
|
139
|
+
i0.ɵɵprojectionDef(_c0$14);
|
|
140
140
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
141
141
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
142
142
|
i0.ɵɵelementEnd()();
|
|
@@ -163,7 +163,7 @@ class FooterComponent {
|
|
|
163
163
|
}] }); })();
|
|
164
164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
|
|
165
165
|
|
|
166
|
-
const _c0$
|
|
166
|
+
const _c0$13 = [[["", "headerNavigation", ""]]];
|
|
167
167
|
const _c1$t = ["[headerNavigation]"];
|
|
168
168
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
169
169
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
@@ -207,7 +207,7 @@ class HeaderBarComponent {
|
|
|
207
207
|
}
|
|
208
208
|
static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
209
209
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
210
|
-
i0.ɵɵprojectionDef(_c0$
|
|
210
|
+
i0.ɵɵprojectionDef(_c0$13);
|
|
211
211
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
212
212
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
213
213
|
i0.ɵɵelementEnd();
|
|
@@ -257,13 +257,13 @@ class HeaderBarComponent {
|
|
|
257
257
|
}] }); })();
|
|
258
258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
|
|
259
259
|
|
|
260
|
-
const _c0$
|
|
260
|
+
const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
261
|
const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
262
262
|
class NavigationComponent {
|
|
263
263
|
isSolicitor;
|
|
264
264
|
static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
265
265
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
266
|
-
i0.ɵɵprojectionDef(_c0$
|
|
266
|
+
i0.ɵɵprojectionDef(_c0$12);
|
|
267
267
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
268
268
|
i0.ɵɵprojection(2);
|
|
269
269
|
i0.ɵɵprojection(3, 1);
|
|
@@ -382,12 +382,12 @@ class HeadersModule {
|
|
|
382
382
|
}], null, null); })();
|
|
383
383
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
384
384
|
|
|
385
|
-
const _c0$
|
|
385
|
+
const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
386
386
|
const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
387
387
|
class BodyComponent {
|
|
388
388
|
static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
389
389
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
-
i0.ɵɵprojectionDef(_c0$
|
|
390
|
+
i0.ɵɵprojectionDef(_c0$11);
|
|
391
391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
392
392
|
i0.ɵɵprojection(1);
|
|
393
393
|
i0.ɵɵprojection(2, 1);
|
|
@@ -401,7 +401,7 @@ class BodyComponent {
|
|
|
401
401
|
}], null, null); })();
|
|
402
402
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 9 }); })();
|
|
403
403
|
|
|
404
|
-
const _c0$
|
|
404
|
+
const _c0$10 = a0 => ({ "govuk-input--error": a0 });
|
|
405
405
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
406
406
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
407
407
|
i0.ɵɵelementStart(0, "div", 15)(1, "label", 8);
|
|
@@ -418,7 +418,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
418
418
|
i0.ɵɵadvance();
|
|
419
419
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Hour"));
|
|
420
420
|
i0.ɵɵadvance(2);
|
|
421
|
-
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
421
|
+
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
422
422
|
} }
|
|
423
423
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
424
424
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -436,7 +436,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
436
436
|
i0.ɵɵadvance();
|
|
437
437
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Minute"));
|
|
438
438
|
i0.ɵɵadvance(2);
|
|
439
|
-
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
439
|
+
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
440
440
|
} }
|
|
441
441
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
442
442
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -454,7 +454,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
454
454
|
i0.ɵɵadvance();
|
|
455
455
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Second"));
|
|
456
456
|
i0.ɵɵadvance(2);
|
|
457
|
-
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
457
|
+
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
458
458
|
} }
|
|
459
459
|
class DateInputComponent {
|
|
460
460
|
id;
|
|
@@ -689,19 +689,19 @@ class DateInputComponent {
|
|
|
689
689
|
i0.ɵɵadvance();
|
|
690
690
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Day"));
|
|
691
691
|
i0.ɵɵadvance(2);
|
|
692
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$
|
|
692
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$10, ctx.isInvalid));
|
|
693
693
|
i0.ɵɵadvance(3);
|
|
694
694
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
695
695
|
i0.ɵɵadvance();
|
|
696
696
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Month"));
|
|
697
697
|
i0.ɵɵadvance(2);
|
|
698
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$
|
|
698
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$10, ctx.isInvalid));
|
|
699
699
|
i0.ɵɵadvance(3);
|
|
700
700
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
701
701
|
i0.ɵɵadvance();
|
|
702
702
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 25, "Year"));
|
|
703
703
|
i0.ɵɵadvance(2);
|
|
704
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$
|
|
704
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$10, ctx.isInvalid));
|
|
705
705
|
i0.ɵɵadvance(2);
|
|
706
706
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
707
707
|
i0.ɵɵadvance();
|
|
@@ -737,7 +737,7 @@ class DateInputComponent {
|
|
|
737
737
|
}] }); })();
|
|
738
738
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 20 }); })();
|
|
739
739
|
|
|
740
|
-
const _c0
|
|
740
|
+
const _c0$$ = ["*"];
|
|
741
741
|
function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
742
742
|
i0.ɵɵelementContainerStart(0);
|
|
743
743
|
i0.ɵɵnamespaceSVG();
|
|
@@ -787,7 +787,7 @@ class AlertComponent {
|
|
|
787
787
|
showIcon = true;
|
|
788
788
|
alertMessageType = AlertMessageType;
|
|
789
789
|
static ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
790
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0
|
|
790
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$$, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
791
791
|
i0.ɵɵprojectionDef();
|
|
792
792
|
i0.ɵɵelementStart(0, "div", 0);
|
|
793
793
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1000,14 +1000,14 @@ class NotificationBannerComponent {
|
|
|
1000
1000
|
}] }); })();
|
|
1001
1001
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
|
|
1002
1002
|
|
|
1003
|
-
const _c0$
|
|
1003
|
+
const _c0$_ = ["*"];
|
|
1004
1004
|
const _c1$q = a0 => ({ "js-hidden": a0 });
|
|
1005
1005
|
class TabComponent {
|
|
1006
1006
|
id;
|
|
1007
1007
|
title;
|
|
1008
1008
|
selected;
|
|
1009
1009
|
static ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1010
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$
|
|
1010
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$_, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1011
1011
|
i0.ɵɵprojectionDef();
|
|
1012
1012
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1013
1013
|
i0.ɵɵprojection(1);
|
|
@@ -1029,7 +1029,7 @@ class TabComponent {
|
|
|
1029
1029
|
}] }); })();
|
|
1030
1030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
|
|
1031
1031
|
|
|
1032
|
-
const _c0
|
|
1032
|
+
const _c0$Z = ["tab"];
|
|
1033
1033
|
const _c1$p = ["*"];
|
|
1034
1034
|
const _c2$4 = () => ["."];
|
|
1035
1035
|
const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
@@ -1076,7 +1076,7 @@ class TabsComponent {
|
|
|
1076
1076
|
let _t;
|
|
1077
1077
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1078
1078
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1079
|
-
i0.ɵɵviewQuery(_c0
|
|
1079
|
+
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
1080
1080
|
} if (rf & 2) {
|
|
1081
1081
|
let _t;
|
|
1082
1082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1135,7 +1135,7 @@ class TabsModule {
|
|
|
1135
1135
|
RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
|
|
1136
1136
|
TabComponent] }); })();
|
|
1137
1137
|
|
|
1138
|
-
const _c0$
|
|
1138
|
+
const _c0$Y = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
|
|
1139
1139
|
class ActivityBannerComponent {
|
|
1140
1140
|
bannerType;
|
|
1141
1141
|
description;
|
|
@@ -1154,7 +1154,7 @@ class ActivityBannerComponent {
|
|
|
1154
1154
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
1155
1155
|
i0.ɵɵelementEnd()();
|
|
1156
1156
|
} if (rf & 2) {
|
|
1157
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$
|
|
1157
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$Y, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1158
1158
|
i0.ɵɵadvance(2);
|
|
1159
1159
|
i0.ɵɵpropertyInterpolate("alt", i0.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1160
1160
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -7048,118 +7048,6 @@ class FormErrorService {
|
|
|
7048
7048
|
type: Injectable
|
|
7049
7049
|
}], null, null); })();
|
|
7050
7050
|
|
|
7051
|
-
class MultipageComponentStateService {
|
|
7052
|
-
//is journey at start will help keep track of the progress through the journey.
|
|
7053
|
-
isJourneyAtStart = false;
|
|
7054
|
-
//journey collection references an upto date list of all the journey components currently rendered!!!!
|
|
7055
|
-
journeyCollection = new Array();
|
|
7056
|
-
//the instigator references the case-edit-page component that will invoke the next and previous methods
|
|
7057
|
-
instigator = null;
|
|
7058
|
-
//each journey will store its state here. this could include form data if needed
|
|
7059
|
-
journeyState = new Map();
|
|
7060
|
-
//setJourneyComponent will be called by the app component to update the journey collection
|
|
7061
|
-
setJourneyCollection(journeyCollection) {
|
|
7062
|
-
this.journeyCollection = journeyCollection;
|
|
7063
|
-
}
|
|
7064
|
-
//getJourneyCollection will be called by the app component to get the journey collection
|
|
7065
|
-
getJourneyCollection() {
|
|
7066
|
-
return this.journeyCollection;
|
|
7067
|
-
}
|
|
7068
|
-
//addToJourneyCollection will be called from the journey
|
|
7069
|
-
addTojourneyCollection(journey) {
|
|
7070
|
-
this.journeyCollection.push(journey);
|
|
7071
|
-
}
|
|
7072
|
-
//resetJourneyCollection will be called
|
|
7073
|
-
resetJourneyCollection() {
|
|
7074
|
-
this.journeyCollection = [];
|
|
7075
|
-
}
|
|
7076
|
-
//setInstigator will be called by the app component to update the instigator
|
|
7077
|
-
setInstigator(instigator) {
|
|
7078
|
-
this.instigator = instigator;
|
|
7079
|
-
}
|
|
7080
|
-
//getInstigator will be called by the app component to get the instigator
|
|
7081
|
-
getInstigator() {
|
|
7082
|
-
return this.instigator;
|
|
7083
|
-
}
|
|
7084
|
-
//setJourneyState will be called by the journey component to update the journey state
|
|
7085
|
-
setJourneyState(journey) {
|
|
7086
|
-
this.journeyState.set(journey.journeyId, journey);
|
|
7087
|
-
}
|
|
7088
|
-
//getJourneyState will be called by the journey component to get the journey state
|
|
7089
|
-
getJourneyState(journey) {
|
|
7090
|
-
return this.journeyState.get(journey.journeyId) || null;
|
|
7091
|
-
}
|
|
7092
|
-
//resetJourneyState will be called by the journey component to reset the journey state
|
|
7093
|
-
resetJourneyState() {
|
|
7094
|
-
this.journeyState.clear();
|
|
7095
|
-
}
|
|
7096
|
-
//reset will be called to ensure that the entire state is reset
|
|
7097
|
-
reset() {
|
|
7098
|
-
this.isJourneyAtStart = false;
|
|
7099
|
-
this.journeyState.clear();
|
|
7100
|
-
this.instigator = null;
|
|
7101
|
-
this.journeyCollection = [];
|
|
7102
|
-
}
|
|
7103
|
-
//next will be called by the instigator that will invoke the next method of the journey component that will invoke the next method of the childpage component
|
|
7104
|
-
next() {
|
|
7105
|
-
if (this.journeyCollection.length <= 0) {
|
|
7106
|
-
this.instigator?.onFinalNext();
|
|
7107
|
-
return;
|
|
7108
|
-
}
|
|
7109
|
-
const isAnyObjectNotFinished = this.journeyCollection.some((journey) => !journey.isFinished());
|
|
7110
|
-
if (!isAnyObjectNotFinished) {
|
|
7111
|
-
this.instigator?.onFinalNext();
|
|
7112
|
-
return;
|
|
7113
|
-
}
|
|
7114
|
-
for (const journey of this.journeyCollection) {
|
|
7115
|
-
if (!journey) {
|
|
7116
|
-
continue;
|
|
7117
|
-
}
|
|
7118
|
-
if (!journey?.isFinished()) {
|
|
7119
|
-
journey?.next();
|
|
7120
|
-
break;
|
|
7121
|
-
}
|
|
7122
|
-
}
|
|
7123
|
-
}
|
|
7124
|
-
//previous will be called by the instigator that will invoke the previous method of the journey component that will invoke the previous method of the childpage component
|
|
7125
|
-
previous() {
|
|
7126
|
-
if (this.journeyCollection.length <= 0) {
|
|
7127
|
-
this.instigator?.onFinalPrevious();
|
|
7128
|
-
return;
|
|
7129
|
-
}
|
|
7130
|
-
const isAnyObjectNotAtStart = this.journeyCollection.some((journey) => !journey.isStart());
|
|
7131
|
-
if (!isAnyObjectNotAtStart) {
|
|
7132
|
-
this.instigator?.onFinalPrevious();
|
|
7133
|
-
return;
|
|
7134
|
-
}
|
|
7135
|
-
for (const journey of this.journeyCollection.slice().reverse()) {
|
|
7136
|
-
if (!journey) {
|
|
7137
|
-
continue;
|
|
7138
|
-
}
|
|
7139
|
-
if (!journey?.isStart()) {
|
|
7140
|
-
journey?.previous();
|
|
7141
|
-
break;
|
|
7142
|
-
}
|
|
7143
|
-
}
|
|
7144
|
-
}
|
|
7145
|
-
//isAtStart can be used to inform the instigator if we're at the start.
|
|
7146
|
-
get isAtStart() {
|
|
7147
|
-
return this.isJourneyAtStart;
|
|
7148
|
-
}
|
|
7149
|
-
//isAtStart can be used to update the value from a journey object, so the instigator knows.
|
|
7150
|
-
set isAtStart(isAtStart) {
|
|
7151
|
-
this.isJourneyAtStart = isAtStart;
|
|
7152
|
-
}
|
|
7153
|
-
static ɵfac = function MultipageComponentStateService_Factory(t) { return new (t || MultipageComponentStateService)(); };
|
|
7154
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MultipageComponentStateService, factory: MultipageComponentStateService.ɵfac, providedIn: 'root' });
|
|
7155
|
-
}
|
|
7156
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipageComponentStateService, [{
|
|
7157
|
-
type: Injectable,
|
|
7158
|
-
args: [{
|
|
7159
|
-
providedIn: 'root'
|
|
7160
|
-
}]
|
|
7161
|
-
}], null, null); })();
|
|
7162
|
-
|
|
7163
7051
|
class JurisdictionService {
|
|
7164
7052
|
httpService;
|
|
7165
7053
|
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
@@ -10254,24 +10142,25 @@ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10254
10142
|
function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
10255
10143
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
10256
10144
|
i0.ɵɵelementStart(0, "form", 22);
|
|
10257
|
-
i0.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.
|
|
10145
|
+
i0.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submit()); });
|
|
10258
10146
|
i0.ɵɵelementStart(1, "fieldset", 23);
|
|
10259
10147
|
i0.ɵɵelement(2, "legend", 24);
|
|
10260
10148
|
i0.ɵɵtemplate(3, CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25)(4, CaseEditPageComponent_form_10_div_4_Template, 5, 6, "div", 26);
|
|
10261
10149
|
i0.ɵɵelementEnd();
|
|
10262
10150
|
i0.ɵɵelementStart(5, "div", 27)(6, "button", 28);
|
|
10151
|
+
i0.ɵɵpipe(7, "async");
|
|
10263
10152
|
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
|
|
10264
|
-
i0.ɵɵtext(
|
|
10265
|
-
i0.ɵɵpipe(
|
|
10153
|
+
i0.ɵɵtext(8);
|
|
10154
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
10266
10155
|
i0.ɵɵelementEnd();
|
|
10267
|
-
i0.ɵɵelementStart(
|
|
10268
|
-
i0.ɵɵtext(
|
|
10269
|
-
i0.ɵɵpipe(
|
|
10156
|
+
i0.ɵɵelementStart(10, "button", 29);
|
|
10157
|
+
i0.ɵɵtext(11);
|
|
10158
|
+
i0.ɵɵpipe(12, "rpxTranslate");
|
|
10270
10159
|
i0.ɵɵelementEnd()();
|
|
10271
|
-
i0.ɵɵelementStart(
|
|
10272
|
-
i0.ɵɵlistener("click", function
|
|
10273
|
-
i0.ɵɵtext(
|
|
10274
|
-
i0.ɵɵpipe(
|
|
10160
|
+
i0.ɵɵelementStart(13, "p", 30)(14, "a", 31);
|
|
10161
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_14_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
|
|
10162
|
+
i0.ɵɵtext(15);
|
|
10163
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
10275
10164
|
i0.ɵɵelementEnd()()();
|
|
10276
10165
|
} if (rf & 2) {
|
|
10277
10166
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10281,15 +10170,15 @@ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10281
10170
|
i0.ɵɵadvance();
|
|
10282
10171
|
i0.ɵɵproperty("ngIf", ctx_r1.currentPage.isMultiColumn());
|
|
10283
10172
|
i0.ɵɵadvance(2);
|
|
10284
|
-
i0.ɵɵproperty("disabled", ctx_r1.
|
|
10285
|
-
i0.ɵɵadvance();
|
|
10286
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
10173
|
+
i0.ɵɵproperty("disabled", !i0.ɵɵpipeBind1(7, 8, ctx_r1.hasPreviousPage$));
|
|
10174
|
+
i0.ɵɵadvance(2);
|
|
10175
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "Previous"), " ");
|
|
10287
10176
|
i0.ɵɵadvance(2);
|
|
10288
10177
|
i0.ɵɵproperty("disabled", ctx_r1.submitting());
|
|
10289
10178
|
i0.ɵɵadvance();
|
|
10290
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10179
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, ctx_r1.triggerText));
|
|
10291
10180
|
i0.ɵɵadvance(4);
|
|
10292
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10181
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 14, ctx_r1.getCancelText()));
|
|
10293
10182
|
} }
|
|
10294
10183
|
function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
|
|
10295
10184
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -10312,7 +10201,6 @@ class CaseEditPageComponent {
|
|
|
10312
10201
|
caseEditDataService;
|
|
10313
10202
|
loadingService;
|
|
10314
10203
|
validPageListCaseFieldsService;
|
|
10315
|
-
multipageComponentStateService;
|
|
10316
10204
|
addressService;
|
|
10317
10205
|
static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
10318
10206
|
static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
@@ -10354,7 +10242,7 @@ class CaseEditPageComponent {
|
|
|
10354
10242
|
topContainer.focus();
|
|
10355
10243
|
}
|
|
10356
10244
|
}
|
|
10357
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService,
|
|
10245
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, addressService) {
|
|
10358
10246
|
this.caseEdit = caseEdit;
|
|
10359
10247
|
this.route = route;
|
|
10360
10248
|
this.formValueService = formValueService;
|
|
@@ -10366,26 +10254,7 @@ class CaseEditPageComponent {
|
|
|
10366
10254
|
this.caseEditDataService = caseEditDataService;
|
|
10367
10255
|
this.loadingService = loadingService;
|
|
10368
10256
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10369
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
10370
10257
|
this.addressService = addressService;
|
|
10371
|
-
this.multipageComponentStateService.setInstigator(this);
|
|
10372
|
-
}
|
|
10373
|
-
onFinalNext() {
|
|
10374
|
-
this.submit();
|
|
10375
|
-
}
|
|
10376
|
-
onFinalPrevious() {
|
|
10377
|
-
this.cancel();
|
|
10378
|
-
}
|
|
10379
|
-
isAtStart() {
|
|
10380
|
-
return this.multipageComponentStateService.isAtStart;
|
|
10381
|
-
}
|
|
10382
|
-
// This method will be triggered by the next button in the app component
|
|
10383
|
-
nextStep() {
|
|
10384
|
-
this.multipageComponentStateService.next();
|
|
10385
|
-
}
|
|
10386
|
-
// This method will be triggered by the previous button in the app component
|
|
10387
|
-
previousStep() {
|
|
10388
|
-
this.multipageComponentStateService.previous();
|
|
10389
10258
|
}
|
|
10390
10259
|
ngOnInit() {
|
|
10391
10260
|
initDialog();
|
|
@@ -10444,7 +10313,6 @@ class CaseEditPageComponent {
|
|
|
10444
10313
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
10445
10314
|
this.saveDraftSub?.unsubscribe();
|
|
10446
10315
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
10447
|
-
this.multipageComponentStateService.reset();
|
|
10448
10316
|
}
|
|
10449
10317
|
applyValuesChanged(valuesChanged) {
|
|
10450
10318
|
this.formValuesChanged = valuesChanged;
|
|
@@ -10471,7 +10339,6 @@ class CaseEditPageComponent {
|
|
|
10471
10339
|
caseEventData.data = caseEventData.event_data;
|
|
10472
10340
|
this.updateFormData(caseEventData);
|
|
10473
10341
|
this.previous();
|
|
10474
|
-
this.previousStep();
|
|
10475
10342
|
CaseEditPageComponent.setFocusToTop();
|
|
10476
10343
|
}
|
|
10477
10344
|
// Adding validation message to show it as Error Summary
|
|
@@ -10748,7 +10615,6 @@ class CaseEditPageComponent {
|
|
|
10748
10615
|
this.caseEdit.cancelled.emit();
|
|
10749
10616
|
}
|
|
10750
10617
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10751
|
-
this.multipageComponentStateService.reset();
|
|
10752
10618
|
}
|
|
10753
10619
|
submitting() {
|
|
10754
10620
|
return this.caseEdit.isSubmitting;
|
|
@@ -10901,7 +10767,7 @@ class CaseEditPageComponent {
|
|
|
10901
10767
|
}
|
|
10902
10768
|
});
|
|
10903
10769
|
}
|
|
10904
|
-
static ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(
|
|
10770
|
+
static ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(AddressesService)); };
|
|
10905
10771
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "submit", "formGroup"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10906
10772
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
10907
10773
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 2)(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 3)(2, CaseEditPageComponent_ng_template_2_Template, 2, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(6, CaseEditPageComponent_div_6_Template, 5, 4, "div", 4);
|
|
@@ -10910,7 +10776,7 @@ class CaseEditPageComponent {
|
|
|
10910
10776
|
i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
|
|
10911
10777
|
i0.ɵɵelementEnd();
|
|
10912
10778
|
i0.ɵɵelementStart(9, "div", 7);
|
|
10913
|
-
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template,
|
|
10779
|
+
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 17, 16, "form", 8);
|
|
10914
10780
|
i0.ɵɵelementEnd();
|
|
10915
10781
|
i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
10916
10782
|
} if (rf & 2) {
|
|
@@ -10933,9 +10799,9 @@ class CaseEditPageComponent {
|
|
|
10933
10799
|
}
|
|
10934
10800
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
10935
10801
|
type: Component,
|
|
10936
|
-
args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\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: caseFields : 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<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"
|
|
10937
|
-
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type:
|
|
10938
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber:
|
|
10802
|
+
args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\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: caseFields : 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<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
10803
|
+
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: AddressesService }], null); })();
|
|
10804
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 31 }); })();
|
|
10939
10805
|
|
|
10940
10806
|
class CallbackErrorsContext {
|
|
10941
10807
|
triggerText;
|
|
@@ -11084,7 +10950,7 @@ class CallbackErrorsComponent {
|
|
|
11084
10950
|
}] }); })();
|
|
11085
10951
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CallbackErrorsComponent, { className: "CallbackErrorsComponent", filePath: "lib/shared/components/error/callback-errors.component.ts", lineNumber: 10 }); })();
|
|
11086
10952
|
|
|
11087
|
-
const _c0$
|
|
10953
|
+
const _c0$X = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11088
10954
|
class CaseEventCompletionTaskCancelledComponent {
|
|
11089
10955
|
parentComponent;
|
|
11090
10956
|
caseId;
|
|
@@ -11147,7 +11013,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11147
11013
|
i0.ɵɵadvance(4);
|
|
11148
11014
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
11149
11015
|
i0.ɵɵadvance(2);
|
|
11150
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$
|
|
11016
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$X, ctx.caseId));
|
|
11151
11017
|
i0.ɵɵadvance();
|
|
11152
11018
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
11153
11019
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -11161,7 +11027,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11161
11027
|
}] }], null); })();
|
|
11162
11028
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionTaskCancelledComponent, { className: "CaseEventCompletionTaskCancelledComponent", filePath: "lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts", lineNumber: 8 }); })();
|
|
11163
11029
|
|
|
11164
|
-
const _c0$
|
|
11030
|
+
const _c0$W = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11165
11031
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11166
11032
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11167
11033
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -11214,7 +11080,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
11214
11080
|
i0.ɵɵadvance(4);
|
|
11215
11081
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
11216
11082
|
i0.ɵɵadvance(2);
|
|
11217
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$
|
|
11083
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$W, ctx_r1.caseId));
|
|
11218
11084
|
i0.ɵɵadvance();
|
|
11219
11085
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
11220
11086
|
} }
|
|
@@ -11686,7 +11552,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11686
11552
|
}] }); })();
|
|
11687
11553
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11688
11554
|
|
|
11689
|
-
const _c0$
|
|
11555
|
+
const _c0$V = ["writeComplexFieldComponent"];
|
|
11690
11556
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
11691
11557
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11692
11558
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11928,7 +11794,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11928
11794
|
}
|
|
11929
11795
|
static ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
11930
11796
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11931
|
-
i0.ɵɵviewQuery(_c0$
|
|
11797
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
11932
11798
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
11933
11799
|
} if (rf & 2) {
|
|
11934
11800
|
let _t;
|
|
@@ -11991,172 +11857,6 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
11991
11857
|
type: Input
|
|
11992
11858
|
}] }); })();
|
|
11993
11859
|
|
|
11994
|
-
const _c0$W = ["journeyChild"];
|
|
11995
|
-
class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
11996
|
-
multipageComponentStateService;
|
|
11997
|
-
journeyStartPageNumber = 0;
|
|
11998
|
-
journeyEndPageNumber = 0;
|
|
11999
|
-
journeyPageNumber = 0;
|
|
12000
|
-
journeyPreviousPageNumber = 0;
|
|
12001
|
-
journeyId = 'journey';
|
|
12002
|
-
// todo...
|
|
12003
|
-
childJourney;
|
|
12004
|
-
constructor(multipageComponentStateService) {
|
|
12005
|
-
super();
|
|
12006
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
12007
|
-
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12008
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12009
|
-
}
|
|
12010
|
-
next() {
|
|
12011
|
-
if (!this.hasNext()) {
|
|
12012
|
-
return;
|
|
12013
|
-
}
|
|
12014
|
-
this.childJourney.next();
|
|
12015
|
-
}
|
|
12016
|
-
previous() {
|
|
12017
|
-
if (!this.hasPrevious()) {
|
|
12018
|
-
return;
|
|
12019
|
-
}
|
|
12020
|
-
if (this.childJourney['cachedFlagType'] && this.childJourney['subJourneyIndex'] !== 0) {
|
|
12021
|
-
this.childJourney.previous();
|
|
12022
|
-
}
|
|
12023
|
-
else {
|
|
12024
|
-
this.previousPage();
|
|
12025
|
-
}
|
|
12026
|
-
}
|
|
12027
|
-
previousPage() {
|
|
12028
|
-
if (this.hasPrevious()) {
|
|
12029
|
-
this.journeyPageNumber--;
|
|
12030
|
-
this.onPageChange();
|
|
12031
|
-
}
|
|
12032
|
-
}
|
|
12033
|
-
nextPage() {
|
|
12034
|
-
if (this.hasNext()) {
|
|
12035
|
-
this.journeyPageNumber++;
|
|
12036
|
-
this.onPageChange();
|
|
12037
|
-
}
|
|
12038
|
-
}
|
|
12039
|
-
ngOnInit() {
|
|
12040
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12041
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12042
|
-
if (state) {
|
|
12043
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12044
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
12045
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12046
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12047
|
-
}
|
|
12048
|
-
}
|
|
12049
|
-
ngOnDestroy() {
|
|
12050
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
12051
|
-
}
|
|
12052
|
-
hasNext() { return this.journeyPageNumber < this.journeyEndPageNumber; }
|
|
12053
|
-
;
|
|
12054
|
-
hasPrevious() { return this.journeyPageNumber > this.journeyStartPageNumber; }
|
|
12055
|
-
;
|
|
12056
|
-
isFinished() { return this.journeyPageNumber === this.journeyEndPageNumber; }
|
|
12057
|
-
;
|
|
12058
|
-
isStart() { return this.journeyPageNumber === this.journeyStartPageNumber; }
|
|
12059
|
-
;
|
|
12060
|
-
getId() { return this.journeyId; }
|
|
12061
|
-
;
|
|
12062
|
-
onPageChange() { }
|
|
12063
|
-
;
|
|
12064
|
-
static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(t) { return new (t || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12065
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12066
|
-
i0.ɵɵviewQuery(_c0$W, 5);
|
|
12067
|
-
} if (rf & 2) {
|
|
12068
|
-
let _t;
|
|
12069
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12070
|
-
} }, inputs: { journeyId: "journeyId" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
12071
|
-
}
|
|
12072
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldWriteJourneyComponent, [{
|
|
12073
|
-
type: Directive
|
|
12074
|
-
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12075
|
-
type: Input
|
|
12076
|
-
}], childJourney: [{
|
|
12077
|
-
type: ViewChild,
|
|
12078
|
-
args: ['journeyChild']
|
|
12079
|
-
}] }); })();
|
|
12080
|
-
|
|
12081
|
-
const _c0$V = ["journeyChild"];
|
|
12082
|
-
class AbstractJourneyComponent {
|
|
12083
|
-
multipageComponentStateService;
|
|
12084
|
-
journeyStartPageNumber = 0;
|
|
12085
|
-
journeyEndPageNumber = 0;
|
|
12086
|
-
journeyPageNumber = 0;
|
|
12087
|
-
journeyPreviousPageNumber;
|
|
12088
|
-
journeyId = 'journey';
|
|
12089
|
-
// todo...
|
|
12090
|
-
childJourney;
|
|
12091
|
-
constructor(multipageComponentStateService) {
|
|
12092
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
12093
|
-
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12094
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12095
|
-
}
|
|
12096
|
-
next() {
|
|
12097
|
-
if (!this.hasNext()) {
|
|
12098
|
-
return;
|
|
12099
|
-
}
|
|
12100
|
-
this.childJourney.next();
|
|
12101
|
-
}
|
|
12102
|
-
previous() {
|
|
12103
|
-
if (!this.hasPrevious()) {
|
|
12104
|
-
return;
|
|
12105
|
-
}
|
|
12106
|
-
this.previousPage();
|
|
12107
|
-
}
|
|
12108
|
-
previousPage() {
|
|
12109
|
-
if (this.hasPrevious()) {
|
|
12110
|
-
this.journeyPageNumber--;
|
|
12111
|
-
}
|
|
12112
|
-
}
|
|
12113
|
-
ngOnInit() {
|
|
12114
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12115
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12116
|
-
console.log(this.journeyPageNumber);
|
|
12117
|
-
if (state) {
|
|
12118
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12119
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
12120
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12121
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12122
|
-
}
|
|
12123
|
-
}
|
|
12124
|
-
ngOnDestroy() {
|
|
12125
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
12126
|
-
}
|
|
12127
|
-
hasNext() {
|
|
12128
|
-
return this.journeyPageNumber < this.journeyEndPageNumber;
|
|
12129
|
-
}
|
|
12130
|
-
hasPrevious() {
|
|
12131
|
-
return this.journeyPageNumber > this.journeyStartPageNumber;
|
|
12132
|
-
}
|
|
12133
|
-
isFinished() {
|
|
12134
|
-
return this.journeyPageNumber === this.journeyEndPageNumber;
|
|
12135
|
-
}
|
|
12136
|
-
isStart() {
|
|
12137
|
-
return this.journeyPageNumber === this.journeyStartPageNumber;
|
|
12138
|
-
}
|
|
12139
|
-
getId() {
|
|
12140
|
-
return this.journeyId;
|
|
12141
|
-
}
|
|
12142
|
-
onPageChange() { }
|
|
12143
|
-
static ɵfac = function AbstractJourneyComponent_Factory(t) { return new (t || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12144
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12145
|
-
i0.ɵɵviewQuery(_c0$V, 5);
|
|
12146
|
-
} if (rf & 2) {
|
|
12147
|
-
let _t;
|
|
12148
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12149
|
-
} }, inputs: { journeyId: "journeyId" } });
|
|
12150
|
-
}
|
|
12151
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractJourneyComponent, [{
|
|
12152
|
-
type: Directive
|
|
12153
|
-
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12154
|
-
type: Input
|
|
12155
|
-
}], childJourney: [{
|
|
12156
|
-
type: ViewChild,
|
|
12157
|
-
args: ['journeyChild']
|
|
12158
|
-
}] }); })();
|
|
12159
|
-
|
|
12160
11860
|
var DisplayContextParameter;
|
|
12161
11861
|
(function (DisplayContextParameter) {
|
|
12162
11862
|
DisplayContextParameter["Read"] = "READ";
|
|
@@ -12616,7 +12316,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
12616
12316
|
|
|
12617
12317
|
function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
12618
12318
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12619
|
-
i0.ɵɵelementStart(0, "div",
|
|
12319
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "ul", 6)(2, "li")(3, "a", 7);
|
|
12620
12320
|
i0.ɵɵlistener("click", function WriteCaseFlagFieldComponent_div_0_div_4_Template_a_click_3_listener() { const errorMessage_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.navigateToErrorElement(errorMessage_r2.fieldId)); });
|
|
12621
12321
|
i0.ɵɵtext(4);
|
|
12622
12322
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -12627,11 +12327,11 @@ function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
12627
12327
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, errorMessage_r2.description));
|
|
12628
12328
|
} }
|
|
12629
12329
|
function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12630
|
-
i0.ɵɵelementStart(0, "div",
|
|
12330
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
|
|
12631
12331
|
i0.ɵɵtext(2);
|
|
12632
12332
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
12633
12333
|
i0.ɵɵelementEnd();
|
|
12634
|
-
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div",
|
|
12334
|
+
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 4);
|
|
12635
12335
|
i0.ɵɵelementEnd();
|
|
12636
12336
|
} if (rf & 2) {
|
|
12637
12337
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12643,7 +12343,7 @@ function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12643
12343
|
function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12644
12344
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
12645
12345
|
i0.ɵɵelementContainerStart(0);
|
|
12646
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-location",
|
|
12346
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-location", 11);
|
|
12647
12347
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template_ccd_select_flag_location_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12648
12348
|
i0.ɵɵelementEnd();
|
|
12649
12349
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12655,7 +12355,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if
|
|
|
12655
12355
|
function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12656
12356
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
12657
12357
|
i0.ɵɵelementContainerStart(0);
|
|
12658
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-type",
|
|
12358
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-type", 12);
|
|
12659
12359
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template_ccd_select_flag_type_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); })("flagCommentsOptionalEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template_ccd_select_flag_type_flagCommentsOptionalEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onFlagCommentsOptionalEmitted($event)); });
|
|
12660
12360
|
i0.ɵɵelementEnd();
|
|
12661
12361
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12667,7 +12367,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if
|
|
|
12667
12367
|
function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12668
12368
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
12669
12369
|
i0.ɵɵelementContainerStart(0);
|
|
12670
|
-
i0.ɵɵelementStart(1, "ccd-search-language-interpreter",
|
|
12370
|
+
i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 13);
|
|
12671
12371
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template_ccd_search_language_interpreter_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12672
12372
|
i0.ɵɵelementEnd();
|
|
12673
12373
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12679,7 +12379,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if
|
|
|
12679
12379
|
function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
12680
12380
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
12681
12381
|
i0.ɵɵelementContainerStart(0);
|
|
12682
|
-
i0.ɵɵelementStart(1, "ccd-add-comments",
|
|
12382
|
+
i0.ɵɵelementStart(1, "ccd-add-comments", 14);
|
|
12683
12383
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_add_comments_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12684
12384
|
i0.ɵɵelementEnd();
|
|
12685
12385
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12691,7 +12391,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if
|
|
|
12691
12391
|
function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
12692
12392
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
12693
12393
|
i0.ɵɵelementContainerStart(0);
|
|
12694
|
-
i0.ɵɵelementStart(1, "ccd-confirm-flag-status",
|
|
12394
|
+
i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 15);
|
|
12695
12395
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template_ccd_confirm_flag_status_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12696
12396
|
i0.ɵɵelementEnd();
|
|
12697
12397
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12701,8 +12401,8 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
|
|
|
12701
12401
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup)("defaultStatus", ctx_r2.flagType.defaultStatus);
|
|
12702
12402
|
} }
|
|
12703
12403
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12704
|
-
i0.ɵɵelementStart(0, "div",
|
|
12705
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template,
|
|
12404
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12405
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 2, 3, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 7, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 2, 2, "ng-container", 10)(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 4, "ng-container", 10)(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 2, "ng-container", 10);
|
|
12706
12406
|
i0.ɵɵelementEnd()();
|
|
12707
12407
|
} if (rf & 2) {
|
|
12708
12408
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12723,7 +12423,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12723
12423
|
function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12724
12424
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
12725
12425
|
i0.ɵɵelementContainerStart(0);
|
|
12726
|
-
i0.ɵɵelementStart(1, "ccd-manage-case-flags",
|
|
12426
|
+
i0.ɵɵelementStart(1, "ccd-manage-case-flags", 16);
|
|
12727
12427
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template_ccd_manage_case_flags_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12728
12428
|
i0.ɵɵelementEnd();
|
|
12729
12429
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12735,7 +12435,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if
|
|
|
12735
12435
|
function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12736
12436
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12737
12437
|
i0.ɵɵelementContainerStart(0);
|
|
12738
|
-
i0.ɵɵelementStart(1, "ccd-update-flag",
|
|
12438
|
+
i0.ɵɵelementStart(1, "ccd-update-flag", 17);
|
|
12739
12439
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template_ccd_update_flag_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12740
12440
|
i0.ɵɵelementEnd();
|
|
12741
12441
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12747,7 +12447,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if
|
|
|
12747
12447
|
function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12748
12448
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
12749
12449
|
i0.ɵɵelementContainerStart(0);
|
|
12750
|
-
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form",
|
|
12450
|
+
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 18);
|
|
12751
12451
|
i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template_ccd_update_flag_add_translation_form_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
|
|
12752
12452
|
i0.ɵɵelementEnd();
|
|
12753
12453
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12757,8 +12457,8 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if
|
|
|
12757
12457
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup);
|
|
12758
12458
|
} }
|
|
12759
12459
|
function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12760
|
-
i0.ɵɵelementStart(0, "div",
|
|
12761
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template,
|
|
12460
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12461
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template, 2, 4, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_2_ng_container_3_Template, 2, 2, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_2_ng_container_4_Template, 2, 1, "ng-container", 10);
|
|
12762
12462
|
i0.ɵɵelementEnd()();
|
|
12763
12463
|
} if (rf & 2) {
|
|
12764
12464
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12772,12 +12472,11 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12772
12472
|
i0.ɵɵadvance();
|
|
12773
12473
|
i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION);
|
|
12774
12474
|
} }
|
|
12775
|
-
class WriteCaseFlagFieldComponent extends
|
|
12475
|
+
class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
12776
12476
|
route;
|
|
12777
12477
|
caseEditDataService;
|
|
12778
12478
|
caseFlagStateService;
|
|
12779
12479
|
rpxTranslationService;
|
|
12780
|
-
//public formGroup: FormGroup;
|
|
12781
12480
|
fieldState;
|
|
12782
12481
|
caseFlagFieldState = CaseFlagFieldState;
|
|
12783
12482
|
errorMessages = [];
|
|
@@ -12811,26 +12510,24 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12811
12510
|
this.caseFlagParentFormGroup.value.selectedLocation = selectedLocation;
|
|
12812
12511
|
}
|
|
12813
12512
|
}
|
|
12814
|
-
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService
|
|
12815
|
-
super(
|
|
12513
|
+
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService) {
|
|
12514
|
+
super();
|
|
12816
12515
|
this.route = route;
|
|
12817
12516
|
this.caseEditDataService = caseEditDataService;
|
|
12818
12517
|
this.caseFlagStateService = caseFlagStateService;
|
|
12819
12518
|
this.rpxTranslationService = rpxTranslationService;
|
|
12820
12519
|
}
|
|
12821
12520
|
ngOnInit() {
|
|
12822
|
-
let navigatedTo = false;
|
|
12823
12521
|
// If it is start of the journey or navigation from check your answers page then fieldStateToNavigate property
|
|
12824
12522
|
// in case flag state service will contain the field state to navigate based on create or manage journey
|
|
12825
12523
|
this.fieldState = this.caseFlagStateService.fieldStateToNavigate;
|
|
12826
|
-
if (this.fieldState === undefined
|
|
12524
|
+
if (this.fieldState === undefined ||
|
|
12525
|
+
this.fieldState === CaseFlagFieldState.FLAG_LOCATION ||
|
|
12526
|
+
this.fieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS) {
|
|
12827
12527
|
const params = this.route.snapshot.params;
|
|
12828
12528
|
// Clear the form group, field state to navigate and set the page location
|
|
12829
12529
|
this.caseFlagStateService.resetCache(`../${params['eid']}/${params['page']}`);
|
|
12830
12530
|
}
|
|
12831
|
-
else {
|
|
12832
|
-
navigatedTo = true;
|
|
12833
|
-
}
|
|
12834
12531
|
// Reassign the form group from the case flag state service
|
|
12835
12532
|
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
12836
12533
|
// Clear form validation errors as a new page will be rendered based on field state
|
|
@@ -12892,45 +12589,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12892
12589
|
});
|
|
12893
12590
|
}
|
|
12894
12591
|
}
|
|
12895
|
-
// CSFD-16.
|
|
12896
|
-
// Setup the page number to initially be the same value as
|
|
12897
|
-
// the start page number. Provided that some state exists within
|
|
12898
|
-
// the page state service, use that instaead.
|
|
12899
|
-
//
|
|
12900
|
-
// If isDisplayContextParameterUpdate is true, then the starting page must be
|
|
12901
|
-
// the value of 4. Otherwise, it's 0. However, we're using an enum to simplify
|
|
12902
|
-
// this process.
|
|
12903
|
-
//
|
|
12904
|
-
// It might help to take a look at the template file.
|
|
12905
|
-
if (this.isDisplayContextParameterUpdate) {
|
|
12906
|
-
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS;
|
|
12907
|
-
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
|
|
12908
|
-
}
|
|
12909
|
-
else {
|
|
12910
|
-
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_LOCATION;
|
|
12911
|
-
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_STATUS;
|
|
12912
|
-
}
|
|
12913
|
-
// Now that we've set the start page number, let's set the current page number.
|
|
12914
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12915
|
-
// If we've navigated to this page, then we know by default, we want to set the
|
|
12916
|
-
// journey page number to the field state.
|
|
12917
|
-
if (navigatedTo) {
|
|
12918
|
-
this.journeyPageNumber = this.fieldState;
|
|
12919
|
-
this.journeyPreviousPageNumber = this.journeyEndPageNumber++;
|
|
12920
|
-
}
|
|
12921
|
-
// Provided we have some stored state, i.e. when going backwards, we want
|
|
12922
|
-
// to get the last visited page, etc.
|
|
12923
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12924
|
-
if (state) {
|
|
12925
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12926
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
12927
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12928
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12929
|
-
}
|
|
12930
|
-
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
12931
|
-
}
|
|
12932
|
-
onPageChange() {
|
|
12933
|
-
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
12934
12592
|
}
|
|
12935
12593
|
setDisplayContextParameterUpdate(displayContextParameter) {
|
|
12936
12594
|
return displayContextParameter === CaseFlagDisplayContextParameter.UPDATE ||
|
|
@@ -12986,7 +12644,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12986
12644
|
}
|
|
12987
12645
|
proceedToNextState() {
|
|
12988
12646
|
if (!this.isAtFinalState()) {
|
|
12989
|
-
this.journeyPreviousPageNumber = this.fieldState;
|
|
12990
12647
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
12991
12648
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
12992
12649
|
// selection
|
|
@@ -12996,7 +12653,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12996
12653
|
else {
|
|
12997
12654
|
this.fieldState++;
|
|
12998
12655
|
}
|
|
12999
|
-
this.nextPage();
|
|
13000
12656
|
}
|
|
13001
12657
|
}
|
|
13002
12658
|
setFlagsCaseFieldValue() {
|
|
@@ -13015,16 +12671,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13015
12671
|
break;
|
|
13016
12672
|
}
|
|
13017
12673
|
}
|
|
13018
|
-
previousPage() {
|
|
13019
|
-
this.journeyPreviousPageNumber = this.fieldState;
|
|
13020
|
-
if (this.hasPrevious() && this.fieldState === CaseFlagFieldState.FLAG_COMMENTS && !this.flagType?.listOfValues) {
|
|
13021
|
-
this.fieldState = CaseFlagFieldState.FLAG_TYPE;
|
|
13022
|
-
}
|
|
13023
|
-
else if (this.hasPrevious()) {
|
|
13024
|
-
this.fieldState--;
|
|
13025
|
-
}
|
|
13026
|
-
super.previousPage();
|
|
13027
|
-
}
|
|
13028
12674
|
addFlagToCollection() {
|
|
13029
12675
|
// Ensure no more than one new flag is being added at a time, by iterating through each Flags case field and removing
|
|
13030
12676
|
// any previous entry from the details array where that entry has no id (hence it is new - and there should be only
|
|
@@ -13323,7 +12969,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13323
12969
|
}
|
|
13324
12970
|
}
|
|
13325
12971
|
ngOnDestroy() {
|
|
13326
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
13327
12972
|
// Reset the fieldstateToNavigate as the write journey completes at this point
|
|
13328
12973
|
this.caseFlagStateService.fieldStateToNavigate = undefined;
|
|
13329
12974
|
this.caseTitleSubscription?.unsubscribe();
|
|
@@ -13335,9 +12980,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13335
12980
|
setDisplayContextParameter(caseFields) {
|
|
13336
12981
|
return caseFields.find(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']))?.display_context_parameter;
|
|
13337
12982
|
}
|
|
13338
|
-
static ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(i1.RpxTranslationService)
|
|
13339
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["
|
|
13340
|
-
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div",
|
|
12983
|
+
static ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
12984
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "isDisplayContextParameterExternal"], [3, "caseFlagStateEmitter", "flagCommentsOptionalEmitter", "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled", "selectedFlagsLocation"], [3, "caseFlagStateEmitter", "formGroup", "flagType"], [3, "caseFlagStateEmitter", "formGroup", "optional", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled"], [3, "caseFlagStateEmitter", "formGroup", "defaultStatus"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "caseTitle", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12985
|
+
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 0)(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 1)(2, WriteCaseFlagFieldComponent_div_2_Template, 5, 5, "div", 1);
|
|
13341
12986
|
} if (rf & 2) {
|
|
13342
12987
|
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
13343
12988
|
i0.ɵɵadvance();
|
|
@@ -13348,9 +12993,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13348
12993
|
}
|
|
13349
12994
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseFlagFieldComponent, [{
|
|
13350
12995
|
type: Component,
|
|
13351
|
-
args: [{ selector: 'ccd-write-case-flag-field', template: "<!-- Error message summary -->\n<div *ngIf=\"errorMessages.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\"
|
|
13352
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }
|
|
13353
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber:
|
|
12996
|
+
args: [{ selector: 'ccd-write-case-flag-field', template: "<!-- Error message summary -->\n<div *ngIf=\"errorMessages.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let errorMessage of errorMessages\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(errorMessage.fieldId)\" class=\"validation-error\">{{errorMessage.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"!isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LOCATION\">\n <ccd-select-flag-location\n [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n ></ccd-select-flag-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_TYPE\">\n <ccd-select-flag-type [formGroup]=\"caseFlagParentFormGroup\" [jurisdiction]=\"jurisdiction\" [caseTypeId]=\"caseTypeId\"\n [hmctsServiceId]=\"hmctsServiceId\" [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n [selectedFlagsLocation]=\"selectedFlagsLocation\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n (flagCommentsOptionalEmitter)=\"onFlagCommentsOptionalEmitted($event)\"></ccd-select-flag-type>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER\">\n <ccd-search-language-interpreter [formGroup]=\"caseFlagParentFormGroup\"\n [flagType]=\"flagType\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-search-language-interpreter>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_COMMENTS\">\n <ccd-add-comments [formGroup]=\"caseFlagParentFormGroup\" [optional]=\"flagCommentsOptional\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\">\n </ccd-add-comments>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_STATUS\">\n <ccd-confirm-flag-status [formGroup]=\"caseFlagParentFormGroup\" [defaultStatus]=\"flagType.defaultStatus\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-confirm-flag-status>\n </ng-container>\n </div>\n</div>\n<div *ngIf=\"isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS\">\n <ccd-manage-case-flags [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\" [caseTitle]=\"caseTitle\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-manage-case-flags>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE\">\n <ccd-update-flag [formGroup]=\"caseFlagParentFormGroup\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-update-flag>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION\">\n <ccd-update-flag-add-translation-form\n [formGroup]=\"caseFlagParentFormGroup\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n ></ccd-update-flag-add-translation-form>\n </ng-container>\n </div>\n</div>\n", styles: [".validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
12997
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }], null); })();
|
|
12998
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber: 20 }); })();
|
|
13354
12999
|
|
|
13355
13000
|
class CaseReferencePipe {
|
|
13356
13001
|
transform(caseReference) {
|
|
@@ -16248,7 +15893,7 @@ function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
16248
15893
|
i0.ɵɵproperty("ngIf", ctx_r1.serverLinkedApiError);
|
|
16249
15894
|
} }
|
|
16250
15895
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
16251
|
-
i0.ɵɵelementStart(0, "div",
|
|
15896
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "p", 3);
|
|
16252
15897
|
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
16253
15898
|
i0.ɵɵelementEnd();
|
|
16254
15899
|
i0.ɵɵelementStart(3, "p", 3);
|
|
@@ -16256,16 +15901,20 @@ function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
16256
15901
|
i0.ɵɵelementEnd()();
|
|
16257
15902
|
} }
|
|
16258
15903
|
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16259
|
-
i0.ɵɵelementStart(0, "div",
|
|
15904
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "p", 3);
|
|
16260
15905
|
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
16261
15906
|
i0.ɵɵelementEnd()();
|
|
16262
15907
|
} }
|
|
16263
15908
|
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
15909
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
16264
15910
|
i0.ɵɵelementStart(0, "div")(1, "h1", 1);
|
|
16265
15911
|
i0.ɵɵtext(2, "Before you start");
|
|
16266
15912
|
i0.ɵɵelementEnd();
|
|
16267
15913
|
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7)(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
16268
|
-
i0.ɵɵ
|
|
15914
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "button", 10);
|
|
15915
|
+
i0.ɵɵlistener("click", function BeforeYouStartComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNext()); });
|
|
15916
|
+
i0.ɵɵtext(7, "Next");
|
|
15917
|
+
i0.ɵɵelementEnd()()();
|
|
16269
15918
|
} if (rf & 2) {
|
|
16270
15919
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16271
15920
|
i0.ɵɵadvance(3);
|
|
@@ -16273,15 +15922,14 @@ function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
16273
15922
|
i0.ɵɵadvance();
|
|
16274
15923
|
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
16275
15924
|
} }
|
|
16276
|
-
class BeforeYouStartComponent
|
|
15925
|
+
class BeforeYouStartComponent {
|
|
16277
15926
|
router;
|
|
16278
15927
|
linkedCasesService;
|
|
16279
15928
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16280
15929
|
isLinkCasesJourney = false;
|
|
16281
15930
|
errorMessages;
|
|
16282
15931
|
serverLinkedApiError;
|
|
16283
|
-
constructor(router, linkedCasesService
|
|
16284
|
-
super(multipageComponentStateService);
|
|
15932
|
+
constructor(router, linkedCasesService) {
|
|
16285
15933
|
this.router = router;
|
|
16286
15934
|
this.linkedCasesService = linkedCasesService;
|
|
16287
15935
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
@@ -16298,22 +15946,13 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16298
15946
|
navigateToNextPage: true
|
|
16299
15947
|
});
|
|
16300
15948
|
}
|
|
16301
|
-
next() {
|
|
16302
|
-
this.onNext();
|
|
16303
|
-
const isAnArray = Array.isArray(this.errorMessages);
|
|
16304
|
-
const isNotAnArray = !isAnArray;
|
|
16305
|
-
const isValid = (isAnArray && this.errorMessages.length === 0) || isNotAnArray;
|
|
16306
|
-
if (isValid) {
|
|
16307
|
-
super.next();
|
|
16308
|
-
}
|
|
16309
|
-
}
|
|
16310
15949
|
onBack() {
|
|
16311
15950
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
16312
15951
|
}
|
|
16313
|
-
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
16314
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" },
|
|
15952
|
+
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
15953
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 3, vars: 2, consts: [[4, "ngIf"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "link-cases-journey", 4, "ngIf"], ["id", "manage-link-cases-journey", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16315
15954
|
i0.ɵɵelementStart(0, "div");
|
|
16316
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template,
|
|
15955
|
+
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
16317
15956
|
i0.ɵɵelementEnd();
|
|
16318
15957
|
} if (rf & 2) {
|
|
16319
15958
|
i0.ɵɵadvance();
|
|
@@ -16324,11 +15963,11 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16324
15963
|
}
|
|
16325
15964
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
16326
15965
|
type: Component,
|
|
16327
|
-
args: [{ selector: 'ccd-linked-cases-before-you-start', template: "<div>\n <div *ngIf=\"serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"serverLinkedApiError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n </div>\n <div *ngIf=\"!serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">Before you start</h1>\n <div id=\"link-cases-journey\" *ngIf=\"isLinkCasesJourney\">\n <p class=\"govuk-body\">If a group of linked cases has a lead case, you must start from the lead case.</p>\n <p class=\"govuk-body\">If the cases to be linked has no lead, you can start the linking journey from any of those\n cases.</p>\n </div>\n <div id=\"manage-link-cases-journey\" *ngIf=\"!isLinkCasesJourney\">\n <p class=\"govuk-body\">If there are linked hearings for the case you need to un-link then you must unlink the\n hearing first.</p>\n </div>\n </div>\n</div>\n" }]
|
|
16328
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }
|
|
15966
|
+
args: [{ selector: 'ccd-linked-cases-before-you-start', template: "<div>\n <div *ngIf=\"serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"serverLinkedApiError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n </div>\n <div *ngIf=\"!serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">Before you start</h1>\n <div id=\"link-cases-journey\" *ngIf=\"isLinkCasesJourney\">\n <p class=\"govuk-body\">If a group of linked cases has a lead case, you must start from the lead case.</p>\n <p class=\"govuk-body\">If the cases to be linked has no lead, you can start the linking journey from any of those\n cases.</p>\n </div>\n <div id=\"manage-link-cases-journey\" *ngIf=\"!isLinkCasesJourney\">\n <p class=\"govuk-body\">If there are linked hearings for the case you need to un-link then you must unlink the\n hearing first.</p>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
|
|
15967
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16329
15968
|
type: Output
|
|
16330
15969
|
}] }); })();
|
|
16331
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BeforeYouStartComponent, { className: "BeforeYouStartComponent", filePath: "lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.ts", lineNumber:
|
|
15970
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BeforeYouStartComponent, { className: "BeforeYouStartComponent", filePath: "lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.ts", lineNumber: 12 }); })();
|
|
16332
15971
|
|
|
16333
15972
|
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
16334
15973
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -16450,15 +16089,14 @@ function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
16450
16089
|
i0.ɵɵtext(2, " None ");
|
|
16451
16090
|
i0.ɵɵelementEnd()();
|
|
16452
16091
|
} }
|
|
16453
|
-
class CheckYourAnswersComponent
|
|
16092
|
+
class CheckYourAnswersComponent {
|
|
16454
16093
|
linkedCasesService;
|
|
16455
16094
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16456
16095
|
linkedCases;
|
|
16457
16096
|
casesToUnlink;
|
|
16458
16097
|
isLinkCasesJourney;
|
|
16459
16098
|
linkedCasesTableCaption;
|
|
16460
|
-
constructor(linkedCasesService
|
|
16461
|
-
super(multipageComponentStateService);
|
|
16099
|
+
constructor(linkedCasesService) {
|
|
16462
16100
|
this.linkedCasesService = linkedCasesService;
|
|
16463
16101
|
}
|
|
16464
16102
|
ngOnInit() {
|
|
@@ -16475,16 +16113,8 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16475
16113
|
navigateToNextPage: true
|
|
16476
16114
|
});
|
|
16477
16115
|
}
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
16481
|
-
navigateToPreviousPage: false,
|
|
16482
|
-
navigateToNextPage: true
|
|
16483
|
-
});
|
|
16484
|
-
super.next();
|
|
16485
|
-
}
|
|
16486
|
-
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
16487
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16116
|
+
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16117
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16488
16118
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
16489
16119
|
i0.ɵɵtext(3, "Check your answers");
|
|
16490
16120
|
i0.ɵɵelementEnd();
|
|
@@ -16520,10 +16150,10 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16520
16150
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
16521
16151
|
type: Component,
|
|
16522
16152
|
args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n <th scope=\"col\" class=\"govuk-table__header\" *ngIf=\"isLinkCasesJourney\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of linkedCases\">\n <td class=\"govuk-table__cell\">\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}} </span>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngFor=\"let reason of case.reasons; last as isLast\">\n <span *ngIf=\"isLinkCasesJourney\">\n {{reason | ccdLinkCasesReasonValue}}\n </span>\n <span *ngIf=\"!isLinkCasesJourney\">\n {{reason.Reason.value | ccdLinkCasesReasonValue}}\n </span>\n <br *ngIf=\"!isLast\">\n </span>\n </td>\n <td class=\"govuk-table__cell\"></td>\n <td class=\"govuk-table__cell\" *ngIf=\"isLinkCasesJourney\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!linkedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"4\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".float-right{float:right}\n"] }]
|
|
16523
|
-
}], () => [{ type: LinkedCasesService }
|
|
16153
|
+
}], () => [{ type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16524
16154
|
type: Output
|
|
16525
16155
|
}] }); })();
|
|
16526
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckYourAnswersComponent, { className: "CheckYourAnswersComponent", filePath: "lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.ts", lineNumber:
|
|
16156
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckYourAnswersComponent, { className: "CheckYourAnswersComponent", filePath: "lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.ts", lineNumber: 11 }); })();
|
|
16527
16157
|
|
|
16528
16158
|
class ValidatorsUtils {
|
|
16529
16159
|
numberLengthValidator(inputLength) {
|
|
@@ -16553,7 +16183,7 @@ class ValidatorsUtils {
|
|
|
16553
16183
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16554
16184
|
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16555
16185
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16556
|
-
i0.ɵɵelementStart(0, "span",
|
|
16186
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16557
16187
|
i0.ɵɵtext(2, "Error:");
|
|
16558
16188
|
i0.ɵɵelementEnd();
|
|
16559
16189
|
i0.ɵɵtext(3);
|
|
@@ -16564,7 +16194,7 @@ function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16564
16194
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseNumberError, " ");
|
|
16565
16195
|
} }
|
|
16566
16196
|
function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
16567
|
-
i0.ɵɵelementStart(0, "span",
|
|
16197
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16568
16198
|
i0.ɵɵtext(2, "Error:");
|
|
16569
16199
|
i0.ɵɵelementEnd();
|
|
16570
16200
|
i0.ɵɵtext(3);
|
|
@@ -16576,10 +16206,10 @@ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
16576
16206
|
} }
|
|
16577
16207
|
function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
16578
16208
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
16579
|
-
i0.ɵɵelementStart(0, "div",
|
|
16209
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "input", 33);
|
|
16580
16210
|
i0.ɵɵlistener("change", function LinkCasesComponent_div_8_div_13_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleLinkCaseReasonOtherComments($event)); });
|
|
16581
16211
|
i0.ɵɵelementEnd();
|
|
16582
|
-
i0.ɵɵelementStart(2, "label",
|
|
16212
|
+
i0.ɵɵelementStart(2, "label", 34);
|
|
16583
16213
|
i0.ɵɵtext(3);
|
|
16584
16214
|
i0.ɵɵelementEnd()();
|
|
16585
16215
|
} if (rf & 2) {
|
|
@@ -16595,7 +16225,7 @@ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
16595
16225
|
i0.ɵɵtextInterpolate(reason_r4.value_en);
|
|
16596
16226
|
} }
|
|
16597
16227
|
function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16598
|
-
i0.ɵɵelementStart(0, "span",
|
|
16228
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16599
16229
|
i0.ɵɵtext(2, "Error:");
|
|
16600
16230
|
i0.ɵɵelementEnd();
|
|
16601
16231
|
i0.ɵɵtext(3);
|
|
@@ -16606,14 +16236,14 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16606
16236
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseReasonCommentsError, " ");
|
|
16607
16237
|
} }
|
|
16608
16238
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
16609
|
-
i0.ɵɵelementStart(0, "div",
|
|
16239
|
+
i0.ɵɵelementStart(0, "div", 35)(1, "h3", 22);
|
|
16610
16240
|
i0.ɵɵtext(2, "Comments");
|
|
16611
16241
|
i0.ɵɵelementEnd();
|
|
16612
16242
|
i0.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
|
|
16613
|
-
i0.ɵɵelementStart(4, "textarea",
|
|
16243
|
+
i0.ɵɵelementStart(4, "textarea", 36);
|
|
16614
16244
|
i0.ɵɵtext(5, " ");
|
|
16615
16245
|
i0.ɵɵelementEnd();
|
|
16616
|
-
i0.ɵɵelementStart(6, "div",
|
|
16246
|
+
i0.ɵɵelementStart(6, "div", 37);
|
|
16617
16247
|
i0.ɵɵtext(7, " You can enter up to 100 characters ");
|
|
16618
16248
|
i0.ɵɵelementEnd()();
|
|
16619
16249
|
} if (rf & 2) {
|
|
@@ -16623,7 +16253,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
16623
16253
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
|
|
16624
16254
|
} }
|
|
16625
16255
|
function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
16626
|
-
i0.ɵɵelementStart(0, "span",
|
|
16256
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16627
16257
|
i0.ɵɵtext(2, "Error:");
|
|
16628
16258
|
i0.ɵɵelementEnd();
|
|
16629
16259
|
i0.ɵɵtext(3);
|
|
@@ -16635,26 +16265,26 @@ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
16635
16265
|
} }
|
|
16636
16266
|
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16637
16267
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
16638
|
-
i0.ɵɵelementStart(0, "div",
|
|
16268
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "div", 5)(2, "h3", 22);
|
|
16639
16269
|
i0.ɵɵtext(3, "Enter case reference");
|
|
16640
16270
|
i0.ɵɵelementEnd();
|
|
16641
16271
|
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
16642
|
-
i0.ɵɵelement(5, "input",
|
|
16272
|
+
i0.ɵɵelement(5, "input", 23);
|
|
16643
16273
|
i0.ɵɵelementEnd();
|
|
16644
|
-
i0.ɵɵelementStart(6, "div",
|
|
16274
|
+
i0.ɵɵelementStart(6, "div", 24)(7, "h3", 22);
|
|
16645
16275
|
i0.ɵɵtext(8, "Why should these cases be linked?");
|
|
16646
16276
|
i0.ɵɵelementEnd();
|
|
16647
|
-
i0.ɵɵelementStart(9, "div",
|
|
16277
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
16648
16278
|
i0.ɵɵtext(10, " Select all that apply. ");
|
|
16649
16279
|
i0.ɵɵelementEnd();
|
|
16650
16280
|
i0.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
|
|
16651
|
-
i0.ɵɵelementStart(12, "div",
|
|
16652
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div",
|
|
16281
|
+
i0.ɵɵelementStart(12, "div", 26);
|
|
16282
|
+
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 27);
|
|
16653
16283
|
i0.ɵɵelementEnd()();
|
|
16654
|
-
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div",
|
|
16284
|
+
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 28);
|
|
16655
16285
|
i0.ɵɵelement(15, "br")(16, "br");
|
|
16656
16286
|
i0.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
|
|
16657
|
-
i0.ɵɵelementStart(18, "button",
|
|
16287
|
+
i0.ɵɵelementStart(18, "button", 29);
|
|
16658
16288
|
i0.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_18_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submitCaseInfo()); });
|
|
16659
16289
|
i0.ɵɵtext(19, "Propose case link");
|
|
16660
16290
|
i0.ɵɵelementEnd()();
|
|
@@ -16677,7 +16307,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
16677
16307
|
i0.ɵɵproperty("ngIf", ctx_r1.caseSelectionError);
|
|
16678
16308
|
} }
|
|
16679
16309
|
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16680
|
-
i0.ɵɵelementStart(0, "span",
|
|
16310
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16681
16311
|
i0.ɵɵtext(2, "Error:");
|
|
16682
16312
|
i0.ɵɵelementEnd();
|
|
16683
16313
|
i0.ɵɵtext(3);
|
|
@@ -16700,27 +16330,27 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
16700
16330
|
} }
|
|
16701
16331
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
16702
16332
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
16703
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16704
|
-
i0.ɵɵelement(2, "div",
|
|
16333
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
|
|
16334
|
+
i0.ɵɵelement(2, "div", 39);
|
|
16705
16335
|
i0.ɵɵelementStart(3, "span");
|
|
16706
16336
|
i0.ɵɵtext(4);
|
|
16707
16337
|
i0.ɵɵelement(5, "br");
|
|
16708
16338
|
i0.ɵɵtext(6);
|
|
16709
16339
|
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
16710
16340
|
i0.ɵɵelementEnd()();
|
|
16711
|
-
i0.ɵɵelementStart(8, "td",
|
|
16341
|
+
i0.ɵɵelementStart(8, "td", 40);
|
|
16712
16342
|
i0.ɵɵtext(9);
|
|
16713
16343
|
i0.ɵɵelementEnd();
|
|
16714
|
-
i0.ɵɵelementStart(10, "td",
|
|
16344
|
+
i0.ɵɵelementStart(10, "td", 38);
|
|
16715
16345
|
i0.ɵɵtext(11);
|
|
16716
16346
|
i0.ɵɵelementEnd();
|
|
16717
|
-
i0.ɵɵelementStart(12, "td",
|
|
16347
|
+
i0.ɵɵelementStart(12, "td", 40);
|
|
16718
16348
|
i0.ɵɵtext(13);
|
|
16719
16349
|
i0.ɵɵelementEnd();
|
|
16720
|
-
i0.ɵɵelementStart(14, "td",
|
|
16721
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span",
|
|
16350
|
+
i0.ɵɵelementStart(14, "td", 38);
|
|
16351
|
+
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 41);
|
|
16722
16352
|
i0.ɵɵelementEnd();
|
|
16723
|
-
i0.ɵɵelementStart(16, "td",
|
|
16353
|
+
i0.ɵɵelementStart(16, "td", 38)(17, "a", 42);
|
|
16724
16354
|
i0.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { const ctx_r7 = i0.ɵɵrestoreView(_r6); const case_r9 = ctx_r7.$implicit; const pos_r10 = ctx_r7.index; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectedLinkedCaseRemove(pos_r10, case_r9.caseReference)); });
|
|
16725
16355
|
i0.ɵɵtext(18, "Remove");
|
|
16726
16356
|
i0.ɵɵelementEnd()()();
|
|
@@ -16749,11 +16379,11 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16749
16379
|
i0.ɵɵattribute("id", case_r9.caseReference);
|
|
16750
16380
|
} }
|
|
16751
16381
|
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
16752
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16382
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 43);
|
|
16753
16383
|
i0.ɵɵtext(2, " None ");
|
|
16754
16384
|
i0.ɵɵelementEnd()();
|
|
16755
16385
|
} }
|
|
16756
|
-
class LinkCasesComponent
|
|
16386
|
+
class LinkCasesComponent {
|
|
16757
16387
|
casesService;
|
|
16758
16388
|
fb;
|
|
16759
16389
|
validatorsUtils;
|
|
@@ -16772,8 +16402,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16772
16402
|
linkCaseReasons;
|
|
16773
16403
|
showComments = false;
|
|
16774
16404
|
ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
16775
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService
|
|
16776
|
-
super(multipageComponentStateService);
|
|
16405
|
+
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
16777
16406
|
this.casesService = casesService;
|
|
16778
16407
|
this.fb = fb;
|
|
16779
16408
|
this.validatorsUtils = validatorsUtils;
|
|
@@ -17018,14 +16647,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17018
16647
|
}
|
|
17019
16648
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17020
16649
|
}
|
|
17021
|
-
|
|
17022
|
-
|
|
17023
|
-
if (this.errorMessages.length === 0) {
|
|
17024
|
-
super.next();
|
|
17025
|
-
}
|
|
17026
|
-
}
|
|
17027
|
-
static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
17028
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 33, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16650
|
+
static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16651
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17029
16652
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "span", 2);
|
|
17030
16653
|
i0.ɵɵtext(4);
|
|
17031
16654
|
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
@@ -17059,7 +16682,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17059
16682
|
i0.ɵɵelementEnd()();
|
|
17060
16683
|
i0.ɵɵelementStart(30, "tbody", 16);
|
|
17061
16684
|
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17)(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
17062
|
-
i0.ɵɵelementEnd()()()
|
|
16685
|
+
i0.ɵɵelementEnd()()();
|
|
16686
|
+
i0.ɵɵelementStart(33, "div", 19)(34, "button", 20);
|
|
16687
|
+
i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
16688
|
+
i0.ɵɵtext(35, "Next");
|
|
16689
|
+
i0.ɵɵelementEnd()()()()();
|
|
17063
16690
|
} if (rf & 2) {
|
|
17064
16691
|
i0.ɵɵadvance(4);
|
|
17065
16692
|
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
@@ -17077,11 +16704,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17077
16704
|
}
|
|
17078
16705
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
17079
16706
|
type: Component,
|
|
17080
|
-
args: [{ selector: 'ccd-link-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <div>\n <span class=\"govuk-caption-l\">Link cases to {{caseName}} {{caseId | ccdCaseReference}}</span>\n <h1 class=\"govuk-heading-xl\">Select a case you want to link to this case</h1>\n <div class=\"form-group\" [formGroup]=\"linkCaseForm\" *ngIf=\"linkCaseForm\">\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!caseNumberError}\">\n <h3 class=\"govuk-heading-s\">Enter case reference</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseNumberError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseNumberError}}\n </span>\n <input class=\"govuk-input govuk-input--width-20\" formControlName=\"caseNumber\" id=\"width-20\" name=\"width-20\"\n type=\"text\">\n </div>\n <div [ngClass]=\"{'govuk-form-group--error': !!caseReasonError}\" class=\"govuk-!-margin-top-3\">\n <h3 class=\"govuk-heading-s\">Why should these cases be linked?</h3>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply.\n </div>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonError}}\n </span>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\" formArrayName=\"reasonType\" id=\"caseReason\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let reason of linkCaseReasons;index as pos\" [formGroupName]=\"pos\">\n <input class=\"govuk-checkboxes__input\" id=\"{{reason.key}}\" formControlName=\"selected\" name=\"pos\"\n type=\"checkbox\" [value]=\"reason.value_en\" (change)=\"toggleLinkCaseReasonOtherComments($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{reason.key}}\">{{reason.value_en}}</label>\n </div>\n </div>\n </div>\n <div id=\"other-description-char-limit-error\" [ngClass]=\"{'govuk-form-group--error': !!caseReasonCommentsError}\" class=\"govuk-!-margin-top-3\" *ngIf=\"showComments\">\n <h3 class=\"govuk-heading-s\">Comments</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonCommentsError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonCommentsError}}\n </span>\n <textarea class=\"govuk-textarea govuk-input--width-30\" id=\"otherDescription\"\n name=\"otherDescription\" formControlName=\"otherDescription\" rows=\"5\"\n aria-describedby=\"other-description-hint other-description-char-limit-info other-description-char-limit-error\">\n </textarea>\n <div id=\"other-description-char-limit-info\" aria-live=\"polite\" class=\"govuk-hint govuk-character-count__message\">\n You can enter up to 100 characters\n </div>\n </div>\n <br><br>\n <span class=\"govuk-error-message\" *ngIf=\"caseSelectionError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseSelectionError}}\n </span>\n <button id=\"propose\" type=\"button\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\"\n (click)=\"submitCaseInfo()\">Propose case link</button>\n </div>\n <hr>\n <br><br>\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!noSelectedCaseError}\">\n <span class=\"govuk-error-message\" *ngIf=\"noSelectedCaseError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{noSelectedCaseError}}\n </span>\n <table class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Proposed case links </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\" width=\"300\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"150\">Case type </th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">Service</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">State</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"400\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"50\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of selectedCases; let pos = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-form-group--error\"\n [ngClass]=\"{'table-group-error':caseSelectionError && case.caseReference === linkCaseForm.value.caseNumber}\">\n </div>\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}</span>\n </td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseTypeDescription\">{{case.caseType}}</td>\n <td class=\"govuk-table__cell\">{{case.caseService}}</td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseStateDescription\">{{case.caseState}}</td>\n <td class=\"govuk-table__cell\"><span\n *ngFor=\"let reason of case.reasons\">{{reason | ccdLinkCasesReasonValue}}<br></span></td>\n <td class=\"govuk-table__cell\"><a [attr.id]=\"case.caseReference\" (click)=\"onSelectedLinkedCaseRemove(pos, case.caseReference);\"\n class=\"govuk-link no-visited-state\">Remove</a></td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!selectedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"6\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</div>\n", styles: [".no-visited-state{color:#1d70b8;cursor:pointer}.no-visited-state:hover{color:#003078}.govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes .govuk-checkboxes__item{display:flex}::ng-deep .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row{position:relative}.govuk-table__row .table-group-error{position:absolute;height:calc(100% - 20px);margin-left:-15px}\n"] }]
|
|
17081
|
-
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }
|
|
16707
|
+
args: [{ selector: 'ccd-link-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <div>\n <span class=\"govuk-caption-l\">Link cases to {{caseName}} {{caseId | ccdCaseReference}}</span>\n <h1 class=\"govuk-heading-xl\">Select a case you want to link to this case</h1>\n <div class=\"form-group\" [formGroup]=\"linkCaseForm\" *ngIf=\"linkCaseForm\">\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!caseNumberError}\">\n <h3 class=\"govuk-heading-s\">Enter case reference</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseNumberError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseNumberError}}\n </span>\n <input class=\"govuk-input govuk-input--width-20\" formControlName=\"caseNumber\" id=\"width-20\" name=\"width-20\"\n type=\"text\">\n </div>\n <div [ngClass]=\"{'govuk-form-group--error': !!caseReasonError}\" class=\"govuk-!-margin-top-3\">\n <h3 class=\"govuk-heading-s\">Why should these cases be linked?</h3>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply.\n </div>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonError}}\n </span>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\" formArrayName=\"reasonType\" id=\"caseReason\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let reason of linkCaseReasons;index as pos\" [formGroupName]=\"pos\">\n <input class=\"govuk-checkboxes__input\" id=\"{{reason.key}}\" formControlName=\"selected\" name=\"pos\"\n type=\"checkbox\" [value]=\"reason.value_en\" (change)=\"toggleLinkCaseReasonOtherComments($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{reason.key}}\">{{reason.value_en}}</label>\n </div>\n </div>\n </div>\n <div id=\"other-description-char-limit-error\" [ngClass]=\"{'govuk-form-group--error': !!caseReasonCommentsError}\" class=\"govuk-!-margin-top-3\" *ngIf=\"showComments\">\n <h3 class=\"govuk-heading-s\">Comments</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonCommentsError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonCommentsError}}\n </span>\n <textarea class=\"govuk-textarea govuk-input--width-30\" id=\"otherDescription\"\n name=\"otherDescription\" formControlName=\"otherDescription\" rows=\"5\"\n aria-describedby=\"other-description-hint other-description-char-limit-info other-description-char-limit-error\">\n </textarea>\n <div id=\"other-description-char-limit-info\" aria-live=\"polite\" class=\"govuk-hint govuk-character-count__message\">\n You can enter up to 100 characters\n </div>\n </div>\n <br><br>\n <span class=\"govuk-error-message\" *ngIf=\"caseSelectionError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseSelectionError}}\n </span>\n <button id=\"propose\" type=\"button\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\"\n (click)=\"submitCaseInfo()\">Propose case link</button>\n </div>\n <hr>\n <br><br>\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!noSelectedCaseError}\">\n <span class=\"govuk-error-message\" *ngIf=\"noSelectedCaseError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{noSelectedCaseError}}\n </span>\n <table class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Proposed case links </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\" width=\"300\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"150\">Case type </th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">Service</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">State</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"400\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"50\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of selectedCases; let pos = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-form-group--error\"\n [ngClass]=\"{'table-group-error':caseSelectionError && case.caseReference === linkCaseForm.value.caseNumber}\">\n </div>\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}</span>\n </td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseTypeDescription\">{{case.caseType}}</td>\n <td class=\"govuk-table__cell\">{{case.caseService}}</td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseStateDescription\">{{case.caseState}}</td>\n <td class=\"govuk-table__cell\"><span\n *ngFor=\"let reason of case.reasons\">{{reason | ccdLinkCasesReasonValue}}<br></span></td>\n <td class=\"govuk-table__cell\"><a [attr.id]=\"case.caseReference\" (click)=\"onSelectedLinkedCaseRemove(pos, case.caseReference);\"\n class=\"govuk-link no-visited-state\">Remove</a></td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!selectedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"6\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".no-visited-state{color:#1d70b8;cursor:pointer}.no-visited-state:hover{color:#003078}.govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes .govuk-checkboxes__item{display:flex}::ng-deep .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row{position:relative}.govuk-table__row .table-group-error{position:absolute;height:calc(100% - 20px);margin-left:-15px}\n"] }]
|
|
16708
|
+
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17082
16709
|
type: Output
|
|
17083
16710
|
}] }); })();
|
|
17084
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber:
|
|
16711
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber: 24 }); })();
|
|
17085
16712
|
|
|
17086
16713
|
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
17087
16714
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -17617,12 +17244,11 @@ function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17617
17244
|
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
17618
17245
|
i0.ɵɵelementEnd();
|
|
17619
17246
|
} }
|
|
17620
|
-
class NoLinkedCasesComponent
|
|
17247
|
+
class NoLinkedCasesComponent {
|
|
17621
17248
|
router;
|
|
17622
17249
|
linkedCasesService;
|
|
17623
17250
|
serverLinkedApiError;
|
|
17624
|
-
constructor(router, linkedCasesService
|
|
17625
|
-
super(multipageComponentStateService);
|
|
17251
|
+
constructor(router, linkedCasesService) {
|
|
17626
17252
|
this.router = router;
|
|
17627
17253
|
this.linkedCasesService = linkedCasesService;
|
|
17628
17254
|
}
|
|
@@ -17632,8 +17258,8 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17632
17258
|
onBack() {
|
|
17633
17259
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
17634
17260
|
}
|
|
17635
|
-
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17636
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]],
|
|
17261
|
+
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17262
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], decls: 12, vars: 3, consts: [["noLinkedCases", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["class", "govuk-heading-xl", 4, "ngIf"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf", "ngIfElse"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-button-group"], ["type", "button", "id", "back-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function NoLinkedCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17637
17263
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17638
17264
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
17639
17265
|
i0.ɵɵtemplate(2, NoLinkedCasesComponent_h1_2_Template, 2, 0, "h1", 3)(3, NoLinkedCasesComponent_p_3_Template, 4, 1, "p", 4)(4, NoLinkedCasesComponent_ng_template_4_Template, 2, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -17656,66 +17282,70 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17656
17282
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
17657
17283
|
type: Component,
|
|
17658
17284
|
args: [{ selector: 'ccd-no-linked-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\" *ngIf=\"serverLinkedApiError\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\"\n *ngIf=\"serverLinkedApiError;else noLinkedCases;\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <ng-template #noLinkedCases>\n <p class=\"govuk-body\">There are no cases linked to this one.</p>\n </ng-template>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"back-button\" (click)=\"onBack()\">Back</button>\n </div>\n </div>\n</div>\n" }]
|
|
17659
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }
|
|
17660
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber:
|
|
17285
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], null); })();
|
|
17286
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber: 9 }); })();
|
|
17661
17287
|
|
|
17662
17288
|
const _c0$I = a0 => ({ "govuk-form-group--error": a0 });
|
|
17663
17289
|
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
17664
|
-
i0.ɵɵelementStart(0, "p",
|
|
17290
|
+
i0.ɵɵelementStart(0, "p", 11)(1, "span", 12);
|
|
17665
17291
|
i0.ɵɵtext(2, "Error:");
|
|
17666
17292
|
i0.ɵɵelementEnd();
|
|
17667
17293
|
i0.ɵɵtext(3);
|
|
17668
17294
|
i0.ɵɵelementEnd();
|
|
17669
17295
|
} if (rf & 2) {
|
|
17670
|
-
const
|
|
17296
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
17671
17297
|
i0.ɵɵadvance(3);
|
|
17672
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17298
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.unlinkErrorMessage, " ");
|
|
17673
17299
|
} }
|
|
17674
17300
|
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
17675
|
-
const
|
|
17676
|
-
i0.ɵɵelementStart(0, "div",
|
|
17677
|
-
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(
|
|
17301
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
17302
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "input", 14);
|
|
17303
|
+
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onChange($event.target)); });
|
|
17678
17304
|
i0.ɵɵelementEnd();
|
|
17679
|
-
i0.ɵɵelementStart(2, "label",
|
|
17305
|
+
i0.ɵɵelementStart(2, "label", 15);
|
|
17680
17306
|
i0.ɵɵtext(3);
|
|
17681
17307
|
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
17682
17308
|
i0.ɵɵelementEnd()();
|
|
17683
17309
|
} if (rf & 2) {
|
|
17684
|
-
const
|
|
17310
|
+
const case_r4 = ctx.$implicit;
|
|
17685
17311
|
i0.ɵɵadvance();
|
|
17686
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-",
|
|
17687
|
-
i0.ɵɵproperty("value",
|
|
17312
|
+
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
17313
|
+
i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
17688
17314
|
i0.ɵɵadvance();
|
|
17689
|
-
i0.ɵɵpropertyInterpolate("for",
|
|
17315
|
+
i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
17690
17316
|
i0.ɵɵadvance();
|
|
17691
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
17317
|
+
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r4.caseReference), " ");
|
|
17692
17318
|
} }
|
|
17693
17319
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
17694
|
-
i0.ɵɵelementStart(0, "div",
|
|
17695
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p",
|
|
17696
|
-
i0.ɵɵelementStart(2, "div",
|
|
17697
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div",
|
|
17320
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
17321
|
+
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
17322
|
+
i0.ɵɵelementStart(2, "div", 9);
|
|
17323
|
+
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 10);
|
|
17698
17324
|
i0.ɵɵelementEnd()();
|
|
17699
17325
|
} if (rf & 2) {
|
|
17700
|
-
const
|
|
17701
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I,
|
|
17326
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17327
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
17702
17328
|
i0.ɵɵadvance();
|
|
17703
|
-
i0.ɵɵproperty("ngIf",
|
|
17329
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
17704
17330
|
i0.ɵɵadvance(2);
|
|
17705
|
-
i0.ɵɵproperty("ngForOf",
|
|
17331
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
17706
17332
|
} }
|
|
17707
17333
|
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
17334
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17708
17335
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h1", 3);
|
|
17709
17336
|
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
17710
17337
|
i0.ɵɵelementEnd();
|
|
17711
17338
|
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
17712
|
-
i0.ɵɵ
|
|
17339
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
|
|
17340
|
+
i0.ɵɵlistener("click", function UnLinkCasesComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNext()); });
|
|
17341
|
+
i0.ɵɵtext(7, "Next");
|
|
17342
|
+
i0.ɵɵelementEnd()()()();
|
|
17713
17343
|
} if (rf & 2) {
|
|
17714
|
-
const
|
|
17344
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17715
17345
|
i0.ɵɵadvance(4);
|
|
17716
|
-
i0.ɵɵproperty("ngIf",
|
|
17346
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkCaseForm);
|
|
17717
17347
|
} }
|
|
17718
|
-
class UnLinkCasesComponent
|
|
17348
|
+
class UnLinkCasesComponent {
|
|
17719
17349
|
fb;
|
|
17720
17350
|
casesService;
|
|
17721
17351
|
linkedCasesService;
|
|
@@ -17730,8 +17360,7 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17730
17360
|
unlinkErrorMessage;
|
|
17731
17361
|
isLoaded;
|
|
17732
17362
|
isServerError = false;
|
|
17733
|
-
constructor(fb, casesService, linkedCasesService
|
|
17734
|
-
super(multipageComponentStateService);
|
|
17363
|
+
constructor(fb, casesService, linkedCasesService) {
|
|
17735
17364
|
this.fb = fb;
|
|
17736
17365
|
this.casesService = casesService;
|
|
17737
17366
|
this.linkedCasesService = linkedCasesService;
|
|
@@ -17824,12 +17453,6 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17824
17453
|
// Return linked cases state and error messages to the parent
|
|
17825
17454
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17826
17455
|
}
|
|
17827
|
-
next() {
|
|
17828
|
-
this.onNext();
|
|
17829
|
-
if (this.errorMessages.length === 0) {
|
|
17830
|
-
super.next();
|
|
17831
|
-
}
|
|
17832
|
-
}
|
|
17833
17456
|
// Return linked cases state and error messages to the parent
|
|
17834
17457
|
emitLinkedCasesState(isNavigateToNextPage) {
|
|
17835
17458
|
this.linkedCasesStateEmitter.emit({
|
|
@@ -17842,22 +17465,22 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17842
17465
|
this.errorMessages = [];
|
|
17843
17466
|
this.unlinkErrorMessage = null;
|
|
17844
17467
|
}
|
|
17845
|
-
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17846
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" },
|
|
17847
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template,
|
|
17468
|
+
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17469
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" }, decls: 1, vars: 1, consts: [["class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["class", "govuk-form-group form-group", 3, "ngClass", "formGroup", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-form-group", "form-group", 3, "ngClass", "formGroup"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 4, "ngFor", "ngForOf"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item"], ["formArrayName", "linkedCases", "name", "linkedCases", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value", "checked"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17470
|
+
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
17848
17471
|
} if (rf & 2) {
|
|
17849
17472
|
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
17850
17473
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormArrayName, CaseReferencePipe], encapsulation: 2 });
|
|
17851
17474
|
}
|
|
17852
17475
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
17853
17476
|
type: Component,
|
|
17854
|
-
args: [{ selector: 'ccd-unlink-cases', template: "<div class=\"govuk-grid-row\" *ngIf=\"linkedCases.length > 0\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Select the cases you want to unlink from this case</h1>\n <div class=\"govuk-form-group form-group\" [ngClass]=\"{'govuk-form-group--error': unlinkErrorMessage}\" [formGroup]=\"unlinkCaseForm\" *ngIf=\"unlinkCaseForm\">\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"unlinkErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{unlinkErrorMessage}}\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let case of linkedCases\">\n <input class=\"govuk-checkboxes__input\" id=\"case-reference-{{case.caseReference}}\" formArrayName=\"linkedCases\" name=\"linkedCases\"\n type=\"checkbox\" [value]=\"case.caseReference\" [checked]=\"case.unlink\" (change)=\"onChange($event.target)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{case.caseReference}}\">\n {{case.caseName }} {{case.caseReference | ccdCaseReference}}\n </label>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
17855
|
-
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }
|
|
17477
|
+
args: [{ selector: 'ccd-unlink-cases', template: "<div class=\"govuk-grid-row\" *ngIf=\"linkedCases.length > 0\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Select the cases you want to unlink from this case</h1>\n <div class=\"govuk-form-group form-group\" [ngClass]=\"{'govuk-form-group--error': unlinkErrorMessage}\" [formGroup]=\"unlinkCaseForm\" *ngIf=\"unlinkCaseForm\">\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"unlinkErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{unlinkErrorMessage}}\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let case of linkedCases\">\n <input class=\"govuk-checkboxes__input\" id=\"case-reference-{{case.caseReference}}\" formArrayName=\"linkedCases\" name=\"linkedCases\"\n type=\"checkbox\" [value]=\"case.caseReference\" [checked]=\"case.unlink\" (change)=\"onChange($event.target)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{case.caseReference}}\">\n {{case.caseName }} {{case.caseReference | ccdCaseReference}}\n </label>\n </div>\n </div>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
|
|
17478
|
+
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17856
17479
|
type: Output
|
|
17857
17480
|
}], notifyAPIFailure: [{
|
|
17858
17481
|
type: Output
|
|
17859
17482
|
}] }); })();
|
|
17860
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber:
|
|
17483
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber: 14 }); })();
|
|
17861
17484
|
|
|
17862
17485
|
// tslint:disable:variable-name
|
|
17863
17486
|
class LinkCaseReason {
|
|
@@ -18111,7 +17734,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
18111
17734
|
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
18112
17735
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
18113
17736
|
i0.ɵɵelementContainerStart(0);
|
|
18114
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start",
|
|
17737
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
|
|
18115
17738
|
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_2_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
|
|
18116
17739
|
i0.ɵɵelementEnd();
|
|
18117
17740
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18119,7 +17742,7 @@ function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (r
|
|
|
18119
17742
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
18120
17743
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
18121
17744
|
i0.ɵɵelementContainerStart(0);
|
|
18122
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases",
|
|
17745
|
+
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
|
|
18123
17746
|
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_3_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
|
|
18124
17747
|
i0.ɵɵelementEnd();
|
|
18125
17748
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18127,7 +17750,7 @@ function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (r
|
|
|
18127
17750
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
18128
17751
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
18129
17752
|
i0.ɵɵelementContainerStart(0);
|
|
18130
|
-
i0.ɵɵelementStart(1, "ccd-link-cases",
|
|
17753
|
+
i0.ɵɵelementStart(1, "ccd-link-cases", 3);
|
|
18131
17754
|
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_4_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
|
|
18132
17755
|
i0.ɵɵelementEnd();
|
|
18133
17756
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18135,7 +17758,7 @@ function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (r
|
|
|
18135
17758
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
18136
17759
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
18137
17760
|
i0.ɵɵelementContainerStart(0);
|
|
18138
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases",
|
|
17761
|
+
i0.ɵɵelementStart(1, "ccd-unlink-cases", 3);
|
|
18139
17762
|
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_5_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
|
|
18140
17763
|
i0.ɵɵelementEnd();
|
|
18141
17764
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18143,12 +17766,12 @@ function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (r
|
|
|
18143
17766
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
18144
17767
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
18145
17768
|
i0.ɵɵelementContainerStart(0);
|
|
18146
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
17769
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
|
|
18147
17770
|
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_6_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
|
|
18148
17771
|
i0.ɵɵelementEnd();
|
|
18149
17772
|
i0.ɵɵelementContainerEnd();
|
|
18150
17773
|
} }
|
|
18151
|
-
class WriteLinkedCasesFieldComponent extends
|
|
17774
|
+
class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
18152
17775
|
appConfig;
|
|
18153
17776
|
commonDataService;
|
|
18154
17777
|
casesService;
|
|
@@ -18161,8 +17784,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18161
17784
|
linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
18162
17785
|
linkedCases = [];
|
|
18163
17786
|
subscriptions = new Subscription();
|
|
18164
|
-
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService
|
|
18165
|
-
super(
|
|
17787
|
+
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
17788
|
+
super();
|
|
18166
17789
|
this.appConfig = appConfig;
|
|
18167
17790
|
this.commonDataService = commonDataService;
|
|
18168
17791
|
this.casesService = casesService;
|
|
@@ -18187,13 +17810,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18187
17810
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18188
17811
|
next: editForm => this.caseEditForm = editForm
|
|
18189
17812
|
}));
|
|
18190
|
-
this.journeyPageNumber = this.journeyStartPageNumber = LinkedCasesPages.BEFORE_YOU_START;
|
|
18191
|
-
this.journeyEndPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18192
|
-
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
18193
|
-
}
|
|
18194
|
-
onPageChange() {
|
|
18195
|
-
const isAtStart = this.journeyPageNumber === this.journeyStartPageNumber || this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START;
|
|
18196
|
-
this.multipageComponentStateService.isAtStart = isAtStart;
|
|
18197
17813
|
}
|
|
18198
17814
|
initialiseCaseDetails(caseDetails) {
|
|
18199
17815
|
if (caseDetails) {
|
|
@@ -18251,8 +17867,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18251
17867
|
}
|
|
18252
17868
|
proceedToNextPage() {
|
|
18253
17869
|
if (this.isAtFinalPage()) {
|
|
18254
|
-
// Set the journey page to the end page.
|
|
18255
|
-
this.journeyPageNumber = this.journeyEndPageNumber;
|
|
18256
17870
|
// Continue button event must be allowed in final page
|
|
18257
17871
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18258
17872
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
@@ -18264,7 +17878,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18264
17878
|
// Continue button event must not be allowed if not in final page
|
|
18265
17879
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18266
17880
|
}
|
|
18267
|
-
this.nextPage();
|
|
18268
17881
|
}
|
|
18269
17882
|
submitLinkedCases() {
|
|
18270
17883
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -18309,22 +17922,10 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18309
17922
|
ngOnDestroy() {
|
|
18310
17923
|
this.subscriptions.unsubscribe();
|
|
18311
17924
|
}
|
|
18312
|
-
|
|
18313
|
-
|
|
18314
|
-
|
|
18315
|
-
|
|
18316
|
-
else if (this.linkedCasesPage === LinkedCasesPages.LINK_CASE) {
|
|
18317
|
-
this.linkedCasesPage = LinkedCasesPages.BEFORE_YOU_START;
|
|
18318
|
-
}
|
|
18319
|
-
else {
|
|
18320
|
-
this.linkedCasesPage--;
|
|
18321
|
-
}
|
|
18322
|
-
super.previousPage();
|
|
18323
|
-
}
|
|
18324
|
-
static ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
18325
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [["journeyChild", ""], [1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18326
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
18327
|
-
i0.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 3, 0, "ng-container", 3)(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 3, 0, "ng-container", 3)(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 3, 0, "ng-container", 3)(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 3, 0, "ng-container", 3)(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 3, 0, "ng-container", 3);
|
|
17925
|
+
static ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
17926
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [[1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17927
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
17928
|
+
i0.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 2, 0, "ng-container", 2)(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 2)(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 2)(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 2)(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 2);
|
|
18328
17929
|
i0.ɵɵelementEnd()();
|
|
18329
17930
|
} if (rf & 2) {
|
|
18330
17931
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
@@ -18344,9 +17945,9 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18344
17945
|
}
|
|
18345
17946
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
|
|
18346
17947
|
type: Component,
|
|
18347
|
-
args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n
|
|
18348
|
-
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }
|
|
18349
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
17948
|
+
args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
17949
|
+
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
17950
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18350
17951
|
|
|
18351
17952
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18352
17953
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -23108,10 +22709,10 @@ function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23108
22709
|
i0.ɵɵtextInterpolate1(" (", i0.ɵɵpipeBind1(2, 1, "optional"), ")");
|
|
23109
22710
|
} }
|
|
23110
22711
|
function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23111
|
-
i0.ɵɵelementStart(0, "div",
|
|
22712
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "span", 15);
|
|
23112
22713
|
i0.ɵɵtext(2, "!");
|
|
23113
22714
|
i0.ɵɵelementEnd();
|
|
23114
|
-
i0.ɵɵelementStart(3, "strong",
|
|
22715
|
+
i0.ɵɵelementStart(3, "strong", 16)(4, "span", 17);
|
|
23115
22716
|
i0.ɵɵtext(5);
|
|
23116
22717
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
23117
22718
|
i0.ɵɵelementEnd();
|
|
@@ -23126,7 +22727,7 @@ function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23126
22727
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.addCommentsStepEnum.WARNING_TEXT), " ");
|
|
23127
22728
|
} }
|
|
23128
22729
|
function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
23129
|
-
i0.ɵɵelementStart(0, "div",
|
|
22730
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
23130
22731
|
i0.ɵɵtext(2);
|
|
23131
22732
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23132
22733
|
i0.ɵɵelementEnd();
|
|
@@ -23141,7 +22742,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
23141
22742
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsNotEnteredErrorMessage), " ");
|
|
23142
22743
|
} }
|
|
23143
22744
|
function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
23144
|
-
i0.ɵɵelementStart(0, "div",
|
|
22745
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
23145
22746
|
i0.ɵɵtext(2);
|
|
23146
22747
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23147
22748
|
i0.ɵɵelementEnd();
|
|
@@ -23155,7 +22756,7 @@ function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
23155
22756
|
i0.ɵɵadvance(2);
|
|
23156
22757
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
23157
22758
|
} }
|
|
23158
|
-
class AddCommentsComponent
|
|
22759
|
+
class AddCommentsComponent {
|
|
23159
22760
|
formGroup;
|
|
23160
22761
|
optional = false;
|
|
23161
22762
|
isDisplayContextParameterExternal = false;
|
|
@@ -23214,14 +22815,8 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23214
22815
|
});
|
|
23215
22816
|
}
|
|
23216
22817
|
}
|
|
23217
|
-
|
|
23218
|
-
|
|
23219
|
-
if (this.errorMessages.length === 0) {
|
|
23220
|
-
super.next();
|
|
23221
|
-
}
|
|
23222
|
-
}
|
|
23223
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵAddCommentsComponent_BaseFactory; return function AddCommentsComponent_Factory(t) { return (ɵAddCommentsComponent_BaseFactory || (ɵAddCommentsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AddCommentsComponent)))(t || AddCommentsComponent); }; })();
|
|
23224
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 21, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22818
|
+
static ɵfac = function AddCommentsComponent_Factory(t) { return new (t || AddCommentsComponent)(); };
|
|
22819
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 22, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23225
22820
|
i0.ɵɵelementContainerStart(0, 0);
|
|
23226
22821
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
23227
22822
|
i0.ɵɵtext(5);
|
|
@@ -23239,18 +22834,23 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23239
22834
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
23240
22835
|
i0.ɵɵelementEnd()()();
|
|
23241
22836
|
i0.ɵɵelementContainerEnd();
|
|
22837
|
+
i0.ɵɵelementStart(18, "div", 12)(19, "button", 13);
|
|
22838
|
+
i0.ɵɵlistener("click", function AddCommentsComponent_Template_button_click_19_listener() { return ctx.onNext(); });
|
|
22839
|
+
i0.ɵɵtext(20);
|
|
22840
|
+
i0.ɵɵpipe(21, "rpxTranslate");
|
|
22841
|
+
i0.ɵɵelementEnd()();
|
|
23242
22842
|
} if (rf & 2) {
|
|
23243
22843
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23244
22844
|
i0.ɵɵadvance(2);
|
|
23245
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22845
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c0$s, ctx.errorMessages.length > 0));
|
|
23246
22846
|
i0.ɵɵadvance(2);
|
|
23247
22847
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
23248
22848
|
i0.ɵɵadvance();
|
|
23249
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
22849
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 14, ctx.addCommentsTitle), "");
|
|
23250
22850
|
i0.ɵɵadvance(2);
|
|
23251
22851
|
i0.ɵɵproperty("ngIf", ctx.optional);
|
|
23252
22852
|
i0.ɵɵadvance(2);
|
|
23253
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
22853
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
|
|
23254
22854
|
i0.ɵɵadvance(2);
|
|
23255
22855
|
i0.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled && !ctx.otherInternalFlagTypeSelected);
|
|
23256
22856
|
i0.ɵɵadvance();
|
|
@@ -23260,12 +22860,14 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23260
22860
|
i0.ɵɵadvance();
|
|
23261
22861
|
i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
|
|
23262
22862
|
i0.ɵɵadvance(2);
|
|
23263
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22863
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
22864
|
+
i0.ɵɵadvance(4);
|
|
22865
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 20, "Next"));
|
|
23264
22866
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
23265
22867
|
}
|
|
23266
22868
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
23267
22869
|
type: Component,
|
|
23268
|
-
args: [{ selector: 'ccd-add-comments', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper\"><label class=\"govuk-label govuk-label--m\" [for]=\"flagCommentsControlName\">\n {{addCommentsTitle | rpxTranslate}}<span *ngIf=\"optional\"> ({{'optional' | rpxTranslate}})</span>\n </label>\n </h1>\n <div id=\"add-comments-hint\" class=\"govuk-hint\">\n {{addCommentsHint | rpxTranslate}}\n </div>\n <div class=\"govuk-warning-text\"\n *ngIf=\"!isDisplayContextParameterExternal && isDisplayContextParameter2Point1Enabled && !otherInternalFlagTypeSelected\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{addCommentsStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"flag-comments-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"add-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"flagCommentsControlName\"\n [name]=\"flagCommentsControlName\" [formControlName]=\"flagCommentsControlName\" rows=\"5\"\n aria-describedby=\"add-comments-hint add-comments-char-limit-info add-comments-char-limit-error\"></textarea>\n <div id=\"add-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{addCommentsStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>" }]
|
|
22870
|
+
args: [{ selector: 'ccd-add-comments', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper\"><label class=\"govuk-label govuk-label--m\" [for]=\"flagCommentsControlName\">\n {{addCommentsTitle | rpxTranslate}}<span *ngIf=\"optional\"> ({{'optional' | rpxTranslate}})</span>\n </label>\n </h1>\n <div id=\"add-comments-hint\" class=\"govuk-hint\">\n {{addCommentsHint | rpxTranslate}}\n </div>\n <div class=\"govuk-warning-text\"\n *ngIf=\"!isDisplayContextParameterExternal && isDisplayContextParameter2Point1Enabled && !otherInternalFlagTypeSelected\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{addCommentsStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"flag-comments-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"add-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"flagCommentsControlName\"\n [name]=\"flagCommentsControlName\" [formControlName]=\"flagCommentsControlName\" rows=\"5\"\n aria-describedby=\"add-comments-hint add-comments-char-limit-info add-comments-char-limit-error\"></textarea>\n <div id=\"add-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{addCommentsStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
23269
22871
|
}], null, { formGroup: [{
|
|
23270
22872
|
type: Input
|
|
23271
22873
|
}], optional: [{
|
|
@@ -23277,7 +22879,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23277
22879
|
}], caseFlagStateEmitter: [{
|
|
23278
22880
|
type: Output
|
|
23279
22881
|
}] }); })();
|
|
23280
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber:
|
|
22882
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 11 }); })();
|
|
23281
22883
|
|
|
23282
22884
|
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
23283
22885
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -23779,7 +23381,7 @@ class CaseFlagTableComponent {
|
|
|
23779
23381
|
|
|
23780
23382
|
const _c0$r = a0 => ({ "form-group-error": a0 });
|
|
23781
23383
|
function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
23782
|
-
i0.ɵɵelementStart(0, "div",
|
|
23384
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
23783
23385
|
i0.ɵɵtext(2);
|
|
23784
23386
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23785
23387
|
i0.ɵɵelementEnd();
|
|
@@ -23794,8 +23396,8 @@ function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23794
23396
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.manageCaseFlagSelectedErrorMessage), " ");
|
|
23795
23397
|
} }
|
|
23796
23398
|
function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
23797
|
-
i0.ɵɵelementStart(0, "div",
|
|
23798
|
-
i0.ɵɵelement(1, "input",
|
|
23399
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
23400
|
+
i0.ɵɵelement(1, "input", 12)(2, "label", 13);
|
|
23799
23401
|
i0.ɵɵpipe(3, "manageCaseFlagsLabelDisplay");
|
|
23800
23402
|
i0.ɵɵelementEnd();
|
|
23801
23403
|
} if (rf & 2) {
|
|
@@ -23809,7 +23411,18 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
23809
23411
|
i0.ɵɵpropertyInterpolate1("for", "flag-selection-", i_r3, "");
|
|
23810
23412
|
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(3, 8, flagDisplay_r2), i0.ɵɵsanitizeHtml);
|
|
23811
23413
|
} }
|
|
23812
|
-
|
|
23414
|
+
function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
23415
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
23416
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "button", 15);
|
|
23417
|
+
i0.ɵɵlistener("click", function ManageCaseFlagsComponent_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
|
|
23418
|
+
i0.ɵɵtext(2);
|
|
23419
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23420
|
+
i0.ɵɵelementEnd()();
|
|
23421
|
+
} if (rf & 2) {
|
|
23422
|
+
i0.ɵɵadvance(2);
|
|
23423
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
23424
|
+
} }
|
|
23425
|
+
class ManageCaseFlagsComponent {
|
|
23813
23426
|
formGroup;
|
|
23814
23427
|
flagsData;
|
|
23815
23428
|
caseTitle;
|
|
@@ -23943,14 +23556,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23943
23556
|
errorMessages: this.errorMessages
|
|
23944
23557
|
});
|
|
23945
23558
|
}
|
|
23946
|
-
|
|
23947
|
-
|
|
23948
|
-
if (this.errorMessages.length === 0) {
|
|
23949
|
-
super.next();
|
|
23950
|
-
}
|
|
23951
|
-
}
|
|
23952
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵManageCaseFlagsComponent_BaseFactory; return function ManageCaseFlagsComponent_Factory(t) { return (ɵManageCaseFlagsComponent_BaseFactory || (ɵManageCaseFlagsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ManageCaseFlagsComponent)))(t || ManageCaseFlagsComponent); }; })();
|
|
23953
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ManageCaseFlagsComponent, selectors: [["ccd-manage-case-flags"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", caseTitle: "caseTitle", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 9, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "manage-case-flag-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "manage-case-flag-heading", 1, "govuk-fieldset__heading"], ["id", "manage-case-flag-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "manage-case-flag-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for", "innerHtml"]], template: function ManageCaseFlagsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23559
|
+
static ɵfac = function ManageCaseFlagsComponent_Factory(t) { return new (t || ManageCaseFlagsComponent)(); };
|
|
23560
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ManageCaseFlagsComponent, selectors: [["ccd-manage-case-flags"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", caseTitle: "caseTitle", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "manage-case-flag-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "manage-case-flag-heading", 1, "govuk-fieldset__heading"], ["id", "manage-case-flag-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "manage-case-flag-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for", "innerHtml"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function ManageCaseFlagsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23954
23561
|
i0.ɵɵelementContainerStart(0, 0);
|
|
23955
23562
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
23956
23563
|
i0.ɵɵtext(5);
|
|
@@ -23961,21 +23568,24 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23961
23568
|
i0.ɵɵtemplate(9, ManageCaseFlagsComponent_div_9_Template, 4, 10, "div", 7);
|
|
23962
23569
|
i0.ɵɵelementEnd()()();
|
|
23963
23570
|
i0.ɵɵelementContainerEnd();
|
|
23571
|
+
i0.ɵɵtemplate(10, ManageCaseFlagsComponent_div_10_Template, 4, 3, "div", 8);
|
|
23964
23572
|
} if (rf & 2) {
|
|
23965
23573
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23966
23574
|
i0.ɵɵadvance();
|
|
23967
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23575
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$r, ctx.errorMessages.length > 0));
|
|
23968
23576
|
i0.ɵɵadvance(4);
|
|
23969
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
23577
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
23970
23578
|
i0.ɵɵadvance(2);
|
|
23971
23579
|
i0.ɵɵproperty("ngIf", ctx.manageCaseFlagSelectedErrorMessage);
|
|
23972
23580
|
i0.ɵɵadvance(2);
|
|
23973
23581
|
i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
|
|
23582
|
+
i0.ɵɵadvance();
|
|
23583
|
+
i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
23974
23584
|
} }, styles: [".flag-name-and-description{font-weight:700}\n"], encapsulation: 2 });
|
|
23975
23585
|
}
|
|
23976
23586
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
23977
23587
|
type: Component,
|
|
23978
|
-
args: [{ selector: 'ccd-manage-case-flags', encapsulation: ViewEncapsulation.None, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"manage-case-flag-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"manage-case-flag-heading\" class=\"govuk-fieldset__heading\">\n {{manageCaseFlagTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"manage-case-flag-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"manageCaseFlagSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{manageCaseFlagSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagDisplay of flagsDisplayData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-selection-{{i}}\" [name]=\"selectedControlName\"\n type=\"radio\" [value]=\"flagDisplay\" [formControlName]=\"selectedControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-selection-{{i}}\" [innerHtml]=\"flagDisplay | manageCaseFlagsLabelDisplay\"></label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>", styles: [".flag-name-and-description{font-weight:700}\n"] }]
|
|
23588
|
+
args: [{ selector: 'ccd-manage-case-flags', encapsulation: ViewEncapsulation.None, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"manage-case-flag-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"manage-case-flag-heading\" class=\"govuk-fieldset__heading\">\n {{manageCaseFlagTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"manage-case-flag-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"manageCaseFlagSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{manageCaseFlagSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagDisplay of flagsDisplayData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-selection-{{i}}\" [name]=\"selectedControlName\"\n type=\"radio\" [value]=\"flagDisplay\" [formControlName]=\"selectedControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-selection-{{i}}\" [innerHtml]=\"flagDisplay | manageCaseFlagsLabelDisplay\"></label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!noFlagsError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".flag-name-and-description{font-weight:700}\n"] }]
|
|
23979
23589
|
}], null, { formGroup: [{
|
|
23980
23590
|
type: Input
|
|
23981
23591
|
}], flagsData: [{
|
|
@@ -23987,7 +23597,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23987
23597
|
}], caseFlagStateEmitter: [{
|
|
23988
23598
|
type: Output
|
|
23989
23599
|
}] }); })();
|
|
23990
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ManageCaseFlagsComponent, { className: "ManageCaseFlagsComponent", filePath: "lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.ts", lineNumber:
|
|
23600
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ManageCaseFlagsComponent, { className: "ManageCaseFlagsComponent", filePath: "lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.ts", lineNumber: 14 }); })();
|
|
23991
23601
|
|
|
23992
23602
|
// tslint:disable:variable-name
|
|
23993
23603
|
/**
|
|
@@ -24052,7 +23662,7 @@ var SearchLanguageInterpreterControlNames;
|
|
|
24052
23662
|
|
|
24053
23663
|
const _c0$q = a0 => ({ "form-group-error": a0 });
|
|
24054
23664
|
function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24055
|
-
i0.ɵɵelementStart(0, "div",
|
|
23665
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 21);
|
|
24056
23666
|
i0.ɵɵtext(2);
|
|
24057
23667
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24058
23668
|
i0.ɵɵelementEnd();
|
|
@@ -24067,7 +23677,7 @@ function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf &
|
|
|
24067
23677
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotSelectedErrorMessage), " ");
|
|
24068
23678
|
} }
|
|
24069
23679
|
function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24070
|
-
i0.ɵɵelementStart(0, "div",
|
|
23680
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 21);
|
|
24071
23681
|
i0.ɵɵtext(2);
|
|
24072
23682
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24073
23683
|
i0.ɵɵelementEnd();
|
|
@@ -24082,7 +23692,7 @@ function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf &
|
|
|
24082
23692
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageEnteredInBothFieldsErrorMessage), " ");
|
|
24083
23693
|
} }
|
|
24084
23694
|
function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
24085
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23695
|
+
i0.ɵɵelementStart(0, "mat-option", 23);
|
|
24086
23696
|
i0.ɵɵtext(1);
|
|
24087
23697
|
i0.ɵɵpipe(2, "languageInterpreterDisplay");
|
|
24088
23698
|
i0.ɵɵelementEnd();
|
|
@@ -24093,7 +23703,7 @@ function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if
|
|
|
24093
23703
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, language_r3), " ");
|
|
24094
23704
|
} }
|
|
24095
23705
|
function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if (rf & 1) {
|
|
24096
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23706
|
+
i0.ɵɵelementStart(0, "mat-option", 24);
|
|
24097
23707
|
i0.ɵɵtext(1);
|
|
24098
23708
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24099
23709
|
i0.ɵɵelementEnd();
|
|
@@ -24102,7 +23712,7 @@ function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if
|
|
|
24102
23712
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "No results found"));
|
|
24103
23713
|
} }
|
|
24104
23714
|
function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24105
|
-
i0.ɵɵelementStart(0, "div",
|
|
23715
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "span", 21);
|
|
24106
23716
|
i0.ɵɵtext(2);
|
|
24107
23717
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24108
23718
|
i0.ɵɵelementEnd();
|
|
@@ -24117,7 +23727,7 @@ function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if
|
|
|
24117
23727
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotEnteredErrorMessage), " ");
|
|
24118
23728
|
} }
|
|
24119
23729
|
function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24120
|
-
i0.ɵɵelementStart(0, "div",
|
|
23730
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 21);
|
|
24121
23731
|
i0.ɵɵtext(2);
|
|
24122
23732
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24123
23733
|
i0.ɵɵelementEnd();
|
|
@@ -24132,12 +23742,12 @@ function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if
|
|
|
24132
23742
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageCharLimitErrorMessage), " ");
|
|
24133
23743
|
} }
|
|
24134
23744
|
function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
24135
|
-
i0.ɵɵelementStart(0, "div",
|
|
23745
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 2)(2, "label", 26);
|
|
24136
23746
|
i0.ɵɵtext(3);
|
|
24137
23747
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24138
23748
|
i0.ɵɵelementEnd();
|
|
24139
|
-
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div",
|
|
24140
|
-
i0.ɵɵelement(7, "input",
|
|
23749
|
+
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 27)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 28);
|
|
23750
|
+
i0.ɵɵelement(7, "input", 29);
|
|
24141
23751
|
i0.ɵɵelementEnd()();
|
|
24142
23752
|
} if (rf & 2) {
|
|
24143
23753
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -24152,7 +23762,7 @@ function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf &
|
|
|
24152
23762
|
i0.ɵɵadvance();
|
|
24153
23763
|
i0.ɵɵproperty("name", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
|
|
24154
23764
|
} }
|
|
24155
|
-
class SearchLanguageInterpreterComponent
|
|
23765
|
+
class SearchLanguageInterpreterComponent {
|
|
24156
23766
|
rpxTranslationService;
|
|
24157
23767
|
get searchLanguageInterpreterStep() {
|
|
24158
23768
|
return SearchLanguageInterpreterStep;
|
|
@@ -24174,8 +23784,7 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24174
23784
|
noResults = false;
|
|
24175
23785
|
languageMaxCharLimit = 80;
|
|
24176
23786
|
signLanguageFlagCode = 'RA0042';
|
|
24177
|
-
constructor(rpxTranslationService
|
|
24178
|
-
super(multipageComponentStateService);
|
|
23787
|
+
constructor(rpxTranslationService) {
|
|
24179
23788
|
this.rpxTranslationService = rpxTranslationService;
|
|
24180
23789
|
}
|
|
24181
23790
|
ngOnInit() {
|
|
@@ -24275,14 +23884,8 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24275
23884
|
!language.value && language.value_cy.toLowerCase().includes(searchTerm.toLowerCase(), 0))
|
|
24276
23885
|
: [];
|
|
24277
23886
|
}
|
|
24278
|
-
|
|
24279
|
-
|
|
24280
|
-
if (this.errorMessages.length === 0) {
|
|
24281
|
-
super.next();
|
|
24282
|
-
}
|
|
24283
|
-
}
|
|
24284
|
-
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
24285
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchLanguageInterpreterComponent, selectors: [["ccd-search-language-interpreter"]], inputs: { formGroup: "formGroup", flagType: "flagType" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 25, consts: [["autoSearchLanguage", "matAutocomplete"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], ["id", "language-search-box-hint", 1, "govuk-hint"], [1, "auto-complete-container"], ["id", "language-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-entered-in-both-fields-error-message", "class", "govuk-error-message", 4, "ngIf"], ["aria-label", "Language search box", "matInput", "", "type", "text", 1, "govuk-input", "search-language__input", 3, "formControlName", "matAutocomplete"], ["autoActiveFirstOption", "", 1, "mat-autocomplete-panel-extend", 3, "displayWith"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes", "govuk-checkboxes--small", "govuk-checkboxes--conditional"], [1, "govuk-radios__item"], ["id", "enter-language-manually", "name", "enter-language-manually", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change"], ["for", "enter-language-manually", 1, "govuk-label", "govuk-checkboxes__label"], ["class", "govuk-radios__conditional", 4, "ngIf"], ["id", "language-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "language-entered-in-both-fields-error-message", 1, "govuk-error-message"], [3, "value"], ["disabled", ""], [1, "govuk-radios__conditional"], ["for", "manual-language-entry", 1, "govuk-label"], ["id", "language-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-char-limit-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "manual-language-entry", "type", "text", 1, "govuk-input", "govuk-input--width-20", 3, "name", "formControlName"], ["id", "language-not-entered-error-message", 1, "govuk-error-message"], ["id", "language-char-limit-error-message", 1, "govuk-error-message"]], template: function SearchLanguageInterpreterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23887
|
+
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
23888
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchLanguageInterpreterComponent, selectors: [["ccd-search-language-interpreter"]], inputs: { formGroup: "formGroup", flagType: "flagType" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 29, vars: 28, consts: [["autoSearchLanguage", "matAutocomplete"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], ["id", "language-search-box-hint", 1, "govuk-hint"], [1, "auto-complete-container"], ["id", "language-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-entered-in-both-fields-error-message", "class", "govuk-error-message", 4, "ngIf"], ["aria-label", "Language search box", "matInput", "", "type", "text", 1, "govuk-input", "search-language__input", 3, "formControlName", "matAutocomplete"], ["autoActiveFirstOption", "", 1, "mat-autocomplete-panel-extend", 3, "displayWith"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes", "govuk-checkboxes--small", "govuk-checkboxes--conditional"], [1, "govuk-radios__item"], ["id", "enter-language-manually", "name", "enter-language-manually", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change"], ["for", "enter-language-manually", 1, "govuk-label", "govuk-checkboxes__label"], ["class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "language-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "language-entered-in-both-fields-error-message", 1, "govuk-error-message"], [3, "value"], ["disabled", ""], [1, "govuk-radios__conditional"], ["for", "manual-language-entry", 1, "govuk-label"], ["id", "language-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-char-limit-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "manual-language-entry", "type", "text", 1, "govuk-input", "govuk-input--width-20", 3, "name", "formControlName"], ["id", "language-not-entered-error-message", 1, "govuk-error-message"], ["id", "language-char-limit-error-message", 1, "govuk-error-message"]], template: function SearchLanguageInterpreterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24286
23889
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
24287
23890
|
i0.ɵɵelementContainerStart(0, 1);
|
|
24288
23891
|
i0.ɵɵelementStart(1, "div", 2)(2, "h1", 3)(3, "label", 4);
|
|
@@ -24311,17 +23914,22 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24311
23914
|
i0.ɵɵtemplate(24, SearchLanguageInterpreterComponent_div_24_Template, 8, 10, "div", 17);
|
|
24312
23915
|
i0.ɵɵelementEnd()();
|
|
24313
23916
|
i0.ɵɵelementContainerEnd();
|
|
23917
|
+
i0.ɵɵelementStart(25, "div", 18)(26, "button", 19);
|
|
23918
|
+
i0.ɵɵlistener("click", function SearchLanguageInterpreterComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
23919
|
+
i0.ɵɵtext(27);
|
|
23920
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
23921
|
+
i0.ɵɵelementEnd()();
|
|
24314
23922
|
} if (rf & 2) {
|
|
24315
23923
|
const autoSearchLanguage_r4 = i0.ɵɵreference(14);
|
|
24316
23924
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24317
23925
|
i0.ɵɵadvance();
|
|
24318
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23926
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
24319
23927
|
i0.ɵɵadvance(2);
|
|
24320
23928
|
i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
|
|
24321
23929
|
i0.ɵɵadvance();
|
|
24322
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
23930
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 15, ctx.flagType, "name"), " ");
|
|
24323
23931
|
i0.ɵɵadvance(3);
|
|
24324
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
23932
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 18, ctx.searchLanguageInterpreterHint), " ");
|
|
24325
23933
|
i0.ɵɵadvance(3);
|
|
24326
23934
|
i0.ɵɵproperty("ngIf", ctx.languageNotSelectedErrorMessage);
|
|
24327
23935
|
i0.ɵɵadvance();
|
|
@@ -24331,30 +23939,32 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24331
23939
|
i0.ɵɵadvance();
|
|
24332
23940
|
i0.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
24333
23941
|
i0.ɵɵadvance(2);
|
|
24334
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16,
|
|
23942
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 20, ctx.filteredLanguages$));
|
|
24335
23943
|
i0.ɵɵadvance(2);
|
|
24336
23944
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length >= ctx.minSearchCharacters);
|
|
24337
23945
|
i0.ɵɵadvance(5);
|
|
24338
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23,
|
|
23946
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
|
|
24339
23947
|
i0.ɵɵadvance(2);
|
|
24340
23948
|
i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
23949
|
+
i0.ɵɵadvance(3);
|
|
23950
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 24, "Next"));
|
|
24341
23951
|
} }, styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width: 641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
|
|
24342
23952
|
}
|
|
24343
23953
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
24344
23954
|
type: Component,
|
|
24345
|
-
args: [{ selector: 'ccd-search-language-interpreter', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotSelectedErrorMessage || languageEnteredInBothFieldsErrorMessage}\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </h1>\n <div id=\"language-search-box-hint\" class=\"govuk-hint\">\n {{searchLanguageInterpreterHint | rpxTranslate}}\n </div>\n <div class=\"auto-complete-container\">\n <div id=\"language-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-entered-in-both-fields-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageEnteredInBothFieldsErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageEnteredInBothFieldsErrorMessage | rpxTranslate}}\n </div>\n <input aria-label=\"Language search box\" matInput [formControlName]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\" [matAutocomplete]=\"autoSearchLanguage\"\n class=\"govuk-input search-language__input\" type=\"text\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLanguage=\"matAutocomplete\"\n [displayWith]=\"displayLanguage\">\n <mat-option *ngFor=\"let language of filteredLanguages$ | async\" [value]=\"language\">\n {{language | languageInterpreterDisplay}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length >= minSearchCharacters\" disabled>{{'No results found' | rpxTranslate}}</mat-option>\n </mat-autocomplete>\n </div>\n <div class=\"govuk-checkboxes govuk-checkboxes--small govuk-checkboxes--conditional\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-checkboxes__input\" id=\"enter-language-manually\" name=\"enter-language-manually\" type=\"checkbox\"\n (change)=\"onEnterLanguageManually($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"enter-language-manually\">\n {{searchLanguageInterpreterStep.CHECKBOX_LABEL | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"isCheckboxEnabled\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotEnteredErrorMessage || languageCharLimitErrorMessage }\">\n <label class=\"govuk-label\" for=\"manual-language-entry\">{{searchLanguageInterpreterStep.INPUT_LABEL | rpxTranslate}}</label>\n <div id=\"language-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-char-limit-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageCharLimitErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-input--width-20\" id=\"manual-language-entry\" [name]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\" type=\"text\"\n [formControlName]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\">\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}\n"] }]
|
|
24346
|
-
}], () => [{ type: i1.RpxTranslationService }
|
|
23955
|
+
args: [{ selector: 'ccd-search-language-interpreter', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotSelectedErrorMessage || languageEnteredInBothFieldsErrorMessage}\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </h1>\n <div id=\"language-search-box-hint\" class=\"govuk-hint\">\n {{searchLanguageInterpreterHint | rpxTranslate}}\n </div>\n <div class=\"auto-complete-container\">\n <div id=\"language-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-entered-in-both-fields-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageEnteredInBothFieldsErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageEnteredInBothFieldsErrorMessage | rpxTranslate}}\n </div>\n <input aria-label=\"Language search box\" matInput [formControlName]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\" [matAutocomplete]=\"autoSearchLanguage\"\n class=\"govuk-input search-language__input\" type=\"text\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLanguage=\"matAutocomplete\"\n [displayWith]=\"displayLanguage\">\n <mat-option *ngFor=\"let language of filteredLanguages$ | async\" [value]=\"language\">\n {{language | languageInterpreterDisplay}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length >= minSearchCharacters\" disabled>{{'No results found' | rpxTranslate}}</mat-option>\n </mat-autocomplete>\n </div>\n <div class=\"govuk-checkboxes govuk-checkboxes--small govuk-checkboxes--conditional\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-checkboxes__input\" id=\"enter-language-manually\" name=\"enter-language-manually\" type=\"checkbox\"\n (change)=\"onEnterLanguageManually($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"enter-language-manually\">\n {{searchLanguageInterpreterStep.CHECKBOX_LABEL | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"isCheckboxEnabled\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotEnteredErrorMessage || languageCharLimitErrorMessage }\">\n <label class=\"govuk-label\" for=\"manual-language-entry\">{{searchLanguageInterpreterStep.INPUT_LABEL | rpxTranslate}}</label>\n <div id=\"language-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-char-limit-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageCharLimitErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-input--width-20\" id=\"manual-language-entry\" [name]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\" type=\"text\"\n [formControlName]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\">\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}\n"] }]
|
|
23956
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
24347
23957
|
type: Input
|
|
24348
23958
|
}], flagType: [{
|
|
24349
23959
|
type: Input
|
|
24350
23960
|
}], caseFlagStateEmitter: [{
|
|
24351
23961
|
type: Output
|
|
24352
23962
|
}] }); })();
|
|
24353
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchLanguageInterpreterComponent, { className: "SearchLanguageInterpreterComponent", filePath: "lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.ts", lineNumber:
|
|
23963
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchLanguageInterpreterComponent, { className: "SearchLanguageInterpreterComponent", filePath: "lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.ts", lineNumber: 17 }); })();
|
|
24354
23964
|
|
|
24355
23965
|
const _c0$p = a0 => ({ "form-group-error": a0 });
|
|
24356
23966
|
function SelectFlagLocationComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24357
|
-
i0.ɵɵelementStart(0, "div",
|
|
23967
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
24358
23968
|
i0.ɵɵtext(2);
|
|
24359
23969
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24360
23970
|
i0.ɵɵelementEnd();
|
|
@@ -24381,7 +23991,7 @@ function SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Templat
|
|
|
24381
23991
|
function SelectFlagLocationComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
24382
23992
|
i0.ɵɵelementContainerStart(0);
|
|
24383
23993
|
i0.ɵɵtext(1);
|
|
24384
|
-
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container",
|
|
23994
|
+
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 14);
|
|
24385
23995
|
i0.ɵɵelementContainerEnd();
|
|
24386
23996
|
} if (rf & 2) {
|
|
24387
23997
|
const flagsInstance_r2 = i0.ɵɵnextContext().$implicit;
|
|
@@ -24401,10 +24011,10 @@ function SelectFlagLocationComponent_div_9_ng_container_4_Template(rf, ctx) { if
|
|
|
24401
24011
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseLevelFlagLabel), " ");
|
|
24402
24012
|
} }
|
|
24403
24013
|
function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
24404
|
-
i0.ɵɵelementStart(0, "div",
|
|
24405
|
-
i0.ɵɵelement(1, "input",
|
|
24406
|
-
i0.ɵɵelementStart(2, "label",
|
|
24407
|
-
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container",
|
|
24014
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
24015
|
+
i0.ɵɵelement(1, "input", 12);
|
|
24016
|
+
i0.ɵɵelementStart(2, "label", 13);
|
|
24017
|
+
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container", 14)(4, SelectFlagLocationComponent_div_9_ng_container_4_Template, 3, 3, "ng-container", 14);
|
|
24408
24018
|
i0.ɵɵelementEnd()();
|
|
24409
24019
|
} if (rf & 2) {
|
|
24410
24020
|
const flagsInstance_r2 = ctx.$implicit;
|
|
@@ -24420,7 +24030,18 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
24420
24030
|
i0.ɵɵadvance();
|
|
24421
24031
|
i0.ɵɵproperty("ngIf", !flagsInstance_r2.flags.partyName);
|
|
24422
24032
|
} }
|
|
24423
|
-
|
|
24033
|
+
function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24034
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
24035
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "button", 16);
|
|
24036
|
+
i0.ɵɵlistener("click", function SelectFlagLocationComponent_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
|
|
24037
|
+
i0.ɵɵtext(2);
|
|
24038
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24039
|
+
i0.ɵɵelementEnd()();
|
|
24040
|
+
} if (rf & 2) {
|
|
24041
|
+
i0.ɵɵadvance(2);
|
|
24042
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24043
|
+
} }
|
|
24044
|
+
class SelectFlagLocationComponent {
|
|
24424
24045
|
formGroup;
|
|
24425
24046
|
flagsData;
|
|
24426
24047
|
isDisplayContextParameterExternal = false;
|
|
@@ -24495,14 +24116,8 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24495
24116
|
// Return case flag field state and error messages to the parent
|
|
24496
24117
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24497
24118
|
}
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
if (this.errorMessages.length === 0) {
|
|
24501
|
-
super.next();
|
|
24502
|
-
}
|
|
24503
|
-
}
|
|
24504
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵSelectFlagLocationComponent_BaseFactory; return function SelectFlagLocationComponent_Factory(t) { return (ɵSelectFlagLocationComponent_BaseFactory || (ɵSelectFlagLocationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SelectFlagLocationComponent)))(t || SelectFlagLocationComponent); }; })();
|
|
24505
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 9, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24119
|
+
static ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
|
|
24120
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24506
24121
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24507
24122
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24508
24123
|
i0.ɵɵtext(5);
|
|
@@ -24513,21 +24128,24 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24513
24128
|
i0.ɵɵtemplate(9, SelectFlagLocationComponent_div_9_Template, 5, 9, "div", 7);
|
|
24514
24129
|
i0.ɵɵelementEnd()()();
|
|
24515
24130
|
i0.ɵɵelementContainerEnd();
|
|
24131
|
+
i0.ɵɵtemplate(10, SelectFlagLocationComponent_div_10_Template, 4, 3, "div", 8);
|
|
24516
24132
|
} if (rf & 2) {
|
|
24517
24133
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24518
24134
|
i0.ɵɵadvance();
|
|
24519
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24135
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$p, ctx.errorMessages.length > 0));
|
|
24520
24136
|
i0.ɵɵadvance(4);
|
|
24521
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24137
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
24522
24138
|
i0.ɵɵadvance(2);
|
|
24523
24139
|
i0.ɵɵproperty("ngIf", ctx.flagLocationNotSelectedErrorMessage);
|
|
24524
24140
|
i0.ɵɵadvance(2);
|
|
24525
24141
|
i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
|
|
24142
|
+
i0.ɵɵadvance();
|
|
24143
|
+
i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
24526
24144
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24527
24145
|
}
|
|
24528
24146
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
24529
24147
|
type: Component,
|
|
24530
|
-
args: [{ selector: 'ccd-select-flag-location', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-location-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-location-heading\" class=\"govuk-fieldset__heading\">\n {{flagLocationTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"flag-location-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagLocationNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagLocationNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagsInstance of filteredFlagsData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-location-{{i}}\" [name]=\"selectedLocationControlName\"\n type=\"radio\" [value]=\"flagsInstance\" [formControlName]=\"selectedLocationControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-location-{{i}}\">\n <ng-container *ngIf=\"flagsInstance.flags.partyName\">\n {{flagsInstance.flags.partyName}}\n <ng-container *ngIf=\"flagsInstance.flags.roleOnCase\">\n ({{flagsInstance.flags.roleOnCase | rpxTranslate}})\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!flagsInstance.flags.partyName\">\n {{caseLevelFlagLabel | rpxTranslate}}\n </ng-container>\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>" }]
|
|
24148
|
+
args: [{ selector: 'ccd-select-flag-location', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-location-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-location-heading\" class=\"govuk-fieldset__heading\">\n {{flagLocationTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"flag-location-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagLocationNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagLocationNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagsInstance of filteredFlagsData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-location-{{i}}\" [name]=\"selectedLocationControlName\"\n type=\"radio\" [value]=\"flagsInstance\" [formControlName]=\"selectedLocationControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-location-{{i}}\">\n <ng-container *ngIf=\"flagsInstance.flags.partyName\">\n {{flagsInstance.flags.partyName}}\n <ng-container *ngIf=\"flagsInstance.flags.roleOnCase\">\n ({{flagsInstance.flags.roleOnCase | rpxTranslate}})\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!flagsInstance.flags.partyName\">\n {{caseLevelFlagLabel | rpxTranslate}}\n </ng-container>\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!caseFlagsConfigError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
24531
24149
|
}], null, { formGroup: [{
|
|
24532
24150
|
type: Input
|
|
24533
24151
|
}], flagsData: [{
|
|
@@ -24537,7 +24155,7 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24537
24155
|
}], caseFlagStateEmitter: [{
|
|
24538
24156
|
type: Output
|
|
24539
24157
|
}] }); })();
|
|
24540
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagLocationComponent, { className: "SelectFlagLocationComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.ts", lineNumber:
|
|
24158
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagLocationComponent, { className: "SelectFlagLocationComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.ts", lineNumber: 11 }); })();
|
|
24541
24159
|
|
|
24542
24160
|
const _c0$o = a0 => ({ "form-group-error": a0 });
|
|
24543
24161
|
const _c1$8 = a0 => ({ "govuk-input--error": a0 });
|
|
@@ -24560,7 +24178,7 @@ function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx)
|
|
|
24560
24178
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, ctx_r0.cachedFlagType, "name"), " ");
|
|
24561
24179
|
} }
|
|
24562
24180
|
function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24563
|
-
i0.ɵɵelementStart(0, "div",
|
|
24181
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
24564
24182
|
i0.ɵɵtext(2);
|
|
24565
24183
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24566
24184
|
i0.ɵɵelementEnd();
|
|
@@ -24575,9 +24193,9 @@ function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf
|
|
|
24575
24193
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeNotSelectedErrorMessage), " ");
|
|
24576
24194
|
} }
|
|
24577
24195
|
function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24578
|
-
i0.ɵɵelementStart(0, "div",
|
|
24579
|
-
i0.ɵɵelement(1, "input",
|
|
24580
|
-
i0.ɵɵelementStart(2, "label",
|
|
24196
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
24197
|
+
i0.ɵɵelement(1, "input", 16);
|
|
24198
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
24581
24199
|
i0.ɵɵtext(3);
|
|
24582
24200
|
i0.ɵɵpipe(4, "flagFieldDisplay");
|
|
24583
24201
|
i0.ɵɵelementEnd()();
|
|
@@ -24594,7 +24212,7 @@ function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (r
|
|
|
24594
24212
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(4, 8, flagType_r2, "name"), " ");
|
|
24595
24213
|
} }
|
|
24596
24214
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24597
|
-
i0.ɵɵelementStart(0, "div",
|
|
24215
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 14);
|
|
24598
24216
|
i0.ɵɵtext(2);
|
|
24599
24217
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24600
24218
|
i0.ɵɵelementEnd();
|
|
@@ -24609,9 +24227,9 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
|
|
|
24609
24227
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeErrorMessage), " ");
|
|
24610
24228
|
} }
|
|
24611
24229
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24612
|
-
i0.ɵɵelementStart(0, "div",
|
|
24613
|
-
i0.ɵɵelement(1, "input",
|
|
24614
|
-
i0.ɵɵelementStart(2, "label",
|
|
24230
|
+
i0.ɵɵelementStart(0, "div", 24);
|
|
24231
|
+
i0.ɵɵelement(1, "input", 25);
|
|
24232
|
+
i0.ɵɵelementStart(2, "label", 26);
|
|
24615
24233
|
i0.ɵɵtext(3);
|
|
24616
24234
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24617
24235
|
i0.ɵɵelementEnd()();
|
|
@@ -24623,14 +24241,14 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
24623
24241
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
24624
24242
|
} }
|
|
24625
24243
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24626
|
-
i0.ɵɵelementStart(0, "div",
|
|
24244
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 4)(2, "label", 19);
|
|
24627
24245
|
i0.ɵɵtext(3);
|
|
24628
24246
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24629
24247
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24630
24248
|
i0.ɵɵelementEnd();
|
|
24631
|
-
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div",
|
|
24632
|
-
i0.ɵɵelement(7, "input",
|
|
24633
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div",
|
|
24249
|
+
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
|
|
24250
|
+
i0.ɵɵelement(7, "input", 21);
|
|
24251
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
|
|
24634
24252
|
i0.ɵɵelementEnd()();
|
|
24635
24253
|
} if (rf & 2) {
|
|
24636
24254
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -24646,13 +24264,13 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
24646
24264
|
i0.ɵɵproperty("ngIf", !ctx_r0.isDisplayContextParameterExternal && !ctx_r0.isCaseLevelFlag && ctx_r0.isDisplayContextParameter2Point1Enabled);
|
|
24647
24265
|
} }
|
|
24648
24266
|
function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
24649
|
-
i0.ɵɵelementContainerStart(0,
|
|
24650
|
-
i0.ɵɵelementStart(1, "div",
|
|
24651
|
-
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container",
|
|
24267
|
+
i0.ɵɵelementContainerStart(0, 3);
|
|
24268
|
+
i0.ɵɵelementStart(1, "div", 4)(2, "fieldset", 5)(3, "legend", 6)(4, "h1", 7);
|
|
24269
|
+
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 8)(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
24652
24270
|
i0.ɵɵelementEnd()();
|
|
24653
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div",
|
|
24654
|
-
i0.ɵɵelementStart(9, "div",
|
|
24655
|
-
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div",
|
|
24271
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
|
|
24272
|
+
i0.ɵɵelementStart(9, "div", 10);
|
|
24273
|
+
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div", 11)(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 12);
|
|
24656
24274
|
i0.ɵɵelementEnd()()();
|
|
24657
24275
|
i0.ɵɵelementContainerEnd();
|
|
24658
24276
|
} if (rf & 2) {
|
|
@@ -24662,7 +24280,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24662
24280
|
i0.ɵɵadvance();
|
|
24663
24281
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
24664
24282
|
i0.ɵɵadvance(4);
|
|
24665
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType
|
|
24283
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType)("ngIfElse", priorFlagTypeSelected_r4);
|
|
24666
24284
|
i0.ɵɵadvance(3);
|
|
24667
24285
|
i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
24668
24286
|
i0.ɵɵadvance(2);
|
|
@@ -24670,7 +24288,18 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24670
24288
|
i0.ɵɵadvance();
|
|
24671
24289
|
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
24672
24290
|
} }
|
|
24673
|
-
|
|
24291
|
+
function SelectFlagTypeComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
24292
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24293
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "button", 28);
|
|
24294
|
+
i0.ɵɵlistener("click", function SelectFlagTypeComponent_div_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
|
|
24295
|
+
i0.ɵɵtext(2);
|
|
24296
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24297
|
+
i0.ɵɵelementEnd()();
|
|
24298
|
+
} if (rf & 2) {
|
|
24299
|
+
i0.ɵɵadvance(2);
|
|
24300
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24301
|
+
} }
|
|
24302
|
+
class SelectFlagTypeComponent {
|
|
24674
24303
|
caseFlagRefdataService;
|
|
24675
24304
|
formGroup;
|
|
24676
24305
|
jurisdiction;
|
|
@@ -24692,8 +24321,6 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24692
24321
|
flagTypeControlChangesSubscription;
|
|
24693
24322
|
caseFlagFormField = CaseFlagFormFields;
|
|
24694
24323
|
isCaseLevelFlag = false;
|
|
24695
|
-
cachedRDFlagTypes;
|
|
24696
|
-
subJourneyIndex = 0;
|
|
24697
24324
|
maxCharactersForOtherFlagType = 80;
|
|
24698
24325
|
// Code for "Other" flag type as defined in Reference Data
|
|
24699
24326
|
otherFlagTypeCode = 'OT0001';
|
|
@@ -24701,16 +24328,15 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24701
24328
|
get caseFlagWizardStepTitle() {
|
|
24702
24329
|
return CaseFlagWizardStepTitle;
|
|
24703
24330
|
}
|
|
24704
|
-
constructor(caseFlagRefdataService, pageStateService) {
|
|
24705
|
-
super(pageStateService);
|
|
24706
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24707
|
-
}
|
|
24708
24331
|
get selectedFlagType() {
|
|
24709
24332
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value;
|
|
24710
24333
|
}
|
|
24711
24334
|
get otherFlagTypeSelected() {
|
|
24712
24335
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value?.flagCode === this.otherFlagTypeCode;
|
|
24713
24336
|
}
|
|
24337
|
+
constructor(caseFlagRefdataService) {
|
|
24338
|
+
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24339
|
+
}
|
|
24714
24340
|
ngOnInit() {
|
|
24715
24341
|
this.isCaseLevelFlag = this.selectedFlagsLocation?.flags?.flagsCaseFieldId === this.caseLevelCaseFlagsFieldId;
|
|
24716
24342
|
this.flagTypes = [];
|
|
@@ -24721,7 +24347,7 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24721
24347
|
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(false));
|
|
24722
24348
|
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
24723
24349
|
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.valueChanges
|
|
24724
|
-
.subscribe(
|
|
24350
|
+
.subscribe(_ => {
|
|
24725
24351
|
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.setValue('');
|
|
24726
24352
|
this.cachedPath = [];
|
|
24727
24353
|
// required to clear language interpreter
|
|
@@ -24735,8 +24361,8 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24735
24361
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
24736
24362
|
.getCaseFlagsRefdata(this.hmctsServiceId, flagType, true, this.isDisplayContextParameterExternal)
|
|
24737
24363
|
.subscribe({
|
|
24738
|
-
next:
|
|
24739
|
-
error:
|
|
24364
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24365
|
+
error: error => this.onRefdataError(error)
|
|
24740
24366
|
});
|
|
24741
24367
|
}
|
|
24742
24368
|
else {
|
|
@@ -24744,13 +24370,13 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24744
24370
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
|
|
24745
24371
|
.pipe(
|
|
24746
24372
|
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
24747
|
-
catchError(
|
|
24373
|
+
catchError(_ => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
|
|
24748
24374
|
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
24749
24375
|
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
24750
|
-
switchMap(
|
|
24376
|
+
switchMap(serviceDetails => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
|
|
24751
24377
|
.subscribe({
|
|
24752
|
-
next:
|
|
24753
|
-
error:
|
|
24378
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24379
|
+
error: error => this.onRefdataError(error)
|
|
24754
24380
|
});
|
|
24755
24381
|
}
|
|
24756
24382
|
}
|
|
@@ -24778,40 +24404,10 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24778
24404
|
// when displaying the next set of child flags
|
|
24779
24405
|
this.cachedFlagType = this.selectedFlagType;
|
|
24780
24406
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
24781
|
-
|
|
24782
|
-
|
|
24783
|
-
}
|
|
24784
|
-
else {
|
|
24785
|
-
this.cachedPath?.shift();
|
|
24786
|
-
const value = this.cachedPath?.length ? this.cachedPath[0] : null;
|
|
24787
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(value, { emitEvent: false });
|
|
24788
|
-
}
|
|
24789
|
-
this.subJourneyIndex++;
|
|
24407
|
+
this.cachedPath?.shift();
|
|
24408
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath?.length ? this.cachedPath[0] : null, { emitEvent: false });
|
|
24790
24409
|
}
|
|
24791
24410
|
}
|
|
24792
|
-
// Simplified version of the onPrevious method with optimized code
|
|
24793
|
-
onPrevious() {
|
|
24794
|
-
if (this.cachedFlagType) {
|
|
24795
|
-
if (this.cachedFlagType.Path.length === 1) {
|
|
24796
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24797
|
-
this.flagTypes = this.cachedRDFlagTypes[0].childFlags;
|
|
24798
|
-
}
|
|
24799
|
-
else {
|
|
24800
|
-
let currentPath = this.cachedRDFlagTypes[0];
|
|
24801
|
-
const pathToSearch = this.cachedFlagType.Path.slice(1);
|
|
24802
|
-
for (const pathElement of pathToSearch) {
|
|
24803
|
-
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
24804
|
-
if (foundFlag) {
|
|
24805
|
-
currentPath = foundFlag;
|
|
24806
|
-
}
|
|
24807
|
-
}
|
|
24808
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24809
|
-
this.flagTypes = currentPath.childFlags;
|
|
24810
|
-
this.cachedFlagType = currentPath;
|
|
24811
|
-
}
|
|
24812
|
-
}
|
|
24813
|
-
this.subJourneyIndex = Math.max(0, this.subJourneyIndex - 1);
|
|
24814
|
-
}
|
|
24815
24411
|
// Identity function for trackBy use by *ngFor for flagTypes in HTML template
|
|
24816
24412
|
identifyFlagType(_, flagType) {
|
|
24817
24413
|
return `${flagType.flagCode}_${flagType.name}_${flagType.name_cy}`;
|
|
@@ -24849,33 +24445,18 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24849
24445
|
}
|
|
24850
24446
|
}
|
|
24851
24447
|
processFlagTypes(flagTypes) {
|
|
24852
|
-
|
|
24853
|
-
|
|
24854
|
-
this.
|
|
24855
|
-
if (this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) {
|
|
24856
|
-
const selectedFlagType = this.selectedFlagType;
|
|
24857
|
-
const pathToSearch = selectedFlagType.Path.slice(1);
|
|
24858
|
-
let currentPath = flagTypes[0];
|
|
24859
|
-
for (const pathElement of pathToSearch) {
|
|
24860
|
-
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
24861
|
-
if (foundFlag) {
|
|
24862
|
-
currentPath = foundFlag;
|
|
24863
|
-
}
|
|
24864
|
-
}
|
|
24865
|
-
this.flagTypes = currentPath.childFlags;
|
|
24866
|
-
this.cachedFlagType = currentPath;
|
|
24867
|
-
}
|
|
24868
|
-
else {
|
|
24869
|
-
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
24870
|
-
}
|
|
24448
|
+
// First (and only) object in the returned array should be the top-level "Party" flag type
|
|
24449
|
+
// The "Other" flag type should be removed from the top level if the user is external
|
|
24450
|
+
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
24871
24451
|
const formControl = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE);
|
|
24872
24452
|
if (formControl?.value) {
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24453
|
+
// Cache Path based on existing flagCode -- needed for nested choices
|
|
24454
|
+
const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.flagTypes);
|
|
24455
|
+
this.cachedPath = [
|
|
24456
|
+
...path,
|
|
24457
|
+
foundFlagType
|
|
24458
|
+
];
|
|
24459
|
+
formControl.setValue(this.cachedPath[0], { emitEvent: false });
|
|
24879
24460
|
}
|
|
24880
24461
|
}
|
|
24881
24462
|
onRefdataError(error) {
|
|
@@ -24886,29 +24467,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24886
24467
|
// Return case flag field state and error messages to the parent
|
|
24887
24468
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24888
24469
|
}
|
|
24889
|
-
|
|
24890
|
-
|
|
24891
|
-
|
|
24892
|
-
super.next();
|
|
24893
|
-
}
|
|
24894
|
-
}
|
|
24895
|
-
previous() {
|
|
24896
|
-
this.onPrevious();
|
|
24897
|
-
if (this.subJourneyIndex <= 0) {
|
|
24898
|
-
super.previous();
|
|
24899
|
-
}
|
|
24900
|
-
}
|
|
24901
|
-
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
24902
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["priorFlagTypeSelected", ""], [3, "formGroup", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24903
|
-
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1);
|
|
24470
|
+
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
24471
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 2, vars: 2, consts: [["priorFlagTypeSelected", ""], [3, "formGroup", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24472
|
+
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1)(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 2);
|
|
24904
24473
|
} if (rf & 2) {
|
|
24905
24474
|
i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|
|
24475
|
+
i0.ɵɵadvance();
|
|
24476
|
+
i0.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
24906
24477
|
} }, styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
24907
24478
|
}
|
|
24908
24479
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
24909
24480
|
type: Component,
|
|
24910
|
-
args: [{ selector: 'ccd-select-flag-type', template: "<ng-container *ngIf=\"flagTypes?.length\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeNotSelectedErrorMessage.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-type-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-type-heading\" class=\"govuk-fieldset__heading govuk-!-margin-bottom-1\">\n <ng-container *ngIf=\"!cachedFlagType
|
|
24911
|
-
}], () => [{ type: CaseFlagRefdataService }
|
|
24481
|
+
args: [{ selector: 'ccd-select-flag-type', template: "<ng-container *ngIf=\"flagTypes?.length\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeNotSelectedErrorMessage.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-type-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-type-heading\" class=\"govuk-fieldset__heading govuk-!-margin-bottom-1\">\n <ng-container *ngIf=\"!cachedFlagType; else priorFlagTypeSelected\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.SELECT_CASE_FLAG_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.SELECT_CASE_FLAG | rpxTranslate)\n }}\n </ng-container>\n <ng-template #priorFlagTypeSelected>\n {{cachedFlagType | flagFieldDisplay:'name'}}\n </ng-template>\n </h1>\n </legend>\n <div id=\"flag-type-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagTypeNotSelectedErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagType of flagTypes; index as i; trackBy: identifyFlagType\">\n <input class=\"govuk-radios__input\" id=\"flag-type-{{i}}\" [name]=\"caseFlagFormField.FLAG_TYPE\"\n type=\"radio\" [value]=\"flagType\"\n [formControlName]=\"caseFlagFormField.FLAG_TYPE\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-type-{{i}}\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"otherFlagTypeSelected\" id=\"conditional-flagType\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeErrorMessage.length > 0}\">\n <label class=\"govuk-label\" for=\"other-flag-type-description\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION | rpxTranslate)\n }}\n </label>\n <div id=\"flag-type-error-message\" class=\"govuk-error-message\" *ngIf=\"flagTypeErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-half\"\n [ngClass]=\"{'govuk-input--error': flagTypeErrorMessage.length > 0}\"\n id=\"other-flag-type-description\" [name]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\" type=\"text\"\n [formControlName]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\"/>\n <div class=\"govuk-checkboxes__item govuk-!-margin-top-4\"\n *ngIf=\"!isDisplayContextParameterExternal && !isCaseLevelFlag && isDisplayContextParameter2Point1Enabled\">\n <input class=\"govuk-checkboxes__input\" id=\"is-visible-externally\" type=\"checkbox\"\n [name]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\" [formControlName]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"is-visible-externally\">\n {{'This flag should only be visible to HMCTS Staff' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!refdataError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".hidden{display:none}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
24482
|
+
}], () => [{ type: CaseFlagRefdataService }], { formGroup: [{
|
|
24912
24483
|
type: Input
|
|
24913
24484
|
}], jurisdiction: [{
|
|
24914
24485
|
type: Input
|
|
@@ -24927,35 +24498,35 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24927
24498
|
}], flagCommentsOptionalEmitter: [{
|
|
24928
24499
|
type: Output
|
|
24929
24500
|
}] }); })();
|
|
24930
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagTypeComponent, { className: "SelectFlagTypeComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.ts", lineNumber:
|
|
24501
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagTypeComponent, { className: "SelectFlagTypeComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.ts", lineNumber: 18 }); })();
|
|
24931
24502
|
|
|
24932
24503
|
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
24933
24504
|
const _c1$7 = a0 => ({ "govuk-tag--grey": a0 });
|
|
24934
24505
|
function UpdateFlagComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24935
|
-
i0.ɵɵelementStart(0, "div",
|
|
24506
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
24936
24507
|
i0.ɵɵtext(1);
|
|
24937
24508
|
i0.ɵɵpipe(2, "updateFlagTitleDisplay");
|
|
24938
24509
|
i0.ɵɵelementEnd();
|
|
24939
24510
|
} if (rf & 2) {
|
|
24940
|
-
const
|
|
24511
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24941
24512
|
i0.ɵɵadvance();
|
|
24942
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24513
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail), " ");
|
|
24943
24514
|
} }
|
|
24944
24515
|
function UpdateFlagComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
24945
|
-
i0.ɵɵelementStart(0, "div",
|
|
24516
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
24946
24517
|
i0.ɵɵtext(1);
|
|
24947
24518
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24948
24519
|
i0.ɵɵelementEnd();
|
|
24949
24520
|
} if (rf & 2) {
|
|
24950
|
-
const
|
|
24521
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24951
24522
|
i0.ɵɵadvance();
|
|
24952
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24523
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
|
|
24953
24524
|
} }
|
|
24954
24525
|
function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24955
|
-
i0.ɵɵelementStart(0, "div",
|
|
24526
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "span", 26);
|
|
24956
24527
|
i0.ɵɵtext(2, "!");
|
|
24957
24528
|
i0.ɵɵelementEnd();
|
|
24958
|
-
i0.ɵɵelementStart(3, "strong",
|
|
24529
|
+
i0.ɵɵelementStart(3, "strong", 27)(4, "span", 28);
|
|
24959
24530
|
i0.ɵɵtext(5);
|
|
24960
24531
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
24961
24532
|
i0.ɵɵelementEnd();
|
|
@@ -24963,14 +24534,14 @@ function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf &
|
|
|
24963
24534
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
24964
24535
|
i0.ɵɵelementEnd()();
|
|
24965
24536
|
} if (rf & 2) {
|
|
24966
|
-
const
|
|
24537
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
24967
24538
|
i0.ɵɵadvance(5);
|
|
24968
24539
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
24969
24540
|
i0.ɵɵadvance(2);
|
|
24970
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4,
|
|
24541
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
|
|
24971
24542
|
} }
|
|
24972
24543
|
function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24973
|
-
i0.ɵɵelementStart(0, "div",
|
|
24544
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span", 30);
|
|
24974
24545
|
i0.ɵɵtext(2);
|
|
24975
24546
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24976
24547
|
i0.ɵɵelementEnd();
|
|
@@ -24978,14 +24549,14 @@ function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf &
|
|
|
24978
24549
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24979
24550
|
i0.ɵɵelementEnd();
|
|
24980
24551
|
} if (rf & 2) {
|
|
24981
|
-
const
|
|
24552
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
24982
24553
|
i0.ɵɵadvance(2);
|
|
24983
24554
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24984
24555
|
i0.ɵɵadvance(2);
|
|
24985
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24556
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsNotEnteredErrorMessage), " ");
|
|
24986
24557
|
} }
|
|
24987
24558
|
function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24988
|
-
i0.ɵɵelementStart(0, "div",
|
|
24559
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 30);
|
|
24989
24560
|
i0.ɵɵtext(2);
|
|
24990
24561
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24991
24562
|
i0.ɵɵelementEnd();
|
|
@@ -24993,64 +24564,64 @@ function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf &
|
|
|
24993
24564
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24994
24565
|
i0.ɵɵelementEnd();
|
|
24995
24566
|
} if (rf & 2) {
|
|
24996
|
-
const
|
|
24567
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
24997
24568
|
i0.ɵɵadvance(2);
|
|
24998
24569
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24999
24570
|
i0.ɵɵadvance(2);
|
|
25000
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24571
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsCharLimitErrorMessage), " ");
|
|
25001
24572
|
} }
|
|
25002
24573
|
function UpdateFlagComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
25003
24574
|
i0.ɵɵelementContainerStart(0);
|
|
25004
|
-
i0.ɵɵelementStart(1, "div",
|
|
24575
|
+
i0.ɵɵelementStart(1, "div", 19);
|
|
25005
24576
|
i0.ɵɵtext(2);
|
|
25006
24577
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25007
24578
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25008
24579
|
i0.ɵɵelementEnd();
|
|
25009
|
-
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div",
|
|
25010
|
-
i0.ɵɵelementStart(8, "textarea",
|
|
24580
|
+
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div", 20)(6, UpdateFlagComponent_ng_container_15_div_6_Template, 6, 6, "div", 21)(7, UpdateFlagComponent_ng_container_15_div_7_Template, 6, 6, "div", 22);
|
|
24581
|
+
i0.ɵɵelementStart(8, "textarea", 23);
|
|
25011
24582
|
i0.ɵɵtext(9, " ");
|
|
25012
24583
|
i0.ɵɵelementEnd();
|
|
25013
|
-
i0.ɵɵelementStart(10, "div",
|
|
24584
|
+
i0.ɵɵelementStart(10, "div", 24);
|
|
25014
24585
|
i0.ɵɵtext(11);
|
|
25015
24586
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
25016
24587
|
i0.ɵɵelementEnd();
|
|
25017
24588
|
i0.ɵɵelementContainerEnd();
|
|
25018
24589
|
} if (rf & 2) {
|
|
25019
|
-
const
|
|
24590
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25020
24591
|
i0.ɵɵadvance(2);
|
|
25021
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24592
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.internalUserUpdate ? i0.ɵɵpipeBind1(3, 8, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0.ɵɵpipeBind1(4, 10, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
|
|
25022
24593
|
i0.ɵɵadvance(3);
|
|
25023
|
-
i0.ɵɵproperty("ngIf",
|
|
24594
|
+
i0.ɵɵproperty("ngIf", ctx_r1.internalUser2Point1EnabledUpdate && ctx_r1.externallyVisibleFlag);
|
|
25024
24595
|
i0.ɵɵadvance();
|
|
25025
|
-
i0.ɵɵproperty("ngIf",
|
|
24596
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsNotEnteredErrorMessage);
|
|
25026
24597
|
i0.ɵɵadvance();
|
|
25027
|
-
i0.ɵɵproperty("ngIf",
|
|
24598
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsCharLimitErrorMessage);
|
|
25028
24599
|
i0.ɵɵadvance();
|
|
25029
|
-
i0.ɵɵproperty("id",
|
|
24600
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.COMMENTS)("name", ctx_r1.caseFlagFormFields.COMMENTS)("formControlName", ctx_r1.caseFlagFormFields.COMMENTS);
|
|
25030
24601
|
i0.ɵɵadvance(3);
|
|
25031
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12,
|
|
24602
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25032
24603
|
} }
|
|
25033
24604
|
function UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25034
24605
|
i0.ɵɵelementContainer(0);
|
|
25035
24606
|
} }
|
|
25036
24607
|
function UpdateFlagComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
25037
24608
|
i0.ɵɵelementContainerStart(0);
|
|
25038
|
-
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
24609
|
+
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
|
|
25039
24610
|
i0.ɵɵelementContainerEnd();
|
|
25040
24611
|
} if (rf & 2) {
|
|
25041
24612
|
i0.ɵɵnextContext(2);
|
|
25042
|
-
const
|
|
24613
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25043
24614
|
i0.ɵɵadvance();
|
|
25044
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24615
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25045
24616
|
} }
|
|
25046
24617
|
function UpdateFlagComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
25047
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container",
|
|
24618
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 32);
|
|
25048
24619
|
} if (rf & 2) {
|
|
25049
|
-
const
|
|
25050
|
-
i0.ɵɵproperty("ngIf",
|
|
24620
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24621
|
+
i0.ɵɵproperty("ngIf", ctx_r1.externalUserUpdate);
|
|
25051
24622
|
} }
|
|
25052
24623
|
function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
25053
|
-
i0.ɵɵelementStart(0, "div",
|
|
24624
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "span", 30);
|
|
25054
24625
|
i0.ɵɵtext(2);
|
|
25055
24626
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25056
24627
|
i0.ɵɵelementEnd();
|
|
@@ -25058,14 +24629,14 @@ function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1
|
|
|
25058
24629
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25059
24630
|
i0.ɵɵelementEnd();
|
|
25060
24631
|
} if (rf & 2) {
|
|
25061
|
-
const
|
|
24632
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25062
24633
|
i0.ɵɵadvance(2);
|
|
25063
24634
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25064
24635
|
i0.ɵɵadvance(2);
|
|
25065
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24636
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonNotEnteredErrorMessage), " ");
|
|
25066
24637
|
} }
|
|
25067
24638
|
function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
25068
|
-
i0.ɵɵelementStart(0, "div",
|
|
24639
|
+
i0.ɵɵelementStart(0, "div", 39)(1, "span", 30);
|
|
25069
24640
|
i0.ɵɵtext(2);
|
|
25070
24641
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25071
24642
|
i0.ɵɵelementEnd();
|
|
@@ -25073,100 +24644,100 @@ function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
25073
24644
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25074
24645
|
i0.ɵɵelementEnd();
|
|
25075
24646
|
} if (rf & 2) {
|
|
25076
|
-
const
|
|
24647
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25077
24648
|
i0.ɵɵadvance(2);
|
|
25078
24649
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25079
24650
|
i0.ɵɵadvance(2);
|
|
25080
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24651
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonCharLimitErrorMessage), " ");
|
|
25081
24652
|
} }
|
|
25082
24653
|
function UpdateFlagComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
25083
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div",
|
|
25084
|
-
i0.ɵɵelementStart(2, "textarea",
|
|
24654
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div", 34)(1, UpdateFlagComponent_ng_template_18_div_1_Template, 6, 6, "div", 35);
|
|
24655
|
+
i0.ɵɵelementStart(2, "textarea", 36);
|
|
25085
24656
|
i0.ɵɵtext(3, " ");
|
|
25086
24657
|
i0.ɵɵelementEnd();
|
|
25087
|
-
i0.ɵɵelementStart(4, "div",
|
|
24658
|
+
i0.ɵɵelementStart(4, "div", 37);
|
|
25088
24659
|
i0.ɵɵtext(5);
|
|
25089
24660
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25090
24661
|
i0.ɵɵelementEnd();
|
|
25091
24662
|
} if (rf & 2) {
|
|
25092
|
-
const
|
|
25093
|
-
i0.ɵɵproperty("ngIf",
|
|
24663
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24664
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonNotEnteredErrorMessage);
|
|
25094
24665
|
i0.ɵɵadvance();
|
|
25095
|
-
i0.ɵɵproperty("ngIf",
|
|
24666
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonCharLimitErrorMessage);
|
|
25096
24667
|
i0.ɵɵadvance();
|
|
25097
|
-
i0.ɵɵproperty("id",
|
|
24668
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON);
|
|
25098
24669
|
i0.ɵɵadvance(3);
|
|
25099
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6,
|
|
24670
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25100
24671
|
} }
|
|
25101
24672
|
function UpdateFlagComponent_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
25102
|
-
i0.ɵɵelementStart(0, "div",
|
|
25103
|
-
i0.ɵɵelement(1, "input",
|
|
25104
|
-
i0.ɵɵelementStart(2, "label",
|
|
24673
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
24674
|
+
i0.ɵɵelement(1, "input", 48);
|
|
24675
|
+
i0.ɵɵelementStart(2, "label", 49);
|
|
25105
24676
|
i0.ɵɵtext(3);
|
|
25106
24677
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25107
24678
|
i0.ɵɵelementEnd()();
|
|
25108
24679
|
} if (rf & 2) {
|
|
25109
|
-
const
|
|
25110
|
-
const
|
|
24680
|
+
const status_r4 = ctx.$implicit;
|
|
24681
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25111
24682
|
i0.ɵɵadvance();
|
|
25112
|
-
i0.ɵɵproperty("id",
|
|
24683
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4)("name", ctx_r1.caseFlagFormFields.STATUS)("formControlName", ctx_r1.caseFlagFormFields.STATUS)("value", status_r4);
|
|
25113
24684
|
i0.ɵɵadvance();
|
|
25114
|
-
i0.ɵɵproperty("for",
|
|
24685
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4);
|
|
25115
24686
|
i0.ɵɵadvance();
|
|
25116
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6,
|
|
24687
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r1.caseFlagStatusEnum[status_r4]), " ");
|
|
25117
24688
|
} }
|
|
25118
24689
|
function UpdateFlagComponent_div_20_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
25119
24690
|
i0.ɵɵelementContainer(0);
|
|
25120
24691
|
} }
|
|
25121
24692
|
function UpdateFlagComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
25122
|
-
i0.ɵɵelementStart(0, "div",
|
|
24693
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "fieldset", 41)(2, "legend", 42)(3, "h1", 43);
|
|
25123
24694
|
i0.ɵɵtext(4);
|
|
25124
24695
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25125
24696
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25126
24697
|
i0.ɵɵelementEnd()();
|
|
25127
|
-
i0.ɵɵelementStart(7, "div",
|
|
25128
|
-
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div",
|
|
24698
|
+
i0.ɵɵelementStart(7, "div", 44);
|
|
24699
|
+
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 45);
|
|
25129
24700
|
i0.ɵɵelementEnd()();
|
|
25130
|
-
i0.ɵɵelementStart(9, "div",
|
|
24701
|
+
i0.ɵɵelementStart(9, "div", 46);
|
|
25131
24702
|
i0.ɵɵtext(10);
|
|
25132
24703
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
25133
24704
|
i0.ɵɵelementEnd();
|
|
25134
|
-
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container",
|
|
24705
|
+
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 33);
|
|
25135
24706
|
i0.ɵɵelementEnd();
|
|
25136
24707
|
} if (rf & 2) {
|
|
25137
|
-
const
|
|
25138
|
-
const
|
|
24708
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24709
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25139
24710
|
i0.ɵɵadvance(4);
|
|
25140
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6,
|
|
24711
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r1.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
|
|
25141
24712
|
i0.ɵɵadvance(3);
|
|
25142
|
-
i0.ɵɵproperty("id",
|
|
24713
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS);
|
|
25143
24714
|
i0.ɵɵadvance();
|
|
25144
|
-
i0.ɵɵproperty("ngForOf",
|
|
24715
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.validStatusProgressions);
|
|
25145
24716
|
i0.ɵɵadvance(2);
|
|
25146
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10,
|
|
24717
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r1.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
|
|
25147
24718
|
i0.ɵɵadvance(2);
|
|
25148
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24719
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25149
24720
|
} }
|
|
25150
24721
|
function UpdateFlagComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
25151
|
-
i0.ɵɵelementStart(0, "div",
|
|
25152
|
-
i0.ɵɵelement(3, "input",
|
|
25153
|
-
i0.ɵɵelementStart(4, "label",
|
|
24722
|
+
i0.ɵɵelementStart(0, "div", 50)(1, "div", 51)(2, "div", 52);
|
|
24723
|
+
i0.ɵɵelement(3, "input", 53);
|
|
24724
|
+
i0.ɵɵelementStart(4, "label", 54);
|
|
25154
24725
|
i0.ɵɵtext(5);
|
|
25155
24726
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25156
24727
|
i0.ɵɵelementEnd()()()();
|
|
25157
24728
|
} if (rf & 2) {
|
|
25158
|
-
const
|
|
24729
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25159
24730
|
i0.ɵɵadvance(3);
|
|
25160
|
-
i0.ɵɵproperty("formControlName",
|
|
24731
|
+
i0.ɵɵproperty("formControlName", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
25161
24732
|
i0.ɵɵadvance();
|
|
25162
|
-
i0.ɵɵproperty("for",
|
|
24733
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
25163
24734
|
i0.ɵɵadvance();
|
|
25164
24735
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
|
|
25165
24736
|
} }
|
|
25166
24737
|
function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
25167
|
-
const
|
|
25168
|
-
i0.ɵɵelementStart(0, "button",
|
|
25169
|
-
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
24738
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24739
|
+
i0.ɵɵelementStart(0, "button", 59);
|
|
24740
|
+
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onMakeInactive()); });
|
|
25170
24741
|
i0.ɵɵtext(1);
|
|
25171
24742
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
25172
24743
|
i0.ɵɵelementEnd();
|
|
@@ -25175,28 +24746,28 @@ function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
25175
24746
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
|
|
25176
24747
|
} }
|
|
25177
24748
|
function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
25178
|
-
i0.ɵɵelementStart(0, "div",
|
|
24749
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "p");
|
|
25179
24750
|
i0.ɵɵtext(3);
|
|
25180
24751
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25181
|
-
i0.ɵɵelementStart(5, "span")(6, "strong",
|
|
24752
|
+
i0.ɵɵelementStart(5, "span")(6, "strong", 57);
|
|
25182
24753
|
i0.ɵɵtext(7);
|
|
25183
24754
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
25184
24755
|
i0.ɵɵelementEnd()()()();
|
|
25185
|
-
i0.ɵɵelementStart(9, "div",
|
|
25186
|
-
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button",
|
|
24756
|
+
i0.ɵɵelementStart(9, "div", 56);
|
|
24757
|
+
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 58);
|
|
25187
24758
|
i0.ɵɵelementEnd()();
|
|
25188
24759
|
} if (rf & 2) {
|
|
25189
|
-
const
|
|
24760
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25190
24761
|
i0.ɵɵadvance(3);
|
|
25191
24762
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
|
|
25192
24763
|
i0.ɵɵadvance(3);
|
|
25193
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7,
|
|
24764
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
25194
24765
|
i0.ɵɵadvance();
|
|
25195
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6,
|
|
24766
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
|
|
25196
24767
|
i0.ɵɵadvance(3);
|
|
25197
|
-
i0.ɵɵproperty("ngIf",
|
|
24768
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
25198
24769
|
} }
|
|
25199
|
-
class UpdateFlagComponent
|
|
24770
|
+
class UpdateFlagComponent {
|
|
25200
24771
|
rpxTranslationService;
|
|
25201
24772
|
formGroup;
|
|
25202
24773
|
displayContextParameter;
|
|
@@ -25222,8 +24793,7 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25222
24793
|
get externallyVisibleFlag() {
|
|
25223
24794
|
return this.selectedFlag.flagDetailDisplay.visibility?.toLowerCase() === 'external';
|
|
25224
24795
|
}
|
|
25225
|
-
constructor(rpxTranslationService
|
|
25226
|
-
super(multipageComponentStateService);
|
|
24796
|
+
constructor(rpxTranslationService) {
|
|
25227
24797
|
this.rpxTranslationService = rpxTranslationService;
|
|
25228
24798
|
}
|
|
25229
24799
|
ngOnInit() {
|
|
@@ -25370,14 +24940,9 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25370
24940
|
});
|
|
25371
24941
|
}
|
|
25372
24942
|
}
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
super.next();
|
|
25377
|
-
}
|
|
25378
|
-
}
|
|
25379
|
-
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
25380
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 23, vars: 22, consts: [["externalUser", ""], ["updateFlagStatusReason", ""], [3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24943
|
+
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24944
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 27, vars: 25, consts: [["externalUser", ""], ["updateFlagStatusReason", ""], [3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24945
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
25381
24946
|
i0.ɵɵelementContainerStart(0, 2);
|
|
25382
24947
|
i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h1", 5)(4, "label", 6);
|
|
25383
24948
|
i0.ɵɵtext(5);
|
|
@@ -25395,46 +24960,53 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25395
24960
|
i0.ɵɵtemplate(18, UpdateFlagComponent_ng_template_18_Template, 7, 8, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(20, UpdateFlagComponent_div_20_Template, 13, 12, "div", 12)(21, UpdateFlagComponent_div_21_Template, 7, 7, "div", 13)(22, UpdateFlagComponent_div_22_Template, 11, 10, "div", 14);
|
|
25396
24961
|
i0.ɵɵelementEnd()();
|
|
25397
24962
|
i0.ɵɵelementContainerEnd();
|
|
24963
|
+
i0.ɵɵelementStart(23, "div", 15)(24, "button", 16);
|
|
24964
|
+
i0.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
24965
|
+
i0.ɵɵtext(25);
|
|
24966
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24967
|
+
i0.ɵɵelementEnd()();
|
|
25398
24968
|
} if (rf & 2) {
|
|
25399
|
-
const
|
|
24969
|
+
const externalUser_r6 = i0.ɵɵreference(17);
|
|
25400
24970
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25401
24971
|
i0.ɵɵadvance(2);
|
|
25402
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24972
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$n, ctx.errorMessages.length > 0));
|
|
25403
24973
|
i0.ɵɵadvance(3);
|
|
25404
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24974
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
25405
24975
|
i0.ɵɵadvance(2);
|
|
25406
24976
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25407
24977
|
i0.ɵɵadvance(2);
|
|
25408
24978
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25409
24979
|
i0.ɵɵadvance();
|
|
25410
|
-
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11,
|
|
24980
|
+
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11, 15, ctx.updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL) : i0.ɵɵpipeBind1(12, 17, ctx.updateFlagTitle) + i0.ɵɵpipeBind1(13, 19, " comments"), " ");
|
|
25411
24981
|
i0.ɵɵadvance(4);
|
|
25412
24982
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25413
24983
|
i0.ɵɵadvance();
|
|
25414
|
-
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse",
|
|
24984
|
+
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r6);
|
|
25415
24985
|
i0.ɵɵadvance(5);
|
|
25416
24986
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25417
24987
|
i0.ɵɵadvance();
|
|
25418
24988
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25419
24989
|
i0.ɵɵadvance();
|
|
25420
24990
|
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate);
|
|
24991
|
+
i0.ɵɵadvance(3);
|
|
24992
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Next"), " ");
|
|
25421
24993
|
} }, encapsulation: 2 });
|
|
25422
24994
|
}
|
|
25423
24995
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
25424
24996
|
type: Component,
|
|
25425
|
-
args: [{ selector: 'ccd-update-flag', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--m\">\n {{updateFlagTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"update-flag-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail | updateFlagTitleDisplay}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--s\" [for]=\"caseFlagFormFields.COMMENTS\">\n {{\n externalUserUpdate\n ? (updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL | rpxTranslate)\n : (updateFlagTitle | rpxTranslate) + (' comments' | rpxTranslate)\n }}\n </label>\n <div id=\"update-flag-comments-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL | rpxTranslate}}\n </div>\n <ng-container *ngIf=\"internalUserUpdate || internalUser2Point1EnabledUpdate || displayContextParameter === '';\n else externalUser\">\n <div id=\"update-flag-comments-hint\" class=\"govuk-hint\">\n {{\n internalUserUpdate\n ? (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL | rpxTranslate)\n : (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1 | rpxTranslate)\n }}\n </div>\n <div class=\"govuk-warning-text\" *ngIf=\"internalUser2Point1EnabledUpdate && externallyVisibleFlag\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{updateFlagStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"update-flag-comments-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"commentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-comments-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"commentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error\">\n </textarea>\n <div id=\"update-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-container>\n <ng-template #externalUser>\n <ng-container *ngIf=\"externalUserUpdate\">\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #updateFlagStatusReason>\n <div id=\"update-flag-status-reason-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-status-reason-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [name]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [formControlName]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error\">\n </textarea>\n <div id=\"update-flag-status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-template>\n\n <div id=\"flag-status-container-v2_1\" class=\"govuk-!-margin-bottom-4\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"update-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n <h1 id=\"update-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{updateFlagTitle | rpxTranslate}} {{'status' | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" [id]=\"caseFlagFormFields.STATUS\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of validStatusProgressions\">\n <input class=\"govuk-radios__input\" type=\"radio\"\n [id]=\"caseFlagFormFields.STATUS + '_' + status\"\n [name]=\"caseFlagFormFields.STATUS\"\n [formControlName]=\"caseFlagFormFields.STATUS\"\n [value]=\"status\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"caseFlagFormFields.STATUS + '_' + status\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n\n <div id=\"update-flag-status-hint\" class=\"govuk-hint\">\n {{updateFlagStepEnum.STATUS_HINT_TEXT | rpxTranslate}}\n </div>\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </div>\n\n <div id=\"translation-checkbox-container\" class=\"govuk-!-margin-bottom-6\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"\n [formControlName]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [id]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [name]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n <label class=\"govuk-label govuk-checkboxes__label\"\n [for]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n {{'I need to add a translation' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n\n <div id=\"flag-status-container-v1\" class=\"govuk-grid-row\" *ngIf=\"internalUserUpdate\">\n <div class=\"govuk-grid-column-one-half\">\n <p>{{'Flag status:' | rpxTranslate}}\n <span>\n <strong class=\"govuk-tag\" [ngClass]=\"{'govuk-tag--grey': selectedFlag.flagDetailDisplay.flagDetail.status === 'Inactive'}\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail?.status | rpxTranslate}}\n </strong>\n </span>\n </p>\n </div>\n <div class=\"govuk-grid-column-one-half\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"onMakeInactive()\" *ngIf=\"selectedFlag.flagDetailDisplay.flagDetail.status === 'Active'\">\n {{'Make inactive' | rpxTranslate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n</ng-container
|
|
25426
|
-
}], () => [{ type: i1.RpxTranslationService }
|
|
24997
|
+
args: [{ selector: 'ccd-update-flag', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--m\">\n {{updateFlagTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"update-flag-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail | updateFlagTitleDisplay}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--s\" [for]=\"caseFlagFormFields.COMMENTS\">\n {{\n externalUserUpdate\n ? (updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL | rpxTranslate)\n : (updateFlagTitle | rpxTranslate) + (' comments' | rpxTranslate)\n }}\n </label>\n <div id=\"update-flag-comments-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL | rpxTranslate}}\n </div>\n <ng-container *ngIf=\"internalUserUpdate || internalUser2Point1EnabledUpdate || displayContextParameter === '';\n else externalUser\">\n <div id=\"update-flag-comments-hint\" class=\"govuk-hint\">\n {{\n internalUserUpdate\n ? (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL | rpxTranslate)\n : (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1 | rpxTranslate)\n }}\n </div>\n <div class=\"govuk-warning-text\" *ngIf=\"internalUser2Point1EnabledUpdate && externallyVisibleFlag\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{updateFlagStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"update-flag-comments-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"commentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-comments-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"commentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error\">\n </textarea>\n <div id=\"update-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-container>\n <ng-template #externalUser>\n <ng-container *ngIf=\"externalUserUpdate\">\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #updateFlagStatusReason>\n <div id=\"update-flag-status-reason-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-status-reason-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [name]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [formControlName]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error\">\n </textarea>\n <div id=\"update-flag-status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-template>\n\n <div id=\"flag-status-container-v2_1\" class=\"govuk-!-margin-bottom-4\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"update-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n <h1 id=\"update-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{updateFlagTitle | rpxTranslate}} {{'status' | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" [id]=\"caseFlagFormFields.STATUS\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of validStatusProgressions\">\n <input class=\"govuk-radios__input\" type=\"radio\"\n [id]=\"caseFlagFormFields.STATUS + '_' + status\"\n [name]=\"caseFlagFormFields.STATUS\"\n [formControlName]=\"caseFlagFormFields.STATUS\"\n [value]=\"status\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"caseFlagFormFields.STATUS + '_' + status\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n\n <div id=\"update-flag-status-hint\" class=\"govuk-hint\">\n {{updateFlagStepEnum.STATUS_HINT_TEXT | rpxTranslate}}\n </div>\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </div>\n\n <div id=\"translation-checkbox-container\" class=\"govuk-!-margin-bottom-6\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"\n [formControlName]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [id]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [name]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n <label class=\"govuk-label govuk-checkboxes__label\"\n [for]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n {{'I need to add a translation' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n\n <div id=\"flag-status-container-v1\" class=\"govuk-grid-row\" *ngIf=\"internalUserUpdate\">\n <div class=\"govuk-grid-column-one-half\">\n <p>{{'Flag status:' | rpxTranslate}}\n <span>\n <strong class=\"govuk-tag\" [ngClass]=\"{'govuk-tag--grey': selectedFlag.flagDetailDisplay.flagDetail.status === 'Inactive'}\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail?.status | rpxTranslate}}\n </strong>\n </span>\n </p>\n </div>\n <div class=\"govuk-grid-column-one-half\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"onMakeInactive()\" *ngIf=\"selectedFlag.flagDetailDisplay.flagDetail.status === 'Active'\">\n {{'Make inactive' | rpxTranslate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
|
|
24998
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
25427
24999
|
type: Input
|
|
25428
25000
|
}], displayContextParameter: [{
|
|
25429
25001
|
type: Input
|
|
25430
25002
|
}], caseFlagStateEmitter: [{
|
|
25431
25003
|
type: Output
|
|
25432
25004
|
}] }); })();
|
|
25433
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber:
|
|
25005
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 20 }); })();
|
|
25434
25006
|
|
|
25435
25007
|
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
25436
25008
|
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25437
|
-
i0.ɵɵelementStart(0, "div",
|
|
25009
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 20);
|
|
25438
25010
|
i0.ɵɵtext(2);
|
|
25439
25011
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25440
25012
|
i0.ɵɵelementEnd();
|
|
@@ -25449,7 +25021,7 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
|
|
|
25449
25021
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
|
|
25450
25022
|
} }
|
|
25451
25023
|
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
25452
|
-
i0.ɵɵelementStart(0, "div",
|
|
25024
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 20);
|
|
25453
25025
|
i0.ɵɵtext(2);
|
|
25454
25026
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25455
25027
|
i0.ɵɵelementEnd();
|
|
@@ -25464,7 +25036,7 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
25464
25036
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
|
|
25465
25037
|
} }
|
|
25466
25038
|
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
25467
|
-
i0.ɵɵelementStart(0, "div",
|
|
25039
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 20);
|
|
25468
25040
|
i0.ɵɵtext(2);
|
|
25469
25041
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25470
25042
|
i0.ɵɵelementEnd();
|
|
@@ -25479,7 +25051,7 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
|
|
|
25479
25051
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
25480
25052
|
} }
|
|
25481
25053
|
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
25482
|
-
i0.ɵɵelementStart(0, "div",
|
|
25054
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 20);
|
|
25483
25055
|
i0.ɵɵtext(2);
|
|
25484
25056
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25485
25057
|
i0.ɵɵelementEnd();
|
|
@@ -25493,7 +25065,7 @@ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf
|
|
|
25493
25065
|
i0.ɵɵadvance(2);
|
|
25494
25066
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsWelshCharLimitErrorMessage), " ");
|
|
25495
25067
|
} }
|
|
25496
|
-
class UpdateFlagAddTranslationFormComponent
|
|
25068
|
+
class UpdateFlagAddTranslationFormComponent {
|
|
25497
25069
|
formGroup;
|
|
25498
25070
|
caseFlagStateEmitter = new EventEmitter();
|
|
25499
25071
|
selectedFlag;
|
|
@@ -25567,14 +25139,8 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25567
25139
|
});
|
|
25568
25140
|
}
|
|
25569
25141
|
}
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
if (this.errorMessages.length === 0) {
|
|
25573
|
-
super.next();
|
|
25574
|
-
}
|
|
25575
|
-
}
|
|
25576
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(t) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(t || UpdateFlagAddTranslationFormComponent); }; })();
|
|
25577
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 50, vars: 54, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25142
|
+
static ɵfac = function UpdateFlagAddTranslationFormComponent_Factory(t) { return new (t || UpdateFlagAddTranslationFormComponent)(); };
|
|
25143
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 54, vars: 57, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25578
25144
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25579
25145
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
25580
25146
|
i0.ɵɵtext(5);
|
|
@@ -25633,71 +25199,78 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25633
25199
|
i0.ɵɵpipe(49, "rpxTranslate");
|
|
25634
25200
|
i0.ɵɵelementEnd()()()();
|
|
25635
25201
|
i0.ɵɵelementContainerEnd();
|
|
25202
|
+
i0.ɵɵelementStart(50, "div", 17)(51, "button", 18);
|
|
25203
|
+
i0.ɵɵlistener("click", function UpdateFlagAddTranslationFormComponent_Template_button_click_51_listener() { return ctx.onNext(); });
|
|
25204
|
+
i0.ɵɵtext(52);
|
|
25205
|
+
i0.ɵɵpipe(53, "rpxTranslate");
|
|
25206
|
+
i0.ɵɵelementEnd()();
|
|
25636
25207
|
} if (rf & 2) {
|
|
25637
25208
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25638
25209
|
i0.ɵɵadvance(2);
|
|
25639
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25210
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(55, _c0$m, ctx.errorMessages.length > 0));
|
|
25640
25211
|
i0.ɵɵadvance(3);
|
|
25641
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25212
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 33, ctx.updateFlagAddTranslationTitle), " ");
|
|
25642
25213
|
i0.ɵɵadvance(3);
|
|
25643
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
25214
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 35, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
25644
25215
|
i0.ɵɵadvance(3);
|
|
25645
25216
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25646
25217
|
i0.ɵɵadvance();
|
|
25647
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,
|
|
25218
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 37, "Other description"));
|
|
25648
25219
|
i0.ɵɵadvance(2);
|
|
25649
25220
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
|
|
25650
25221
|
i0.ɵɵadvance();
|
|
25651
25222
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25652
25223
|
i0.ɵɵadvance(3);
|
|
25653
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19,
|
|
25224
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 39, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25654
25225
|
i0.ɵɵadvance(3);
|
|
25655
25226
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25656
25227
|
i0.ɵɵadvance();
|
|
25657
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23,
|
|
25228
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 41, "Other description (Welsh)"));
|
|
25658
25229
|
i0.ɵɵadvance(2);
|
|
25659
25230
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
25660
25231
|
i0.ɵɵadvance();
|
|
25661
25232
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25662
25233
|
i0.ɵɵadvance(3);
|
|
25663
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
25234
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 43, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25664
25235
|
i0.ɵɵadvance(3);
|
|
25665
25236
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25666
25237
|
i0.ɵɵadvance();
|
|
25667
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33,
|
|
25238
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 45, "Flag comments"));
|
|
25668
25239
|
i0.ɵɵadvance(2);
|
|
25669
25240
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
25670
25241
|
i0.ɵɵadvance();
|
|
25671
25242
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
25672
25243
|
i0.ɵɵadvance(3);
|
|
25673
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39,
|
|
25244
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 47, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25674
25245
|
i0.ɵɵadvance(3);
|
|
25675
25246
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25676
25247
|
i0.ɵɵadvance();
|
|
25677
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43,
|
|
25248
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 49, "Flag comments (Welsh)"));
|
|
25678
25249
|
i0.ɵɵadvance(2);
|
|
25679
25250
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
25680
25251
|
i0.ɵɵadvance();
|
|
25681
25252
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25682
25253
|
i0.ɵɵadvance(3);
|
|
25683
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49,
|
|
25254
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 51, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25255
|
+
i0.ɵɵadvance(4);
|
|
25256
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 53, "Next"), " ");
|
|
25684
25257
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25685
25258
|
}
|
|
25686
25259
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
25687
25260
|
type: Component,
|
|
25688
|
-
args: [{ selector: 'ccd-update-flag-add-translation-form', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container
|
|
25261
|
+
args: [{ selector: 'ccd-update-flag-add-translation-form', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
|
|
25689
25262
|
}], null, { formGroup: [{
|
|
25690
25263
|
type: Input
|
|
25691
25264
|
}], caseFlagStateEmitter: [{
|
|
25692
25265
|
type: Output
|
|
25693
25266
|
}] }); })();
|
|
25694
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagAddTranslationFormComponent, { className: "UpdateFlagAddTranslationFormComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.ts", lineNumber:
|
|
25267
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagAddTranslationFormComponent, { className: "UpdateFlagAddTranslationFormComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.ts", lineNumber: 17 }); })();
|
|
25695
25268
|
|
|
25696
25269
|
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
25697
25270
|
function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
25698
|
-
i0.ɵɵelementStart(0, "div",
|
|
25699
|
-
i0.ɵɵelement(1, "input",
|
|
25700
|
-
i0.ɵɵelementStart(2, "label",
|
|
25271
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
25272
|
+
i0.ɵɵelement(1, "input", 16);
|
|
25273
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
25701
25274
|
i0.ɵɵtext(3);
|
|
25702
25275
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25703
25276
|
i0.ɵɵelementEnd()();
|
|
@@ -25714,7 +25287,7 @@ function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
25714
25287
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r2.caseFlagStatusEnum[status_r1]), " ");
|
|
25715
25288
|
} }
|
|
25716
25289
|
function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
25717
|
-
i0.ɵɵelementStart(0, "div",
|
|
25290
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
25718
25291
|
i0.ɵɵtext(2);
|
|
25719
25292
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25720
25293
|
i0.ɵɵelementEnd();
|
|
@@ -25729,7 +25302,7 @@ function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
25729
25302
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonNotEnteredErrorMessage), " ");
|
|
25730
25303
|
} }
|
|
25731
25304
|
function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25732
|
-
i0.ɵɵelementStart(0, "div",
|
|
25305
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
25733
25306
|
i0.ɵɵtext(2);
|
|
25734
25307
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25735
25308
|
i0.ɵɵelementEnd();
|
|
@@ -25743,7 +25316,7 @@ function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
25743
25316
|
i0.ɵɵadvance(2);
|
|
25744
25317
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonCharLimitErrorMessage), " ");
|
|
25745
25318
|
} }
|
|
25746
|
-
class ConfirmFlagStatusComponent
|
|
25319
|
+
class ConfirmFlagStatusComponent {
|
|
25747
25320
|
formGroup;
|
|
25748
25321
|
defaultStatus;
|
|
25749
25322
|
caseFlagStateEmitter = new EventEmitter();
|
|
@@ -25772,12 +25345,6 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25772
25345
|
// Return case flag field state and error messages to the parent
|
|
25773
25346
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
|
|
25774
25347
|
}
|
|
25775
|
-
next() {
|
|
25776
|
-
this.onNext();
|
|
25777
|
-
if (this.errorMessages.length === 0) {
|
|
25778
|
-
super.next();
|
|
25779
|
-
}
|
|
25780
|
-
}
|
|
25781
25348
|
validateTextEntry() {
|
|
25782
25349
|
this.statusReasonNotEnteredErrorMessage = null;
|
|
25783
25350
|
this.statusReasonCharLimitErrorMessage = null;
|
|
@@ -25801,8 +25368,8 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25801
25368
|
});
|
|
25802
25369
|
}
|
|
25803
25370
|
}
|
|
25804
|
-
static ɵfac =
|
|
25805
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" },
|
|
25371
|
+
static ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return new (t || ConfirmFlagStatusComponent)(); };
|
|
25372
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 23, vars: 22, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "confirm-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "confirm-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "status-reason-hint", 1, "govuk-hint"], ["id", "status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "status-reason-hint status-reason-char-limit-info", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "status-reason-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "status-reason-char-limit-error", 1, "govuk-error-message"]], template: function ConfirmFlagStatusComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25806
25373
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25807
25374
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "fieldset", 3)(4, "legend", 4)(5, "h1", 5);
|
|
25808
25375
|
i0.ɵɵtext(6);
|
|
@@ -25822,16 +25389,21 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25822
25389
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
25823
25390
|
i0.ɵɵelementEnd()()();
|
|
25824
25391
|
i0.ɵɵelementContainerEnd();
|
|
25392
|
+
i0.ɵɵelementStart(19, "div", 13)(20, "button", 14);
|
|
25393
|
+
i0.ɵɵlistener("click", function ConfirmFlagStatusComponent_Template_button_click_20_listener() { return ctx.onNext(); });
|
|
25394
|
+
i0.ɵɵtext(21);
|
|
25395
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
25396
|
+
i0.ɵɵelementEnd()();
|
|
25825
25397
|
} if (rf & 2) {
|
|
25826
25398
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25827
25399
|
i0.ɵɵadvance(2);
|
|
25828
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25400
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$l, ctx.errorMessages.length > 0));
|
|
25829
25401
|
i0.ɵɵadvance(4);
|
|
25830
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
25402
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, ctx.confirmFlagStatusTitle), " ");
|
|
25831
25403
|
i0.ɵɵadvance(3);
|
|
25832
25404
|
i0.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
|
|
25833
25405
|
i0.ɵɵadvance(2);
|
|
25834
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12,
|
|
25406
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, ctx.statusReasonHint), " ");
|
|
25835
25407
|
i0.ɵɵadvance(2);
|
|
25836
25408
|
i0.ɵɵproperty("ngIf", ctx.statusReasonNotEnteredErrorMessage);
|
|
25837
25409
|
i0.ɵɵadvance();
|
|
@@ -25839,12 +25411,14 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25839
25411
|
i0.ɵɵadvance();
|
|
25840
25412
|
i0.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
|
|
25841
25413
|
i0.ɵɵadvance(2);
|
|
25842
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18,
|
|
25414
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, ctx.statusReasonCharLimitInfo), " ");
|
|
25415
|
+
i0.ɵɵadvance(4);
|
|
25416
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 18, "Next"));
|
|
25843
25417
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25844
25418
|
}
|
|
25845
25419
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
|
|
25846
25420
|
type: Component,
|
|
25847
|
-
args: [{ selector: 'ccd-confirm-flag-status', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"confirm-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"confirm-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{confirmFlagStatusTitle | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of flagCreationStatuses; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-status-{{i}}\" [name]=\"selectedStatusControlName\"\n type=\"radio\" [value]=\"status\" [formControlName]=\"selectedStatusControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-status-{{i}}\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n <div id=\"status-reason-hint\" class=\"govuk-hint\">\n {{statusReasonHint | rpxTranslate}}\n </div>\n <div id=\"status-reason-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"status-reason-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"statusReasonControlName\"\n [name]=\"statusReasonControlName\" [formControlName]=\"statusReasonControlName\" rows=\"5\"\n aria-describedby=\"status-reason-hint status-reason-char-limit-info\"></textarea>\n <div id=\"status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{statusReasonCharLimitInfo | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>" }]
|
|
25421
|
+
args: [{ selector: 'ccd-confirm-flag-status', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"confirm-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"confirm-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{confirmFlagStatusTitle | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of flagCreationStatuses; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-status-{{i}}\" [name]=\"selectedStatusControlName\"\n type=\"radio\" [value]=\"status\" [formControlName]=\"selectedStatusControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-status-{{i}}\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n <div id=\"status-reason-hint\" class=\"govuk-hint\">\n {{statusReasonHint | rpxTranslate}}\n </div>\n <div id=\"status-reason-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"status-reason-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"statusReasonControlName\"\n [name]=\"statusReasonControlName\" [formControlName]=\"statusReasonControlName\" rows=\"5\"\n aria-describedby=\"status-reason-hint status-reason-char-limit-info\"></textarea>\n <div id=\"status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{statusReasonCharLimitInfo | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
25848
25422
|
}], null, { formGroup: [{
|
|
25849
25423
|
type: Input
|
|
25850
25424
|
}], defaultStatus: [{
|
|
@@ -25852,7 +25426,7 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25852
25426
|
}], caseFlagStateEmitter: [{
|
|
25853
25427
|
type: Output
|
|
25854
25428
|
}] }); })();
|
|
25855
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmFlagStatusComponent, { className: "ConfirmFlagStatusComponent", filePath: "lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.ts", lineNumber:
|
|
25429
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmFlagStatusComponent, { className: "ConfirmFlagStatusComponent", filePath: "lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.ts", lineNumber: 17 }); })();
|
|
25856
25430
|
|
|
25857
25431
|
class FlagFieldDisplayPipe extends AsyncPipe {
|
|
25858
25432
|
translationService;
|
|
@@ -29221,7 +28795,6 @@ class CaseEditSubmitComponent {
|
|
|
29221
28795
|
route;
|
|
29222
28796
|
orderService;
|
|
29223
28797
|
profileNotifier;
|
|
29224
|
-
multipageComponentStateService;
|
|
29225
28798
|
formValidatorsService;
|
|
29226
28799
|
eventTrigger;
|
|
29227
28800
|
editForm;
|
|
@@ -29258,14 +28831,13 @@ class CaseEditSubmitComponent {
|
|
|
29258
28831
|
// not been disabled.
|
|
29259
28832
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
29260
28833
|
}
|
|
29261
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier,
|
|
28834
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
|
|
29262
28835
|
this.caseEdit = caseEdit;
|
|
29263
28836
|
this.fieldsUtils = fieldsUtils;
|
|
29264
28837
|
this.caseFieldService = caseFieldService;
|
|
29265
28838
|
this.route = route;
|
|
29266
28839
|
this.orderService = orderService;
|
|
29267
28840
|
this.profileNotifier = profileNotifier;
|
|
29268
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
29269
28841
|
this.formValidatorsService = formValidatorsService;
|
|
29270
28842
|
}
|
|
29271
28843
|
ngOnInit() {
|
|
@@ -29287,7 +28859,6 @@ class CaseEditSubmitComponent {
|
|
|
29287
28859
|
this.caseEdit.isLinkedCasesSubmission =
|
|
29288
28860
|
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
|
|
29289
28861
|
this.pageTitle = this.getPageTitle();
|
|
29290
|
-
console.log(this.multipageComponentStateService.getInstigator());
|
|
29291
28862
|
this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
|
|
29292
28863
|
this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
|
|
29293
28864
|
}
|
|
@@ -29452,7 +29023,7 @@ class CaseEditSubmitComponent {
|
|
|
29452
29023
|
}
|
|
29453
29024
|
return 'Cancel';
|
|
29454
29025
|
}
|
|
29455
|
-
static ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(
|
|
29026
|
+
static ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
29456
29027
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 23, vars: 21, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], [3, "eventCanBeCompleted", "eventCompletionParams"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29457
29028
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29458
29029
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
@@ -29510,8 +29081,8 @@ class CaseEditSubmitComponent {
|
|
|
29510
29081
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29511
29082
|
type: Component,
|
|
29512
29083
|
args: [{ selector: 'ccd-case-edit-submit', template: "<div>\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 <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\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\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"] }]
|
|
29513
|
-
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type:
|
|
29514
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber:
|
|
29084
|
+
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }], null); })();
|
|
29085
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 27 }); })();
|
|
29515
29086
|
|
|
29516
29087
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
29517
29088
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -29759,8 +29330,7 @@ class CaseEditorModule {
|
|
|
29759
29330
|
SessionStorageService,
|
|
29760
29331
|
EventCompletionStateMachineService,
|
|
29761
29332
|
CaseFlagStateService,
|
|
29762
|
-
ValidPageListCaseFieldsService
|
|
29763
|
-
MultipageComponentStateService
|
|
29333
|
+
ValidPageListCaseFieldsService
|
|
29764
29334
|
], imports: [CommonModule,
|
|
29765
29335
|
RouterModule,
|
|
29766
29336
|
FormsModule,
|
|
@@ -29842,8 +29412,7 @@ class CaseEditorModule {
|
|
|
29842
29412
|
SessionStorageService,
|
|
29843
29413
|
EventCompletionStateMachineService,
|
|
29844
29414
|
CaseFlagStateService,
|
|
29845
|
-
ValidPageListCaseFieldsService
|
|
29846
|
-
MultipageComponentStateService
|
|
29415
|
+
ValidPageListCaseFieldsService
|
|
29847
29416
|
]
|
|
29848
29417
|
}]
|
|
29849
29418
|
}], null, null); })();
|
|
@@ -29875,7 +29444,7 @@ class CaseEditorModule {
|
|
|
29875
29444
|
CallbackErrorsComponent] }); })();
|
|
29876
29445
|
i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29877
29446
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i5.NgForOf, i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
29878
|
-
CaseEditGenericErrorsComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29447
|
+
CaseEditGenericErrorsComponent]; }, function () { return [i5.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29879
29448
|
i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
|
|
29880
29449
|
i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MaxLengthValidator, i4.FormGroupDirective, i4.FormControlName, i4.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [FirstErrorPipe, IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
|
|
29881
29450
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i5.NgIf, CaseEditComponent]; }, []);
|
|
@@ -32013,7 +31582,6 @@ class CaseEventTriggerComponent {
|
|
|
32013
31582
|
activitySubscription;
|
|
32014
31583
|
caseSubscription;
|
|
32015
31584
|
parentUrl;
|
|
32016
|
-
routerCurrentNavigation;
|
|
32017
31585
|
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32018
31586
|
this.ngZone = ngZone;
|
|
32019
31587
|
this.casesService = casesService;
|
|
@@ -32024,7 +31592,6 @@ class CaseEventTriggerComponent {
|
|
|
32024
31592
|
this.caseReferencePipe = caseReferencePipe;
|
|
32025
31593
|
this.activityPollingService = activityPollingService;
|
|
32026
31594
|
this.sessionStorageService = sessionStorageService;
|
|
32027
|
-
this.routerCurrentNavigation = this.router.getCurrentNavigation();
|
|
32028
31595
|
}
|
|
32029
31596
|
ngOnInit() {
|
|
32030
31597
|
if (this.route.snapshot.data.case) {
|
|
@@ -32103,16 +31670,8 @@ class CaseEventTriggerComponent {
|
|
|
32103
31670
|
});
|
|
32104
31671
|
}
|
|
32105
31672
|
cancel() {
|
|
32106
|
-
|
|
32107
|
-
|
|
32108
|
-
if (previousUrl.indexOf('#') > -1) {
|
|
32109
|
-
const url = previousUrl.split('#')[0];
|
|
32110
|
-
const fragment = previousUrl.split('#')[1].replace('%20', ' ');
|
|
32111
|
-
return this.router.navigate([url], { fragment: fragment });
|
|
32112
|
-
}
|
|
32113
|
-
else {
|
|
32114
|
-
return this.router.navigate([previousUrl]);
|
|
32115
|
-
}
|
|
31673
|
+
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
31674
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
|
|
32116
31675
|
}
|
|
32117
31676
|
else {
|
|
32118
31677
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -37640,5 +37199,5 @@ class TestRouteSnapshotBuilder {
|
|
|
37640
37199
|
* Generated bundle index. Do not edit.
|
|
37641
37200
|
*/
|
|
37642
37201
|
|
|
37643
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent,
|
|
37202
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
37644
37203
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|