@hmcts/ccd-case-ui-toolkit 7.0.61-ungrey-back-button → 7.0.62
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 -50
- 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-editor/services/work-allocation.service.mjs +9 -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 -106
- 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 +715 -1250
- 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-editor/services/work-allocation.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);
|
|
@@ -7046,118 +7046,6 @@ class FormErrorService {
|
|
|
7046
7046
|
type: Injectable
|
|
7047
7047
|
}], null, null); })();
|
|
7048
7048
|
|
|
7049
|
-
class MultipageComponentStateService {
|
|
7050
|
-
//is journey at start will help keep track of the progress through the journey.
|
|
7051
|
-
isJourneyAtStart = false;
|
|
7052
|
-
//journey collection references an upto date list of all the journey components currently rendered!!!!
|
|
7053
|
-
journeyCollection = new Array();
|
|
7054
|
-
//the instigator references the case-edit-page component that will invoke the next and previous methods
|
|
7055
|
-
instigator = null;
|
|
7056
|
-
//each journey will store its state here. this could include form data if needed
|
|
7057
|
-
journeyState = new Map();
|
|
7058
|
-
//setJourneyComponent will be called by the app component to update the journey collection
|
|
7059
|
-
setJourneyCollection(journeyCollection) {
|
|
7060
|
-
this.journeyCollection = journeyCollection;
|
|
7061
|
-
}
|
|
7062
|
-
//getJourneyCollection will be called by the app component to get the journey collection
|
|
7063
|
-
getJourneyCollection() {
|
|
7064
|
-
return this.journeyCollection;
|
|
7065
|
-
}
|
|
7066
|
-
//addToJourneyCollection will be called from the journey
|
|
7067
|
-
addTojourneyCollection(journey) {
|
|
7068
|
-
this.journeyCollection.push(journey);
|
|
7069
|
-
}
|
|
7070
|
-
//resetJourneyCollection will be called
|
|
7071
|
-
resetJourneyCollection() {
|
|
7072
|
-
this.journeyCollection = [];
|
|
7073
|
-
}
|
|
7074
|
-
//setInstigator will be called by the app component to update the instigator
|
|
7075
|
-
setInstigator(instigator) {
|
|
7076
|
-
this.instigator = instigator;
|
|
7077
|
-
}
|
|
7078
|
-
//getInstigator will be called by the app component to get the instigator
|
|
7079
|
-
getInstigator() {
|
|
7080
|
-
return this.instigator;
|
|
7081
|
-
}
|
|
7082
|
-
//setJourneyState will be called by the journey component to update the journey state
|
|
7083
|
-
setJourneyState(journey) {
|
|
7084
|
-
this.journeyState.set(journey.journeyId, journey);
|
|
7085
|
-
}
|
|
7086
|
-
//getJourneyState will be called by the journey component to get the journey state
|
|
7087
|
-
getJourneyState(journey) {
|
|
7088
|
-
return this.journeyState.get(journey.journeyId) || null;
|
|
7089
|
-
}
|
|
7090
|
-
//resetJourneyState will be called by the journey component to reset the journey state
|
|
7091
|
-
resetJourneyState() {
|
|
7092
|
-
this.journeyState.clear();
|
|
7093
|
-
}
|
|
7094
|
-
//reset will be called to ensure that the entire state is reset
|
|
7095
|
-
reset() {
|
|
7096
|
-
this.isJourneyAtStart = false;
|
|
7097
|
-
this.journeyState.clear();
|
|
7098
|
-
this.instigator = null;
|
|
7099
|
-
this.journeyCollection = [];
|
|
7100
|
-
}
|
|
7101
|
-
//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
|
|
7102
|
-
next() {
|
|
7103
|
-
if (this.journeyCollection.length <= 0) {
|
|
7104
|
-
this.instigator?.onFinalNext();
|
|
7105
|
-
return;
|
|
7106
|
-
}
|
|
7107
|
-
const isAnyObjectNotFinished = this.journeyCollection.some((journey) => !journey.isFinished());
|
|
7108
|
-
if (!isAnyObjectNotFinished) {
|
|
7109
|
-
this.instigator?.onFinalNext();
|
|
7110
|
-
return;
|
|
7111
|
-
}
|
|
7112
|
-
for (const journey of this.journeyCollection) {
|
|
7113
|
-
if (!journey) {
|
|
7114
|
-
continue;
|
|
7115
|
-
}
|
|
7116
|
-
if (!journey?.isFinished()) {
|
|
7117
|
-
journey?.next();
|
|
7118
|
-
break;
|
|
7119
|
-
}
|
|
7120
|
-
}
|
|
7121
|
-
}
|
|
7122
|
-
//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
|
|
7123
|
-
previous() {
|
|
7124
|
-
if (this.journeyCollection.length <= 0) {
|
|
7125
|
-
this.instigator?.onFinalPrevious();
|
|
7126
|
-
return;
|
|
7127
|
-
}
|
|
7128
|
-
const isAnyObjectNotAtStart = this.journeyCollection.some((journey) => !journey.isStart());
|
|
7129
|
-
if (!isAnyObjectNotAtStart) {
|
|
7130
|
-
this.instigator?.onFinalPrevious();
|
|
7131
|
-
return;
|
|
7132
|
-
}
|
|
7133
|
-
for (const journey of this.journeyCollection.slice().reverse()) {
|
|
7134
|
-
if (!journey) {
|
|
7135
|
-
continue;
|
|
7136
|
-
}
|
|
7137
|
-
if (!journey?.isStart()) {
|
|
7138
|
-
journey?.previous();
|
|
7139
|
-
break;
|
|
7140
|
-
}
|
|
7141
|
-
}
|
|
7142
|
-
}
|
|
7143
|
-
//isAtStart can be used to inform the instigator if we're at the start.
|
|
7144
|
-
get isAtStart() {
|
|
7145
|
-
return this.isJourneyAtStart;
|
|
7146
|
-
}
|
|
7147
|
-
//isAtStart can be used to update the value from a journey object, so the instigator knows.
|
|
7148
|
-
set isAtStart(isAtStart) {
|
|
7149
|
-
this.isJourneyAtStart = isAtStart;
|
|
7150
|
-
}
|
|
7151
|
-
static ɵfac = function MultipageComponentStateService_Factory(t) { return new (t || MultipageComponentStateService)(); };
|
|
7152
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MultipageComponentStateService, factory: MultipageComponentStateService.ɵfac, providedIn: 'root' });
|
|
7153
|
-
}
|
|
7154
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipageComponentStateService, [{
|
|
7155
|
-
type: Injectable,
|
|
7156
|
-
args: [{
|
|
7157
|
-
providedIn: 'root'
|
|
7158
|
-
}]
|
|
7159
|
-
}], null, null); })();
|
|
7160
|
-
|
|
7161
7049
|
class JurisdictionService {
|
|
7162
7050
|
httpService;
|
|
7163
7051
|
// We retain the Subject observable because subscribing code couldn't happen a null value
|
|
@@ -9059,8 +8947,14 @@ class WorkAllocationService {
|
|
|
9059
8947
|
}
|
|
9060
8948
|
isWAEnabled(jurisdiction, caseType) {
|
|
9061
8949
|
this.features = this.appConfig.getWAServiceConfig();
|
|
9062
|
-
|
|
9063
|
-
|
|
8950
|
+
if (this.features) {
|
|
8951
|
+
const ftstr = JSON.stringify(this.features);
|
|
8952
|
+
this.appConfig?.logMessage(`isWAEnabled: wa-service-config returning ${ftstr?.length > 0}`);
|
|
8953
|
+
}
|
|
8954
|
+
else {
|
|
8955
|
+
this.appConfig?.logMessage(`isWAEnabled: wa-service-config returning no features`);
|
|
8956
|
+
return false;
|
|
8957
|
+
}
|
|
9064
8958
|
let enabled = false;
|
|
9065
8959
|
if (!jurisdiction || !caseType) {
|
|
9066
8960
|
const caseInfo = JSON.parse(this.sessionStorageService.getItem('caseInfo'));
|
|
@@ -10143,149 +10037,6 @@ function initDialog() {
|
|
|
10143
10037
|
return dialogConfig;
|
|
10144
10038
|
}
|
|
10145
10039
|
|
|
10146
|
-
class LinkedCasesService {
|
|
10147
|
-
jurisdictionService;
|
|
10148
|
-
searchService;
|
|
10149
|
-
static CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
10150
|
-
caseFieldValue = [];
|
|
10151
|
-
isLinkedCasesEventTrigger = false;
|
|
10152
|
-
caseDetails;
|
|
10153
|
-
caseId;
|
|
10154
|
-
caseName;
|
|
10155
|
-
linkCaseReasons = [];
|
|
10156
|
-
linkedCases = [];
|
|
10157
|
-
initialCaseLinks = [];
|
|
10158
|
-
editMode = false;
|
|
10159
|
-
jurisdictionsResponse = [];
|
|
10160
|
-
serverJurisdictionError;
|
|
10161
|
-
serverError = null;
|
|
10162
|
-
serverLinkedApiError = null;
|
|
10163
|
-
isServerReasonCodeError = false;
|
|
10164
|
-
caseJurisdictionID = null;
|
|
10165
|
-
storedCaseNumber = '';
|
|
10166
|
-
cameFromFinalStep = false;
|
|
10167
|
-
hasNavigatedInJourney = false;
|
|
10168
|
-
constructor(jurisdictionService, searchService) {
|
|
10169
|
-
this.jurisdictionService = jurisdictionService;
|
|
10170
|
-
this.searchService = searchService;
|
|
10171
|
-
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
10172
|
-
this.jurisdictionsResponse = jurisdictions;
|
|
10173
|
-
}, (error) => {
|
|
10174
|
-
this.serverJurisdictionError = true;
|
|
10175
|
-
});
|
|
10176
|
-
}
|
|
10177
|
-
groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
10178
|
-
return arrObj.reduce((rv, x) => {
|
|
10179
|
-
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
10180
|
-
return rv;
|
|
10181
|
-
}, {});
|
|
10182
|
-
};
|
|
10183
|
-
constructElasticSearchQuery(caseIds, size) {
|
|
10184
|
-
return {
|
|
10185
|
-
query: {
|
|
10186
|
-
terms: {
|
|
10187
|
-
reference: caseIds,
|
|
10188
|
-
},
|
|
10189
|
-
},
|
|
10190
|
-
size,
|
|
10191
|
-
};
|
|
10192
|
-
}
|
|
10193
|
-
resetLinkedCaseData() {
|
|
10194
|
-
this.caseFieldValue = [];
|
|
10195
|
-
this.linkedCases = [];
|
|
10196
|
-
this.storedCaseNumber = '';
|
|
10197
|
-
this.cameFromFinalStep = false;
|
|
10198
|
-
this.hasNavigatedInJourney = false;
|
|
10199
|
-
}
|
|
10200
|
-
mapResponse(esSearchCasesResponse) {
|
|
10201
|
-
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
10202
|
-
return caseInfo && {
|
|
10203
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
10204
|
-
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
10205
|
-
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
10206
|
-
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
10207
|
-
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
10208
|
-
reasons: caseInfo?.value?.ReasonForLink
|
|
10209
|
-
};
|
|
10210
|
-
}
|
|
10211
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
10212
|
-
return forkJoin(searchCasesResponse);
|
|
10213
|
-
}
|
|
10214
|
-
getAllLinkedCaseInformation() {
|
|
10215
|
-
const searchCasesResponse = [];
|
|
10216
|
-
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
10217
|
-
Object.keys(linkedCaseIds).forEach(key => {
|
|
10218
|
-
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
10219
|
-
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
10220
|
-
searchCasesResponse.push(query);
|
|
10221
|
-
});
|
|
10222
|
-
if (searchCasesResponse.length) {
|
|
10223
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
10224
|
-
const casesResponse = [];
|
|
10225
|
-
searchCases.forEach(response => {
|
|
10226
|
-
response.results.forEach((result) => {
|
|
10227
|
-
casesResponse.push(this.mapResponse(result));
|
|
10228
|
-
});
|
|
10229
|
-
});
|
|
10230
|
-
this.linkedCases = casesResponse.map(item => {
|
|
10231
|
-
return {
|
|
10232
|
-
caseReference: item.caseReference,
|
|
10233
|
-
caseName: item.caseName,
|
|
10234
|
-
caseService: item.service,
|
|
10235
|
-
caseType: item.caseType,
|
|
10236
|
-
unlink: false,
|
|
10237
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
10238
|
-
return {
|
|
10239
|
-
Reason: reason
|
|
10240
|
-
};
|
|
10241
|
-
}),
|
|
10242
|
-
};
|
|
10243
|
-
});
|
|
10244
|
-
this.serverLinkedApiError = null;
|
|
10245
|
-
}, err => {
|
|
10246
|
-
this.serverLinkedApiError = {
|
|
10247
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
10248
|
-
};
|
|
10249
|
-
});
|
|
10250
|
-
}
|
|
10251
|
-
}
|
|
10252
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
10253
|
-
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
10254
|
-
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
10255
|
-
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
10256
|
-
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
10257
|
-
switch (fieldName) {
|
|
10258
|
-
case 'JURISDICTION':
|
|
10259
|
-
return selectedJurisdiction && selectedJurisdiction.description;
|
|
10260
|
-
case 'CASE_TYPE':
|
|
10261
|
-
return selectedCaseType && selectedCaseType.name;
|
|
10262
|
-
case 'CASE_TYPE_DESCRIPTION':
|
|
10263
|
-
return selectedCaseType && selectedCaseType.description;
|
|
10264
|
-
case 'STATE':
|
|
10265
|
-
return state && state.name || fieldValue;
|
|
10266
|
-
case 'STATE_DESCRIPTION':
|
|
10267
|
-
return state && state.description || fieldValue;
|
|
10268
|
-
default:
|
|
10269
|
-
break;
|
|
10270
|
-
}
|
|
10271
|
-
}
|
|
10272
|
-
getCaseName(searchCasesResponse) {
|
|
10273
|
-
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
10274
|
-
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
10275
|
-
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
10276
|
-
if (caseNameHmctsInternalField) {
|
|
10277
|
-
caseName = caseNameHmctsInternalField.value;
|
|
10278
|
-
}
|
|
10279
|
-
});
|
|
10280
|
-
return caseName;
|
|
10281
|
-
}
|
|
10282
|
-
static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
10283
|
-
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
10284
|
-
}
|
|
10285
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
10286
|
-
type: Injectable
|
|
10287
|
-
}], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
|
|
10288
|
-
|
|
10289
10040
|
function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) { if (rf & 1) {
|
|
10290
10041
|
i0.ɵɵelementStart(0, "h1", 11);
|
|
10291
10042
|
i0.ɵɵtext(1);
|
|
@@ -10402,37 +10153,28 @@ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10402
10153
|
i0.ɵɵadvance(2);
|
|
10403
10154
|
i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol2Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields);
|
|
10404
10155
|
} }
|
|
10405
|
-
function CaseEditPageComponent_form_10_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
10406
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
10407
|
-
i0.ɵɵelementStart(0, "button", 38);
|
|
10408
|
-
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()); });
|
|
10409
|
-
i0.ɵɵtext(1);
|
|
10410
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
10411
|
-
i0.ɵɵelementEnd();
|
|
10412
|
-
} if (rf & 2) {
|
|
10413
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
10414
|
-
i0.ɵɵproperty("disabled", ctx_r1.isAtStart());
|
|
10415
|
-
i0.ɵɵadvance();
|
|
10416
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
10417
|
-
} }
|
|
10418
10156
|
function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
10419
10157
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
10420
10158
|
i0.ɵɵelementStart(0, "form", 22);
|
|
10421
|
-
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.
|
|
10159
|
+
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()); });
|
|
10422
10160
|
i0.ɵɵelementStart(1, "fieldset", 23);
|
|
10423
10161
|
i0.ɵɵelement(2, "legend", 24);
|
|
10424
10162
|
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);
|
|
10425
10163
|
i0.ɵɵelementEnd();
|
|
10426
|
-
i0.ɵɵelementStart(5, "div", 27);
|
|
10427
|
-
i0.ɵɵ
|
|
10428
|
-
i0.ɵɵ
|
|
10164
|
+
i0.ɵɵelementStart(5, "div", 27)(6, "button", 28);
|
|
10165
|
+
i0.ɵɵpipe(7, "async");
|
|
10166
|
+
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()); });
|
|
10429
10167
|
i0.ɵɵtext(8);
|
|
10430
10168
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
10169
|
+
i0.ɵɵelementEnd();
|
|
10170
|
+
i0.ɵɵelementStart(10, "button", 29);
|
|
10171
|
+
i0.ɵɵtext(11);
|
|
10172
|
+
i0.ɵɵpipe(12, "rpxTranslate");
|
|
10431
10173
|
i0.ɵɵelementEnd()();
|
|
10432
|
-
i0.ɵɵelementStart(
|
|
10433
|
-
i0.ɵɵlistener("click", function
|
|
10434
|
-
i0.ɵɵtext(
|
|
10435
|
-
i0.ɵɵpipe(
|
|
10174
|
+
i0.ɵɵelementStart(13, "p", 30)(14, "a", 31);
|
|
10175
|
+
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()); });
|
|
10176
|
+
i0.ɵɵtext(15);
|
|
10177
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
10436
10178
|
i0.ɵɵelementEnd()()();
|
|
10437
10179
|
} if (rf & 2) {
|
|
10438
10180
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10442,18 +10184,20 @@ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
10442
10184
|
i0.ɵɵadvance();
|
|
10443
10185
|
i0.ɵɵproperty("ngIf", ctx_r1.currentPage.isMultiColumn());
|
|
10444
10186
|
i0.ɵɵadvance(2);
|
|
10445
|
-
i0.ɵɵproperty("
|
|
10446
|
-
i0.ɵɵadvance();
|
|
10187
|
+
i0.ɵɵproperty("disabled", !i0.ɵɵpipeBind1(7, 8, ctx_r1.hasPreviousPage$));
|
|
10188
|
+
i0.ɵɵadvance(2);
|
|
10189
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "Previous"), " ");
|
|
10190
|
+
i0.ɵɵadvance(2);
|
|
10447
10191
|
i0.ɵɵproperty("disabled", ctx_r1.submitting());
|
|
10448
10192
|
i0.ɵɵadvance();
|
|
10449
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10193
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, ctx_r1.triggerText));
|
|
10450
10194
|
i0.ɵɵadvance(4);
|
|
10451
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
10195
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 14, ctx_r1.getCancelText()));
|
|
10452
10196
|
} }
|
|
10453
10197
|
function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
|
|
10454
|
-
const
|
|
10455
|
-
i0.ɵɵelementStart(0, "ccd-case-event-completion",
|
|
10456
|
-
i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(
|
|
10198
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
10199
|
+
i0.ɵɵelementStart(0, "ccd-case-event-completion", 38);
|
|
10200
|
+
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)); });
|
|
10457
10201
|
i0.ɵɵelementEnd();
|
|
10458
10202
|
} if (rf & 2) {
|
|
10459
10203
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -10471,9 +10215,7 @@ class CaseEditPageComponent {
|
|
|
10471
10215
|
caseEditDataService;
|
|
10472
10216
|
loadingService;
|
|
10473
10217
|
validPageListCaseFieldsService;
|
|
10474
|
-
multipageComponentStateService;
|
|
10475
10218
|
addressService;
|
|
10476
|
-
linkedCasesService;
|
|
10477
10219
|
static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
|
|
10478
10220
|
static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
|
|
10479
10221
|
static NEW_FORM_SAVE = 'NEW_FORM_CHANGED_SAVE';
|
|
@@ -10514,7 +10256,7 @@ class CaseEditPageComponent {
|
|
|
10514
10256
|
topContainer.focus();
|
|
10515
10257
|
}
|
|
10516
10258
|
}
|
|
10517
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService,
|
|
10259
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, addressService) {
|
|
10518
10260
|
this.caseEdit = caseEdit;
|
|
10519
10261
|
this.route = route;
|
|
10520
10262
|
this.formValueService = formValueService;
|
|
@@ -10526,27 +10268,7 @@ class CaseEditPageComponent {
|
|
|
10526
10268
|
this.caseEditDataService = caseEditDataService;
|
|
10527
10269
|
this.loadingService = loadingService;
|
|
10528
10270
|
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10529
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
10530
10271
|
this.addressService = addressService;
|
|
10531
|
-
this.linkedCasesService = linkedCasesService;
|
|
10532
|
-
this.multipageComponentStateService.setInstigator(this);
|
|
10533
|
-
}
|
|
10534
|
-
onFinalNext() {
|
|
10535
|
-
this.submit();
|
|
10536
|
-
}
|
|
10537
|
-
onFinalPrevious() {
|
|
10538
|
-
this.cancel();
|
|
10539
|
-
}
|
|
10540
|
-
isAtStart() {
|
|
10541
|
-
return this.multipageComponentStateService.getJourneyCollection()[0]?.journeyPageNumber === this.multipageComponentStateService.getJourneyCollection()[0]?.journeyStartPageNumber;
|
|
10542
|
-
}
|
|
10543
|
-
// This method will be triggered by the next button in the app component
|
|
10544
|
-
nextStep() {
|
|
10545
|
-
this.multipageComponentStateService.next();
|
|
10546
|
-
}
|
|
10547
|
-
// This method will be triggered by the previous button in the app component
|
|
10548
|
-
previousStep() {
|
|
10549
|
-
this.multipageComponentStateService.previous();
|
|
10550
10272
|
}
|
|
10551
10273
|
ngOnInit() {
|
|
10552
10274
|
initDialog();
|
|
@@ -10605,7 +10327,6 @@ class CaseEditPageComponent {
|
|
|
10605
10327
|
this.dialogRefAfterClosedSub?.unsubscribe();
|
|
10606
10328
|
this.saveDraftSub?.unsubscribe();
|
|
10607
10329
|
this.caseFormValidationErrorsSub?.unsubscribe();
|
|
10608
|
-
this.multipageComponentStateService.reset();
|
|
10609
10330
|
}
|
|
10610
10331
|
applyValuesChanged(valuesChanged) {
|
|
10611
10332
|
this.formValuesChanged = valuesChanged;
|
|
@@ -10632,7 +10353,6 @@ class CaseEditPageComponent {
|
|
|
10632
10353
|
caseEventData.data = caseEventData.event_data;
|
|
10633
10354
|
this.updateFormData(caseEventData);
|
|
10634
10355
|
this.previous();
|
|
10635
|
-
this.previousStep();
|
|
10636
10356
|
CaseEditPageComponent.setFocusToTop();
|
|
10637
10357
|
}
|
|
10638
10358
|
// Adding validation message to show it as Error Summary
|
|
@@ -10883,9 +10603,6 @@ class CaseEditPageComponent {
|
|
|
10883
10603
|
return this.caseEdit.hasPrevious(this.currentPage.id);
|
|
10884
10604
|
}
|
|
10885
10605
|
cancel() {
|
|
10886
|
-
if (this.isLinkedCasesJourney()) {
|
|
10887
|
-
this.linkedCasesService.resetLinkedCaseData();
|
|
10888
|
-
}
|
|
10889
10606
|
if (this.eventTrigger.can_save_draft) {
|
|
10890
10607
|
if (this.formValuesChanged) {
|
|
10891
10608
|
const dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
|
|
@@ -10912,7 +10629,6 @@ class CaseEditPageComponent {
|
|
|
10912
10629
|
this.caseEdit.cancelled.emit();
|
|
10913
10630
|
}
|
|
10914
10631
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10915
|
-
this.multipageComponentStateService.reset();
|
|
10916
10632
|
}
|
|
10917
10633
|
submitting() {
|
|
10918
10634
|
return this.caseEdit.isSubmitting;
|
|
@@ -11065,8 +10781,8 @@ class CaseEditPageComponent {
|
|
|
11065
10781
|
}
|
|
11066
10782
|
});
|
|
11067
10783
|
}
|
|
11068
|
-
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(
|
|
11069
|
-
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"], ["
|
|
10784
|
+
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)); };
|
|
10785
|
+
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) {
|
|
11070
10786
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11071
10787
|
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);
|
|
11072
10788
|
i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
@@ -11074,15 +10790,15 @@ class CaseEditPageComponent {
|
|
|
11074
10790
|
i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
|
|
11075
10791
|
i0.ɵɵelementEnd();
|
|
11076
10792
|
i0.ɵɵelementStart(9, "div", 7);
|
|
11077
|
-
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template,
|
|
10793
|
+
i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 17, 16, "form", 8);
|
|
11078
10794
|
i0.ɵɵelementEnd();
|
|
11079
10795
|
i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
|
|
11080
10796
|
} if (rf & 2) {
|
|
11081
|
-
const
|
|
11082
|
-
const
|
|
10797
|
+
const titleBlock_r8 = i0.ɵɵreference(3);
|
|
10798
|
+
const idBlock_r9 = i0.ɵɵreference(5);
|
|
11083
10799
|
i0.ɵɵproperty("ngIf", ctx.currentPage);
|
|
11084
10800
|
i0.ɵɵadvance();
|
|
11085
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
10801
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r8)("ngIfElse", idBlock_r9);
|
|
11086
10802
|
i0.ɵɵadvance(5);
|
|
11087
10803
|
i0.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
|
|
11088
10804
|
i0.ɵɵadvance();
|
|
@@ -11097,9 +10813,9 @@ class CaseEditPageComponent {
|
|
|
11097
10813
|
}
|
|
11098
10814
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
11099
10815
|
type: Component,
|
|
11100
|
-
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)=\"
|
|
11101
|
-
}], () => [{ 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:
|
|
11102
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber:
|
|
10816
|
+
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"] }]
|
|
10817
|
+
}], () => [{ 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); })();
|
|
10818
|
+
(() => { (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 }); })();
|
|
11103
10819
|
|
|
11104
10820
|
class CallbackErrorsContext {
|
|
11105
10821
|
triggerText;
|
|
@@ -11248,7 +10964,7 @@ class CallbackErrorsComponent {
|
|
|
11248
10964
|
}] }); })();
|
|
11249
10965
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CallbackErrorsComponent, { className: "CallbackErrorsComponent", filePath: "lib/shared/components/error/callback-errors.component.ts", lineNumber: 10 }); })();
|
|
11250
10966
|
|
|
11251
|
-
const _c0$
|
|
10967
|
+
const _c0$X = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11252
10968
|
class CaseEventCompletionTaskCancelledComponent {
|
|
11253
10969
|
parentComponent;
|
|
11254
10970
|
caseId;
|
|
@@ -11311,7 +11027,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11311
11027
|
i0.ɵɵadvance(4);
|
|
11312
11028
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
|
|
11313
11029
|
i0.ɵɵadvance(2);
|
|
11314
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$
|
|
11030
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$X, ctx.caseId));
|
|
11315
11031
|
i0.ɵɵadvance();
|
|
11316
11032
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
|
|
11317
11033
|
} }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
@@ -11325,7 +11041,7 @@ class CaseEventCompletionTaskCancelledComponent {
|
|
|
11325
11041
|
}] }], null); })();
|
|
11326
11042
|
(() => { (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 }); })();
|
|
11327
11043
|
|
|
11328
|
-
const _c0$
|
|
11044
|
+
const _c0$W = a0 => ["/", "cases", "case-details", a0, "tasks"];
|
|
11329
11045
|
function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11330
11046
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
11331
11047
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
@@ -11378,7 +11094,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
|
|
|
11378
11094
|
i0.ɵɵadvance(4);
|
|
11379
11095
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
|
|
11380
11096
|
i0.ɵɵadvance(2);
|
|
11381
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$
|
|
11097
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$W, ctx_r1.caseId));
|
|
11382
11098
|
i0.ɵɵadvance();
|
|
11383
11099
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
|
|
11384
11100
|
} }
|
|
@@ -11850,7 +11566,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11850
11566
|
}] }); })();
|
|
11851
11567
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11852
11568
|
|
|
11853
|
-
const _c0$
|
|
11569
|
+
const _c0$V = ["writeComplexFieldComponent"];
|
|
11854
11570
|
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
11855
11571
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11856
11572
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12092,7 +11808,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12092
11808
|
}
|
|
12093
11809
|
static ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
12094
11810
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12095
|
-
i0.ɵɵviewQuery(_c0$
|
|
11811
|
+
i0.ɵɵviewQuery(_c0$V, 5);
|
|
12096
11812
|
i0.ɵɵviewQuery(FocusElementDirective, 5);
|
|
12097
11813
|
} if (rf & 2) {
|
|
12098
11814
|
let _t;
|
|
@@ -12155,171 +11871,6 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
|
12155
11871
|
type: Input
|
|
12156
11872
|
}] }); })();
|
|
12157
11873
|
|
|
12158
|
-
const _c0$W = ["journeyChild"];
|
|
12159
|
-
class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
|
|
12160
|
-
multipageComponentStateService;
|
|
12161
|
-
journeyStartPageNumber = 0;
|
|
12162
|
-
journeyEndPageNumber = 0;
|
|
12163
|
-
journeyPageNumber = 0;
|
|
12164
|
-
journeyPreviousPageNumber = 0;
|
|
12165
|
-
journeyId = 'journey';
|
|
12166
|
-
// todo...
|
|
12167
|
-
childJourney;
|
|
12168
|
-
constructor(multipageComponentStateService) {
|
|
12169
|
-
super();
|
|
12170
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
12171
|
-
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12172
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12173
|
-
}
|
|
12174
|
-
next() {
|
|
12175
|
-
if (!this.hasNext()) {
|
|
12176
|
-
return;
|
|
12177
|
-
}
|
|
12178
|
-
this.childJourney.next();
|
|
12179
|
-
}
|
|
12180
|
-
previous() {
|
|
12181
|
-
if (!this.hasPrevious()) {
|
|
12182
|
-
return;
|
|
12183
|
-
}
|
|
12184
|
-
if (this.childJourney['cachedFlagType'] && this.childJourney['subJourneyIndex'] !== 0) {
|
|
12185
|
-
this.childJourney.previous();
|
|
12186
|
-
}
|
|
12187
|
-
else {
|
|
12188
|
-
this.previousPage();
|
|
12189
|
-
}
|
|
12190
|
-
}
|
|
12191
|
-
previousPage() {
|
|
12192
|
-
if (this.hasPrevious()) {
|
|
12193
|
-
this.journeyPageNumber--;
|
|
12194
|
-
this.onPageChange();
|
|
12195
|
-
}
|
|
12196
|
-
}
|
|
12197
|
-
nextPage() {
|
|
12198
|
-
if (this.hasNext()) {
|
|
12199
|
-
this.journeyPageNumber++;
|
|
12200
|
-
this.onPageChange();
|
|
12201
|
-
}
|
|
12202
|
-
}
|
|
12203
|
-
ngOnInit() {
|
|
12204
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12205
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12206
|
-
if (state) {
|
|
12207
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12208
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
12209
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12210
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12211
|
-
}
|
|
12212
|
-
}
|
|
12213
|
-
ngOnDestroy() {
|
|
12214
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
12215
|
-
}
|
|
12216
|
-
hasNext() { return this.journeyPageNumber < this.journeyEndPageNumber; }
|
|
12217
|
-
;
|
|
12218
|
-
hasPrevious() { return this.journeyPageNumber > this.journeyStartPageNumber; }
|
|
12219
|
-
;
|
|
12220
|
-
isFinished() { return this.journeyPageNumber === this.journeyEndPageNumber; }
|
|
12221
|
-
;
|
|
12222
|
-
isStart() { return this.journeyPageNumber === this.journeyStartPageNumber; }
|
|
12223
|
-
;
|
|
12224
|
-
getId() { return this.journeyId; }
|
|
12225
|
-
;
|
|
12226
|
-
onPageChange() { }
|
|
12227
|
-
;
|
|
12228
|
-
static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(t) { return new (t || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12229
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12230
|
-
i0.ɵɵviewQuery(_c0$W, 5);
|
|
12231
|
-
} if (rf & 2) {
|
|
12232
|
-
let _t;
|
|
12233
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12234
|
-
} }, inputs: { journeyId: "journeyId" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
12235
|
-
}
|
|
12236
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldWriteJourneyComponent, [{
|
|
12237
|
-
type: Directive
|
|
12238
|
-
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12239
|
-
type: Input
|
|
12240
|
-
}], childJourney: [{
|
|
12241
|
-
type: ViewChild,
|
|
12242
|
-
args: ['journeyChild']
|
|
12243
|
-
}] }); })();
|
|
12244
|
-
|
|
12245
|
-
const _c0$V = ["journeyChild"];
|
|
12246
|
-
class AbstractJourneyComponent {
|
|
12247
|
-
multipageComponentStateService;
|
|
12248
|
-
journeyStartPageNumber = 0;
|
|
12249
|
-
journeyEndPageNumber = 0;
|
|
12250
|
-
journeyPageNumber = 0;
|
|
12251
|
-
journeyPreviousPageNumber;
|
|
12252
|
-
journeyId = 'journey';
|
|
12253
|
-
// todo...
|
|
12254
|
-
childJourney;
|
|
12255
|
-
constructor(multipageComponentStateService) {
|
|
12256
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
12257
|
-
this.multipageComponentStateService.addTojourneyCollection(this);
|
|
12258
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12259
|
-
}
|
|
12260
|
-
next() {
|
|
12261
|
-
if (!this.hasNext()) {
|
|
12262
|
-
return;
|
|
12263
|
-
}
|
|
12264
|
-
this.childJourney.next();
|
|
12265
|
-
}
|
|
12266
|
-
previous() {
|
|
12267
|
-
if (!this.hasPrevious()) {
|
|
12268
|
-
return;
|
|
12269
|
-
}
|
|
12270
|
-
this.previousPage();
|
|
12271
|
-
}
|
|
12272
|
-
previousPage() {
|
|
12273
|
-
if (this.hasPrevious()) {
|
|
12274
|
-
this.journeyPageNumber--;
|
|
12275
|
-
}
|
|
12276
|
-
}
|
|
12277
|
-
ngOnInit() {
|
|
12278
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
12279
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
12280
|
-
if (state) {
|
|
12281
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
12282
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
12283
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
12284
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
12285
|
-
}
|
|
12286
|
-
}
|
|
12287
|
-
ngOnDestroy() {
|
|
12288
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
12289
|
-
}
|
|
12290
|
-
hasNext() {
|
|
12291
|
-
return this.journeyPageNumber < this.journeyEndPageNumber;
|
|
12292
|
-
}
|
|
12293
|
-
hasPrevious() {
|
|
12294
|
-
return this.journeyPageNumber > this.journeyStartPageNumber;
|
|
12295
|
-
}
|
|
12296
|
-
isFinished() {
|
|
12297
|
-
return this.journeyPageNumber === this.journeyEndPageNumber;
|
|
12298
|
-
}
|
|
12299
|
-
isStart() {
|
|
12300
|
-
return this.journeyPageNumber === this.journeyStartPageNumber;
|
|
12301
|
-
}
|
|
12302
|
-
getId() {
|
|
12303
|
-
return this.journeyId;
|
|
12304
|
-
}
|
|
12305
|
-
onPageChange() { }
|
|
12306
|
-
static ɵfac = function AbstractJourneyComponent_Factory(t) { return new (t || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
12307
|
-
static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12308
|
-
i0.ɵɵviewQuery(_c0$V, 5);
|
|
12309
|
-
} if (rf & 2) {
|
|
12310
|
-
let _t;
|
|
12311
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
|
|
12312
|
-
} }, inputs: { journeyId: "journeyId" } });
|
|
12313
|
-
}
|
|
12314
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractJourneyComponent, [{
|
|
12315
|
-
type: Directive
|
|
12316
|
-
}], () => [{ type: MultipageComponentStateService }], { journeyId: [{
|
|
12317
|
-
type: Input
|
|
12318
|
-
}], childJourney: [{
|
|
12319
|
-
type: ViewChild,
|
|
12320
|
-
args: ['journeyChild']
|
|
12321
|
-
}] }); })();
|
|
12322
|
-
|
|
12323
11874
|
var DisplayContextParameter;
|
|
12324
11875
|
(function (DisplayContextParameter) {
|
|
12325
11876
|
DisplayContextParameter["Read"] = "READ";
|
|
@@ -12522,12 +12073,10 @@ class CaseFlagStateService {
|
|
|
12522
12073
|
formGroup = new FormGroup({});
|
|
12523
12074
|
pageLocation;
|
|
12524
12075
|
fieldStateToNavigate;
|
|
12525
|
-
lastPageFieldState;
|
|
12526
12076
|
resetCache(pageLocation) {
|
|
12527
12077
|
this.formGroup = new FormGroup({});
|
|
12528
12078
|
this.fieldStateToNavigate = undefined;
|
|
12529
12079
|
this.pageLocation = pageLocation;
|
|
12530
|
-
this.lastPageFieldState = 0;
|
|
12531
12080
|
}
|
|
12532
12081
|
static ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
|
|
12533
12082
|
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
|
|
@@ -12781,7 +12330,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
|
|
|
12781
12330
|
|
|
12782
12331
|
function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
12783
12332
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
12784
|
-
i0.ɵɵelementStart(0, "div",
|
|
12333
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "ul", 6)(2, "li")(3, "a", 7);
|
|
12785
12334
|
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)); });
|
|
12786
12335
|
i0.ɵɵtext(4);
|
|
12787
12336
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -12792,11 +12341,11 @@ function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
12792
12341
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, errorMessage_r2.description));
|
|
12793
12342
|
} }
|
|
12794
12343
|
function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12795
|
-
i0.ɵɵelementStart(0, "div",
|
|
12344
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
|
|
12796
12345
|
i0.ɵɵtext(2);
|
|
12797
12346
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
12798
12347
|
i0.ɵɵelementEnd();
|
|
12799
|
-
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div",
|
|
12348
|
+
i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 4);
|
|
12800
12349
|
i0.ɵɵelementEnd();
|
|
12801
12350
|
} if (rf & 2) {
|
|
12802
12351
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12808,7 +12357,7 @@ function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12808
12357
|
function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12809
12358
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
12810
12359
|
i0.ɵɵelementContainerStart(0);
|
|
12811
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-location",
|
|
12360
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-location", 11);
|
|
12812
12361
|
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)); });
|
|
12813
12362
|
i0.ɵɵelementEnd();
|
|
12814
12363
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12820,7 +12369,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if
|
|
|
12820
12369
|
function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12821
12370
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
12822
12371
|
i0.ɵɵelementContainerStart(0);
|
|
12823
|
-
i0.ɵɵelementStart(1, "ccd-select-flag-type",
|
|
12372
|
+
i0.ɵɵelementStart(1, "ccd-select-flag-type", 12);
|
|
12824
12373
|
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)); });
|
|
12825
12374
|
i0.ɵɵelementEnd();
|
|
12826
12375
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12832,7 +12381,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if
|
|
|
12832
12381
|
function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12833
12382
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
12834
12383
|
i0.ɵɵelementContainerStart(0);
|
|
12835
|
-
i0.ɵɵelementStart(1, "ccd-search-language-interpreter",
|
|
12384
|
+
i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 13);
|
|
12836
12385
|
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)); });
|
|
12837
12386
|
i0.ɵɵelementEnd();
|
|
12838
12387
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12844,7 +12393,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if
|
|
|
12844
12393
|
function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
12845
12394
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
12846
12395
|
i0.ɵɵelementContainerStart(0);
|
|
12847
|
-
i0.ɵɵelementStart(1, "ccd-add-comments",
|
|
12396
|
+
i0.ɵɵelementStart(1, "ccd-add-comments", 14);
|
|
12848
12397
|
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)); });
|
|
12849
12398
|
i0.ɵɵelementEnd();
|
|
12850
12399
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12856,7 +12405,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if
|
|
|
12856
12405
|
function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
12857
12406
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
12858
12407
|
i0.ɵɵelementContainerStart(0);
|
|
12859
|
-
i0.ɵɵelementStart(1, "ccd-confirm-flag-status",
|
|
12408
|
+
i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 15);
|
|
12860
12409
|
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)); });
|
|
12861
12410
|
i0.ɵɵelementEnd();
|
|
12862
12411
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12866,8 +12415,8 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
|
|
|
12866
12415
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup)("defaultStatus", ctx_r2.flagType.defaultStatus);
|
|
12867
12416
|
} }
|
|
12868
12417
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12869
|
-
i0.ɵɵelementStart(0, "div",
|
|
12870
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template,
|
|
12418
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12419
|
+
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);
|
|
12871
12420
|
i0.ɵɵelementEnd()();
|
|
12872
12421
|
} if (rf & 2) {
|
|
12873
12422
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12888,7 +12437,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12888
12437
|
function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
12889
12438
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
12890
12439
|
i0.ɵɵelementContainerStart(0);
|
|
12891
|
-
i0.ɵɵelementStart(1, "ccd-manage-case-flags",
|
|
12440
|
+
i0.ɵɵelementStart(1, "ccd-manage-case-flags", 16);
|
|
12892
12441
|
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)); });
|
|
12893
12442
|
i0.ɵɵelementEnd();
|
|
12894
12443
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12900,7 +12449,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if
|
|
|
12900
12449
|
function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
12901
12450
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12902
12451
|
i0.ɵɵelementContainerStart(0);
|
|
12903
|
-
i0.ɵɵelementStart(1, "ccd-update-flag",
|
|
12452
|
+
i0.ɵɵelementStart(1, "ccd-update-flag", 17);
|
|
12904
12453
|
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)); });
|
|
12905
12454
|
i0.ɵɵelementEnd();
|
|
12906
12455
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12912,7 +12461,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if
|
|
|
12912
12461
|
function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
12913
12462
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
12914
12463
|
i0.ɵɵelementContainerStart(0);
|
|
12915
|
-
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form",
|
|
12464
|
+
i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 18);
|
|
12916
12465
|
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)); });
|
|
12917
12466
|
i0.ɵɵelementEnd();
|
|
12918
12467
|
i0.ɵɵelementContainerEnd();
|
|
@@ -12922,8 +12471,8 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if
|
|
|
12922
12471
|
i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup);
|
|
12923
12472
|
} }
|
|
12924
12473
|
function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
12925
|
-
i0.ɵɵelementStart(0, "div",
|
|
12926
|
-
i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template,
|
|
12474
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
|
|
12475
|
+
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);
|
|
12927
12476
|
i0.ɵɵelementEnd()();
|
|
12928
12477
|
} if (rf & 2) {
|
|
12929
12478
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12937,12 +12486,11 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12937
12486
|
i0.ɵɵadvance();
|
|
12938
12487
|
i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION);
|
|
12939
12488
|
} }
|
|
12940
|
-
class WriteCaseFlagFieldComponent extends
|
|
12489
|
+
class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
|
|
12941
12490
|
route;
|
|
12942
12491
|
caseEditDataService;
|
|
12943
12492
|
caseFlagStateService;
|
|
12944
12493
|
rpxTranslationService;
|
|
12945
|
-
//public formGroup: FormGroup;
|
|
12946
12494
|
fieldState;
|
|
12947
12495
|
caseFlagFieldState = CaseFlagFieldState;
|
|
12948
12496
|
errorMessages = [];
|
|
@@ -12961,7 +12509,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12961
12509
|
displayContextParameter;
|
|
12962
12510
|
determinedLocation;
|
|
12963
12511
|
allCaseFlagStagesCompleted = false;
|
|
12964
|
-
navigatedTo = false;
|
|
12965
12512
|
// Code for "Other" flag type as defined in Reference Data
|
|
12966
12513
|
otherFlagTypeCode = 'OT0001';
|
|
12967
12514
|
selectedManageCaseLocation = 'selectedManageCaseLocation';
|
|
@@ -12977,8 +12524,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12977
12524
|
this.caseFlagParentFormGroup.value.selectedLocation = selectedLocation;
|
|
12978
12525
|
}
|
|
12979
12526
|
}
|
|
12980
|
-
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService
|
|
12981
|
-
super(
|
|
12527
|
+
constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService) {
|
|
12528
|
+
super();
|
|
12982
12529
|
this.route = route;
|
|
12983
12530
|
this.caseEditDataService = caseEditDataService;
|
|
12984
12531
|
this.caseFlagStateService = caseFlagStateService;
|
|
@@ -12988,14 +12535,13 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
12988
12535
|
// If it is start of the journey or navigation from check your answers page then fieldStateToNavigate property
|
|
12989
12536
|
// in case flag state service will contain the field state to navigate based on create or manage journey
|
|
12990
12537
|
this.fieldState = this.caseFlagStateService.fieldStateToNavigate;
|
|
12991
|
-
if (this.fieldState === undefined
|
|
12538
|
+
if (this.fieldState === undefined ||
|
|
12539
|
+
this.fieldState === CaseFlagFieldState.FLAG_LOCATION ||
|
|
12540
|
+
this.fieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS) {
|
|
12992
12541
|
const params = this.route.snapshot.params;
|
|
12993
12542
|
// Clear the form group, field state to navigate and set the page location
|
|
12994
12543
|
this.caseFlagStateService.resetCache(`../${params['eid']}/${params['page']}`);
|
|
12995
12544
|
}
|
|
12996
|
-
else {
|
|
12997
|
-
this.navigatedTo = true;
|
|
12998
|
-
}
|
|
12999
12545
|
// Reassign the form group from the case flag state service
|
|
13000
12546
|
this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
|
|
13001
12547
|
// Clear form validation errors as a new page will be rendered based on field state
|
|
@@ -13034,14 +12580,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13034
12580
|
this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
|
|
13035
12581
|
}
|
|
13036
12582
|
if (this.route.snapshot.data.eventTrigger.case_fields) {
|
|
13037
|
-
|
|
13038
|
-
// below funciton ensures all data is correctly set.
|
|
13039
|
-
const flagData = this.validateCaseFields(this.route.snapshot.data.eventTrigger.case_fields);
|
|
13040
|
-
this.flagsData = (flagData)
|
|
12583
|
+
this.flagsData = (this.route.snapshot.data.eventTrigger.case_fields)
|
|
13041
12584
|
.reduce((flags, caseField) => FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField), []);
|
|
13042
12585
|
// Set displayContextParameter (to be passed as an input to ManageCaseFlagsComponent for setting correct title)
|
|
13043
12586
|
this.displayContextParameter =
|
|
13044
|
-
this.setDisplayContextParameter(
|
|
12587
|
+
this.setDisplayContextParameter(this.route.snapshot.data.eventTrigger.case_fields);
|
|
13045
12588
|
// Set boolean indicating the display_context_parameter is "update"
|
|
13046
12589
|
this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
|
|
13047
12590
|
// Set boolean indicating the display_context_parameter is "external"
|
|
@@ -13060,57 +12603,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13060
12603
|
});
|
|
13061
12604
|
}
|
|
13062
12605
|
}
|
|
13063
|
-
// CSFD-16.
|
|
13064
|
-
// Setup the page number to initially be the same value as
|
|
13065
|
-
// the start page number. Provided that some state exists within
|
|
13066
|
-
// the page state service, use that instaead.
|
|
13067
|
-
//
|
|
13068
|
-
// If isDisplayContextParameterUpdate is true, then the starting page must be
|
|
13069
|
-
// the value of 4. Otherwise, it's 0. However, we're using an enum to simplify
|
|
13070
|
-
// this process.
|
|
13071
|
-
//
|
|
13072
|
-
// It might help to take a look at the template file.
|
|
13073
|
-
if (this.isDisplayContextParameterUpdate) {
|
|
13074
|
-
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS;
|
|
13075
|
-
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
|
|
13076
|
-
}
|
|
13077
|
-
else {
|
|
13078
|
-
this.journeyStartPageNumber = CaseFlagFieldState.FLAG_LOCATION;
|
|
13079
|
-
this.journeyEndPageNumber = CaseFlagFieldState.FLAG_STATUS;
|
|
13080
|
-
}
|
|
13081
|
-
// Now that we've set the start page number, let's set the current page number.
|
|
13082
|
-
this.journeyPageNumber = this.journeyStartPageNumber;
|
|
13083
|
-
// If we've navigated to this page, then we know by default, we want to set the
|
|
13084
|
-
// journey page number to the field state.
|
|
13085
|
-
if (this.navigatedTo) {
|
|
13086
|
-
this.journeyPageNumber = this.fieldState;
|
|
13087
|
-
this.journeyPreviousPageNumber = this.journeyEndPageNumber++;
|
|
13088
|
-
}
|
|
13089
|
-
// Provided we have some stored state, i.e. when going backwards, we want
|
|
13090
|
-
// to get the last visited page, etc.
|
|
13091
|
-
const state = this.multipageComponentStateService.getJourneyState(this);
|
|
13092
|
-
if (state) {
|
|
13093
|
-
const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
|
|
13094
|
-
this.journeyPageNumber = journeyPageNumber;
|
|
13095
|
-
this.journeyStartPageNumber = journeyStartPageNumber;
|
|
13096
|
-
this.journeyEndPageNumber = journeyEndPageNumber;
|
|
13097
|
-
}
|
|
13098
|
-
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
13099
|
-
}
|
|
13100
|
-
validateCaseFields(caseFields) {
|
|
13101
|
-
caseFields.forEach((field) => {
|
|
13102
|
-
if (field.formatted_value) {
|
|
13103
|
-
Object.keys(field.formatted_value).forEach((valueKey) => {
|
|
13104
|
-
if (field.formatted_value[valueKey] !== field.value[valueKey]) {
|
|
13105
|
-
field.value[valueKey] = field.formatted_value[valueKey];
|
|
13106
|
-
}
|
|
13107
|
-
});
|
|
13108
|
-
}
|
|
13109
|
-
});
|
|
13110
|
-
return caseFields;
|
|
13111
|
-
}
|
|
13112
|
-
onPageChange() {
|
|
13113
|
-
this.multipageComponentStateService.isAtStart = this.fieldState === this.caseFlagFieldState.FLAG_LOCATION;
|
|
13114
12606
|
}
|
|
13115
12607
|
setDisplayContextParameterUpdate(displayContextParameter) {
|
|
13116
12608
|
return displayContextParameter === CaseFlagDisplayContextParameter.UPDATE ||
|
|
@@ -13166,7 +12658,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13166
12658
|
}
|
|
13167
12659
|
proceedToNextState() {
|
|
13168
12660
|
if (!this.isAtFinalState()) {
|
|
13169
|
-
this.journeyPreviousPageNumber = this.fieldState;
|
|
13170
12661
|
// Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
|
|
13171
12662
|
// have a "list of values" - currently, this is present only for those flag types that require language interpreter
|
|
13172
12663
|
// selection
|
|
@@ -13176,7 +12667,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13176
12667
|
else {
|
|
13177
12668
|
this.fieldState++;
|
|
13178
12669
|
}
|
|
13179
|
-
this.nextPage();
|
|
13180
12670
|
}
|
|
13181
12671
|
}
|
|
13182
12672
|
setFlagsCaseFieldValue() {
|
|
@@ -13195,18 +12685,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13195
12685
|
break;
|
|
13196
12686
|
}
|
|
13197
12687
|
}
|
|
13198
|
-
previousPage() {
|
|
13199
|
-
// if we are navigating away from the page, we should set the error messages to empty so the message dissapears
|
|
13200
|
-
this.errorMessages = [];
|
|
13201
|
-
this.journeyPreviousPageNumber = this.fieldState;
|
|
13202
|
-
if (this.hasPrevious() && this.fieldState === CaseFlagFieldState.FLAG_COMMENTS && !this.flagType?.listOfValues) {
|
|
13203
|
-
this.fieldState = CaseFlagFieldState.FLAG_TYPE;
|
|
13204
|
-
}
|
|
13205
|
-
else if (this.hasPrevious()) {
|
|
13206
|
-
this.fieldState--;
|
|
13207
|
-
}
|
|
13208
|
-
super.previousPage();
|
|
13209
|
-
}
|
|
13210
12688
|
addFlagToCollection() {
|
|
13211
12689
|
// Ensure no more than one new flag is being added at a time, by iterating through each Flags case field and removing
|
|
13212
12690
|
// any previous entry from the details array where that entry has no id (hence it is new - and there should be only
|
|
@@ -13491,7 +12969,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13491
12969
|
};
|
|
13492
12970
|
}
|
|
13493
12971
|
moveToFinalReviewStage() {
|
|
13494
|
-
this.caseFlagStateService.lastPageFieldState = this.fieldState;
|
|
13495
12972
|
this.setFlagsCaseFieldValue();
|
|
13496
12973
|
// Check that no errors have been set on caseFlagParentFormGroup (by determineLocationForFlag()); prevent moving to
|
|
13497
12974
|
// final review stage if errors exist
|
|
@@ -13506,7 +12983,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13506
12983
|
}
|
|
13507
12984
|
}
|
|
13508
12985
|
ngOnDestroy() {
|
|
13509
|
-
this.multipageComponentStateService.setJourneyState(this);
|
|
13510
12986
|
// Reset the fieldstateToNavigate as the write journey completes at this point
|
|
13511
12987
|
this.caseFlagStateService.fieldStateToNavigate = undefined;
|
|
13512
12988
|
this.caseTitleSubscription?.unsubscribe();
|
|
@@ -13518,9 +12994,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13518
12994
|
setDisplayContextParameter(caseFields) {
|
|
13519
12995
|
return caseFields.find(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']))?.display_context_parameter;
|
|
13520
12996
|
}
|
|
13521
|
-
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)
|
|
13522
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["
|
|
13523
|
-
i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div",
|
|
12997
|
+
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)); };
|
|
12998
|
+
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) {
|
|
12999
|
+
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);
|
|
13524
13000
|
} if (rf & 2) {
|
|
13525
13001
|
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
13526
13002
|
i0.ɵɵadvance();
|
|
@@ -13531,9 +13007,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
13531
13007
|
}
|
|
13532
13008
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseFlagFieldComponent, [{
|
|
13533
13009
|
type: Component,
|
|
13534
|
-
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\"
|
|
13535
|
-
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }
|
|
13536
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber:
|
|
13010
|
+
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"] }]
|
|
13011
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }], null); })();
|
|
13012
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber: 20 }); })();
|
|
13537
13013
|
|
|
13538
13014
|
class CaseReferencePipe {
|
|
13539
13015
|
transform(caseReference) {
|
|
@@ -16271,6 +15747,139 @@ var Patterns;
|
|
|
16271
15747
|
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
16272
15748
|
})(Patterns || (Patterns = {}));
|
|
16273
15749
|
|
|
15750
|
+
class LinkedCasesService {
|
|
15751
|
+
jurisdictionService;
|
|
15752
|
+
searchService;
|
|
15753
|
+
static CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
15754
|
+
caseFieldValue = [];
|
|
15755
|
+
isLinkedCasesEventTrigger = false;
|
|
15756
|
+
caseDetails;
|
|
15757
|
+
caseId;
|
|
15758
|
+
caseName;
|
|
15759
|
+
linkCaseReasons = [];
|
|
15760
|
+
linkedCases = [];
|
|
15761
|
+
initialCaseLinks = [];
|
|
15762
|
+
editMode = false;
|
|
15763
|
+
jurisdictionsResponse = [];
|
|
15764
|
+
serverJurisdictionError;
|
|
15765
|
+
serverError = null;
|
|
15766
|
+
serverLinkedApiError = null;
|
|
15767
|
+
isServerReasonCodeError = false;
|
|
15768
|
+
caseJurisdictionID = null;
|
|
15769
|
+
constructor(jurisdictionService, searchService) {
|
|
15770
|
+
this.jurisdictionService = jurisdictionService;
|
|
15771
|
+
this.searchService = searchService;
|
|
15772
|
+
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
15773
|
+
this.jurisdictionsResponse = jurisdictions;
|
|
15774
|
+
}, (error) => {
|
|
15775
|
+
this.serverJurisdictionError = true;
|
|
15776
|
+
});
|
|
15777
|
+
}
|
|
15778
|
+
groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
15779
|
+
return arrObj.reduce((rv, x) => {
|
|
15780
|
+
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
15781
|
+
return rv;
|
|
15782
|
+
}, {});
|
|
15783
|
+
};
|
|
15784
|
+
constructElasticSearchQuery(caseIds, size) {
|
|
15785
|
+
return {
|
|
15786
|
+
query: {
|
|
15787
|
+
terms: {
|
|
15788
|
+
reference: caseIds,
|
|
15789
|
+
},
|
|
15790
|
+
},
|
|
15791
|
+
size,
|
|
15792
|
+
};
|
|
15793
|
+
}
|
|
15794
|
+
mapResponse(esSearchCasesResponse) {
|
|
15795
|
+
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
15796
|
+
return caseInfo && {
|
|
15797
|
+
caseReference: esSearchCasesResponse.case_id,
|
|
15798
|
+
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
15799
|
+
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
15800
|
+
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
15801
|
+
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
15802
|
+
reasons: caseInfo?.value?.ReasonForLink
|
|
15803
|
+
};
|
|
15804
|
+
}
|
|
15805
|
+
searchCasesByCaseIds(searchCasesResponse) {
|
|
15806
|
+
return forkJoin(searchCasesResponse);
|
|
15807
|
+
}
|
|
15808
|
+
getAllLinkedCaseInformation() {
|
|
15809
|
+
const searchCasesResponse = [];
|
|
15810
|
+
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
15811
|
+
Object.keys(linkedCaseIds).forEach(key => {
|
|
15812
|
+
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
15813
|
+
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
15814
|
+
searchCasesResponse.push(query);
|
|
15815
|
+
});
|
|
15816
|
+
if (searchCasesResponse.length) {
|
|
15817
|
+
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
15818
|
+
const casesResponse = [];
|
|
15819
|
+
searchCases.forEach(response => {
|
|
15820
|
+
response.results.forEach((result) => {
|
|
15821
|
+
casesResponse.push(this.mapResponse(result));
|
|
15822
|
+
});
|
|
15823
|
+
});
|
|
15824
|
+
this.linkedCases = casesResponse.map(item => {
|
|
15825
|
+
return {
|
|
15826
|
+
caseReference: item.caseReference,
|
|
15827
|
+
caseName: item.caseName,
|
|
15828
|
+
caseService: item.service,
|
|
15829
|
+
caseType: item.caseType,
|
|
15830
|
+
unlink: false,
|
|
15831
|
+
reasons: item.reasons && item.reasons.map(reason => {
|
|
15832
|
+
return {
|
|
15833
|
+
Reason: reason
|
|
15834
|
+
};
|
|
15835
|
+
}),
|
|
15836
|
+
};
|
|
15837
|
+
});
|
|
15838
|
+
this.serverLinkedApiError = null;
|
|
15839
|
+
}, err => {
|
|
15840
|
+
this.serverLinkedApiError = {
|
|
15841
|
+
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
15842
|
+
};
|
|
15843
|
+
});
|
|
15844
|
+
}
|
|
15845
|
+
}
|
|
15846
|
+
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
15847
|
+
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
15848
|
+
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
15849
|
+
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
15850
|
+
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
15851
|
+
switch (fieldName) {
|
|
15852
|
+
case 'JURISDICTION':
|
|
15853
|
+
return selectedJurisdiction && selectedJurisdiction.description;
|
|
15854
|
+
case 'CASE_TYPE':
|
|
15855
|
+
return selectedCaseType && selectedCaseType.name;
|
|
15856
|
+
case 'CASE_TYPE_DESCRIPTION':
|
|
15857
|
+
return selectedCaseType && selectedCaseType.description;
|
|
15858
|
+
case 'STATE':
|
|
15859
|
+
return state && state.name || fieldValue;
|
|
15860
|
+
case 'STATE_DESCRIPTION':
|
|
15861
|
+
return state && state.description || fieldValue;
|
|
15862
|
+
default:
|
|
15863
|
+
break;
|
|
15864
|
+
}
|
|
15865
|
+
}
|
|
15866
|
+
getCaseName(searchCasesResponse) {
|
|
15867
|
+
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
15868
|
+
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
15869
|
+
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
15870
|
+
if (caseNameHmctsInternalField) {
|
|
15871
|
+
caseName = caseNameHmctsInternalField.value;
|
|
15872
|
+
}
|
|
15873
|
+
});
|
|
15874
|
+
return caseName;
|
|
15875
|
+
}
|
|
15876
|
+
static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
15877
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
15878
|
+
}
|
|
15879
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
15880
|
+
type: Injectable
|
|
15881
|
+
}], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
|
|
15882
|
+
|
|
16274
15883
|
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
16275
15884
|
i0.ɵɵelementStart(0, "p", 5)(1, "span", 6);
|
|
16276
15885
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -16298,7 +15907,7 @@ function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
16298
15907
|
i0.ɵɵproperty("ngIf", ctx_r1.serverLinkedApiError);
|
|
16299
15908
|
} }
|
|
16300
15909
|
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
16301
|
-
i0.ɵɵelementStart(0, "div",
|
|
15910
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "p", 3);
|
|
16302
15911
|
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
16303
15912
|
i0.ɵɵelementEnd();
|
|
16304
15913
|
i0.ɵɵelementStart(3, "p", 3);
|
|
@@ -16306,16 +15915,20 @@ function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
16306
15915
|
i0.ɵɵelementEnd()();
|
|
16307
15916
|
} }
|
|
16308
15917
|
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
16309
|
-
i0.ɵɵelementStart(0, "div",
|
|
15918
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "p", 3);
|
|
16310
15919
|
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
16311
15920
|
i0.ɵɵelementEnd()();
|
|
16312
15921
|
} }
|
|
16313
15922
|
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
15923
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
16314
15924
|
i0.ɵɵelementStart(0, "div")(1, "h1", 1);
|
|
16315
15925
|
i0.ɵɵtext(2, "Before you start");
|
|
16316
15926
|
i0.ɵɵelementEnd();
|
|
16317
15927
|
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7)(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
16318
|
-
i0.ɵɵ
|
|
15928
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "button", 10);
|
|
15929
|
+
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()); });
|
|
15930
|
+
i0.ɵɵtext(7, "Next");
|
|
15931
|
+
i0.ɵɵelementEnd()()();
|
|
16319
15932
|
} if (rf & 2) {
|
|
16320
15933
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16321
15934
|
i0.ɵɵadvance(3);
|
|
@@ -16323,15 +15936,14 @@ function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
16323
15936
|
i0.ɵɵadvance();
|
|
16324
15937
|
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
16325
15938
|
} }
|
|
16326
|
-
class BeforeYouStartComponent
|
|
15939
|
+
class BeforeYouStartComponent {
|
|
16327
15940
|
router;
|
|
16328
15941
|
linkedCasesService;
|
|
16329
15942
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16330
15943
|
isLinkCasesJourney = false;
|
|
16331
15944
|
errorMessages;
|
|
16332
15945
|
serverLinkedApiError;
|
|
16333
|
-
constructor(router, linkedCasesService
|
|
16334
|
-
super(multipageComponentStateService);
|
|
15946
|
+
constructor(router, linkedCasesService) {
|
|
16335
15947
|
this.router = router;
|
|
16336
15948
|
this.linkedCasesService = linkedCasesService;
|
|
16337
15949
|
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
@@ -16348,22 +15960,13 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16348
15960
|
navigateToNextPage: true
|
|
16349
15961
|
});
|
|
16350
15962
|
}
|
|
16351
|
-
next() {
|
|
16352
|
-
this.onNext();
|
|
16353
|
-
const isAnArray = Array.isArray(this.errorMessages);
|
|
16354
|
-
const isNotAnArray = !isAnArray;
|
|
16355
|
-
const isValid = (isAnArray && this.errorMessages.length === 0) || isNotAnArray;
|
|
16356
|
-
if (isValid) {
|
|
16357
|
-
super.next();
|
|
16358
|
-
}
|
|
16359
|
-
}
|
|
16360
15963
|
onBack() {
|
|
16361
15964
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
16362
15965
|
}
|
|
16363
|
-
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
16364
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" },
|
|
15966
|
+
static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
15967
|
+
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) {
|
|
16365
15968
|
i0.ɵɵelementStart(0, "div");
|
|
16366
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template,
|
|
15969
|
+
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
16367
15970
|
i0.ɵɵelementEnd();
|
|
16368
15971
|
} if (rf & 2) {
|
|
16369
15972
|
i0.ɵɵadvance();
|
|
@@ -16374,11 +15977,11 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
|
|
|
16374
15977
|
}
|
|
16375
15978
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
16376
15979
|
type: Component,
|
|
16377
|
-
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" }]
|
|
16378
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }
|
|
15980
|
+
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" }]
|
|
15981
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16379
15982
|
type: Output
|
|
16380
15983
|
}] }); })();
|
|
16381
|
-
(() => { (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:
|
|
15984
|
+
(() => { (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 }); })();
|
|
16382
15985
|
|
|
16383
15986
|
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
16384
15987
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -16500,15 +16103,14 @@ function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
16500
16103
|
i0.ɵɵtext(2, " None ");
|
|
16501
16104
|
i0.ɵɵelementEnd()();
|
|
16502
16105
|
} }
|
|
16503
|
-
class CheckYourAnswersComponent
|
|
16106
|
+
class CheckYourAnswersComponent {
|
|
16504
16107
|
linkedCasesService;
|
|
16505
16108
|
linkedCasesStateEmitter = new EventEmitter();
|
|
16506
16109
|
linkedCases;
|
|
16507
16110
|
casesToUnlink;
|
|
16508
16111
|
isLinkCasesJourney;
|
|
16509
16112
|
linkedCasesTableCaption;
|
|
16510
|
-
constructor(linkedCasesService
|
|
16511
|
-
super(multipageComponentStateService);
|
|
16113
|
+
constructor(linkedCasesService) {
|
|
16512
16114
|
this.linkedCasesService = linkedCasesService;
|
|
16513
16115
|
}
|
|
16514
16116
|
ngOnInit() {
|
|
@@ -16525,16 +16127,8 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16525
16127
|
navigateToNextPage: true
|
|
16526
16128
|
});
|
|
16527
16129
|
}
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
16531
|
-
navigateToPreviousPage: false,
|
|
16532
|
-
navigateToNextPage: true
|
|
16533
|
-
});
|
|
16534
|
-
super.next();
|
|
16535
|
-
}
|
|
16536
|
-
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
16537
|
-
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) {
|
|
16130
|
+
static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16131
|
+
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) {
|
|
16538
16132
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
|
|
16539
16133
|
i0.ɵɵtext(3, "Check your answers");
|
|
16540
16134
|
i0.ɵɵelementEnd();
|
|
@@ -16570,10 +16164,10 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
|
|
|
16570
16164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
16571
16165
|
type: Component,
|
|
16572
16166
|
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"] }]
|
|
16573
|
-
}], () => [{ type: LinkedCasesService }
|
|
16167
|
+
}], () => [{ type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
16574
16168
|
type: Output
|
|
16575
16169
|
}] }); })();
|
|
16576
|
-
(() => { (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:
|
|
16170
|
+
(() => { (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 }); })();
|
|
16577
16171
|
|
|
16578
16172
|
class ValidatorsUtils {
|
|
16579
16173
|
numberLengthValidator(inputLength) {
|
|
@@ -16603,7 +16197,7 @@ class ValidatorsUtils {
|
|
|
16603
16197
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16604
16198
|
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16605
16199
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16606
|
-
i0.ɵɵelementStart(0, "span",
|
|
16200
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16607
16201
|
i0.ɵɵtext(2, "Error:");
|
|
16608
16202
|
i0.ɵɵelementEnd();
|
|
16609
16203
|
i0.ɵɵtext(3);
|
|
@@ -16614,7 +16208,7 @@ function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16614
16208
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseNumberError, " ");
|
|
16615
16209
|
} }
|
|
16616
16210
|
function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
16617
|
-
i0.ɵɵelementStart(0, "span",
|
|
16211
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16618
16212
|
i0.ɵɵtext(2, "Error:");
|
|
16619
16213
|
i0.ɵɵelementEnd();
|
|
16620
16214
|
i0.ɵɵtext(3);
|
|
@@ -16626,10 +16220,10 @@ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
16626
16220
|
} }
|
|
16627
16221
|
function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
16628
16222
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
16629
|
-
i0.ɵɵelementStart(0, "div",
|
|
16223
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "input", 33);
|
|
16630
16224
|
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)); });
|
|
16631
16225
|
i0.ɵɵelementEnd();
|
|
16632
|
-
i0.ɵɵelementStart(2, "label",
|
|
16226
|
+
i0.ɵɵelementStart(2, "label", 34);
|
|
16633
16227
|
i0.ɵɵtext(3);
|
|
16634
16228
|
i0.ɵɵelementEnd()();
|
|
16635
16229
|
} if (rf & 2) {
|
|
@@ -16645,7 +16239,7 @@ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
16645
16239
|
i0.ɵɵtextInterpolate(reason_r4.value_en);
|
|
16646
16240
|
} }
|
|
16647
16241
|
function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16648
|
-
i0.ɵɵelementStart(0, "span",
|
|
16242
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16649
16243
|
i0.ɵɵtext(2, "Error:");
|
|
16650
16244
|
i0.ɵɵelementEnd();
|
|
16651
16245
|
i0.ɵɵtext(3);
|
|
@@ -16656,14 +16250,14 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
16656
16250
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseReasonCommentsError, " ");
|
|
16657
16251
|
} }
|
|
16658
16252
|
function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
16659
|
-
i0.ɵɵelementStart(0, "div",
|
|
16253
|
+
i0.ɵɵelementStart(0, "div", 35)(1, "h3", 22);
|
|
16660
16254
|
i0.ɵɵtext(2, "Comments");
|
|
16661
16255
|
i0.ɵɵelementEnd();
|
|
16662
16256
|
i0.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
|
|
16663
|
-
i0.ɵɵelementStart(4, "textarea",
|
|
16257
|
+
i0.ɵɵelementStart(4, "textarea", 36);
|
|
16664
16258
|
i0.ɵɵtext(5, " ");
|
|
16665
16259
|
i0.ɵɵelementEnd();
|
|
16666
|
-
i0.ɵɵelementStart(6, "div",
|
|
16260
|
+
i0.ɵɵelementStart(6, "div", 37);
|
|
16667
16261
|
i0.ɵɵtext(7, " You can enter up to 100 characters ");
|
|
16668
16262
|
i0.ɵɵelementEnd()();
|
|
16669
16263
|
} if (rf & 2) {
|
|
@@ -16673,7 +16267,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
16673
16267
|
i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
|
|
16674
16268
|
} }
|
|
16675
16269
|
function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
16676
|
-
i0.ɵɵelementStart(0, "span",
|
|
16270
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16677
16271
|
i0.ɵɵtext(2, "Error:");
|
|
16678
16272
|
i0.ɵɵelementEnd();
|
|
16679
16273
|
i0.ɵɵtext(3);
|
|
@@ -16685,26 +16279,26 @@ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
16685
16279
|
} }
|
|
16686
16280
|
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16687
16281
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
16688
|
-
i0.ɵɵelementStart(0, "div",
|
|
16282
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "div", 5)(2, "h3", 22);
|
|
16689
16283
|
i0.ɵɵtext(3, "Enter case reference");
|
|
16690
16284
|
i0.ɵɵelementEnd();
|
|
16691
16285
|
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
16692
|
-
i0.ɵɵelement(5, "input",
|
|
16286
|
+
i0.ɵɵelement(5, "input", 23);
|
|
16693
16287
|
i0.ɵɵelementEnd();
|
|
16694
|
-
i0.ɵɵelementStart(6, "div",
|
|
16288
|
+
i0.ɵɵelementStart(6, "div", 24)(7, "h3", 22);
|
|
16695
16289
|
i0.ɵɵtext(8, "Why should these cases be linked?");
|
|
16696
16290
|
i0.ɵɵelementEnd();
|
|
16697
|
-
i0.ɵɵelementStart(9, "div",
|
|
16291
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
16698
16292
|
i0.ɵɵtext(10, " Select all that apply. ");
|
|
16699
16293
|
i0.ɵɵelementEnd();
|
|
16700
16294
|
i0.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
|
|
16701
|
-
i0.ɵɵelementStart(12, "div",
|
|
16702
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div",
|
|
16295
|
+
i0.ɵɵelementStart(12, "div", 26);
|
|
16296
|
+
i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 27);
|
|
16703
16297
|
i0.ɵɵelementEnd()();
|
|
16704
|
-
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div",
|
|
16298
|
+
i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 28);
|
|
16705
16299
|
i0.ɵɵelement(15, "br")(16, "br");
|
|
16706
16300
|
i0.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
|
|
16707
|
-
i0.ɵɵelementStart(18, "button",
|
|
16301
|
+
i0.ɵɵelementStart(18, "button", 29);
|
|
16708
16302
|
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()); });
|
|
16709
16303
|
i0.ɵɵtext(19, "Propose case link");
|
|
16710
16304
|
i0.ɵɵelementEnd()();
|
|
@@ -16727,7 +16321,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
16727
16321
|
i0.ɵɵproperty("ngIf", ctx_r1.caseSelectionError);
|
|
16728
16322
|
} }
|
|
16729
16323
|
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16730
|
-
i0.ɵɵelementStart(0, "span",
|
|
16324
|
+
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16731
16325
|
i0.ɵɵtext(2, "Error:");
|
|
16732
16326
|
i0.ɵɵelementEnd();
|
|
16733
16327
|
i0.ɵɵtext(3);
|
|
@@ -16750,27 +16344,27 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
16750
16344
|
} }
|
|
16751
16345
|
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
16752
16346
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
16753
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16754
|
-
i0.ɵɵelement(2, "div",
|
|
16347
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
|
|
16348
|
+
i0.ɵɵelement(2, "div", 39);
|
|
16755
16349
|
i0.ɵɵelementStart(3, "span");
|
|
16756
16350
|
i0.ɵɵtext(4);
|
|
16757
16351
|
i0.ɵɵelement(5, "br");
|
|
16758
16352
|
i0.ɵɵtext(6);
|
|
16759
16353
|
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
16760
16354
|
i0.ɵɵelementEnd()();
|
|
16761
|
-
i0.ɵɵelementStart(8, "td",
|
|
16355
|
+
i0.ɵɵelementStart(8, "td", 40);
|
|
16762
16356
|
i0.ɵɵtext(9);
|
|
16763
16357
|
i0.ɵɵelementEnd();
|
|
16764
|
-
i0.ɵɵelementStart(10, "td",
|
|
16358
|
+
i0.ɵɵelementStart(10, "td", 38);
|
|
16765
16359
|
i0.ɵɵtext(11);
|
|
16766
16360
|
i0.ɵɵelementEnd();
|
|
16767
|
-
i0.ɵɵelementStart(12, "td",
|
|
16361
|
+
i0.ɵɵelementStart(12, "td", 40);
|
|
16768
16362
|
i0.ɵɵtext(13);
|
|
16769
16363
|
i0.ɵɵelementEnd();
|
|
16770
|
-
i0.ɵɵelementStart(14, "td",
|
|
16771
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span",
|
|
16364
|
+
i0.ɵɵelementStart(14, "td", 38);
|
|
16365
|
+
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 41);
|
|
16772
16366
|
i0.ɵɵelementEnd();
|
|
16773
|
-
i0.ɵɵelementStart(16, "td",
|
|
16367
|
+
i0.ɵɵelementStart(16, "td", 38)(17, "a", 42);
|
|
16774
16368
|
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)); });
|
|
16775
16369
|
i0.ɵɵtext(18, "Remove");
|
|
16776
16370
|
i0.ɵɵelementEnd()()();
|
|
@@ -16799,11 +16393,11 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16799
16393
|
i0.ɵɵattribute("id", case_r9.caseReference);
|
|
16800
16394
|
} }
|
|
16801
16395
|
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
16802
|
-
i0.ɵɵelementStart(0, "tr", 10)(1, "td",
|
|
16396
|
+
i0.ɵɵelementStart(0, "tr", 10)(1, "td", 43);
|
|
16803
16397
|
i0.ɵɵtext(2, " None ");
|
|
16804
16398
|
i0.ɵɵelementEnd()();
|
|
16805
16399
|
} }
|
|
16806
|
-
class LinkCasesComponent
|
|
16400
|
+
class LinkCasesComponent {
|
|
16807
16401
|
casesService;
|
|
16808
16402
|
fb;
|
|
16809
16403
|
validatorsUtils;
|
|
@@ -16822,8 +16416,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16822
16416
|
linkCaseReasons;
|
|
16823
16417
|
showComments = false;
|
|
16824
16418
|
ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
16825
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService
|
|
16826
|
-
super(multipageComponentStateService);
|
|
16419
|
+
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
16827
16420
|
this.casesService = casesService;
|
|
16828
16421
|
this.fb = fb;
|
|
16829
16422
|
this.validatorsUtils = validatorsUtils;
|
|
@@ -16834,11 +16427,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16834
16427
|
this.caseName = this.linkedCasesService.caseName;
|
|
16835
16428
|
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
16836
16429
|
this.initForm();
|
|
16837
|
-
if (
|
|
16838
|
-
this.linkedCasesService.linkedCases = [];
|
|
16839
|
-
this.linkedCasesService.caseFieldValue = [];
|
|
16840
|
-
}
|
|
16841
|
-
if (this.linkedCasesService.editMode || this.linkedCasesService.linkedCases.length) {
|
|
16430
|
+
if (this.linkedCasesService.editMode) {
|
|
16842
16431
|
// this may have includes the currently added one but yet to be submitted.
|
|
16843
16432
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
16844
16433
|
}
|
|
@@ -16847,9 +16436,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16847
16436
|
}
|
|
16848
16437
|
}
|
|
16849
16438
|
initForm() {
|
|
16850
|
-
const caseNumber = this.linkedCasesService.storedCaseNumber ?? '';
|
|
16851
16439
|
this.linkCaseForm = this.fb.group({
|
|
16852
|
-
caseNumber: [
|
|
16440
|
+
caseNumber: ['', [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
|
|
16853
16441
|
reasonType: this.getReasonTypeFormArray,
|
|
16854
16442
|
otherDescription: ['', [Validators.maxLength(100)]]
|
|
16855
16443
|
});
|
|
@@ -16882,8 +16470,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16882
16470
|
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
16883
16471
|
!this.isCaseSelectedSameAsCurrentCase() &&
|
|
16884
16472
|
!this.isOtherOptionSelectedButOtherDescriptionNotEntered()) {
|
|
16885
|
-
this.linkedCasesService.storedCaseNumber = '';
|
|
16886
|
-
this.linkedCasesService.hasNavigatedInJourney = true;
|
|
16887
16473
|
this.getCaseInfo();
|
|
16888
16474
|
}
|
|
16889
16475
|
else {
|
|
@@ -16988,7 +16574,9 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
16988
16574
|
CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
16989
16575
|
ReasonForLink: this.getSelectedCCDTypeCaseReason()
|
|
16990
16576
|
};
|
|
16991
|
-
this.linkedCasesService.caseFieldValue
|
|
16577
|
+
if (!this.linkedCasesService.caseFieldValue) {
|
|
16578
|
+
this.linkedCasesService.caseFieldValue = [];
|
|
16579
|
+
}
|
|
16992
16580
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16993
16581
|
this.selectedCases.push(caseLink);
|
|
16994
16582
|
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
@@ -17059,7 +16647,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17059
16647
|
this.caseSelectionError = null;
|
|
17060
16648
|
this.noSelectedCaseError = null;
|
|
17061
16649
|
let navigateToNextPage = true;
|
|
17062
|
-
this.linkedCasesService.storedCaseNumber = this.linkCaseForm.value.caseNumber ?? '';
|
|
17063
16650
|
if (this.selectedCases.length) {
|
|
17064
16651
|
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
17065
16652
|
}
|
|
@@ -17074,14 +16661,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17074
16661
|
}
|
|
17075
16662
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17076
16663
|
}
|
|
17077
|
-
|
|
17078
|
-
|
|
17079
|
-
if (this.errorMessages.length === 0) {
|
|
17080
|
-
super.next();
|
|
17081
|
-
}
|
|
17082
|
-
}
|
|
17083
|
-
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)); };
|
|
17084
|
-
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) {
|
|
16664
|
+
static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
16665
|
+
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) {
|
|
17085
16666
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "span", 2);
|
|
17086
16667
|
i0.ɵɵtext(4);
|
|
17087
16668
|
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
@@ -17115,7 +16696,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17115
16696
|
i0.ɵɵelementEnd()();
|
|
17116
16697
|
i0.ɵɵelementStart(30, "tbody", 16);
|
|
17117
16698
|
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17)(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
17118
|
-
i0.ɵɵelementEnd()()()
|
|
16699
|
+
i0.ɵɵelementEnd()()();
|
|
16700
|
+
i0.ɵɵelementStart(33, "div", 19)(34, "button", 20);
|
|
16701
|
+
i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
16702
|
+
i0.ɵɵtext(35, "Next");
|
|
16703
|
+
i0.ɵɵelementEnd()()()()();
|
|
17119
16704
|
} if (rf & 2) {
|
|
17120
16705
|
i0.ɵɵadvance(4);
|
|
17121
16706
|
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
@@ -17133,11 +16718,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
|
|
|
17133
16718
|
}
|
|
17134
16719
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
17135
16720
|
type: Component,
|
|
17136
|
-
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"] }]
|
|
17137
|
-
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }
|
|
16721
|
+
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"] }]
|
|
16722
|
+
}], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17138
16723
|
type: Output
|
|
17139
16724
|
}] }); })();
|
|
17140
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber:
|
|
16725
|
+
(() => { (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 }); })();
|
|
17141
16726
|
|
|
17142
16727
|
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
17143
16728
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -17673,12 +17258,11 @@ function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
17673
17258
|
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
17674
17259
|
i0.ɵɵelementEnd();
|
|
17675
17260
|
} }
|
|
17676
|
-
class NoLinkedCasesComponent
|
|
17261
|
+
class NoLinkedCasesComponent {
|
|
17677
17262
|
router;
|
|
17678
17263
|
linkedCasesService;
|
|
17679
17264
|
serverLinkedApiError;
|
|
17680
|
-
constructor(router, linkedCasesService
|
|
17681
|
-
super(multipageComponentStateService);
|
|
17265
|
+
constructor(router, linkedCasesService) {
|
|
17682
17266
|
this.router = router;
|
|
17683
17267
|
this.linkedCasesService = linkedCasesService;
|
|
17684
17268
|
}
|
|
@@ -17688,8 +17272,8 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17688
17272
|
onBack() {
|
|
17689
17273
|
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
|
|
17690
17274
|
}
|
|
17691
|
-
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17692
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]],
|
|
17275
|
+
static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17276
|
+
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) {
|
|
17693
17277
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17694
17278
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
17695
17279
|
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);
|
|
@@ -17712,66 +17296,70 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
|
|
|
17712
17296
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
17713
17297
|
type: Component,
|
|
17714
17298
|
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" }]
|
|
17715
|
-
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }
|
|
17716
|
-
(() => { (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:
|
|
17299
|
+
}], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], null); })();
|
|
17300
|
+
(() => { (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 }); })();
|
|
17717
17301
|
|
|
17718
17302
|
const _c0$I = a0 => ({ "govuk-form-group--error": a0 });
|
|
17719
17303
|
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
17720
|
-
i0.ɵɵelementStart(0, "p",
|
|
17304
|
+
i0.ɵɵelementStart(0, "p", 11)(1, "span", 12);
|
|
17721
17305
|
i0.ɵɵtext(2, "Error:");
|
|
17722
17306
|
i0.ɵɵelementEnd();
|
|
17723
17307
|
i0.ɵɵtext(3);
|
|
17724
17308
|
i0.ɵɵelementEnd();
|
|
17725
17309
|
} if (rf & 2) {
|
|
17726
|
-
const
|
|
17310
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
17727
17311
|
i0.ɵɵadvance(3);
|
|
17728
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17312
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.unlinkErrorMessage, " ");
|
|
17729
17313
|
} }
|
|
17730
17314
|
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
17731
|
-
const
|
|
17732
|
-
i0.ɵɵelementStart(0, "div",
|
|
17733
|
-
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(
|
|
17315
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
17316
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "input", 14);
|
|
17317
|
+
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)); });
|
|
17734
17318
|
i0.ɵɵelementEnd();
|
|
17735
|
-
i0.ɵɵelementStart(2, "label",
|
|
17319
|
+
i0.ɵɵelementStart(2, "label", 15);
|
|
17736
17320
|
i0.ɵɵtext(3);
|
|
17737
17321
|
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
17738
17322
|
i0.ɵɵelementEnd()();
|
|
17739
17323
|
} if (rf & 2) {
|
|
17740
|
-
const
|
|
17324
|
+
const case_r4 = ctx.$implicit;
|
|
17741
17325
|
i0.ɵɵadvance();
|
|
17742
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-",
|
|
17743
|
-
i0.ɵɵproperty("value",
|
|
17326
|
+
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
17327
|
+
i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
17744
17328
|
i0.ɵɵadvance();
|
|
17745
|
-
i0.ɵɵpropertyInterpolate("for",
|
|
17329
|
+
i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
17746
17330
|
i0.ɵɵadvance();
|
|
17747
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
17331
|
+
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r4.caseReference), " ");
|
|
17748
17332
|
} }
|
|
17749
17333
|
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
17750
|
-
i0.ɵɵelementStart(0, "div",
|
|
17751
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p",
|
|
17752
|
-
i0.ɵɵelementStart(2, "div",
|
|
17753
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div",
|
|
17334
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
17335
|
+
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
17336
|
+
i0.ɵɵelementStart(2, "div", 9);
|
|
17337
|
+
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 10);
|
|
17754
17338
|
i0.ɵɵelementEnd()();
|
|
17755
17339
|
} if (rf & 2) {
|
|
17756
|
-
const
|
|
17757
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I,
|
|
17340
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17341
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
17758
17342
|
i0.ɵɵadvance();
|
|
17759
|
-
i0.ɵɵproperty("ngIf",
|
|
17343
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
17760
17344
|
i0.ɵɵadvance(2);
|
|
17761
|
-
i0.ɵɵproperty("ngForOf",
|
|
17345
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
17762
17346
|
} }
|
|
17763
17347
|
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
17348
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17764
17349
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h1", 3);
|
|
17765
17350
|
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
17766
17351
|
i0.ɵɵelementEnd();
|
|
17767
17352
|
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
17768
|
-
i0.ɵɵ
|
|
17353
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
|
|
17354
|
+
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()); });
|
|
17355
|
+
i0.ɵɵtext(7, "Next");
|
|
17356
|
+
i0.ɵɵelementEnd()()()();
|
|
17769
17357
|
} if (rf & 2) {
|
|
17770
|
-
const
|
|
17358
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17771
17359
|
i0.ɵɵadvance(4);
|
|
17772
|
-
i0.ɵɵproperty("ngIf",
|
|
17360
|
+
i0.ɵɵproperty("ngIf", ctx_r1.unlinkCaseForm);
|
|
17773
17361
|
} }
|
|
17774
|
-
class UnLinkCasesComponent
|
|
17362
|
+
class UnLinkCasesComponent {
|
|
17775
17363
|
fb;
|
|
17776
17364
|
casesService;
|
|
17777
17365
|
linkedCasesService;
|
|
@@ -17786,8 +17374,7 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17786
17374
|
unlinkErrorMessage;
|
|
17787
17375
|
isLoaded;
|
|
17788
17376
|
isServerError = false;
|
|
17789
|
-
constructor(fb, casesService, linkedCasesService
|
|
17790
|
-
super(multipageComponentStateService);
|
|
17377
|
+
constructor(fb, casesService, linkedCasesService) {
|
|
17791
17378
|
this.fb = fb;
|
|
17792
17379
|
this.casesService = casesService;
|
|
17793
17380
|
this.linkedCasesService = linkedCasesService;
|
|
@@ -17880,12 +17467,6 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17880
17467
|
// Return linked cases state and error messages to the parent
|
|
17881
17468
|
this.emitLinkedCasesState(navigateToNextPage);
|
|
17882
17469
|
}
|
|
17883
|
-
next() {
|
|
17884
|
-
this.onNext();
|
|
17885
|
-
if (this.errorMessages.length === 0) {
|
|
17886
|
-
super.next();
|
|
17887
|
-
}
|
|
17888
|
-
}
|
|
17889
17470
|
// Return linked cases state and error messages to the parent
|
|
17890
17471
|
emitLinkedCasesState(isNavigateToNextPage) {
|
|
17891
17472
|
this.linkedCasesStateEmitter.emit({
|
|
@@ -17898,22 +17479,22 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
|
|
|
17898
17479
|
this.errorMessages = [];
|
|
17899
17480
|
this.unlinkErrorMessage = null;
|
|
17900
17481
|
}
|
|
17901
|
-
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)
|
|
17902
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" },
|
|
17903
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template,
|
|
17482
|
+
static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
17483
|
+
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) {
|
|
17484
|
+
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
17904
17485
|
} if (rf & 2) {
|
|
17905
17486
|
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
17906
17487
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormArrayName, CaseReferencePipe], encapsulation: 2 });
|
|
17907
17488
|
}
|
|
17908
17489
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
17909
17490
|
type: Component,
|
|
17910
|
-
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" }]
|
|
17911
|
-
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }
|
|
17491
|
+
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" }]
|
|
17492
|
+
}], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
|
|
17912
17493
|
type: Output
|
|
17913
17494
|
}], notifyAPIFailure: [{
|
|
17914
17495
|
type: Output
|
|
17915
17496
|
}] }); })();
|
|
17916
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber:
|
|
17497
|
+
(() => { (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 }); })();
|
|
17917
17498
|
|
|
17918
17499
|
// tslint:disable:variable-name
|
|
17919
17500
|
class LinkCaseReason {
|
|
@@ -18167,7 +17748,7 @@ class ReadLinkedCasesFieldComponent {
|
|
|
18167
17748
|
function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
18168
17749
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
18169
17750
|
i0.ɵɵelementContainerStart(0);
|
|
18170
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start",
|
|
17751
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
|
|
18171
17752
|
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)); });
|
|
18172
17753
|
i0.ɵɵelementEnd();
|
|
18173
17754
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18175,7 +17756,7 @@ function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (r
|
|
|
18175
17756
|
function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
18176
17757
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
18177
17758
|
i0.ɵɵelementContainerStart(0);
|
|
18178
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases",
|
|
17759
|
+
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
|
|
18179
17760
|
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)); });
|
|
18180
17761
|
i0.ɵɵelementEnd();
|
|
18181
17762
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18183,7 +17764,7 @@ function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (r
|
|
|
18183
17764
|
function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
18184
17765
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
18185
17766
|
i0.ɵɵelementContainerStart(0);
|
|
18186
|
-
i0.ɵɵelementStart(1, "ccd-link-cases",
|
|
17767
|
+
i0.ɵɵelementStart(1, "ccd-link-cases", 3);
|
|
18187
17768
|
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)); });
|
|
18188
17769
|
i0.ɵɵelementEnd();
|
|
18189
17770
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18191,7 +17772,7 @@ function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (r
|
|
|
18191
17772
|
function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
18192
17773
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
18193
17774
|
i0.ɵɵelementContainerStart(0);
|
|
18194
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases",
|
|
17775
|
+
i0.ɵɵelementStart(1, "ccd-unlink-cases", 3);
|
|
18195
17776
|
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)); });
|
|
18196
17777
|
i0.ɵɵelementEnd();
|
|
18197
17778
|
i0.ɵɵelementContainerEnd();
|
|
@@ -18199,12 +17780,12 @@ function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (r
|
|
|
18199
17780
|
function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
18200
17781
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
18201
17782
|
i0.ɵɵelementContainerStart(0);
|
|
18202
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers",
|
|
17783
|
+
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
|
|
18203
17784
|
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)); });
|
|
18204
17785
|
i0.ɵɵelementEnd();
|
|
18205
17786
|
i0.ɵɵelementContainerEnd();
|
|
18206
17787
|
} }
|
|
18207
|
-
class WriteLinkedCasesFieldComponent extends
|
|
17788
|
+
class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
18208
17789
|
appConfig;
|
|
18209
17790
|
commonDataService;
|
|
18210
17791
|
casesService;
|
|
@@ -18217,8 +17798,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18217
17798
|
linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
18218
17799
|
linkedCases = [];
|
|
18219
17800
|
subscriptions = new Subscription();
|
|
18220
|
-
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService
|
|
18221
|
-
super(
|
|
17801
|
+
constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
17802
|
+
super();
|
|
18222
17803
|
this.appConfig = appConfig;
|
|
18223
17804
|
this.commonDataService = commonDataService;
|
|
18224
17805
|
this.casesService = casesService;
|
|
@@ -18243,18 +17824,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18243
17824
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18244
17825
|
next: editForm => this.caseEditForm = editForm
|
|
18245
17826
|
}));
|
|
18246
|
-
this.journeyPageNumber = this.journeyStartPageNumber = LinkedCasesPages.BEFORE_YOU_START;
|
|
18247
|
-
this.journeyEndPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18248
|
-
if (this.linkedCasesService.cameFromFinalStep) {
|
|
18249
|
-
this.linkedCasesPage = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18250
|
-
this.journeyPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
18251
|
-
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18252
|
-
}
|
|
18253
|
-
this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
|
|
18254
|
-
}
|
|
18255
|
-
onPageChange() {
|
|
18256
|
-
const isAtStart = this.journeyPageNumber === this.journeyStartPageNumber || this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START;
|
|
18257
|
-
this.multipageComponentStateService.isAtStart = isAtStart;
|
|
18258
17827
|
}
|
|
18259
17828
|
initialiseCaseDetails(caseDetails) {
|
|
18260
17829
|
if (caseDetails) {
|
|
@@ -18312,8 +17881,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18312
17881
|
}
|
|
18313
17882
|
proceedToNextPage() {
|
|
18314
17883
|
if (this.isAtFinalPage()) {
|
|
18315
|
-
// Set the journey page to the end page.
|
|
18316
|
-
this.journeyPageNumber = this.journeyEndPageNumber;
|
|
18317
17884
|
// Continue button event must be allowed in final page
|
|
18318
17885
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
|
|
18319
17886
|
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
@@ -18325,7 +17892,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18325
17892
|
// Continue button event must not be allowed if not in final page
|
|
18326
17893
|
this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
|
|
18327
17894
|
}
|
|
18328
|
-
this.nextPage();
|
|
18329
17895
|
}
|
|
18330
17896
|
submitLinkedCases() {
|
|
18331
17897
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -18356,53 +17922,24 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18356
17922
|
});
|
|
18357
17923
|
if (caseViewFiltered) {
|
|
18358
17924
|
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18362
|
-
}
|
|
17925
|
+
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
17926
|
+
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18363
17927
|
}
|
|
18364
17928
|
// Initialise the first page to display
|
|
18365
|
-
|
|
18366
|
-
this.
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
|
|
18370
|
-
: LinkedCasesPages.NO_LINKED_CASES;
|
|
18371
|
-
}
|
|
17929
|
+
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
17930
|
+
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
17931
|
+
&& !this.linkedCasesService.serverLinkedApiError)
|
|
17932
|
+
? LinkedCasesPages.BEFORE_YOU_START
|
|
17933
|
+
: LinkedCasesPages.NO_LINKED_CASES;
|
|
18372
17934
|
});
|
|
18373
17935
|
}
|
|
18374
17936
|
ngOnDestroy() {
|
|
18375
17937
|
this.subscriptions.unsubscribe();
|
|
18376
17938
|
}
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
}
|
|
18382
|
-
else if (this.linkedCasesPage === LinkedCasesPages.LINK_CASE) {
|
|
18383
|
-
this.linkedCasesPage = LinkedCasesPages.BEFORE_YOU_START;
|
|
18384
|
-
}
|
|
18385
|
-
else {
|
|
18386
|
-
this.linkedCasesPage--;
|
|
18387
|
-
}
|
|
18388
|
-
}
|
|
18389
|
-
else {
|
|
18390
|
-
if (this.linkedCasesPage === LinkedCasesPages.UNLINK_CASE) {
|
|
18391
|
-
this.linkedCasesPage = this.linkedCasesPages.BEFORE_YOU_START;
|
|
18392
|
-
}
|
|
18393
|
-
else if (this.linkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS) {
|
|
18394
|
-
this.linkedCasesPage = this.linkedCasesPages.UNLINK_CASE;
|
|
18395
|
-
}
|
|
18396
|
-
else {
|
|
18397
|
-
this.linkedCasesPage--;
|
|
18398
|
-
}
|
|
18399
|
-
}
|
|
18400
|
-
super.previousPage();
|
|
18401
|
-
}
|
|
18402
|
-
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)); };
|
|
18403
|
-
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) {
|
|
18404
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
|
|
18405
|
-
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);
|
|
17939
|
+
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)); };
|
|
17940
|
+
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) {
|
|
17941
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
17942
|
+
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);
|
|
18406
17943
|
i0.ɵɵelementEnd()();
|
|
18407
17944
|
} if (rf & 2) {
|
|
18408
17945
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
@@ -18422,8 +17959,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
|
|
|
18422
17959
|
}
|
|
18423
17960
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
|
|
18424
17961
|
type: Component,
|
|
18425
|
-
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
|
|
18426
|
-
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }
|
|
17962
|
+
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" }]
|
|
17963
|
+
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18427
17964
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
|
|
18428
17965
|
|
|
18429
17966
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -23186,10 +22723,10 @@ function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23186
22723
|
i0.ɵɵtextInterpolate1(" (", i0.ɵɵpipeBind1(2, 1, "optional"), ")");
|
|
23187
22724
|
} }
|
|
23188
22725
|
function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
23189
|
-
i0.ɵɵelementStart(0, "div",
|
|
22726
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "span", 15);
|
|
23190
22727
|
i0.ɵɵtext(2, "!");
|
|
23191
22728
|
i0.ɵɵelementEnd();
|
|
23192
|
-
i0.ɵɵelementStart(3, "strong",
|
|
22729
|
+
i0.ɵɵelementStart(3, "strong", 16)(4, "span", 17);
|
|
23193
22730
|
i0.ɵɵtext(5);
|
|
23194
22731
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
23195
22732
|
i0.ɵɵelementEnd();
|
|
@@ -23204,7 +22741,7 @@ function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
23204
22741
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.addCommentsStepEnum.WARNING_TEXT), " ");
|
|
23205
22742
|
} }
|
|
23206
22743
|
function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
23207
|
-
i0.ɵɵelementStart(0, "div",
|
|
22744
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
23208
22745
|
i0.ɵɵtext(2);
|
|
23209
22746
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23210
22747
|
i0.ɵɵelementEnd();
|
|
@@ -23219,7 +22756,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
23219
22756
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsNotEnteredErrorMessage), " ");
|
|
23220
22757
|
} }
|
|
23221
22758
|
function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
23222
|
-
i0.ɵɵelementStart(0, "div",
|
|
22759
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
23223
22760
|
i0.ɵɵtext(2);
|
|
23224
22761
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23225
22762
|
i0.ɵɵelementEnd();
|
|
@@ -23233,7 +22770,7 @@ function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
23233
22770
|
i0.ɵɵadvance(2);
|
|
23234
22771
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
23235
22772
|
} }
|
|
23236
|
-
class AddCommentsComponent
|
|
22773
|
+
class AddCommentsComponent {
|
|
23237
22774
|
formGroup;
|
|
23238
22775
|
optional = false;
|
|
23239
22776
|
isDisplayContextParameterExternal = false;
|
|
@@ -23292,14 +22829,8 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23292
22829
|
});
|
|
23293
22830
|
}
|
|
23294
22831
|
}
|
|
23295
|
-
|
|
23296
|
-
|
|
23297
|
-
if (this.errorMessages.length === 0) {
|
|
23298
|
-
super.next();
|
|
23299
|
-
}
|
|
23300
|
-
}
|
|
23301
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵAddCommentsComponent_BaseFactory; return function AddCommentsComponent_Factory(t) { return (ɵAddCommentsComponent_BaseFactory || (ɵAddCommentsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AddCommentsComponent)))(t || AddCommentsComponent); }; })();
|
|
23302
|
-
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) {
|
|
22832
|
+
static ɵfac = function AddCommentsComponent_Factory(t) { return new (t || AddCommentsComponent)(); };
|
|
22833
|
+
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) {
|
|
23303
22834
|
i0.ɵɵelementContainerStart(0, 0);
|
|
23304
22835
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
23305
22836
|
i0.ɵɵtext(5);
|
|
@@ -23317,18 +22848,23 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23317
22848
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
23318
22849
|
i0.ɵɵelementEnd()()();
|
|
23319
22850
|
i0.ɵɵelementContainerEnd();
|
|
22851
|
+
i0.ɵɵelementStart(18, "div", 12)(19, "button", 13);
|
|
22852
|
+
i0.ɵɵlistener("click", function AddCommentsComponent_Template_button_click_19_listener() { return ctx.onNext(); });
|
|
22853
|
+
i0.ɵɵtext(20);
|
|
22854
|
+
i0.ɵɵpipe(21, "rpxTranslate");
|
|
22855
|
+
i0.ɵɵelementEnd()();
|
|
23320
22856
|
} if (rf & 2) {
|
|
23321
22857
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
23322
22858
|
i0.ɵɵadvance(2);
|
|
23323
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22859
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c0$s, ctx.errorMessages.length > 0));
|
|
23324
22860
|
i0.ɵɵadvance(2);
|
|
23325
22861
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
23326
22862
|
i0.ɵɵadvance();
|
|
23327
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
22863
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 14, ctx.addCommentsTitle), "");
|
|
23328
22864
|
i0.ɵɵadvance(2);
|
|
23329
22865
|
i0.ɵɵproperty("ngIf", ctx.optional);
|
|
23330
22866
|
i0.ɵɵadvance(2);
|
|
23331
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10,
|
|
22867
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
|
|
23332
22868
|
i0.ɵɵadvance(2);
|
|
23333
22869
|
i0.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled && !ctx.otherInternalFlagTypeSelected);
|
|
23334
22870
|
i0.ɵɵadvance();
|
|
@@ -23338,12 +22874,14 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23338
22874
|
i0.ɵɵadvance();
|
|
23339
22875
|
i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
|
|
23340
22876
|
i0.ɵɵadvance(2);
|
|
23341
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17,
|
|
22877
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
22878
|
+
i0.ɵɵadvance(4);
|
|
22879
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 20, "Next"));
|
|
23342
22880
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
23343
22881
|
}
|
|
23344
22882
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
|
|
23345
22883
|
type: Component,
|
|
23346
|
-
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>" }]
|
|
22884
|
+
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" }]
|
|
23347
22885
|
}], null, { formGroup: [{
|
|
23348
22886
|
type: Input
|
|
23349
22887
|
}], optional: [{
|
|
@@ -23355,7 +22893,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
|
|
|
23355
22893
|
}], caseFlagStateEmitter: [{
|
|
23356
22894
|
type: Output
|
|
23357
22895
|
}] }); })();
|
|
23358
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber:
|
|
22896
|
+
(() => { (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 }); })();
|
|
23359
22897
|
|
|
23360
22898
|
function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
23361
22899
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
@@ -23857,7 +23395,7 @@ class CaseFlagTableComponent {
|
|
|
23857
23395
|
|
|
23858
23396
|
const _c0$r = a0 => ({ "form-group-error": a0 });
|
|
23859
23397
|
function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
23860
|
-
i0.ɵɵelementStart(0, "div",
|
|
23398
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
23861
23399
|
i0.ɵɵtext(2);
|
|
23862
23400
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23863
23401
|
i0.ɵɵelementEnd();
|
|
@@ -23872,8 +23410,8 @@ function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
23872
23410
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.manageCaseFlagSelectedErrorMessage), " ");
|
|
23873
23411
|
} }
|
|
23874
23412
|
function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
23875
|
-
i0.ɵɵelementStart(0, "div",
|
|
23876
|
-
i0.ɵɵelement(1, "input",
|
|
23413
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
23414
|
+
i0.ɵɵelement(1, "input", 12)(2, "label", 13);
|
|
23877
23415
|
i0.ɵɵpipe(3, "manageCaseFlagsLabelDisplay");
|
|
23878
23416
|
i0.ɵɵelementEnd();
|
|
23879
23417
|
} if (rf & 2) {
|
|
@@ -23887,7 +23425,18 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
23887
23425
|
i0.ɵɵpropertyInterpolate1("for", "flag-selection-", i_r3, "");
|
|
23888
23426
|
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(3, 8, flagDisplay_r2), i0.ɵɵsanitizeHtml);
|
|
23889
23427
|
} }
|
|
23890
|
-
|
|
23428
|
+
function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
23429
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
23430
|
+
i0.ɵɵelementStart(0, "div", 14)(1, "button", 15);
|
|
23431
|
+
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()); });
|
|
23432
|
+
i0.ɵɵtext(2);
|
|
23433
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
23434
|
+
i0.ɵɵelementEnd()();
|
|
23435
|
+
} if (rf & 2) {
|
|
23436
|
+
i0.ɵɵadvance(2);
|
|
23437
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
23438
|
+
} }
|
|
23439
|
+
class ManageCaseFlagsComponent {
|
|
23891
23440
|
formGroup;
|
|
23892
23441
|
flagsData;
|
|
23893
23442
|
caseTitle;
|
|
@@ -23903,12 +23452,6 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23903
23452
|
excludedFlagStatuses = [CaseFlagStatus.INACTIVE, CaseFlagStatus.NOT_APPROVED];
|
|
23904
23453
|
ngOnInit() {
|
|
23905
23454
|
this.manageCaseFlagTitle = this.setManageCaseFlagTitle(this.displayContextParameter);
|
|
23906
|
-
let originalStatus;
|
|
23907
|
-
// 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
|
|
23908
|
-
if (this.formGroup.get('selectedManageCaseLocation')) {
|
|
23909
|
-
const locationControl = this.formGroup.get('selectedManageCaseLocation');
|
|
23910
|
-
originalStatus = locationControl.value?.originalStatus;
|
|
23911
|
-
}
|
|
23912
23455
|
// Map flags instances to objects for display, filtering out any where the original status is either "Inactive" or
|
|
23913
23456
|
// "Not approved"
|
|
23914
23457
|
/* istanbul ignore else */
|
|
@@ -23918,7 +23461,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23918
23461
|
if (flagsInstance.flags.details && flagsInstance.flags.details.length > 0) {
|
|
23919
23462
|
displayData = [
|
|
23920
23463
|
...displayData,
|
|
23921
|
-
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance
|
|
23464
|
+
...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance))
|
|
23922
23465
|
];
|
|
23923
23466
|
}
|
|
23924
23467
|
return displayData;
|
|
@@ -23934,7 +23477,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23934
23477
|
this.onNoFlagsError();
|
|
23935
23478
|
}
|
|
23936
23479
|
}
|
|
23937
|
-
mapFlagDetailForDisplay(flagDetail, flagsInstance
|
|
23480
|
+
mapFlagDetailForDisplay(flagDetail, flagsInstance) {
|
|
23938
23481
|
// Reset the flag status with the original persisted status. This is needed because ngOnInit() needs to filter
|
|
23939
23482
|
// out any "Inactive" or "Not approved" flags based on their status *before* modification. If the user changes a
|
|
23940
23483
|
// flag's status then decides to return to the start of the flag update journey, the flag's status would no
|
|
@@ -23957,9 +23500,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
23957
23500
|
}
|
|
23958
23501
|
if (formattedValue && FieldsUtils.isNonEmptyObject(formattedValue)) {
|
|
23959
23502
|
const originalFlagDetail = formattedValue.details?.find((detail) => detail.id === flagDetail.id);
|
|
23960
|
-
const statusToUse = originalStatusFromFG ? (originalStatusFromFG === originalFlagDetail.value?.status ? originalFlagDetail.value?.status : originalStatusFromFG) : originalFlagDetail.value?.status;
|
|
23961
23503
|
if (originalFlagDetail) {
|
|
23962
|
-
originalStatus =
|
|
23504
|
+
originalStatus = originalFlagDetail.value?.status;
|
|
23963
23505
|
flagDetail.flagComment = originalFlagDetail.value?.flagComment;
|
|
23964
23506
|
flagDetail.flagComment_cy = originalFlagDetail.value?.flagComment_cy;
|
|
23965
23507
|
flagDetail.otherDescription = originalFlagDetail.value?.otherDescription;
|
|
@@ -24028,14 +23570,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24028
23570
|
errorMessages: this.errorMessages
|
|
24029
23571
|
});
|
|
24030
23572
|
}
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
if (this.errorMessages.length === 0) {
|
|
24034
|
-
super.next();
|
|
24035
|
-
}
|
|
24036
|
-
}
|
|
24037
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵManageCaseFlagsComponent_BaseFactory; return function ManageCaseFlagsComponent_Factory(t) { return (ɵManageCaseFlagsComponent_BaseFactory || (ɵManageCaseFlagsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ManageCaseFlagsComponent)))(t || ManageCaseFlagsComponent); }; })();
|
|
24038
|
-
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) {
|
|
23573
|
+
static ɵfac = function ManageCaseFlagsComponent_Factory(t) { return new (t || ManageCaseFlagsComponent)(); };
|
|
23574
|
+
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) {
|
|
24039
23575
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24040
23576
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24041
23577
|
i0.ɵɵtext(5);
|
|
@@ -24046,21 +23582,24 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24046
23582
|
i0.ɵɵtemplate(9, ManageCaseFlagsComponent_div_9_Template, 4, 10, "div", 7);
|
|
24047
23583
|
i0.ɵɵelementEnd()()();
|
|
24048
23584
|
i0.ɵɵelementContainerEnd();
|
|
23585
|
+
i0.ɵɵtemplate(10, ManageCaseFlagsComponent_div_10_Template, 4, 3, "div", 8);
|
|
24049
23586
|
} if (rf & 2) {
|
|
24050
23587
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24051
23588
|
i0.ɵɵadvance();
|
|
24052
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23589
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$r, ctx.errorMessages.length > 0));
|
|
24053
23590
|
i0.ɵɵadvance(4);
|
|
24054
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
23591
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
|
|
24055
23592
|
i0.ɵɵadvance(2);
|
|
24056
23593
|
i0.ɵɵproperty("ngIf", ctx.manageCaseFlagSelectedErrorMessage);
|
|
24057
23594
|
i0.ɵɵadvance(2);
|
|
24058
23595
|
i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
|
|
23596
|
+
i0.ɵɵadvance();
|
|
23597
|
+
i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
|
|
24059
23598
|
} }, styles: [".flag-name-and-description{font-weight:700}\n"], encapsulation: 2 });
|
|
24060
23599
|
}
|
|
24061
23600
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
|
|
24062
23601
|
type: Component,
|
|
24063
|
-
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"] }]
|
|
23602
|
+
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"] }]
|
|
24064
23603
|
}], null, { formGroup: [{
|
|
24065
23604
|
type: Input
|
|
24066
23605
|
}], flagsData: [{
|
|
@@ -24072,7 +23611,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
|
|
|
24072
23611
|
}], caseFlagStateEmitter: [{
|
|
24073
23612
|
type: Output
|
|
24074
23613
|
}] }); })();
|
|
24075
|
-
(() => { (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:
|
|
23614
|
+
(() => { (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 }); })();
|
|
24076
23615
|
|
|
24077
23616
|
// tslint:disable:variable-name
|
|
24078
23617
|
/**
|
|
@@ -24137,7 +23676,7 @@ var SearchLanguageInterpreterControlNames;
|
|
|
24137
23676
|
|
|
24138
23677
|
const _c0$q = a0 => ({ "form-group-error": a0 });
|
|
24139
23678
|
function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24140
|
-
i0.ɵɵelementStart(0, "div",
|
|
23679
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 21);
|
|
24141
23680
|
i0.ɵɵtext(2);
|
|
24142
23681
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24143
23682
|
i0.ɵɵelementEnd();
|
|
@@ -24152,7 +23691,7 @@ function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf &
|
|
|
24152
23691
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotSelectedErrorMessage), " ");
|
|
24153
23692
|
} }
|
|
24154
23693
|
function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24155
|
-
i0.ɵɵelementStart(0, "div",
|
|
23694
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 21);
|
|
24156
23695
|
i0.ɵɵtext(2);
|
|
24157
23696
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24158
23697
|
i0.ɵɵelementEnd();
|
|
@@ -24167,7 +23706,7 @@ function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf &
|
|
|
24167
23706
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageEnteredInBothFieldsErrorMessage), " ");
|
|
24168
23707
|
} }
|
|
24169
23708
|
function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
24170
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23709
|
+
i0.ɵɵelementStart(0, "mat-option", 23);
|
|
24171
23710
|
i0.ɵɵtext(1);
|
|
24172
23711
|
i0.ɵɵpipe(2, "languageInterpreterDisplay");
|
|
24173
23712
|
i0.ɵɵelementEnd();
|
|
@@ -24178,7 +23717,7 @@ function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if
|
|
|
24178
23717
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, language_r3), " ");
|
|
24179
23718
|
} }
|
|
24180
23719
|
function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if (rf & 1) {
|
|
24181
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
23720
|
+
i0.ɵɵelementStart(0, "mat-option", 24);
|
|
24182
23721
|
i0.ɵɵtext(1);
|
|
24183
23722
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
24184
23723
|
i0.ɵɵelementEnd();
|
|
@@ -24187,7 +23726,7 @@ function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if
|
|
|
24187
23726
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "No results found"));
|
|
24188
23727
|
} }
|
|
24189
23728
|
function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
24190
|
-
i0.ɵɵelementStart(0, "div",
|
|
23729
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "span", 21);
|
|
24191
23730
|
i0.ɵɵtext(2);
|
|
24192
23731
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24193
23732
|
i0.ɵɵelementEnd();
|
|
@@ -24202,7 +23741,7 @@ function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if
|
|
|
24202
23741
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotEnteredErrorMessage), " ");
|
|
24203
23742
|
} }
|
|
24204
23743
|
function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24205
|
-
i0.ɵɵelementStart(0, "div",
|
|
23744
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 21);
|
|
24206
23745
|
i0.ɵɵtext(2);
|
|
24207
23746
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24208
23747
|
i0.ɵɵelementEnd();
|
|
@@ -24217,12 +23756,12 @@ function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if
|
|
|
24217
23756
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageCharLimitErrorMessage), " ");
|
|
24218
23757
|
} }
|
|
24219
23758
|
function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
24220
|
-
i0.ɵɵelementStart(0, "div",
|
|
23759
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "div", 2)(2, "label", 26);
|
|
24221
23760
|
i0.ɵɵtext(3);
|
|
24222
23761
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24223
23762
|
i0.ɵɵelementEnd();
|
|
24224
|
-
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div",
|
|
24225
|
-
i0.ɵɵelement(7, "input",
|
|
23763
|
+
i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 27)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 28);
|
|
23764
|
+
i0.ɵɵelement(7, "input", 29);
|
|
24226
23765
|
i0.ɵɵelementEnd()();
|
|
24227
23766
|
} if (rf & 2) {
|
|
24228
23767
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -24237,7 +23776,7 @@ function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf &
|
|
|
24237
23776
|
i0.ɵɵadvance();
|
|
24238
23777
|
i0.ɵɵproperty("name", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
|
|
24239
23778
|
} }
|
|
24240
|
-
class SearchLanguageInterpreterComponent
|
|
23779
|
+
class SearchLanguageInterpreterComponent {
|
|
24241
23780
|
rpxTranslationService;
|
|
24242
23781
|
get searchLanguageInterpreterStep() {
|
|
24243
23782
|
return SearchLanguageInterpreterStep;
|
|
@@ -24259,8 +23798,7 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24259
23798
|
noResults = false;
|
|
24260
23799
|
languageMaxCharLimit = 80;
|
|
24261
23800
|
signLanguageFlagCode = 'RA0042';
|
|
24262
|
-
constructor(rpxTranslationService
|
|
24263
|
-
super(multipageComponentStateService);
|
|
23801
|
+
constructor(rpxTranslationService) {
|
|
24264
23802
|
this.rpxTranslationService = rpxTranslationService;
|
|
24265
23803
|
}
|
|
24266
23804
|
ngOnInit() {
|
|
@@ -24360,14 +23898,8 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24360
23898
|
!language.value && language.value_cy.toLowerCase().includes(searchTerm.toLowerCase(), 0))
|
|
24361
23899
|
: [];
|
|
24362
23900
|
}
|
|
24363
|
-
|
|
24364
|
-
|
|
24365
|
-
if (this.errorMessages.length === 0) {
|
|
24366
|
-
super.next();
|
|
24367
|
-
}
|
|
24368
|
-
}
|
|
24369
|
-
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
24370
|
-
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) {
|
|
23901
|
+
static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
23902
|
+
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) {
|
|
24371
23903
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
24372
23904
|
i0.ɵɵelementContainerStart(0, 1);
|
|
24373
23905
|
i0.ɵɵelementStart(1, "div", 2)(2, "h1", 3)(3, "label", 4);
|
|
@@ -24396,17 +23928,22 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24396
23928
|
i0.ɵɵtemplate(24, SearchLanguageInterpreterComponent_div_24_Template, 8, 10, "div", 17);
|
|
24397
23929
|
i0.ɵɵelementEnd()();
|
|
24398
23930
|
i0.ɵɵelementContainerEnd();
|
|
23931
|
+
i0.ɵɵelementStart(25, "div", 18)(26, "button", 19);
|
|
23932
|
+
i0.ɵɵlistener("click", function SearchLanguageInterpreterComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
23933
|
+
i0.ɵɵtext(27);
|
|
23934
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
23935
|
+
i0.ɵɵelementEnd()();
|
|
24399
23936
|
} if (rf & 2) {
|
|
24400
23937
|
const autoSearchLanguage_r4 = i0.ɵɵreference(14);
|
|
24401
23938
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24402
23939
|
i0.ɵɵadvance();
|
|
24403
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
23940
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
24404
23941
|
i0.ɵɵadvance(2);
|
|
24405
23942
|
i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
|
|
24406
23943
|
i0.ɵɵadvance();
|
|
24407
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
23944
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 15, ctx.flagType, "name"), " ");
|
|
24408
23945
|
i0.ɵɵadvance(3);
|
|
24409
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
23946
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 18, ctx.searchLanguageInterpreterHint), " ");
|
|
24410
23947
|
i0.ɵɵadvance(3);
|
|
24411
23948
|
i0.ɵɵproperty("ngIf", ctx.languageNotSelectedErrorMessage);
|
|
24412
23949
|
i0.ɵɵadvance();
|
|
@@ -24416,30 +23953,32 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
|
|
|
24416
23953
|
i0.ɵɵadvance();
|
|
24417
23954
|
i0.ɵɵproperty("displayWith", ctx.displayLanguage);
|
|
24418
23955
|
i0.ɵɵadvance(2);
|
|
24419
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16,
|
|
23956
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 20, ctx.filteredLanguages$));
|
|
24420
23957
|
i0.ɵɵadvance(2);
|
|
24421
23958
|
i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length >= ctx.minSearchCharacters);
|
|
24422
23959
|
i0.ɵɵadvance(5);
|
|
24423
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23,
|
|
23960
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
|
|
24424
23961
|
i0.ɵɵadvance(2);
|
|
24425
23962
|
i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
|
|
23963
|
+
i0.ɵɵadvance(3);
|
|
23964
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 24, "Next"));
|
|
24426
23965
|
} }, 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}"] });
|
|
24427
23966
|
}
|
|
24428
23967
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
|
|
24429
23968
|
type: Component,
|
|
24430
|
-
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"] }]
|
|
24431
|
-
}], () => [{ type: i1.RpxTranslationService }
|
|
23969
|
+
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"] }]
|
|
23970
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
24432
23971
|
type: Input
|
|
24433
23972
|
}], flagType: [{
|
|
24434
23973
|
type: Input
|
|
24435
23974
|
}], caseFlagStateEmitter: [{
|
|
24436
23975
|
type: Output
|
|
24437
23976
|
}] }); })();
|
|
24438
|
-
(() => { (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:
|
|
23977
|
+
(() => { (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 }); })();
|
|
24439
23978
|
|
|
24440
23979
|
const _c0$p = a0 => ({ "form-group-error": a0 });
|
|
24441
23980
|
function SelectFlagLocationComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
24442
|
-
i0.ɵɵelementStart(0, "div",
|
|
23981
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
|
|
24443
23982
|
i0.ɵɵtext(2);
|
|
24444
23983
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24445
23984
|
i0.ɵɵelementEnd();
|
|
@@ -24466,7 +24005,7 @@ function SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Templat
|
|
|
24466
24005
|
function SelectFlagLocationComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
24467
24006
|
i0.ɵɵelementContainerStart(0);
|
|
24468
24007
|
i0.ɵɵtext(1);
|
|
24469
|
-
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container",
|
|
24008
|
+
i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 14);
|
|
24470
24009
|
i0.ɵɵelementContainerEnd();
|
|
24471
24010
|
} if (rf & 2) {
|
|
24472
24011
|
const flagsInstance_r2 = i0.ɵɵnextContext().$implicit;
|
|
@@ -24486,10 +24025,10 @@ function SelectFlagLocationComponent_div_9_ng_container_4_Template(rf, ctx) { if
|
|
|
24486
24025
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseLevelFlagLabel), " ");
|
|
24487
24026
|
} }
|
|
24488
24027
|
function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
24489
|
-
i0.ɵɵelementStart(0, "div",
|
|
24490
|
-
i0.ɵɵelement(1, "input",
|
|
24491
|
-
i0.ɵɵelementStart(2, "label",
|
|
24492
|
-
i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container",
|
|
24028
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
24029
|
+
i0.ɵɵelement(1, "input", 12);
|
|
24030
|
+
i0.ɵɵelementStart(2, "label", 13);
|
|
24031
|
+
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);
|
|
24493
24032
|
i0.ɵɵelementEnd()();
|
|
24494
24033
|
} if (rf & 2) {
|
|
24495
24034
|
const flagsInstance_r2 = ctx.$implicit;
|
|
@@ -24505,7 +24044,18 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
24505
24044
|
i0.ɵɵadvance();
|
|
24506
24045
|
i0.ɵɵproperty("ngIf", !flagsInstance_r2.flags.partyName);
|
|
24507
24046
|
} }
|
|
24508
|
-
|
|
24047
|
+
function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24048
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
24049
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "button", 16);
|
|
24050
|
+
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()); });
|
|
24051
|
+
i0.ɵɵtext(2);
|
|
24052
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24053
|
+
i0.ɵɵelementEnd()();
|
|
24054
|
+
} if (rf & 2) {
|
|
24055
|
+
i0.ɵɵadvance(2);
|
|
24056
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24057
|
+
} }
|
|
24058
|
+
class SelectFlagLocationComponent {
|
|
24509
24059
|
formGroup;
|
|
24510
24060
|
flagsData;
|
|
24511
24061
|
isDisplayContextParameterExternal = false;
|
|
@@ -24580,14 +24130,8 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24580
24130
|
// Return case flag field state and error messages to the parent
|
|
24581
24131
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24582
24132
|
}
|
|
24583
|
-
|
|
24584
|
-
|
|
24585
|
-
if (this.errorMessages.length === 0) {
|
|
24586
|
-
super.next();
|
|
24587
|
-
}
|
|
24588
|
-
}
|
|
24589
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵSelectFlagLocationComponent_BaseFactory; return function SelectFlagLocationComponent_Factory(t) { return (ɵSelectFlagLocationComponent_BaseFactory || (ɵSelectFlagLocationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SelectFlagLocationComponent)))(t || SelectFlagLocationComponent); }; })();
|
|
24590
|
-
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) {
|
|
24133
|
+
static ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
|
|
24134
|
+
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) {
|
|
24591
24135
|
i0.ɵɵelementContainerStart(0, 0);
|
|
24592
24136
|
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
|
|
24593
24137
|
i0.ɵɵtext(5);
|
|
@@ -24598,21 +24142,24 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24598
24142
|
i0.ɵɵtemplate(9, SelectFlagLocationComponent_div_9_Template, 5, 9, "div", 7);
|
|
24599
24143
|
i0.ɵɵelementEnd()()();
|
|
24600
24144
|
i0.ɵɵelementContainerEnd();
|
|
24145
|
+
i0.ɵɵtemplate(10, SelectFlagLocationComponent_div_10_Template, 4, 3, "div", 8);
|
|
24601
24146
|
} if (rf & 2) {
|
|
24602
24147
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
24603
24148
|
i0.ɵɵadvance();
|
|
24604
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24149
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$p, ctx.errorMessages.length > 0));
|
|
24605
24150
|
i0.ɵɵadvance(4);
|
|
24606
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24151
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
|
|
24607
24152
|
i0.ɵɵadvance(2);
|
|
24608
24153
|
i0.ɵɵproperty("ngIf", ctx.flagLocationNotSelectedErrorMessage);
|
|
24609
24154
|
i0.ɵɵadvance(2);
|
|
24610
24155
|
i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
|
|
24156
|
+
i0.ɵɵadvance();
|
|
24157
|
+
i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
|
|
24611
24158
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
24612
24159
|
}
|
|
24613
24160
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
|
|
24614
24161
|
type: Component,
|
|
24615
|
-
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>" }]
|
|
24162
|
+
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" }]
|
|
24616
24163
|
}], null, { formGroup: [{
|
|
24617
24164
|
type: Input
|
|
24618
24165
|
}], flagsData: [{
|
|
@@ -24622,7 +24169,7 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
|
|
|
24622
24169
|
}], caseFlagStateEmitter: [{
|
|
24623
24170
|
type: Output
|
|
24624
24171
|
}] }); })();
|
|
24625
|
-
(() => { (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:
|
|
24172
|
+
(() => { (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 }); })();
|
|
24626
24173
|
|
|
24627
24174
|
const _c0$o = a0 => ({ "form-group-error": a0 });
|
|
24628
24175
|
const _c1$8 = a0 => ({ "govuk-input--error": a0 });
|
|
@@ -24645,7 +24192,7 @@ function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx)
|
|
|
24645
24192
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, ctx_r0.cachedFlagType, "name"), " ");
|
|
24646
24193
|
} }
|
|
24647
24194
|
function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24648
|
-
i0.ɵɵelementStart(0, "div",
|
|
24195
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
|
|
24649
24196
|
i0.ɵɵtext(2);
|
|
24650
24197
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24651
24198
|
i0.ɵɵelementEnd();
|
|
@@ -24660,9 +24207,9 @@ function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf
|
|
|
24660
24207
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeNotSelectedErrorMessage), " ");
|
|
24661
24208
|
} }
|
|
24662
24209
|
function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
24663
|
-
i0.ɵɵelementStart(0, "div",
|
|
24664
|
-
i0.ɵɵelement(1, "input",
|
|
24665
|
-
i0.ɵɵelementStart(2, "label",
|
|
24210
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
24211
|
+
i0.ɵɵelement(1, "input", 16);
|
|
24212
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
24666
24213
|
i0.ɵɵtext(3);
|
|
24667
24214
|
i0.ɵɵpipe(4, "flagFieldDisplay");
|
|
24668
24215
|
i0.ɵɵelementEnd()();
|
|
@@ -24679,7 +24226,7 @@ function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (r
|
|
|
24679
24226
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(4, 8, flagType_r2, "name"), " ");
|
|
24680
24227
|
} }
|
|
24681
24228
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
24682
|
-
i0.ɵɵelementStart(0, "div",
|
|
24229
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 14);
|
|
24683
24230
|
i0.ɵɵtext(2);
|
|
24684
24231
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24685
24232
|
i0.ɵɵelementEnd();
|
|
@@ -24694,9 +24241,9 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
|
|
|
24694
24241
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeErrorMessage), " ");
|
|
24695
24242
|
} }
|
|
24696
24243
|
function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
24697
|
-
i0.ɵɵelementStart(0, "div",
|
|
24698
|
-
i0.ɵɵelement(1, "input",
|
|
24699
|
-
i0.ɵɵelementStart(2, "label",
|
|
24244
|
+
i0.ɵɵelementStart(0, "div", 24);
|
|
24245
|
+
i0.ɵɵelement(1, "input", 25);
|
|
24246
|
+
i0.ɵɵelementStart(2, "label", 26);
|
|
24700
24247
|
i0.ɵɵtext(3);
|
|
24701
24248
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24702
24249
|
i0.ɵɵelementEnd()();
|
|
@@ -24708,14 +24255,14 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
|
|
|
24708
24255
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
|
|
24709
24256
|
} }
|
|
24710
24257
|
function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
24711
|
-
i0.ɵɵelementStart(0, "div",
|
|
24258
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "div", 4)(2, "label", 19);
|
|
24712
24259
|
i0.ɵɵtext(3);
|
|
24713
24260
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
24714
24261
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
24715
24262
|
i0.ɵɵelementEnd();
|
|
24716
|
-
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div",
|
|
24717
|
-
i0.ɵɵelement(7, "input",
|
|
24718
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div",
|
|
24263
|
+
i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
|
|
24264
|
+
i0.ɵɵelement(7, "input", 21);
|
|
24265
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
|
|
24719
24266
|
i0.ɵɵelementEnd()();
|
|
24720
24267
|
} if (rf & 2) {
|
|
24721
24268
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -24731,13 +24278,13 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
|
|
|
24731
24278
|
i0.ɵɵproperty("ngIf", !ctx_r0.isDisplayContextParameterExternal && !ctx_r0.isCaseLevelFlag && ctx_r0.isDisplayContextParameter2Point1Enabled);
|
|
24732
24279
|
} }
|
|
24733
24280
|
function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
24734
|
-
i0.ɵɵelementContainerStart(0,
|
|
24735
|
-
i0.ɵɵelementStart(1, "div",
|
|
24736
|
-
i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container",
|
|
24281
|
+
i0.ɵɵelementContainerStart(0, 3);
|
|
24282
|
+
i0.ɵɵelementStart(1, "div", 4)(2, "fieldset", 5)(3, "legend", 6)(4, "h1", 7);
|
|
24283
|
+
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);
|
|
24737
24284
|
i0.ɵɵelementEnd()();
|
|
24738
|
-
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div",
|
|
24739
|
-
i0.ɵɵelementStart(9, "div",
|
|
24740
|
-
i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div",
|
|
24285
|
+
i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
|
|
24286
|
+
i0.ɵɵelementStart(9, "div", 10);
|
|
24287
|
+
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);
|
|
24741
24288
|
i0.ɵɵelementEnd()()();
|
|
24742
24289
|
i0.ɵɵelementContainerEnd();
|
|
24743
24290
|
} if (rf & 2) {
|
|
@@ -24747,7 +24294,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24747
24294
|
i0.ɵɵadvance();
|
|
24748
24295
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
|
|
24749
24296
|
i0.ɵɵadvance(4);
|
|
24750
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType
|
|
24297
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType)("ngIfElse", priorFlagTypeSelected_r4);
|
|
24751
24298
|
i0.ɵɵadvance(3);
|
|
24752
24299
|
i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
|
|
24753
24300
|
i0.ɵɵadvance(2);
|
|
@@ -24755,7 +24302,18 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
|
|
|
24755
24302
|
i0.ɵɵadvance();
|
|
24756
24303
|
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
|
|
24757
24304
|
} }
|
|
24758
|
-
|
|
24305
|
+
function SelectFlagTypeComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
24306
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24307
|
+
i0.ɵɵelementStart(0, "div", 27)(1, "button", 28);
|
|
24308
|
+
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()); });
|
|
24309
|
+
i0.ɵɵtext(2);
|
|
24310
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
24311
|
+
i0.ɵɵelementEnd()();
|
|
24312
|
+
} if (rf & 2) {
|
|
24313
|
+
i0.ɵɵadvance(2);
|
|
24314
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
|
|
24315
|
+
} }
|
|
24316
|
+
class SelectFlagTypeComponent {
|
|
24759
24317
|
caseFlagRefdataService;
|
|
24760
24318
|
formGroup;
|
|
24761
24319
|
jurisdiction;
|
|
@@ -24777,8 +24335,6 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24777
24335
|
flagTypeControlChangesSubscription;
|
|
24778
24336
|
caseFlagFormField = CaseFlagFormFields;
|
|
24779
24337
|
isCaseLevelFlag = false;
|
|
24780
|
-
cachedRDFlagTypes;
|
|
24781
|
-
subJourneyIndex = 0;
|
|
24782
24338
|
maxCharactersForOtherFlagType = 80;
|
|
24783
24339
|
// Code for "Other" flag type as defined in Reference Data
|
|
24784
24340
|
otherFlagTypeCode = 'OT0001';
|
|
@@ -24786,16 +24342,15 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24786
24342
|
get caseFlagWizardStepTitle() {
|
|
24787
24343
|
return CaseFlagWizardStepTitle;
|
|
24788
24344
|
}
|
|
24789
|
-
constructor(caseFlagRefdataService, pageStateService) {
|
|
24790
|
-
super(pageStateService);
|
|
24791
|
-
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24792
|
-
}
|
|
24793
24345
|
get selectedFlagType() {
|
|
24794
24346
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value;
|
|
24795
24347
|
}
|
|
24796
24348
|
get otherFlagTypeSelected() {
|
|
24797
24349
|
return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value?.flagCode === this.otherFlagTypeCode;
|
|
24798
24350
|
}
|
|
24351
|
+
constructor(caseFlagRefdataService) {
|
|
24352
|
+
this.caseFlagRefdataService = caseFlagRefdataService;
|
|
24353
|
+
}
|
|
24799
24354
|
ngOnInit() {
|
|
24800
24355
|
this.isCaseLevelFlag = this.selectedFlagsLocation?.flags?.flagsCaseFieldId === this.caseLevelCaseFlagsFieldId;
|
|
24801
24356
|
this.flagTypes = [];
|
|
@@ -24806,7 +24361,7 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24806
24361
|
this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(false));
|
|
24807
24362
|
// Should clear descriptionControlName if flagTypeControlName is changed
|
|
24808
24363
|
this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.valueChanges
|
|
24809
|
-
.subscribe(
|
|
24364
|
+
.subscribe(_ => {
|
|
24810
24365
|
this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.setValue('');
|
|
24811
24366
|
this.cachedPath = [];
|
|
24812
24367
|
// required to clear language interpreter
|
|
@@ -24820,8 +24375,8 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24820
24375
|
this.flagRefdata$ = this.caseFlagRefdataService
|
|
24821
24376
|
.getCaseFlagsRefdata(this.hmctsServiceId, flagType, true, this.isDisplayContextParameterExternal)
|
|
24822
24377
|
.subscribe({
|
|
24823
|
-
next:
|
|
24824
|
-
error:
|
|
24378
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24379
|
+
error: error => this.onRefdataError(error)
|
|
24825
24380
|
});
|
|
24826
24381
|
}
|
|
24827
24382
|
else {
|
|
@@ -24829,36 +24384,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24829
24384
|
this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
|
|
24830
24385
|
.pipe(
|
|
24831
24386
|
// If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
|
|
24832
|
-
catchError(
|
|
24387
|
+
catchError(_ => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
|
|
24833
24388
|
// Use switchMap to return an inner Observable of the flag types data, having received the service details
|
|
24834
24389
|
// including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
|
|
24835
|
-
switchMap(
|
|
24390
|
+
switchMap(serviceDetails => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
|
|
24836
24391
|
.subscribe({
|
|
24837
|
-
next:
|
|
24838
|
-
error:
|
|
24392
|
+
next: flagTypes => this.processFlagTypes(flagTypes),
|
|
24393
|
+
error: error => this.onRefdataError(error)
|
|
24839
24394
|
});
|
|
24840
24395
|
}
|
|
24841
24396
|
}
|
|
24842
24397
|
ngOnDestroy() {
|
|
24843
24398
|
this.flagRefdata$?.unsubscribe();
|
|
24844
24399
|
this.flagTypeControlChangesSubscription?.unsubscribe();
|
|
24845
|
-
// check if the user has an existing path when navigating away from the page
|
|
24846
|
-
// if so we may need to ensure the values are set correctly.
|
|
24847
|
-
this.checkForExistingPath();
|
|
24848
|
-
}
|
|
24849
|
-
checkForExistingPath() {
|
|
24850
|
-
// Restore values from cachedPath
|
|
24851
|
-
if (this.subJourneyIndex <= 0) {
|
|
24852
|
-
// check if the user is navigating to the previous page in the jounrey.
|
|
24853
|
-
// in this situation we need to restore the full path for data retention across pages.
|
|
24854
|
-
if (this.cachedPath && this.cachedPath.length > 0) {
|
|
24855
|
-
this.cachedPath.forEach((flagType) => {
|
|
24856
|
-
if (flagType) {
|
|
24857
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(flagType, { emitEvent: false });
|
|
24858
|
-
}
|
|
24859
|
-
});
|
|
24860
|
-
}
|
|
24861
|
-
}
|
|
24862
24400
|
}
|
|
24863
24401
|
onNext() {
|
|
24864
24402
|
// Validate form
|
|
@@ -24880,40 +24418,10 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24880
24418
|
// when displaying the next set of child flags
|
|
24881
24419
|
this.cachedFlagType = this.selectedFlagType;
|
|
24882
24420
|
this.flagTypes = this.selectedFlagType.childFlags;
|
|
24883
|
-
|
|
24884
|
-
|
|
24885
|
-
}
|
|
24886
|
-
else {
|
|
24887
|
-
this.cachedPath?.shift();
|
|
24888
|
-
const value = this.cachedPath?.length ? this.cachedPath[0] : null;
|
|
24889
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(value, { emitEvent: false });
|
|
24890
|
-
}
|
|
24891
|
-
this.subJourneyIndex++;
|
|
24421
|
+
this.cachedPath?.shift();
|
|
24422
|
+
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath?.length ? this.cachedPath[0] : null, { emitEvent: false });
|
|
24892
24423
|
}
|
|
24893
24424
|
}
|
|
24894
|
-
// Simplified version of the onPrevious method with optimized code
|
|
24895
|
-
onPrevious() {
|
|
24896
|
-
if (this.cachedFlagType) {
|
|
24897
|
-
if (this.cachedFlagType.Path.length === 1) {
|
|
24898
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24899
|
-
this.flagTypes = this.cachedRDFlagTypes[0].childFlags;
|
|
24900
|
-
}
|
|
24901
|
-
else {
|
|
24902
|
-
let currentPath = this.cachedRDFlagTypes[0];
|
|
24903
|
-
const pathToSearch = this.cachedFlagType.Path.slice(1);
|
|
24904
|
-
for (const pathElement of pathToSearch) {
|
|
24905
|
-
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
24906
|
-
if (foundFlag) {
|
|
24907
|
-
currentPath = foundFlag;
|
|
24908
|
-
}
|
|
24909
|
-
}
|
|
24910
|
-
this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
|
|
24911
|
-
this.flagTypes = currentPath.childFlags;
|
|
24912
|
-
this.cachedFlagType = currentPath;
|
|
24913
|
-
}
|
|
24914
|
-
}
|
|
24915
|
-
this.subJourneyIndex = Math.max(0, this.subJourneyIndex - 1);
|
|
24916
|
-
}
|
|
24917
24425
|
// Identity function for trackBy use by *ngFor for flagTypes in HTML template
|
|
24918
24426
|
identifyFlagType(_, flagType) {
|
|
24919
24427
|
return `${flagType.flagCode}_${flagType.name}_${flagType.name_cy}`;
|
|
@@ -24951,33 +24459,18 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24951
24459
|
}
|
|
24952
24460
|
}
|
|
24953
24461
|
processFlagTypes(flagTypes) {
|
|
24954
|
-
|
|
24955
|
-
|
|
24956
|
-
this.
|
|
24957
|
-
if (this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) {
|
|
24958
|
-
const selectedFlagType = this.selectedFlagType;
|
|
24959
|
-
const pathToSearch = selectedFlagType.Path.slice(1);
|
|
24960
|
-
let currentPath = flagTypes[0];
|
|
24961
|
-
for (const pathElement of pathToSearch) {
|
|
24962
|
-
const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
|
|
24963
|
-
if (foundFlag) {
|
|
24964
|
-
currentPath = foundFlag;
|
|
24965
|
-
}
|
|
24966
|
-
}
|
|
24967
|
-
this.flagTypes = currentPath.childFlags;
|
|
24968
|
-
this.cachedFlagType = currentPath;
|
|
24969
|
-
}
|
|
24970
|
-
else {
|
|
24971
|
-
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
24972
|
-
}
|
|
24462
|
+
// First (and only) object in the returned array should be the top-level "Party" flag type
|
|
24463
|
+
// The "Other" flag type should be removed from the top level if the user is external
|
|
24464
|
+
this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
|
|
24973
24465
|
const formControl = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE);
|
|
24974
24466
|
if (formControl?.value) {
|
|
24975
|
-
|
|
24976
|
-
|
|
24977
|
-
|
|
24978
|
-
|
|
24979
|
-
|
|
24980
|
-
|
|
24467
|
+
// Cache Path based on existing flagCode -- needed for nested choices
|
|
24468
|
+
const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.flagTypes);
|
|
24469
|
+
this.cachedPath = [
|
|
24470
|
+
...path,
|
|
24471
|
+
foundFlagType
|
|
24472
|
+
];
|
|
24473
|
+
formControl.setValue(this.cachedPath[0], { emitEvent: false });
|
|
24981
24474
|
}
|
|
24982
24475
|
}
|
|
24983
24476
|
onRefdataError(error) {
|
|
@@ -24988,29 +24481,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
24988
24481
|
// Return case flag field state and error messages to the parent
|
|
24989
24482
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
|
|
24990
24483
|
}
|
|
24991
|
-
|
|
24992
|
-
|
|
24993
|
-
|
|
24994
|
-
super.next();
|
|
24995
|
-
}
|
|
24996
|
-
}
|
|
24997
|
-
previous() {
|
|
24998
|
-
this.onPrevious();
|
|
24999
|
-
if (this.subJourneyIndex <= 0) {
|
|
25000
|
-
super.previous();
|
|
25001
|
-
}
|
|
25002
|
-
}
|
|
25003
|
-
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
25004
|
-
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) {
|
|
25005
|
-
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1);
|
|
24484
|
+
static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
|
|
24485
|
+
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) {
|
|
24486
|
+
i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1)(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 2);
|
|
25006
24487
|
} if (rf & 2) {
|
|
25007
24488
|
i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
|
|
24489
|
+
i0.ɵɵadvance();
|
|
24490
|
+
i0.ɵɵproperty("ngIf", !ctx.refdataError);
|
|
25008
24491
|
} }, styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
|
|
25009
24492
|
}
|
|
25010
24493
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
|
|
25011
24494
|
type: Component,
|
|
25012
|
-
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
|
|
25013
|
-
}], () => [{ type: CaseFlagRefdataService }
|
|
24495
|
+
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"] }]
|
|
24496
|
+
}], () => [{ type: CaseFlagRefdataService }], { formGroup: [{
|
|
25014
24497
|
type: Input
|
|
25015
24498
|
}], jurisdiction: [{
|
|
25016
24499
|
type: Input
|
|
@@ -25029,35 +24512,35 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
|
|
|
25029
24512
|
}], flagCommentsOptionalEmitter: [{
|
|
25030
24513
|
type: Output
|
|
25031
24514
|
}] }); })();
|
|
25032
|
-
(() => { (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:
|
|
24515
|
+
(() => { (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 }); })();
|
|
25033
24516
|
|
|
25034
24517
|
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
25035
24518
|
const _c1$7 = a0 => ({ "govuk-tag--grey": a0 });
|
|
25036
24519
|
function UpdateFlagComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
25037
|
-
i0.ɵɵelementStart(0, "div",
|
|
24520
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
25038
24521
|
i0.ɵɵtext(1);
|
|
25039
24522
|
i0.ɵɵpipe(2, "updateFlagTitleDisplay");
|
|
25040
24523
|
i0.ɵɵelementEnd();
|
|
25041
24524
|
} if (rf & 2) {
|
|
25042
|
-
const
|
|
24525
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25043
24526
|
i0.ɵɵadvance();
|
|
25044
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24527
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail), " ");
|
|
25045
24528
|
} }
|
|
25046
24529
|
function UpdateFlagComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25047
|
-
i0.ɵɵelementStart(0, "div",
|
|
24530
|
+
i0.ɵɵelementStart(0, "div", 18);
|
|
25048
24531
|
i0.ɵɵtext(1);
|
|
25049
24532
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
25050
24533
|
i0.ɵɵelementEnd();
|
|
25051
24534
|
} if (rf & 2) {
|
|
25052
|
-
const
|
|
24535
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25053
24536
|
i0.ɵɵadvance();
|
|
25054
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1,
|
|
24537
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
|
|
25055
24538
|
} }
|
|
25056
24539
|
function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
25057
|
-
i0.ɵɵelementStart(0, "div",
|
|
24540
|
+
i0.ɵɵelementStart(0, "div", 25)(1, "span", 26);
|
|
25058
24541
|
i0.ɵɵtext(2, "!");
|
|
25059
24542
|
i0.ɵɵelementEnd();
|
|
25060
|
-
i0.ɵɵelementStart(3, "strong",
|
|
24543
|
+
i0.ɵɵelementStart(3, "strong", 27)(4, "span", 28);
|
|
25061
24544
|
i0.ɵɵtext(5);
|
|
25062
24545
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25063
24546
|
i0.ɵɵelementEnd();
|
|
@@ -25065,14 +24548,14 @@ function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf &
|
|
|
25065
24548
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
25066
24549
|
i0.ɵɵelementEnd()();
|
|
25067
24550
|
} if (rf & 2) {
|
|
25068
|
-
const
|
|
24551
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25069
24552
|
i0.ɵɵadvance(5);
|
|
25070
24553
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
|
|
25071
24554
|
i0.ɵɵadvance(2);
|
|
25072
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4,
|
|
24555
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
|
|
25073
24556
|
} }
|
|
25074
24557
|
function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
25075
|
-
i0.ɵɵelementStart(0, "div",
|
|
24558
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "span", 30);
|
|
25076
24559
|
i0.ɵɵtext(2);
|
|
25077
24560
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25078
24561
|
i0.ɵɵelementEnd();
|
|
@@ -25080,14 +24563,14 @@ function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf &
|
|
|
25080
24563
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25081
24564
|
i0.ɵɵelementEnd();
|
|
25082
24565
|
} if (rf & 2) {
|
|
25083
|
-
const
|
|
24566
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25084
24567
|
i0.ɵɵadvance(2);
|
|
25085
24568
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25086
24569
|
i0.ɵɵadvance(2);
|
|
25087
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24570
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsNotEnteredErrorMessage), " ");
|
|
25088
24571
|
} }
|
|
25089
24572
|
function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
25090
|
-
i0.ɵɵelementStart(0, "div",
|
|
24573
|
+
i0.ɵɵelementStart(0, "div", 31)(1, "span", 30);
|
|
25091
24574
|
i0.ɵɵtext(2);
|
|
25092
24575
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25093
24576
|
i0.ɵɵelementEnd();
|
|
@@ -25095,64 +24578,64 @@ function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf &
|
|
|
25095
24578
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25096
24579
|
i0.ɵɵelementEnd();
|
|
25097
24580
|
} if (rf & 2) {
|
|
25098
|
-
const
|
|
24581
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25099
24582
|
i0.ɵɵadvance(2);
|
|
25100
24583
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25101
24584
|
i0.ɵɵadvance(2);
|
|
25102
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24585
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsCharLimitErrorMessage), " ");
|
|
25103
24586
|
} }
|
|
25104
24587
|
function UpdateFlagComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
25105
24588
|
i0.ɵɵelementContainerStart(0);
|
|
25106
|
-
i0.ɵɵelementStart(1, "div",
|
|
24589
|
+
i0.ɵɵelementStart(1, "div", 19);
|
|
25107
24590
|
i0.ɵɵtext(2);
|
|
25108
24591
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25109
24592
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25110
24593
|
i0.ɵɵelementEnd();
|
|
25111
|
-
i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div",
|
|
25112
|
-
i0.ɵɵelementStart(8, "textarea",
|
|
24594
|
+
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);
|
|
24595
|
+
i0.ɵɵelementStart(8, "textarea", 23);
|
|
25113
24596
|
i0.ɵɵtext(9, " ");
|
|
25114
24597
|
i0.ɵɵelementEnd();
|
|
25115
|
-
i0.ɵɵelementStart(10, "div",
|
|
24598
|
+
i0.ɵɵelementStart(10, "div", 24);
|
|
25116
24599
|
i0.ɵɵtext(11);
|
|
25117
24600
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
25118
24601
|
i0.ɵɵelementEnd();
|
|
25119
24602
|
i0.ɵɵelementContainerEnd();
|
|
25120
24603
|
} if (rf & 2) {
|
|
25121
|
-
const
|
|
24604
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25122
24605
|
i0.ɵɵadvance(2);
|
|
25123
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
24606
|
+
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), " ");
|
|
25124
24607
|
i0.ɵɵadvance(3);
|
|
25125
|
-
i0.ɵɵproperty("ngIf",
|
|
24608
|
+
i0.ɵɵproperty("ngIf", ctx_r1.internalUser2Point1EnabledUpdate && ctx_r1.externallyVisibleFlag);
|
|
25126
24609
|
i0.ɵɵadvance();
|
|
25127
|
-
i0.ɵɵproperty("ngIf",
|
|
24610
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsNotEnteredErrorMessage);
|
|
25128
24611
|
i0.ɵɵadvance();
|
|
25129
|
-
i0.ɵɵproperty("ngIf",
|
|
24612
|
+
i0.ɵɵproperty("ngIf", ctx_r1.commentsCharLimitErrorMessage);
|
|
25130
24613
|
i0.ɵɵadvance();
|
|
25131
|
-
i0.ɵɵproperty("id",
|
|
24614
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.COMMENTS)("name", ctx_r1.caseFlagFormFields.COMMENTS)("formControlName", ctx_r1.caseFlagFormFields.COMMENTS);
|
|
25132
24615
|
i0.ɵɵadvance(3);
|
|
25133
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12,
|
|
24616
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25134
24617
|
} }
|
|
25135
24618
|
function UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
25136
24619
|
i0.ɵɵelementContainer(0);
|
|
25137
24620
|
} }
|
|
25138
24621
|
function UpdateFlagComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
25139
24622
|
i0.ɵɵelementContainerStart(0);
|
|
25140
|
-
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container",
|
|
24623
|
+
i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
|
|
25141
24624
|
i0.ɵɵelementContainerEnd();
|
|
25142
24625
|
} if (rf & 2) {
|
|
25143
24626
|
i0.ɵɵnextContext(2);
|
|
25144
|
-
const
|
|
24627
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25145
24628
|
i0.ɵɵadvance();
|
|
25146
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24629
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25147
24630
|
} }
|
|
25148
24631
|
function UpdateFlagComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
25149
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container",
|
|
24632
|
+
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 32);
|
|
25150
24633
|
} if (rf & 2) {
|
|
25151
|
-
const
|
|
25152
|
-
i0.ɵɵproperty("ngIf",
|
|
24634
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24635
|
+
i0.ɵɵproperty("ngIf", ctx_r1.externalUserUpdate);
|
|
25153
24636
|
} }
|
|
25154
24637
|
function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
25155
|
-
i0.ɵɵelementStart(0, "div",
|
|
24638
|
+
i0.ɵɵelementStart(0, "div", 38)(1, "span", 30);
|
|
25156
24639
|
i0.ɵɵtext(2);
|
|
25157
24640
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25158
24641
|
i0.ɵɵelementEnd();
|
|
@@ -25160,14 +24643,14 @@ function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1
|
|
|
25160
24643
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25161
24644
|
i0.ɵɵelementEnd();
|
|
25162
24645
|
} if (rf & 2) {
|
|
25163
|
-
const
|
|
24646
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25164
24647
|
i0.ɵɵadvance(2);
|
|
25165
24648
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25166
24649
|
i0.ɵɵadvance(2);
|
|
25167
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24650
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonNotEnteredErrorMessage), " ");
|
|
25168
24651
|
} }
|
|
25169
24652
|
function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
25170
|
-
i0.ɵɵelementStart(0, "div",
|
|
24653
|
+
i0.ɵɵelementStart(0, "div", 39)(1, "span", 30);
|
|
25171
24654
|
i0.ɵɵtext(2);
|
|
25172
24655
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25173
24656
|
i0.ɵɵelementEnd();
|
|
@@ -25175,100 +24658,100 @@ function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1
|
|
|
25175
24658
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25176
24659
|
i0.ɵɵelementEnd();
|
|
25177
24660
|
} if (rf & 2) {
|
|
25178
|
-
const
|
|
24661
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25179
24662
|
i0.ɵɵadvance(2);
|
|
25180
24663
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
25181
24664
|
i0.ɵɵadvance(2);
|
|
25182
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4,
|
|
24665
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonCharLimitErrorMessage), " ");
|
|
25183
24666
|
} }
|
|
25184
24667
|
function UpdateFlagComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
25185
|
-
i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div",
|
|
25186
|
-
i0.ɵɵelementStart(2, "textarea",
|
|
24668
|
+
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);
|
|
24669
|
+
i0.ɵɵelementStart(2, "textarea", 36);
|
|
25187
24670
|
i0.ɵɵtext(3, " ");
|
|
25188
24671
|
i0.ɵɵelementEnd();
|
|
25189
|
-
i0.ɵɵelementStart(4, "div",
|
|
24672
|
+
i0.ɵɵelementStart(4, "div", 37);
|
|
25190
24673
|
i0.ɵɵtext(5);
|
|
25191
24674
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25192
24675
|
i0.ɵɵelementEnd();
|
|
25193
24676
|
} if (rf & 2) {
|
|
25194
|
-
const
|
|
25195
|
-
i0.ɵɵproperty("ngIf",
|
|
24677
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24678
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonNotEnteredErrorMessage);
|
|
25196
24679
|
i0.ɵɵadvance();
|
|
25197
|
-
i0.ɵɵproperty("ngIf",
|
|
24680
|
+
i0.ɵɵproperty("ngIf", ctx_r1.statusReasonCharLimitErrorMessage);
|
|
25198
24681
|
i0.ɵɵadvance();
|
|
25199
|
-
i0.ɵɵproperty("id",
|
|
24682
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON);
|
|
25200
24683
|
i0.ɵɵadvance(3);
|
|
25201
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6,
|
|
24684
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25202
24685
|
} }
|
|
25203
24686
|
function UpdateFlagComponent_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
25204
|
-
i0.ɵɵelementStart(0, "div",
|
|
25205
|
-
i0.ɵɵelement(1, "input",
|
|
25206
|
-
i0.ɵɵelementStart(2, "label",
|
|
24687
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
24688
|
+
i0.ɵɵelement(1, "input", 48);
|
|
24689
|
+
i0.ɵɵelementStart(2, "label", 49);
|
|
25207
24690
|
i0.ɵɵtext(3);
|
|
25208
24691
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25209
24692
|
i0.ɵɵelementEnd()();
|
|
25210
24693
|
} if (rf & 2) {
|
|
25211
|
-
const
|
|
25212
|
-
const
|
|
24694
|
+
const status_r4 = ctx.$implicit;
|
|
24695
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25213
24696
|
i0.ɵɵadvance();
|
|
25214
|
-
i0.ɵɵproperty("id",
|
|
24697
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4)("name", ctx_r1.caseFlagFormFields.STATUS)("formControlName", ctx_r1.caseFlagFormFields.STATUS)("value", status_r4);
|
|
25215
24698
|
i0.ɵɵadvance();
|
|
25216
|
-
i0.ɵɵproperty("for",
|
|
24699
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4);
|
|
25217
24700
|
i0.ɵɵadvance();
|
|
25218
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6,
|
|
24701
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r1.caseFlagStatusEnum[status_r4]), " ");
|
|
25219
24702
|
} }
|
|
25220
24703
|
function UpdateFlagComponent_div_20_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
25221
24704
|
i0.ɵɵelementContainer(0);
|
|
25222
24705
|
} }
|
|
25223
24706
|
function UpdateFlagComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
25224
|
-
i0.ɵɵelementStart(0, "div",
|
|
24707
|
+
i0.ɵɵelementStart(0, "div", 40)(1, "fieldset", 41)(2, "legend", 42)(3, "h1", 43);
|
|
25225
24708
|
i0.ɵɵtext(4);
|
|
25226
24709
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
25227
24710
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25228
24711
|
i0.ɵɵelementEnd()();
|
|
25229
|
-
i0.ɵɵelementStart(7, "div",
|
|
25230
|
-
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div",
|
|
24712
|
+
i0.ɵɵelementStart(7, "div", 44);
|
|
24713
|
+
i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 45);
|
|
25231
24714
|
i0.ɵɵelementEnd()();
|
|
25232
|
-
i0.ɵɵelementStart(9, "div",
|
|
24715
|
+
i0.ɵɵelementStart(9, "div", 46);
|
|
25233
24716
|
i0.ɵɵtext(10);
|
|
25234
24717
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
25235
24718
|
i0.ɵɵelementEnd();
|
|
25236
|
-
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container",
|
|
24719
|
+
i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 33);
|
|
25237
24720
|
i0.ɵɵelementEnd();
|
|
25238
24721
|
} if (rf & 2) {
|
|
25239
|
-
const
|
|
25240
|
-
const
|
|
24722
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
24723
|
+
const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
|
|
25241
24724
|
i0.ɵɵadvance(4);
|
|
25242
|
-
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6,
|
|
24725
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r1.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
|
|
25243
24726
|
i0.ɵɵadvance(3);
|
|
25244
|
-
i0.ɵɵproperty("id",
|
|
24727
|
+
i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS);
|
|
25245
24728
|
i0.ɵɵadvance();
|
|
25246
|
-
i0.ɵɵproperty("ngForOf",
|
|
24729
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.validStatusProgressions);
|
|
25247
24730
|
i0.ɵɵadvance(2);
|
|
25248
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10,
|
|
24731
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r1.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
|
|
25249
24732
|
i0.ɵɵadvance(2);
|
|
25250
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
24733
|
+
i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
|
|
25251
24734
|
} }
|
|
25252
24735
|
function UpdateFlagComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
25253
|
-
i0.ɵɵelementStart(0, "div",
|
|
25254
|
-
i0.ɵɵelement(3, "input",
|
|
25255
|
-
i0.ɵɵelementStart(4, "label",
|
|
24736
|
+
i0.ɵɵelementStart(0, "div", 50)(1, "div", 51)(2, "div", 52);
|
|
24737
|
+
i0.ɵɵelement(3, "input", 53);
|
|
24738
|
+
i0.ɵɵelementStart(4, "label", 54);
|
|
25256
24739
|
i0.ɵɵtext(5);
|
|
25257
24740
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
25258
24741
|
i0.ɵɵelementEnd()()()();
|
|
25259
24742
|
} if (rf & 2) {
|
|
25260
|
-
const
|
|
24743
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25261
24744
|
i0.ɵɵadvance(3);
|
|
25262
|
-
i0.ɵɵproperty("formControlName",
|
|
24745
|
+
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);
|
|
25263
24746
|
i0.ɵɵadvance();
|
|
25264
|
-
i0.ɵɵproperty("for",
|
|
24747
|
+
i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
|
|
25265
24748
|
i0.ɵɵadvance();
|
|
25266
24749
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
|
|
25267
24750
|
} }
|
|
25268
24751
|
function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
25269
|
-
const
|
|
25270
|
-
i0.ɵɵelementStart(0, "button",
|
|
25271
|
-
i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
24752
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24753
|
+
i0.ɵɵelementStart(0, "button", 59);
|
|
24754
|
+
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()); });
|
|
25272
24755
|
i0.ɵɵtext(1);
|
|
25273
24756
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
25274
24757
|
i0.ɵɵelementEnd();
|
|
@@ -25277,28 +24760,28 @@ function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
25277
24760
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
|
|
25278
24761
|
} }
|
|
25279
24762
|
function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
25280
|
-
i0.ɵɵelementStart(0, "div",
|
|
24763
|
+
i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "p");
|
|
25281
24764
|
i0.ɵɵtext(3);
|
|
25282
24765
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25283
|
-
i0.ɵɵelementStart(5, "span")(6, "strong",
|
|
24766
|
+
i0.ɵɵelementStart(5, "span")(6, "strong", 57);
|
|
25284
24767
|
i0.ɵɵtext(7);
|
|
25285
24768
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
25286
24769
|
i0.ɵɵelementEnd()()()();
|
|
25287
|
-
i0.ɵɵelementStart(9, "div",
|
|
25288
|
-
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button",
|
|
24770
|
+
i0.ɵɵelementStart(9, "div", 56);
|
|
24771
|
+
i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 58);
|
|
25289
24772
|
i0.ɵɵelementEnd()();
|
|
25290
24773
|
} if (rf & 2) {
|
|
25291
|
-
const
|
|
24774
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
25292
24775
|
i0.ɵɵadvance(3);
|
|
25293
24776
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
|
|
25294
24777
|
i0.ɵɵadvance(3);
|
|
25295
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7,
|
|
24778
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
25296
24779
|
i0.ɵɵadvance();
|
|
25297
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6,
|
|
24780
|
+
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), " ");
|
|
25298
24781
|
i0.ɵɵadvance(3);
|
|
25299
|
-
i0.ɵɵproperty("ngIf",
|
|
24782
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
|
|
25300
24783
|
} }
|
|
25301
|
-
class UpdateFlagComponent
|
|
24784
|
+
class UpdateFlagComponent {
|
|
25302
24785
|
rpxTranslationService;
|
|
25303
24786
|
formGroup;
|
|
25304
24787
|
displayContextParameter;
|
|
@@ -25324,8 +24807,7 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25324
24807
|
get externallyVisibleFlag() {
|
|
25325
24808
|
return this.selectedFlag.flagDetailDisplay.visibility?.toLowerCase() === 'external';
|
|
25326
24809
|
}
|
|
25327
|
-
constructor(rpxTranslationService
|
|
25328
|
-
super(multipageComponentStateService);
|
|
24810
|
+
constructor(rpxTranslationService) {
|
|
25329
24811
|
this.rpxTranslationService = rpxTranslationService;
|
|
25330
24812
|
}
|
|
25331
24813
|
ngOnInit() {
|
|
@@ -25472,14 +24954,9 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25472
24954
|
});
|
|
25473
24955
|
}
|
|
25474
24956
|
}
|
|
25475
|
-
|
|
25476
|
-
|
|
25477
|
-
|
|
25478
|
-
super.next();
|
|
25479
|
-
}
|
|
25480
|
-
}
|
|
25481
|
-
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
|
|
25482
|
-
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) {
|
|
24957
|
+
static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
24958
|
+
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) {
|
|
24959
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
25483
24960
|
i0.ɵɵelementContainerStart(0, 2);
|
|
25484
24961
|
i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h1", 5)(4, "label", 6);
|
|
25485
24962
|
i0.ɵɵtext(5);
|
|
@@ -25497,46 +24974,53 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
25497
24974
|
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);
|
|
25498
24975
|
i0.ɵɵelementEnd()();
|
|
25499
24976
|
i0.ɵɵelementContainerEnd();
|
|
24977
|
+
i0.ɵɵelementStart(23, "div", 15)(24, "button", 16);
|
|
24978
|
+
i0.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
|
|
24979
|
+
i0.ɵɵtext(25);
|
|
24980
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
24981
|
+
i0.ɵɵelementEnd()();
|
|
25500
24982
|
} if (rf & 2) {
|
|
25501
|
-
const
|
|
24983
|
+
const externalUser_r6 = i0.ɵɵreference(17);
|
|
25502
24984
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25503
24985
|
i0.ɵɵadvance(2);
|
|
25504
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
24986
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$n, ctx.errorMessages.length > 0));
|
|
25505
24987
|
i0.ɵɵadvance(3);
|
|
25506
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
24988
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
|
|
25507
24989
|
i0.ɵɵadvance(2);
|
|
25508
24990
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25509
24991
|
i0.ɵɵadvance(2);
|
|
25510
24992
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25511
24993
|
i0.ɵɵadvance();
|
|
25512
|
-
i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11,
|
|
24994
|
+
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"), " ");
|
|
25513
24995
|
i0.ɵɵadvance(4);
|
|
25514
24996
|
i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
|
|
25515
24997
|
i0.ɵɵadvance();
|
|
25516
|
-
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse",
|
|
24998
|
+
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r6);
|
|
25517
24999
|
i0.ɵɵadvance(5);
|
|
25518
25000
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25519
25001
|
i0.ɵɵadvance();
|
|
25520
25002
|
i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
|
|
25521
25003
|
i0.ɵɵadvance();
|
|
25522
25004
|
i0.ɵɵproperty("ngIf", ctx.internalUserUpdate);
|
|
25005
|
+
i0.ɵɵadvance(3);
|
|
25006
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Next"), " ");
|
|
25523
25007
|
} }, encapsulation: 2 });
|
|
25524
25008
|
}
|
|
25525
25009
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
|
|
25526
25010
|
type: Component,
|
|
25527
|
-
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
|
|
25528
|
-
}], () => [{ type: i1.RpxTranslationService }
|
|
25011
|
+
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" }]
|
|
25012
|
+
}], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
|
|
25529
25013
|
type: Input
|
|
25530
25014
|
}], displayContextParameter: [{
|
|
25531
25015
|
type: Input
|
|
25532
25016
|
}], caseFlagStateEmitter: [{
|
|
25533
25017
|
type: Output
|
|
25534
25018
|
}] }); })();
|
|
25535
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber:
|
|
25019
|
+
(() => { (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 }); })();
|
|
25536
25020
|
|
|
25537
25021
|
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
25538
25022
|
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25539
|
-
i0.ɵɵelementStart(0, "div",
|
|
25023
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 20);
|
|
25540
25024
|
i0.ɵɵtext(2);
|
|
25541
25025
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25542
25026
|
i0.ɵɵelementEnd();
|
|
@@ -25551,7 +25035,7 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
|
|
|
25551
25035
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
|
|
25552
25036
|
} }
|
|
25553
25037
|
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
25554
|
-
i0.ɵɵelementStart(0, "div",
|
|
25038
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 20);
|
|
25555
25039
|
i0.ɵɵtext(2);
|
|
25556
25040
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25557
25041
|
i0.ɵɵelementEnd();
|
|
@@ -25566,7 +25050,7 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
25566
25050
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
|
|
25567
25051
|
} }
|
|
25568
25052
|
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
25569
|
-
i0.ɵɵelementStart(0, "div",
|
|
25053
|
+
i0.ɵɵelementStart(0, "div", 22)(1, "span", 20);
|
|
25570
25054
|
i0.ɵɵtext(2);
|
|
25571
25055
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25572
25056
|
i0.ɵɵelementEnd();
|
|
@@ -25581,7 +25065,7 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
|
|
|
25581
25065
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
25582
25066
|
} }
|
|
25583
25067
|
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
25584
|
-
i0.ɵɵelementStart(0, "div",
|
|
25068
|
+
i0.ɵɵelementStart(0, "div", 23)(1, "span", 20);
|
|
25585
25069
|
i0.ɵɵtext(2);
|
|
25586
25070
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25587
25071
|
i0.ɵɵelementEnd();
|
|
@@ -25595,7 +25079,7 @@ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf
|
|
|
25595
25079
|
i0.ɵɵadvance(2);
|
|
25596
25080
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsWelshCharLimitErrorMessage), " ");
|
|
25597
25081
|
} }
|
|
25598
|
-
class UpdateFlagAddTranslationFormComponent
|
|
25082
|
+
class UpdateFlagAddTranslationFormComponent {
|
|
25599
25083
|
formGroup;
|
|
25600
25084
|
caseFlagStateEmitter = new EventEmitter();
|
|
25601
25085
|
selectedFlag;
|
|
@@ -25669,14 +25153,8 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25669
25153
|
});
|
|
25670
25154
|
}
|
|
25671
25155
|
}
|
|
25672
|
-
|
|
25673
|
-
|
|
25674
|
-
if (this.errorMessages.length === 0) {
|
|
25675
|
-
super.next();
|
|
25676
|
-
}
|
|
25677
|
-
}
|
|
25678
|
-
static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(t) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(t || UpdateFlagAddTranslationFormComponent); }; })();
|
|
25679
|
-
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) {
|
|
25156
|
+
static ɵfac = function UpdateFlagAddTranslationFormComponent_Factory(t) { return new (t || UpdateFlagAddTranslationFormComponent)(); };
|
|
25157
|
+
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) {
|
|
25680
25158
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25681
25159
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
25682
25160
|
i0.ɵɵtext(5);
|
|
@@ -25735,71 +25213,78 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
25735
25213
|
i0.ɵɵpipe(49, "rpxTranslate");
|
|
25736
25214
|
i0.ɵɵelementEnd()()()();
|
|
25737
25215
|
i0.ɵɵelementContainerEnd();
|
|
25216
|
+
i0.ɵɵelementStart(50, "div", 17)(51, "button", 18);
|
|
25217
|
+
i0.ɵɵlistener("click", function UpdateFlagAddTranslationFormComponent_Template_button_click_51_listener() { return ctx.onNext(); });
|
|
25218
|
+
i0.ɵɵtext(52);
|
|
25219
|
+
i0.ɵɵpipe(53, "rpxTranslate");
|
|
25220
|
+
i0.ɵɵelementEnd()();
|
|
25738
25221
|
} if (rf & 2) {
|
|
25739
25222
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25740
25223
|
i0.ɵɵadvance(2);
|
|
25741
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25224
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(55, _c0$m, ctx.errorMessages.length > 0));
|
|
25742
25225
|
i0.ɵɵadvance(3);
|
|
25743
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
25226
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 33, ctx.updateFlagAddTranslationTitle), " ");
|
|
25744
25227
|
i0.ɵɵadvance(3);
|
|
25745
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
25228
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 35, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
25746
25229
|
i0.ɵɵadvance(3);
|
|
25747
25230
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25748
25231
|
i0.ɵɵadvance();
|
|
25749
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,
|
|
25232
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 37, "Other description"));
|
|
25750
25233
|
i0.ɵɵadvance(2);
|
|
25751
25234
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
|
|
25752
25235
|
i0.ɵɵadvance();
|
|
25753
25236
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
25754
25237
|
i0.ɵɵadvance(3);
|
|
25755
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19,
|
|
25238
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 39, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25756
25239
|
i0.ɵɵadvance(3);
|
|
25757
25240
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25758
25241
|
i0.ɵɵadvance();
|
|
25759
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23,
|
|
25242
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 41, "Other description (Welsh)"));
|
|
25760
25243
|
i0.ɵɵadvance(2);
|
|
25761
25244
|
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
25762
25245
|
i0.ɵɵadvance();
|
|
25763
25246
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
25764
25247
|
i0.ɵɵadvance(3);
|
|
25765
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29,
|
|
25248
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 43, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25766
25249
|
i0.ɵɵadvance(3);
|
|
25767
25250
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
25768
25251
|
i0.ɵɵadvance();
|
|
25769
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33,
|
|
25252
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 45, "Flag comments"));
|
|
25770
25253
|
i0.ɵɵadvance(2);
|
|
25771
25254
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
25772
25255
|
i0.ɵɵadvance();
|
|
25773
25256
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
25774
25257
|
i0.ɵɵadvance(3);
|
|
25775
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39,
|
|
25258
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 47, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25776
25259
|
i0.ɵɵadvance(3);
|
|
25777
25260
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25778
25261
|
i0.ɵɵadvance();
|
|
25779
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43,
|
|
25262
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 49, "Flag comments (Welsh)"));
|
|
25780
25263
|
i0.ɵɵadvance(2);
|
|
25781
25264
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
25782
25265
|
i0.ɵɵadvance();
|
|
25783
25266
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
25784
25267
|
i0.ɵɵadvance(3);
|
|
25785
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49,
|
|
25268
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 51, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
25269
|
+
i0.ɵɵadvance(4);
|
|
25270
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 53, "Next"), " ");
|
|
25786
25271
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25787
25272
|
}
|
|
25788
25273
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
25789
25274
|
type: Component,
|
|
25790
|
-
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
|
|
25275
|
+
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" }]
|
|
25791
25276
|
}], null, { formGroup: [{
|
|
25792
25277
|
type: Input
|
|
25793
25278
|
}], caseFlagStateEmitter: [{
|
|
25794
25279
|
type: Output
|
|
25795
25280
|
}] }); })();
|
|
25796
|
-
(() => { (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:
|
|
25281
|
+
(() => { (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 }); })();
|
|
25797
25282
|
|
|
25798
25283
|
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
25799
25284
|
function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
25800
|
-
i0.ɵɵelementStart(0, "div",
|
|
25801
|
-
i0.ɵɵelement(1, "input",
|
|
25802
|
-
i0.ɵɵelementStart(2, "label",
|
|
25285
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
25286
|
+
i0.ɵɵelement(1, "input", 16);
|
|
25287
|
+
i0.ɵɵelementStart(2, "label", 17);
|
|
25803
25288
|
i0.ɵɵtext(3);
|
|
25804
25289
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
25805
25290
|
i0.ɵɵelementEnd()();
|
|
@@ -25816,7 +25301,7 @@ function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
25816
25301
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r2.caseFlagStatusEnum[status_r1]), " ");
|
|
25817
25302
|
} }
|
|
25818
25303
|
function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
25819
|
-
i0.ɵɵelementStart(0, "div",
|
|
25304
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
|
|
25820
25305
|
i0.ɵɵtext(2);
|
|
25821
25306
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25822
25307
|
i0.ɵɵelementEnd();
|
|
@@ -25831,7 +25316,7 @@ function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
25831
25316
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonNotEnteredErrorMessage), " ");
|
|
25832
25317
|
} }
|
|
25833
25318
|
function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
25834
|
-
i0.ɵɵelementStart(0, "div",
|
|
25319
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
|
|
25835
25320
|
i0.ɵɵtext(2);
|
|
25836
25321
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
25837
25322
|
i0.ɵɵelementEnd();
|
|
@@ -25845,7 +25330,7 @@ function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
25845
25330
|
i0.ɵɵadvance(2);
|
|
25846
25331
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonCharLimitErrorMessage), " ");
|
|
25847
25332
|
} }
|
|
25848
|
-
class ConfirmFlagStatusComponent
|
|
25333
|
+
class ConfirmFlagStatusComponent {
|
|
25849
25334
|
formGroup;
|
|
25850
25335
|
defaultStatus;
|
|
25851
25336
|
caseFlagStateEmitter = new EventEmitter();
|
|
@@ -25874,12 +25359,6 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25874
25359
|
// Return case flag field state and error messages to the parent
|
|
25875
25360
|
this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
|
|
25876
25361
|
}
|
|
25877
|
-
next() {
|
|
25878
|
-
this.onNext();
|
|
25879
|
-
if (this.errorMessages.length === 0) {
|
|
25880
|
-
super.next();
|
|
25881
|
-
}
|
|
25882
|
-
}
|
|
25883
25362
|
validateTextEntry() {
|
|
25884
25363
|
this.statusReasonNotEnteredErrorMessage = null;
|
|
25885
25364
|
this.statusReasonCharLimitErrorMessage = null;
|
|
@@ -25903,8 +25382,8 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25903
25382
|
});
|
|
25904
25383
|
}
|
|
25905
25384
|
}
|
|
25906
|
-
static ɵfac =
|
|
25907
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" },
|
|
25385
|
+
static ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return new (t || ConfirmFlagStatusComponent)(); };
|
|
25386
|
+
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) {
|
|
25908
25387
|
i0.ɵɵelementContainerStart(0, 0);
|
|
25909
25388
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "fieldset", 3)(4, "legend", 4)(5, "h1", 5);
|
|
25910
25389
|
i0.ɵɵtext(6);
|
|
@@ -25924,16 +25403,21 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25924
25403
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
25925
25404
|
i0.ɵɵelementEnd()()();
|
|
25926
25405
|
i0.ɵɵelementContainerEnd();
|
|
25406
|
+
i0.ɵɵelementStart(19, "div", 13)(20, "button", 14);
|
|
25407
|
+
i0.ɵɵlistener("click", function ConfirmFlagStatusComponent_Template_button_click_20_listener() { return ctx.onNext(); });
|
|
25408
|
+
i0.ɵɵtext(21);
|
|
25409
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
25410
|
+
i0.ɵɵelementEnd()();
|
|
25927
25411
|
} if (rf & 2) {
|
|
25928
25412
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
25929
25413
|
i0.ɵɵadvance(2);
|
|
25930
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
25414
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$l, ctx.errorMessages.length > 0));
|
|
25931
25415
|
i0.ɵɵadvance(4);
|
|
25932
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
25416
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, ctx.confirmFlagStatusTitle), " ");
|
|
25933
25417
|
i0.ɵɵadvance(3);
|
|
25934
25418
|
i0.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
|
|
25935
25419
|
i0.ɵɵadvance(2);
|
|
25936
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12,
|
|
25420
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, ctx.statusReasonHint), " ");
|
|
25937
25421
|
i0.ɵɵadvance(2);
|
|
25938
25422
|
i0.ɵɵproperty("ngIf", ctx.statusReasonNotEnteredErrorMessage);
|
|
25939
25423
|
i0.ɵɵadvance();
|
|
@@ -25941,12 +25425,14 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25941
25425
|
i0.ɵɵadvance();
|
|
25942
25426
|
i0.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
|
|
25943
25427
|
i0.ɵɵadvance(2);
|
|
25944
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18,
|
|
25428
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, ctx.statusReasonCharLimitInfo), " ");
|
|
25429
|
+
i0.ɵɵadvance(4);
|
|
25430
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 18, "Next"));
|
|
25945
25431
|
} }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
25946
25432
|
}
|
|
25947
25433
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
|
|
25948
25434
|
type: Component,
|
|
25949
|
-
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>" }]
|
|
25435
|
+
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" }]
|
|
25950
25436
|
}], null, { formGroup: [{
|
|
25951
25437
|
type: Input
|
|
25952
25438
|
}], defaultStatus: [{
|
|
@@ -25954,7 +25440,7 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
|
|
|
25954
25440
|
}], caseFlagStateEmitter: [{
|
|
25955
25441
|
type: Output
|
|
25956
25442
|
}] }); })();
|
|
25957
|
-
(() => { (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:
|
|
25443
|
+
(() => { (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 }); })();
|
|
25958
25444
|
|
|
25959
25445
|
class FlagFieldDisplayPipe extends AsyncPipe {
|
|
25960
25446
|
translationService;
|
|
@@ -27770,7 +27256,7 @@ class CcdPageFieldsPipe {
|
|
|
27770
27256
|
const control = dataFormGroup.controls['data'].get(key);
|
|
27771
27257
|
return control['caseField'];
|
|
27772
27258
|
}).filter(field => {
|
|
27773
|
-
return
|
|
27259
|
+
return !!page.case_fields.find(pcf => pcf.id === field.id);
|
|
27774
27260
|
}).sort((a, b) => a.order - b.order);
|
|
27775
27261
|
const rawValue = dataFormGroup.value;
|
|
27776
27262
|
const value = page.case_fields.reduce((acc, field) => {
|
|
@@ -29302,6 +28788,19 @@ function CaseEditSubmitComponent_ccd_case_event_completion_13_Template(rf, ctx)
|
|
|
29302
28788
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
29303
28789
|
i0.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
|
|
29304
28790
|
} }
|
|
28791
|
+
function CaseEditSubmitComponent_button_15_Template(rf, ctx) { if (rf & 1) {
|
|
28792
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
28793
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
28794
|
+
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()); });
|
|
28795
|
+
i0.ɵɵtext(1);
|
|
28796
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
28797
|
+
i0.ɵɵelementEnd();
|
|
28798
|
+
} if (rf & 2) {
|
|
28799
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
28800
|
+
i0.ɵɵproperty("disabled", !ctx_r1.hasPrevious() || ctx_r1.caseEdit.isSubmitting);
|
|
28801
|
+
i0.ɵɵadvance();
|
|
28802
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
28803
|
+
} }
|
|
29305
28804
|
// @dynamic
|
|
29306
28805
|
class CaseEditSubmitComponent {
|
|
29307
28806
|
caseEdit;
|
|
@@ -29310,10 +28809,7 @@ class CaseEditSubmitComponent {
|
|
|
29310
28809
|
route;
|
|
29311
28810
|
orderService;
|
|
29312
28811
|
profileNotifier;
|
|
29313
|
-
multipageComponentStateService;
|
|
29314
28812
|
formValidatorsService;
|
|
29315
|
-
caseFlagStateService;
|
|
29316
|
-
linkedCasesService;
|
|
29317
28813
|
eventTrigger;
|
|
29318
28814
|
editForm;
|
|
29319
28815
|
triggerText;
|
|
@@ -29349,17 +28845,14 @@ class CaseEditSubmitComponent {
|
|
|
29349
28845
|
// not been disabled.
|
|
29350
28846
|
return this.caseEdit.isSubmitting || this.hasErrors;
|
|
29351
28847
|
}
|
|
29352
|
-
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier,
|
|
28848
|
+
constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
|
|
29353
28849
|
this.caseEdit = caseEdit;
|
|
29354
28850
|
this.fieldsUtils = fieldsUtils;
|
|
29355
28851
|
this.caseFieldService = caseFieldService;
|
|
29356
28852
|
this.route = route;
|
|
29357
28853
|
this.orderService = orderService;
|
|
29358
28854
|
this.profileNotifier = profileNotifier;
|
|
29359
|
-
this.multipageComponentStateService = multipageComponentStateService;
|
|
29360
28855
|
this.formValidatorsService = formValidatorsService;
|
|
29361
|
-
this.caseFlagStateService = caseFlagStateService;
|
|
29362
|
-
this.linkedCasesService = linkedCasesService;
|
|
29363
28856
|
}
|
|
29364
28857
|
ngOnInit() {
|
|
29365
28858
|
this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
|
|
@@ -29380,7 +28873,6 @@ class CaseEditSubmitComponent {
|
|
|
29380
28873
|
this.caseEdit.isLinkedCasesSubmission =
|
|
29381
28874
|
this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
|
|
29382
28875
|
this.pageTitle = this.getPageTitle();
|
|
29383
|
-
console.log(this.multipageComponentStateService.getInstigator());
|
|
29384
28876
|
this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
|
|
29385
28877
|
this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
|
|
29386
28878
|
}
|
|
@@ -29441,9 +28933,6 @@ class CaseEditSubmitComponent {
|
|
|
29441
28933
|
return cloneField;
|
|
29442
28934
|
}
|
|
29443
28935
|
cancel() {
|
|
29444
|
-
if (this.caseEdit.isLinkedCasesSubmission) {
|
|
29445
|
-
this.linkedCasesService.resetLinkedCaseData();
|
|
29446
|
-
}
|
|
29447
28936
|
if (this.eventTrigger.can_save_draft) {
|
|
29448
28937
|
if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
|
|
29449
28938
|
this.caseEdit.cancelled.emit({ status: CaseEditPageComponent.RESUMED_FORM_DISCARD });
|
|
@@ -29508,13 +28997,6 @@ class CaseEditSubmitComponent {
|
|
|
29508
28997
|
return lastPage;
|
|
29509
28998
|
}
|
|
29510
28999
|
previous() {
|
|
29511
|
-
if (this.caseEdit.isCaseFlagSubmission) {
|
|
29512
|
-
// 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
|
|
29513
|
-
this.caseFlagStateService.fieldStateToNavigate = this.caseFlagStateService.lastPageFieldState;
|
|
29514
|
-
}
|
|
29515
|
-
if (this.caseEdit.isLinkedCasesSubmission) {
|
|
29516
|
-
this.linkedCasesService.cameFromFinalStep = true;
|
|
29517
|
-
}
|
|
29518
29000
|
/* istanbul ignore else */
|
|
29519
29001
|
if (this.hasPrevious()) {
|
|
29520
29002
|
this.navigateToPage(this.getLastPageShown().id);
|
|
@@ -29555,8 +29037,8 @@ class CaseEditSubmitComponent {
|
|
|
29555
29037
|
}
|
|
29556
29038
|
return 'Cancel';
|
|
29557
29039
|
}
|
|
29558
|
-
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(
|
|
29559
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls:
|
|
29040
|
+
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)); };
|
|
29041
|
+
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) {
|
|
29560
29042
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
29561
29043
|
i0.ɵɵelementStart(0, "div")(1, "h1", 2);
|
|
29562
29044
|
i0.ɵɵtext(2);
|
|
@@ -29570,27 +29052,24 @@ class CaseEditSubmitComponent {
|
|
|
29570
29052
|
i0.ɵɵelementStart(11, "form", 6);
|
|
29571
29053
|
i0.ɵɵlistener("submit", function CaseEditSubmitComponent_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.submit()); });
|
|
29572
29054
|
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);
|
|
29573
|
-
i0.ɵɵelementStart(14, "div", 9)
|
|
29574
|
-
i0.ɵɵ
|
|
29575
|
-
i0.ɵɵ
|
|
29576
|
-
i0.ɵɵ
|
|
29577
|
-
i0.ɵɵ
|
|
29578
|
-
i0.ɵɵelementStart(18, "button", 11);
|
|
29579
|
-
i0.ɵɵtext(19);
|
|
29580
|
-
i0.ɵɵpipe(20, "rpxTranslate");
|
|
29055
|
+
i0.ɵɵelementStart(14, "div", 9);
|
|
29056
|
+
i0.ɵɵtemplate(15, CaseEditSubmitComponent_button_15_Template, 3, 4, "button", 10);
|
|
29057
|
+
i0.ɵɵelementStart(16, "button", 11);
|
|
29058
|
+
i0.ɵɵtext(17);
|
|
29059
|
+
i0.ɵɵpipe(18, "rpxTranslate");
|
|
29581
29060
|
i0.ɵɵelementEnd()();
|
|
29582
|
-
i0.ɵɵelementStart(
|
|
29583
|
-
i0.ɵɵlistener("click", function
|
|
29584
|
-
i0.ɵɵtext(
|
|
29585
|
-
i0.ɵɵpipe(
|
|
29061
|
+
i0.ɵɵelementStart(19, "p", 12)(20, "a", 13);
|
|
29062
|
+
i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_a_click_20_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
|
|
29063
|
+
i0.ɵɵtext(21);
|
|
29064
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
29586
29065
|
i0.ɵɵelementEnd()()()();
|
|
29587
29066
|
} if (rf & 2) {
|
|
29588
|
-
const
|
|
29589
|
-
const
|
|
29067
|
+
const titleBlock_r9 = i0.ɵɵreference(6);
|
|
29068
|
+
const idBlock_r10 = i0.ɵɵreference(8);
|
|
29590
29069
|
i0.ɵɵadvance(2);
|
|
29591
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
29070
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 15, ctx.eventTrigger.name));
|
|
29592
29071
|
i0.ɵɵadvance(2);
|
|
29593
|
-
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen",
|
|
29072
|
+
i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
|
|
29594
29073
|
i0.ɵɵadvance(5);
|
|
29595
29074
|
i0.ɵɵproperty("error", ctx.caseEdit.error);
|
|
29596
29075
|
i0.ɵɵadvance();
|
|
@@ -29602,24 +29081,22 @@ class CaseEditSubmitComponent {
|
|
|
29602
29081
|
i0.ɵɵadvance();
|
|
29603
29082
|
i0.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
|
|
29604
29083
|
i0.ɵɵadvance(2);
|
|
29605
|
-
i0.ɵɵproperty("
|
|
29084
|
+
i0.ɵɵproperty("ngIf", !ctx.caseEdit.isCaseFlagSubmission);
|
|
29606
29085
|
i0.ɵɵadvance();
|
|
29607
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, "Previous"), " ");
|
|
29608
|
-
i0.ɵɵadvance(2);
|
|
29609
29086
|
i0.ɵɵproperty("disabled", ctx.isDisabled);
|
|
29610
29087
|
i0.ɵɵadvance();
|
|
29611
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
29088
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 17, ctx.triggerText), " ");
|
|
29612
29089
|
i0.ɵɵadvance(3);
|
|
29613
29090
|
i0.ɵɵclassProp("disabled", ctx.caseEdit.isSubmitting);
|
|
29614
29091
|
i0.ɵɵadvance();
|
|
29615
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
29092
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 19, ctx.getCancelText()));
|
|
29616
29093
|
} }, 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%}"] });
|
|
29617
29094
|
}
|
|
29618
29095
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29619
29096
|
type: Component,
|
|
29620
|
-
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"] }]
|
|
29621
|
-
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type:
|
|
29622
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber:
|
|
29097
|
+
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"] }]
|
|
29098
|
+
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }], null); })();
|
|
29099
|
+
(() => { (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 }); })();
|
|
29623
29100
|
|
|
29624
29101
|
function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
29625
29102
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
@@ -29867,8 +29344,7 @@ class CaseEditorModule {
|
|
|
29867
29344
|
SessionStorageService,
|
|
29868
29345
|
EventCompletionStateMachineService,
|
|
29869
29346
|
CaseFlagStateService,
|
|
29870
|
-
ValidPageListCaseFieldsService
|
|
29871
|
-
MultipageComponentStateService
|
|
29347
|
+
ValidPageListCaseFieldsService
|
|
29872
29348
|
], imports: [CommonModule,
|
|
29873
29349
|
RouterModule,
|
|
29874
29350
|
FormsModule,
|
|
@@ -29950,8 +29426,7 @@ class CaseEditorModule {
|
|
|
29950
29426
|
SessionStorageService,
|
|
29951
29427
|
EventCompletionStateMachineService,
|
|
29952
29428
|
CaseFlagStateService,
|
|
29953
|
-
ValidPageListCaseFieldsService
|
|
29954
|
-
MultipageComponentStateService
|
|
29429
|
+
ValidPageListCaseFieldsService
|
|
29955
29430
|
]
|
|
29956
29431
|
}]
|
|
29957
29432
|
}], null, null); })();
|
|
@@ -29983,7 +29458,7 @@ class CaseEditorModule {
|
|
|
29983
29458
|
CallbackErrorsComponent] }); })();
|
|
29984
29459
|
i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29985
29460
|
i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i5.NgForOf, i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
|
|
29986
|
-
CaseEditGenericErrorsComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29461
|
+
CaseEditGenericErrorsComponent]; }, function () { return [i5.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
|
|
29987
29462
|
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]; });
|
|
29988
29463
|
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]; });
|
|
29989
29464
|
i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i5.NgIf, CaseEditComponent]; }, []);
|
|
@@ -32121,7 +31596,6 @@ class CaseEventTriggerComponent {
|
|
|
32121
31596
|
activitySubscription;
|
|
32122
31597
|
caseSubscription;
|
|
32123
31598
|
parentUrl;
|
|
32124
|
-
routerCurrentNavigation;
|
|
32125
31599
|
constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
|
|
32126
31600
|
this.ngZone = ngZone;
|
|
32127
31601
|
this.casesService = casesService;
|
|
@@ -32132,7 +31606,6 @@ class CaseEventTriggerComponent {
|
|
|
32132
31606
|
this.caseReferencePipe = caseReferencePipe;
|
|
32133
31607
|
this.activityPollingService = activityPollingService;
|
|
32134
31608
|
this.sessionStorageService = sessionStorageService;
|
|
32135
|
-
this.routerCurrentNavigation = this.router.getCurrentNavigation();
|
|
32136
31609
|
}
|
|
32137
31610
|
ngOnInit() {
|
|
32138
31611
|
if (this.route.snapshot.data.case) {
|
|
@@ -32211,16 +31684,8 @@ class CaseEventTriggerComponent {
|
|
|
32211
31684
|
});
|
|
32212
31685
|
}
|
|
32213
31686
|
cancel() {
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
if (previousUrl.indexOf('#') > -1) {
|
|
32217
|
-
const url = previousUrl.split('#')[0];
|
|
32218
|
-
const fragment = previousUrl.split('#')[1].replace('%20', ' ');
|
|
32219
|
-
return this.router.navigate([url], { fragment: fragment });
|
|
32220
|
-
}
|
|
32221
|
-
else {
|
|
32222
|
-
return this.router.navigate([previousUrl]);
|
|
32223
|
-
}
|
|
31687
|
+
if (this.router.url && this.router.url.includes('linkCases')) {
|
|
31688
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
|
|
32224
31689
|
}
|
|
32225
31690
|
else {
|
|
32226
31691
|
return this.router.navigate([this.parentUrl]);
|
|
@@ -37742,5 +37207,5 @@ class TestRouteSnapshotBuilder {
|
|
|
37742
37207
|
* Generated bundle index. Do not edit.
|
|
37743
37208
|
*/
|
|
37744
37209
|
|
|
37745
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent,
|
|
37210
|
+
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 };
|
|
37746
37211
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map
|