@hmcts/ccd-case-ui-toolkit 7.0.63-ungrey-back-button → 7.0.63
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 +33 -70
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +37 -49
- package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +4 -7
- package/esm2022/lib/shared/components/case-editor/services/case-flag-state.service.mjs +1 -3
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +4 -14
- package/esm2022/lib/shared/components/palette/base-field/index.mjs +1 -3
- package/esm2022/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +21 -21
- package/esm2022/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +22 -22
- package/esm2022/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +28 -28
- package/esm2022/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +29 -32
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +28 -21
- package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +63 -128
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +28 -28
- package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +105 -107
- package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +31 -107
- package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +18 -27
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +7 -19
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +45 -57
- package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +9 -13
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +39 -45
- package/esm2022/lib/shared/components/palette/linked-cases/services/linked-cases.service.mjs +1 -11
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +23 -69
- package/esm2022/lib/shared/domain/index.mjs +1 -2
- package/esm2022/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +2 -2
- package/esm2022/lib/shared/services/index.mjs +1 -2
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +707 -1248
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +3 -12
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +2 -7
- 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 +0 -1
- 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 +1 -2
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/index.d.ts +0 -2
- package/lib/shared/components/palette/base-field/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +3 -5
- package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +3 -6
- package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +5 -12
- package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts +2 -4
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +3 -6
- package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +5 -10
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts +2 -6
- package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts +2 -5
- package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts +0 -4
- 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 +3 -6
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +0 -1
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/services/index.d.ts +0 -1
- package/lib/shared/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2022/lib/shared/components/palette/base-field/abstract-field-write-journey.component.mjs +0 -92
- package/esm2022/lib/shared/components/palette/base-field/abstract-journey.component.mjs +0 -82
- package/esm2022/lib/shared/domain/journey/index.mjs +0 -3
- package/esm2022/lib/shared/domain/journey/journey-instigator.model.mjs +0 -2
- package/esm2022/lib/shared/domain/journey/journey.model.mjs +0 -2
- package/esm2022/lib/shared/services/journey/index.mjs +0 -2
- package/esm2022/lib/shared/services/journey/multipage-component-state.service.mjs +0 -114
- package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts +0 -30
- package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts.map +0 -1
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts +0 -27
- package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts.map +0 -1
- package/lib/shared/domain/journey/index.d.ts +0 -3
- package/lib/shared/domain/journey/index.d.ts.map +0 -1
- package/lib/shared/domain/journey/journey-instigator.model.d.ts +0 -5
- package/lib/shared/domain/journey/journey-instigator.model.d.ts.map +0 -1
- package/lib/shared/domain/journey/journey.model.d.ts +0 -16
- package/lib/shared/domain/journey/journey.model.d.ts.map +0 -1
- package/lib/shared/services/journey/index.d.ts +0 -2
- package/lib/shared/services/journey/index.d.ts.map +0 -1
- package/lib/shared/services/journey/multipage-component-state.service.d.ts +0 -25
- package/lib/shared/services/journey/multipage-component-state.service.d.ts.map +0 -1
|
@@ -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, fromEvent, forkJoin, 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$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
62
62
|
const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
63
63
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
64
64
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
@@ -136,7 +136,7 @@ class FooterComponent {
|
|
|
136
136
|
workhours;
|
|
137
137
|
static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
138
138
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
-
i0.ɵɵprojectionDef(_c0$
|
|
139
|
+
i0.ɵɵprojectionDef(_c0$14);
|
|
140
140
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
141
141
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
142
142
|
i0.ɵɵelementEnd()();
|
|
@@ -163,7 +163,7 @@ class FooterComponent {
|
|
|
163
163
|
}] }); })();
|
|
164
164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
|
|
165
165
|
|
|
166
|
-
const _c0$
|
|
166
|
+
const _c0$13 = [[["", "headerNavigation", ""]]];
|
|
167
167
|
const _c1$t = ["[headerNavigation]"];
|
|
168
168
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
169
169
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
@@ -207,7 +207,7 @@ class HeaderBarComponent {
|
|
|
207
207
|
}
|
|
208
208
|
static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
209
209
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
210
|
-
i0.ɵɵprojectionDef(_c0$
|
|
210
|
+
i0.ɵɵprojectionDef(_c0$13);
|
|
211
211
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
212
212
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
213
213
|
i0.ɵɵelementEnd();
|
|
@@ -257,13 +257,13 @@ class HeaderBarComponent {
|
|
|
257
257
|
}] }); })();
|
|
258
258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
|
|
259
259
|
|
|
260
|
-
const _c0$
|
|
260
|
+
const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
261
|
const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
262
262
|
class NavigationComponent {
|
|
263
263
|
isSolicitor;
|
|
264
264
|
static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
265
265
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
266
|
-
i0.ɵɵprojectionDef(_c0$
|
|
266
|
+
i0.ɵɵprojectionDef(_c0$12);
|
|
267
267
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
268
268
|
i0.ɵɵprojection(2);
|
|
269
269
|
i0.ɵɵprojection(3, 1);
|
|
@@ -382,12 +382,12 @@ class HeadersModule {
|
|
|
382
382
|
}], null, null); })();
|
|
383
383
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
384
384
|
|
|
385
|
-
const _c0$
|
|
385
|
+
const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
386
386
|
const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
387
387
|
class BodyComponent {
|
|
388
388
|
static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
389
389
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
390
|
-
i0.ɵɵprojectionDef(_c0$
|
|
390
|
+
i0.ɵɵprojectionDef(_c0$11);
|
|
391
391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
392
392
|
i0.ɵɵprojection(1);
|
|
393
393
|
i0.ɵɵprojection(2, 1);
|
|
@@ -401,7 +401,7 @@ class BodyComponent {
|
|
|
401
401
|
}], null, null); })();
|
|
402
402
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 9 }); })();
|
|
403
403
|
|
|
404
|
-
const _c0$
|
|
404
|
+
const _c0$10 = a0 => ({ "govuk-input--error": a0 });
|
|
405
405
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
406
406
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
407
407
|
i0.ɵɵelementStart(0, "div", 15)(1, "label", 8);
|
|
@@ -418,7 +418,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
418
418
|
i0.ɵɵadvance();
|
|
419
419
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Hour"));
|
|
420
420
|
i0.ɵɵadvance(2);
|
|
421
|
-
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
421
|
+
i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
422
422
|
} }
|
|
423
423
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
424
424
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -436,7 +436,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
436
436
|
i0.ɵɵadvance();
|
|
437
437
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Minute"));
|
|
438
438
|
i0.ɵɵadvance(2);
|
|
439
|
-
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
439
|
+
i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
440
440
|
} }
|
|
441
441
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
442
442
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -454,7 +454,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
454
454
|
i0.ɵɵadvance();
|
|
455
455
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Second"));
|
|
456
456
|
i0.ɵɵadvance(2);
|
|
457
|
-
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
457
|
+
i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
|
|
458
458
|
} }
|
|
459
459
|
class DateInputComponent {
|
|
460
460
|
id;
|
|
@@ -689,19 +689,19 @@ class DateInputComponent {
|
|
|
689
689
|
i0.ɵɵadvance();
|
|
690
690
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Day"));
|
|
691
691
|
i0.ɵɵadvance(2);
|
|
692
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$
|
|
692
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$10, ctx.isInvalid));
|
|
693
693
|
i0.ɵɵadvance(3);
|
|
694
694
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
695
695
|
i0.ɵɵadvance();
|
|
696
696
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Month"));
|
|
697
697
|
i0.ɵɵadvance(2);
|
|
698
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$
|
|
698
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$10, ctx.isInvalid));
|
|
699
699
|
i0.ɵɵadvance(3);
|
|
700
700
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
701
701
|
i0.ɵɵadvance();
|
|
702
702
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 25, "Year"));
|
|
703
703
|
i0.ɵɵadvance(2);
|
|
704
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$
|
|
704
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$10, ctx.isInvalid));
|
|
705
705
|
i0.ɵɵadvance(2);
|
|
706
706
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
707
707
|
i0.ɵɵadvance();
|
|
@@ -737,7 +737,7 @@ class DateInputComponent {
|
|
|
737
737
|
}] }); })();
|
|
738
738
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 20 }); })();
|
|
739
739
|
|
|
740
|
-
const _c0
|
|
740
|
+
const _c0$$ = ["*"];
|
|
741
741
|
function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
742
742
|
i0.ɵɵelementContainerStart(0);
|
|
743
743
|
i0.ɵɵnamespaceSVG();
|
|
@@ -787,7 +787,7 @@ class AlertComponent {
|
|
|
787
787
|
showIcon = true;
|
|
788
788
|
alertMessageType = AlertMessageType;
|
|
789
789
|
static ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
790
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0
|
|
790
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$$, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
791
791
|
i0.ɵɵprojectionDef();
|
|
792
792
|
i0.ɵɵelementStart(0, "div", 0);
|
|
793
793
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1000,14 +1000,14 @@ class NotificationBannerComponent {
|
|
|
1000
1000
|
}] }); })();
|
|
1001
1001
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
|
|
1002
1002
|
|
|
1003
|
-
const _c0$
|
|
1003
|
+
const _c0$_ = ["*"];
|
|
1004
1004
|
const _c1$q = a0 => ({ "js-hidden": a0 });
|
|
1005
1005
|
class TabComponent {
|
|
1006
1006
|
id;
|
|
1007
1007
|
title;
|
|
1008
1008
|
selected;
|
|
1009
1009
|
static ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1010
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$
|
|
1010
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$_, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1011
1011
|
i0.ɵɵprojectionDef();
|
|
1012
1012
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1013
1013
|
i0.ɵɵprojection(1);
|
|
@@ -1029,7 +1029,7 @@ class TabComponent {
|
|
|
1029
1029
|
}] }); })();
|
|
1030
1030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
|
|
1031
1031
|
|
|
1032
|
-
const _c0
|
|
1032
|
+
const _c0$Z = ["tab"];
|
|
1033
1033
|
const _c1$p = ["*"];
|
|
1034
1034
|
const _c2$4 = () => ["."];
|
|
1035
1035
|
const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
@@ -1076,7 +1076,7 @@ class TabsComponent {
|
|
|
1076
1076
|
let _t;
|
|
1077
1077
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1078
1078
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1079
|
-
i0.ɵɵviewQuery(_c0
|
|
1079
|
+
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
1080
1080
|
} if (rf & 2) {
|
|
1081
1081
|
let _t;
|
|
1082
1082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1135,7 +1135,7 @@ class TabsModule {
|
|
|
1135
1135
|
RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
|
|
1136
1136
|
TabComponent] }); })();
|
|
1137
1137
|
|
|
1138
|
-
const _c0$
|
|
1138
|
+
const _c0$Y = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
|
|
1139
1139
|
class ActivityBannerComponent {
|
|
1140
1140
|
bannerType;
|
|
1141
1141
|
description;
|
|
@@ -1154,7 +1154,7 @@ class ActivityBannerComponent {
|
|
|
1154
1154
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
1155
1155
|
i0.ɵɵelementEnd()();
|
|
1156
1156
|
} if (rf & 2) {
|
|
1157
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$
|
|
1157
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$Y, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1158
1158
|
i0.ɵɵadvance(2);
|
|
1159
1159
|
i0.ɵɵpropertyInterpolate("alt", i0.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1160
1160
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -7053,118 +7053,6 @@ 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
|
-
|
|
7168
7056
|
class JurisdictionService {
|
|
7169
7057
|
httpService;
|
|
7170
7058
|
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
@@ -10188,149 +10076,6 @@ function initDialog() {
|
|
|
10188
10076
|
return dialogConfig;
|
|
10189
10077
|
}
|
|
10190
10078
|
|
|
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
|
-
|
|
10334
10079
|
function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) { if (rf & 1) {
|
|
10335
10080
|
i0.ɵɵelementStart(0, "h1", 11);
|
|
10336
10081
|
i0.ɵɵtext(1);
|
|
@@ -10447,37 +10192,28 @@ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10447
10192
|
i0.ɵɵadvance(2);
|
|
10448
10193
|
i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol2Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields);
|
|
10449
10194
|
} }
|
|
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
|
-
} }
|
|
10463
10195
|
function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
10464
10196
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
10465
10197
|
i0.ɵɵelementStart(0, "form", 22);
|
|
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.
|
|
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.submit()); });
|
|
10467
10199
|
i0.ɵɵelementStart(1, "fieldset", 23);
|
|
10468
10200
|
i0.ɵɵelement(2, "legend", 24);
|
|
10469
10201
|
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);
|
|
10470
10202
|
i0.ɵɵelementEnd();
|
|
10471
|
-
i0.ɵɵelementStart(5, "div", 27);
|
|
10472
|
-
i0.ɵɵ
|
|
10473
|
-
i0.ɵɵ
|
|
10203
|
+
i0.ɵɵelementStart(5, "div", 27)(6, "button", 28);
|
|
10204
|
+
i0.ɵɵpipe(7, "async");
|
|
10205
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
|
|
10474
10206
|
i0.ɵɵtext(8);
|
|
10475
10207
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
10208
|
+
i0.ɵɵelementEnd();
|
|
10209
|
+
i0.ɵɵelementStart(10, "button", 29);
|
|
10210
|
+
i0.ɵɵtext(11);
|
|
10211
|
+
i0.ɵɵpipe(12, "rpxTranslate");
|
|
10476
10212
|
i0.ɵɵelementEnd()();
|
|
10477
|
-
i0.ɵɵelementStart(
|
|
10478
|
-
i0.ɵɵlistener("click", function
|
|
10479
|
-
i0.ɵɵtext(
|
|
10480
|
-
i0.ɵɵpipe(
|
|
10213
|
+
i0.ɵɵelementStart(13, "p", 30)(14, "a", 31);
|
|
10214
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_14_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
|
|
10215
|
+
i0.ɵɵtext(15);
|
|
10216
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
10481
10217
|
i0.ɵɵelementEnd()()();
|
|
10482
10218
|
} if (rf & 2) {
|
|
10483
10219
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10487,18 +10223,20 @@ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10487
10223
|
i0.ɵɵadvance();
|
|
10488
10224
|
i0.ɵɵproperty("ngIf", ctx_r1.currentPage.isMultiColumn());
|
|
10489
10225
|
i0.ɵɵadvance(2);
|
|
10490
|
-
i0.ɵɵproperty("
|
|
10491
|
-
i0.ɵɵadvance();
|
|
10226
|
+
i0.ɵɵproperty("disabled", !i0.ɵɵpipeBind1(7, 8, ctx_r1.hasPreviousPage$));
|
|
10227
|
+
i0.ɵɵadvance(2);
|
|
10228
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "Previous"), " ");
|
|
10229
|
+
i0.ɵɵadvance(2);
|
|
10492
10230
|
i0.ɵɵproperty("disabled", ctx_r1.submitting());
|
|
10493
10231
|
i0.ɵɵadvance();
|
|
10494
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10232
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, ctx_r1.triggerText));
|
|
10495
10233
|
i0.ɵɵadvance(4);
|
|
10496
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10234
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 14, ctx_r1.getCancelText()));
|
|
10497
10235
|
} }
|
|
10498
10236
|
function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
|
|
10499
|
-
const
|
|
10500
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
10501
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
10237
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
10238
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 38);
|
|
10239
|
+
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
|
|
10502
10240
|
i0.ɵɵelementEnd();
|
|
10503
10241
|
} if (rf & 2) {
|
|
10504
10242
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10516,9 +10254,7 @@ class CaseEditPageComponent {
|
|
|
10516
10254
|
caseEditDataService;
|
|
10517
10255
|
loadingService;
|
|
10518
10256
|
validPageListCaseFieldsService;
|
|
10519
|
-
multipageComponentStateService;
|
|
10520
10257
|
addressService;
|
|
10521
|
-
linkedCasesService;
|
|
10522
10258
|
static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
10523
10259
|
static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
10524
10260
|
static NEW_FORM_SAVE = 'NEW_FORM_CHANGED_SAVE';
|
|
@@ -10559,7 +10295,7 @@ class CaseEditPageComponent {
|
|
|
10559
10295
|
topContainer.focus();
|
|
10560
10296
|
}
|
|
10561
10297
|
}
|
|
10562
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService,
|
|
10298
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, addressService) {
|
|
10563
10299
|
this.caseEdit = caseEdit;
|
|
10564
10300
|
this.route = route;
|
|
10565
10301
|
this.formValueService = formValueService;
|
|
@@ -10571,27 +10307,7 @@ class CaseEditPageComponent {
|
|
|
10571
10307
|
this.caseEditDataService = caseEditDataService;
|
|
10572
10308
|
this.loadingService = loadingService;
|
|
10573
10309
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10574
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
10575
10310
|
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();
|
|
10595
10311
|
}
|
|
10596
10312
|
ngOnInit() {
|
|
10597
10313
|
initDialog();
|
|
@@ -10650,7 +10366,6 @@ class CaseEditPageComponent {
|
|
|
10650
10366
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
10651
10367
|
this.saveDraftSub?.unsubscribe();
|
|
10652
10368
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
10653
|
-
this.multipageComponentStateService.reset();
|
|
10654
10369
|
}
|
|
10655
10370
|
applyValuesChanged(valuesChanged) {
|
|
10656
10371
|
this.formValuesChanged = valuesChanged;
|
|
@@ -10677,7 +10392,6 @@ class CaseEditPageComponent {
|
|
|
10677
10392
|
caseEventData.data = caseEventData.event_data;
|
|
10678
10393
|
this.updateFormData(caseEventData);
|
|
10679
10394
|
this.previous();
|
|
10680
|
-
this.previousStep();
|
|
10681
10395
|
CaseEditPageComponent.setFocusToTop();
|
|
10682
10396
|
}
|
|
10683
10397
|
// Adding validation message to show it as Error Summary
|
|
@@ -10928,9 +10642,6 @@ class CaseEditPageComponent {
|
|
|
10928
10642
|
return this.caseEdit.hasPrevious(this.currentPage.id);
|
|
10929
10643
|
}
|
|
10930
10644
|
cancel() {
|
|
10931
|
-
if (this.isLinkedCasesJourney()) {
|
|
10932
|
-
this.linkedCasesService.resetLinkedCaseData();
|
|
10933
|
-
}
|
|
10934
10645
|
if (this.eventTrigger.can_save_draft) {
|
|
10935
10646
|
if (this.formValuesChanged) {
|
|
10936
10647
|
const dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
|
|
@@ -10957,7 +10668,6 @@ class CaseEditPageComponent {
|
|
|
10957
10668
|
this.caseEdit.cancelled.emit();
|
|
10958
10669
|
}
|
|
10959
10670
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10960
|
-
this.multipageComponentStateService.reset();
|
|
10961
10671
|
}
|
|
10962
10672
|
submitting() {
|
|
10963
10673
|
return this.caseEdit.isSubmitting;
|
|
@@ -11110,8 +10820,8 @@ class CaseEditPageComponent {
|
|
|
11110
10820
|
}
|
|
11111
10821
|
});
|
|
11112
10822
|
}
|
|
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(
|
|
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"], ["
|
|
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"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11115
10825
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11116
10826
|
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);
|
|
11117
10827
|
i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
@@ -11119,15 +10829,15 @@ class CaseEditPageComponent {
|
|
|
11119
10829
|
i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
|
|
11120
10830
|
i0.ɵɵelementEnd();
|
|
11121
10831
|
i0.ɵɵelementStart(9, "div", 7);
|
|
11122
|
-
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template,
|
|
10832
|
+
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 17, 16, "form", 8);
|
|
11123
10833
|
i0.ɵɵelementEnd();
|
|
11124
10834
|
i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
11125
10835
|
} if (rf & 2) {
|
|
11126
|
-
const
|
|
11127
|
-
const
|
|
10836
|
+
const titleBlock_r8 = i0.ɵɵreference(3);
|
|
10837
|
+
const idBlock_r9 = i0.ɵɵreference(5);
|
|
11128
10838
|
i0.ɵɵproperty("ngIf", ctx.currentPage);
|
|
11129
10839
|
i0.ɵɵadvance();
|
|
11130
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
10840
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r8)("ngIfElse", idBlock_r9);
|
|
11131
10841
|
i0.ɵɵadvance(5);
|
|
11132
10842
|
i0.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
11133
10843
|
i0.ɵɵadvance();
|
|
@@ -11142,9 +10852,9 @@ class CaseEditPageComponent {
|
|
|
11142
10852
|
}
|
|
11143
10853
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
11144
10854
|
type: Component,
|
|
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)=\"
|
|
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:
|
|
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:
|
|
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)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
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: 31 }); })();
|
|
11148
10858
|
|
|
11149
10859
|
class CallbackErrorsContext {
|
|
11150
10860
|
triggerText;
|
|
@@ -11293,7 +11003,7 @@ class CallbackErrorsComponent {
|
|
|
11293
11003
|
}] }); })();
|
|
11294
11004
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CallbackErrorsComponent, { className: "CallbackErrorsComponent", filePath: "lib/shared/components/error/callback-errors.component.ts", lineNumber: 10 }); })();
|
|
11295
11005
|
|
|
11296
|
-
const _c0$
|
|
11006
|
+
const _c0$X = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11297
11007
|
class CaseEventCompletionTaskCancelledComponent {
|
|
11298
11008
|
parentComponent;
|
|
11299
11009
|
caseId;
|
|
@@ -11356,7 +11066,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11356
11066
|
i0.ɵɵadvance(4);
|
|
11357
11067
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
11358
11068
|
i0.ɵɵadvance(2);
|
|
11359
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$
|
|
11069
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$X, ctx.caseId));
|
|
11360
11070
|
i0.ɵɵadvance();
|
|
11361
11071
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
11362
11072
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -11370,7 +11080,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11370
11080
|
}] }], null); })();
|
|
11371
11081
|
(() => { (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 }); })();
|
|
11372
11082
|
|
|
11373
|
-
const _c0$
|
|
11083
|
+
const _c0$W = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11374
11084
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11375
11085
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11376
11086
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -11423,7 +11133,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
11423
11133
|
i0.ɵɵadvance(4);
|
|
11424
11134
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
11425
11135
|
i0.ɵɵadvance(2);
|
|
11426
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$
|
|
11136
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$W, ctx_r1.caseId));
|
|
11427
11137
|
i0.ɵɵadvance();
|
|
11428
11138
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
11429
11139
|
} }
|
|
@@ -11899,7 +11609,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11899
11609
|
}] }); })();
|
|
11900
11610
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11901
11611
|
|
|
11902
|
-
const _c0$
|
|
11612
|
+
const _c0$V = ["writeComplexFieldComponent"];
|
|
11903
11613
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
11904
11614
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11905
11615
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12141,7 +11851,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12141
11851
|
}
|
|
12142
11852
|
static ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
12143
11853
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12144
|
-
i0.ɵɵviewQuery(_c0$
|
|
11854
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
12145
11855
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
12146
11856
|
} if (rf & 2) {
|
|
12147
11857
|
let _t;
|
|
@@ -12204,171 +11914,6 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
12204
11914
|
type: Input
|
|
12205
11915
|
}] }); })();
|
|
12206
11916
|
|
|
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
|
-
|
|
12372
11917
|
var DisplayContextParameter;
|
|
12373
11918
|
(function (DisplayContextParameter) {
|
|
12374
11919
|
DisplayContextParameter["Read"] = "READ";
|
|
@@ -12571,12 +12116,10 @@ class CaseFlagStateService {
|
|
|
12571
12116
|
formGroup = new FormGroup({});
|
|
12572
12117
|
pageLocation;
|
|
12573
12118
|
fieldStateToNavigate;
|
|
12574
|
-
lastPageFieldState;
|
|
12575
12119
|
resetCache(pageLocation) {
|
|
12576
12120
|
this.formGroup = new FormGroup({});
|
|
12577
12121
|
this.fieldStateToNavigate = undefined;
|
|
12578
12122
|
this.pageLocation = pageLocation;
|
|
12579
|
-
this.lastPageFieldState = 0;
|
|
12580
12123
|
}
|
|
12581
12124
|
static ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
|
|
12582
12125
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
|
|
@@ -12830,7 +12373,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
12830
12373
|
|
|
12831
12374
|
function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
12832
12375
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12833
|
-
i0.ɵɵelementStart(0, "div",
|
|
12376
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "ul", 6)(2, "li")(3, "a", 7);
|
|
12834
12377
|
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)); });
|
|
12835
12378
|
i0.ɵɵtext(4);
|
|
12836
12379
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -12841,11 +12384,11 @@ function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
12841
12384
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, errorMessage_r2.description));
|
|
12842
12385
|
} }
|
|
12843
12386
|
function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12844
|
-
i0.ɵɵelementStart(0, "div",
|
|
12387
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
|
|
12845
12388
|
i0.ɵɵtext(2);
|
|
12846
12389
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
12847
12390
|
i0.ɵɵelementEnd();
|
|
12848
|
-
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div",
|
|
12391
|
+
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 4);
|
|
12849
12392
|
i0.ɵɵelementEnd();
|
|
12850
12393
|
} if (rf & 2) {
|
|
12851
12394
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12857,7 +12400,7 @@ function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12857
12400
|
function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12858
12401
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
12859
12402
|
i0.ɵɵelementContainerStart(0);
|
|
12860
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-location",
|
|
12403
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-location", 11);
|
|
12861
12404
|
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)); });
|
|
12862
12405
|
i0.ɵɵelementEnd();
|
|
12863
12406
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12869,7 +12412,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if
|
|
|
12869
12412
|
function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12870
12413
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
12871
12414
|
i0.ɵɵelementContainerStart(0);
|
|
12872
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-type",
|
|
12415
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-type", 12);
|
|
12873
12416
|
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)); });
|
|
12874
12417
|
i0.ɵɵelementEnd();
|
|
12875
12418
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12881,7 +12424,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if
|
|
|
12881
12424
|
function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12882
12425
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
12883
12426
|
i0.ɵɵelementContainerStart(0);
|
|
12884
|
-
i0.ɵɵelementStart(1, "ccd-search-language-interpreter",
|
|
12427
|
+
i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 13);
|
|
12885
12428
|
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)); });
|
|
12886
12429
|
i0.ɵɵelementEnd();
|
|
12887
12430
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12893,7 +12436,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if
|
|
|
12893
12436
|
function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
12894
12437
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
12895
12438
|
i0.ɵɵelementContainerStart(0);
|
|
12896
|
-
i0.ɵɵelementStart(1, "ccd-add-comments",
|
|
12439
|
+
i0.ɵɵelementStart(1, "ccd-add-comments", 14);
|
|
12897
12440
|
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)); });
|
|
12898
12441
|
i0.ɵɵelementEnd();
|
|
12899
12442
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12905,7 +12448,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if
|
|
|
12905
12448
|
function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
12906
12449
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
12907
12450
|
i0.ɵɵelementContainerStart(0);
|
|
12908
|
-
i0.ɵɵelementStart(1, "ccd-confirm-flag-status",
|
|
12451
|
+
i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 15);
|
|
12909
12452
|
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)); });
|
|
12910
12453
|
i0.ɵɵelementEnd();
|
|
12911
12454
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12915,8 +12458,8 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
|
|
|
12915
12458
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup)("defaultStatus", ctx_r2.flagType.defaultStatus);
|
|
12916
12459
|
} }
|
|
12917
12460
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12918
|
-
i0.ɵɵelementStart(0, "div",
|
|
12919
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template,
|
|
12461
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12462
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 2, 3, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 7, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 2, 2, "ng-container", 10)(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 4, "ng-container", 10)(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 2, "ng-container", 10);
|
|
12920
12463
|
i0.ɵɵelementEnd()();
|
|
12921
12464
|
} if (rf & 2) {
|
|
12922
12465
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12937,7 +12480,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12937
12480
|
function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12938
12481
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
12939
12482
|
i0.ɵɵelementContainerStart(0);
|
|
12940
|
-
i0.ɵɵelementStart(1, "ccd-manage-case-flags",
|
|
12483
|
+
i0.ɵɵelementStart(1, "ccd-manage-case-flags", 16);
|
|
12941
12484
|
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)); });
|
|
12942
12485
|
i0.ɵɵelementEnd();
|
|
12943
12486
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12949,7 +12492,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if
|
|
|
12949
12492
|
function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12950
12493
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12951
12494
|
i0.ɵɵelementContainerStart(0);
|
|
12952
|
-
i0.ɵɵelementStart(1, "ccd-update-flag",
|
|
12495
|
+
i0.ɵɵelementStart(1, "ccd-update-flag", 17);
|
|
12953
12496
|
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)); });
|
|
12954
12497
|
i0.ɵɵelementEnd();
|
|
12955
12498
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12961,7 +12504,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if
|
|
|
12961
12504
|
function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12962
12505
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
12963
12506
|
i0.ɵɵelementContainerStart(0);
|
|
12964
|
-
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form",
|
|
12507
|
+
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 18);
|
|
12965
12508
|
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)); });
|
|
12966
12509
|
i0.ɵɵelementEnd();
|
|
12967
12510
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12971,8 +12514,8 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if
|
|
|
12971
12514
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup);
|
|
12972
12515
|
} }
|
|
12973
12516
|
function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12974
|
-
i0.ɵɵelementStart(0, "div",
|
|
12975
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template,
|
|
12517
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12518
|
+
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template, 2, 4, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_2_ng_container_3_Template, 2, 2, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_2_ng_container_4_Template, 2, 1, "ng-container", 10);
|
|
12976
12519
|
i0.ɵɵelementEnd()();
|
|
12977
12520
|
} if (rf & 2) {
|
|
12978
12521
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12986,12 +12529,11 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12986
12529
|
i0.ɵɵadvance();
|
|
12987
12530
|
i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION);
|
|
12988
12531
|
} }
|
|
12989
|
-
class WriteCaseFlagFieldComponent extends
|
|
12532
|
+
class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
12990
12533
|
route;
|
|
12991
12534
|
caseEditDataService;
|
|
12992
12535
|
caseFlagStateService;
|
|
12993
12536
|
rpxTranslationService;
|
|
12994
|
-
//public formGroup: FormGroup;
|
|
12995
12537
|
fieldState;
|
|
12996
12538
|
caseFlagFieldState = CaseFlagFieldState;
|
|
12997
12539
|
errorMessages = [];
|
|
@@ -13010,7 +12552,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13010
12552
|
displayContextParameter;
|
|
13011
12553
|
determinedLocation;
|
|
13012
12554
|
allCaseFlagStagesCompleted = false;
|
|
13013
|
-
navigatedTo = false;
|
|
13014
12555
|
// Code for "Other" flag type as defined in Reference Data
|
|
13015
12556
|
otherFlagTypeCode = 'OT0001';
|
|
13016
12557
|
selectedManageCaseLocation = 'selectedManageCaseLocation';
|
|
@@ -13026,8 +12567,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13026
12567
|
this.caseFlagParentFormGroup.value.selectedLocation = selectedLocation;
|
|
13027
12568
|
}
|
|
13028
12569
|
}
|
|
13029
|
-
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService
|
|
13030
|
-
super(
|
|
12570
|
+
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService) {
|
|
12571
|
+
super();
|
|
13031
12572
|
this.route = route;
|
|
13032
12573
|
this.caseEditDataService = caseEditDataService;
|
|
13033
12574
|
this.caseFlagStateService = caseFlagStateService;
|
|
@@ -13037,14 +12578,13 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13037
12578
|
// If it is start of the journey or navigation from check your answers page then fieldStateToNavigate property
|
|
13038
12579
|
// in case flag state service will contain the field state to navigate based on create or manage journey
|
|
13039
12580
|
this.fieldState = this.caseFlagStateService.fieldStateToNavigate;
|
|
13040
|
-
if (this.fieldState === undefined
|
|
12581
|
+
if (this.fieldState === undefined ||
|
|
12582
|
+
this.fieldState === CaseFlagFieldState.FLAG_LOCATION ||
|
|
12583
|
+
this.fieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS) {
|
|
13041
12584
|
const params = this.route.snapshot.params;
|
|
13042
12585
|
// Clear the form group, field state to navigate and set the page location
|
|
13043
12586
|
this.caseFlagStateService.resetCache(`../${params['eid']}/${params['page']}`);
|
|
13044
12587
|
}
|
|
13045
|
-
else {
|
|
13046
|
-
this.navigatedTo = true;
|
|
13047
|
-
}
|
|
13048
12588
|
// Reassign the form group from the case flag state service
|
|
13049
12589
|
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
13050
12590
|
// Clear form validation errors as a new page will be rendered based on field state
|
|
@@ -13083,14 +12623,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13083
12623
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
13084
12624
|
}
|
|
13085
12625
|
if (this.route.snapshot.data.eventTrigger.case_fields) {
|
|
13086
|
-
|
|
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)
|
|
12626
|
+
this.flagsData = (this.route.snapshot.data.eventTrigger.case_fields)
|
|
13090
12627
|
.reduce((flags, caseField) => FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField), []);
|
|
13091
12628
|
// Set displayContextParameter (to be passed as an input to ManageCaseFlagsComponent for setting correct title)
|
|
13092
12629
|
this.displayContextParameter =
|
|
13093
|
-
this.setDisplayContextParameter(
|
|
12630
|
+
this.setDisplayContextParameter(this.route.snapshot.data.eventTrigger.case_fields);
|
|
13094
12631
|
// Set boolean indicating the display_context_parameter is "update"
|
|
13095
12632
|
this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
|
|
13096
12633
|
// Set boolean indicating the display_context_parameter is "external"
|
|
@@ -13109,58 +12646,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13109
12646
|
});
|
|
13110
12647
|
}
|
|
13111
12648
|
}
|
|
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;
|
|
13164
12649
|
}
|
|
13165
12650
|
setDisplayContextParameterUpdate(displayContextParameter) {
|
|
13166
12651
|
return displayContextParameter === CaseFlagDisplayContextParameter.UPDATE ||
|
|
@@ -13216,7 +12701,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13216
12701
|
}
|
|
13217
12702
|
proceedToNextState() {
|
|
13218
12703
|
if (!this.isAtFinalState()) {
|
|
13219
|
-
this.journeyPreviousPageNumber = this.fieldState;
|
|
13220
12704
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
13221
12705
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
13222
12706
|
// selection
|
|
@@ -13226,7 +12710,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13226
12710
|
else {
|
|
13227
12711
|
this.fieldState++;
|
|
13228
12712
|
}
|
|
13229
|
-
this.nextPage();
|
|
13230
12713
|
}
|
|
13231
12714
|
}
|
|
13232
12715
|
setFlagsCaseFieldValue() {
|
|
@@ -13245,18 +12728,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13245
12728
|
break;
|
|
13246
12729
|
}
|
|
13247
12730
|
}
|
|
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
|
-
}
|
|
13260
12731
|
addFlagToCollection() {
|
|
13261
12732
|
// Ensure no more than one new flag is being added at a time, by iterating through each Flags case field and removing
|
|
13262
12733
|
// any previous entry from the details array where that entry has no id (hence it is new - and there should be only
|
|
@@ -13541,7 +13012,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13541
13012
|
};
|
|
13542
13013
|
}
|
|
13543
13014
|
moveToFinalReviewStage() {
|
|
13544
|
-
this.caseFlagStateService.lastPageFieldState = this.fieldState;
|
|
13545
13015
|
this.setFlagsCaseFieldValue();
|
|
13546
13016
|
// Check that no errors have been set on caseFlagParentFormGroup (by determineLocationForFlag()); prevent moving to
|
|
13547
13017
|
// final review stage if errors exist
|
|
@@ -13556,7 +13026,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13556
13026
|
}
|
|
13557
13027
|
}
|
|
13558
13028
|
ngOnDestroy() {
|
|
13559
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
13560
13029
|
// Reset the fieldstateToNavigate as the write journey completes at this point
|
|
13561
13030
|
this.caseFlagStateService.fieldStateToNavigate = undefined;
|
|
13562
13031
|
this.caseTitleSubscription?.unsubscribe();
|
|
@@ -13568,9 +13037,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13568
13037
|
setDisplayContextParameter(caseFields) {
|
|
13569
13038
|
return caseFields.find(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']))?.display_context_parameter;
|
|
13570
13039
|
}
|
|
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)
|
|
13572
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["
|
|
13573
|
-
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div",
|
|
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", 0)(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 1)(2, WriteCaseFlagFieldComponent_div_2_Template, 5, 5, "div", 1);
|
|
13574
13043
|
} if (rf & 2) {
|
|
13575
13044
|
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
13576
13045
|
i0.ɵɵadvance();
|
|
@@ -13581,9 +13050,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13581
13050
|
}
|
|
13582
13051
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseFlagFieldComponent, [{
|
|
13583
13052
|
type: Component,
|
|
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\"
|
|
13585
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }
|
|
13586
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber:
|
|
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\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let errorMessage of errorMessages\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(errorMessage.fieldId)\" class=\"validation-error\">{{errorMessage.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"!isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LOCATION\">\n <ccd-select-flag-location\n [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n ></ccd-select-flag-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_TYPE\">\n <ccd-select-flag-type [formGroup]=\"caseFlagParentFormGroup\" [jurisdiction]=\"jurisdiction\" [caseTypeId]=\"caseTypeId\"\n [hmctsServiceId]=\"hmctsServiceId\" [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n [selectedFlagsLocation]=\"selectedFlagsLocation\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n (flagCommentsOptionalEmitter)=\"onFlagCommentsOptionalEmitted($event)\"></ccd-select-flag-type>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER\">\n <ccd-search-language-interpreter [formGroup]=\"caseFlagParentFormGroup\"\n [flagType]=\"flagType\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-search-language-interpreter>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_COMMENTS\">\n <ccd-add-comments [formGroup]=\"caseFlagParentFormGroup\" [optional]=\"flagCommentsOptional\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\">\n </ccd-add-comments>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_STATUS\">\n <ccd-confirm-flag-status [formGroup]=\"caseFlagParentFormGroup\" [defaultStatus]=\"flagType.defaultStatus\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-confirm-flag-status>\n </ng-container>\n </div>\n</div>\n<div *ngIf=\"isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS\">\n <ccd-manage-case-flags [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\" [caseTitle]=\"caseTitle\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-manage-case-flags>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE\">\n <ccd-update-flag [formGroup]=\"caseFlagParentFormGroup\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-update-flag>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION\">\n <ccd-update-flag-add-translation-form\n [formGroup]=\"caseFlagParentFormGroup\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n ></ccd-update-flag-add-translation-form>\n </ng-container>\n </div>\n</div>\n", styles: [".validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
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: 20 }); })();
|
|
13587
13056
|
|
|
13588
13057
|
class CaseReferencePipe {
|
|
13589
13058
|
transform(caseReference) {
|
|
@@ -16321,6 +15790,139 @@ var Patterns;
|
|
|
16321
15790
|
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
16322
15791
|
})(Patterns || (Patterns = {}));
|
|
16323
15792
|
|
|
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
|
+
|
|
16324
15926
|
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
16325
15927
|
i0.ɵɵelementStart(0, "p", 5)(1, "span", 6);
|
|
16326
15928
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -16348,7 +15950,7 @@ function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
16348
15950
|
i0.ɵɵproperty("ngIf", ctx_r1.serverLinkedApiError);
|
|
16349
15951
|
} }
|
|
16350
15952
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
16351
|
-
i0.ɵɵelementStart(0, "div",
|
|
15953
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "p", 3);
|
|
16352
15954
|
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
16353
15955
|
i0.ɵɵelementEnd();
|
|
16354
15956
|
i0.ɵɵelementStart(3, "p", 3);
|
|
@@ -16356,16 +15958,20 @@ function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
16356
15958
|
i0.ɵɵelementEnd()();
|
|
16357
15959
|
} }
|
|
16358
15960
|
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16359
|
-
i0.ɵɵelementStart(0, "div",
|
|
15961
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "p", 3);
|
|
16360
15962
|
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
16361
15963
|
i0.ɵɵelementEnd()();
|
|
16362
15964
|
} }
|
|
16363
15965
|
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
15966
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
16364
15967
|
i0.ɵɵelementStart(0, "div")(1, "h1", 1);
|
|
16365
15968
|
i0.ɵɵtext(2, "Before you start");
|
|
16366
15969
|
i0.ɵɵelementEnd();
|
|
16367
15970
|
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7)(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
16368
|
-
i0.ɵɵ
|
|
15971
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "button", 10);
|
|
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()()();
|
|
16369
15975
|
} if (rf & 2) {
|
|
16370
15976
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16371
15977
|
i0.ɵɵadvance(3);
|
|
@@ -16373,15 +15979,14 @@ function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
16373
15979
|
i0.ɵɵadvance();
|
|
16374
15980
|
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
16375
15981
|
} }
|
|
16376
|
-
class BeforeYouStartComponent
|
|
15982
|
+
class BeforeYouStartComponent {
|
|
16377
15983
|
router;
|
|
16378
15984
|
linkedCasesService;
|
|
16379
15985
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16380
15986
|
isLinkCasesJourney = false;
|
|
16381
15987
|
errorMessages;
|
|
16382
15988
|
serverLinkedApiError;
|
|
16383
|
-
constructor(router, linkedCasesService
|
|
16384
|
-
super(multipageComponentStateService);
|
|
15989
|
+
constructor(router, linkedCasesService) {
|
|
16385
15990
|
this.router = router;
|
|
16386
15991
|
this.linkedCasesService = linkedCasesService;
|
|
16387
15992
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
@@ -16398,22 +16003,13 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16398
16003
|
navigateToNextPage: true
|
|
16399
16004
|
});
|
|
16400
16005
|
}
|
|
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
|
-
}
|
|
16410
16006
|
onBack() {
|
|
16411
16007
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
16412
16008
|
}
|
|
16413
|
-
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
16414
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" },
|
|
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"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16415
16011
|
i0.ɵɵelementStart(0, "div");
|
|
16416
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template,
|
|
16012
|
+
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
16417
16013
|
i0.ɵɵelementEnd();
|
|
16418
16014
|
} if (rf & 2) {
|
|
16419
16015
|
i0.ɵɵadvance();
|
|
@@ -16424,11 +16020,11 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16424
16020
|
}
|
|
16425
16021
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
16426
16022
|
type: Component,
|
|
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 }
|
|
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 <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
|
|
16024
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16429
16025
|
type: Output
|
|
16430
16026
|
}] }); })();
|
|
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:
|
|
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: 12 }); })();
|
|
16432
16028
|
|
|
16433
16029
|
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
16434
16030
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -16550,15 +16146,14 @@ function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
16550
16146
|
i0.ɵɵtext(2, " None ");
|
|
16551
16147
|
i0.ɵɵelementEnd()();
|
|
16552
16148
|
} }
|
|
16553
|
-
class CheckYourAnswersComponent
|
|
16149
|
+
class CheckYourAnswersComponent {
|
|
16554
16150
|
linkedCasesService;
|
|
16555
16151
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16556
16152
|
linkedCases;
|
|
16557
16153
|
casesToUnlink;
|
|
16558
16154
|
isLinkCasesJourney;
|
|
16559
16155
|
linkedCasesTableCaption;
|
|
16560
|
-
constructor(linkedCasesService
|
|
16561
|
-
super(multipageComponentStateService);
|
|
16156
|
+
constructor(linkedCasesService) {
|
|
16562
16157
|
this.linkedCasesService = linkedCasesService;
|
|
16563
16158
|
}
|
|
16564
16159
|
ngOnInit() {
|
|
@@ -16575,16 +16170,8 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16575
16170
|
navigateToNextPage: true
|
|
16576
16171
|
});
|
|
16577
16172
|
}
|
|
16578
|
-
|
|
16579
|
-
|
|
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) {
|
|
16173
|
+
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16174
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16588
16175
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
16589
16176
|
i0.ɵɵtext(3, "Check your answers");
|
|
16590
16177
|
i0.ɵɵelementEnd();
|
|
@@ -16620,10 +16207,10 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16620
16207
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
16621
16208
|
type: Component,
|
|
16622
16209
|
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"] }]
|
|
16623
|
-
}], () => [{ type: LinkedCasesService }
|
|
16210
|
+
}], () => [{ type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16624
16211
|
type: Output
|
|
16625
16212
|
}] }); })();
|
|
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:
|
|
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: 11 }); })();
|
|
16627
16214
|
|
|
16628
16215
|
class ValidatorsUtils {
|
|
16629
16216
|
numberLengthValidator(inputLength) {
|
|
@@ -16653,7 +16240,7 @@ class ValidatorsUtils {
|
|
|
16653
16240
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16654
16241
|
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16655
16242
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16656
|
-
i0.ɵɵelementStart(0, "span",
|
|
16243
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16657
16244
|
i0.ɵɵtext(2, "Error:");
|
|
16658
16245
|
i0.ɵɵelementEnd();
|
|
16659
16246
|
i0.ɵɵtext(3);
|
|
@@ -16664,7 +16251,7 @@ function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16664
16251
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseNumberError, " ");
|
|
16665
16252
|
} }
|
|
16666
16253
|
function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
16667
|
-
i0.ɵɵelementStart(0, "span",
|
|
16254
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16668
16255
|
i0.ɵɵtext(2, "Error:");
|
|
16669
16256
|
i0.ɵɵelementEnd();
|
|
16670
16257
|
i0.ɵɵtext(3);
|
|
@@ -16676,10 +16263,10 @@ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
16676
16263
|
} }
|
|
16677
16264
|
function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
16678
16265
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
16679
|
-
i0.ɵɵelementStart(0, "div",
|
|
16266
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "input", 33);
|
|
16680
16267
|
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)); });
|
|
16681
16268
|
i0.ɵɵelementEnd();
|
|
16682
|
-
i0.ɵɵelementStart(2, "label",
|
|
16269
|
+
i0.ɵɵelementStart(2, "label", 34);
|
|
16683
16270
|
i0.ɵɵtext(3);
|
|
16684
16271
|
i0.ɵɵelementEnd()();
|
|
16685
16272
|
} if (rf & 2) {
|
|
@@ -16695,7 +16282,7 @@ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
16695
16282
|
i0.ɵɵtextInterpolate(reason_r4.value_en);
|
|
16696
16283
|
} }
|
|
16697
16284
|
function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16698
|
-
i0.ɵɵelementStart(0, "span",
|
|
16285
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16699
16286
|
i0.ɵɵtext(2, "Error:");
|
|
16700
16287
|
i0.ɵɵelementEnd();
|
|
16701
16288
|
i0.ɵɵtext(3);
|
|
@@ -16706,14 +16293,14 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16706
16293
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseReasonCommentsError, " ");
|
|
16707
16294
|
} }
|
|
16708
16295
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
16709
|
-
i0.ɵɵelementStart(0, "div",
|
|
16296
|
+
i0.ɵɵelementStart(0, "div", 35)(1, "h3", 22);
|
|
16710
16297
|
i0.ɵɵtext(2, "Comments");
|
|
16711
16298
|
i0.ɵɵelementEnd();
|
|
16712
16299
|
i0.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
|
|
16713
|
-
i0.ɵɵelementStart(4, "textarea",
|
|
16300
|
+
i0.ɵɵelementStart(4, "textarea", 36);
|
|
16714
16301
|
i0.ɵɵtext(5, " ");
|
|
16715
16302
|
i0.ɵɵelementEnd();
|
|
16716
|
-
i0.ɵɵelementStart(6, "div",
|
|
16303
|
+
i0.ɵɵelementStart(6, "div", 37);
|
|
16717
16304
|
i0.ɵɵtext(7, " You can enter up to 100 characters ");
|
|
16718
16305
|
i0.ɵɵelementEnd()();
|
|
16719
16306
|
} if (rf & 2) {
|
|
@@ -16723,7 +16310,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
16723
16310
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
|
|
16724
16311
|
} }
|
|
16725
16312
|
function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
16726
|
-
i0.ɵɵelementStart(0, "span",
|
|
16313
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16727
16314
|
i0.ɵɵtext(2, "Error:");
|
|
16728
16315
|
i0.ɵɵelementEnd();
|
|
16729
16316
|
i0.ɵɵtext(3);
|
|
@@ -16735,26 +16322,26 @@ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
16735
16322
|
} }
|
|
16736
16323
|
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16737
16324
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
16738
|
-
i0.ɵɵelementStart(0, "div",
|
|
16325
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "div", 5)(2, "h3", 22);
|
|
16739
16326
|
i0.ɵɵtext(3, "Enter case reference");
|
|
16740
16327
|
i0.ɵɵelementEnd();
|
|
16741
16328
|
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
16742
|
-
i0.ɵɵelement(5, "input",
|
|
16329
|
+
i0.ɵɵelement(5, "input", 23);
|
|
16743
16330
|
i0.ɵɵelementEnd();
|
|
16744
|
-
i0.ɵɵelementStart(6, "div",
|
|
16331
|
+
i0.ɵɵelementStart(6, "div", 24)(7, "h3", 22);
|
|
16745
16332
|
i0.ɵɵtext(8, "Why should these cases be linked?");
|
|
16746
16333
|
i0.ɵɵelementEnd();
|
|
16747
|
-
i0.ɵɵelementStart(9, "div",
|
|
16334
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
16748
16335
|
i0.ɵɵtext(10, " Select all that apply. ");
|
|
16749
16336
|
i0.ɵɵelementEnd();
|
|
16750
16337
|
i0.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
|
|
16751
|
-
i0.ɵɵelementStart(12, "div",
|
|
16752
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div",
|
|
16338
|
+
i0.ɵɵelementStart(12, "div", 26);
|
|
16339
|
+
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 27);
|
|
16753
16340
|
i0.ɵɵelementEnd()();
|
|
16754
|
-
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div",
|
|
16341
|
+
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 28);
|
|
16755
16342
|
i0.ɵɵelement(15, "br")(16, "br");
|
|
16756
16343
|
i0.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
|
|
16757
|
-
i0.ɵɵelementStart(18, "button",
|
|
16344
|
+
i0.ɵɵelementStart(18, "button", 29);
|
|
16758
16345
|
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()); });
|
|
16759
16346
|
i0.ɵɵtext(19, "Propose case link");
|
|
16760
16347
|
i0.ɵɵelementEnd()();
|
|
@@ -16777,7 +16364,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
16777
16364
|
i0.ɵɵproperty("ngIf", ctx_r1.caseSelectionError);
|
|
16778
16365
|
} }
|
|
16779
16366
|
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16780
|
-
i0.ɵɵelementStart(0, "span",
|
|
16367
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16781
16368
|
i0.ɵɵtext(2, "Error:");
|
|
16782
16369
|
i0.ɵɵelementEnd();
|
|
16783
16370
|
i0.ɵɵtext(3);
|
|
@@ -16800,27 +16387,27 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
16800
16387
|
} }
|
|
16801
16388
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
16802
16389
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
16803
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16804
|
-
i0.ɵɵelement(2, "div",
|
|
16390
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
|
|
16391
|
+
i0.ɵɵelement(2, "div", 39);
|
|
16805
16392
|
i0.ɵɵelementStart(3, "span");
|
|
16806
16393
|
i0.ɵɵtext(4);
|
|
16807
16394
|
i0.ɵɵelement(5, "br");
|
|
16808
16395
|
i0.ɵɵtext(6);
|
|
16809
16396
|
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
16810
16397
|
i0.ɵɵelementEnd()();
|
|
16811
|
-
i0.ɵɵelementStart(8, "td",
|
|
16398
|
+
i0.ɵɵelementStart(8, "td", 40);
|
|
16812
16399
|
i0.ɵɵtext(9);
|
|
16813
16400
|
i0.ɵɵelementEnd();
|
|
16814
|
-
i0.ɵɵelementStart(10, "td",
|
|
16401
|
+
i0.ɵɵelementStart(10, "td", 38);
|
|
16815
16402
|
i0.ɵɵtext(11);
|
|
16816
16403
|
i0.ɵɵelementEnd();
|
|
16817
|
-
i0.ɵɵelementStart(12, "td",
|
|
16404
|
+
i0.ɵɵelementStart(12, "td", 40);
|
|
16818
16405
|
i0.ɵɵtext(13);
|
|
16819
16406
|
i0.ɵɵelementEnd();
|
|
16820
|
-
i0.ɵɵelementStart(14, "td",
|
|
16821
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span",
|
|
16407
|
+
i0.ɵɵelementStart(14, "td", 38);
|
|
16408
|
+
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 41);
|
|
16822
16409
|
i0.ɵɵelementEnd();
|
|
16823
|
-
i0.ɵɵelementStart(16, "td",
|
|
16410
|
+
i0.ɵɵelementStart(16, "td", 38)(17, "a", 42);
|
|
16824
16411
|
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)); });
|
|
16825
16412
|
i0.ɵɵtext(18, "Remove");
|
|
16826
16413
|
i0.ɵɵelementEnd()()();
|
|
@@ -16849,11 +16436,11 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16849
16436
|
i0.ɵɵattribute("id", case_r9.caseReference);
|
|
16850
16437
|
} }
|
|
16851
16438
|
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
16852
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16439
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 43);
|
|
16853
16440
|
i0.ɵɵtext(2, " None ");
|
|
16854
16441
|
i0.ɵɵelementEnd()();
|
|
16855
16442
|
} }
|
|
16856
|
-
class LinkCasesComponent
|
|
16443
|
+
class LinkCasesComponent {
|
|
16857
16444
|
casesService;
|
|
16858
16445
|
fb;
|
|
16859
16446
|
validatorsUtils;
|
|
@@ -16872,8 +16459,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16872
16459
|
linkCaseReasons;
|
|
16873
16460
|
showComments = false;
|
|
16874
16461
|
ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
16875
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService
|
|
16876
|
-
super(multipageComponentStateService);
|
|
16462
|
+
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
16877
16463
|
this.casesService = casesService;
|
|
16878
16464
|
this.fb = fb;
|
|
16879
16465
|
this.validatorsUtils = validatorsUtils;
|
|
@@ -16884,11 +16470,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16884
16470
|
this.caseName = this.linkedCasesService.caseName;
|
|
16885
16471
|
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
16886
16472
|
this.initForm();
|
|
16887
|
-
if (
|
|
16888
|
-
this.linkedCasesService.linkedCases = [];
|
|
16889
|
-
this.linkedCasesService.caseFieldValue = [];
|
|
16890
|
-
}
|
|
16891
|
-
if (this.linkedCasesService.editMode || this.linkedCasesService.linkedCases.length) {
|
|
16473
|
+
if (this.linkedCasesService.editMode) {
|
|
16892
16474
|
// this may have includes the currently added one but yet to be submitted.
|
|
16893
16475
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
16894
16476
|
}
|
|
@@ -16897,9 +16479,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16897
16479
|
}
|
|
16898
16480
|
}
|
|
16899
16481
|
initForm() {
|
|
16900
|
-
const caseNumber = this.linkedCasesService.storedCaseNumber ?? '';
|
|
16901
16482
|
this.linkCaseForm = this.fb.group({
|
|
16902
|
-
caseNumber: [
|
|
16483
|
+
caseNumber: ['', [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
|
|
16903
16484
|
reasonType: this.getReasonTypeFormArray,
|
|
16904
16485
|
otherDescription: ['', [Validators.maxLength(100)]]
|
|
16905
16486
|
});
|
|
@@ -16932,8 +16513,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16932
16513
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
16933
16514
|
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
16934
16515
|
!this.isOtherOptionSelectedButOtherDescriptionNotEntered()) {
|
|
16935
|
-
this.linkedCasesService.storedCaseNumber = '';
|
|
16936
|
-
this.linkedCasesService.hasNavigatedInJourney = true;
|
|
16937
16516
|
this.getCaseInfo();
|
|
16938
16517
|
}
|
|
16939
16518
|
else {
|
|
@@ -17038,7 +16617,9 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17038
16617
|
CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
17039
16618
|
ReasonForLink: this.getSelectedCCDTypeCaseReason()
|
|
17040
16619
|
};
|
|
17041
|
-
this.linkedCasesService.caseFieldValue
|
|
16620
|
+
if (!this.linkedCasesService.caseFieldValue) {
|
|
16621
|
+
this.linkedCasesService.caseFieldValue = [];
|
|
16622
|
+
}
|
|
17042
16623
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
17043
16624
|
this.selectedCases.push(caseLink);
|
|
17044
16625
|
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
@@ -17109,7 +16690,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17109
16690
|
this.caseSelectionError = null;
|
|
17110
16691
|
this.noSelectedCaseError = null;
|
|
17111
16692
|
let navigateToNextPage = true;
|
|
17112
|
-
this.linkedCasesService.storedCaseNumber = this.linkCaseForm.value.caseNumber ?? '';
|
|
17113
16693
|
if (this.selectedCases.length) {
|
|
17114
16694
|
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
17115
16695
|
}
|
|
@@ -17124,14 +16704,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17124
16704
|
}
|
|
17125
16705
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17126
16706
|
}
|
|
17127
|
-
|
|
17128
|
-
|
|
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) {
|
|
16707
|
+
static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16708
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17135
16709
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "span", 2);
|
|
17136
16710
|
i0.ɵɵtext(4);
|
|
17137
16711
|
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
@@ -17165,7 +16739,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17165
16739
|
i0.ɵɵelementEnd()();
|
|
17166
16740
|
i0.ɵɵelementStart(30, "tbody", 16);
|
|
17167
16741
|
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17)(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
17168
|
-
i0.ɵɵelementEnd()()()
|
|
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()()()()();
|
|
17169
16747
|
} if (rf & 2) {
|
|
17170
16748
|
i0.ɵɵadvance(4);
|
|
17171
16749
|
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
@@ -17183,11 +16761,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17183
16761
|
}
|
|
17184
16762
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
17185
16763
|
type: Component,
|
|
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 }
|
|
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 <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".no-visited-state{color:#1d70b8;cursor:pointer}.no-visited-state:hover{color:#003078}.govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes .govuk-checkboxes__item{display:flex}::ng-deep .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row{position:relative}.govuk-table__row .table-group-error{position:absolute;height:calc(100% - 20px);margin-left:-15px}\n"] }]
|
|
16765
|
+
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17188
16766
|
type: Output
|
|
17189
16767
|
}] }); })();
|
|
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:
|
|
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: 24 }); })();
|
|
17191
16769
|
|
|
17192
16770
|
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
17193
16771
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -17723,12 +17301,11 @@ function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17723
17301
|
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
17724
17302
|
i0.ɵɵelementEnd();
|
|
17725
17303
|
} }
|
|
17726
|
-
class NoLinkedCasesComponent
|
|
17304
|
+
class NoLinkedCasesComponent {
|
|
17727
17305
|
router;
|
|
17728
17306
|
linkedCasesService;
|
|
17729
17307
|
serverLinkedApiError;
|
|
17730
|
-
constructor(router, linkedCasesService
|
|
17731
|
-
super(multipageComponentStateService);
|
|
17308
|
+
constructor(router, linkedCasesService) {
|
|
17732
17309
|
this.router = router;
|
|
17733
17310
|
this.linkedCasesService = linkedCasesService;
|
|
17734
17311
|
}
|
|
@@ -17738,8 +17315,8 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17738
17315
|
onBack() {
|
|
17739
17316
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
17740
17317
|
}
|
|
17741
|
-
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17742
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]],
|
|
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) {
|
|
17743
17320
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17744
17321
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
17745
17322
|
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);
|
|
@@ -17762,66 +17339,70 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17762
17339
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
17763
17340
|
type: Component,
|
|
17764
17341
|
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" }]
|
|
17765
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }
|
|
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:
|
|
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: 9 }); })();
|
|
17767
17344
|
|
|
17768
17345
|
const _c0$I = a0 => ({ "govuk-form-group--error": a0 });
|
|
17769
17346
|
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
17770
|
-
i0.ɵɵelementStart(0, "p",
|
|
17347
|
+
i0.ɵɵelementStart(0, "p", 11)(1, "span", 12);
|
|
17771
17348
|
i0.ɵɵtext(2, "Error:");
|
|
17772
17349
|
i0.ɵɵelementEnd();
|
|
17773
17350
|
i0.ɵɵtext(3);
|
|
17774
17351
|
i0.ɵɵelementEnd();
|
|
17775
17352
|
} if (rf & 2) {
|
|
17776
|
-
const
|
|
17353
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
17777
17354
|
i0.ɵɵadvance(3);
|
|
17778
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17355
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.unlinkErrorMessage, " ");
|
|
17779
17356
|
} }
|
|
17780
17357
|
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
17781
|
-
const
|
|
17782
|
-
i0.ɵɵelementStart(0, "div",
|
|
17783
|
-
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(
|
|
17358
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
17359
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "input", 14);
|
|
17360
|
+
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onChange($event.target)); });
|
|
17784
17361
|
i0.ɵɵelementEnd();
|
|
17785
|
-
i0.ɵɵelementStart(2, "label",
|
|
17362
|
+
i0.ɵɵelementStart(2, "label", 15);
|
|
17786
17363
|
i0.ɵɵtext(3);
|
|
17787
17364
|
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
17788
17365
|
i0.ɵɵelementEnd()();
|
|
17789
17366
|
} if (rf & 2) {
|
|
17790
|
-
const
|
|
17367
|
+
const case_r4 = ctx.$implicit;
|
|
17791
17368
|
i0.ɵɵadvance();
|
|
17792
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-",
|
|
17793
|
-
i0.ɵɵproperty("value",
|
|
17369
|
+
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
17370
|
+
i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
17794
17371
|
i0.ɵɵadvance();
|
|
17795
|
-
i0.ɵɵpropertyInterpolate("for",
|
|
17372
|
+
i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
17796
17373
|
i0.ɵɵadvance();
|
|
17797
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
17374
|
+
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r4.caseReference), " ");
|
|
17798
17375
|
} }
|
|
17799
17376
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
17800
|
-
i0.ɵɵelementStart(0, "div",
|
|
17801
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p",
|
|
17802
|
-
i0.ɵɵelementStart(2, "div",
|
|
17803
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div",
|
|
17377
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
17378
|
+
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
17379
|
+
i0.ɵɵelementStart(2, "div", 9);
|
|
17380
|
+
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 10);
|
|
17804
17381
|
i0.ɵɵelementEnd()();
|
|
17805
17382
|
} if (rf & 2) {
|
|
17806
|
-
const
|
|
17807
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I,
|
|
17383
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17384
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
17808
17385
|
i0.ɵɵadvance();
|
|
17809
|
-
i0.ɵɵproperty("ngIf",
|
|
17386
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
17810
17387
|
i0.ɵɵadvance(2);
|
|
17811
|
-
i0.ɵɵproperty("ngForOf",
|
|
17388
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
17812
17389
|
} }
|
|
17813
17390
|
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
17391
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17814
17392
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h1", 3);
|
|
17815
17393
|
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
17816
17394
|
i0.ɵɵelementEnd();
|
|
17817
17395
|
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
17818
|
-
i0.ɵɵ
|
|
17396
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
|
|
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()()()();
|
|
17819
17400
|
} if (rf & 2) {
|
|
17820
|
-
const
|
|
17401
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17821
17402
|
i0.ɵɵadvance(4);
|
|
17822
|
-
i0.ɵɵproperty("ngIf",
|
|
17403
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkCaseForm);
|
|
17823
17404
|
} }
|
|
17824
|
-
class UnLinkCasesComponent
|
|
17405
|
+
class UnLinkCasesComponent {
|
|
17825
17406
|
fb;
|
|
17826
17407
|
casesService;
|
|
17827
17408
|
linkedCasesService;
|
|
@@ -17836,8 +17417,7 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17836
17417
|
unlinkErrorMessage;
|
|
17837
17418
|
isLoaded;
|
|
17838
17419
|
isServerError = false;
|
|
17839
|
-
constructor(fb, casesService, linkedCasesService
|
|
17840
|
-
super(multipageComponentStateService);
|
|
17420
|
+
constructor(fb, casesService, linkedCasesService) {
|
|
17841
17421
|
this.fb = fb;
|
|
17842
17422
|
this.casesService = casesService;
|
|
17843
17423
|
this.linkedCasesService = linkedCasesService;
|
|
@@ -17930,12 +17510,6 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17930
17510
|
// Return linked cases state and error messages to the parent
|
|
17931
17511
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17932
17512
|
}
|
|
17933
|
-
next() {
|
|
17934
|
-
this.onNext();
|
|
17935
|
-
if (this.errorMessages.length === 0) {
|
|
17936
|
-
super.next();
|
|
17937
|
-
}
|
|
17938
|
-
}
|
|
17939
17513
|
// Return linked cases state and error messages to the parent
|
|
17940
17514
|
emitLinkedCasesState(isNavigateToNextPage) {
|
|
17941
17515
|
this.linkedCasesStateEmitter.emit({
|
|
@@ -17948,22 +17522,22 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17948
17522
|
this.errorMessages = [];
|
|
17949
17523
|
this.unlinkErrorMessage = null;
|
|
17950
17524
|
}
|
|
17951
|
-
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17952
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" },
|
|
17953
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template,
|
|
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-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-form-group", "form-group", 3, "ngClass", "formGroup"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 4, "ngFor", "ngForOf"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item"], ["formArrayName", "linkedCases", "name", "linkedCases", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value", "checked"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17527
|
+
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
17954
17528
|
} if (rf & 2) {
|
|
17955
17529
|
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
17956
17530
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormArrayName, CaseReferencePipe], encapsulation: 2 });
|
|
17957
17531
|
}
|
|
17958
17532
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
17959
17533
|
type: Component,
|
|
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 }
|
|
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 <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
|
|
17535
|
+
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17962
17536
|
type: Output
|
|
17963
17537
|
}], notifyAPIFailure: [{
|
|
17964
17538
|
type: Output
|
|
17965
17539
|
}] }); })();
|
|
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:
|
|
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: 14 }); })();
|
|
17967
17541
|
|
|
17968
17542
|
// tslint:disable:variable-name
|
|
17969
17543
|
class LinkCaseReason {
|
|
@@ -18217,7 +17791,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
18217
17791
|
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
18218
17792
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
18219
17793
|
i0.ɵɵelementContainerStart(0);
|
|
18220
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start",
|
|
17794
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
|
|
18221
17795
|
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)); });
|
|
18222
17796
|
i0.ɵɵelementEnd();
|
|
18223
17797
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18225,7 +17799,7 @@ function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (r
|
|
|
18225
17799
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
18226
17800
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
18227
17801
|
i0.ɵɵelementContainerStart(0);
|
|
18228
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases",
|
|
17802
|
+
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
|
|
18229
17803
|
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)); });
|
|
18230
17804
|
i0.ɵɵelementEnd();
|
|
18231
17805
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18233,7 +17807,7 @@ function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (r
|
|
|
18233
17807
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
18234
17808
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
18235
17809
|
i0.ɵɵelementContainerStart(0);
|
|
18236
|
-
i0.ɵɵelementStart(1, "ccd-link-cases",
|
|
17810
|
+
i0.ɵɵelementStart(1, "ccd-link-cases", 3);
|
|
18237
17811
|
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)); });
|
|
18238
17812
|
i0.ɵɵelementEnd();
|
|
18239
17813
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18241,7 +17815,7 @@ function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (r
|
|
|
18241
17815
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
18242
17816
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
18243
17817
|
i0.ɵɵelementContainerStart(0);
|
|
18244
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases",
|
|
17818
|
+
i0.ɵɵelementStart(1, "ccd-unlink-cases", 3);
|
|
18245
17819
|
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)); });
|
|
18246
17820
|
i0.ɵɵelementEnd();
|
|
18247
17821
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18249,12 +17823,12 @@ function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (r
|
|
|
18249
17823
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
18250
17824
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
18251
17825
|
i0.ɵɵelementContainerStart(0);
|
|
18252
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
17826
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
|
|
18253
17827
|
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)); });
|
|
18254
17828
|
i0.ɵɵelementEnd();
|
|
18255
17829
|
i0.ɵɵelementContainerEnd();
|
|
18256
17830
|
} }
|
|
18257
|
-
class WriteLinkedCasesFieldComponent extends
|
|
17831
|
+
class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
18258
17832
|
appConfig;
|
|
18259
17833
|
commonDataService;
|
|
18260
17834
|
casesService;
|
|
@@ -18267,8 +17841,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18267
17841
|
linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
18268
17842
|
linkedCases = [];
|
|
18269
17843
|
subscriptions = new Subscription();
|
|
18270
|
-
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService
|
|
18271
|
-
super(
|
|
17844
|
+
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
17845
|
+
super();
|
|
18272
17846
|
this.appConfig = appConfig;
|
|
18273
17847
|
this.commonDataService = commonDataService;
|
|
18274
17848
|
this.casesService = casesService;
|
|
@@ -18293,18 +17867,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18293
17867
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18294
17868
|
next: editForm => this.caseEditForm = editForm
|
|
18295
17869
|
}));
|
|
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;
|
|
18308
17870
|
}
|
|
18309
17871
|
initialiseCaseDetails(caseDetails) {
|
|
18310
17872
|
if (caseDetails) {
|
|
@@ -18362,8 +17924,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18362
17924
|
}
|
|
18363
17925
|
proceedToNextPage() {
|
|
18364
17926
|
if (this.isAtFinalPage()) {
|
|
18365
|
-
// Set the journey page to the end page.
|
|
18366
|
-
this.journeyPageNumber = this.journeyEndPageNumber;
|
|
18367
17927
|
// Continue button event must be allowed in final page
|
|
18368
17928
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18369
17929
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
@@ -18375,7 +17935,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18375
17935
|
// Continue button event must not be allowed if not in final page
|
|
18376
17936
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18377
17937
|
}
|
|
18378
|
-
this.nextPage();
|
|
18379
17938
|
}
|
|
18380
17939
|
submitLinkedCases() {
|
|
18381
17940
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -18406,53 +17965,24 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18406
17965
|
});
|
|
18407
17966
|
if (caseViewFiltered) {
|
|
18408
17967
|
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18409
|
-
|
|
18410
|
-
|
|
18411
|
-
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18412
|
-
}
|
|
17968
|
+
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
17969
|
+
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18413
17970
|
}
|
|
18414
17971
|
// Initialise the first page to display
|
|
18415
|
-
|
|
18416
|
-
this.
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
: LinkedCasesPages.NO_LINKED_CASES;
|
|
18421
|
-
}
|
|
17972
|
+
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
17973
|
+
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
17974
|
+
&& !this.linkedCasesService.serverLinkedApiError)
|
|
17975
|
+
? LinkedCasesPages.BEFORE_YOU_START
|
|
17976
|
+
: LinkedCasesPages.NO_LINKED_CASES;
|
|
18422
17977
|
});
|
|
18423
17978
|
}
|
|
18424
17979
|
ngOnDestroy() {
|
|
18425
17980
|
this.subscriptions.unsubscribe();
|
|
18426
17981
|
}
|
|
18427
|
-
|
|
18428
|
-
|
|
18429
|
-
|
|
18430
|
-
|
|
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);
|
|
17982
|
+
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)); };
|
|
17983
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [[1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17984
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
17985
|
+
i0.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 2, 0, "ng-container", 2)(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 2)(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 2)(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 2)(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 2);
|
|
18456
17986
|
i0.ɵɵelementEnd()();
|
|
18457
17987
|
} if (rf & 2) {
|
|
18458
17988
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
@@ -18472,8 +18002,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18472
18002
|
}
|
|
18473
18003
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
|
|
18474
18004
|
type: Component,
|
|
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
|
|
18476
|
-
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }
|
|
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)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
18006
|
+
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18477
18007
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18478
18008
|
|
|
18479
18009
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -23236,10 +22766,10 @@ function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23236
22766
|
i0.ɵɵtextInterpolate1(" (", i0.ɵɵpipeBind1(2, 1, "optional"), ")");
|
|
23237
22767
|
} }
|
|
23238
22768
|
function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23239
|
-
i0.ɵɵelementStart(0, "div",
|
|
22769
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "span", 15);
|
|
23240
22770
|
i0.ɵɵtext(2, "!");
|
|
23241
22771
|
i0.ɵɵelementEnd();
|
|
23242
|
-
i0.ɵɵelementStart(3, "strong",
|
|
22772
|
+
i0.ɵɵelementStart(3, "strong", 16)(4, "span", 17);
|
|
23243
22773
|
i0.ɵɵtext(5);
|
|
23244
22774
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
23245
22775
|
i0.ɵɵelementEnd();
|
|
@@ -23254,7 +22784,7 @@ function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23254
22784
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.addCommentsStepEnum.WARNING_TEXT), " ");
|
|
23255
22785
|
} }
|
|
23256
22786
|
function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
23257
|
-
i0.ɵɵelementStart(0, "div",
|
|
22787
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
23258
22788
|
i0.ɵɵtext(2);
|
|
23259
22789
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23260
22790
|
i0.ɵɵelementEnd();
|
|
@@ -23269,7 +22799,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
23269
22799
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsNotEnteredErrorMessage), " ");
|
|
23270
22800
|
} }
|
|
23271
22801
|
function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
23272
|
-
i0.ɵɵelementStart(0, "div",
|
|
22802
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
23273
22803
|
i0.ɵɵtext(2);
|
|
23274
22804
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23275
22805
|
i0.ɵɵelementEnd();
|
|
@@ -23283,7 +22813,7 @@ function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
23283
22813
|
i0.ɵɵadvance(2);
|
|
23284
22814
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
23285
22815
|
} }
|
|
23286
|
-
class AddCommentsComponent
|
|
22816
|
+
class AddCommentsComponent {
|
|
23287
22817
|
formGroup;
|
|
23288
22818
|
optional = false;
|
|
23289
22819
|
isDisplayContextParameterExternal = false;
|
|
@@ -23342,14 +22872,8 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23342
22872
|
});
|
|
23343
22873
|
}
|
|
23344
22874
|
}
|
|
23345
|
-
|
|
23346
|
-
|
|
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) {
|
|
22875
|
+
static ɵfac = function AddCommentsComponent_Factory(t) { return new (t || AddCommentsComponent)(); };
|
|
22876
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 22, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23353
22877
|
i0.ɵɵelementContainerStart(0, 0);
|
|
23354
22878
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
23355
22879
|
i0.ɵɵtext(5);
|
|
@@ -23367,18 +22891,23 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23367
22891
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
23368
22892
|
i0.ɵɵelementEnd()()();
|
|
23369
22893
|
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()();
|
|
23370
22899
|
} if (rf & 2) {
|
|
23371
22900
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23372
22901
|
i0.ɵɵadvance(2);
|
|
23373
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22902
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c0$s, ctx.errorMessages.length > 0));
|
|
23374
22903
|
i0.ɵɵadvance(2);
|
|
23375
22904
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
23376
22905
|
i0.ɵɵadvance();
|
|
23377
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
22906
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 14, ctx.addCommentsTitle), "");
|
|
23378
22907
|
i0.ɵɵadvance(2);
|
|
23379
22908
|
i0.ɵɵproperty("ngIf", ctx.optional);
|
|
23380
22909
|
i0.ɵɵadvance(2);
|
|
23381
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
22910
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
|
|
23382
22911
|
i0.ɵɵadvance(2);
|
|
23383
22912
|
i0.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled && !ctx.otherInternalFlagTypeSelected);
|
|
23384
22913
|
i0.ɵɵadvance();
|
|
@@ -23388,12 +22917,14 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23388
22917
|
i0.ɵɵadvance();
|
|
23389
22918
|
i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
|
|
23390
22919
|
i0.ɵɵadvance(2);
|
|
23391
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22920
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
22921
|
+
i0.ɵɵadvance(4);
|
|
22922
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 20, "Next"));
|
|
23392
22923
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
23393
22924
|
}
|
|
23394
22925
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
23395
22926
|
type: Component,
|
|
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>" }]
|
|
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>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
23397
22928
|
}], null, { formGroup: [{
|
|
23398
22929
|
type: Input
|
|
23399
22930
|
}], optional: [{
|
|
@@ -23405,7 +22936,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23405
22936
|
}], caseFlagStateEmitter: [{
|
|
23406
22937
|
type: Output
|
|
23407
22938
|
}] }); })();
|
|
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:
|
|
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: 11 }); })();
|
|
23409
22940
|
|
|
23410
22941
|
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
23411
22942
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -23907,7 +23438,7 @@ class CaseFlagTableComponent {
|
|
|
23907
23438
|
|
|
23908
23439
|
const _c0$r = a0 => ({ "form-group-error": a0 });
|
|
23909
23440
|
function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
23910
|
-
i0.ɵɵelementStart(0, "div",
|
|
23441
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
23911
23442
|
i0.ɵɵtext(2);
|
|
23912
23443
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23913
23444
|
i0.ɵɵelementEnd();
|
|
@@ -23922,8 +23453,8 @@ function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23922
23453
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.manageCaseFlagSelectedErrorMessage), " ");
|
|
23923
23454
|
} }
|
|
23924
23455
|
function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
23925
|
-
i0.ɵɵelementStart(0, "div",
|
|
23926
|
-
i0.ɵɵelement(1, "input",
|
|
23456
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
23457
|
+
i0.ɵɵelement(1, "input", 12)(2, "label", 13);
|
|
23927
23458
|
i0.ɵɵpipe(3, "manageCaseFlagsLabelDisplay");
|
|
23928
23459
|
i0.ɵɵelementEnd();
|
|
23929
23460
|
} if (rf & 2) {
|
|
@@ -23937,7 +23468,18 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
23937
23468
|
i0.ɵɵpropertyInterpolate1("for", "flag-selection-", i_r3, "");
|
|
23938
23469
|
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(3, 8, flagDisplay_r2), i0.ɵɵsanitizeHtml);
|
|
23939
23470
|
} }
|
|
23940
|
-
|
|
23471
|
+
function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
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 {
|
|
23941
23483
|
formGroup;
|
|
23942
23484
|
flagsData;
|
|
23943
23485
|
caseTitle;
|
|
@@ -23953,12 +23495,6 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23953
23495
|
excludedFlagStatuses = [CaseFlagStatus.INACTIVE, CaseFlagStatus.NOT_APPROVED];
|
|
23954
23496
|
ngOnInit() {
|
|
23955
23497
|
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
|
-
}
|
|
23962
23498
|
// Map flags instances to objects for display, filtering out any where the original status is either "Inactive" or
|
|
23963
23499
|
// "Not approved"
|
|
23964
23500
|
/* istanbul ignore else */
|
|
@@ -23968,7 +23504,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23968
23504
|
if (flagsInstance.flags.details && flagsInstance.flags.details.length > 0) {
|
|
23969
23505
|
displayData = [
|
|
23970
23506
|
...displayData,
|
|
23971
|
-
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance
|
|
23507
|
+
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance))
|
|
23972
23508
|
];
|
|
23973
23509
|
}
|
|
23974
23510
|
return displayData;
|
|
@@ -23984,7 +23520,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23984
23520
|
this.onNoFlagsError();
|
|
23985
23521
|
}
|
|
23986
23522
|
}
|
|
23987
|
-
mapFlagDetailForDisplay(flagDetail, flagsInstance
|
|
23523
|
+
mapFlagDetailForDisplay(flagDetail, flagsInstance) {
|
|
23988
23524
|
// Reset the flag status with the original persisted status. This is needed because ngOnInit() needs to filter
|
|
23989
23525
|
// out any "Inactive" or "Not approved" flags based on their status *before* modification. If the user changes a
|
|
23990
23526
|
// flag's status then decides to return to the start of the flag update journey, the flag's status would no
|
|
@@ -24007,9 +23543,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24007
23543
|
}
|
|
24008
23544
|
if (formattedValue && FieldsUtils.isNonEmptyObject(formattedValue)) {
|
|
24009
23545
|
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;
|
|
24011
23546
|
if (originalFlagDetail) {
|
|
24012
|
-
originalStatus =
|
|
23547
|
+
originalStatus = originalFlagDetail.value?.status;
|
|
24013
23548
|
flagDetail.flagComment = originalFlagDetail.value?.flagComment;
|
|
24014
23549
|
flagDetail.flagComment_cy = originalFlagDetail.value?.flagComment_cy;
|
|
24015
23550
|
flagDetail.otherDescription = originalFlagDetail.value?.otherDescription;
|
|
@@ -24078,14 +23613,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24078
23613
|
errorMessages: this.errorMessages
|
|
24079
23614
|
});
|
|
24080
23615
|
}
|
|
24081
|
-
|
|
24082
|
-
|
|
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) {
|
|
23616
|
+
static ɵfac = function ManageCaseFlagsComponent_Factory(t) { return new (t || ManageCaseFlagsComponent)(); };
|
|
23617
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ManageCaseFlagsComponent, selectors: [["ccd-manage-case-flags"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", caseTitle: "caseTitle", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "manage-case-flag-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "manage-case-flag-heading", 1, "govuk-fieldset__heading"], ["id", "manage-case-flag-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "manage-case-flag-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for", "innerHtml"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function ManageCaseFlagsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24089
23618
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24090
23619
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24091
23620
|
i0.ɵɵtext(5);
|
|
@@ -24096,21 +23625,24 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24096
23625
|
i0.ɵɵtemplate(9, ManageCaseFlagsComponent_div_9_Template, 4, 10, "div", 7);
|
|
24097
23626
|
i0.ɵɵelementEnd()()();
|
|
24098
23627
|
i0.ɵɵelementContainerEnd();
|
|
23628
|
+
i0.ɵɵtemplate(10, ManageCaseFlagsComponent_div_10_Template, 4, 3, "div", 8);
|
|
24099
23629
|
} if (rf & 2) {
|
|
24100
23630
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24101
23631
|
i0.ɵɵadvance();
|
|
24102
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23632
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$r, ctx.errorMessages.length > 0));
|
|
24103
23633
|
i0.ɵɵadvance(4);
|
|
24104
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
23634
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
24105
23635
|
i0.ɵɵadvance(2);
|
|
24106
23636
|
i0.ɵɵproperty("ngIf", ctx.manageCaseFlagSelectedErrorMessage);
|
|
24107
23637
|
i0.ɵɵadvance(2);
|
|
24108
23638
|
i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
|
|
23639
|
+
i0.ɵɵadvance();
|
|
23640
|
+
i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
24109
23641
|
} }, styles: [".flag-name-and-description{font-weight:700}\n"], encapsulation: 2 });
|
|
24110
23642
|
}
|
|
24111
23643
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
24112
23644
|
type: Component,
|
|
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"] }]
|
|
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>\n\n<div class=\"govuk-button-group\" *ngIf=\"!noFlagsError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".flag-name-and-description{font-weight:700}\n"] }]
|
|
24114
23646
|
}], null, { formGroup: [{
|
|
24115
23647
|
type: Input
|
|
24116
23648
|
}], flagsData: [{
|
|
@@ -24122,7 +23654,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24122
23654
|
}], caseFlagStateEmitter: [{
|
|
24123
23655
|
type: Output
|
|
24124
23656
|
}] }); })();
|
|
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:
|
|
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: 14 }); })();
|
|
24126
23658
|
|
|
24127
23659
|
// tslint:disable:variable-name
|
|
24128
23660
|
/**
|
|
@@ -24187,7 +23719,7 @@ var SearchLanguageInterpreterControlNames;
|
|
|
24187
23719
|
|
|
24188
23720
|
const _c0$q = a0 => ({ "form-group-error": a0 });
|
|
24189
23721
|
function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24190
|
-
i0.ɵɵelementStart(0, "div",
|
|
23722
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 21);
|
|
24191
23723
|
i0.ɵɵtext(2);
|
|
24192
23724
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24193
23725
|
i0.ɵɵelementEnd();
|
|
@@ -24202,7 +23734,7 @@ function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf &
|
|
|
24202
23734
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotSelectedErrorMessage), " ");
|
|
24203
23735
|
} }
|
|
24204
23736
|
function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24205
|
-
i0.ɵɵelementStart(0, "div",
|
|
23737
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 21);
|
|
24206
23738
|
i0.ɵɵtext(2);
|
|
24207
23739
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24208
23740
|
i0.ɵɵelementEnd();
|
|
@@ -24217,7 +23749,7 @@ function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf &
|
|
|
24217
23749
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageEnteredInBothFieldsErrorMessage), " ");
|
|
24218
23750
|
} }
|
|
24219
23751
|
function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
24220
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23752
|
+
i0.ɵɵelementStart(0, "mat-option", 23);
|
|
24221
23753
|
i0.ɵɵtext(1);
|
|
24222
23754
|
i0.ɵɵpipe(2, "languageInterpreterDisplay");
|
|
24223
23755
|
i0.ɵɵelementEnd();
|
|
@@ -24228,7 +23760,7 @@ function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if
|
|
|
24228
23760
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, language_r3), " ");
|
|
24229
23761
|
} }
|
|
24230
23762
|
function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if (rf & 1) {
|
|
24231
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23763
|
+
i0.ɵɵelementStart(0, "mat-option", 24);
|
|
24232
23764
|
i0.ɵɵtext(1);
|
|
24233
23765
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24234
23766
|
i0.ɵɵelementEnd();
|
|
@@ -24237,7 +23769,7 @@ function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if
|
|
|
24237
23769
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "No results found"));
|
|
24238
23770
|
} }
|
|
24239
23771
|
function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24240
|
-
i0.ɵɵelementStart(0, "div",
|
|
23772
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "span", 21);
|
|
24241
23773
|
i0.ɵɵtext(2);
|
|
24242
23774
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24243
23775
|
i0.ɵɵelementEnd();
|
|
@@ -24252,7 +23784,7 @@ function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if
|
|
|
24252
23784
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotEnteredErrorMessage), " ");
|
|
24253
23785
|
} }
|
|
24254
23786
|
function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24255
|
-
i0.ɵɵelementStart(0, "div",
|
|
23787
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 21);
|
|
24256
23788
|
i0.ɵɵtext(2);
|
|
24257
23789
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24258
23790
|
i0.ɵɵelementEnd();
|
|
@@ -24267,12 +23799,12 @@ function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if
|
|
|
24267
23799
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageCharLimitErrorMessage), " ");
|
|
24268
23800
|
} }
|
|
24269
23801
|
function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
24270
|
-
i0.ɵɵelementStart(0, "div",
|
|
23802
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 2)(2, "label", 26);
|
|
24271
23803
|
i0.ɵɵtext(3);
|
|
24272
23804
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24273
23805
|
i0.ɵɵelementEnd();
|
|
24274
|
-
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div",
|
|
24275
|
-
i0.ɵɵelement(7, "input",
|
|
23806
|
+
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 27)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 28);
|
|
23807
|
+
i0.ɵɵelement(7, "input", 29);
|
|
24276
23808
|
i0.ɵɵelementEnd()();
|
|
24277
23809
|
} if (rf & 2) {
|
|
24278
23810
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -24287,7 +23819,7 @@ function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf &
|
|
|
24287
23819
|
i0.ɵɵadvance();
|
|
24288
23820
|
i0.ɵɵproperty("name", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
|
|
24289
23821
|
} }
|
|
24290
|
-
class SearchLanguageInterpreterComponent
|
|
23822
|
+
class SearchLanguageInterpreterComponent {
|
|
24291
23823
|
rpxTranslationService;
|
|
24292
23824
|
get searchLanguageInterpreterStep() {
|
|
24293
23825
|
return SearchLanguageInterpreterStep;
|
|
@@ -24309,8 +23841,7 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24309
23841
|
noResults = false;
|
|
24310
23842
|
languageMaxCharLimit = 80;
|
|
24311
23843
|
signLanguageFlagCode = 'RA0042';
|
|
24312
|
-
constructor(rpxTranslationService
|
|
24313
|
-
super(multipageComponentStateService);
|
|
23844
|
+
constructor(rpxTranslationService) {
|
|
24314
23845
|
this.rpxTranslationService = rpxTranslationService;
|
|
24315
23846
|
}
|
|
24316
23847
|
ngOnInit() {
|
|
@@ -24410,14 +23941,8 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24410
23941
|
!language.value && language.value_cy.toLowerCase().includes(searchTerm.toLowerCase(), 0))
|
|
24411
23942
|
: [];
|
|
24412
23943
|
}
|
|
24413
|
-
|
|
24414
|
-
|
|
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) {
|
|
23944
|
+
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
23945
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchLanguageInterpreterComponent, selectors: [["ccd-search-language-interpreter"]], inputs: { formGroup: "formGroup", flagType: "flagType" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 29, vars: 28, consts: [["autoSearchLanguage", "matAutocomplete"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], ["id", "language-search-box-hint", 1, "govuk-hint"], [1, "auto-complete-container"], ["id", "language-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-entered-in-both-fields-error-message", "class", "govuk-error-message", 4, "ngIf"], ["aria-label", "Language search box", "matInput", "", "type", "text", 1, "govuk-input", "search-language__input", 3, "formControlName", "matAutocomplete"], ["autoActiveFirstOption", "", 1, "mat-autocomplete-panel-extend", 3, "displayWith"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes", "govuk-checkboxes--small", "govuk-checkboxes--conditional"], [1, "govuk-radios__item"], ["id", "enter-language-manually", "name", "enter-language-manually", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change"], ["for", "enter-language-manually", 1, "govuk-label", "govuk-checkboxes__label"], ["class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "language-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "language-entered-in-both-fields-error-message", 1, "govuk-error-message"], [3, "value"], ["disabled", ""], [1, "govuk-radios__conditional"], ["for", "manual-language-entry", 1, "govuk-label"], ["id", "language-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-char-limit-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "manual-language-entry", "type", "text", 1, "govuk-input", "govuk-input--width-20", 3, "name", "formControlName"], ["id", "language-not-entered-error-message", 1, "govuk-error-message"], ["id", "language-char-limit-error-message", 1, "govuk-error-message"]], template: function SearchLanguageInterpreterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24421
23946
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
24422
23947
|
i0.ɵɵelementContainerStart(0, 1);
|
|
24423
23948
|
i0.ɵɵelementStart(1, "div", 2)(2, "h1", 3)(3, "label", 4);
|
|
@@ -24446,17 +23971,22 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24446
23971
|
i0.ɵɵtemplate(24, SearchLanguageInterpreterComponent_div_24_Template, 8, 10, "div", 17);
|
|
24447
23972
|
i0.ɵɵelementEnd()();
|
|
24448
23973
|
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()();
|
|
24449
23979
|
} if (rf & 2) {
|
|
24450
23980
|
const autoSearchLanguage_r4 = i0.ɵɵreference(14);
|
|
24451
23981
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24452
23982
|
i0.ɵɵadvance();
|
|
24453
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23983
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
24454
23984
|
i0.ɵɵadvance(2);
|
|
24455
23985
|
i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
|
|
24456
23986
|
i0.ɵɵadvance();
|
|
24457
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
23987
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 15, ctx.flagType, "name"), " ");
|
|
24458
23988
|
i0.ɵɵadvance(3);
|
|
24459
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
23989
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 18, ctx.searchLanguageInterpreterHint), " ");
|
|
24460
23990
|
i0.ɵɵadvance(3);
|
|
24461
23991
|
i0.ɵɵproperty("ngIf", ctx.languageNotSelectedErrorMessage);
|
|
24462
23992
|
i0.ɵɵadvance();
|
|
@@ -24466,30 +23996,32 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24466
23996
|
i0.ɵɵadvance();
|
|
24467
23997
|
i0.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
24468
23998
|
i0.ɵɵadvance(2);
|
|
24469
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16,
|
|
23999
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 20, ctx.filteredLanguages$));
|
|
24470
24000
|
i0.ɵɵadvance(2);
|
|
24471
24001
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length >= ctx.minSearchCharacters);
|
|
24472
24002
|
i0.ɵɵadvance(5);
|
|
24473
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23,
|
|
24003
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
|
|
24474
24004
|
i0.ɵɵadvance(2);
|
|
24475
24005
|
i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
24006
|
+
i0.ɵɵadvance(3);
|
|
24007
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 24, "Next"));
|
|
24476
24008
|
} }, 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}"] });
|
|
24477
24009
|
}
|
|
24478
24010
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
24479
24011
|
type: Component,
|
|
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 }
|
|
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\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}\n"] }]
|
|
24013
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
24482
24014
|
type: Input
|
|
24483
24015
|
}], flagType: [{
|
|
24484
24016
|
type: Input
|
|
24485
24017
|
}], caseFlagStateEmitter: [{
|
|
24486
24018
|
type: Output
|
|
24487
24019
|
}] }); })();
|
|
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:
|
|
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: 17 }); })();
|
|
24489
24021
|
|
|
24490
24022
|
const _c0$p = a0 => ({ "form-group-error": a0 });
|
|
24491
24023
|
function SelectFlagLocationComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24492
|
-
i0.ɵɵelementStart(0, "div",
|
|
24024
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
24493
24025
|
i0.ɵɵtext(2);
|
|
24494
24026
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24495
24027
|
i0.ɵɵelementEnd();
|
|
@@ -24516,7 +24048,7 @@ function SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Templat
|
|
|
24516
24048
|
function SelectFlagLocationComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
24517
24049
|
i0.ɵɵelementContainerStart(0);
|
|
24518
24050
|
i0.ɵɵtext(1);
|
|
24519
|
-
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container",
|
|
24051
|
+
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 14);
|
|
24520
24052
|
i0.ɵɵelementContainerEnd();
|
|
24521
24053
|
} if (rf & 2) {
|
|
24522
24054
|
const flagsInstance_r2 = i0.ɵɵnextContext().$implicit;
|
|
@@ -24536,10 +24068,10 @@ function SelectFlagLocationComponent_div_9_ng_container_4_Template(rf, ctx) { if
|
|
|
24536
24068
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseLevelFlagLabel), " ");
|
|
24537
24069
|
} }
|
|
24538
24070
|
function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
24539
|
-
i0.ɵɵelementStart(0, "div",
|
|
24540
|
-
i0.ɵɵelement(1, "input",
|
|
24541
|
-
i0.ɵɵelementStart(2, "label",
|
|
24542
|
-
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container",
|
|
24071
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
24072
|
+
i0.ɵɵelement(1, "input", 12);
|
|
24073
|
+
i0.ɵɵelementStart(2, "label", 13);
|
|
24074
|
+
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container", 14)(4, SelectFlagLocationComponent_div_9_ng_container_4_Template, 3, 3, "ng-container", 14);
|
|
24543
24075
|
i0.ɵɵelementEnd()();
|
|
24544
24076
|
} if (rf & 2) {
|
|
24545
24077
|
const flagsInstance_r2 = ctx.$implicit;
|
|
@@ -24555,7 +24087,18 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
24555
24087
|
i0.ɵɵadvance();
|
|
24556
24088
|
i0.ɵɵproperty("ngIf", !flagsInstance_r2.flags.partyName);
|
|
24557
24089
|
} }
|
|
24558
|
-
|
|
24090
|
+
function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
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 {
|
|
24559
24102
|
formGroup;
|
|
24560
24103
|
flagsData;
|
|
24561
24104
|
isDisplayContextParameterExternal = false;
|
|
@@ -24630,14 +24173,8 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24630
24173
|
// Return case flag field state and error messages to the parent
|
|
24631
24174
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24632
24175
|
}
|
|
24633
|
-
|
|
24634
|
-
|
|
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) {
|
|
24176
|
+
static ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
|
|
24177
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-location-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24641
24178
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24642
24179
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24643
24180
|
i0.ɵɵtext(5);
|
|
@@ -24648,21 +24185,24 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24648
24185
|
i0.ɵɵtemplate(9, SelectFlagLocationComponent_div_9_Template, 5, 9, "div", 7);
|
|
24649
24186
|
i0.ɵɵelementEnd()()();
|
|
24650
24187
|
i0.ɵɵelementContainerEnd();
|
|
24188
|
+
i0.ɵɵtemplate(10, SelectFlagLocationComponent_div_10_Template, 4, 3, "div", 8);
|
|
24651
24189
|
} if (rf & 2) {
|
|
24652
24190
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24653
24191
|
i0.ɵɵadvance();
|
|
24654
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24192
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$p, ctx.errorMessages.length > 0));
|
|
24655
24193
|
i0.ɵɵadvance(4);
|
|
24656
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24194
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
24657
24195
|
i0.ɵɵadvance(2);
|
|
24658
24196
|
i0.ɵɵproperty("ngIf", ctx.flagLocationNotSelectedErrorMessage);
|
|
24659
24197
|
i0.ɵɵadvance(2);
|
|
24660
24198
|
i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
|
|
24199
|
+
i0.ɵɵadvance();
|
|
24200
|
+
i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
24661
24201
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24662
24202
|
}
|
|
24663
24203
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
24664
24204
|
type: Component,
|
|
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>" }]
|
|
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>\n\n<div class=\"govuk-button-group\" *ngIf=\"!caseFlagsConfigError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
24666
24206
|
}], null, { formGroup: [{
|
|
24667
24207
|
type: Input
|
|
24668
24208
|
}], flagsData: [{
|
|
@@ -24672,7 +24212,7 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24672
24212
|
}], caseFlagStateEmitter: [{
|
|
24673
24213
|
type: Output
|
|
24674
24214
|
}] }); })();
|
|
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:
|
|
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: 11 }); })();
|
|
24676
24216
|
|
|
24677
24217
|
const _c0$o = a0 => ({ "form-group-error": a0 });
|
|
24678
24218
|
const _c1$8 = a0 => ({ "govuk-input--error": a0 });
|
|
@@ -24695,7 +24235,7 @@ function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx)
|
|
|
24695
24235
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, ctx_r0.cachedFlagType, "name"), " ");
|
|
24696
24236
|
} }
|
|
24697
24237
|
function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24698
|
-
i0.ɵɵelementStart(0, "div",
|
|
24238
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
24699
24239
|
i0.ɵɵtext(2);
|
|
24700
24240
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24701
24241
|
i0.ɵɵelementEnd();
|
|
@@ -24710,9 +24250,9 @@ function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf
|
|
|
24710
24250
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeNotSelectedErrorMessage), " ");
|
|
24711
24251
|
} }
|
|
24712
24252
|
function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24713
|
-
i0.ɵɵelementStart(0, "div",
|
|
24714
|
-
i0.ɵɵelement(1, "input",
|
|
24715
|
-
i0.ɵɵelementStart(2, "label",
|
|
24253
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
24254
|
+
i0.ɵɵelement(1, "input", 16);
|
|
24255
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
24716
24256
|
i0.ɵɵtext(3);
|
|
24717
24257
|
i0.ɵɵpipe(4, "flagFieldDisplay");
|
|
24718
24258
|
i0.ɵɵelementEnd()();
|
|
@@ -24729,7 +24269,7 @@ function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (r
|
|
|
24729
24269
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(4, 8, flagType_r2, "name"), " ");
|
|
24730
24270
|
} }
|
|
24731
24271
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24732
|
-
i0.ɵɵelementStart(0, "div",
|
|
24272
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 14);
|
|
24733
24273
|
i0.ɵɵtext(2);
|
|
24734
24274
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24735
24275
|
i0.ɵɵelementEnd();
|
|
@@ -24744,9 +24284,9 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
|
|
|
24744
24284
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeErrorMessage), " ");
|
|
24745
24285
|
} }
|
|
24746
24286
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24747
|
-
i0.ɵɵelementStart(0, "div",
|
|
24748
|
-
i0.ɵɵelement(1, "input",
|
|
24749
|
-
i0.ɵɵelementStart(2, "label",
|
|
24287
|
+
i0.ɵɵelementStart(0, "div", 24);
|
|
24288
|
+
i0.ɵɵelement(1, "input", 25);
|
|
24289
|
+
i0.ɵɵelementStart(2, "label", 26);
|
|
24750
24290
|
i0.ɵɵtext(3);
|
|
24751
24291
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24752
24292
|
i0.ɵɵelementEnd()();
|
|
@@ -24758,14 +24298,14 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
24758
24298
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
24759
24299
|
} }
|
|
24760
24300
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24761
|
-
i0.ɵɵelementStart(0, "div",
|
|
24301
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 4)(2, "label", 19);
|
|
24762
24302
|
i0.ɵɵtext(3);
|
|
24763
24303
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24764
24304
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24765
24305
|
i0.ɵɵelementEnd();
|
|
24766
|
-
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div",
|
|
24767
|
-
i0.ɵɵelement(7, "input",
|
|
24768
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div",
|
|
24306
|
+
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
|
|
24307
|
+
i0.ɵɵelement(7, "input", 21);
|
|
24308
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
|
|
24769
24309
|
i0.ɵɵelementEnd()();
|
|
24770
24310
|
} if (rf & 2) {
|
|
24771
24311
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -24781,13 +24321,13 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
24781
24321
|
i0.ɵɵproperty("ngIf", !ctx_r0.isDisplayContextParameterExternal && !ctx_r0.isCaseLevelFlag && ctx_r0.isDisplayContextParameter2Point1Enabled);
|
|
24782
24322
|
} }
|
|
24783
24323
|
function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
24784
|
-
i0.ɵɵelementContainerStart(0,
|
|
24785
|
-
i0.ɵɵelementStart(1, "div",
|
|
24786
|
-
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container",
|
|
24324
|
+
i0.ɵɵelementContainerStart(0, 3);
|
|
24325
|
+
i0.ɵɵelementStart(1, "div", 4)(2, "fieldset", 5)(3, "legend", 6)(4, "h1", 7);
|
|
24326
|
+
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 8)(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
24787
24327
|
i0.ɵɵelementEnd()();
|
|
24788
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div",
|
|
24789
|
-
i0.ɵɵelementStart(9, "div",
|
|
24790
|
-
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div",
|
|
24328
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
|
|
24329
|
+
i0.ɵɵelementStart(9, "div", 10);
|
|
24330
|
+
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div", 11)(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 12);
|
|
24791
24331
|
i0.ɵɵelementEnd()()();
|
|
24792
24332
|
i0.ɵɵelementContainerEnd();
|
|
24793
24333
|
} if (rf & 2) {
|
|
@@ -24797,7 +24337,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24797
24337
|
i0.ɵɵadvance();
|
|
24798
24338
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
24799
24339
|
i0.ɵɵadvance(4);
|
|
24800
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType
|
|
24340
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType)("ngIfElse", priorFlagTypeSelected_r4);
|
|
24801
24341
|
i0.ɵɵadvance(3);
|
|
24802
24342
|
i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
24803
24343
|
i0.ɵɵadvance(2);
|
|
@@ -24805,7 +24345,18 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24805
24345
|
i0.ɵɵadvance();
|
|
24806
24346
|
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
24807
24347
|
} }
|
|
24808
|
-
|
|
24348
|
+
function SelectFlagTypeComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
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 {
|
|
24809
24360
|
caseFlagRefdataService;
|
|
24810
24361
|
formGroup;
|
|
24811
24362
|
jurisdiction;
|
|
@@ -24827,8 +24378,6 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24827
24378
|
flagTypeControlChangesSubscription;
|
|
24828
24379
|
caseFlagFormField = CaseFlagFormFields;
|
|
24829
24380
|
isCaseLevelFlag = false;
|
|
24830
|
-
cachedRDFlagTypes;
|
|
24831
|
-
subJourneyIndex = 0;
|
|
24832
24381
|
maxCharactersForOtherFlagType = 80;
|
|
24833
24382
|
// Code for "Other" flag type as defined in Reference Data
|
|
24834
24383
|
otherFlagTypeCode = 'OT0001';
|
|
@@ -24836,16 +24385,15 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24836
24385
|
get caseFlagWizardStepTitle() {
|
|
24837
24386
|
return CaseFlagWizardStepTitle;
|
|
24838
24387
|
}
|
|
24839
|
-
constructor(caseFlagRefdataService, pageStateService) {
|
|
24840
|
-
super(pageStateService);
|
|
24841
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24842
|
-
}
|
|
24843
24388
|
get selectedFlagType() {
|
|
24844
24389
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value;
|
|
24845
24390
|
}
|
|
24846
24391
|
get otherFlagTypeSelected() {
|
|
24847
24392
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value?.flagCode === this.otherFlagTypeCode;
|
|
24848
24393
|
}
|
|
24394
|
+
constructor(caseFlagRefdataService) {
|
|
24395
|
+
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24396
|
+
}
|
|
24849
24397
|
ngOnInit() {
|
|
24850
24398
|
this.isCaseLevelFlag = this.selectedFlagsLocation?.flags?.flagsCaseFieldId === this.caseLevelCaseFlagsFieldId;
|
|
24851
24399
|
this.flagTypes = [];
|
|
@@ -24856,7 +24404,7 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24856
24404
|
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(false));
|
|
24857
24405
|
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
24858
24406
|
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.valueChanges
|
|
24859
|
-
.subscribe(
|
|
24407
|
+
.subscribe(_ => {
|
|
24860
24408
|
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.setValue('');
|
|
24861
24409
|
this.cachedPath = [];
|
|
24862
24410
|
// required to clear language interpreter
|
|
@@ -24870,8 +24418,8 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24870
24418
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
24871
24419
|
.getCaseFlagsRefdata(this.hmctsServiceId, flagType, true, this.isDisplayContextParameterExternal)
|
|
24872
24420
|
.subscribe({
|
|
24873
|
-
next:
|
|
24874
|
-
error:
|
|
24421
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24422
|
+
error: error => this.onRefdataError(error)
|
|
24875
24423
|
});
|
|
24876
24424
|
}
|
|
24877
24425
|
else {
|
|
@@ -24879,36 +24427,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24879
24427
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
|
|
24880
24428
|
.pipe(
|
|
24881
24429
|
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
24882
|
-
catchError(
|
|
24430
|
+
catchError(_ => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
|
|
24883
24431
|
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
24884
24432
|
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
24885
|
-
switchMap(
|
|
24433
|
+
switchMap(serviceDetails => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
|
|
24886
24434
|
.subscribe({
|
|
24887
|
-
next:
|
|
24888
|
-
error:
|
|
24435
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24436
|
+
error: error => this.onRefdataError(error)
|
|
24889
24437
|
});
|
|
24890
24438
|
}
|
|
24891
24439
|
}
|
|
24892
24440
|
ngOnDestroy() {
|
|
24893
24441
|
this.flagRefdata$?.unsubscribe();
|
|
24894
24442
|
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
|
-
}
|
|
24912
24443
|
}
|
|
24913
24444
|
onNext() {
|
|
24914
24445
|
// Validate form
|
|
@@ -24930,40 +24461,10 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24930
24461
|
// when displaying the next set of child flags
|
|
24931
24462
|
this.cachedFlagType = this.selectedFlagType;
|
|
24932
24463
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
24933
|
-
|
|
24934
|
-
|
|
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++;
|
|
24464
|
+
this.cachedPath?.shift();
|
|
24465
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath?.length ? this.cachedPath[0] : null, { emitEvent: false });
|
|
24942
24466
|
}
|
|
24943
24467
|
}
|
|
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
|
-
}
|
|
24967
24468
|
// Identity function for trackBy use by *ngFor for flagTypes in HTML template
|
|
24968
24469
|
identifyFlagType(_, flagType) {
|
|
24969
24470
|
return `${flagType.flagCode}_${flagType.name}_${flagType.name_cy}`;
|
|
@@ -25001,33 +24502,18 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
25001
24502
|
}
|
|
25002
24503
|
}
|
|
25003
24504
|
processFlagTypes(flagTypes) {
|
|
25004
|
-
|
|
25005
|
-
|
|
25006
|
-
this.
|
|
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
|
-
}
|
|
24505
|
+
// First (and only) object in the returned array should be the top-level "Party" flag type
|
|
24506
|
+
// The "Other" flag type should be removed from the top level if the user is external
|
|
24507
|
+
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
25023
24508
|
const formControl = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE);
|
|
25024
24509
|
if (formControl?.value) {
|
|
25025
|
-
|
|
25026
|
-
|
|
25027
|
-
|
|
25028
|
-
|
|
25029
|
-
|
|
25030
|
-
|
|
24510
|
+
// Cache Path based on existing flagCode -- needed for nested choices
|
|
24511
|
+
const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.flagTypes);
|
|
24512
|
+
this.cachedPath = [
|
|
24513
|
+
...path,
|
|
24514
|
+
foundFlagType
|
|
24515
|
+
];
|
|
24516
|
+
formControl.setValue(this.cachedPath[0], { emitEvent: false });
|
|
25031
24517
|
}
|
|
25032
24518
|
}
|
|
25033
24519
|
onRefdataError(error) {
|
|
@@ -25038,29 +24524,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
25038
24524
|
// Return case flag field state and error messages to the parent
|
|
25039
24525
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
25040
24526
|
}
|
|
25041
|
-
|
|
25042
|
-
|
|
25043
|
-
|
|
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);
|
|
24527
|
+
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
24528
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 2, vars: 2, consts: [["priorFlagTypeSelected", ""], [3, "formGroup", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24529
|
+
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1)(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 2);
|
|
25056
24530
|
} if (rf & 2) {
|
|
25057
24531
|
i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|
|
24532
|
+
i0.ɵɵadvance();
|
|
24533
|
+
i0.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
25058
24534
|
} }, styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
25059
24535
|
}
|
|
25060
24536
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
25061
24537
|
type: Component,
|
|
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
|
|
25063
|
-
}], () => [{ type: CaseFlagRefdataService }
|
|
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 isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.SELECT_CASE_FLAG_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.SELECT_CASE_FLAG | rpxTranslate)\n }}\n </ng-container>\n <ng-template #priorFlagTypeSelected>\n {{cachedFlagType | flagFieldDisplay:'name'}}\n </ng-template>\n </h1>\n </legend>\n <div id=\"flag-type-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagTypeNotSelectedErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagType of flagTypes; index as i; trackBy: identifyFlagType\">\n <input class=\"govuk-radios__input\" id=\"flag-type-{{i}}\" [name]=\"caseFlagFormField.FLAG_TYPE\"\n type=\"radio\" [value]=\"flagType\"\n [formControlName]=\"caseFlagFormField.FLAG_TYPE\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-type-{{i}}\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"otherFlagTypeSelected\" id=\"conditional-flagType\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeErrorMessage.length > 0}\">\n <label class=\"govuk-label\" for=\"other-flag-type-description\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION | rpxTranslate)\n }}\n </label>\n <div id=\"flag-type-error-message\" class=\"govuk-error-message\" *ngIf=\"flagTypeErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-half\"\n [ngClass]=\"{'govuk-input--error': flagTypeErrorMessage.length > 0}\"\n id=\"other-flag-type-description\" [name]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\" type=\"text\"\n [formControlName]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\"/>\n <div class=\"govuk-checkboxes__item govuk-!-margin-top-4\"\n *ngIf=\"!isDisplayContextParameterExternal && !isCaseLevelFlag && isDisplayContextParameter2Point1Enabled\">\n <input class=\"govuk-checkboxes__input\" id=\"is-visible-externally\" type=\"checkbox\"\n [name]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\" [formControlName]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"is-visible-externally\">\n {{'This flag should only be visible to HMCTS Staff' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!refdataError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".hidden{display:none}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
24539
|
+
}], () => [{ type: CaseFlagRefdataService }], { formGroup: [{
|
|
25064
24540
|
type: Input
|
|
25065
24541
|
}], jurisdiction: [{
|
|
25066
24542
|
type: Input
|
|
@@ -25079,35 +24555,35 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
25079
24555
|
}], flagCommentsOptionalEmitter: [{
|
|
25080
24556
|
type: Output
|
|
25081
24557
|
}] }); })();
|
|
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:
|
|
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: 18 }); })();
|
|
25083
24559
|
|
|
25084
24560
|
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
25085
24561
|
const _c1$7 = a0 => ({ "govuk-tag--grey": a0 });
|
|
25086
24562
|
function UpdateFlagComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
25087
|
-
i0.ɵɵelementStart(0, "div",
|
|
24563
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
25088
24564
|
i0.ɵɵtext(1);
|
|
25089
24565
|
i0.ɵɵpipe(2, "updateFlagTitleDisplay");
|
|
25090
24566
|
i0.ɵɵelementEnd();
|
|
25091
24567
|
} if (rf & 2) {
|
|
25092
|
-
const
|
|
24568
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25093
24569
|
i0.ɵɵadvance();
|
|
25094
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24570
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail), " ");
|
|
25095
24571
|
} }
|
|
25096
24572
|
function UpdateFlagComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25097
|
-
i0.ɵɵelementStart(0, "div",
|
|
24573
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
25098
24574
|
i0.ɵɵtext(1);
|
|
25099
24575
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
25100
24576
|
i0.ɵɵelementEnd();
|
|
25101
24577
|
} if (rf & 2) {
|
|
25102
|
-
const
|
|
24578
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25103
24579
|
i0.ɵɵadvance();
|
|
25104
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24580
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
|
|
25105
24581
|
} }
|
|
25106
24582
|
function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
25107
|
-
i0.ɵɵelementStart(0, "div",
|
|
24583
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "span", 26);
|
|
25108
24584
|
i0.ɵɵtext(2, "!");
|
|
25109
24585
|
i0.ɵɵelementEnd();
|
|
25110
|
-
i0.ɵɵelementStart(3, "strong",
|
|
24586
|
+
i0.ɵɵelementStart(3, "strong", 27)(4, "span", 28);
|
|
25111
24587
|
i0.ɵɵtext(5);
|
|
25112
24588
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25113
24589
|
i0.ɵɵelementEnd();
|
|
@@ -25115,14 +24591,14 @@ function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf &
|
|
|
25115
24591
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
25116
24592
|
i0.ɵɵelementEnd()();
|
|
25117
24593
|
} if (rf & 2) {
|
|
25118
|
-
const
|
|
24594
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25119
24595
|
i0.ɵɵadvance(5);
|
|
25120
24596
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
25121
24597
|
i0.ɵɵadvance(2);
|
|
25122
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4,
|
|
24598
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
|
|
25123
24599
|
} }
|
|
25124
24600
|
function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
25125
|
-
i0.ɵɵelementStart(0, "div",
|
|
24601
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span", 30);
|
|
25126
24602
|
i0.ɵɵtext(2);
|
|
25127
24603
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25128
24604
|
i0.ɵɵelementEnd();
|
|
@@ -25130,14 +24606,14 @@ function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf &
|
|
|
25130
24606
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25131
24607
|
i0.ɵɵelementEnd();
|
|
25132
24608
|
} if (rf & 2) {
|
|
25133
|
-
const
|
|
24609
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25134
24610
|
i0.ɵɵadvance(2);
|
|
25135
24611
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25136
24612
|
i0.ɵɵadvance(2);
|
|
25137
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24613
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsNotEnteredErrorMessage), " ");
|
|
25138
24614
|
} }
|
|
25139
24615
|
function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
25140
|
-
i0.ɵɵelementStart(0, "div",
|
|
24616
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 30);
|
|
25141
24617
|
i0.ɵɵtext(2);
|
|
25142
24618
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25143
24619
|
i0.ɵɵelementEnd();
|
|
@@ -25145,64 +24621,64 @@ function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf &
|
|
|
25145
24621
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25146
24622
|
i0.ɵɵelementEnd();
|
|
25147
24623
|
} if (rf & 2) {
|
|
25148
|
-
const
|
|
24624
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25149
24625
|
i0.ɵɵadvance(2);
|
|
25150
24626
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25151
24627
|
i0.ɵɵadvance(2);
|
|
25152
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24628
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsCharLimitErrorMessage), " ");
|
|
25153
24629
|
} }
|
|
25154
24630
|
function UpdateFlagComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
25155
24631
|
i0.ɵɵelementContainerStart(0);
|
|
25156
|
-
i0.ɵɵelementStart(1, "div",
|
|
24632
|
+
i0.ɵɵelementStart(1, "div", 19);
|
|
25157
24633
|
i0.ɵɵtext(2);
|
|
25158
24634
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25159
24635
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25160
24636
|
i0.ɵɵelementEnd();
|
|
25161
|
-
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div",
|
|
25162
|
-
i0.ɵɵelementStart(8, "textarea",
|
|
24637
|
+
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div", 20)(6, UpdateFlagComponent_ng_container_15_div_6_Template, 6, 6, "div", 21)(7, UpdateFlagComponent_ng_container_15_div_7_Template, 6, 6, "div", 22);
|
|
24638
|
+
i0.ɵɵelementStart(8, "textarea", 23);
|
|
25163
24639
|
i0.ɵɵtext(9, " ");
|
|
25164
24640
|
i0.ɵɵelementEnd();
|
|
25165
|
-
i0.ɵɵelementStart(10, "div",
|
|
24641
|
+
i0.ɵɵelementStart(10, "div", 24);
|
|
25166
24642
|
i0.ɵɵtext(11);
|
|
25167
24643
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
25168
24644
|
i0.ɵɵelementEnd();
|
|
25169
24645
|
i0.ɵɵelementContainerEnd();
|
|
25170
24646
|
} if (rf & 2) {
|
|
25171
|
-
const
|
|
24647
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25172
24648
|
i0.ɵɵadvance(2);
|
|
25173
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24649
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.internalUserUpdate ? i0.ɵɵpipeBind1(3, 8, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0.ɵɵpipeBind1(4, 10, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
|
|
25174
24650
|
i0.ɵɵadvance(3);
|
|
25175
|
-
i0.ɵɵproperty("ngIf",
|
|
24651
|
+
i0.ɵɵproperty("ngIf", ctx_r1.internalUser2Point1EnabledUpdate && ctx_r1.externallyVisibleFlag);
|
|
25176
24652
|
i0.ɵɵadvance();
|
|
25177
|
-
i0.ɵɵproperty("ngIf",
|
|
24653
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsNotEnteredErrorMessage);
|
|
25178
24654
|
i0.ɵɵadvance();
|
|
25179
|
-
i0.ɵɵproperty("ngIf",
|
|
24655
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsCharLimitErrorMessage);
|
|
25180
24656
|
i0.ɵɵadvance();
|
|
25181
|
-
i0.ɵɵproperty("id",
|
|
24657
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.COMMENTS)("name", ctx_r1.caseFlagFormFields.COMMENTS)("formControlName", ctx_r1.caseFlagFormFields.COMMENTS);
|
|
25182
24658
|
i0.ɵɵadvance(3);
|
|
25183
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12,
|
|
24659
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25184
24660
|
} }
|
|
25185
24661
|
function UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25186
24662
|
i0.ɵɵelementContainer(0);
|
|
25187
24663
|
} }
|
|
25188
24664
|
function UpdateFlagComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
25189
24665
|
i0.ɵɵelementContainerStart(0);
|
|
25190
|
-
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
24666
|
+
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
|
|
25191
24667
|
i0.ɵɵelementContainerEnd();
|
|
25192
24668
|
} if (rf & 2) {
|
|
25193
24669
|
i0.ɵɵnextContext(2);
|
|
25194
|
-
const
|
|
24670
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25195
24671
|
i0.ɵɵadvance();
|
|
25196
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24672
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25197
24673
|
} }
|
|
25198
24674
|
function UpdateFlagComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
25199
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container",
|
|
24675
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 32);
|
|
25200
24676
|
} if (rf & 2) {
|
|
25201
|
-
const
|
|
25202
|
-
i0.ɵɵproperty("ngIf",
|
|
24677
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24678
|
+
i0.ɵɵproperty("ngIf", ctx_r1.externalUserUpdate);
|
|
25203
24679
|
} }
|
|
25204
24680
|
function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
25205
|
-
i0.ɵɵelementStart(0, "div",
|
|
24681
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "span", 30);
|
|
25206
24682
|
i0.ɵɵtext(2);
|
|
25207
24683
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25208
24684
|
i0.ɵɵelementEnd();
|
|
@@ -25210,14 +24686,14 @@ function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1
|
|
|
25210
24686
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25211
24687
|
i0.ɵɵelementEnd();
|
|
25212
24688
|
} if (rf & 2) {
|
|
25213
|
-
const
|
|
24689
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25214
24690
|
i0.ɵɵadvance(2);
|
|
25215
24691
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25216
24692
|
i0.ɵɵadvance(2);
|
|
25217
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24693
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonNotEnteredErrorMessage), " ");
|
|
25218
24694
|
} }
|
|
25219
24695
|
function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
25220
|
-
i0.ɵɵelementStart(0, "div",
|
|
24696
|
+
i0.ɵɵelementStart(0, "div", 39)(1, "span", 30);
|
|
25221
24697
|
i0.ɵɵtext(2);
|
|
25222
24698
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25223
24699
|
i0.ɵɵelementEnd();
|
|
@@ -25225,100 +24701,100 @@ function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
25225
24701
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25226
24702
|
i0.ɵɵelementEnd();
|
|
25227
24703
|
} if (rf & 2) {
|
|
25228
|
-
const
|
|
24704
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25229
24705
|
i0.ɵɵadvance(2);
|
|
25230
24706
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25231
24707
|
i0.ɵɵadvance(2);
|
|
25232
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24708
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonCharLimitErrorMessage), " ");
|
|
25233
24709
|
} }
|
|
25234
24710
|
function UpdateFlagComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
25235
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div",
|
|
25236
|
-
i0.ɵɵelementStart(2, "textarea",
|
|
24711
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div", 34)(1, UpdateFlagComponent_ng_template_18_div_1_Template, 6, 6, "div", 35);
|
|
24712
|
+
i0.ɵɵelementStart(2, "textarea", 36);
|
|
25237
24713
|
i0.ɵɵtext(3, " ");
|
|
25238
24714
|
i0.ɵɵelementEnd();
|
|
25239
|
-
i0.ɵɵelementStart(4, "div",
|
|
24715
|
+
i0.ɵɵelementStart(4, "div", 37);
|
|
25240
24716
|
i0.ɵɵtext(5);
|
|
25241
24717
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25242
24718
|
i0.ɵɵelementEnd();
|
|
25243
24719
|
} if (rf & 2) {
|
|
25244
|
-
const
|
|
25245
|
-
i0.ɵɵproperty("ngIf",
|
|
24720
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24721
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonNotEnteredErrorMessage);
|
|
25246
24722
|
i0.ɵɵadvance();
|
|
25247
|
-
i0.ɵɵproperty("ngIf",
|
|
24723
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonCharLimitErrorMessage);
|
|
25248
24724
|
i0.ɵɵadvance();
|
|
25249
|
-
i0.ɵɵproperty("id",
|
|
24725
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON);
|
|
25250
24726
|
i0.ɵɵadvance(3);
|
|
25251
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6,
|
|
24727
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25252
24728
|
} }
|
|
25253
24729
|
function UpdateFlagComponent_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
25254
|
-
i0.ɵɵelementStart(0, "div",
|
|
25255
|
-
i0.ɵɵelement(1, "input",
|
|
25256
|
-
i0.ɵɵelementStart(2, "label",
|
|
24730
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
24731
|
+
i0.ɵɵelement(1, "input", 48);
|
|
24732
|
+
i0.ɵɵelementStart(2, "label", 49);
|
|
25257
24733
|
i0.ɵɵtext(3);
|
|
25258
24734
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25259
24735
|
i0.ɵɵelementEnd()();
|
|
25260
24736
|
} if (rf & 2) {
|
|
25261
|
-
const
|
|
25262
|
-
const
|
|
24737
|
+
const status_r4 = ctx.$implicit;
|
|
24738
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25263
24739
|
i0.ɵɵadvance();
|
|
25264
|
-
i0.ɵɵproperty("id",
|
|
24740
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4)("name", ctx_r1.caseFlagFormFields.STATUS)("formControlName", ctx_r1.caseFlagFormFields.STATUS)("value", status_r4);
|
|
25265
24741
|
i0.ɵɵadvance();
|
|
25266
|
-
i0.ɵɵproperty("for",
|
|
24742
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4);
|
|
25267
24743
|
i0.ɵɵadvance();
|
|
25268
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6,
|
|
24744
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r1.caseFlagStatusEnum[status_r4]), " ");
|
|
25269
24745
|
} }
|
|
25270
24746
|
function UpdateFlagComponent_div_20_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
25271
24747
|
i0.ɵɵelementContainer(0);
|
|
25272
24748
|
} }
|
|
25273
24749
|
function UpdateFlagComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
25274
|
-
i0.ɵɵelementStart(0, "div",
|
|
24750
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "fieldset", 41)(2, "legend", 42)(3, "h1", 43);
|
|
25275
24751
|
i0.ɵɵtext(4);
|
|
25276
24752
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25277
24753
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25278
24754
|
i0.ɵɵelementEnd()();
|
|
25279
|
-
i0.ɵɵelementStart(7, "div",
|
|
25280
|
-
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div",
|
|
24755
|
+
i0.ɵɵelementStart(7, "div", 44);
|
|
24756
|
+
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 45);
|
|
25281
24757
|
i0.ɵɵelementEnd()();
|
|
25282
|
-
i0.ɵɵelementStart(9, "div",
|
|
24758
|
+
i0.ɵɵelementStart(9, "div", 46);
|
|
25283
24759
|
i0.ɵɵtext(10);
|
|
25284
24760
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
25285
24761
|
i0.ɵɵelementEnd();
|
|
25286
|
-
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container",
|
|
24762
|
+
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 33);
|
|
25287
24763
|
i0.ɵɵelementEnd();
|
|
25288
24764
|
} if (rf & 2) {
|
|
25289
|
-
const
|
|
25290
|
-
const
|
|
24765
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24766
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25291
24767
|
i0.ɵɵadvance(4);
|
|
25292
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6,
|
|
24768
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r1.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
|
|
25293
24769
|
i0.ɵɵadvance(3);
|
|
25294
|
-
i0.ɵɵproperty("id",
|
|
24770
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS);
|
|
25295
24771
|
i0.ɵɵadvance();
|
|
25296
|
-
i0.ɵɵproperty("ngForOf",
|
|
24772
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.validStatusProgressions);
|
|
25297
24773
|
i0.ɵɵadvance(2);
|
|
25298
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10,
|
|
24774
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r1.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
|
|
25299
24775
|
i0.ɵɵadvance(2);
|
|
25300
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24776
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25301
24777
|
} }
|
|
25302
24778
|
function UpdateFlagComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
25303
|
-
i0.ɵɵelementStart(0, "div",
|
|
25304
|
-
i0.ɵɵelement(3, "input",
|
|
25305
|
-
i0.ɵɵelementStart(4, "label",
|
|
24779
|
+
i0.ɵɵelementStart(0, "div", 50)(1, "div", 51)(2, "div", 52);
|
|
24780
|
+
i0.ɵɵelement(3, "input", 53);
|
|
24781
|
+
i0.ɵɵelementStart(4, "label", 54);
|
|
25306
24782
|
i0.ɵɵtext(5);
|
|
25307
24783
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25308
24784
|
i0.ɵɵelementEnd()()()();
|
|
25309
24785
|
} if (rf & 2) {
|
|
25310
|
-
const
|
|
24786
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25311
24787
|
i0.ɵɵadvance(3);
|
|
25312
|
-
i0.ɵɵproperty("formControlName",
|
|
24788
|
+
i0.ɵɵproperty("formControlName", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
25313
24789
|
i0.ɵɵadvance();
|
|
25314
|
-
i0.ɵɵproperty("for",
|
|
24790
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
25315
24791
|
i0.ɵɵadvance();
|
|
25316
24792
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
|
|
25317
24793
|
} }
|
|
25318
24794
|
function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
25319
|
-
const
|
|
25320
|
-
i0.ɵɵelementStart(0, "button",
|
|
25321
|
-
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
24795
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24796
|
+
i0.ɵɵelementStart(0, "button", 59);
|
|
24797
|
+
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onMakeInactive()); });
|
|
25322
24798
|
i0.ɵɵtext(1);
|
|
25323
24799
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
25324
24800
|
i0.ɵɵelementEnd();
|
|
@@ -25327,28 +24803,28 @@ function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
25327
24803
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
|
|
25328
24804
|
} }
|
|
25329
24805
|
function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
25330
|
-
i0.ɵɵelementStart(0, "div",
|
|
24806
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "p");
|
|
25331
24807
|
i0.ɵɵtext(3);
|
|
25332
24808
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25333
|
-
i0.ɵɵelementStart(5, "span")(6, "strong",
|
|
24809
|
+
i0.ɵɵelementStart(5, "span")(6, "strong", 57);
|
|
25334
24810
|
i0.ɵɵtext(7);
|
|
25335
24811
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
25336
24812
|
i0.ɵɵelementEnd()()()();
|
|
25337
|
-
i0.ɵɵelementStart(9, "div",
|
|
25338
|
-
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button",
|
|
24813
|
+
i0.ɵɵelementStart(9, "div", 56);
|
|
24814
|
+
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 58);
|
|
25339
24815
|
i0.ɵɵelementEnd()();
|
|
25340
24816
|
} if (rf & 2) {
|
|
25341
|
-
const
|
|
24817
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25342
24818
|
i0.ɵɵadvance(3);
|
|
25343
24819
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
|
|
25344
24820
|
i0.ɵɵadvance(3);
|
|
25345
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7,
|
|
24821
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
25346
24822
|
i0.ɵɵadvance();
|
|
25347
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6,
|
|
24823
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
|
|
25348
24824
|
i0.ɵɵadvance(3);
|
|
25349
|
-
i0.ɵɵproperty("ngIf",
|
|
24825
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
25350
24826
|
} }
|
|
25351
|
-
class UpdateFlagComponent
|
|
24827
|
+
class UpdateFlagComponent {
|
|
25352
24828
|
rpxTranslationService;
|
|
25353
24829
|
formGroup;
|
|
25354
24830
|
displayContextParameter;
|
|
@@ -25374,8 +24850,7 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25374
24850
|
get externallyVisibleFlag() {
|
|
25375
24851
|
return this.selectedFlag.flagDetailDisplay.visibility?.toLowerCase() === 'external';
|
|
25376
24852
|
}
|
|
25377
|
-
constructor(rpxTranslationService
|
|
25378
|
-
super(multipageComponentStateService);
|
|
24853
|
+
constructor(rpxTranslationService) {
|
|
25379
24854
|
this.rpxTranslationService = rpxTranslationService;
|
|
25380
24855
|
}
|
|
25381
24856
|
ngOnInit() {
|
|
@@ -25522,14 +24997,9 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25522
24997
|
});
|
|
25523
24998
|
}
|
|
25524
24999
|
}
|
|
25525
|
-
|
|
25526
|
-
|
|
25527
|
-
|
|
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) {
|
|
25000
|
+
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
25001
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 27, vars: 25, consts: [["externalUser", ""], ["updateFlagStatusReason", ""], [3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25002
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
25533
25003
|
i0.ɵɵelementContainerStart(0, 2);
|
|
25534
25004
|
i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h1", 5)(4, "label", 6);
|
|
25535
25005
|
i0.ɵɵtext(5);
|
|
@@ -25547,46 +25017,53 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25547
25017
|
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);
|
|
25548
25018
|
i0.ɵɵelementEnd()();
|
|
25549
25019
|
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()();
|
|
25550
25025
|
} if (rf & 2) {
|
|
25551
|
-
const
|
|
25026
|
+
const externalUser_r6 = i0.ɵɵreference(17);
|
|
25552
25027
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25553
25028
|
i0.ɵɵadvance(2);
|
|
25554
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25029
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$n, ctx.errorMessages.length > 0));
|
|
25555
25030
|
i0.ɵɵadvance(3);
|
|
25556
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25031
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
25557
25032
|
i0.ɵɵadvance(2);
|
|
25558
25033
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25559
25034
|
i0.ɵɵadvance(2);
|
|
25560
25035
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25561
25036
|
i0.ɵɵadvance();
|
|
25562
|
-
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11,
|
|
25037
|
+
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11, 15, ctx.updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL) : i0.ɵɵpipeBind1(12, 17, ctx.updateFlagTitle) + i0.ɵɵpipeBind1(13, 19, " comments"), " ");
|
|
25563
25038
|
i0.ɵɵadvance(4);
|
|
25564
25039
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25565
25040
|
i0.ɵɵadvance();
|
|
25566
|
-
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse",
|
|
25041
|
+
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r6);
|
|
25567
25042
|
i0.ɵɵadvance(5);
|
|
25568
25043
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25569
25044
|
i0.ɵɵadvance();
|
|
25570
25045
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25571
25046
|
i0.ɵɵadvance();
|
|
25572
25047
|
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate);
|
|
25048
|
+
i0.ɵɵadvance(3);
|
|
25049
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Next"), " ");
|
|
25573
25050
|
} }, encapsulation: 2 });
|
|
25574
25051
|
}
|
|
25575
25052
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
25576
25053
|
type: Component,
|
|
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 }
|
|
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>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
|
|
25055
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
25579
25056
|
type: Input
|
|
25580
25057
|
}], displayContextParameter: [{
|
|
25581
25058
|
type: Input
|
|
25582
25059
|
}], caseFlagStateEmitter: [{
|
|
25583
25060
|
type: Output
|
|
25584
25061
|
}] }); })();
|
|
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:
|
|
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: 20 }); })();
|
|
25586
25063
|
|
|
25587
25064
|
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
25588
25065
|
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25589
|
-
i0.ɵɵelementStart(0, "div",
|
|
25066
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 20);
|
|
25590
25067
|
i0.ɵɵtext(2);
|
|
25591
25068
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25592
25069
|
i0.ɵɵelementEnd();
|
|
@@ -25601,7 +25078,7 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
|
|
|
25601
25078
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
|
|
25602
25079
|
} }
|
|
25603
25080
|
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
25604
|
-
i0.ɵɵelementStart(0, "div",
|
|
25081
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 20);
|
|
25605
25082
|
i0.ɵɵtext(2);
|
|
25606
25083
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25607
25084
|
i0.ɵɵelementEnd();
|
|
@@ -25616,7 +25093,7 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
25616
25093
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
|
|
25617
25094
|
} }
|
|
25618
25095
|
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
25619
|
-
i0.ɵɵelementStart(0, "div",
|
|
25096
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 20);
|
|
25620
25097
|
i0.ɵɵtext(2);
|
|
25621
25098
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25622
25099
|
i0.ɵɵelementEnd();
|
|
@@ -25631,7 +25108,7 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
|
|
|
25631
25108
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
25632
25109
|
} }
|
|
25633
25110
|
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
25634
|
-
i0.ɵɵelementStart(0, "div",
|
|
25111
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 20);
|
|
25635
25112
|
i0.ɵɵtext(2);
|
|
25636
25113
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25637
25114
|
i0.ɵɵelementEnd();
|
|
@@ -25645,7 +25122,7 @@ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf
|
|
|
25645
25122
|
i0.ɵɵadvance(2);
|
|
25646
25123
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsWelshCharLimitErrorMessage), " ");
|
|
25647
25124
|
} }
|
|
25648
|
-
class UpdateFlagAddTranslationFormComponent
|
|
25125
|
+
class UpdateFlagAddTranslationFormComponent {
|
|
25649
25126
|
formGroup;
|
|
25650
25127
|
caseFlagStateEmitter = new EventEmitter();
|
|
25651
25128
|
selectedFlag;
|
|
@@ -25719,14 +25196,8 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25719
25196
|
});
|
|
25720
25197
|
}
|
|
25721
25198
|
}
|
|
25722
|
-
|
|
25723
|
-
|
|
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) {
|
|
25199
|
+
static ɵfac = function UpdateFlagAddTranslationFormComponent_Factory(t) { return new (t || UpdateFlagAddTranslationFormComponent)(); };
|
|
25200
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 54, vars: 57, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25730
25201
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25731
25202
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
25732
25203
|
i0.ɵɵtext(5);
|
|
@@ -25785,71 +25256,78 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25785
25256
|
i0.ɵɵpipe(49, "rpxTranslate");
|
|
25786
25257
|
i0.ɵɵelementEnd()()()();
|
|
25787
25258
|
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()();
|
|
25788
25264
|
} if (rf & 2) {
|
|
25789
25265
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25790
25266
|
i0.ɵɵadvance(2);
|
|
25791
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25267
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(55, _c0$m, ctx.errorMessages.length > 0));
|
|
25792
25268
|
i0.ɵɵadvance(3);
|
|
25793
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25269
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 33, ctx.updateFlagAddTranslationTitle), " ");
|
|
25794
25270
|
i0.ɵɵadvance(3);
|
|
25795
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
25271
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 35, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
25796
25272
|
i0.ɵɵadvance(3);
|
|
25797
25273
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25798
25274
|
i0.ɵɵadvance();
|
|
25799
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,
|
|
25275
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 37, "Other description"));
|
|
25800
25276
|
i0.ɵɵadvance(2);
|
|
25801
25277
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
|
|
25802
25278
|
i0.ɵɵadvance();
|
|
25803
25279
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25804
25280
|
i0.ɵɵadvance(3);
|
|
25805
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19,
|
|
25281
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 39, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25806
25282
|
i0.ɵɵadvance(3);
|
|
25807
25283
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25808
25284
|
i0.ɵɵadvance();
|
|
25809
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23,
|
|
25285
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 41, "Other description (Welsh)"));
|
|
25810
25286
|
i0.ɵɵadvance(2);
|
|
25811
25287
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
25812
25288
|
i0.ɵɵadvance();
|
|
25813
25289
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25814
25290
|
i0.ɵɵadvance(3);
|
|
25815
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
25291
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 43, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25816
25292
|
i0.ɵɵadvance(3);
|
|
25817
25293
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25818
25294
|
i0.ɵɵadvance();
|
|
25819
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33,
|
|
25295
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 45, "Flag comments"));
|
|
25820
25296
|
i0.ɵɵadvance(2);
|
|
25821
25297
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
25822
25298
|
i0.ɵɵadvance();
|
|
25823
25299
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
25824
25300
|
i0.ɵɵadvance(3);
|
|
25825
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39,
|
|
25301
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 47, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25826
25302
|
i0.ɵɵadvance(3);
|
|
25827
25303
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25828
25304
|
i0.ɵɵadvance();
|
|
25829
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43,
|
|
25305
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 49, "Flag comments (Welsh)"));
|
|
25830
25306
|
i0.ɵɵadvance(2);
|
|
25831
25307
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
25832
25308
|
i0.ɵɵadvance();
|
|
25833
25309
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25834
25310
|
i0.ɵɵadvance(3);
|
|
25835
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49,
|
|
25311
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 51, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25312
|
+
i0.ɵɵadvance(4);
|
|
25313
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 53, "Next"), " ");
|
|
25836
25314
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25837
25315
|
}
|
|
25838
25316
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
25839
25317
|
type: Component,
|
|
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
|
|
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>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
|
|
25841
25319
|
}], null, { formGroup: [{
|
|
25842
25320
|
type: Input
|
|
25843
25321
|
}], caseFlagStateEmitter: [{
|
|
25844
25322
|
type: Output
|
|
25845
25323
|
}] }); })();
|
|
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:
|
|
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: 17 }); })();
|
|
25847
25325
|
|
|
25848
25326
|
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
25849
25327
|
function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
25850
|
-
i0.ɵɵelementStart(0, "div",
|
|
25851
|
-
i0.ɵɵelement(1, "input",
|
|
25852
|
-
i0.ɵɵelementStart(2, "label",
|
|
25328
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
25329
|
+
i0.ɵɵelement(1, "input", 16);
|
|
25330
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
25853
25331
|
i0.ɵɵtext(3);
|
|
25854
25332
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25855
25333
|
i0.ɵɵelementEnd()();
|
|
@@ -25866,7 +25344,7 @@ function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
25866
25344
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r2.caseFlagStatusEnum[status_r1]), " ");
|
|
25867
25345
|
} }
|
|
25868
25346
|
function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
25869
|
-
i0.ɵɵelementStart(0, "div",
|
|
25347
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
25870
25348
|
i0.ɵɵtext(2);
|
|
25871
25349
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25872
25350
|
i0.ɵɵelementEnd();
|
|
@@ -25881,7 +25359,7 @@ function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
25881
25359
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonNotEnteredErrorMessage), " ");
|
|
25882
25360
|
} }
|
|
25883
25361
|
function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25884
|
-
i0.ɵɵelementStart(0, "div",
|
|
25362
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
25885
25363
|
i0.ɵɵtext(2);
|
|
25886
25364
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25887
25365
|
i0.ɵɵelementEnd();
|
|
@@ -25895,7 +25373,7 @@ function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
25895
25373
|
i0.ɵɵadvance(2);
|
|
25896
25374
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonCharLimitErrorMessage), " ");
|
|
25897
25375
|
} }
|
|
25898
|
-
class ConfirmFlagStatusComponent
|
|
25376
|
+
class ConfirmFlagStatusComponent {
|
|
25899
25377
|
formGroup;
|
|
25900
25378
|
defaultStatus;
|
|
25901
25379
|
caseFlagStateEmitter = new EventEmitter();
|
|
@@ -25924,12 +25402,6 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25924
25402
|
// Return case flag field state and error messages to the parent
|
|
25925
25403
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
|
|
25926
25404
|
}
|
|
25927
|
-
next() {
|
|
25928
|
-
this.onNext();
|
|
25929
|
-
if (this.errorMessages.length === 0) {
|
|
25930
|
-
super.next();
|
|
25931
|
-
}
|
|
25932
|
-
}
|
|
25933
25405
|
validateTextEntry() {
|
|
25934
25406
|
this.statusReasonNotEnteredErrorMessage = null;
|
|
25935
25407
|
this.statusReasonCharLimitErrorMessage = null;
|
|
@@ -25953,8 +25425,8 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25953
25425
|
});
|
|
25954
25426
|
}
|
|
25955
25427
|
}
|
|
25956
|
-
static ɵfac =
|
|
25957
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" },
|
|
25428
|
+
static ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return new (t || ConfirmFlagStatusComponent)(); };
|
|
25429
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 23, vars: 22, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "confirm-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "confirm-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "status-reason-hint", 1, "govuk-hint"], ["id", "status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "status-reason-hint status-reason-char-limit-info", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "status-reason-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "status-reason-char-limit-error", 1, "govuk-error-message"]], template: function ConfirmFlagStatusComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25958
25430
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25959
25431
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "fieldset", 3)(4, "legend", 4)(5, "h1", 5);
|
|
25960
25432
|
i0.ɵɵtext(6);
|
|
@@ -25974,16 +25446,21 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25974
25446
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
25975
25447
|
i0.ɵɵelementEnd()()();
|
|
25976
25448
|
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()();
|
|
25977
25454
|
} if (rf & 2) {
|
|
25978
25455
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25979
25456
|
i0.ɵɵadvance(2);
|
|
25980
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25457
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$l, ctx.errorMessages.length > 0));
|
|
25981
25458
|
i0.ɵɵadvance(4);
|
|
25982
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
25459
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, ctx.confirmFlagStatusTitle), " ");
|
|
25983
25460
|
i0.ɵɵadvance(3);
|
|
25984
25461
|
i0.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
|
|
25985
25462
|
i0.ɵɵadvance(2);
|
|
25986
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12,
|
|
25463
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, ctx.statusReasonHint), " ");
|
|
25987
25464
|
i0.ɵɵadvance(2);
|
|
25988
25465
|
i0.ɵɵproperty("ngIf", ctx.statusReasonNotEnteredErrorMessage);
|
|
25989
25466
|
i0.ɵɵadvance();
|
|
@@ -25991,12 +25468,14 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25991
25468
|
i0.ɵɵadvance();
|
|
25992
25469
|
i0.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
|
|
25993
25470
|
i0.ɵɵadvance(2);
|
|
25994
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18,
|
|
25471
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, ctx.statusReasonCharLimitInfo), " ");
|
|
25472
|
+
i0.ɵɵadvance(4);
|
|
25473
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 18, "Next"));
|
|
25995
25474
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25996
25475
|
}
|
|
25997
25476
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
|
|
25998
25477
|
type: Component,
|
|
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>" }]
|
|
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>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
|
|
26000
25479
|
}], null, { formGroup: [{
|
|
26001
25480
|
type: Input
|
|
26002
25481
|
}], defaultStatus: [{
|
|
@@ -26004,7 +25483,7 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
26004
25483
|
}], caseFlagStateEmitter: [{
|
|
26005
25484
|
type: Output
|
|
26006
25485
|
}] }); })();
|
|
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:
|
|
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: 17 }); })();
|
|
26008
25487
|
|
|
26009
25488
|
class FlagFieldDisplayPipe extends AsyncPipe {
|
|
26010
25489
|
translationService;
|
|
@@ -27820,7 +27299,7 @@ class CcdPageFieldsPipe {
|
|
|
27820
27299
|
const control = dataFormGroup.controls['data'].get(key);
|
|
27821
27300
|
return control['caseField'];
|
|
27822
27301
|
}).filter(field => {
|
|
27823
|
-
return
|
|
27302
|
+
return !!page.case_fields.find(pcf => pcf.id === field.id);
|
|
27824
27303
|
}).sort((a, b) => a.order - b.order);
|
|
27825
27304
|
const rawValue = dataFormGroup.value;
|
|
27826
27305
|
const value = page.case_fields.reduce((acc, field) => {
|
|
@@ -29352,6 +28831,19 @@ function CaseEditSubmitComponent_ccd_case_event_completion_13_Template(rf, ctx)
|
|
|
29352
28831
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29353
28832
|
i0.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
29354
28833
|
} }
|
|
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
|
+
} }
|
|
29355
28847
|
// @dynamic
|
|
29356
28848
|
class CaseEditSubmitComponent {
|
|
29357
28849
|
caseEdit;
|
|
@@ -29360,10 +28852,7 @@ class CaseEditSubmitComponent {
|
|
|
29360
28852
|
route;
|
|
29361
28853
|
orderService;
|
|
29362
28854
|
profileNotifier;
|
|
29363
|
-
multipageComponentStateService;
|
|
29364
28855
|
formValidatorsService;
|
|
29365
|
-
caseFlagStateService;
|
|
29366
|
-
linkedCasesService;
|
|
29367
28856
|
eventTrigger;
|
|
29368
28857
|
editForm;
|
|
29369
28858
|
triggerText;
|
|
@@ -29399,17 +28888,14 @@ class CaseEditSubmitComponent {
|
|
|
29399
28888
|
// not been disabled.
|
|
29400
28889
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
29401
28890
|
}
|
|
29402
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier,
|
|
28891
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
|
|
29403
28892
|
this.caseEdit = caseEdit;
|
|
29404
28893
|
this.fieldsUtils = fieldsUtils;
|
|
29405
28894
|
this.caseFieldService = caseFieldService;
|
|
29406
28895
|
this.route = route;
|
|
29407
28896
|
this.orderService = orderService;
|
|
29408
28897
|
this.profileNotifier = profileNotifier;
|
|
29409
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
29410
28898
|
this.formValidatorsService = formValidatorsService;
|
|
29411
|
-
this.caseFlagStateService = caseFlagStateService;
|
|
29412
|
-
this.linkedCasesService = linkedCasesService;
|
|
29413
28899
|
}
|
|
29414
28900
|
ngOnInit() {
|
|
29415
28901
|
this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
|
|
@@ -29490,9 +28976,6 @@ class CaseEditSubmitComponent {
|
|
|
29490
28976
|
return cloneField;
|
|
29491
28977
|
}
|
|
29492
28978
|
cancel() {
|
|
29493
|
-
if (this.caseEdit.isLinkedCasesSubmission) {
|
|
29494
|
-
this.linkedCasesService.resetLinkedCaseData();
|
|
29495
|
-
}
|
|
29496
28979
|
if (this.eventTrigger.can_save_draft) {
|
|
29497
28980
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
29498
28981
|
this.caseEdit.cancelled.emit({ status: CaseEditPageComponent.RESUMED_FORM_DISCARD });
|
|
@@ -29557,13 +29040,6 @@ class CaseEditSubmitComponent {
|
|
|
29557
29040
|
return lastPage;
|
|
29558
29041
|
}
|
|
29559
29042
|
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
|
-
}
|
|
29567
29043
|
/* istanbul ignore else */
|
|
29568
29044
|
if (this.hasPrevious()) {
|
|
29569
29045
|
this.navigateToPage(this.getLastPageShown().id);
|
|
@@ -29604,8 +29080,8 @@ class CaseEditSubmitComponent {
|
|
|
29604
29080
|
}
|
|
29605
29081
|
return 'Cancel';
|
|
29606
29082
|
}
|
|
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(
|
|
29608
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls:
|
|
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: 23, vars: 21, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], [3, "eventCanBeCompleted", "eventCompletionParams"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29609
29085
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29610
29086
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
29611
29087
|
i0.ɵɵtext(2);
|
|
@@ -29619,27 +29095,24 @@ class CaseEditSubmitComponent {
|
|
|
29619
29095
|
i0.ɵɵelementStart(11, "form", 6);
|
|
29620
29096
|
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.submit()); });
|
|
29621
29097
|
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);
|
|
29622
|
-
i0.ɵɵelementStart(14, "div", 9)
|
|
29623
|
-
i0.ɵɵ
|
|
29624
|
-
i0.ɵɵ
|
|
29625
|
-
i0.ɵɵ
|
|
29626
|
-
i0.ɵɵ
|
|
29627
|
-
i0.ɵɵelementStart(18, "button", 11);
|
|
29628
|
-
i0.ɵɵtext(19);
|
|
29629
|
-
i0.ɵɵpipe(20, "rpxTranslate");
|
|
29098
|
+
i0.ɵɵelementStart(14, "div", 9);
|
|
29099
|
+
i0.ɵɵtemplate(15, CaseEditSubmitComponent_button_15_Template, 3, 4, "button", 10);
|
|
29100
|
+
i0.ɵɵelementStart(16, "button", 11);
|
|
29101
|
+
i0.ɵɵtext(17);
|
|
29102
|
+
i0.ɵɵpipe(18, "rpxTranslate");
|
|
29630
29103
|
i0.ɵɵelementEnd()();
|
|
29631
|
-
i0.ɵɵelementStart(
|
|
29632
|
-
i0.ɵɵlistener("click", function
|
|
29633
|
-
i0.ɵɵtext(
|
|
29634
|
-
i0.ɵɵpipe(
|
|
29104
|
+
i0.ɵɵelementStart(19, "p", 12)(20, "a", 13);
|
|
29105
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_a_click_20_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
|
|
29106
|
+
i0.ɵɵtext(21);
|
|
29107
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
29635
29108
|
i0.ɵɵelementEnd()()()();
|
|
29636
29109
|
} if (rf & 2) {
|
|
29637
|
-
const
|
|
29638
|
-
const
|
|
29110
|
+
const titleBlock_r9 = i0.ɵɵreference(6);
|
|
29111
|
+
const idBlock_r10 = i0.ɵɵreference(8);
|
|
29639
29112
|
i0.ɵɵadvance(2);
|
|
29640
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
29113
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 15, ctx.eventTrigger.name));
|
|
29641
29114
|
i0.ɵɵadvance(2);
|
|
29642
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
29115
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
|
|
29643
29116
|
i0.ɵɵadvance(5);
|
|
29644
29117
|
i0.ɵɵproperty("error", ctx.caseEdit.error);
|
|
29645
29118
|
i0.ɵɵadvance();
|
|
@@ -29651,24 +29124,22 @@ class CaseEditSubmitComponent {
|
|
|
29651
29124
|
i0.ɵɵadvance();
|
|
29652
29125
|
i0.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
29653
29126
|
i0.ɵɵadvance(2);
|
|
29654
|
-
i0.ɵɵproperty("
|
|
29127
|
+
i0.ɵɵproperty("ngIf", !ctx.caseEdit.isCaseFlagSubmission);
|
|
29655
29128
|
i0.ɵɵadvance();
|
|
29656
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, "Previous"), " ");
|
|
29657
|
-
i0.ɵɵadvance(2);
|
|
29658
29129
|
i0.ɵɵproperty("disabled", ctx.isDisabled);
|
|
29659
29130
|
i0.ɵɵadvance();
|
|
29660
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
29131
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 17, ctx.triggerText), " ");
|
|
29661
29132
|
i0.ɵɵadvance(3);
|
|
29662
29133
|
i0.ɵɵclassProp("disabled", ctx.caseEdit.isSubmitting);
|
|
29663
29134
|
i0.ɵɵadvance();
|
|
29664
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
29135
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 19, ctx.getCancelText()));
|
|
29665
29136
|
} }, 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%}"] });
|
|
29666
29137
|
}
|
|
29667
29138
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29668
29139
|
type: Component,
|
|
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:
|
|
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:
|
|
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\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
|
|
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: 27 }); })();
|
|
29672
29143
|
|
|
29673
29144
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
29674
29145
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -29916,8 +29387,7 @@ class CaseEditorModule {
|
|
|
29916
29387
|
SessionStorageService,
|
|
29917
29388
|
EventCompletionStateMachineService,
|
|
29918
29389
|
CaseFlagStateService,
|
|
29919
|
-
ValidPageListCaseFieldsService
|
|
29920
|
-
MultipageComponentStateService
|
|
29390
|
+
ValidPageListCaseFieldsService
|
|
29921
29391
|
], imports: [CommonModule,
|
|
29922
29392
|
RouterModule,
|
|
29923
29393
|
FormsModule,
|
|
@@ -29999,8 +29469,7 @@ class CaseEditorModule {
|
|
|
29999
29469
|
SessionStorageService,
|
|
30000
29470
|
EventCompletionStateMachineService,
|
|
30001
29471
|
CaseFlagStateService,
|
|
30002
|
-
ValidPageListCaseFieldsService
|
|
30003
|
-
MultipageComponentStateService
|
|
29472
|
+
ValidPageListCaseFieldsService
|
|
30004
29473
|
]
|
|
30005
29474
|
}]
|
|
30006
29475
|
}], null, null); })();
|
|
@@ -30032,7 +29501,7 @@ class CaseEditorModule {
|
|
|
30032
29501
|
CallbackErrorsComponent] }); })();
|
|
30033
29502
|
i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
30034
29503
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i5.NgForOf, i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
30035
|
-
CaseEditGenericErrorsComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29504
|
+
CaseEditGenericErrorsComponent]; }, function () { return [i5.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
30036
29505
|
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]; });
|
|
30037
29506
|
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]; });
|
|
30038
29507
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i5.NgIf, CaseEditComponent]; }, []);
|
|
@@ -32170,7 +31639,6 @@ class CaseEventTriggerComponent {
|
|
|
32170
31639
|
activitySubscription;
|
|
32171
31640
|
caseSubscription;
|
|
32172
31641
|
parentUrl;
|
|
32173
|
-
routerCurrentNavigation;
|
|
32174
31642
|
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32175
31643
|
this.ngZone = ngZone;
|
|
32176
31644
|
this.casesService = casesService;
|
|
@@ -32181,7 +31649,6 @@ class CaseEventTriggerComponent {
|
|
|
32181
31649
|
this.caseReferencePipe = caseReferencePipe;
|
|
32182
31650
|
this.activityPollingService = activityPollingService;
|
|
32183
31651
|
this.sessionStorageService = sessionStorageService;
|
|
32184
|
-
this.routerCurrentNavigation = this.router.getCurrentNavigation();
|
|
32185
31652
|
}
|
|
32186
31653
|
ngOnInit() {
|
|
32187
31654
|
if (this.route.snapshot.data.case) {
|
|
@@ -32260,16 +31727,8 @@ class CaseEventTriggerComponent {
|
|
|
32260
31727
|
});
|
|
32261
31728
|
}
|
|
32262
31729
|
cancel() {
|
|
32263
|
-
|
|
32264
|
-
|
|
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
|
-
}
|
|
31730
|
+
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
31731
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
|
|
32273
31732
|
}
|
|
32274
31733
|
else {
|
|
32275
31734
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -37807,5 +37266,5 @@ class TestRouteSnapshotBuilder {
|
|
|
37807
37266
|
* Generated bundle index. Do not edit.
|
|
37808
37267
|
*/
|
|
37809
37268
|
|
|
37810
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent,
|
|
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 };
|
|
37811
37270
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|