@hmcts/ccd-case-ui-toolkit 7.0.63-incorrect-font-size-fix → 7.0.63-ungrey-back-button
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 +70 -33
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +49 -37
- package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +7 -4
- package/esm2022/lib/shared/components/case-editor/services/case-flag-state.service.mjs +3 -1
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +14 -4
- package/esm2022/lib/shared/components/palette/base-field/abstract-field-write-journey.component.mjs +92 -0
- package/esm2022/lib/shared/components/palette/base-field/abstract-journey.component.mjs +82 -0
- package/esm2022/lib/shared/components/palette/base-field/index.mjs +3 -1
- 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 +28 -28
- package/esm2022/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +32 -29
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +21 -28
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +128 -63
- 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 +107 -105
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +107 -31
- package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +27 -18
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +19 -7
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +57 -45
- package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +13 -9
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +45 -39
- package/esm2022/lib/shared/components/palette/linked-cases/services/linked-cases.service.mjs +11 -1
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +69 -23
- package/esm2022/lib/shared/domain/index.mjs +2 -1
- package/esm2022/lib/shared/domain/journey/index.mjs +3 -0
- package/esm2022/lib/shared/domain/journey/journey-instigator.model.mjs +2 -0
- package/esm2022/lib/shared/domain/journey/journey.model.mjs +2 -0
- package/esm2022/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +2 -2
- package/esm2022/lib/shared/services/index.mjs +2 -1
- package/esm2022/lib/shared/services/journey/index.mjs +2 -0
- package/esm2022/lib/shared/services/journey/multipage-component-state.service.mjs +114 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +1248 -707
- 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 +12 -3
- 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 +7 -2
- 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-editor/services/case-flag-state.service.d.ts +1 -0
- package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +2 -1
- 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/abstract-field-write-journey.component.d.ts +30 -0
- package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts +27 -0
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts.map +1 -0
- package/lib/shared/components/palette/base-field/index.d.ts +2 -0
- 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 +4 -2
- 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 +4 -2
- 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 +5 -3
- 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 +6 -3
- 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 +4 -2
- 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 +12 -5
- 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 +4 -2
- 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 +6 -3
- 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 +10 -5
- 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 +6 -3
- 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 +6 -2
- 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 +6 -3
- 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 +5 -2
- 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 +6 -3
- 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/services/linked-cases.service.d.ts +4 -0
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +6 -3
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +1 -0
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/domain/journey/index.d.ts +3 -0
- package/lib/shared/domain/journey/index.d.ts.map +1 -0
- package/lib/shared/domain/journey/journey-instigator.model.d.ts +5 -0
- package/lib/shared/domain/journey/journey-instigator.model.d.ts.map +1 -0
- package/lib/shared/domain/journey/journey.model.d.ts +16 -0
- package/lib/shared/domain/journey/journey.model.d.ts.map +1 -0
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared/services/index.d.ts.map +1 -1
- package/lib/shared/services/journey/index.d.ts +2 -0
- package/lib/shared/services/journey/index.d.ts.map +1 -0
- package/lib/shared/services/journey/multipage-component-state.service.d.ts +25 -0
- package/lib/shared/services/journey/multipage-component-state.service.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import * as i1$1 from '@angular/router';
|
|
|
8
8
|
import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
9
9
|
import * as i4 from '@angular/forms';
|
|
10
10
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
11
|
-
import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer,
|
|
11
|
+
import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer, forkJoin, fromEvent, Subscription, combineLatest } from 'rxjs';
|
|
12
12
|
import * as i1$2 from '@angular/common/http';
|
|
13
13
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
14
14
|
import { catchError, map, publish, refCount, switchMap, debounceTime, delay, distinctUntilChanged, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
|
|
@@ -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$16 = [[["", "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$16);
|
|
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$15 = [[["", "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$15);
|
|
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$14 = [[["", "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$14);
|
|
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$13 = [[["", "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$13);
|
|
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$12 = 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$12, 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$12, 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$12, 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$12, 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$12, 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$12, 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$11 = ["*"];
|
|
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$11, 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$10 = ["*"];
|
|
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$10, 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$$ = ["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$$, 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$_ = (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$_, 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);
|
|
@@ -7053,6 +7053,118 @@ class FormErrorService {
|
|
|
7053
7053
|
type: Injectable
|
|
7054
7054
|
}], null, null); })();
|
|
7055
7055
|
|
|
7056
|
+
class MultipageComponentStateService {
|
|
7057
|
+
//is journey at start will help keep track of the progress through the journey.
|
|
7058
|
+
isJourneyAtStart = false;
|
|
7059
|
+
//journey collection references an upto date list of all the journey components currently rendered!!!!
|
|
7060
|
+
journeyCollection = new Array();
|
|
7061
|
+
//the instigator references the case-edit-page component that will invoke the next and previous methods
|
|
7062
|
+
instigator = null;
|
|
7063
|
+
//each journey will store its state here. this could include form data if needed
|
|
7064
|
+
journeyState = new Map();
|
|
7065
|
+
//setJourneyComponent will be called by the app component to update the journey collection
|
|
7066
|
+
setJourneyCollection(journeyCollection) {
|
|
7067
|
+
this.journeyCollection = journeyCollection;
|
|
7068
|
+
}
|
|
7069
|
+
//getJourneyCollection will be called by the app component to get the journey collection
|
|
7070
|
+
getJourneyCollection() {
|
|
7071
|
+
return this.journeyCollection;
|
|
7072
|
+
}
|
|
7073
|
+
//addToJourneyCollection will be called from the journey
|
|
7074
|
+
addTojourneyCollection(journey) {
|
|
7075
|
+
this.journeyCollection.push(journey);
|
|
7076
|
+
}
|
|
7077
|
+
//resetJourneyCollection will be called
|
|
7078
|
+
resetJourneyCollection() {
|
|
7079
|
+
this.journeyCollection = [];
|
|
7080
|
+
}
|
|
7081
|
+
//setInstigator will be called by the app component to update the instigator
|
|
7082
|
+
setInstigator(instigator) {
|
|
7083
|
+
this.instigator = instigator;
|
|
7084
|
+
}
|
|
7085
|
+
//getInstigator will be called by the app component to get the instigator
|
|
7086
|
+
getInstigator() {
|
|
7087
|
+
return this.instigator;
|
|
7088
|
+
}
|
|
7089
|
+
//setJourneyState will be called by the journey component to update the journey state
|
|
7090
|
+
setJourneyState(journey) {
|
|
7091
|
+
this.journeyState.set(journey.journeyId, journey);
|
|
7092
|
+
}
|
|
7093
|
+
//getJourneyState will be called by the journey component to get the journey state
|
|
7094
|
+
getJourneyState(journey) {
|
|
7095
|
+
return this.journeyState.get(journey.journeyId) || null;
|
|
7096
|
+
}
|
|
7097
|
+
//resetJourneyState will be called by the journey component to reset the journey state
|
|
7098
|
+
resetJourneyState() {
|
|
7099
|
+
this.journeyState.clear();
|
|
7100
|
+
}
|
|
7101
|
+
//reset will be called to ensure that the entire state is reset
|
|
7102
|
+
reset() {
|
|
7103
|
+
this.isJourneyAtStart = false;
|
|
7104
|
+
this.journeyState.clear();
|
|
7105
|
+
this.instigator = null;
|
|
7106
|
+
this.journeyCollection = [];
|
|
7107
|
+
}
|
|
7108
|
+
//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
|
|
7109
|
+
next() {
|
|
7110
|
+
if (this.journeyCollection.length <= 0) {
|
|
7111
|
+
this.instigator?.onFinalNext();
|
|
7112
|
+
return;
|
|
7113
|
+
}
|
|
7114
|
+
const isAnyObjectNotFinished = this.journeyCollection.some((journey) => !journey.isFinished());
|
|
7115
|
+
if (!isAnyObjectNotFinished) {
|
|
7116
|
+
this.instigator?.onFinalNext();
|
|
7117
|
+
return;
|
|
7118
|
+
}
|
|
7119
|
+
for (const journey of this.journeyCollection) {
|
|
7120
|
+
if (!journey) {
|
|
7121
|
+
continue;
|
|
7122
|
+
}
|
|
7123
|
+
if (!journey?.isFinished()) {
|
|
7124
|
+
journey?.next();
|
|
7125
|
+
break;
|
|
7126
|
+
}
|
|
7127
|
+
}
|
|
7128
|
+
}
|
|
7129
|
+
//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
|
|
7130
|
+
previous() {
|
|
7131
|
+
if (this.journeyCollection.length <= 0) {
|
|
7132
|
+
this.instigator?.onFinalPrevious();
|
|
7133
|
+
return;
|
|
7134
|
+
}
|
|
7135
|
+
const isAnyObjectNotAtStart = this.journeyCollection.some((journey) => !journey.isStart());
|
|
7136
|
+
if (!isAnyObjectNotAtStart) {
|
|
7137
|
+
this.instigator?.onFinalPrevious();
|
|
7138
|
+
return;
|
|
7139
|
+
}
|
|
7140
|
+
for (const journey of this.journeyCollection.slice().reverse()) {
|
|
7141
|
+
if (!journey) {
|
|
7142
|
+
continue;
|
|
7143
|
+
}
|
|
7144
|
+
if (!journey?.isStart()) {
|
|
7145
|
+
journey?.previous();
|
|
7146
|
+
break;
|
|
7147
|
+
}
|
|
7148
|
+
}
|
|
7149
|
+
}
|
|
7150
|
+
//isAtStart can be used to inform the instigator if we're at the start.
|
|
7151
|
+
get isAtStart() {
|
|
7152
|
+
return this.isJourneyAtStart;
|
|
7153
|
+
}
|
|
7154
|
+
//isAtStart can be used to update the value from a journey object, so the instigator knows.
|
|
7155
|
+
set isAtStart(isAtStart) {
|
|
7156
|
+
this.isJourneyAtStart = isAtStart;
|
|
7157
|
+
}
|
|
7158
|
+
static ɵfac = function MultipageComponentStateService_Factory(t) { return new (t || MultipageComponentStateService)(); };
|
|
7159
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MultipageComponentStateService, factory: MultipageComponentStateService.ɵfac, providedIn: 'root' });
|
|
7160
|
+
}
|
|
7161
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipageComponentStateService, [{
|
|
7162
|
+
type: Injectable,
|
|
7163
|
+
args: [{
|
|
7164
|
+
providedIn: 'root'
|
|
7165
|
+
}]
|
|
7166
|
+
}], null, null); })();
|
|
7167
|
+
|
|
7056
7168
|
class JurisdictionService {
|
|
7057
7169
|
httpService;
|
|
7058
7170
|
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
@@ -10076,6 +10188,149 @@ function initDialog() {
|
|
|
10076
10188
|
return dialogConfig;
|
|
10077
10189
|
}
|
|
10078
10190
|
|
|
10191
|
+
class LinkedCasesService {
|
|
10192
|
+
jurisdictionService;
|
|
10193
|
+
searchService;
|
|
10194
|
+
static CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
10195
|
+
caseFieldValue = [];
|
|
10196
|
+
isLinkedCasesEventTrigger = false;
|
|
10197
|
+
caseDetails;
|
|
10198
|
+
caseId;
|
|
10199
|
+
caseName;
|
|
10200
|
+
linkCaseReasons = [];
|
|
10201
|
+
linkedCases = [];
|
|
10202
|
+
initialCaseLinks = [];
|
|
10203
|
+
editMode = false;
|
|
10204
|
+
jurisdictionsResponse = [];
|
|
10205
|
+
serverJurisdictionError;
|
|
10206
|
+
serverError = null;
|
|
10207
|
+
serverLinkedApiError = null;
|
|
10208
|
+
isServerReasonCodeError = false;
|
|
10209
|
+
caseJurisdictionID = null;
|
|
10210
|
+
storedCaseNumber = '';
|
|
10211
|
+
cameFromFinalStep = false;
|
|
10212
|
+
hasNavigatedInJourney = false;
|
|
10213
|
+
constructor(jurisdictionService, searchService) {
|
|
10214
|
+
this.jurisdictionService = jurisdictionService;
|
|
10215
|
+
this.searchService = searchService;
|
|
10216
|
+
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
10217
|
+
this.jurisdictionsResponse = jurisdictions;
|
|
10218
|
+
}, (error) => {
|
|
10219
|
+
this.serverJurisdictionError = true;
|
|
10220
|
+
});
|
|
10221
|
+
}
|
|
10222
|
+
groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
10223
|
+
return arrObj.reduce((rv, x) => {
|
|
10224
|
+
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
10225
|
+
return rv;
|
|
10226
|
+
}, {});
|
|
10227
|
+
};
|
|
10228
|
+
constructElasticSearchQuery(caseIds, size) {
|
|
10229
|
+
return {
|
|
10230
|
+
query: {
|
|
10231
|
+
terms: {
|
|
10232
|
+
reference: caseIds,
|
|
10233
|
+
},
|
|
10234
|
+
},
|
|
10235
|
+
size,
|
|
10236
|
+
};
|
|
10237
|
+
}
|
|
10238
|
+
resetLinkedCaseData() {
|
|
10239
|
+
this.caseFieldValue = [];
|
|
10240
|
+
this.linkedCases = [];
|
|
10241
|
+
this.storedCaseNumber = '';
|
|
10242
|
+
this.cameFromFinalStep = false;
|
|
10243
|
+
this.hasNavigatedInJourney = false;
|
|
10244
|
+
}
|
|
10245
|
+
mapResponse(esSearchCasesResponse) {
|
|
10246
|
+
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
10247
|
+
return caseInfo && {
|
|
10248
|
+
caseReference: esSearchCasesResponse.case_id,
|
|
10249
|
+
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
10250
|
+
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
10251
|
+
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
10252
|
+
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
10253
|
+
reasons: caseInfo?.value?.ReasonForLink
|
|
10254
|
+
};
|
|
10255
|
+
}
|
|
10256
|
+
searchCasesByCaseIds(searchCasesResponse) {
|
|
10257
|
+
return forkJoin(searchCasesResponse);
|
|
10258
|
+
}
|
|
10259
|
+
getAllLinkedCaseInformation() {
|
|
10260
|
+
const searchCasesResponse = [];
|
|
10261
|
+
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
10262
|
+
Object.keys(linkedCaseIds).forEach(key => {
|
|
10263
|
+
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
10264
|
+
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
10265
|
+
searchCasesResponse.push(query);
|
|
10266
|
+
});
|
|
10267
|
+
if (searchCasesResponse.length) {
|
|
10268
|
+
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
10269
|
+
const casesResponse = [];
|
|
10270
|
+
searchCases.forEach(response => {
|
|
10271
|
+
response.results.forEach((result) => {
|
|
10272
|
+
casesResponse.push(this.mapResponse(result));
|
|
10273
|
+
});
|
|
10274
|
+
});
|
|
10275
|
+
this.linkedCases = casesResponse.map(item => {
|
|
10276
|
+
return {
|
|
10277
|
+
caseReference: item.caseReference,
|
|
10278
|
+
caseName: item.caseName,
|
|
10279
|
+
caseService: item.service,
|
|
10280
|
+
caseType: item.caseType,
|
|
10281
|
+
unlink: false,
|
|
10282
|
+
reasons: item.reasons && item.reasons.map(reason => {
|
|
10283
|
+
return {
|
|
10284
|
+
Reason: reason
|
|
10285
|
+
};
|
|
10286
|
+
}),
|
|
10287
|
+
};
|
|
10288
|
+
});
|
|
10289
|
+
this.serverLinkedApiError = null;
|
|
10290
|
+
}, err => {
|
|
10291
|
+
this.serverLinkedApiError = {
|
|
10292
|
+
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
10293
|
+
};
|
|
10294
|
+
});
|
|
10295
|
+
}
|
|
10296
|
+
}
|
|
10297
|
+
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
10298
|
+
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
10299
|
+
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
10300
|
+
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
10301
|
+
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
10302
|
+
switch (fieldName) {
|
|
10303
|
+
case 'JURISDICTION':
|
|
10304
|
+
return selectedJurisdiction && selectedJurisdiction.description;
|
|
10305
|
+
case 'CASE_TYPE':
|
|
10306
|
+
return selectedCaseType && selectedCaseType.name;
|
|
10307
|
+
case 'CASE_TYPE_DESCRIPTION':
|
|
10308
|
+
return selectedCaseType && selectedCaseType.description;
|
|
10309
|
+
case 'STATE':
|
|
10310
|
+
return state && state.name || fieldValue;
|
|
10311
|
+
case 'STATE_DESCRIPTION':
|
|
10312
|
+
return state && state.description || fieldValue;
|
|
10313
|
+
default:
|
|
10314
|
+
break;
|
|
10315
|
+
}
|
|
10316
|
+
}
|
|
10317
|
+
getCaseName(searchCasesResponse) {
|
|
10318
|
+
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
10319
|
+
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
10320
|
+
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
10321
|
+
if (caseNameHmctsInternalField) {
|
|
10322
|
+
caseName = caseNameHmctsInternalField.value;
|
|
10323
|
+
}
|
|
10324
|
+
});
|
|
10325
|
+
return caseName;
|
|
10326
|
+
}
|
|
10327
|
+
static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
10328
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
10329
|
+
}
|
|
10330
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
10331
|
+
type: Injectable
|
|
10332
|
+
}], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
|
|
10333
|
+
|
|
10079
10334
|
function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) { if (rf & 1) {
|
|
10080
10335
|
i0.ɵɵelementStart(0, "h1", 11);
|
|
10081
10336
|
i0.ɵɵtext(1);
|
|
@@ -10192,28 +10447,37 @@ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10192
10447
|
i0.ɵɵadvance(2);
|
|
10193
10448
|
i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol2Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields);
|
|
10194
10449
|
} }
|
|
10450
|
+
function CaseEditPageComponent_form_10_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
10451
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
10452
|
+
i0.ɵɵelementStart(0, "button", 38);
|
|
10453
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
|
|
10454
|
+
i0.ɵɵtext(1);
|
|
10455
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
10456
|
+
i0.ɵɵelementEnd();
|
|
10457
|
+
} if (rf & 2) {
|
|
10458
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
10459
|
+
i0.ɵɵproperty("disabled", ctx_r1.isAtStart());
|
|
10460
|
+
i0.ɵɵadvance();
|
|
10461
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
10462
|
+
} }
|
|
10195
10463
|
function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
10196
10464
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
10197
10465
|
i0.ɵɵelementStart(0, "form", 22);
|
|
10198
|
-
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.
|
|
10466
|
+
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.nextStep()); });
|
|
10199
10467
|
i0.ɵɵelementStart(1, "fieldset", 23);
|
|
10200
10468
|
i0.ɵɵelement(2, "legend", 24);
|
|
10201
10469
|
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);
|
|
10202
10470
|
i0.ɵɵelementEnd();
|
|
10203
|
-
i0.ɵɵelementStart(5, "div", 27)
|
|
10204
|
-
i0.ɵɵ
|
|
10205
|
-
i0.ɵɵ
|
|
10471
|
+
i0.ɵɵelementStart(5, "div", 27);
|
|
10472
|
+
i0.ɵɵtemplate(6, CaseEditPageComponent_form_10_button_6_Template, 3, 4, "button", 28);
|
|
10473
|
+
i0.ɵɵelementStart(7, "button", 29);
|
|
10206
10474
|
i0.ɵɵtext(8);
|
|
10207
10475
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
10208
|
-
i0.ɵɵelementEnd();
|
|
10209
|
-
i0.ɵɵelementStart(10, "button", 29);
|
|
10210
|
-
i0.ɵɵtext(11);
|
|
10211
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
10212
10476
|
i0.ɵɵelementEnd()();
|
|
10213
|
-
i0.ɵɵelementStart(
|
|
10214
|
-
i0.ɵɵlistener("click", function
|
|
10215
|
-
i0.ɵɵtext(
|
|
10216
|
-
i0.ɵɵpipe(
|
|
10477
|
+
i0.ɵɵelementStart(10, "p", 30)(11, "a", 31);
|
|
10478
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_11_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
|
|
10479
|
+
i0.ɵɵtext(12);
|
|
10480
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
10217
10481
|
i0.ɵɵelementEnd()()();
|
|
10218
10482
|
} if (rf & 2) {
|
|
10219
10483
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10223,20 +10487,18 @@ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10223
10487
|
i0.ɵɵadvance();
|
|
10224
10488
|
i0.ɵɵproperty("ngIf", ctx_r1.currentPage.isMultiColumn());
|
|
10225
10489
|
i0.ɵɵadvance(2);
|
|
10226
|
-
i0.ɵɵproperty("
|
|
10227
|
-
i0.ɵɵadvance(
|
|
10228
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "Previous"), " ");
|
|
10229
|
-
i0.ɵɵadvance(2);
|
|
10490
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.isAtStart());
|
|
10491
|
+
i0.ɵɵadvance();
|
|
10230
10492
|
i0.ɵɵproperty("disabled", ctx_r1.submitting());
|
|
10231
10493
|
i0.ɵɵadvance();
|
|
10232
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10494
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, ctx_r1.triggerText));
|
|
10233
10495
|
i0.ɵɵadvance(4);
|
|
10234
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10496
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 9, ctx_r1.getCancelText()));
|
|
10235
10497
|
} }
|
|
10236
10498
|
function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
|
|
10237
|
-
const
|
|
10238
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
10239
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
10499
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
10500
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 39);
|
|
10501
|
+
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
|
|
10240
10502
|
i0.ɵɵelementEnd();
|
|
10241
10503
|
} if (rf & 2) {
|
|
10242
10504
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10254,7 +10516,9 @@ class CaseEditPageComponent {
|
|
|
10254
10516
|
caseEditDataService;
|
|
10255
10517
|
loadingService;
|
|
10256
10518
|
validPageListCaseFieldsService;
|
|
10519
|
+
multipageComponentStateService;
|
|
10257
10520
|
addressService;
|
|
10521
|
+
linkedCasesService;
|
|
10258
10522
|
static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
10259
10523
|
static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
10260
10524
|
static NEW_FORM_SAVE = 'NEW_FORM_CHANGED_SAVE';
|
|
@@ -10295,7 +10559,7 @@ class CaseEditPageComponent {
|
|
|
10295
10559
|
topContainer.focus();
|
|
10296
10560
|
}
|
|
10297
10561
|
}
|
|
10298
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, addressService) {
|
|
10562
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, multipageComponentStateService, addressService, linkedCasesService) {
|
|
10299
10563
|
this.caseEdit = caseEdit;
|
|
10300
10564
|
this.route = route;
|
|
10301
10565
|
this.formValueService = formValueService;
|
|
@@ -10307,7 +10571,27 @@ class CaseEditPageComponent {
|
|
|
10307
10571
|
this.caseEditDataService = caseEditDataService;
|
|
10308
10572
|
this.loadingService = loadingService;
|
|
10309
10573
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10574
|
+
this.multipageComponentStateService = multipageComponentStateService;
|
|
10310
10575
|
this.addressService = addressService;
|
|
10576
|
+
this.linkedCasesService = linkedCasesService;
|
|
10577
|
+
this.multipageComponentStateService.setInstigator(this);
|
|
10578
|
+
}
|
|
10579
|
+
onFinalNext() {
|
|
10580
|
+
this.submit();
|
|
10581
|
+
}
|
|
10582
|
+
onFinalPrevious() {
|
|
10583
|
+
this.cancel();
|
|
10584
|
+
}
|
|
10585
|
+
isAtStart() {
|
|
10586
|
+
return this.multipageComponentStateService.getJourneyCollection()[0]?.journeyPageNumber === this.multipageComponentStateService.getJourneyCollection()[0]?.journeyStartPageNumber;
|
|
10587
|
+
}
|
|
10588
|
+
// This method will be triggered by the next button in the app component
|
|
10589
|
+
nextStep() {
|
|
10590
|
+
this.multipageComponentStateService.next();
|
|
10591
|
+
}
|
|
10592
|
+
// This method will be triggered by the previous button in the app component
|
|
10593
|
+
previousStep() {
|
|
10594
|
+
this.multipageComponentStateService.previous();
|
|
10311
10595
|
}
|
|
10312
10596
|
ngOnInit() {
|
|
10313
10597
|
initDialog();
|
|
@@ -10366,6 +10650,7 @@ class CaseEditPageComponent {
|
|
|
10366
10650
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
10367
10651
|
this.saveDraftSub?.unsubscribe();
|
|
10368
10652
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
10653
|
+
this.multipageComponentStateService.reset();
|
|
10369
10654
|
}
|
|
10370
10655
|
applyValuesChanged(valuesChanged) {
|
|
10371
10656
|
this.formValuesChanged = valuesChanged;
|
|
@@ -10392,6 +10677,7 @@ class CaseEditPageComponent {
|
|
|
10392
10677
|
caseEventData.data = caseEventData.event_data;
|
|
10393
10678
|
this.updateFormData(caseEventData);
|
|
10394
10679
|
this.previous();
|
|
10680
|
+
this.previousStep();
|
|
10395
10681
|
CaseEditPageComponent.setFocusToTop();
|
|
10396
10682
|
}
|
|
10397
10683
|
// Adding validation message to show it as Error Summary
|
|
@@ -10642,6 +10928,9 @@ class CaseEditPageComponent {
|
|
|
10642
10928
|
return this.caseEdit.hasPrevious(this.currentPage.id);
|
|
10643
10929
|
}
|
|
10644
10930
|
cancel() {
|
|
10931
|
+
if (this.isLinkedCasesJourney()) {
|
|
10932
|
+
this.linkedCasesService.resetLinkedCaseData();
|
|
10933
|
+
}
|
|
10645
10934
|
if (this.eventTrigger.can_save_draft) {
|
|
10646
10935
|
if (this.formValuesChanged) {
|
|
10647
10936
|
const dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
|
|
@@ -10668,6 +10957,7 @@ class CaseEditPageComponent {
|
|
|
10668
10957
|
this.caseEdit.cancelled.emit();
|
|
10669
10958
|
}
|
|
10670
10959
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10960
|
+
this.multipageComponentStateService.reset();
|
|
10671
10961
|
}
|
|
10672
10962
|
submitting() {
|
|
10673
10963
|
return this.caseEdit.isSubmitting;
|
|
@@ -10820,8 +11110,8 @@ class CaseEditPageComponent {
|
|
|
10820
11110
|
}
|
|
10821
11111
|
});
|
|
10822
11112
|
}
|
|
10823
|
-
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)); };
|
|
10824
|
-
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"], ["
|
|
11113
|
+
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(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
11114
|
+
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"], ["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"], ["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"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10825
11115
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
10826
11116
|
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);
|
|
10827
11117
|
i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
@@ -10829,15 +11119,15 @@ class CaseEditPageComponent {
|
|
|
10829
11119
|
i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
|
|
10830
11120
|
i0.ɵɵelementEnd();
|
|
10831
11121
|
i0.ɵɵelementStart(9, "div", 7);
|
|
10832
|
-
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template,
|
|
11122
|
+
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 14, 11, "form", 8);
|
|
10833
11123
|
i0.ɵɵelementEnd();
|
|
10834
11124
|
i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
10835
11125
|
} if (rf & 2) {
|
|
10836
|
-
const
|
|
10837
|
-
const
|
|
11126
|
+
const titleBlock_r9 = i0.ɵɵreference(3);
|
|
11127
|
+
const idBlock_r10 = i0.ɵɵreference(5);
|
|
10838
11128
|
i0.ɵɵproperty("ngIf", ctx.currentPage);
|
|
10839
11129
|
i0.ɵɵadvance();
|
|
10840
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
11130
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
|
|
10841
11131
|
i0.ɵɵadvance(5);
|
|
10842
11132
|
i0.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
10843
11133
|
i0.ɵɵadvance();
|
|
@@ -10852,9 +11142,9 @@ class CaseEditPageComponent {
|
|
|
10852
11142
|
}
|
|
10853
11143
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
10854
11144
|
type: Component,
|
|
10855
|
-
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)=\"
|
|
10856
|
-
}], () => [{ 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); })();
|
|
10857
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber:
|
|
11145
|
+
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)=\"nextStep()\">\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\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isAtStart()\">\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"] }]
|
|
11146
|
+
}], () => [{ 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: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }], null); })();
|
|
11147
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 33 }); })();
|
|
10858
11148
|
|
|
10859
11149
|
class CallbackErrorsContext {
|
|
10860
11150
|
triggerText;
|
|
@@ -11003,7 +11293,7 @@ class CallbackErrorsComponent {
|
|
|
11003
11293
|
}] }); })();
|
|
11004
11294
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CallbackErrorsComponent, { className: "CallbackErrorsComponent", filePath: "lib/shared/components/error/callback-errors.component.ts", lineNumber: 10 }); })();
|
|
11005
11295
|
|
|
11006
|
-
const _c0$
|
|
11296
|
+
const _c0$Z = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11007
11297
|
class CaseEventCompletionTaskCancelledComponent {
|
|
11008
11298
|
parentComponent;
|
|
11009
11299
|
caseId;
|
|
@@ -11066,7 +11356,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11066
11356
|
i0.ɵɵadvance(4);
|
|
11067
11357
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
11068
11358
|
i0.ɵɵadvance(2);
|
|
11069
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$
|
|
11359
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$Z, ctx.caseId));
|
|
11070
11360
|
i0.ɵɵadvance();
|
|
11071
11361
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
11072
11362
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -11080,7 +11370,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11080
11370
|
}] }], null); })();
|
|
11081
11371
|
(() => { (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 }); })();
|
|
11082
11372
|
|
|
11083
|
-
const _c0$
|
|
11373
|
+
const _c0$Y = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11084
11374
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11085
11375
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11086
11376
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -11133,7 +11423,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
11133
11423
|
i0.ɵɵadvance(4);
|
|
11134
11424
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
11135
11425
|
i0.ɵɵadvance(2);
|
|
11136
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$
|
|
11426
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$Y, ctx_r1.caseId));
|
|
11137
11427
|
i0.ɵɵadvance();
|
|
11138
11428
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
11139
11429
|
} }
|
|
@@ -11609,7 +11899,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11609
11899
|
}] }); })();
|
|
11610
11900
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11611
11901
|
|
|
11612
|
-
const _c0$
|
|
11902
|
+
const _c0$X = ["writeComplexFieldComponent"];
|
|
11613
11903
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
11614
11904
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11615
11905
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11851,7 +12141,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11851
12141
|
}
|
|
11852
12142
|
static ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
11853
12143
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11854
|
-
i0.ɵɵviewQuery(_c0$
|
|
12144
|
+
i0.ɵɵviewQuery(_c0$X, 5);
|
|
11855
12145
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
11856
12146
|
} if (rf & 2) {
|
|
11857
12147
|
let _t;
|
|
@@ -11914,6 +12204,171 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
11914
12204
|
type: Input
|
|
11915
12205
|
}] }); })();
|
|
11916
12206
|
|
|
12207
|
+
const _c0$W = ["journeyChild"];
|
|
12208
|
+
class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
12209
|
+
multipageComponentStateService;
|
|
12210
|
+
journeyStartPageNumber = 0;
|
|
12211
|
+
journeyEndPageNumber = 0;
|
|
12212
|
+
journeyPageNumber = 0;
|
|
12213
|
+
journeyPreviousPageNumber = 0;
|
|
12214
|
+
journeyId = 'journey';
|
|
12215
|
+
// todo...
|
|
12216
|
+
childJourney;
|
|
12217
|
+
constructor(multipageComponentStateService) {
|
|
12218
|
+
super();
|
|
12219
|
+
this.multipageComponentStateService = multipageComponentStateService;
|
|
12220
|
+
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12221
|
+
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12222
|
+
}
|
|
12223
|
+
next() {
|
|
12224
|
+
if (!this.hasNext()) {
|
|
12225
|
+
return;
|
|
12226
|
+
}
|
|
12227
|
+
this.childJourney.next();
|
|
12228
|
+
}
|
|
12229
|
+
previous() {
|
|
12230
|
+
if (!this.hasPrevious()) {
|
|
12231
|
+
return;
|
|
12232
|
+
}
|
|
12233
|
+
if (this.childJourney['cachedFlagType'] && this.childJourney['subJourneyIndex'] !== 0) {
|
|
12234
|
+
this.childJourney.previous();
|
|
12235
|
+
}
|
|
12236
|
+
else {
|
|
12237
|
+
this.previousPage();
|
|
12238
|
+
}
|
|
12239
|
+
}
|
|
12240
|
+
previousPage() {
|
|
12241
|
+
if (this.hasPrevious()) {
|
|
12242
|
+
this.journeyPageNumber--;
|
|
12243
|
+
this.onPageChange();
|
|
12244
|
+
}
|
|
12245
|
+
}
|
|
12246
|
+
nextPage() {
|
|
12247
|
+
if (this.hasNext()) {
|
|
12248
|
+
this.journeyPageNumber++;
|
|
12249
|
+
this.onPageChange();
|
|
12250
|
+
}
|
|
12251
|
+
}
|
|
12252
|
+
ngOnInit() {
|
|
12253
|
+
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12254
|
+
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12255
|
+
if (state) {
|
|
12256
|
+
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12257
|
+
this.journeyPageNumber = journeyPageNumber;
|
|
12258
|
+
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12259
|
+
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12260
|
+
}
|
|
12261
|
+
}
|
|
12262
|
+
ngOnDestroy() {
|
|
12263
|
+
this.multipageComponentStateService.setJourneyState(this);
|
|
12264
|
+
}
|
|
12265
|
+
hasNext() { return this.journeyPageNumber < this.journeyEndPageNumber; }
|
|
12266
|
+
;
|
|
12267
|
+
hasPrevious() { return this.journeyPageNumber > this.journeyStartPageNumber; }
|
|
12268
|
+
;
|
|
12269
|
+
isFinished() { return this.journeyPageNumber === this.journeyEndPageNumber; }
|
|
12270
|
+
;
|
|
12271
|
+
isStart() { return this.journeyPageNumber === this.journeyStartPageNumber; }
|
|
12272
|
+
;
|
|
12273
|
+
getId() { return this.journeyId; }
|
|
12274
|
+
;
|
|
12275
|
+
onPageChange() { }
|
|
12276
|
+
;
|
|
12277
|
+
static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(t) { return new (t || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12278
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12279
|
+
i0.ɵɵviewQuery(_c0$W, 5);
|
|
12280
|
+
} if (rf & 2) {
|
|
12281
|
+
let _t;
|
|
12282
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12283
|
+
} }, inputs: { journeyId: "journeyId" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
12284
|
+
}
|
|
12285
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldWriteJourneyComponent, [{
|
|
12286
|
+
type: Directive
|
|
12287
|
+
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12288
|
+
type: Input
|
|
12289
|
+
}], childJourney: [{
|
|
12290
|
+
type: ViewChild,
|
|
12291
|
+
args: ['journeyChild']
|
|
12292
|
+
}] }); })();
|
|
12293
|
+
|
|
12294
|
+
const _c0$V = ["journeyChild"];
|
|
12295
|
+
class AbstractJourneyComponent {
|
|
12296
|
+
multipageComponentStateService;
|
|
12297
|
+
journeyStartPageNumber = 0;
|
|
12298
|
+
journeyEndPageNumber = 0;
|
|
12299
|
+
journeyPageNumber = 0;
|
|
12300
|
+
journeyPreviousPageNumber;
|
|
12301
|
+
journeyId = 'journey';
|
|
12302
|
+
// todo...
|
|
12303
|
+
childJourney;
|
|
12304
|
+
constructor(multipageComponentStateService) {
|
|
12305
|
+
this.multipageComponentStateService = multipageComponentStateService;
|
|
12306
|
+
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12307
|
+
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12308
|
+
}
|
|
12309
|
+
next() {
|
|
12310
|
+
if (!this.hasNext()) {
|
|
12311
|
+
return;
|
|
12312
|
+
}
|
|
12313
|
+
this.childJourney.next();
|
|
12314
|
+
}
|
|
12315
|
+
previous() {
|
|
12316
|
+
if (!this.hasPrevious()) {
|
|
12317
|
+
return;
|
|
12318
|
+
}
|
|
12319
|
+
this.previousPage();
|
|
12320
|
+
}
|
|
12321
|
+
previousPage() {
|
|
12322
|
+
if (this.hasPrevious()) {
|
|
12323
|
+
this.journeyPageNumber--;
|
|
12324
|
+
}
|
|
12325
|
+
}
|
|
12326
|
+
ngOnInit() {
|
|
12327
|
+
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12328
|
+
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12329
|
+
if (state) {
|
|
12330
|
+
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12331
|
+
this.journeyPageNumber = journeyPageNumber;
|
|
12332
|
+
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12333
|
+
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12334
|
+
}
|
|
12335
|
+
}
|
|
12336
|
+
ngOnDestroy() {
|
|
12337
|
+
this.multipageComponentStateService.setJourneyState(this);
|
|
12338
|
+
}
|
|
12339
|
+
hasNext() {
|
|
12340
|
+
return this.journeyPageNumber < this.journeyEndPageNumber;
|
|
12341
|
+
}
|
|
12342
|
+
hasPrevious() {
|
|
12343
|
+
return this.journeyPageNumber > this.journeyStartPageNumber;
|
|
12344
|
+
}
|
|
12345
|
+
isFinished() {
|
|
12346
|
+
return this.journeyPageNumber === this.journeyEndPageNumber;
|
|
12347
|
+
}
|
|
12348
|
+
isStart() {
|
|
12349
|
+
return this.journeyPageNumber === this.journeyStartPageNumber;
|
|
12350
|
+
}
|
|
12351
|
+
getId() {
|
|
12352
|
+
return this.journeyId;
|
|
12353
|
+
}
|
|
12354
|
+
onPageChange() { }
|
|
12355
|
+
static ɵfac = function AbstractJourneyComponent_Factory(t) { return new (t || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12356
|
+
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12357
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
12358
|
+
} if (rf & 2) {
|
|
12359
|
+
let _t;
|
|
12360
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12361
|
+
} }, inputs: { journeyId: "journeyId" } });
|
|
12362
|
+
}
|
|
12363
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractJourneyComponent, [{
|
|
12364
|
+
type: Directive
|
|
12365
|
+
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12366
|
+
type: Input
|
|
12367
|
+
}], childJourney: [{
|
|
12368
|
+
type: ViewChild,
|
|
12369
|
+
args: ['journeyChild']
|
|
12370
|
+
}] }); })();
|
|
12371
|
+
|
|
11917
12372
|
var DisplayContextParameter;
|
|
11918
12373
|
(function (DisplayContextParameter) {
|
|
11919
12374
|
DisplayContextParameter["Read"] = "READ";
|
|
@@ -12116,10 +12571,12 @@ class CaseFlagStateService {
|
|
|
12116
12571
|
formGroup = new FormGroup({});
|
|
12117
12572
|
pageLocation;
|
|
12118
12573
|
fieldStateToNavigate;
|
|
12574
|
+
lastPageFieldState;
|
|
12119
12575
|
resetCache(pageLocation) {
|
|
12120
12576
|
this.formGroup = new FormGroup({});
|
|
12121
12577
|
this.fieldStateToNavigate = undefined;
|
|
12122
12578
|
this.pageLocation = pageLocation;
|
|
12579
|
+
this.lastPageFieldState = 0;
|
|
12123
12580
|
}
|
|
12124
12581
|
static ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
|
|
12125
12582
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
|
|
@@ -12373,7 +12830,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
12373
12830
|
|
|
12374
12831
|
function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
12375
12832
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12376
|
-
i0.ɵɵelementStart(0, "div",
|
|
12833
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "ul", 7)(2, "li")(3, "a", 8);
|
|
12377
12834
|
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)); });
|
|
12378
12835
|
i0.ɵɵtext(4);
|
|
12379
12836
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -12384,11 +12841,11 @@ function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
12384
12841
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, errorMessage_r2.description));
|
|
12385
12842
|
} }
|
|
12386
12843
|
function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12387
|
-
i0.ɵɵelementStart(0, "div",
|
|
12844
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "h2", 4);
|
|
12388
12845
|
i0.ɵɵtext(2);
|
|
12389
12846
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
12390
12847
|
i0.ɵɵelementEnd();
|
|
12391
|
-
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div",
|
|
12848
|
+
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 5);
|
|
12392
12849
|
i0.ɵɵelementEnd();
|
|
12393
12850
|
} if (rf & 2) {
|
|
12394
12851
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12400,7 +12857,7 @@ function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12400
12857
|
function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12401
12858
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
12402
12859
|
i0.ɵɵelementContainerStart(0);
|
|
12403
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-location",
|
|
12860
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-location", 12, 0);
|
|
12404
12861
|
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)); });
|
|
12405
12862
|
i0.ɵɵelementEnd();
|
|
12406
12863
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12412,7 +12869,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if
|
|
|
12412
12869
|
function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12413
12870
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
12414
12871
|
i0.ɵɵelementContainerStart(0);
|
|
12415
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-type",
|
|
12872
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-type", 13, 0);
|
|
12416
12873
|
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)); });
|
|
12417
12874
|
i0.ɵɵelementEnd();
|
|
12418
12875
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12424,7 +12881,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if
|
|
|
12424
12881
|
function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12425
12882
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
12426
12883
|
i0.ɵɵelementContainerStart(0);
|
|
12427
|
-
i0.ɵɵelementStart(1, "ccd-search-language-interpreter",
|
|
12884
|
+
i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 14, 0);
|
|
12428
12885
|
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)); });
|
|
12429
12886
|
i0.ɵɵelementEnd();
|
|
12430
12887
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12436,7 +12893,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if
|
|
|
12436
12893
|
function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
12437
12894
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
12438
12895
|
i0.ɵɵelementContainerStart(0);
|
|
12439
|
-
i0.ɵɵelementStart(1, "ccd-add-comments",
|
|
12896
|
+
i0.ɵɵelementStart(1, "ccd-add-comments", 15, 0);
|
|
12440
12897
|
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)); });
|
|
12441
12898
|
i0.ɵɵelementEnd();
|
|
12442
12899
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12448,7 +12905,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if
|
|
|
12448
12905
|
function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
12449
12906
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
12450
12907
|
i0.ɵɵelementContainerStart(0);
|
|
12451
|
-
i0.ɵɵelementStart(1, "ccd-confirm-flag-status",
|
|
12908
|
+
i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 16, 0);
|
|
12452
12909
|
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)); });
|
|
12453
12910
|
i0.ɵɵelementEnd();
|
|
12454
12911
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12458,8 +12915,8 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
|
|
|
12458
12915
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup)("defaultStatus", ctx_r2.flagType.defaultStatus);
|
|
12459
12916
|
} }
|
|
12460
12917
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12461
|
-
i0.ɵɵelementStart(0, "div",
|
|
12462
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template,
|
|
12918
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "div", 10);
|
|
12919
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 3, 3, "ng-container", 11)(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 3, 7, "ng-container", 11)(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 3, 2, "ng-container", 11)(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 3, 4, "ng-container", 11)(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 3, 2, "ng-container", 11);
|
|
12463
12920
|
i0.ɵɵelementEnd()();
|
|
12464
12921
|
} if (rf & 2) {
|
|
12465
12922
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12480,7 +12937,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12480
12937
|
function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12481
12938
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
12482
12939
|
i0.ɵɵelementContainerStart(0);
|
|
12483
|
-
i0.ɵɵelementStart(1, "ccd-manage-case-flags",
|
|
12940
|
+
i0.ɵɵelementStart(1, "ccd-manage-case-flags", 17, 0);
|
|
12484
12941
|
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)); });
|
|
12485
12942
|
i0.ɵɵelementEnd();
|
|
12486
12943
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12492,7 +12949,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if
|
|
|
12492
12949
|
function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12493
12950
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12494
12951
|
i0.ɵɵelementContainerStart(0);
|
|
12495
|
-
i0.ɵɵelementStart(1, "ccd-update-flag",
|
|
12952
|
+
i0.ɵɵelementStart(1, "ccd-update-flag", 18, 0);
|
|
12496
12953
|
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)); });
|
|
12497
12954
|
i0.ɵɵelementEnd();
|
|
12498
12955
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12504,7 +12961,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if
|
|
|
12504
12961
|
function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12505
12962
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
12506
12963
|
i0.ɵɵelementContainerStart(0);
|
|
12507
|
-
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form",
|
|
12964
|
+
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 19, 0);
|
|
12508
12965
|
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)); });
|
|
12509
12966
|
i0.ɵɵelementEnd();
|
|
12510
12967
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12514,8 +12971,8 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if
|
|
|
12514
12971
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup);
|
|
12515
12972
|
} }
|
|
12516
12973
|
function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12517
|
-
i0.ɵɵelementStart(0, "div",
|
|
12518
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template,
|
|
12974
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "div", 10);
|
|
12975
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template, 3, 4, "ng-container", 11)(3, WriteCaseFlagFieldComponent_div_2_ng_container_3_Template, 3, 2, "ng-container", 11)(4, WriteCaseFlagFieldComponent_div_2_ng_container_4_Template, 3, 1, "ng-container", 11);
|
|
12519
12976
|
i0.ɵɵelementEnd()();
|
|
12520
12977
|
} if (rf & 2) {
|
|
12521
12978
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12529,11 +12986,12 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12529
12986
|
i0.ɵɵadvance();
|
|
12530
12987
|
i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION);
|
|
12531
12988
|
} }
|
|
12532
|
-
class WriteCaseFlagFieldComponent extends
|
|
12989
|
+
class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
12533
12990
|
route;
|
|
12534
12991
|
caseEditDataService;
|
|
12535
12992
|
caseFlagStateService;
|
|
12536
12993
|
rpxTranslationService;
|
|
12994
|
+
//public formGroup: FormGroup;
|
|
12537
12995
|
fieldState;
|
|
12538
12996
|
caseFlagFieldState = CaseFlagFieldState;
|
|
12539
12997
|
errorMessages = [];
|
|
@@ -12552,6 +13010,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12552
13010
|
displayContextParameter;
|
|
12553
13011
|
determinedLocation;
|
|
12554
13012
|
allCaseFlagStagesCompleted = false;
|
|
13013
|
+
navigatedTo = false;
|
|
12555
13014
|
// Code for "Other" flag type as defined in Reference Data
|
|
12556
13015
|
otherFlagTypeCode = 'OT0001';
|
|
12557
13016
|
selectedManageCaseLocation = 'selectedManageCaseLocation';
|
|
@@ -12567,8 +13026,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12567
13026
|
this.caseFlagParentFormGroup.value.selectedLocation = selectedLocation;
|
|
12568
13027
|
}
|
|
12569
13028
|
}
|
|
12570
|
-
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService) {
|
|
12571
|
-
super();
|
|
13029
|
+
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService, multipageComponentStateService) {
|
|
13030
|
+
super(multipageComponentStateService);
|
|
12572
13031
|
this.route = route;
|
|
12573
13032
|
this.caseEditDataService = caseEditDataService;
|
|
12574
13033
|
this.caseFlagStateService = caseFlagStateService;
|
|
@@ -12578,13 +13037,14 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12578
13037
|
// If it is start of the journey or navigation from check your answers page then fieldStateToNavigate property
|
|
12579
13038
|
// in case flag state service will contain the field state to navigate based on create or manage journey
|
|
12580
13039
|
this.fieldState = this.caseFlagStateService.fieldStateToNavigate;
|
|
12581
|
-
if (this.fieldState === undefined
|
|
12582
|
-
this.fieldState === CaseFlagFieldState.FLAG_LOCATION ||
|
|
12583
|
-
this.fieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS) {
|
|
13040
|
+
if (this.fieldState === undefined) {
|
|
12584
13041
|
const params = this.route.snapshot.params;
|
|
12585
13042
|
// Clear the form group, field state to navigate and set the page location
|
|
12586
13043
|
this.caseFlagStateService.resetCache(`../${params['eid']}/${params['page']}`);
|
|
12587
13044
|
}
|
|
13045
|
+
else {
|
|
13046
|
+
this.navigatedTo = true;
|
|
13047
|
+
}
|
|
12588
13048
|
// Reassign the form group from the case flag state service
|
|
12589
13049
|
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
12590
13050
|
// Clear form validation errors as a new page will be rendered based on field state
|
|
@@ -12623,11 +13083,14 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12623
13083
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
12624
13084
|
}
|
|
12625
13085
|
if (this.route.snapshot.data.eventTrigger.case_fields) {
|
|
12626
|
-
|
|
13086
|
+
// there is an edge case in the navigation when going back, sometimes the case_fileds will lose values in the values which causes the flow to break before CYA
|
|
13087
|
+
// below funciton ensures all data is correctly set.
|
|
13088
|
+
const flagData = this.validateCaseFields(this.route.snapshot.data.eventTrigger.case_fields);
|
|
13089
|
+
this.flagsData = (flagData)
|
|
12627
13090
|
.reduce((flags, caseField) => FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField), []);
|
|
12628
13091
|
// Set displayContextParameter (to be passed as an input to ManageCaseFlagsComponent for setting correct title)
|
|
12629
13092
|
this.displayContextParameter =
|
|
12630
|
-
this.setDisplayContextParameter(
|
|
13093
|
+
this.setDisplayContextParameter(flagData);
|
|
12631
13094
|
// Set boolean indicating the display_context_parameter is "update"
|
|
12632
13095
|
this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
|
|
12633
13096
|
// Set boolean indicating the display_context_parameter is "external"
|
|
@@ -12646,6 +13109,58 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12646
13109
|
});
|
|
12647
13110
|
}
|
|
12648
13111
|
}
|
|
13112
|
+
// CSFD-16.
|
|
13113
|
+
// Setup the page number to initially be the same value as
|
|
13114
|
+
// the start page number. Provided that some state exists within
|
|
13115
|
+
// the page state service, use that instaead.
|
|
13116
|
+
//
|
|
13117
|
+
// If isDisplayContextParameterUpdate is true, then the starting page must be
|
|
13118
|
+
// the value of 4. Otherwise, it's 0. However, we're using an enum to simplify
|
|
13119
|
+
// this process.
|
|
13120
|
+
//
|
|
13121
|
+
// It might help to take a look at the template file.
|
|
13122
|
+
if (this.isDisplayContextParameterUpdate) {
|
|
13123
|
+
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS;
|
|
13124
|
+
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
|
|
13125
|
+
}
|
|
13126
|
+
else {
|
|
13127
|
+
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_LOCATION;
|
|
13128
|
+
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_STATUS;
|
|
13129
|
+
}
|
|
13130
|
+
// Now that we've set the start page number, let's set the current page number.
|
|
13131
|
+
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
13132
|
+
// If we've navigated to this page, then we know by default, we want to set the
|
|
13133
|
+
// journey page number to the field state.
|
|
13134
|
+
if (this.navigatedTo) {
|
|
13135
|
+
const pageNo = this.fieldState === CaseFlagFieldState.FLAG_STATUS ? this.fieldState - 1 : this.fieldState;
|
|
13136
|
+
this.journeyPageNumber = pageNo;
|
|
13137
|
+
this.journeyPreviousPageNumber = pageNo;
|
|
13138
|
+
}
|
|
13139
|
+
// Provided we have some stored state, i.e. when going backwards, we want
|
|
13140
|
+
// to get the last visited page, etc.
|
|
13141
|
+
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
13142
|
+
if (state) {
|
|
13143
|
+
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
13144
|
+
this.journeyPageNumber = journeyPageNumber;
|
|
13145
|
+
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
13146
|
+
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
13147
|
+
}
|
|
13148
|
+
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
13149
|
+
}
|
|
13150
|
+
validateCaseFields(caseFields) {
|
|
13151
|
+
caseFields.forEach((field) => {
|
|
13152
|
+
if (field.formatted_value) {
|
|
13153
|
+
Object.keys(field.formatted_value).forEach((valueKey) => {
|
|
13154
|
+
if (field.formatted_value[valueKey] !== field.value[valueKey]) {
|
|
13155
|
+
field.value[valueKey] = field.formatted_value[valueKey];
|
|
13156
|
+
}
|
|
13157
|
+
});
|
|
13158
|
+
}
|
|
13159
|
+
});
|
|
13160
|
+
return caseFields;
|
|
13161
|
+
}
|
|
13162
|
+
onPageChange() {
|
|
13163
|
+
this.multipageComponentStateService.isAtStart = this.fieldState === this.caseFlagFieldState.FLAG_LOCATION;
|
|
12649
13164
|
}
|
|
12650
13165
|
setDisplayContextParameterUpdate(displayContextParameter) {
|
|
12651
13166
|
return displayContextParameter === CaseFlagDisplayContextParameter.UPDATE ||
|
|
@@ -12701,6 +13216,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12701
13216
|
}
|
|
12702
13217
|
proceedToNextState() {
|
|
12703
13218
|
if (!this.isAtFinalState()) {
|
|
13219
|
+
this.journeyPreviousPageNumber = this.fieldState;
|
|
12704
13220
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
12705
13221
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
12706
13222
|
// selection
|
|
@@ -12710,6 +13226,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12710
13226
|
else {
|
|
12711
13227
|
this.fieldState++;
|
|
12712
13228
|
}
|
|
13229
|
+
this.nextPage();
|
|
12713
13230
|
}
|
|
12714
13231
|
}
|
|
12715
13232
|
setFlagsCaseFieldValue() {
|
|
@@ -12728,6 +13245,18 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12728
13245
|
break;
|
|
12729
13246
|
}
|
|
12730
13247
|
}
|
|
13248
|
+
previousPage() {
|
|
13249
|
+
// if we are navigating away from the page, we should set the error messages to empty so the message dissapears
|
|
13250
|
+
this.errorMessages = [];
|
|
13251
|
+
this.journeyPreviousPageNumber = this.fieldState;
|
|
13252
|
+
if (this.hasPrevious() && this.fieldState === CaseFlagFieldState.FLAG_COMMENTS && !this.flagType?.listOfValues) {
|
|
13253
|
+
this.fieldState = CaseFlagFieldState.FLAG_TYPE;
|
|
13254
|
+
}
|
|
13255
|
+
else if (this.hasPrevious()) {
|
|
13256
|
+
this.fieldState--;
|
|
13257
|
+
}
|
|
13258
|
+
super.previousPage();
|
|
13259
|
+
}
|
|
12731
13260
|
addFlagToCollection() {
|
|
12732
13261
|
// Ensure no more than one new flag is being added at a time, by iterating through each Flags case field and removing
|
|
12733
13262
|
// any previous entry from the details array where that entry has no id (hence it is new - and there should be only
|
|
@@ -13012,6 +13541,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13012
13541
|
};
|
|
13013
13542
|
}
|
|
13014
13543
|
moveToFinalReviewStage() {
|
|
13544
|
+
this.caseFlagStateService.lastPageFieldState = this.fieldState;
|
|
13015
13545
|
this.setFlagsCaseFieldValue();
|
|
13016
13546
|
// Check that no errors have been set on caseFlagParentFormGroup (by determineLocationForFlag()); prevent moving to
|
|
13017
13547
|
// final review stage if errors exist
|
|
@@ -13026,6 +13556,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13026
13556
|
}
|
|
13027
13557
|
}
|
|
13028
13558
|
ngOnDestroy() {
|
|
13559
|
+
this.multipageComponentStateService.setJourneyState(this);
|
|
13029
13560
|
// Reset the fieldstateToNavigate as the write journey completes at this point
|
|
13030
13561
|
this.caseFlagStateService.fieldStateToNavigate = undefined;
|
|
13031
13562
|
this.caseTitleSubscription?.unsubscribe();
|
|
@@ -13037,9 +13568,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13037
13568
|
setDisplayContextParameter(caseFields) {
|
|
13038
13569
|
return caseFields.find(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']))?.display_context_parameter;
|
|
13039
13570
|
}
|
|
13040
|
-
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)); };
|
|
13041
|
-
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) {
|
|
13042
|
-
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div",
|
|
13571
|
+
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), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
13572
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["journeyChild", ""], ["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) {
|
|
13573
|
+
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 1)(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 2)(2, WriteCaseFlagFieldComponent_div_2_Template, 5, 5, "div", 2);
|
|
13043
13574
|
} if (rf & 2) {
|
|
13044
13575
|
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
13045
13576
|
i0.ɵɵadvance();
|
|
@@ -13050,9 +13581,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13050
13581
|
}
|
|
13051
13582
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseFlagFieldComponent, [{
|
|
13052
13583
|
type: Component,
|
|
13053
|
-
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\"
|
|
13054
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }], null); })();
|
|
13055
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber:
|
|
13584
|
+
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\"\n 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 |\n 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 #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [flagsData]=\"flagsData\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-select-flag-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_TYPE\">\n <ccd-select-flag-type \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [jurisdiction]=\"jurisdiction\"\n [caseTypeId]=\"caseTypeId\" \n [hmctsServiceId]=\"hmctsServiceId\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n [selectedFlagsLocation]=\"selectedFlagsLocation\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n (flagCommentsOptionalEmitter)=\"onFlagCommentsOptionalEmitted($event)\">\n </ccd-select-flag-type>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER\">\n <ccd-search-language-interpreter \n #journeyChild \n [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 \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [optional]=\"flagCommentsOptional\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-add-comments>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_STATUS\">\n <ccd-confirm-flag-status \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n [defaultStatus]=\"flagType.defaultStatus\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </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 \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [flagsData]=\"flagsData\"\n [caseTitle]=\"caseTitle\" \n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-manage-case-flags>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE\">\n <ccd-update-flag \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n [displayContextParameter]=\"displayContextParameter\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-update-flag>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION\">\n <ccd-update-flag-add-translation-form \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-update-flag-add-translation-form>\n </ng-container>\n </div>\n</div>", styles: [".validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
13585
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], null); })();
|
|
13586
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber: 21 }); })();
|
|
13056
13587
|
|
|
13057
13588
|
class CaseReferencePipe {
|
|
13058
13589
|
transform(caseReference) {
|
|
@@ -15790,139 +16321,6 @@ var Patterns;
|
|
|
15790
16321
|
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
15791
16322
|
})(Patterns || (Patterns = {}));
|
|
15792
16323
|
|
|
15793
|
-
class LinkedCasesService {
|
|
15794
|
-
jurisdictionService;
|
|
15795
|
-
searchService;
|
|
15796
|
-
static CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
15797
|
-
caseFieldValue = [];
|
|
15798
|
-
isLinkedCasesEventTrigger = false;
|
|
15799
|
-
caseDetails;
|
|
15800
|
-
caseId;
|
|
15801
|
-
caseName;
|
|
15802
|
-
linkCaseReasons = [];
|
|
15803
|
-
linkedCases = [];
|
|
15804
|
-
initialCaseLinks = [];
|
|
15805
|
-
editMode = false;
|
|
15806
|
-
jurisdictionsResponse = [];
|
|
15807
|
-
serverJurisdictionError;
|
|
15808
|
-
serverError = null;
|
|
15809
|
-
serverLinkedApiError = null;
|
|
15810
|
-
isServerReasonCodeError = false;
|
|
15811
|
-
caseJurisdictionID = null;
|
|
15812
|
-
constructor(jurisdictionService, searchService) {
|
|
15813
|
-
this.jurisdictionService = jurisdictionService;
|
|
15814
|
-
this.searchService = searchService;
|
|
15815
|
-
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
15816
|
-
this.jurisdictionsResponse = jurisdictions;
|
|
15817
|
-
}, (error) => {
|
|
15818
|
-
this.serverJurisdictionError = true;
|
|
15819
|
-
});
|
|
15820
|
-
}
|
|
15821
|
-
groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
15822
|
-
return arrObj.reduce((rv, x) => {
|
|
15823
|
-
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
15824
|
-
return rv;
|
|
15825
|
-
}, {});
|
|
15826
|
-
};
|
|
15827
|
-
constructElasticSearchQuery(caseIds, size) {
|
|
15828
|
-
return {
|
|
15829
|
-
query: {
|
|
15830
|
-
terms: {
|
|
15831
|
-
reference: caseIds,
|
|
15832
|
-
},
|
|
15833
|
-
},
|
|
15834
|
-
size,
|
|
15835
|
-
};
|
|
15836
|
-
}
|
|
15837
|
-
mapResponse(esSearchCasesResponse) {
|
|
15838
|
-
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
15839
|
-
return caseInfo && {
|
|
15840
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
15841
|
-
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
15842
|
-
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
15843
|
-
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
15844
|
-
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
15845
|
-
reasons: caseInfo?.value?.ReasonForLink
|
|
15846
|
-
};
|
|
15847
|
-
}
|
|
15848
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
15849
|
-
return forkJoin(searchCasesResponse);
|
|
15850
|
-
}
|
|
15851
|
-
getAllLinkedCaseInformation() {
|
|
15852
|
-
const searchCasesResponse = [];
|
|
15853
|
-
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
15854
|
-
Object.keys(linkedCaseIds).forEach(key => {
|
|
15855
|
-
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
15856
|
-
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
15857
|
-
searchCasesResponse.push(query);
|
|
15858
|
-
});
|
|
15859
|
-
if (searchCasesResponse.length) {
|
|
15860
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
15861
|
-
const casesResponse = [];
|
|
15862
|
-
searchCases.forEach(response => {
|
|
15863
|
-
response.results.forEach((result) => {
|
|
15864
|
-
casesResponse.push(this.mapResponse(result));
|
|
15865
|
-
});
|
|
15866
|
-
});
|
|
15867
|
-
this.linkedCases = casesResponse.map(item => {
|
|
15868
|
-
return {
|
|
15869
|
-
caseReference: item.caseReference,
|
|
15870
|
-
caseName: item.caseName,
|
|
15871
|
-
caseService: item.service,
|
|
15872
|
-
caseType: item.caseType,
|
|
15873
|
-
unlink: false,
|
|
15874
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
15875
|
-
return {
|
|
15876
|
-
Reason: reason
|
|
15877
|
-
};
|
|
15878
|
-
}),
|
|
15879
|
-
};
|
|
15880
|
-
});
|
|
15881
|
-
this.serverLinkedApiError = null;
|
|
15882
|
-
}, err => {
|
|
15883
|
-
this.serverLinkedApiError = {
|
|
15884
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
15885
|
-
};
|
|
15886
|
-
});
|
|
15887
|
-
}
|
|
15888
|
-
}
|
|
15889
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
15890
|
-
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
15891
|
-
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
15892
|
-
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
15893
|
-
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
15894
|
-
switch (fieldName) {
|
|
15895
|
-
case 'JURISDICTION':
|
|
15896
|
-
return selectedJurisdiction && selectedJurisdiction.description;
|
|
15897
|
-
case 'CASE_TYPE':
|
|
15898
|
-
return selectedCaseType && selectedCaseType.name;
|
|
15899
|
-
case 'CASE_TYPE_DESCRIPTION':
|
|
15900
|
-
return selectedCaseType && selectedCaseType.description;
|
|
15901
|
-
case 'STATE':
|
|
15902
|
-
return state && state.name || fieldValue;
|
|
15903
|
-
case 'STATE_DESCRIPTION':
|
|
15904
|
-
return state && state.description || fieldValue;
|
|
15905
|
-
default:
|
|
15906
|
-
break;
|
|
15907
|
-
}
|
|
15908
|
-
}
|
|
15909
|
-
getCaseName(searchCasesResponse) {
|
|
15910
|
-
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
15911
|
-
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
15912
|
-
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
15913
|
-
if (caseNameHmctsInternalField) {
|
|
15914
|
-
caseName = caseNameHmctsInternalField.value;
|
|
15915
|
-
}
|
|
15916
|
-
});
|
|
15917
|
-
return caseName;
|
|
15918
|
-
}
|
|
15919
|
-
static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
15920
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
15921
|
-
}
|
|
15922
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
15923
|
-
type: Injectable
|
|
15924
|
-
}], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
|
|
15925
|
-
|
|
15926
16324
|
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
15927
16325
|
i0.ɵɵelementStart(0, "p", 5)(1, "span", 6);
|
|
15928
16326
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -15950,7 +16348,7 @@ function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15950
16348
|
i0.ɵɵproperty("ngIf", ctx_r1.serverLinkedApiError);
|
|
15951
16349
|
} }
|
|
15952
16350
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
15953
|
-
i0.ɵɵelementStart(0, "div",
|
|
16351
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "p", 3);
|
|
15954
16352
|
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
15955
16353
|
i0.ɵɵelementEnd();
|
|
15956
16354
|
i0.ɵɵelementStart(3, "p", 3);
|
|
@@ -15958,20 +16356,16 @@ function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
15958
16356
|
i0.ɵɵelementEnd()();
|
|
15959
16357
|
} }
|
|
15960
16358
|
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
15961
|
-
i0.ɵɵelementStart(0, "div",
|
|
16359
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "p", 3);
|
|
15962
16360
|
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
15963
16361
|
i0.ɵɵelementEnd()();
|
|
15964
16362
|
} }
|
|
15965
16363
|
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
15966
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
15967
16364
|
i0.ɵɵelementStart(0, "div")(1, "h1", 1);
|
|
15968
16365
|
i0.ɵɵtext(2, "Before you start");
|
|
15969
16366
|
i0.ɵɵelementEnd();
|
|
15970
16367
|
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7)(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
15971
|
-
i0.ɵɵ
|
|
15972
|
-
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()); });
|
|
15973
|
-
i0.ɵɵtext(7, "Next");
|
|
15974
|
-
i0.ɵɵelementEnd()()();
|
|
16368
|
+
i0.ɵɵelementEnd();
|
|
15975
16369
|
} if (rf & 2) {
|
|
15976
16370
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15977
16371
|
i0.ɵɵadvance(3);
|
|
@@ -15979,14 +16373,15 @@ function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
15979
16373
|
i0.ɵɵadvance();
|
|
15980
16374
|
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
15981
16375
|
} }
|
|
15982
|
-
class BeforeYouStartComponent {
|
|
16376
|
+
class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
15983
16377
|
router;
|
|
15984
16378
|
linkedCasesService;
|
|
15985
16379
|
linkedCasesStateEmitter = new EventEmitter();
|
|
15986
16380
|
isLinkCasesJourney = false;
|
|
15987
16381
|
errorMessages;
|
|
15988
16382
|
serverLinkedApiError;
|
|
15989
|
-
constructor(router, linkedCasesService) {
|
|
16383
|
+
constructor(router, linkedCasesService, multipageComponentStateService) {
|
|
16384
|
+
super(multipageComponentStateService);
|
|
15990
16385
|
this.router = router;
|
|
15991
16386
|
this.linkedCasesService = linkedCasesService;
|
|
15992
16387
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
@@ -16003,13 +16398,22 @@ class BeforeYouStartComponent {
|
|
|
16003
16398
|
navigateToNextPage: true
|
|
16004
16399
|
});
|
|
16005
16400
|
}
|
|
16401
|
+
next() {
|
|
16402
|
+
this.onNext();
|
|
16403
|
+
const isAnArray = Array.isArray(this.errorMessages);
|
|
16404
|
+
const isNotAnArray = !isAnArray;
|
|
16405
|
+
const isValid = (isAnArray && this.errorMessages.length === 0) || isNotAnArray;
|
|
16406
|
+
if (isValid) {
|
|
16407
|
+
super.next();
|
|
16408
|
+
}
|
|
16409
|
+
}
|
|
16006
16410
|
onBack() {
|
|
16007
16411
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
16008
16412
|
}
|
|
16009
|
-
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16010
|
-
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"], [
|
|
16413
|
+
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
16414
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], 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"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16011
16415
|
i0.ɵɵelementStart(0, "div");
|
|
16012
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template,
|
|
16416
|
+
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 5, 2, "div", 0);
|
|
16013
16417
|
i0.ɵɵelementEnd();
|
|
16014
16418
|
} if (rf & 2) {
|
|
16015
16419
|
i0.ɵɵadvance();
|
|
@@ -16020,11 +16424,11 @@ class BeforeYouStartComponent {
|
|
|
16020
16424
|
}
|
|
16021
16425
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
16022
16426
|
type: Component,
|
|
16023
|
-
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
|
|
16024
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16427
|
+
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" }]
|
|
16428
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
|
|
16025
16429
|
type: Output
|
|
16026
16430
|
}] }); })();
|
|
16027
|
-
(() => { (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:
|
|
16431
|
+
(() => { (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: 14 }); })();
|
|
16028
16432
|
|
|
16029
16433
|
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
16030
16434
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -16146,14 +16550,15 @@ function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
16146
16550
|
i0.ɵɵtext(2, " None ");
|
|
16147
16551
|
i0.ɵɵelementEnd()();
|
|
16148
16552
|
} }
|
|
16149
|
-
class CheckYourAnswersComponent {
|
|
16553
|
+
class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
16150
16554
|
linkedCasesService;
|
|
16151
16555
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16152
16556
|
linkedCases;
|
|
16153
16557
|
casesToUnlink;
|
|
16154
16558
|
isLinkCasesJourney;
|
|
16155
16559
|
linkedCasesTableCaption;
|
|
16156
|
-
constructor(linkedCasesService) {
|
|
16560
|
+
constructor(linkedCasesService, multipageComponentStateService) {
|
|
16561
|
+
super(multipageComponentStateService);
|
|
16157
16562
|
this.linkedCasesService = linkedCasesService;
|
|
16158
16563
|
}
|
|
16159
16564
|
ngOnInit() {
|
|
@@ -16170,8 +16575,16 @@ class CheckYourAnswersComponent {
|
|
|
16170
16575
|
navigateToNextPage: true
|
|
16171
16576
|
});
|
|
16172
16577
|
}
|
|
16173
|
-
|
|
16174
|
-
|
|
16578
|
+
next() {
|
|
16579
|
+
this.linkedCasesStateEmitter.emit({
|
|
16580
|
+
currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
16581
|
+
navigateToPreviousPage: false,
|
|
16582
|
+
navigateToNextPage: true
|
|
16583
|
+
});
|
|
16584
|
+
super.next();
|
|
16585
|
+
}
|
|
16586
|
+
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
16587
|
+
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) {
|
|
16175
16588
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
16176
16589
|
i0.ɵɵtext(3, "Check your answers");
|
|
16177
16590
|
i0.ɵɵelementEnd();
|
|
@@ -16207,10 +16620,10 @@ class CheckYourAnswersComponent {
|
|
|
16207
16620
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
16208
16621
|
type: Component,
|
|
16209
16622
|
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"] }]
|
|
16210
|
-
}], () => [{ type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16623
|
+
}], () => [{ type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
|
|
16211
16624
|
type: Output
|
|
16212
16625
|
}] }); })();
|
|
16213
|
-
(() => { (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:
|
|
16626
|
+
(() => { (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: 14 }); })();
|
|
16214
16627
|
|
|
16215
16628
|
class ValidatorsUtils {
|
|
16216
16629
|
numberLengthValidator(inputLength) {
|
|
@@ -16240,7 +16653,7 @@ class ValidatorsUtils {
|
|
|
16240
16653
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16241
16654
|
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16242
16655
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16243
|
-
i0.ɵɵelementStart(0, "span",
|
|
16656
|
+
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
16244
16657
|
i0.ɵɵtext(2, "Error:");
|
|
16245
16658
|
i0.ɵɵelementEnd();
|
|
16246
16659
|
i0.ɵɵtext(3);
|
|
@@ -16251,7 +16664,7 @@ function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16251
16664
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseNumberError, " ");
|
|
16252
16665
|
} }
|
|
16253
16666
|
function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
16254
|
-
i0.ɵɵelementStart(0, "span",
|
|
16667
|
+
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
16255
16668
|
i0.ɵɵtext(2, "Error:");
|
|
16256
16669
|
i0.ɵɵelementEnd();
|
|
16257
16670
|
i0.ɵɵtext(3);
|
|
@@ -16263,10 +16676,10 @@ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
16263
16676
|
} }
|
|
16264
16677
|
function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
16265
16678
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
16266
|
-
i0.ɵɵelementStart(0, "div",
|
|
16679
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "input", 31);
|
|
16267
16680
|
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)); });
|
|
16268
16681
|
i0.ɵɵelementEnd();
|
|
16269
|
-
i0.ɵɵelementStart(2, "label",
|
|
16682
|
+
i0.ɵɵelementStart(2, "label", 32);
|
|
16270
16683
|
i0.ɵɵtext(3);
|
|
16271
16684
|
i0.ɵɵelementEnd()();
|
|
16272
16685
|
} if (rf & 2) {
|
|
@@ -16282,7 +16695,7 @@ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
16282
16695
|
i0.ɵɵtextInterpolate(reason_r4.value_en);
|
|
16283
16696
|
} }
|
|
16284
16697
|
function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16285
|
-
i0.ɵɵelementStart(0, "span",
|
|
16698
|
+
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
16286
16699
|
i0.ɵɵtext(2, "Error:");
|
|
16287
16700
|
i0.ɵɵelementEnd();
|
|
16288
16701
|
i0.ɵɵtext(3);
|
|
@@ -16293,14 +16706,14 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16293
16706
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseReasonCommentsError, " ");
|
|
16294
16707
|
} }
|
|
16295
16708
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
16296
|
-
i0.ɵɵelementStart(0, "div",
|
|
16709
|
+
i0.ɵɵelementStart(0, "div", 33)(1, "h3", 20);
|
|
16297
16710
|
i0.ɵɵtext(2, "Comments");
|
|
16298
16711
|
i0.ɵɵelementEnd();
|
|
16299
16712
|
i0.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
|
|
16300
|
-
i0.ɵɵelementStart(4, "textarea",
|
|
16713
|
+
i0.ɵɵelementStart(4, "textarea", 34);
|
|
16301
16714
|
i0.ɵɵtext(5, " ");
|
|
16302
16715
|
i0.ɵɵelementEnd();
|
|
16303
|
-
i0.ɵɵelementStart(6, "div",
|
|
16716
|
+
i0.ɵɵelementStart(6, "div", 35);
|
|
16304
16717
|
i0.ɵɵtext(7, " You can enter up to 100 characters ");
|
|
16305
16718
|
i0.ɵɵelementEnd()();
|
|
16306
16719
|
} if (rf & 2) {
|
|
@@ -16310,7 +16723,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
16310
16723
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
|
|
16311
16724
|
} }
|
|
16312
16725
|
function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
16313
|
-
i0.ɵɵelementStart(0, "span",
|
|
16726
|
+
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
16314
16727
|
i0.ɵɵtext(2, "Error:");
|
|
16315
16728
|
i0.ɵɵelementEnd();
|
|
16316
16729
|
i0.ɵɵtext(3);
|
|
@@ -16322,26 +16735,26 @@ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
16322
16735
|
} }
|
|
16323
16736
|
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16324
16737
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
16325
|
-
i0.ɵɵelementStart(0, "div",
|
|
16738
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "div", 5)(2, "h3", 20);
|
|
16326
16739
|
i0.ɵɵtext(3, "Enter case reference");
|
|
16327
16740
|
i0.ɵɵelementEnd();
|
|
16328
16741
|
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
16329
|
-
i0.ɵɵelement(5, "input",
|
|
16742
|
+
i0.ɵɵelement(5, "input", 21);
|
|
16330
16743
|
i0.ɵɵelementEnd();
|
|
16331
|
-
i0.ɵɵelementStart(6, "div",
|
|
16744
|
+
i0.ɵɵelementStart(6, "div", 22)(7, "h3", 20);
|
|
16332
16745
|
i0.ɵɵtext(8, "Why should these cases be linked?");
|
|
16333
16746
|
i0.ɵɵelementEnd();
|
|
16334
|
-
i0.ɵɵelementStart(9, "div",
|
|
16747
|
+
i0.ɵɵelementStart(9, "div", 23);
|
|
16335
16748
|
i0.ɵɵtext(10, " Select all that apply. ");
|
|
16336
16749
|
i0.ɵɵelementEnd();
|
|
16337
16750
|
i0.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
|
|
16338
|
-
i0.ɵɵelementStart(12, "div",
|
|
16339
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div",
|
|
16751
|
+
i0.ɵɵelementStart(12, "div", 24);
|
|
16752
|
+
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 25);
|
|
16340
16753
|
i0.ɵɵelementEnd()();
|
|
16341
|
-
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div",
|
|
16754
|
+
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 26);
|
|
16342
16755
|
i0.ɵɵelement(15, "br")(16, "br");
|
|
16343
16756
|
i0.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
|
|
16344
|
-
i0.ɵɵelementStart(18, "button",
|
|
16757
|
+
i0.ɵɵelementStart(18, "button", 27);
|
|
16345
16758
|
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()); });
|
|
16346
16759
|
i0.ɵɵtext(19, "Propose case link");
|
|
16347
16760
|
i0.ɵɵelementEnd()();
|
|
@@ -16364,7 +16777,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
16364
16777
|
i0.ɵɵproperty("ngIf", ctx_r1.caseSelectionError);
|
|
16365
16778
|
} }
|
|
16366
16779
|
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16367
|
-
i0.ɵɵelementStart(0, "span",
|
|
16780
|
+
i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
|
|
16368
16781
|
i0.ɵɵtext(2, "Error:");
|
|
16369
16782
|
i0.ɵɵelementEnd();
|
|
16370
16783
|
i0.ɵɵtext(3);
|
|
@@ -16387,27 +16800,27 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
16387
16800
|
} }
|
|
16388
16801
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
16389
16802
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
16390
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16391
|
-
i0.ɵɵelement(2, "div",
|
|
16803
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 36);
|
|
16804
|
+
i0.ɵɵelement(2, "div", 37);
|
|
16392
16805
|
i0.ɵɵelementStart(3, "span");
|
|
16393
16806
|
i0.ɵɵtext(4);
|
|
16394
16807
|
i0.ɵɵelement(5, "br");
|
|
16395
16808
|
i0.ɵɵtext(6);
|
|
16396
16809
|
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
16397
16810
|
i0.ɵɵelementEnd()();
|
|
16398
|
-
i0.ɵɵelementStart(8, "td",
|
|
16811
|
+
i0.ɵɵelementStart(8, "td", 38);
|
|
16399
16812
|
i0.ɵɵtext(9);
|
|
16400
16813
|
i0.ɵɵelementEnd();
|
|
16401
|
-
i0.ɵɵelementStart(10, "td",
|
|
16814
|
+
i0.ɵɵelementStart(10, "td", 36);
|
|
16402
16815
|
i0.ɵɵtext(11);
|
|
16403
16816
|
i0.ɵɵelementEnd();
|
|
16404
|
-
i0.ɵɵelementStart(12, "td",
|
|
16817
|
+
i0.ɵɵelementStart(12, "td", 38);
|
|
16405
16818
|
i0.ɵɵtext(13);
|
|
16406
16819
|
i0.ɵɵelementEnd();
|
|
16407
|
-
i0.ɵɵelementStart(14, "td",
|
|
16408
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span",
|
|
16820
|
+
i0.ɵɵelementStart(14, "td", 36);
|
|
16821
|
+
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 39);
|
|
16409
16822
|
i0.ɵɵelementEnd();
|
|
16410
|
-
i0.ɵɵelementStart(16, "td",
|
|
16823
|
+
i0.ɵɵelementStart(16, "td", 36)(17, "a", 40);
|
|
16411
16824
|
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)); });
|
|
16412
16825
|
i0.ɵɵtext(18, "Remove");
|
|
16413
16826
|
i0.ɵɵelementEnd()()();
|
|
@@ -16436,11 +16849,11 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16436
16849
|
i0.ɵɵattribute("id", case_r9.caseReference);
|
|
16437
16850
|
} }
|
|
16438
16851
|
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
16439
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16852
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 41);
|
|
16440
16853
|
i0.ɵɵtext(2, " None ");
|
|
16441
16854
|
i0.ɵɵelementEnd()();
|
|
16442
16855
|
} }
|
|
16443
|
-
class LinkCasesComponent {
|
|
16856
|
+
class LinkCasesComponent extends AbstractJourneyComponent {
|
|
16444
16857
|
casesService;
|
|
16445
16858
|
fb;
|
|
16446
16859
|
validatorsUtils;
|
|
@@ -16459,7 +16872,8 @@ class LinkCasesComponent {
|
|
|
16459
16872
|
linkCaseReasons;
|
|
16460
16873
|
showComments = false;
|
|
16461
16874
|
ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
16462
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
16875
|
+
constructor(casesService, fb, validatorsUtils, linkedCasesService, multipageComponentStateService) {
|
|
16876
|
+
super(multipageComponentStateService);
|
|
16463
16877
|
this.casesService = casesService;
|
|
16464
16878
|
this.fb = fb;
|
|
16465
16879
|
this.validatorsUtils = validatorsUtils;
|
|
@@ -16470,7 +16884,11 @@ class LinkCasesComponent {
|
|
|
16470
16884
|
this.caseName = this.linkedCasesService.caseName;
|
|
16471
16885
|
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
16472
16886
|
this.initForm();
|
|
16473
|
-
if (this.linkedCasesService.
|
|
16887
|
+
if (!this.linkedCasesService.hasNavigatedInJourney) {
|
|
16888
|
+
this.linkedCasesService.linkedCases = [];
|
|
16889
|
+
this.linkedCasesService.caseFieldValue = [];
|
|
16890
|
+
}
|
|
16891
|
+
if (this.linkedCasesService.editMode || this.linkedCasesService.linkedCases.length) {
|
|
16474
16892
|
// this may have includes the currently added one but yet to be submitted.
|
|
16475
16893
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
16476
16894
|
}
|
|
@@ -16479,8 +16897,9 @@ class LinkCasesComponent {
|
|
|
16479
16897
|
}
|
|
16480
16898
|
}
|
|
16481
16899
|
initForm() {
|
|
16900
|
+
const caseNumber = this.linkedCasesService.storedCaseNumber ?? '';
|
|
16482
16901
|
this.linkCaseForm = this.fb.group({
|
|
16483
|
-
caseNumber: [
|
|
16902
|
+
caseNumber: [caseNumber, [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
|
|
16484
16903
|
reasonType: this.getReasonTypeFormArray,
|
|
16485
16904
|
otherDescription: ['', [Validators.maxLength(100)]]
|
|
16486
16905
|
});
|
|
@@ -16513,6 +16932,8 @@ class LinkCasesComponent {
|
|
|
16513
16932
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
16514
16933
|
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
16515
16934
|
!this.isOtherOptionSelectedButOtherDescriptionNotEntered()) {
|
|
16935
|
+
this.linkedCasesService.storedCaseNumber = '';
|
|
16936
|
+
this.linkedCasesService.hasNavigatedInJourney = true;
|
|
16516
16937
|
this.getCaseInfo();
|
|
16517
16938
|
}
|
|
16518
16939
|
else {
|
|
@@ -16617,9 +17038,7 @@ class LinkCasesComponent {
|
|
|
16617
17038
|
CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
16618
17039
|
ReasonForLink: this.getSelectedCCDTypeCaseReason()
|
|
16619
17040
|
};
|
|
16620
|
-
|
|
16621
|
-
this.linkedCasesService.caseFieldValue = [];
|
|
16622
|
-
}
|
|
17041
|
+
this.linkedCasesService.caseFieldValue = [];
|
|
16623
17042
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16624
17043
|
this.selectedCases.push(caseLink);
|
|
16625
17044
|
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
@@ -16690,6 +17109,7 @@ class LinkCasesComponent {
|
|
|
16690
17109
|
this.caseSelectionError = null;
|
|
16691
17110
|
this.noSelectedCaseError = null;
|
|
16692
17111
|
let navigateToNextPage = true;
|
|
17112
|
+
this.linkedCasesService.storedCaseNumber = this.linkCaseForm.value.caseNumber ?? '';
|
|
16693
17113
|
if (this.selectedCases.length) {
|
|
16694
17114
|
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
16695
17115
|
}
|
|
@@ -16704,8 +17124,14 @@ class LinkCasesComponent {
|
|
|
16704
17124
|
}
|
|
16705
17125
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
16706
17126
|
}
|
|
16707
|
-
|
|
16708
|
-
|
|
17127
|
+
next() {
|
|
17128
|
+
this.onNext();
|
|
17129
|
+
if (this.errorMessages.length === 0) {
|
|
17130
|
+
super.next();
|
|
17131
|
+
}
|
|
17132
|
+
}
|
|
17133
|
+
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)); };
|
|
17134
|
+
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) {
|
|
16709
17135
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "span", 2);
|
|
16710
17136
|
i0.ɵɵtext(4);
|
|
16711
17137
|
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
@@ -16739,11 +17165,7 @@ class LinkCasesComponent {
|
|
|
16739
17165
|
i0.ɵɵelementEnd()();
|
|
16740
17166
|
i0.ɵɵelementStart(30, "tbody", 16);
|
|
16741
17167
|
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17)(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
16742
|
-
i0.ɵɵelementEnd()()();
|
|
16743
|
-
i0.ɵɵelementStart(33, "div", 19)(34, "button", 20);
|
|
16744
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
16745
|
-
i0.ɵɵtext(35, "Next");
|
|
16746
|
-
i0.ɵɵelementEnd()()()()();
|
|
17168
|
+
i0.ɵɵelementEnd()()()()()();
|
|
16747
17169
|
} if (rf & 2) {
|
|
16748
17170
|
i0.ɵɵadvance(4);
|
|
16749
17171
|
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
@@ -16761,11 +17183,11 @@ class LinkCasesComponent {
|
|
|
16761
17183
|
}
|
|
16762
17184
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
16763
17185
|
type: Component,
|
|
16764
|
-
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
|
|
16765
|
-
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17186
|
+
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"] }]
|
|
17187
|
+
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
|
|
16766
17188
|
type: Output
|
|
16767
17189
|
}] }); })();
|
|
16768
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber:
|
|
17190
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber: 26 }); })();
|
|
16769
17191
|
|
|
16770
17192
|
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
16771
17193
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -17301,11 +17723,12 @@ function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17301
17723
|
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
17302
17724
|
i0.ɵɵelementEnd();
|
|
17303
17725
|
} }
|
|
17304
|
-
class NoLinkedCasesComponent {
|
|
17726
|
+
class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
17305
17727
|
router;
|
|
17306
17728
|
linkedCasesService;
|
|
17307
17729
|
serverLinkedApiError;
|
|
17308
|
-
constructor(router, linkedCasesService) {
|
|
17730
|
+
constructor(router, linkedCasesService, multipageComponentStateService) {
|
|
17731
|
+
super(multipageComponentStateService);
|
|
17309
17732
|
this.router = router;
|
|
17310
17733
|
this.linkedCasesService = linkedCasesService;
|
|
17311
17734
|
}
|
|
@@ -17315,8 +17738,8 @@ class NoLinkedCasesComponent {
|
|
|
17315
17738
|
onBack() {
|
|
17316
17739
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
17317
17740
|
}
|
|
17318
|
-
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17319
|
-
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) {
|
|
17741
|
+
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
17742
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], features: [i0.ɵɵInheritDefinitionFeature], 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) {
|
|
17320
17743
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17321
17744
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
17322
17745
|
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);
|
|
@@ -17339,70 +17762,66 @@ class NoLinkedCasesComponent {
|
|
|
17339
17762
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
17340
17763
|
type: Component,
|
|
17341
17764
|
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" }]
|
|
17342
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], null); })();
|
|
17343
|
-
(() => { (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:
|
|
17765
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
|
|
17766
|
+
(() => { (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: 12 }); })();
|
|
17344
17767
|
|
|
17345
17768
|
const _c0$I = a0 => ({ "govuk-form-group--error": a0 });
|
|
17346
17769
|
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
17347
|
-
i0.ɵɵelementStart(0, "p",
|
|
17770
|
+
i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
|
|
17348
17771
|
i0.ɵɵtext(2, "Error:");
|
|
17349
17772
|
i0.ɵɵelementEnd();
|
|
17350
17773
|
i0.ɵɵtext(3);
|
|
17351
17774
|
i0.ɵɵelementEnd();
|
|
17352
17775
|
} if (rf & 2) {
|
|
17353
|
-
const
|
|
17776
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
17354
17777
|
i0.ɵɵadvance(3);
|
|
17355
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17778
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.unlinkErrorMessage, " ");
|
|
17356
17779
|
} }
|
|
17357
17780
|
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
17358
|
-
const
|
|
17359
|
-
i0.ɵɵelementStart(0, "div",
|
|
17360
|
-
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(
|
|
17781
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
17782
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "input", 12);
|
|
17783
|
+
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onChange($event.target)); });
|
|
17361
17784
|
i0.ɵɵelementEnd();
|
|
17362
|
-
i0.ɵɵelementStart(2, "label",
|
|
17785
|
+
i0.ɵɵelementStart(2, "label", 13);
|
|
17363
17786
|
i0.ɵɵtext(3);
|
|
17364
17787
|
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
17365
17788
|
i0.ɵɵelementEnd()();
|
|
17366
17789
|
} if (rf & 2) {
|
|
17367
|
-
const
|
|
17790
|
+
const case_r3 = ctx.$implicit;
|
|
17368
17791
|
i0.ɵɵadvance();
|
|
17369
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-",
|
|
17370
|
-
i0.ɵɵproperty("value",
|
|
17792
|
+
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r3.caseReference, "");
|
|
17793
|
+
i0.ɵɵproperty("value", case_r3.caseReference)("checked", case_r3.unlink);
|
|
17371
17794
|
i0.ɵɵadvance();
|
|
17372
|
-
i0.ɵɵpropertyInterpolate("for",
|
|
17795
|
+
i0.ɵɵpropertyInterpolate("for", case_r3.caseReference);
|
|
17373
17796
|
i0.ɵɵadvance();
|
|
17374
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
17797
|
+
i0.ɵɵtextInterpolate2(" ", case_r3.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r3.caseReference), " ");
|
|
17375
17798
|
} }
|
|
17376
17799
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
17377
|
-
i0.ɵɵelementStart(0, "div",
|
|
17378
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p",
|
|
17379
|
-
i0.ɵɵelementStart(2, "div",
|
|
17380
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div",
|
|
17800
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
17801
|
+
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 6);
|
|
17802
|
+
i0.ɵɵelementStart(2, "div", 7);
|
|
17803
|
+
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 8);
|
|
17381
17804
|
i0.ɵɵelementEnd()();
|
|
17382
17805
|
} if (rf & 2) {
|
|
17383
|
-
const
|
|
17384
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I,
|
|
17806
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
17807
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
|
|
17385
17808
|
i0.ɵɵadvance();
|
|
17386
|
-
i0.ɵɵproperty("ngIf",
|
|
17809
|
+
i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
|
|
17387
17810
|
i0.ɵɵadvance(2);
|
|
17388
|
-
i0.ɵɵproperty("ngForOf",
|
|
17811
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.linkedCases);
|
|
17389
17812
|
} }
|
|
17390
17813
|
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
17391
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
17392
17814
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h1", 3);
|
|
17393
17815
|
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
17394
17816
|
i0.ɵɵelementEnd();
|
|
17395
17817
|
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
17396
|
-
i0.ɵɵ
|
|
17397
|
-
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()); });
|
|
17398
|
-
i0.ɵɵtext(7, "Next");
|
|
17399
|
-
i0.ɵɵelementEnd()()()();
|
|
17818
|
+
i0.ɵɵelementEnd()();
|
|
17400
17819
|
} if (rf & 2) {
|
|
17401
|
-
const
|
|
17820
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
17402
17821
|
i0.ɵɵadvance(4);
|
|
17403
|
-
i0.ɵɵproperty("ngIf",
|
|
17822
|
+
i0.ɵɵproperty("ngIf", ctx_r0.unlinkCaseForm);
|
|
17404
17823
|
} }
|
|
17405
|
-
class UnLinkCasesComponent {
|
|
17824
|
+
class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
17406
17825
|
fb;
|
|
17407
17826
|
casesService;
|
|
17408
17827
|
linkedCasesService;
|
|
@@ -17417,7 +17836,8 @@ class UnLinkCasesComponent {
|
|
|
17417
17836
|
unlinkErrorMessage;
|
|
17418
17837
|
isLoaded;
|
|
17419
17838
|
isServerError = false;
|
|
17420
|
-
constructor(fb, casesService, linkedCasesService) {
|
|
17839
|
+
constructor(fb, casesService, linkedCasesService, multipageComponentStateService) {
|
|
17840
|
+
super(multipageComponentStateService);
|
|
17421
17841
|
this.fb = fb;
|
|
17422
17842
|
this.casesService = casesService;
|
|
17423
17843
|
this.linkedCasesService = linkedCasesService;
|
|
@@ -17510,6 +17930,12 @@ class UnLinkCasesComponent {
|
|
|
17510
17930
|
// Return linked cases state and error messages to the parent
|
|
17511
17931
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17512
17932
|
}
|
|
17933
|
+
next() {
|
|
17934
|
+
this.onNext();
|
|
17935
|
+
if (this.errorMessages.length === 0) {
|
|
17936
|
+
super.next();
|
|
17937
|
+
}
|
|
17938
|
+
}
|
|
17513
17939
|
// Return linked cases state and error messages to the parent
|
|
17514
17940
|
emitLinkedCasesState(isNavigateToNextPage) {
|
|
17515
17941
|
this.linkedCasesStateEmitter.emit({
|
|
@@ -17522,22 +17948,22 @@ class UnLinkCasesComponent {
|
|
|
17522
17948
|
this.errorMessages = [];
|
|
17523
17949
|
this.unlinkErrorMessage = null;
|
|
17524
17950
|
}
|
|
17525
|
-
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17526
|
-
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-
|
|
17527
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template,
|
|
17951
|
+
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
17952
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" }, features: [i0.ɵɵInheritDefinitionFeature], 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-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) {
|
|
17953
|
+
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 5, 1, "div", 0);
|
|
17528
17954
|
} if (rf & 2) {
|
|
17529
17955
|
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
17530
17956
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormArrayName, CaseReferencePipe], encapsulation: 2 });
|
|
17531
17957
|
}
|
|
17532
17958
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
17533
17959
|
type: Component,
|
|
17534
|
-
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
|
|
17535
|
-
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17960
|
+
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" }]
|
|
17961
|
+
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
|
|
17536
17962
|
type: Output
|
|
17537
17963
|
}], notifyAPIFailure: [{
|
|
17538
17964
|
type: Output
|
|
17539
17965
|
}] }); })();
|
|
17540
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber:
|
|
17966
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber: 16 }); })();
|
|
17541
17967
|
|
|
17542
17968
|
// tslint:disable:variable-name
|
|
17543
17969
|
class LinkCaseReason {
|
|
@@ -17791,7 +18217,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
17791
18217
|
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
17792
18218
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17793
18219
|
i0.ɵɵelementContainerStart(0);
|
|
17794
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start",
|
|
18220
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 4, 0);
|
|
17795
18221
|
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)); });
|
|
17796
18222
|
i0.ɵɵelementEnd();
|
|
17797
18223
|
i0.ɵɵelementContainerEnd();
|
|
@@ -17799,7 +18225,7 @@ function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (r
|
|
|
17799
18225
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
17800
18226
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
17801
18227
|
i0.ɵɵelementContainerStart(0);
|
|
17802
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases",
|
|
18228
|
+
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 4, 0);
|
|
17803
18229
|
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)); });
|
|
17804
18230
|
i0.ɵɵelementEnd();
|
|
17805
18231
|
i0.ɵɵelementContainerEnd();
|
|
@@ -17807,7 +18233,7 @@ function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (r
|
|
|
17807
18233
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
17808
18234
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
17809
18235
|
i0.ɵɵelementContainerStart(0);
|
|
17810
|
-
i0.ɵɵelementStart(1, "ccd-link-cases",
|
|
18236
|
+
i0.ɵɵelementStart(1, "ccd-link-cases", 4, 0);
|
|
17811
18237
|
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)); });
|
|
17812
18238
|
i0.ɵɵelementEnd();
|
|
17813
18239
|
i0.ɵɵelementContainerEnd();
|
|
@@ -17815,7 +18241,7 @@ function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (r
|
|
|
17815
18241
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
17816
18242
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
17817
18243
|
i0.ɵɵelementContainerStart(0);
|
|
17818
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases",
|
|
18244
|
+
i0.ɵɵelementStart(1, "ccd-unlink-cases", 4, 0);
|
|
17819
18245
|
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)); });
|
|
17820
18246
|
i0.ɵɵelementEnd();
|
|
17821
18247
|
i0.ɵɵelementContainerEnd();
|
|
@@ -17823,12 +18249,12 @@ function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (r
|
|
|
17823
18249
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
17824
18250
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
17825
18251
|
i0.ɵɵelementContainerStart(0);
|
|
17826
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
18252
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 4, 0);
|
|
17827
18253
|
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)); });
|
|
17828
18254
|
i0.ɵɵelementEnd();
|
|
17829
18255
|
i0.ɵɵelementContainerEnd();
|
|
17830
18256
|
} }
|
|
17831
|
-
class WriteLinkedCasesFieldComponent extends
|
|
18257
|
+
class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
17832
18258
|
appConfig;
|
|
17833
18259
|
commonDataService;
|
|
17834
18260
|
casesService;
|
|
@@ -17841,8 +18267,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17841
18267
|
linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
17842
18268
|
linkedCases = [];
|
|
17843
18269
|
subscriptions = new Subscription();
|
|
17844
|
-
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
17845
|
-
super();
|
|
18270
|
+
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService, multipageComponentStateService) {
|
|
18271
|
+
super(multipageComponentStateService);
|
|
17846
18272
|
this.appConfig = appConfig;
|
|
17847
18273
|
this.commonDataService = commonDataService;
|
|
17848
18274
|
this.casesService = casesService;
|
|
@@ -17867,6 +18293,18 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17867
18293
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
17868
18294
|
next: editForm => this.caseEditForm = editForm
|
|
17869
18295
|
}));
|
|
18296
|
+
this.journeyPageNumber = this.journeyStartPageNumber = LinkedCasesPages.BEFORE_YOU_START;
|
|
18297
|
+
this.journeyEndPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18298
|
+
if (this.linkedCasesService.cameFromFinalStep) {
|
|
18299
|
+
this.linkedCasesPage = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18300
|
+
this.journeyPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18301
|
+
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18302
|
+
}
|
|
18303
|
+
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
18304
|
+
}
|
|
18305
|
+
onPageChange() {
|
|
18306
|
+
const isAtStart = this.journeyPageNumber === this.journeyStartPageNumber || this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START;
|
|
18307
|
+
this.multipageComponentStateService.isAtStart = isAtStart;
|
|
17870
18308
|
}
|
|
17871
18309
|
initialiseCaseDetails(caseDetails) {
|
|
17872
18310
|
if (caseDetails) {
|
|
@@ -17924,6 +18362,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17924
18362
|
}
|
|
17925
18363
|
proceedToNextPage() {
|
|
17926
18364
|
if (this.isAtFinalPage()) {
|
|
18365
|
+
// Set the journey page to the end page.
|
|
18366
|
+
this.journeyPageNumber = this.journeyEndPageNumber;
|
|
17927
18367
|
// Continue button event must be allowed in final page
|
|
17928
18368
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
17929
18369
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
@@ -17935,6 +18375,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17935
18375
|
// Continue button event must not be allowed if not in final page
|
|
17936
18376
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
17937
18377
|
}
|
|
18378
|
+
this.nextPage();
|
|
17938
18379
|
}
|
|
17939
18380
|
submitLinkedCases() {
|
|
17940
18381
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -17965,24 +18406,53 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17965
18406
|
});
|
|
17966
18407
|
if (caseViewFiltered) {
|
|
17967
18408
|
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
17968
|
-
this.linkedCasesService.caseFieldValue
|
|
17969
|
-
|
|
18409
|
+
if (!this.linkedCasesService.caseFieldValue.length) {
|
|
18410
|
+
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18411
|
+
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18412
|
+
}
|
|
17970
18413
|
}
|
|
17971
18414
|
// Initialise the first page to display
|
|
17972
|
-
|
|
17973
|
-
|
|
17974
|
-
&&
|
|
17975
|
-
|
|
17976
|
-
|
|
18415
|
+
if (!this.linkedCasesService.cameFromFinalStep) {
|
|
18416
|
+
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
18417
|
+
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
18418
|
+
&& !this.linkedCasesService.serverLinkedApiError)
|
|
18419
|
+
? LinkedCasesPages.BEFORE_YOU_START
|
|
18420
|
+
: LinkedCasesPages.NO_LINKED_CASES;
|
|
18421
|
+
}
|
|
17977
18422
|
});
|
|
17978
18423
|
}
|
|
17979
18424
|
ngOnDestroy() {
|
|
17980
18425
|
this.subscriptions.unsubscribe();
|
|
17981
18426
|
}
|
|
17982
|
-
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
18427
|
+
previousPage() {
|
|
18428
|
+
if (this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18429
|
+
if (this.linkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS) {
|
|
18430
|
+
this.linkedCasesPage = LinkedCasesPages.LINK_CASE;
|
|
18431
|
+
}
|
|
18432
|
+
else if (this.linkedCasesPage === LinkedCasesPages.LINK_CASE) {
|
|
18433
|
+
this.linkedCasesPage = LinkedCasesPages.BEFORE_YOU_START;
|
|
18434
|
+
}
|
|
18435
|
+
else {
|
|
18436
|
+
this.linkedCasesPage--;
|
|
18437
|
+
}
|
|
18438
|
+
}
|
|
18439
|
+
else {
|
|
18440
|
+
if (this.linkedCasesPage === LinkedCasesPages.UNLINK_CASE) {
|
|
18441
|
+
this.linkedCasesPage = this.linkedCasesPages.BEFORE_YOU_START;
|
|
18442
|
+
}
|
|
18443
|
+
else if (this.linkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS) {
|
|
18444
|
+
this.linkedCasesPage = this.linkedCasesPages.UNLINK_CASE;
|
|
18445
|
+
}
|
|
18446
|
+
else {
|
|
18447
|
+
this.linkedCasesPage--;
|
|
18448
|
+
}
|
|
18449
|
+
}
|
|
18450
|
+
super.previousPage();
|
|
18451
|
+
}
|
|
18452
|
+
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)); };
|
|
18453
|
+
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) {
|
|
18454
|
+
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
18455
|
+
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);
|
|
17986
18456
|
i0.ɵɵelementEnd()();
|
|
17987
18457
|
} if (rf & 2) {
|
|
17988
18458
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
@@ -18002,8 +18472,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18002
18472
|
}
|
|
18003
18473
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
|
|
18004
18474
|
type: Component,
|
|
18005
|
-
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)\"
|
|
18006
|
-
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18475
|
+
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 #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
18476
|
+
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }, { type: MultipageComponentStateService }], null); })();
|
|
18007
18477
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18008
18478
|
|
|
18009
18479
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -22766,10 +23236,10 @@ function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
22766
23236
|
i0.ɵɵtextInterpolate1(" (", i0.ɵɵpipeBind1(2, 1, "optional"), ")");
|
|
22767
23237
|
} }
|
|
22768
23238
|
function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
22769
|
-
i0.ɵɵelementStart(0, "div",
|
|
23239
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "span", 13);
|
|
22770
23240
|
i0.ɵɵtext(2, "!");
|
|
22771
23241
|
i0.ɵɵelementEnd();
|
|
22772
|
-
i0.ɵɵelementStart(3, "strong",
|
|
23242
|
+
i0.ɵɵelementStart(3, "strong", 14)(4, "span", 15);
|
|
22773
23243
|
i0.ɵɵtext(5);
|
|
22774
23244
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
22775
23245
|
i0.ɵɵelementEnd();
|
|
@@ -22784,7 +23254,7 @@ function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22784
23254
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.addCommentsStepEnum.WARNING_TEXT), " ");
|
|
22785
23255
|
} }
|
|
22786
23256
|
function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
22787
|
-
i0.ɵɵelementStart(0, "div",
|
|
23257
|
+
i0.ɵɵelementStart(0, "div", 16)(1, "span", 17);
|
|
22788
23258
|
i0.ɵɵtext(2);
|
|
22789
23259
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
22790
23260
|
i0.ɵɵelementEnd();
|
|
@@ -22799,7 +23269,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
22799
23269
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsNotEnteredErrorMessage), " ");
|
|
22800
23270
|
} }
|
|
22801
23271
|
function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
22802
|
-
i0.ɵɵelementStart(0, "div",
|
|
23272
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 17);
|
|
22803
23273
|
i0.ɵɵtext(2);
|
|
22804
23274
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
22805
23275
|
i0.ɵɵelementEnd();
|
|
@@ -22813,7 +23283,7 @@ function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
22813
23283
|
i0.ɵɵadvance(2);
|
|
22814
23284
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
22815
23285
|
} }
|
|
22816
|
-
class AddCommentsComponent {
|
|
23286
|
+
class AddCommentsComponent extends AbstractJourneyComponent {
|
|
22817
23287
|
formGroup;
|
|
22818
23288
|
optional = false;
|
|
22819
23289
|
isDisplayContextParameterExternal = false;
|
|
@@ -22872,8 +23342,14 @@ class AddCommentsComponent {
|
|
|
22872
23342
|
});
|
|
22873
23343
|
}
|
|
22874
23344
|
}
|
|
22875
|
-
|
|
22876
|
-
|
|
23345
|
+
next() {
|
|
23346
|
+
this.onNext();
|
|
23347
|
+
if (this.errorMessages.length === 0) {
|
|
23348
|
+
super.next();
|
|
23349
|
+
}
|
|
23350
|
+
}
|
|
23351
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵAddCommentsComponent_BaseFactory; return function AddCommentsComponent_Factory(t) { return (ɵAddCommentsComponent_BaseFactory || (ɵAddCommentsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AddCommentsComponent)))(t || AddCommentsComponent); }; })();
|
|
23352
|
+
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) {
|
|
22877
23353
|
i0.ɵɵelementContainerStart(0, 0);
|
|
22878
23354
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
22879
23355
|
i0.ɵɵtext(5);
|
|
@@ -22891,23 +23367,18 @@ class AddCommentsComponent {
|
|
|
22891
23367
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
22892
23368
|
i0.ɵɵelementEnd()()();
|
|
22893
23369
|
i0.ɵɵelementContainerEnd();
|
|
22894
|
-
i0.ɵɵelementStart(18, "div", 12)(19, "button", 13);
|
|
22895
|
-
i0.ɵɵlistener("click", function AddCommentsComponent_Template_button_click_19_listener() { return ctx.onNext(); });
|
|
22896
|
-
i0.ɵɵtext(20);
|
|
22897
|
-
i0.ɵɵpipe(21, "rpxTranslate");
|
|
22898
|
-
i0.ɵɵelementEnd()();
|
|
22899
23370
|
} if (rf & 2) {
|
|
22900
23371
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
22901
23372
|
i0.ɵɵadvance(2);
|
|
22902
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23373
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$s, ctx.errorMessages.length > 0));
|
|
22903
23374
|
i0.ɵɵadvance(2);
|
|
22904
23375
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
22905
23376
|
i0.ɵɵadvance();
|
|
22906
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
23377
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.addCommentsTitle), "");
|
|
22907
23378
|
i0.ɵɵadvance(2);
|
|
22908
23379
|
i0.ɵɵproperty("ngIf", ctx.optional);
|
|
22909
23380
|
i0.ɵɵadvance(2);
|
|
22910
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
23381
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 15, ctx.addCommentsHint), " ");
|
|
22911
23382
|
i0.ɵɵadvance(2);
|
|
22912
23383
|
i0.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled && !ctx.otherInternalFlagTypeSelected);
|
|
22913
23384
|
i0.ɵɵadvance();
|
|
@@ -22917,14 +23388,12 @@ class AddCommentsComponent {
|
|
|
22917
23388
|
i0.ɵɵadvance();
|
|
22918
23389
|
i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
|
|
22919
23390
|
i0.ɵɵadvance(2);
|
|
22920
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22921
|
-
i0.ɵɵadvance(4);
|
|
22922
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 20, "Next"));
|
|
23391
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 17, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
22923
23392
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
22924
23393
|
}
|
|
22925
23394
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
22926
23395
|
type: Component,
|
|
22927
|
-
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
|
|
23396
|
+
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>" }]
|
|
22928
23397
|
}], null, { formGroup: [{
|
|
22929
23398
|
type: Input
|
|
22930
23399
|
}], optional: [{
|
|
@@ -22936,7 +23405,7 @@ class AddCommentsComponent {
|
|
|
22936
23405
|
}], caseFlagStateEmitter: [{
|
|
22937
23406
|
type: Output
|
|
22938
23407
|
}] }); })();
|
|
22939
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber:
|
|
23408
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 12 }); })();
|
|
22940
23409
|
|
|
22941
23410
|
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
22942
23411
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -23438,7 +23907,7 @@ class CaseFlagTableComponent {
|
|
|
23438
23907
|
|
|
23439
23908
|
const _c0$r = a0 => ({ "form-group-error": a0 });
|
|
23440
23909
|
function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
23441
|
-
i0.ɵɵelementStart(0, "div",
|
|
23910
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "span", 9);
|
|
23442
23911
|
i0.ɵɵtext(2);
|
|
23443
23912
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23444
23913
|
i0.ɵɵelementEnd();
|
|
@@ -23453,8 +23922,8 @@ function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23453
23922
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.manageCaseFlagSelectedErrorMessage), " ");
|
|
23454
23923
|
} }
|
|
23455
23924
|
function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
23456
|
-
i0.ɵɵelementStart(0, "div",
|
|
23457
|
-
i0.ɵɵelement(1, "input",
|
|
23925
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
23926
|
+
i0.ɵɵelement(1, "input", 11)(2, "label", 12);
|
|
23458
23927
|
i0.ɵɵpipe(3, "manageCaseFlagsLabelDisplay");
|
|
23459
23928
|
i0.ɵɵelementEnd();
|
|
23460
23929
|
} if (rf & 2) {
|
|
@@ -23468,18 +23937,7 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
23468
23937
|
i0.ɵɵpropertyInterpolate1("for", "flag-selection-", i_r3, "");
|
|
23469
23938
|
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(3, 8, flagDisplay_r2), i0.ɵɵsanitizeHtml);
|
|
23470
23939
|
} }
|
|
23471
|
-
|
|
23472
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
23473
|
-
i0.ɵɵelementStart(0, "div", 14)(1, "button", 15);
|
|
23474
|
-
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()); });
|
|
23475
|
-
i0.ɵɵtext(2);
|
|
23476
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23477
|
-
i0.ɵɵelementEnd()();
|
|
23478
|
-
} if (rf & 2) {
|
|
23479
|
-
i0.ɵɵadvance(2);
|
|
23480
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
23481
|
-
} }
|
|
23482
|
-
class ManageCaseFlagsComponent {
|
|
23940
|
+
class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
23483
23941
|
formGroup;
|
|
23484
23942
|
flagsData;
|
|
23485
23943
|
caseTitle;
|
|
@@ -23495,6 +23953,12 @@ class ManageCaseFlagsComponent {
|
|
|
23495
23953
|
excludedFlagStatuses = [CaseFlagStatus.INACTIVE, CaseFlagStatus.NOT_APPROVED];
|
|
23496
23954
|
ngOnInit() {
|
|
23497
23955
|
this.manageCaseFlagTitle = this.setManageCaseFlagTitle(this.displayContextParameter);
|
|
23956
|
+
let originalStatus;
|
|
23957
|
+
// if the user has progressed to CYA and then navigated away, the flag they selected will be set as inactive, we need to reset this
|
|
23958
|
+
if (this.formGroup.get('selectedManageCaseLocation')) {
|
|
23959
|
+
const locationControl = this.formGroup.get('selectedManageCaseLocation');
|
|
23960
|
+
originalStatus = locationControl.value?.originalStatus;
|
|
23961
|
+
}
|
|
23498
23962
|
// Map flags instances to objects for display, filtering out any where the original status is either "Inactive" or
|
|
23499
23963
|
// "Not approved"
|
|
23500
23964
|
/* istanbul ignore else */
|
|
@@ -23504,7 +23968,7 @@ class ManageCaseFlagsComponent {
|
|
|
23504
23968
|
if (flagsInstance.flags.details && flagsInstance.flags.details.length > 0) {
|
|
23505
23969
|
displayData = [
|
|
23506
23970
|
...displayData,
|
|
23507
|
-
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance))
|
|
23971
|
+
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance, originalStatus))
|
|
23508
23972
|
];
|
|
23509
23973
|
}
|
|
23510
23974
|
return displayData;
|
|
@@ -23520,7 +23984,7 @@ class ManageCaseFlagsComponent {
|
|
|
23520
23984
|
this.onNoFlagsError();
|
|
23521
23985
|
}
|
|
23522
23986
|
}
|
|
23523
|
-
mapFlagDetailForDisplay(flagDetail, flagsInstance) {
|
|
23987
|
+
mapFlagDetailForDisplay(flagDetail, flagsInstance, originalStatusFromFG) {
|
|
23524
23988
|
// Reset the flag status with the original persisted status. This is needed because ngOnInit() needs to filter
|
|
23525
23989
|
// out any "Inactive" or "Not approved" flags based on their status *before* modification. If the user changes a
|
|
23526
23990
|
// flag's status then decides to return to the start of the flag update journey, the flag's status would no
|
|
@@ -23543,8 +24007,9 @@ class ManageCaseFlagsComponent {
|
|
|
23543
24007
|
}
|
|
23544
24008
|
if (formattedValue && FieldsUtils.isNonEmptyObject(formattedValue)) {
|
|
23545
24009
|
const originalFlagDetail = formattedValue.details?.find((detail) => detail.id === flagDetail.id);
|
|
24010
|
+
const statusToUse = originalStatusFromFG ? (originalStatusFromFG === originalFlagDetail.value?.status ? originalFlagDetail.value?.status : originalStatusFromFG) : originalFlagDetail.value?.status;
|
|
23546
24011
|
if (originalFlagDetail) {
|
|
23547
|
-
originalStatus =
|
|
24012
|
+
originalStatus = statusToUse;
|
|
23548
24013
|
flagDetail.flagComment = originalFlagDetail.value?.flagComment;
|
|
23549
24014
|
flagDetail.flagComment_cy = originalFlagDetail.value?.flagComment_cy;
|
|
23550
24015
|
flagDetail.otherDescription = originalFlagDetail.value?.otherDescription;
|
|
@@ -23613,8 +24078,14 @@ class ManageCaseFlagsComponent {
|
|
|
23613
24078
|
errorMessages: this.errorMessages
|
|
23614
24079
|
});
|
|
23615
24080
|
}
|
|
23616
|
-
|
|
23617
|
-
|
|
24081
|
+
next() {
|
|
24082
|
+
this.onNext();
|
|
24083
|
+
if (this.errorMessages.length === 0) {
|
|
24084
|
+
super.next();
|
|
24085
|
+
}
|
|
24086
|
+
}
|
|
24087
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵManageCaseFlagsComponent_BaseFactory; return function ManageCaseFlagsComponent_Factory(t) { return (ɵManageCaseFlagsComponent_BaseFactory || (ɵManageCaseFlagsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ManageCaseFlagsComponent)))(t || ManageCaseFlagsComponent); }; })();
|
|
24088
|
+
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) {
|
|
23618
24089
|
i0.ɵɵelementContainerStart(0, 0);
|
|
23619
24090
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
23620
24091
|
i0.ɵɵtext(5);
|
|
@@ -23625,24 +24096,21 @@ class ManageCaseFlagsComponent {
|
|
|
23625
24096
|
i0.ɵɵtemplate(9, ManageCaseFlagsComponent_div_9_Template, 4, 10, "div", 7);
|
|
23626
24097
|
i0.ɵɵelementEnd()()();
|
|
23627
24098
|
i0.ɵɵelementContainerEnd();
|
|
23628
|
-
i0.ɵɵtemplate(10, ManageCaseFlagsComponent_div_10_Template, 4, 3, "div", 8);
|
|
23629
24099
|
} if (rf & 2) {
|
|
23630
24100
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23631
24101
|
i0.ɵɵadvance();
|
|
23632
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24102
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$r, ctx.errorMessages.length > 0));
|
|
23633
24103
|
i0.ɵɵadvance(4);
|
|
23634
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24104
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx.manageCaseFlagTitle), " ");
|
|
23635
24105
|
i0.ɵɵadvance(2);
|
|
23636
24106
|
i0.ɵɵproperty("ngIf", ctx.manageCaseFlagSelectedErrorMessage);
|
|
23637
24107
|
i0.ɵɵadvance(2);
|
|
23638
24108
|
i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
|
|
23639
|
-
i0.ɵɵadvance();
|
|
23640
|
-
i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
23641
24109
|
} }, styles: [".flag-name-and-description{font-weight:700}\n"], encapsulation: 2 });
|
|
23642
24110
|
}
|
|
23643
24111
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
23644
24112
|
type: Component,
|
|
23645
|
-
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
|
|
24113
|
+
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"] }]
|
|
23646
24114
|
}], null, { formGroup: [{
|
|
23647
24115
|
type: Input
|
|
23648
24116
|
}], flagsData: [{
|
|
@@ -23654,7 +24122,7 @@ class ManageCaseFlagsComponent {
|
|
|
23654
24122
|
}], caseFlagStateEmitter: [{
|
|
23655
24123
|
type: Output
|
|
23656
24124
|
}] }); })();
|
|
23657
|
-
(() => { (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:
|
|
24125
|
+
(() => { (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: 15 }); })();
|
|
23658
24126
|
|
|
23659
24127
|
// tslint:disable:variable-name
|
|
23660
24128
|
/**
|
|
@@ -23719,7 +24187,7 @@ var SearchLanguageInterpreterControlNames;
|
|
|
23719
24187
|
|
|
23720
24188
|
const _c0$q = a0 => ({ "form-group-error": a0 });
|
|
23721
24189
|
function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
23722
|
-
i0.ɵɵelementStart(0, "div",
|
|
24190
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
23723
24191
|
i0.ɵɵtext(2);
|
|
23724
24192
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23725
24193
|
i0.ɵɵelementEnd();
|
|
@@ -23734,7 +24202,7 @@ function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf &
|
|
|
23734
24202
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotSelectedErrorMessage), " ");
|
|
23735
24203
|
} }
|
|
23736
24204
|
function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23737
|
-
i0.ɵɵelementStart(0, "div",
|
|
24205
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
23738
24206
|
i0.ɵɵtext(2);
|
|
23739
24207
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23740
24208
|
i0.ɵɵelementEnd();
|
|
@@ -23749,7 +24217,7 @@ function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf &
|
|
|
23749
24217
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageEnteredInBothFieldsErrorMessage), " ");
|
|
23750
24218
|
} }
|
|
23751
24219
|
function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
23752
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
24220
|
+
i0.ɵɵelementStart(0, "mat-option", 21);
|
|
23753
24221
|
i0.ɵɵtext(1);
|
|
23754
24222
|
i0.ɵɵpipe(2, "languageInterpreterDisplay");
|
|
23755
24223
|
i0.ɵɵelementEnd();
|
|
@@ -23760,7 +24228,7 @@ function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if
|
|
|
23760
24228
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, language_r3), " ");
|
|
23761
24229
|
} }
|
|
23762
24230
|
function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if (rf & 1) {
|
|
23763
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
24231
|
+
i0.ɵɵelementStart(0, "mat-option", 22);
|
|
23764
24232
|
i0.ɵɵtext(1);
|
|
23765
24233
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
23766
24234
|
i0.ɵɵelementEnd();
|
|
@@ -23769,7 +24237,7 @@ function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if
|
|
|
23769
24237
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "No results found"));
|
|
23770
24238
|
} }
|
|
23771
24239
|
function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
23772
|
-
i0.ɵɵelementStart(0, "div",
|
|
24240
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "span", 19);
|
|
23773
24241
|
i0.ɵɵtext(2);
|
|
23774
24242
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23775
24243
|
i0.ɵɵelementEnd();
|
|
@@ -23784,7 +24252,7 @@ function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if
|
|
|
23784
24252
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotEnteredErrorMessage), " ");
|
|
23785
24253
|
} }
|
|
23786
24254
|
function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
23787
|
-
i0.ɵɵelementStart(0, "div",
|
|
24255
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span", 19);
|
|
23788
24256
|
i0.ɵɵtext(2);
|
|
23789
24257
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23790
24258
|
i0.ɵɵelementEnd();
|
|
@@ -23799,12 +24267,12 @@ function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if
|
|
|
23799
24267
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageCharLimitErrorMessage), " ");
|
|
23800
24268
|
} }
|
|
23801
24269
|
function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
23802
|
-
i0.ɵɵelementStart(0, "div",
|
|
24270
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "div", 2)(2, "label", 24);
|
|
23803
24271
|
i0.ɵɵtext(3);
|
|
23804
24272
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
23805
24273
|
i0.ɵɵelementEnd();
|
|
23806
|
-
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div",
|
|
23807
|
-
i0.ɵɵelement(7, "input",
|
|
24274
|
+
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 25)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 26);
|
|
24275
|
+
i0.ɵɵelement(7, "input", 27);
|
|
23808
24276
|
i0.ɵɵelementEnd()();
|
|
23809
24277
|
} if (rf & 2) {
|
|
23810
24278
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -23819,7 +24287,7 @@ function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf &
|
|
|
23819
24287
|
i0.ɵɵadvance();
|
|
23820
24288
|
i0.ɵɵproperty("name", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
|
|
23821
24289
|
} }
|
|
23822
|
-
class SearchLanguageInterpreterComponent {
|
|
24290
|
+
class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
23823
24291
|
rpxTranslationService;
|
|
23824
24292
|
get searchLanguageInterpreterStep() {
|
|
23825
24293
|
return SearchLanguageInterpreterStep;
|
|
@@ -23841,7 +24309,8 @@ class SearchLanguageInterpreterComponent {
|
|
|
23841
24309
|
noResults = false;
|
|
23842
24310
|
languageMaxCharLimit = 80;
|
|
23843
24311
|
signLanguageFlagCode = 'RA0042';
|
|
23844
|
-
constructor(rpxTranslationService) {
|
|
24312
|
+
constructor(rpxTranslationService, multipageComponentStateService) {
|
|
24313
|
+
super(multipageComponentStateService);
|
|
23845
24314
|
this.rpxTranslationService = rpxTranslationService;
|
|
23846
24315
|
}
|
|
23847
24316
|
ngOnInit() {
|
|
@@ -23941,8 +24410,14 @@ class SearchLanguageInterpreterComponent {
|
|
|
23941
24410
|
!language.value && language.value_cy.toLowerCase().includes(searchTerm.toLowerCase(), 0))
|
|
23942
24411
|
: [];
|
|
23943
24412
|
}
|
|
23944
|
-
|
|
23945
|
-
|
|
24413
|
+
next() {
|
|
24414
|
+
this.onNext();
|
|
24415
|
+
if (this.errorMessages.length === 0) {
|
|
24416
|
+
super.next();
|
|
24417
|
+
}
|
|
24418
|
+
}
|
|
24419
|
+
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
24420
|
+
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) {
|
|
23946
24421
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
23947
24422
|
i0.ɵɵelementContainerStart(0, 1);
|
|
23948
24423
|
i0.ɵɵelementStart(1, "div", 2)(2, "h1", 3)(3, "label", 4);
|
|
@@ -23971,22 +24446,17 @@ class SearchLanguageInterpreterComponent {
|
|
|
23971
24446
|
i0.ɵɵtemplate(24, SearchLanguageInterpreterComponent_div_24_Template, 8, 10, "div", 17);
|
|
23972
24447
|
i0.ɵɵelementEnd()();
|
|
23973
24448
|
i0.ɵɵelementContainerEnd();
|
|
23974
|
-
i0.ɵɵelementStart(25, "div", 18)(26, "button", 19);
|
|
23975
|
-
i0.ɵɵlistener("click", function SearchLanguageInterpreterComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
23976
|
-
i0.ɵɵtext(27);
|
|
23977
|
-
i0.ɵɵpipe(28, "rpxTranslate");
|
|
23978
|
-
i0.ɵɵelementEnd()();
|
|
23979
24449
|
} if (rf & 2) {
|
|
23980
24450
|
const autoSearchLanguage_r4 = i0.ɵɵreference(14);
|
|
23981
24451
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23982
24452
|
i0.ɵɵadvance();
|
|
23983
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24453
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
23984
24454
|
i0.ɵɵadvance(2);
|
|
23985
24455
|
i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
|
|
23986
24456
|
i0.ɵɵadvance();
|
|
23987
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
24457
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 14, ctx.flagType, "name"), " ");
|
|
23988
24458
|
i0.ɵɵadvance(3);
|
|
23989
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
24459
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 17, ctx.searchLanguageInterpreterHint), " ");
|
|
23990
24460
|
i0.ɵɵadvance(3);
|
|
23991
24461
|
i0.ɵɵproperty("ngIf", ctx.languageNotSelectedErrorMessage);
|
|
23992
24462
|
i0.ɵɵadvance();
|
|
@@ -23996,32 +24466,30 @@ class SearchLanguageInterpreterComponent {
|
|
|
23996
24466
|
i0.ɵɵadvance();
|
|
23997
24467
|
i0.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
23998
24468
|
i0.ɵɵadvance(2);
|
|
23999
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16,
|
|
24469
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 19, ctx.filteredLanguages$));
|
|
24000
24470
|
i0.ɵɵadvance(2);
|
|
24001
24471
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length >= ctx.minSearchCharacters);
|
|
24002
24472
|
i0.ɵɵadvance(5);
|
|
24003
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23,
|
|
24473
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 21, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
|
|
24004
24474
|
i0.ɵɵadvance(2);
|
|
24005
24475
|
i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
24006
|
-
i0.ɵɵadvance(3);
|
|
24007
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 24, "Next"));
|
|
24008
24476
|
} }, 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}"] });
|
|
24009
24477
|
}
|
|
24010
24478
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
24011
24479
|
type: Component,
|
|
24012
|
-
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
|
|
24013
|
-
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
24480
|
+
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"] }]
|
|
24481
|
+
}], () => [{ type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], { formGroup: [{
|
|
24014
24482
|
type: Input
|
|
24015
24483
|
}], flagType: [{
|
|
24016
24484
|
type: Input
|
|
24017
24485
|
}], caseFlagStateEmitter: [{
|
|
24018
24486
|
type: Output
|
|
24019
24487
|
}] }); })();
|
|
24020
|
-
(() => { (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:
|
|
24488
|
+
(() => { (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: 20 }); })();
|
|
24021
24489
|
|
|
24022
24490
|
const _c0$p = a0 => ({ "form-group-error": a0 });
|
|
24023
24491
|
function SelectFlagLocationComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24024
|
-
i0.ɵɵelementStart(0, "div",
|
|
24492
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "span", 9);
|
|
24025
24493
|
i0.ɵɵtext(2);
|
|
24026
24494
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24027
24495
|
i0.ɵɵelementEnd();
|
|
@@ -24048,7 +24516,7 @@ function SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Templat
|
|
|
24048
24516
|
function SelectFlagLocationComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
24049
24517
|
i0.ɵɵelementContainerStart(0);
|
|
24050
24518
|
i0.ɵɵtext(1);
|
|
24051
|
-
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container",
|
|
24519
|
+
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 13);
|
|
24052
24520
|
i0.ɵɵelementContainerEnd();
|
|
24053
24521
|
} if (rf & 2) {
|
|
24054
24522
|
const flagsInstance_r2 = i0.ɵɵnextContext().$implicit;
|
|
@@ -24068,10 +24536,10 @@ function SelectFlagLocationComponent_div_9_ng_container_4_Template(rf, ctx) { if
|
|
|
24068
24536
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseLevelFlagLabel), " ");
|
|
24069
24537
|
} }
|
|
24070
24538
|
function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
24071
|
-
i0.ɵɵelementStart(0, "div",
|
|
24072
|
-
i0.ɵɵelement(1, "input",
|
|
24073
|
-
i0.ɵɵelementStart(2, "label",
|
|
24074
|
-
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container",
|
|
24539
|
+
i0.ɵɵelementStart(0, "div", 10);
|
|
24540
|
+
i0.ɵɵelement(1, "input", 11);
|
|
24541
|
+
i0.ɵɵelementStart(2, "label", 12);
|
|
24542
|
+
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container", 13)(4, SelectFlagLocationComponent_div_9_ng_container_4_Template, 3, 3, "ng-container", 13);
|
|
24075
24543
|
i0.ɵɵelementEnd()();
|
|
24076
24544
|
} if (rf & 2) {
|
|
24077
24545
|
const flagsInstance_r2 = ctx.$implicit;
|
|
@@ -24087,18 +24555,7 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
24087
24555
|
i0.ɵɵadvance();
|
|
24088
24556
|
i0.ɵɵproperty("ngIf", !flagsInstance_r2.flags.partyName);
|
|
24089
24557
|
} }
|
|
24090
|
-
|
|
24091
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
24092
|
-
i0.ɵɵelementStart(0, "div", 15)(1, "button", 16);
|
|
24093
|
-
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()); });
|
|
24094
|
-
i0.ɵɵtext(2);
|
|
24095
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24096
|
-
i0.ɵɵelementEnd()();
|
|
24097
|
-
} if (rf & 2) {
|
|
24098
|
-
i0.ɵɵadvance(2);
|
|
24099
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24100
|
-
} }
|
|
24101
|
-
class SelectFlagLocationComponent {
|
|
24558
|
+
class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
24102
24559
|
formGroup;
|
|
24103
24560
|
flagsData;
|
|
24104
24561
|
isDisplayContextParameterExternal = false;
|
|
@@ -24173,8 +24630,14 @@ class SelectFlagLocationComponent {
|
|
|
24173
24630
|
// Return case flag field state and error messages to the parent
|
|
24174
24631
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24175
24632
|
}
|
|
24176
|
-
|
|
24177
|
-
|
|
24633
|
+
next() {
|
|
24634
|
+
this.onNext();
|
|
24635
|
+
if (this.errorMessages.length === 0) {
|
|
24636
|
+
super.next();
|
|
24637
|
+
}
|
|
24638
|
+
}
|
|
24639
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵSelectFlagLocationComponent_BaseFactory; return function SelectFlagLocationComponent_Factory(t) { return (ɵSelectFlagLocationComponent_BaseFactory || (ɵSelectFlagLocationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SelectFlagLocationComponent)))(t || SelectFlagLocationComponent); }; })();
|
|
24640
|
+
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) {
|
|
24178
24641
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24179
24642
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24180
24643
|
i0.ɵɵtext(5);
|
|
@@ -24185,24 +24648,21 @@ class SelectFlagLocationComponent {
|
|
|
24185
24648
|
i0.ɵɵtemplate(9, SelectFlagLocationComponent_div_9_Template, 5, 9, "div", 7);
|
|
24186
24649
|
i0.ɵɵelementEnd()()();
|
|
24187
24650
|
i0.ɵɵelementContainerEnd();
|
|
24188
|
-
i0.ɵɵtemplate(10, SelectFlagLocationComponent_div_10_Template, 4, 3, "div", 8);
|
|
24189
24651
|
} if (rf & 2) {
|
|
24190
24652
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24191
24653
|
i0.ɵɵadvance();
|
|
24192
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24654
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$p, ctx.errorMessages.length > 0));
|
|
24193
24655
|
i0.ɵɵadvance(4);
|
|
24194
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24656
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx.flagLocationTitle), " ");
|
|
24195
24657
|
i0.ɵɵadvance(2);
|
|
24196
24658
|
i0.ɵɵproperty("ngIf", ctx.flagLocationNotSelectedErrorMessage);
|
|
24197
24659
|
i0.ɵɵadvance(2);
|
|
24198
24660
|
i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
|
|
24199
|
-
i0.ɵɵadvance();
|
|
24200
|
-
i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
24201
24661
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24202
24662
|
}
|
|
24203
24663
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
24204
24664
|
type: Component,
|
|
24205
|
-
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
|
|
24665
|
+
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>" }]
|
|
24206
24666
|
}], null, { formGroup: [{
|
|
24207
24667
|
type: Input
|
|
24208
24668
|
}], flagsData: [{
|
|
@@ -24212,7 +24672,7 @@ class SelectFlagLocationComponent {
|
|
|
24212
24672
|
}], caseFlagStateEmitter: [{
|
|
24213
24673
|
type: Output
|
|
24214
24674
|
}] }); })();
|
|
24215
|
-
(() => { (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:
|
|
24675
|
+
(() => { (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: 12 }); })();
|
|
24216
24676
|
|
|
24217
24677
|
const _c0$o = a0 => ({ "form-group-error": a0 });
|
|
24218
24678
|
const _c1$8 = a0 => ({ "govuk-input--error": a0 });
|
|
@@ -24235,7 +24695,7 @@ function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx)
|
|
|
24235
24695
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, ctx_r0.cachedFlagType, "name"), " ");
|
|
24236
24696
|
} }
|
|
24237
24697
|
function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24238
|
-
i0.ɵɵelementStart(0, "div",
|
|
24698
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "span", 13);
|
|
24239
24699
|
i0.ɵɵtext(2);
|
|
24240
24700
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24241
24701
|
i0.ɵɵelementEnd();
|
|
@@ -24250,9 +24710,9 @@ function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf
|
|
|
24250
24710
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeNotSelectedErrorMessage), " ");
|
|
24251
24711
|
} }
|
|
24252
24712
|
function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24253
|
-
i0.ɵɵelementStart(0, "div",
|
|
24254
|
-
i0.ɵɵelement(1, "input",
|
|
24255
|
-
i0.ɵɵelementStart(2, "label",
|
|
24713
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
24714
|
+
i0.ɵɵelement(1, "input", 15);
|
|
24715
|
+
i0.ɵɵelementStart(2, "label", 16);
|
|
24256
24716
|
i0.ɵɵtext(3);
|
|
24257
24717
|
i0.ɵɵpipe(4, "flagFieldDisplay");
|
|
24258
24718
|
i0.ɵɵelementEnd()();
|
|
@@ -24269,7 +24729,7 @@ function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (r
|
|
|
24269
24729
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(4, 8, flagType_r2, "name"), " ");
|
|
24270
24730
|
} }
|
|
24271
24731
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24272
|
-
i0.ɵɵelementStart(0, "div",
|
|
24732
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 13);
|
|
24273
24733
|
i0.ɵɵtext(2);
|
|
24274
24734
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24275
24735
|
i0.ɵɵelementEnd();
|
|
@@ -24284,9 +24744,9 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
|
|
|
24284
24744
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeErrorMessage), " ");
|
|
24285
24745
|
} }
|
|
24286
24746
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24287
|
-
i0.ɵɵelementStart(0, "div",
|
|
24288
|
-
i0.ɵɵelement(1, "input",
|
|
24289
|
-
i0.ɵɵelementStart(2, "label",
|
|
24747
|
+
i0.ɵɵelementStart(0, "div", 23);
|
|
24748
|
+
i0.ɵɵelement(1, "input", 24);
|
|
24749
|
+
i0.ɵɵelementStart(2, "label", 25);
|
|
24290
24750
|
i0.ɵɵtext(3);
|
|
24291
24751
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24292
24752
|
i0.ɵɵelementEnd()();
|
|
@@ -24298,14 +24758,14 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
24298
24758
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
24299
24759
|
} }
|
|
24300
24760
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24301
|
-
i0.ɵɵelementStart(0, "div",
|
|
24761
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "div", 3)(2, "label", 18);
|
|
24302
24762
|
i0.ɵɵtext(3);
|
|
24303
24763
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24304
24764
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24305
24765
|
i0.ɵɵelementEnd();
|
|
24306
|
-
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div",
|
|
24307
|
-
i0.ɵɵelement(7, "input",
|
|
24308
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div",
|
|
24766
|
+
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 19);
|
|
24767
|
+
i0.ɵɵelement(7, "input", 20);
|
|
24768
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 21);
|
|
24309
24769
|
i0.ɵɵelementEnd()();
|
|
24310
24770
|
} if (rf & 2) {
|
|
24311
24771
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -24321,13 +24781,13 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
24321
24781
|
i0.ɵɵproperty("ngIf", !ctx_r0.isDisplayContextParameterExternal && !ctx_r0.isCaseLevelFlag && ctx_r0.isDisplayContextParameter2Point1Enabled);
|
|
24322
24782
|
} }
|
|
24323
24783
|
function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
24324
|
-
i0.ɵɵelementContainerStart(0,
|
|
24325
|
-
i0.ɵɵelementStart(1, "div",
|
|
24326
|
-
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container",
|
|
24784
|
+
i0.ɵɵelementContainerStart(0, 2);
|
|
24785
|
+
i0.ɵɵelementStart(1, "div", 3)(2, "fieldset", 4)(3, "legend", 5)(4, "h1", 6);
|
|
24786
|
+
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 7)(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
24327
24787
|
i0.ɵɵelementEnd()();
|
|
24328
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div",
|
|
24329
|
-
i0.ɵɵelementStart(9, "div",
|
|
24330
|
-
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div",
|
|
24788
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 8);
|
|
24789
|
+
i0.ɵɵelementStart(9, "div", 9);
|
|
24790
|
+
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div", 10)(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 11);
|
|
24331
24791
|
i0.ɵɵelementEnd()()();
|
|
24332
24792
|
i0.ɵɵelementContainerEnd();
|
|
24333
24793
|
} if (rf & 2) {
|
|
@@ -24337,7 +24797,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24337
24797
|
i0.ɵɵadvance();
|
|
24338
24798
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
24339
24799
|
i0.ɵɵadvance(4);
|
|
24340
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType)("ngIfElse", priorFlagTypeSelected_r4);
|
|
24800
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType || ctx_r0.subJourneyIndex == 0)("ngIfElse", priorFlagTypeSelected_r4);
|
|
24341
24801
|
i0.ɵɵadvance(3);
|
|
24342
24802
|
i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
24343
24803
|
i0.ɵɵadvance(2);
|
|
@@ -24345,18 +24805,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24345
24805
|
i0.ɵɵadvance();
|
|
24346
24806
|
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
24347
24807
|
} }
|
|
24348
|
-
|
|
24349
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
24350
|
-
i0.ɵɵelementStart(0, "div", 27)(1, "button", 28);
|
|
24351
|
-
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()); });
|
|
24352
|
-
i0.ɵɵtext(2);
|
|
24353
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24354
|
-
i0.ɵɵelementEnd()();
|
|
24355
|
-
} if (rf & 2) {
|
|
24356
|
-
i0.ɵɵadvance(2);
|
|
24357
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24358
|
-
} }
|
|
24359
|
-
class SelectFlagTypeComponent {
|
|
24808
|
+
class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
24360
24809
|
caseFlagRefdataService;
|
|
24361
24810
|
formGroup;
|
|
24362
24811
|
jurisdiction;
|
|
@@ -24378,6 +24827,8 @@ class SelectFlagTypeComponent {
|
|
|
24378
24827
|
flagTypeControlChangesSubscription;
|
|
24379
24828
|
caseFlagFormField = CaseFlagFormFields;
|
|
24380
24829
|
isCaseLevelFlag = false;
|
|
24830
|
+
cachedRDFlagTypes;
|
|
24831
|
+
subJourneyIndex = 0;
|
|
24381
24832
|
maxCharactersForOtherFlagType = 80;
|
|
24382
24833
|
// Code for "Other" flag type as defined in Reference Data
|
|
24383
24834
|
otherFlagTypeCode = 'OT0001';
|
|
@@ -24385,15 +24836,16 @@ class SelectFlagTypeComponent {
|
|
|
24385
24836
|
get caseFlagWizardStepTitle() {
|
|
24386
24837
|
return CaseFlagWizardStepTitle;
|
|
24387
24838
|
}
|
|
24839
|
+
constructor(caseFlagRefdataService, pageStateService) {
|
|
24840
|
+
super(pageStateService);
|
|
24841
|
+
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24842
|
+
}
|
|
24388
24843
|
get selectedFlagType() {
|
|
24389
24844
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value;
|
|
24390
24845
|
}
|
|
24391
24846
|
get otherFlagTypeSelected() {
|
|
24392
24847
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value?.flagCode === this.otherFlagTypeCode;
|
|
24393
24848
|
}
|
|
24394
|
-
constructor(caseFlagRefdataService) {
|
|
24395
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24396
|
-
}
|
|
24397
24849
|
ngOnInit() {
|
|
24398
24850
|
this.isCaseLevelFlag = this.selectedFlagsLocation?.flags?.flagsCaseFieldId === this.caseLevelCaseFlagsFieldId;
|
|
24399
24851
|
this.flagTypes = [];
|
|
@@ -24404,7 +24856,7 @@ class SelectFlagTypeComponent {
|
|
|
24404
24856
|
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(false));
|
|
24405
24857
|
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
24406
24858
|
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.valueChanges
|
|
24407
|
-
.subscribe(_ => {
|
|
24859
|
+
.subscribe((_) => {
|
|
24408
24860
|
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.setValue('');
|
|
24409
24861
|
this.cachedPath = [];
|
|
24410
24862
|
// required to clear language interpreter
|
|
@@ -24418,8 +24870,8 @@ class SelectFlagTypeComponent {
|
|
|
24418
24870
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
24419
24871
|
.getCaseFlagsRefdata(this.hmctsServiceId, flagType, true, this.isDisplayContextParameterExternal)
|
|
24420
24872
|
.subscribe({
|
|
24421
|
-
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24422
|
-
error: error => this.onRefdataError(error)
|
|
24873
|
+
next: (flagTypes) => this.processFlagTypes(flagTypes),
|
|
24874
|
+
error: (error) => this.onRefdataError(error)
|
|
24423
24875
|
});
|
|
24424
24876
|
}
|
|
24425
24877
|
else {
|
|
@@ -24427,19 +24879,36 @@ class SelectFlagTypeComponent {
|
|
|
24427
24879
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
|
|
24428
24880
|
.pipe(
|
|
24429
24881
|
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
24430
|
-
catchError(_ => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
|
|
24882
|
+
catchError((_) => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
|
|
24431
24883
|
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
24432
24884
|
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
24433
|
-
switchMap(serviceDetails => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
|
|
24885
|
+
switchMap((serviceDetails) => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
|
|
24434
24886
|
.subscribe({
|
|
24435
|
-
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24436
|
-
error: error => this.onRefdataError(error)
|
|
24887
|
+
next: (flagTypes) => this.processFlagTypes(flagTypes),
|
|
24888
|
+
error: (error) => this.onRefdataError(error)
|
|
24437
24889
|
});
|
|
24438
24890
|
}
|
|
24439
24891
|
}
|
|
24440
24892
|
ngOnDestroy() {
|
|
24441
24893
|
this.flagRefdata$?.unsubscribe();
|
|
24442
24894
|
this.flagTypeControlChangesSubscription?.unsubscribe();
|
|
24895
|
+
// check if the user has an existing path when navigating away from the page
|
|
24896
|
+
// if so we may need to ensure the values are set correctly.
|
|
24897
|
+
this.checkForExistingPath();
|
|
24898
|
+
}
|
|
24899
|
+
checkForExistingPath() {
|
|
24900
|
+
// Restore values from cachedPath
|
|
24901
|
+
if (this.subJourneyIndex <= 0) {
|
|
24902
|
+
// check if the user is navigating to the previous page in the jounrey.
|
|
24903
|
+
// in this situation we need to restore the full path for data retention across pages.
|
|
24904
|
+
if (this.cachedPath && this.cachedPath.length > 0) {
|
|
24905
|
+
this.cachedPath.forEach((flagType) => {
|
|
24906
|
+
if (flagType) {
|
|
24907
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(flagType, { emitEvent: false });
|
|
24908
|
+
}
|
|
24909
|
+
});
|
|
24910
|
+
}
|
|
24911
|
+
}
|
|
24443
24912
|
}
|
|
24444
24913
|
onNext() {
|
|
24445
24914
|
// Validate form
|
|
@@ -24461,10 +24930,40 @@ class SelectFlagTypeComponent {
|
|
|
24461
24930
|
// when displaying the next set of child flags
|
|
24462
24931
|
this.cachedFlagType = this.selectedFlagType;
|
|
24463
24932
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
24464
|
-
this.cachedPath
|
|
24465
|
-
|
|
24933
|
+
if (this.cachedPath.length !== 0 && this.cachedPath[this.subJourneyIndex] === this.selectedFlagType) {
|
|
24934
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath[this.subJourneyIndex + 1], { emitEvent: false });
|
|
24935
|
+
}
|
|
24936
|
+
else {
|
|
24937
|
+
this.cachedPath?.shift();
|
|
24938
|
+
const value = this.cachedPath?.length ? this.cachedPath[0] : null;
|
|
24939
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(value, { emitEvent: false });
|
|
24940
|
+
}
|
|
24941
|
+
this.subJourneyIndex++;
|
|
24466
24942
|
}
|
|
24467
24943
|
}
|
|
24944
|
+
// Simplified version of the onPrevious method with optimized code
|
|
24945
|
+
onPrevious() {
|
|
24946
|
+
if (this.cachedFlagType) {
|
|
24947
|
+
if (this.cachedFlagType.Path.length === 1) {
|
|
24948
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24949
|
+
this.flagTypes = this.cachedRDFlagTypes[0].childFlags;
|
|
24950
|
+
}
|
|
24951
|
+
else {
|
|
24952
|
+
let currentPath = this.cachedRDFlagTypes[0];
|
|
24953
|
+
const pathToSearch = this.cachedFlagType.Path.slice(1);
|
|
24954
|
+
for (const pathElement of pathToSearch) {
|
|
24955
|
+
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
24956
|
+
if (foundFlag) {
|
|
24957
|
+
currentPath = foundFlag;
|
|
24958
|
+
}
|
|
24959
|
+
}
|
|
24960
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24961
|
+
this.flagTypes = currentPath.childFlags;
|
|
24962
|
+
this.cachedFlagType = currentPath;
|
|
24963
|
+
}
|
|
24964
|
+
}
|
|
24965
|
+
this.subJourneyIndex = Math.max(0, this.subJourneyIndex - 1);
|
|
24966
|
+
}
|
|
24468
24967
|
// Identity function for trackBy use by *ngFor for flagTypes in HTML template
|
|
24469
24968
|
identifyFlagType(_, flagType) {
|
|
24470
24969
|
return `${flagType.flagCode}_${flagType.name}_${flagType.name_cy}`;
|
|
@@ -24502,18 +25001,33 @@ class SelectFlagTypeComponent {
|
|
|
24502
25001
|
}
|
|
24503
25002
|
}
|
|
24504
25003
|
processFlagTypes(flagTypes) {
|
|
24505
|
-
|
|
24506
|
-
|
|
24507
|
-
this.
|
|
25004
|
+
const prevJourneyPage = this.multipageComponentStateService.getJourneyCollection()[0];
|
|
25005
|
+
const { journeyPreviousPageNumber, journeyPageNumber } = prevJourneyPage;
|
|
25006
|
+
this.cachedRDFlagTypes = flagTypes;
|
|
25007
|
+
if (this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) {
|
|
25008
|
+
const selectedFlagType = this.selectedFlagType;
|
|
25009
|
+
const pathToSearch = selectedFlagType.Path.slice(1);
|
|
25010
|
+
let currentPath = flagTypes[0];
|
|
25011
|
+
for (const pathElement of pathToSearch) {
|
|
25012
|
+
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
25013
|
+
if (foundFlag) {
|
|
25014
|
+
currentPath = foundFlag;
|
|
25015
|
+
}
|
|
25016
|
+
}
|
|
25017
|
+
this.flagTypes = currentPath.childFlags;
|
|
25018
|
+
this.cachedFlagType = currentPath;
|
|
25019
|
+
}
|
|
25020
|
+
else {
|
|
25021
|
+
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
25022
|
+
}
|
|
24508
25023
|
const formControl = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE);
|
|
24509
25024
|
if (formControl?.value) {
|
|
24510
|
-
|
|
24511
|
-
|
|
24512
|
-
this.cachedPath
|
|
24513
|
-
|
|
24514
|
-
|
|
24515
|
-
|
|
24516
|
-
formControl.setValue(this.cachedPath[0], { emitEvent: false });
|
|
25025
|
+
const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.cachedRDFlagTypes[0].childFlags);
|
|
25026
|
+
this.cachedPath = [...path, foundFlagType];
|
|
25027
|
+
formControl.setValue((this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) ? this.cachedPath[this.cachedPath.length - 1] : this.cachedPath[0], { emitEvent: false });
|
|
25028
|
+
if (this.cachedPath.length !== 0 && (journeyPreviousPageNumber > journeyPageNumber)) {
|
|
25029
|
+
this.subJourneyIndex = this.cachedPath.length - 1;
|
|
25030
|
+
}
|
|
24517
25031
|
}
|
|
24518
25032
|
}
|
|
24519
25033
|
onRefdataError(error) {
|
|
@@ -24524,19 +25038,29 @@ class SelectFlagTypeComponent {
|
|
|
24524
25038
|
// Return case flag field state and error messages to the parent
|
|
24525
25039
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24526
25040
|
}
|
|
24527
|
-
|
|
24528
|
-
|
|
24529
|
-
|
|
25041
|
+
next() {
|
|
25042
|
+
this.onNext();
|
|
25043
|
+
if (this.errorMessages.length === 0) {
|
|
25044
|
+
super.next();
|
|
25045
|
+
}
|
|
25046
|
+
}
|
|
25047
|
+
previous() {
|
|
25048
|
+
this.onPrevious();
|
|
25049
|
+
if (this.subJourneyIndex <= 0) {
|
|
25050
|
+
super.previous();
|
|
25051
|
+
}
|
|
25052
|
+
}
|
|
25053
|
+
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
25054
|
+
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) {
|
|
25055
|
+
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1);
|
|
24530
25056
|
} if (rf & 2) {
|
|
24531
25057
|
i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|
|
24532
|
-
i0.ɵɵadvance();
|
|
24533
|
-
i0.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
24534
25058
|
} }, styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
24535
25059
|
}
|
|
24536
25060
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
24537
25061
|
type: Component,
|
|
24538
|
-
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
|
|
24539
|
-
}], () => [{ type: CaseFlagRefdataService }], { formGroup: [{
|
|
25062
|
+
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 || subJourneyIndex == 0; 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 |\n 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\" type=\"radio\"\n [value]=\"flagType\" [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 |\n rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-half\"\n [ngClass]=\"{'govuk-input--error': flagTypeErrorMessage.length > 0}\" id=\"other-flag-type-description\"\n [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\"\n [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>", styles: [".hidden{display:none}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
25063
|
+
}], () => [{ type: CaseFlagRefdataService }, { type: MultipageComponentStateService }], { formGroup: [{
|
|
24540
25064
|
type: Input
|
|
24541
25065
|
}], jurisdiction: [{
|
|
24542
25066
|
type: Input
|
|
@@ -24555,35 +25079,35 @@ class SelectFlagTypeComponent {
|
|
|
24555
25079
|
}], flagCommentsOptionalEmitter: [{
|
|
24556
25080
|
type: Output
|
|
24557
25081
|
}] }); })();
|
|
24558
|
-
(() => { (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:
|
|
25082
|
+
(() => { (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: 19 }); })();
|
|
24559
25083
|
|
|
24560
25084
|
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
24561
25085
|
const _c1$7 = a0 => ({ "govuk-tag--grey": a0 });
|
|
24562
25086
|
function UpdateFlagComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24563
|
-
i0.ɵɵelementStart(0, "div",
|
|
25087
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
24564
25088
|
i0.ɵɵtext(1);
|
|
24565
25089
|
i0.ɵɵpipe(2, "updateFlagTitleDisplay");
|
|
24566
25090
|
i0.ɵɵelementEnd();
|
|
24567
25091
|
} if (rf & 2) {
|
|
24568
|
-
const
|
|
25092
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24569
25093
|
i0.ɵɵadvance();
|
|
24570
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
25094
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail), " ");
|
|
24571
25095
|
} }
|
|
24572
25096
|
function UpdateFlagComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
24573
|
-
i0.ɵɵelementStart(0, "div",
|
|
25097
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
24574
25098
|
i0.ɵɵtext(1);
|
|
24575
25099
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24576
25100
|
i0.ɵɵelementEnd();
|
|
24577
25101
|
} if (rf & 2) {
|
|
24578
|
-
const
|
|
25102
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24579
25103
|
i0.ɵɵadvance();
|
|
24580
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
25104
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
|
|
24581
25105
|
} }
|
|
24582
25106
|
function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24583
|
-
i0.ɵɵelementStart(0, "div",
|
|
25107
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 24);
|
|
24584
25108
|
i0.ɵɵtext(2, "!");
|
|
24585
25109
|
i0.ɵɵelementEnd();
|
|
24586
|
-
i0.ɵɵelementStart(3, "strong",
|
|
25110
|
+
i0.ɵɵelementStart(3, "strong", 25)(4, "span", 26);
|
|
24587
25111
|
i0.ɵɵtext(5);
|
|
24588
25112
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
24589
25113
|
i0.ɵɵelementEnd();
|
|
@@ -24591,14 +25115,14 @@ function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf &
|
|
|
24591
25115
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
24592
25116
|
i0.ɵɵelementEnd()();
|
|
24593
25117
|
} if (rf & 2) {
|
|
24594
|
-
const
|
|
25118
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24595
25119
|
i0.ɵɵadvance(5);
|
|
24596
25120
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
24597
25121
|
i0.ɵɵadvance(2);
|
|
24598
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4,
|
|
25122
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.updateFlagStepEnum.WARNING_TEXT), " ");
|
|
24599
25123
|
} }
|
|
24600
25124
|
function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24601
|
-
i0.ɵɵelementStart(0, "div",
|
|
25125
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "span", 28);
|
|
24602
25126
|
i0.ɵɵtext(2);
|
|
24603
25127
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24604
25128
|
i0.ɵɵelementEnd();
|
|
@@ -24606,14 +25130,14 @@ function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf &
|
|
|
24606
25130
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24607
25131
|
i0.ɵɵelementEnd();
|
|
24608
25132
|
} if (rf & 2) {
|
|
24609
|
-
const
|
|
25133
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24610
25134
|
i0.ɵɵadvance(2);
|
|
24611
25135
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24612
25136
|
i0.ɵɵadvance(2);
|
|
24613
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
25137
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.commentsNotEnteredErrorMessage), " ");
|
|
24614
25138
|
} }
|
|
24615
25139
|
function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24616
|
-
i0.ɵɵelementStart(0, "div",
|
|
25140
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span", 28);
|
|
24617
25141
|
i0.ɵɵtext(2);
|
|
24618
25142
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24619
25143
|
i0.ɵɵelementEnd();
|
|
@@ -24621,64 +25145,64 @@ function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf &
|
|
|
24621
25145
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24622
25146
|
i0.ɵɵelementEnd();
|
|
24623
25147
|
} if (rf & 2) {
|
|
24624
|
-
const
|
|
25148
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24625
25149
|
i0.ɵɵadvance(2);
|
|
24626
25150
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24627
25151
|
i0.ɵɵadvance(2);
|
|
24628
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
25152
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.commentsCharLimitErrorMessage), " ");
|
|
24629
25153
|
} }
|
|
24630
25154
|
function UpdateFlagComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
24631
25155
|
i0.ɵɵelementContainerStart(0);
|
|
24632
|
-
i0.ɵɵelementStart(1, "div",
|
|
25156
|
+
i0.ɵɵelementStart(1, "div", 17);
|
|
24633
25157
|
i0.ɵɵtext(2);
|
|
24634
25158
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24635
25159
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24636
25160
|
i0.ɵɵelementEnd();
|
|
24637
|
-
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div",
|
|
24638
|
-
i0.ɵɵelementStart(8, "textarea",
|
|
25161
|
+
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div", 18)(6, UpdateFlagComponent_ng_container_15_div_6_Template, 6, 6, "div", 19)(7, UpdateFlagComponent_ng_container_15_div_7_Template, 6, 6, "div", 20);
|
|
25162
|
+
i0.ɵɵelementStart(8, "textarea", 21);
|
|
24639
25163
|
i0.ɵɵtext(9, " ");
|
|
24640
25164
|
i0.ɵɵelementEnd();
|
|
24641
|
-
i0.ɵɵelementStart(10, "div",
|
|
25165
|
+
i0.ɵɵelementStart(10, "div", 22);
|
|
24642
25166
|
i0.ɵɵtext(11);
|
|
24643
25167
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
24644
25168
|
i0.ɵɵelementEnd();
|
|
24645
25169
|
i0.ɵɵelementContainerEnd();
|
|
24646
25170
|
} if (rf & 2) {
|
|
24647
|
-
const
|
|
25171
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24648
25172
|
i0.ɵɵadvance(2);
|
|
24649
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
25173
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.internalUserUpdate ? i0.ɵɵpipeBind1(3, 8, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0.ɵɵpipeBind1(4, 10, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
|
|
24650
25174
|
i0.ɵɵadvance(3);
|
|
24651
|
-
i0.ɵɵproperty("ngIf",
|
|
25175
|
+
i0.ɵɵproperty("ngIf", ctx_r0.internalUser2Point1EnabledUpdate && ctx_r0.externallyVisibleFlag);
|
|
24652
25176
|
i0.ɵɵadvance();
|
|
24653
|
-
i0.ɵɵproperty("ngIf",
|
|
25177
|
+
i0.ɵɵproperty("ngIf", ctx_r0.commentsNotEnteredErrorMessage);
|
|
24654
25178
|
i0.ɵɵadvance();
|
|
24655
|
-
i0.ɵɵproperty("ngIf",
|
|
25179
|
+
i0.ɵɵproperty("ngIf", ctx_r0.commentsCharLimitErrorMessage);
|
|
24656
25180
|
i0.ɵɵadvance();
|
|
24657
|
-
i0.ɵɵproperty("id",
|
|
25181
|
+
i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.COMMENTS)("name", ctx_r0.caseFlagFormFields.COMMENTS)("formControlName", ctx_r0.caseFlagFormFields.COMMENTS);
|
|
24658
25182
|
i0.ɵɵadvance(3);
|
|
24659
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12,
|
|
25183
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r0.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
24660
25184
|
} }
|
|
24661
25185
|
function UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
24662
25186
|
i0.ɵɵelementContainer(0);
|
|
24663
25187
|
} }
|
|
24664
25188
|
function UpdateFlagComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
24665
25189
|
i0.ɵɵelementContainerStart(0);
|
|
24666
|
-
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
25190
|
+
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 31);
|
|
24667
25191
|
i0.ɵɵelementContainerEnd();
|
|
24668
25192
|
} if (rf & 2) {
|
|
24669
25193
|
i0.ɵɵnextContext(2);
|
|
24670
|
-
const
|
|
25194
|
+
const updateFlagStatusReason_r2 = i0.ɵɵreference(19);
|
|
24671
25195
|
i0.ɵɵadvance();
|
|
24672
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
25196
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r2);
|
|
24673
25197
|
} }
|
|
24674
25198
|
function UpdateFlagComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
24675
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container",
|
|
25199
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 30);
|
|
24676
25200
|
} if (rf & 2) {
|
|
24677
|
-
const
|
|
24678
|
-
i0.ɵɵproperty("ngIf",
|
|
25201
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
25202
|
+
i0.ɵɵproperty("ngIf", ctx_r0.externalUserUpdate);
|
|
24679
25203
|
} }
|
|
24680
25204
|
function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
24681
|
-
i0.ɵɵelementStart(0, "div",
|
|
25205
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "span", 28);
|
|
24682
25206
|
i0.ɵɵtext(2);
|
|
24683
25207
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24684
25208
|
i0.ɵɵelementEnd();
|
|
@@ -24686,14 +25210,14 @@ function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1
|
|
|
24686
25210
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24687
25211
|
i0.ɵɵelementEnd();
|
|
24688
25212
|
} if (rf & 2) {
|
|
24689
|
-
const
|
|
25213
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24690
25214
|
i0.ɵɵadvance(2);
|
|
24691
25215
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24692
25216
|
i0.ɵɵadvance(2);
|
|
24693
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
25217
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.statusReasonNotEnteredErrorMessage), " ");
|
|
24694
25218
|
} }
|
|
24695
25219
|
function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
24696
|
-
i0.ɵɵelementStart(0, "div",
|
|
25220
|
+
i0.ɵɵelementStart(0, "div", 37)(1, "span", 28);
|
|
24697
25221
|
i0.ɵɵtext(2);
|
|
24698
25222
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24699
25223
|
i0.ɵɵelementEnd();
|
|
@@ -24701,100 +25225,100 @@ function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
24701
25225
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24702
25226
|
i0.ɵɵelementEnd();
|
|
24703
25227
|
} if (rf & 2) {
|
|
24704
|
-
const
|
|
25228
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24705
25229
|
i0.ɵɵadvance(2);
|
|
24706
25230
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
24707
25231
|
i0.ɵɵadvance(2);
|
|
24708
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
25232
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.statusReasonCharLimitErrorMessage), " ");
|
|
24709
25233
|
} }
|
|
24710
25234
|
function UpdateFlagComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
24711
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div",
|
|
24712
|
-
i0.ɵɵelementStart(2, "textarea",
|
|
25235
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div", 32)(1, UpdateFlagComponent_ng_template_18_div_1_Template, 6, 6, "div", 33);
|
|
25236
|
+
i0.ɵɵelementStart(2, "textarea", 34);
|
|
24713
25237
|
i0.ɵɵtext(3, " ");
|
|
24714
25238
|
i0.ɵɵelementEnd();
|
|
24715
|
-
i0.ɵɵelementStart(4, "div",
|
|
25239
|
+
i0.ɵɵelementStart(4, "div", 35);
|
|
24716
25240
|
i0.ɵɵtext(5);
|
|
24717
25241
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
24718
25242
|
i0.ɵɵelementEnd();
|
|
24719
25243
|
} if (rf & 2) {
|
|
24720
|
-
const
|
|
24721
|
-
i0.ɵɵproperty("ngIf",
|
|
25244
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
25245
|
+
i0.ɵɵproperty("ngIf", ctx_r0.statusReasonNotEnteredErrorMessage);
|
|
24722
25246
|
i0.ɵɵadvance();
|
|
24723
|
-
i0.ɵɵproperty("ngIf",
|
|
25247
|
+
i0.ɵɵproperty("ngIf", ctx_r0.statusReasonCharLimitErrorMessage);
|
|
24724
25248
|
i0.ɵɵadvance();
|
|
24725
|
-
i0.ɵɵproperty("id",
|
|
25249
|
+
i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON);
|
|
24726
25250
|
i0.ɵɵadvance(3);
|
|
24727
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6,
|
|
25251
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r0.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
24728
25252
|
} }
|
|
24729
25253
|
function UpdateFlagComponent_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24730
|
-
i0.ɵɵelementStart(0, "div",
|
|
24731
|
-
i0.ɵɵelement(1, "input",
|
|
24732
|
-
i0.ɵɵelementStart(2, "label",
|
|
25254
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
25255
|
+
i0.ɵɵelement(1, "input", 46);
|
|
25256
|
+
i0.ɵɵelementStart(2, "label", 47);
|
|
24733
25257
|
i0.ɵɵtext(3);
|
|
24734
25258
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24735
25259
|
i0.ɵɵelementEnd()();
|
|
24736
25260
|
} if (rf & 2) {
|
|
24737
|
-
const
|
|
24738
|
-
const
|
|
25261
|
+
const status_r3 = ctx.$implicit;
|
|
25262
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
24739
25263
|
i0.ɵɵadvance();
|
|
24740
|
-
i0.ɵɵproperty("id",
|
|
25264
|
+
i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS + "_" + status_r3)("name", ctx_r0.caseFlagFormFields.STATUS)("formControlName", ctx_r0.caseFlagFormFields.STATUS)("value", status_r3);
|
|
24741
25265
|
i0.ɵɵadvance();
|
|
24742
|
-
i0.ɵɵproperty("for",
|
|
25266
|
+
i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.STATUS + "_" + status_r3);
|
|
24743
25267
|
i0.ɵɵadvance();
|
|
24744
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6,
|
|
25268
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r0.caseFlagStatusEnum[status_r3]), " ");
|
|
24745
25269
|
} }
|
|
24746
25270
|
function UpdateFlagComponent_div_20_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
24747
25271
|
i0.ɵɵelementContainer(0);
|
|
24748
25272
|
} }
|
|
24749
25273
|
function UpdateFlagComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
24750
|
-
i0.ɵɵelementStart(0, "div",
|
|
25274
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "fieldset", 39)(2, "legend", 40)(3, "h1", 41);
|
|
24751
25275
|
i0.ɵɵtext(4);
|
|
24752
25276
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24753
25277
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
24754
25278
|
i0.ɵɵelementEnd()();
|
|
24755
|
-
i0.ɵɵelementStart(7, "div",
|
|
24756
|
-
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div",
|
|
25279
|
+
i0.ɵɵelementStart(7, "div", 42);
|
|
25280
|
+
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 43);
|
|
24757
25281
|
i0.ɵɵelementEnd()();
|
|
24758
|
-
i0.ɵɵelementStart(9, "div",
|
|
25282
|
+
i0.ɵɵelementStart(9, "div", 44);
|
|
24759
25283
|
i0.ɵɵtext(10);
|
|
24760
25284
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
24761
25285
|
i0.ɵɵelementEnd();
|
|
24762
|
-
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container",
|
|
25286
|
+
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 31);
|
|
24763
25287
|
i0.ɵɵelementEnd();
|
|
24764
25288
|
} if (rf & 2) {
|
|
24765
|
-
const
|
|
24766
|
-
const
|
|
25289
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
25290
|
+
const updateFlagStatusReason_r2 = i0.ɵɵreference(19);
|
|
24767
25291
|
i0.ɵɵadvance(4);
|
|
24768
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6,
|
|
25292
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r0.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
|
|
24769
25293
|
i0.ɵɵadvance(3);
|
|
24770
|
-
i0.ɵɵproperty("id",
|
|
25294
|
+
i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS);
|
|
24771
25295
|
i0.ɵɵadvance();
|
|
24772
|
-
i0.ɵɵproperty("ngForOf",
|
|
25296
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.validStatusProgressions);
|
|
24773
25297
|
i0.ɵɵadvance(2);
|
|
24774
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10,
|
|
25298
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r0.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
|
|
24775
25299
|
i0.ɵɵadvance(2);
|
|
24776
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
25300
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r2);
|
|
24777
25301
|
} }
|
|
24778
25302
|
function UpdateFlagComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
24779
|
-
i0.ɵɵelementStart(0, "div",
|
|
24780
|
-
i0.ɵɵelement(3, "input",
|
|
24781
|
-
i0.ɵɵelementStart(4, "label",
|
|
25303
|
+
i0.ɵɵelementStart(0, "div", 48)(1, "div", 49)(2, "div", 50);
|
|
25304
|
+
i0.ɵɵelement(3, "input", 51);
|
|
25305
|
+
i0.ɵɵelementStart(4, "label", 52);
|
|
24782
25306
|
i0.ɵɵtext(5);
|
|
24783
25307
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
24784
25308
|
i0.ɵɵelementEnd()()()();
|
|
24785
25309
|
} if (rf & 2) {
|
|
24786
|
-
const
|
|
25310
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24787
25311
|
i0.ɵɵadvance(3);
|
|
24788
|
-
i0.ɵɵproperty("formControlName",
|
|
25312
|
+
i0.ɵɵproperty("formControlName", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
24789
25313
|
i0.ɵɵadvance();
|
|
24790
|
-
i0.ɵɵproperty("for",
|
|
25314
|
+
i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
24791
25315
|
i0.ɵɵadvance();
|
|
24792
25316
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
|
|
24793
25317
|
} }
|
|
24794
25318
|
function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
24795
|
-
const
|
|
24796
|
-
i0.ɵɵelementStart(0, "button",
|
|
24797
|
-
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
25319
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
25320
|
+
i0.ɵɵelementStart(0, "button", 57);
|
|
25321
|
+
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onMakeInactive()); });
|
|
24798
25322
|
i0.ɵɵtext(1);
|
|
24799
25323
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24800
25324
|
i0.ɵɵelementEnd();
|
|
@@ -24803,28 +25327,28 @@ function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
24803
25327
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
|
|
24804
25328
|
} }
|
|
24805
25329
|
function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
24806
|
-
i0.ɵɵelementStart(0, "div",
|
|
25330
|
+
i0.ɵɵelementStart(0, "div", 53)(1, "div", 54)(2, "p");
|
|
24807
25331
|
i0.ɵɵtext(3);
|
|
24808
25332
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24809
|
-
i0.ɵɵelementStart(5, "span")(6, "strong",
|
|
25333
|
+
i0.ɵɵelementStart(5, "span")(6, "strong", 55);
|
|
24810
25334
|
i0.ɵɵtext(7);
|
|
24811
25335
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
24812
25336
|
i0.ɵɵelementEnd()()()();
|
|
24813
|
-
i0.ɵɵelementStart(9, "div",
|
|
24814
|
-
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button",
|
|
25337
|
+
i0.ɵɵelementStart(9, "div", 54);
|
|
25338
|
+
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 56);
|
|
24815
25339
|
i0.ɵɵelementEnd()();
|
|
24816
25340
|
} if (rf & 2) {
|
|
24817
|
-
const
|
|
25341
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
24818
25342
|
i0.ɵɵadvance(3);
|
|
24819
25343
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
|
|
24820
25344
|
i0.ɵɵadvance(3);
|
|
24821
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7,
|
|
25345
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
24822
25346
|
i0.ɵɵadvance();
|
|
24823
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6,
|
|
25347
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
|
|
24824
25348
|
i0.ɵɵadvance(3);
|
|
24825
|
-
i0.ɵɵproperty("ngIf",
|
|
25349
|
+
i0.ɵɵproperty("ngIf", ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
24826
25350
|
} }
|
|
24827
|
-
class UpdateFlagComponent {
|
|
25351
|
+
class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
24828
25352
|
rpxTranslationService;
|
|
24829
25353
|
formGroup;
|
|
24830
25354
|
displayContextParameter;
|
|
@@ -24850,7 +25374,8 @@ class UpdateFlagComponent {
|
|
|
24850
25374
|
get externallyVisibleFlag() {
|
|
24851
25375
|
return this.selectedFlag.flagDetailDisplay.visibility?.toLowerCase() === 'external';
|
|
24852
25376
|
}
|
|
24853
|
-
constructor(rpxTranslationService) {
|
|
25377
|
+
constructor(rpxTranslationService, multipageComponentStateService) {
|
|
25378
|
+
super(multipageComponentStateService);
|
|
24854
25379
|
this.rpxTranslationService = rpxTranslationService;
|
|
24855
25380
|
}
|
|
24856
25381
|
ngOnInit() {
|
|
@@ -24997,9 +25522,14 @@ class UpdateFlagComponent {
|
|
|
24997
25522
|
});
|
|
24998
25523
|
}
|
|
24999
25524
|
}
|
|
25000
|
-
|
|
25001
|
-
|
|
25002
|
-
|
|
25525
|
+
next() {
|
|
25526
|
+
this.onNext();
|
|
25527
|
+
if (this.errorMessages.length === 0) {
|
|
25528
|
+
super.next();
|
|
25529
|
+
}
|
|
25530
|
+
}
|
|
25531
|
+
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
25532
|
+
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) {
|
|
25003
25533
|
i0.ɵɵelementContainerStart(0, 2);
|
|
25004
25534
|
i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h1", 5)(4, "label", 6);
|
|
25005
25535
|
i0.ɵɵtext(5);
|
|
@@ -25017,53 +25547,46 @@ class UpdateFlagComponent {
|
|
|
25017
25547
|
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);
|
|
25018
25548
|
i0.ɵɵelementEnd()();
|
|
25019
25549
|
i0.ɵɵelementContainerEnd();
|
|
25020
|
-
i0.ɵɵelementStart(23, "div", 15)(24, "button", 16);
|
|
25021
|
-
i0.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
25022
|
-
i0.ɵɵtext(25);
|
|
25023
|
-
i0.ɵɵpipe(26, "rpxTranslate");
|
|
25024
|
-
i0.ɵɵelementEnd()();
|
|
25025
25550
|
} if (rf & 2) {
|
|
25026
|
-
const
|
|
25551
|
+
const externalUser_r5 = i0.ɵɵreference(17);
|
|
25027
25552
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25028
25553
|
i0.ɵɵadvance(2);
|
|
25029
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25554
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$n, ctx.errorMessages.length > 0));
|
|
25030
25555
|
i0.ɵɵadvance(3);
|
|
25031
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25556
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 12, ctx.updateFlagTitle), " ");
|
|
25032
25557
|
i0.ɵɵadvance(2);
|
|
25033
25558
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25034
25559
|
i0.ɵɵadvance(2);
|
|
25035
25560
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25036
25561
|
i0.ɵɵadvance();
|
|
25037
|
-
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11,
|
|
25562
|
+
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11, 14, ctx.updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL) : i0.ɵɵpipeBind1(12, 16, ctx.updateFlagTitle) + i0.ɵɵpipeBind1(13, 18, " comments"), " ");
|
|
25038
25563
|
i0.ɵɵadvance(4);
|
|
25039
25564
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25040
25565
|
i0.ɵɵadvance();
|
|
25041
|
-
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse",
|
|
25566
|
+
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r5);
|
|
25042
25567
|
i0.ɵɵadvance(5);
|
|
25043
25568
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25044
25569
|
i0.ɵɵadvance();
|
|
25045
25570
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25046
25571
|
i0.ɵɵadvance();
|
|
25047
25572
|
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate);
|
|
25048
|
-
i0.ɵɵadvance(3);
|
|
25049
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Next"), " ");
|
|
25050
25573
|
} }, encapsulation: 2 });
|
|
25051
25574
|
}
|
|
25052
25575
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
25053
25576
|
type: Component,
|
|
25054
|
-
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
|
|
25055
|
-
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
25577
|
+
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>" }]
|
|
25578
|
+
}], () => [{ type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], { formGroup: [{
|
|
25056
25579
|
type: Input
|
|
25057
25580
|
}], displayContextParameter: [{
|
|
25058
25581
|
type: Input
|
|
25059
25582
|
}], caseFlagStateEmitter: [{
|
|
25060
25583
|
type: Output
|
|
25061
25584
|
}] }); })();
|
|
25062
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber:
|
|
25585
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 22 }); })();
|
|
25063
25586
|
|
|
25064
25587
|
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
25065
25588
|
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25066
|
-
i0.ɵɵelementStart(0, "div",
|
|
25589
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
|
|
25067
25590
|
i0.ɵɵtext(2);
|
|
25068
25591
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25069
25592
|
i0.ɵɵelementEnd();
|
|
@@ -25078,7 +25601,7 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
|
|
|
25078
25601
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
|
|
25079
25602
|
} }
|
|
25080
25603
|
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
25081
|
-
i0.ɵɵelementStart(0, "div",
|
|
25604
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
|
|
25082
25605
|
i0.ɵɵtext(2);
|
|
25083
25606
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25084
25607
|
i0.ɵɵelementEnd();
|
|
@@ -25093,7 +25616,7 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
25093
25616
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
|
|
25094
25617
|
} }
|
|
25095
25618
|
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
25096
|
-
i0.ɵɵelementStart(0, "div",
|
|
25619
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
|
|
25097
25620
|
i0.ɵɵtext(2);
|
|
25098
25621
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25099
25622
|
i0.ɵɵelementEnd();
|
|
@@ -25108,7 +25631,7 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
|
|
|
25108
25631
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
25109
25632
|
} }
|
|
25110
25633
|
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
25111
|
-
i0.ɵɵelementStart(0, "div",
|
|
25634
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
|
|
25112
25635
|
i0.ɵɵtext(2);
|
|
25113
25636
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25114
25637
|
i0.ɵɵelementEnd();
|
|
@@ -25122,7 +25645,7 @@ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf
|
|
|
25122
25645
|
i0.ɵɵadvance(2);
|
|
25123
25646
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsWelshCharLimitErrorMessage), " ");
|
|
25124
25647
|
} }
|
|
25125
|
-
class UpdateFlagAddTranslationFormComponent {
|
|
25648
|
+
class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
25126
25649
|
formGroup;
|
|
25127
25650
|
caseFlagStateEmitter = new EventEmitter();
|
|
25128
25651
|
selectedFlag;
|
|
@@ -25196,8 +25719,14 @@ class UpdateFlagAddTranslationFormComponent {
|
|
|
25196
25719
|
});
|
|
25197
25720
|
}
|
|
25198
25721
|
}
|
|
25199
|
-
|
|
25200
|
-
|
|
25722
|
+
next() {
|
|
25723
|
+
this.onNext();
|
|
25724
|
+
if (this.errorMessages.length === 0) {
|
|
25725
|
+
super.next();
|
|
25726
|
+
}
|
|
25727
|
+
}
|
|
25728
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(t) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(t || UpdateFlagAddTranslationFormComponent); }; })();
|
|
25729
|
+
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) {
|
|
25201
25730
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25202
25731
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
25203
25732
|
i0.ɵɵtext(5);
|
|
@@ -25256,78 +25785,71 @@ class UpdateFlagAddTranslationFormComponent {
|
|
|
25256
25785
|
i0.ɵɵpipe(49, "rpxTranslate");
|
|
25257
25786
|
i0.ɵɵelementEnd()()()();
|
|
25258
25787
|
i0.ɵɵelementContainerEnd();
|
|
25259
|
-
i0.ɵɵelementStart(50, "div", 17)(51, "button", 18);
|
|
25260
|
-
i0.ɵɵlistener("click", function UpdateFlagAddTranslationFormComponent_Template_button_click_51_listener() { return ctx.onNext(); });
|
|
25261
|
-
i0.ɵɵtext(52);
|
|
25262
|
-
i0.ɵɵpipe(53, "rpxTranslate");
|
|
25263
|
-
i0.ɵɵelementEnd()();
|
|
25264
25788
|
} if (rf & 2) {
|
|
25265
25789
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25266
25790
|
i0.ɵɵadvance(2);
|
|
25267
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25791
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$m, ctx.errorMessages.length > 0));
|
|
25268
25792
|
i0.ɵɵadvance(3);
|
|
25269
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25793
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, ctx.updateFlagAddTranslationTitle), " ");
|
|
25270
25794
|
i0.ɵɵadvance(3);
|
|
25271
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
25795
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
25272
25796
|
i0.ɵɵadvance(3);
|
|
25273
25797
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25274
25798
|
i0.ɵɵadvance();
|
|
25275
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,
|
|
25799
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
|
|
25276
25800
|
i0.ɵɵadvance(2);
|
|
25277
25801
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
|
|
25278
25802
|
i0.ɵɵadvance();
|
|
25279
25803
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25280
25804
|
i0.ɵɵadvance(3);
|
|
25281
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19,
|
|
25805
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 38, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25282
25806
|
i0.ɵɵadvance(3);
|
|
25283
25807
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25284
25808
|
i0.ɵɵadvance();
|
|
25285
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23,
|
|
25809
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 40, "Other description (Welsh)"));
|
|
25286
25810
|
i0.ɵɵadvance(2);
|
|
25287
25811
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
25288
25812
|
i0.ɵɵadvance();
|
|
25289
25813
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25290
25814
|
i0.ɵɵadvance(3);
|
|
25291
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
25815
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 42, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25292
25816
|
i0.ɵɵadvance(3);
|
|
25293
25817
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25294
25818
|
i0.ɵɵadvance();
|
|
25295
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33,
|
|
25819
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
|
|
25296
25820
|
i0.ɵɵadvance(2);
|
|
25297
25821
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
25298
25822
|
i0.ɵɵadvance();
|
|
25299
25823
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
25300
25824
|
i0.ɵɵadvance(3);
|
|
25301
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39,
|
|
25825
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25302
25826
|
i0.ɵɵadvance(3);
|
|
25303
25827
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25304
25828
|
i0.ɵɵadvance();
|
|
25305
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43,
|
|
25829
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
|
|
25306
25830
|
i0.ɵɵadvance(2);
|
|
25307
25831
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
25308
25832
|
i0.ɵɵadvance();
|
|
25309
25833
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25310
25834
|
i0.ɵɵadvance(3);
|
|
25311
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49,
|
|
25312
|
-
i0.ɵɵadvance(4);
|
|
25313
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 53, "Next"), " ");
|
|
25835
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25314
25836
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25315
25837
|
}
|
|
25316
25838
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
25317
25839
|
type: Component,
|
|
25318
|
-
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
|
|
25840
|
+
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>" }]
|
|
25319
25841
|
}], null, { formGroup: [{
|
|
25320
25842
|
type: Input
|
|
25321
25843
|
}], caseFlagStateEmitter: [{
|
|
25322
25844
|
type: Output
|
|
25323
25845
|
}] }); })();
|
|
25324
|
-
(() => { (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:
|
|
25846
|
+
(() => { (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: 18 }); })();
|
|
25325
25847
|
|
|
25326
25848
|
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
25327
25849
|
function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
25328
|
-
i0.ɵɵelementStart(0, "div",
|
|
25329
|
-
i0.ɵɵelement(1, "input",
|
|
25330
|
-
i0.ɵɵelementStart(2, "label",
|
|
25850
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
25851
|
+
i0.ɵɵelement(1, "input", 14);
|
|
25852
|
+
i0.ɵɵelementStart(2, "label", 15);
|
|
25331
25853
|
i0.ɵɵtext(3);
|
|
25332
25854
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25333
25855
|
i0.ɵɵelementEnd()();
|
|
@@ -25344,7 +25866,7 @@ function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
25344
25866
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r2.caseFlagStatusEnum[status_r1]), " ");
|
|
25345
25867
|
} }
|
|
25346
25868
|
function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
25347
|
-
i0.ɵɵelementStart(0, "div",
|
|
25869
|
+
i0.ɵɵelementStart(0, "div", 16)(1, "span", 17);
|
|
25348
25870
|
i0.ɵɵtext(2);
|
|
25349
25871
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25350
25872
|
i0.ɵɵelementEnd();
|
|
@@ -25359,7 +25881,7 @@ function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
25359
25881
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonNotEnteredErrorMessage), " ");
|
|
25360
25882
|
} }
|
|
25361
25883
|
function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25362
|
-
i0.ɵɵelementStart(0, "div",
|
|
25884
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 17);
|
|
25363
25885
|
i0.ɵɵtext(2);
|
|
25364
25886
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25365
25887
|
i0.ɵɵelementEnd();
|
|
@@ -25373,7 +25895,7 @@ function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
25373
25895
|
i0.ɵɵadvance(2);
|
|
25374
25896
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonCharLimitErrorMessage), " ");
|
|
25375
25897
|
} }
|
|
25376
|
-
class ConfirmFlagStatusComponent {
|
|
25898
|
+
class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
25377
25899
|
formGroup;
|
|
25378
25900
|
defaultStatus;
|
|
25379
25901
|
caseFlagStateEmitter = new EventEmitter();
|
|
@@ -25402,6 +25924,12 @@ class ConfirmFlagStatusComponent {
|
|
|
25402
25924
|
// Return case flag field state and error messages to the parent
|
|
25403
25925
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
|
|
25404
25926
|
}
|
|
25927
|
+
next() {
|
|
25928
|
+
this.onNext();
|
|
25929
|
+
if (this.errorMessages.length === 0) {
|
|
25930
|
+
super.next();
|
|
25931
|
+
}
|
|
25932
|
+
}
|
|
25405
25933
|
validateTextEntry() {
|
|
25406
25934
|
this.statusReasonNotEnteredErrorMessage = null;
|
|
25407
25935
|
this.statusReasonCharLimitErrorMessage = null;
|
|
@@ -25425,8 +25953,8 @@ class ConfirmFlagStatusComponent {
|
|
|
25425
25953
|
});
|
|
25426
25954
|
}
|
|
25427
25955
|
}
|
|
25428
|
-
static ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return
|
|
25429
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls:
|
|
25956
|
+
static ɵfac = /*@__PURE__*/ (() => { let ɵConfirmFlagStatusComponent_BaseFactory; return function ConfirmFlagStatusComponent_Factory(t) { return (ɵConfirmFlagStatusComponent_BaseFactory || (ɵConfirmFlagStatusComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ConfirmFlagStatusComponent)))(t || ConfirmFlagStatusComponent); }; })();
|
|
25957
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 19, 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-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) {
|
|
25430
25958
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25431
25959
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "fieldset", 3)(4, "legend", 4)(5, "h1", 5);
|
|
25432
25960
|
i0.ɵɵtext(6);
|
|
@@ -25446,21 +25974,16 @@ class ConfirmFlagStatusComponent {
|
|
|
25446
25974
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
25447
25975
|
i0.ɵɵelementEnd()()();
|
|
25448
25976
|
i0.ɵɵelementContainerEnd();
|
|
25449
|
-
i0.ɵɵelementStart(19, "div", 13)(20, "button", 14);
|
|
25450
|
-
i0.ɵɵlistener("click", function ConfirmFlagStatusComponent_Template_button_click_20_listener() { return ctx.onNext(); });
|
|
25451
|
-
i0.ɵɵtext(21);
|
|
25452
|
-
i0.ɵɵpipe(22, "rpxTranslate");
|
|
25453
|
-
i0.ɵɵelementEnd()();
|
|
25454
25977
|
} if (rf & 2) {
|
|
25455
25978
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25456
25979
|
i0.ɵɵadvance(2);
|
|
25457
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25980
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c0$l, ctx.errorMessages.length > 0));
|
|
25458
25981
|
i0.ɵɵadvance(4);
|
|
25459
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
25982
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 11, ctx.confirmFlagStatusTitle), " ");
|
|
25460
25983
|
i0.ɵɵadvance(3);
|
|
25461
25984
|
i0.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
|
|
25462
25985
|
i0.ɵɵadvance(2);
|
|
25463
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12,
|
|
25986
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 13, ctx.statusReasonHint), " ");
|
|
25464
25987
|
i0.ɵɵadvance(2);
|
|
25465
25988
|
i0.ɵɵproperty("ngIf", ctx.statusReasonNotEnteredErrorMessage);
|
|
25466
25989
|
i0.ɵɵadvance();
|
|
@@ -25468,14 +25991,12 @@ class ConfirmFlagStatusComponent {
|
|
|
25468
25991
|
i0.ɵɵadvance();
|
|
25469
25992
|
i0.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
|
|
25470
25993
|
i0.ɵɵadvance(2);
|
|
25471
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18,
|
|
25472
|
-
i0.ɵɵadvance(4);
|
|
25473
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 18, "Next"));
|
|
25994
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 15, ctx.statusReasonCharLimitInfo), " ");
|
|
25474
25995
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25475
25996
|
}
|
|
25476
25997
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
|
|
25477
25998
|
type: Component,
|
|
25478
|
-
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
|
|
25999
|
+
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>" }]
|
|
25479
26000
|
}], null, { formGroup: [{
|
|
25480
26001
|
type: Input
|
|
25481
26002
|
}], defaultStatus: [{
|
|
@@ -25483,7 +26004,7 @@ class ConfirmFlagStatusComponent {
|
|
|
25483
26004
|
}], caseFlagStateEmitter: [{
|
|
25484
26005
|
type: Output
|
|
25485
26006
|
}] }); })();
|
|
25486
|
-
(() => { (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:
|
|
26007
|
+
(() => { (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: 18 }); })();
|
|
25487
26008
|
|
|
25488
26009
|
class FlagFieldDisplayPipe extends AsyncPipe {
|
|
25489
26010
|
translationService;
|
|
@@ -27299,7 +27820,7 @@ class CcdPageFieldsPipe {
|
|
|
27299
27820
|
const control = dataFormGroup.controls['data'].get(key);
|
|
27300
27821
|
return control['caseField'];
|
|
27301
27822
|
}).filter(field => {
|
|
27302
|
-
return !!page.case_fields.find(pcf => pcf.id === field.id);
|
|
27823
|
+
return field && !!page.case_fields.find(pcf => pcf.id === field.id);
|
|
27303
27824
|
}).sort((a, b) => a.order - b.order);
|
|
27304
27825
|
const rawValue = dataFormGroup.value;
|
|
27305
27826
|
const value = page.case_fields.reduce((acc, field) => {
|
|
@@ -28831,19 +29352,6 @@ function CaseEditSubmitComponent_ccd_case_event_completion_13_Template(rf, ctx)
|
|
|
28831
29352
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
28832
29353
|
i0.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
28833
29354
|
} }
|
|
28834
|
-
function CaseEditSubmitComponent_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
28835
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
28836
|
-
i0.ɵɵelementStart(0, "button", 50);
|
|
28837
|
-
i0.ɵɵlistener("click", function CaseEditSubmitComponent_button_15_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.previous()); });
|
|
28838
|
-
i0.ɵɵtext(1);
|
|
28839
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
28840
|
-
i0.ɵɵelementEnd();
|
|
28841
|
-
} if (rf & 2) {
|
|
28842
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
28843
|
-
i0.ɵɵproperty("disabled", !ctx_r1.hasPrevious() || ctx_r1.caseEdit.isSubmitting);
|
|
28844
|
-
i0.ɵɵadvance();
|
|
28845
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
28846
|
-
} }
|
|
28847
29355
|
// @dynamic
|
|
28848
29356
|
class CaseEditSubmitComponent {
|
|
28849
29357
|
caseEdit;
|
|
@@ -28852,7 +29360,10 @@ class CaseEditSubmitComponent {
|
|
|
28852
29360
|
route;
|
|
28853
29361
|
orderService;
|
|
28854
29362
|
profileNotifier;
|
|
29363
|
+
multipageComponentStateService;
|
|
28855
29364
|
formValidatorsService;
|
|
29365
|
+
caseFlagStateService;
|
|
29366
|
+
linkedCasesService;
|
|
28856
29367
|
eventTrigger;
|
|
28857
29368
|
editForm;
|
|
28858
29369
|
triggerText;
|
|
@@ -28888,14 +29399,17 @@ class CaseEditSubmitComponent {
|
|
|
28888
29399
|
// not been disabled.
|
|
28889
29400
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
28890
29401
|
}
|
|
28891
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
|
|
29402
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, multipageComponentStateService, formValidatorsService, caseFlagStateService, linkedCasesService) {
|
|
28892
29403
|
this.caseEdit = caseEdit;
|
|
28893
29404
|
this.fieldsUtils = fieldsUtils;
|
|
28894
29405
|
this.caseFieldService = caseFieldService;
|
|
28895
29406
|
this.route = route;
|
|
28896
29407
|
this.orderService = orderService;
|
|
28897
29408
|
this.profileNotifier = profileNotifier;
|
|
29409
|
+
this.multipageComponentStateService = multipageComponentStateService;
|
|
28898
29410
|
this.formValidatorsService = formValidatorsService;
|
|
29411
|
+
this.caseFlagStateService = caseFlagStateService;
|
|
29412
|
+
this.linkedCasesService = linkedCasesService;
|
|
28899
29413
|
}
|
|
28900
29414
|
ngOnInit() {
|
|
28901
29415
|
this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
|
|
@@ -28976,6 +29490,9 @@ class CaseEditSubmitComponent {
|
|
|
28976
29490
|
return cloneField;
|
|
28977
29491
|
}
|
|
28978
29492
|
cancel() {
|
|
29493
|
+
if (this.caseEdit.isLinkedCasesSubmission) {
|
|
29494
|
+
this.linkedCasesService.resetLinkedCaseData();
|
|
29495
|
+
}
|
|
28979
29496
|
if (this.eventTrigger.can_save_draft) {
|
|
28980
29497
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
28981
29498
|
this.caseEdit.cancelled.emit({ status: CaseEditPageComponent.RESUMED_FORM_DISCARD });
|
|
@@ -29040,6 +29557,13 @@ class CaseEditSubmitComponent {
|
|
|
29040
29557
|
return lastPage;
|
|
29041
29558
|
}
|
|
29042
29559
|
previous() {
|
|
29560
|
+
if (this.caseEdit.isCaseFlagSubmission) {
|
|
29561
|
+
// if we are in the caseflag journey we need to store the last page index so that the previous button on CYA will take to correct page
|
|
29562
|
+
this.caseFlagStateService.fieldStateToNavigate = this.caseFlagStateService.lastPageFieldState;
|
|
29563
|
+
}
|
|
29564
|
+
if (this.caseEdit.isLinkedCasesSubmission) {
|
|
29565
|
+
this.linkedCasesService.cameFromFinalStep = true;
|
|
29566
|
+
}
|
|
29043
29567
|
/* istanbul ignore else */
|
|
29044
29568
|
if (this.hasPrevious()) {
|
|
29045
29569
|
this.navigateToPage(this.getLastPageShown().id);
|
|
@@ -29080,8 +29604,8 @@ class CaseEditSubmitComponent {
|
|
|
29080
29604
|
}
|
|
29081
29605
|
return 'Cancel';
|
|
29082
29606
|
}
|
|
29083
|
-
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)); };
|
|
29084
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls:
|
|
29607
|
+
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(MultipageComponentStateService), i0.ɵɵdirectiveInject(FormValidatorsService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
29608
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 25, vars: 24, 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"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["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"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29085
29609
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29086
29610
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
29087
29611
|
i0.ɵɵtext(2);
|
|
@@ -29095,24 +29619,27 @@ class CaseEditSubmitComponent {
|
|
|
29095
29619
|
i0.ɵɵelementStart(11, "form", 6);
|
|
29096
29620
|
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.submit()); });
|
|
29097
29621
|
i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_12_Template, 4, 3, "div", 7)(13, CaseEditSubmitComponent_ccd_case_event_completion_13_Template, 1, 1, "ccd-case-event-completion", 8);
|
|
29098
|
-
i0.ɵɵelementStart(14, "div", 9);
|
|
29099
|
-
i0.ɵɵ
|
|
29100
|
-
i0.ɵɵ
|
|
29101
|
-
i0.ɵɵ
|
|
29102
|
-
i0.ɵɵ
|
|
29622
|
+
i0.ɵɵelementStart(14, "div", 9)(15, "button", 10);
|
|
29623
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.previous()); });
|
|
29624
|
+
i0.ɵɵtext(16);
|
|
29625
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
29626
|
+
i0.ɵɵelementEnd();
|
|
29627
|
+
i0.ɵɵelementStart(18, "button", 11);
|
|
29628
|
+
i0.ɵɵtext(19);
|
|
29629
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
29103
29630
|
i0.ɵɵelementEnd()();
|
|
29104
|
-
i0.ɵɵelementStart(
|
|
29105
|
-
i0.ɵɵlistener("click", function
|
|
29106
|
-
i0.ɵɵtext(
|
|
29107
|
-
i0.ɵɵpipe(
|
|
29631
|
+
i0.ɵɵelementStart(21, "p", 12)(22, "a", 13);
|
|
29632
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_a_click_22_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
|
|
29633
|
+
i0.ɵɵtext(23);
|
|
29634
|
+
i0.ɵɵpipe(24, "rpxTranslate");
|
|
29108
29635
|
i0.ɵɵelementEnd()()()();
|
|
29109
29636
|
} if (rf & 2) {
|
|
29110
|
-
const
|
|
29111
|
-
const
|
|
29637
|
+
const titleBlock_r8 = i0.ɵɵreference(6);
|
|
29638
|
+
const idBlock_r9 = i0.ɵɵreference(8);
|
|
29112
29639
|
i0.ɵɵadvance(2);
|
|
29113
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
29640
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 16, ctx.eventTrigger.name));
|
|
29114
29641
|
i0.ɵɵadvance(2);
|
|
29115
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
29642
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r8)("ngIfElse", idBlock_r9);
|
|
29116
29643
|
i0.ɵɵadvance(5);
|
|
29117
29644
|
i0.ɵɵproperty("error", ctx.caseEdit.error);
|
|
29118
29645
|
i0.ɵɵadvance();
|
|
@@ -29124,22 +29651,24 @@ class CaseEditSubmitComponent {
|
|
|
29124
29651
|
i0.ɵɵadvance();
|
|
29125
29652
|
i0.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
29126
29653
|
i0.ɵɵadvance(2);
|
|
29127
|
-
i0.ɵɵproperty("
|
|
29654
|
+
i0.ɵɵproperty("disabled", !ctx.hasPrevious() || ctx.caseEdit.isSubmitting);
|
|
29128
29655
|
i0.ɵɵadvance();
|
|
29656
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, "Previous"), " ");
|
|
29657
|
+
i0.ɵɵadvance(2);
|
|
29129
29658
|
i0.ɵɵproperty("disabled", ctx.isDisabled);
|
|
29130
29659
|
i0.ɵɵadvance();
|
|
29131
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
29660
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, ctx.triggerText), " ");
|
|
29132
29661
|
i0.ɵɵadvance(3);
|
|
29133
29662
|
i0.ɵɵclassProp("disabled", ctx.caseEdit.isSubmitting);
|
|
29134
29663
|
i0.ɵɵadvance();
|
|
29135
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
29664
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(24, 22, ctx.getCancelText()));
|
|
29136
29665
|
} }, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.no-bottom-border[_ngcontent-%COMP%]{border-bottom:none}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
29137
29666
|
}
|
|
29138
29667
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29139
29668
|
type: Component,
|
|
29140
|
-
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
|
|
29141
|
-
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }], null); })();
|
|
29142
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber:
|
|
29669
|
+
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 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"] }]
|
|
29670
|
+
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: MultipageComponentStateService }, { type: FormValidatorsService }, { type: CaseFlagStateService }, { type: LinkedCasesService }], null); })();
|
|
29671
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 30 }); })();
|
|
29143
29672
|
|
|
29144
29673
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
29145
29674
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -29387,7 +29916,8 @@ class CaseEditorModule {
|
|
|
29387
29916
|
SessionStorageService,
|
|
29388
29917
|
EventCompletionStateMachineService,
|
|
29389
29918
|
CaseFlagStateService,
|
|
29390
|
-
ValidPageListCaseFieldsService
|
|
29919
|
+
ValidPageListCaseFieldsService,
|
|
29920
|
+
MultipageComponentStateService
|
|
29391
29921
|
], imports: [CommonModule,
|
|
29392
29922
|
RouterModule,
|
|
29393
29923
|
FormsModule,
|
|
@@ -29469,7 +29999,8 @@ class CaseEditorModule {
|
|
|
29469
29999
|
SessionStorageService,
|
|
29470
30000
|
EventCompletionStateMachineService,
|
|
29471
30001
|
CaseFlagStateService,
|
|
29472
|
-
ValidPageListCaseFieldsService
|
|
30002
|
+
ValidPageListCaseFieldsService,
|
|
30003
|
+
MultipageComponentStateService
|
|
29473
30004
|
]
|
|
29474
30005
|
}]
|
|
29475
30006
|
}], null, null); })();
|
|
@@ -29501,7 +30032,7 @@ class CaseEditorModule {
|
|
|
29501
30032
|
CallbackErrorsComponent] }); })();
|
|
29502
30033
|
i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29503
30034
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i5.NgForOf, i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
29504
|
-
CaseEditGenericErrorsComponent]; }, function () { return [
|
|
30035
|
+
CaseEditGenericErrorsComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29505
30036
|
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]; });
|
|
29506
30037
|
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]; });
|
|
29507
30038
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i5.NgIf, CaseEditComponent]; }, []);
|
|
@@ -31639,6 +32170,7 @@ class CaseEventTriggerComponent {
|
|
|
31639
32170
|
activitySubscription;
|
|
31640
32171
|
caseSubscription;
|
|
31641
32172
|
parentUrl;
|
|
32173
|
+
routerCurrentNavigation;
|
|
31642
32174
|
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
31643
32175
|
this.ngZone = ngZone;
|
|
31644
32176
|
this.casesService = casesService;
|
|
@@ -31649,6 +32181,7 @@ class CaseEventTriggerComponent {
|
|
|
31649
32181
|
this.caseReferencePipe = caseReferencePipe;
|
|
31650
32182
|
this.activityPollingService = activityPollingService;
|
|
31651
32183
|
this.sessionStorageService = sessionStorageService;
|
|
32184
|
+
this.routerCurrentNavigation = this.router.getCurrentNavigation();
|
|
31652
32185
|
}
|
|
31653
32186
|
ngOnInit() {
|
|
31654
32187
|
if (this.route.snapshot.data.case) {
|
|
@@ -31727,8 +32260,16 @@ class CaseEventTriggerComponent {
|
|
|
31727
32260
|
});
|
|
31728
32261
|
}
|
|
31729
32262
|
cancel() {
|
|
31730
|
-
|
|
31731
|
-
|
|
32263
|
+
const previousUrl = this.routerCurrentNavigation?.previousNavigation?.finalUrl?.toString();
|
|
32264
|
+
if (previousUrl) {
|
|
32265
|
+
if (previousUrl.indexOf('#') > -1) {
|
|
32266
|
+
const url = previousUrl.split('#')[0];
|
|
32267
|
+
const fragment = previousUrl.split('#')[1].replace('%20', ' ');
|
|
32268
|
+
return this.router.navigate([url], { fragment: fragment });
|
|
32269
|
+
}
|
|
32270
|
+
else {
|
|
32271
|
+
return this.router.navigate([previousUrl]);
|
|
32272
|
+
}
|
|
31732
32273
|
}
|
|
31733
32274
|
else {
|
|
31734
32275
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -37266,5 +37807,5 @@ class TestRouteSnapshotBuilder {
|
|
|
37266
37807
|
* Generated bundle index. Do not edit.
|
|
37267
37808
|
*/
|
|
37268
37809
|
|
|
37269
|
-
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 };
|
|
37810
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, 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, MultipageComponentStateService, 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 };
|
|
37270
37811
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|