@hmcts/ccd-case-ui-toolkit 6.0.2-migration-dynamic-list → 6.0.2-migration-dynamic-list-rc1
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +230 -2881
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/commons/case-edit-data/case-edit-data.service.js +1 -9
- package/esm2015/lib/shared/components/case-editor/case-access-utils/index.js +10 -1
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +7 -17
- package/esm2015/lib/shared/components/case-editor/services/cases.service.js +5 -52
- package/esm2015/lib/shared/components/case-editor/services/page-validation.service.js +2 -10
- package/esm2015/lib/shared/components/palette/base-field/abstract-form-field.component.js +2 -4
- package/esm2015/lib/shared/components/palette/case-link/index.js +1 -4
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +8 -28
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +66 -77
- package/esm2015/lib/shared/components/palette/palette.module.js +19 -65
- package/esm2015/lib/shared/components/palette/palette.service.js +4 -12
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +1 -10
- package/esm2015/lib/shared/domain/case-view/role-request.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/domain/user/user-info.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +1 -5
- package/esm2015/lib/shared/pipes/index.js +1 -2
- package/esm2015/lib/shared/pipes/pipes.module.js +4 -8
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -8
- package/esm2015/lib/shared/services/form/form-value.service.js +10 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +223 -2585
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +0 -5
- package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts +3 -0
- package/lib/shared/components/case-editor/case-access-utils/index.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +0 -2
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/cases.service.d.ts +0 -9
- package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts +0 -1
- package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/index.d.ts +0 -3
- package/lib/shared/components/palette/case-link/index.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts +0 -3
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +4 -13
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +60 -69
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/is-compound.pipe.d.ts +0 -1
- package/lib/shared/components/palette/utils/is-compound.pipe.d.ts.map +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts +1 -1
- package/lib/shared/domain/case-view/role-request.model.d.ts.map +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/domain/user/user-info.model.d.ts +2 -0
- package/lib/shared/domain/user/user-info.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/index.d.ts +0 -1
- package/lib/shared/pipes/index.d.ts.map +1 -1
- package/lib/shared/pipes/pipes.module.d.ts +2 -3
- package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +0 -1
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts +0 -3
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.js +0 -125
- package/esm2015/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.js +0 -198
- package/esm2015/lib/shared/components/palette/case-link/components/index.js +0 -10
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +0 -497
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.js +0 -221
- package/esm2015/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.js +0 -286
- package/esm2015/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.js +0 -76
- package/esm2015/lib/shared/components/palette/case-link/components/read-linked-cases.component.js +0 -178
- package/esm2015/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.js +0 -216
- package/esm2015/lib/shared/components/palette/case-link/components/write-linked-cases.component.js +0 -265
- package/esm2015/lib/shared/components/palette/case-link/domain/index.js +0 -3
- package/esm2015/lib/shared/components/palette/case-link/domain/linked-cases-state.model.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/domain/linked-cases.model.js +0 -19
- package/esm2015/lib/shared/components/palette/case-link/enums/index.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.js +0 -33
- package/esm2015/lib/shared/components/palette/case-link/services/index.js +0 -2
- package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +0 -134
- package/esm2015/lib/shared/components/palette/case-link/utils/validators.utils.js +0 -27
- package/esm2015/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.js +0 -23
- package/esm2015/lib/shared/pipes/link-cases-reason-code/index.js +0 -2
- package/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.d.ts +0 -19
- package/lib/shared/components/palette/case-link/components/before-you-start/before-you-start.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.d.ts +0 -18
- package/lib/shared/components/palette/case-link/components/check-your-answers/check-your-answers.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/index.d.ts +0 -10
- package/lib/shared/components/palette/case-link/components/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts +0 -42
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-from-table.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/linked-cases-table/linked-cases-to-table.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.d.ts +0 -12
- package/lib/shared/components/palette/case-link/components/no-linked-cases/no-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/read-linked-cases.component.d.ts +0 -37
- package/lib/shared/components/palette/case-link/components/read-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.d.ts +0 -38
- package/lib/shared/components/palette/case-link/components/unlink-cases/unlink-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts +0 -45
- package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/index.d.ts +0 -3
- package/lib/shared/components/palette/case-link/domain/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/linked-cases-state.model.d.ts +0 -12
- package/lib/shared/components/palette/case-link/domain/linked-cases-state.model.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/domain/linked-cases.model.d.ts +0 -65
- package/lib/shared/components/palette/case-link/domain/linked-cases.model.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/enums/index.d.ts +0 -2
- package/lib/shared/components/palette/case-link/enums/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.d.ts +0 -29
- package/lib/shared/components/palette/case-link/enums/write-linked-cases-field.enum.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/services/index.d.ts +0 -2
- package/lib/shared/components/palette/case-link/services/index.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +0 -50
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +0 -1
- package/lib/shared/components/palette/case-link/utils/validators.utils.d.ts +0 -10
- package/lib/shared/components/palette/case-link/utils/validators.utils.d.ts.map +0 -1
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts +0 -11
- package/lib/shared/pipes/link-cases-reason-code/ccd-link-cases-reason-code.pipe.d.ts.map +0 -1
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts +0 -2
- package/lib/shared/pipes/link-cases-reason-code/index.d.ts.map +0 -1
|
@@ -7,7 +7,7 @@ import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import polling from 'rx-polling';
|
|
10
|
-
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer,
|
|
10
|
+
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent } from 'rxjs';
|
|
11
11
|
import * as i1$2 from '@angular/common/http';
|
|
12
12
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
13
13
|
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first, switchMap, takeUntil, filter } from 'rxjs/operators';
|
|
@@ -37,7 +37,7 @@ import * as i3$1 from '@angular/material/input';
|
|
|
37
37
|
import { MatInputModule } from '@angular/material/input';
|
|
38
38
|
import * as i3 from '@hmcts/ccpay-web-component';
|
|
39
39
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
40
|
-
import * as
|
|
40
|
+
import * as i11 from '@hmcts/media-viewer';
|
|
41
41
|
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
42
42
|
import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
|
|
43
43
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
@@ -115,13 +115,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
115
115
|
i0.ɵɵadvance(3);
|
|
116
116
|
i0.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
117
117
|
} }
|
|
118
|
-
const _c0
|
|
118
|
+
const _c0$Z = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
119
119
|
const _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
120
120
|
class FooterComponent {
|
|
121
121
|
}
|
|
122
122
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
123
123
|
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, 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) {
|
|
124
|
-
i0.ɵɵprojectionDef(_c0
|
|
124
|
+
i0.ɵɵprojectionDef(_c0$Z);
|
|
125
125
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
126
126
|
i0.ɵɵelementStart(1, "div", 1);
|
|
127
127
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -188,7 +188,7 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
188
188
|
i0.ɵɵadvance(3);
|
|
189
189
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
190
190
|
} }
|
|
191
|
-
const _c0$
|
|
191
|
+
const _c0$Y = [[["", "headerNavigation", ""]]];
|
|
192
192
|
const _c1$q = ["[headerNavigation]"];
|
|
193
193
|
class HeaderBarComponent {
|
|
194
194
|
constructor() {
|
|
@@ -200,7 +200,7 @@ class HeaderBarComponent {
|
|
|
200
200
|
}
|
|
201
201
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
202
202
|
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, 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) {
|
|
203
|
-
i0.ɵɵprojectionDef(_c0$
|
|
203
|
+
i0.ɵɵprojectionDef(_c0$Y);
|
|
204
204
|
i0.ɵɵelementStart(0, "header", 0);
|
|
205
205
|
i0.ɵɵelementStart(1, "div", 1);
|
|
206
206
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -257,13 +257,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
257
257
|
type: Output
|
|
258
258
|
}] }); })();
|
|
259
259
|
|
|
260
|
-
const _c0$
|
|
260
|
+
const _c0$X = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
261
|
const _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
262
262
|
class NavigationComponent {
|
|
263
263
|
}
|
|
264
264
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
265
265
|
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, 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$X);
|
|
267
267
|
i0.ɵɵelementStart(0, "div");
|
|
268
268
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
269
269
|
i0.ɵɵprojection(2);
|
|
@@ -380,13 +380,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
380
380
|
}]
|
|
381
381
|
}], null, null); })();
|
|
382
382
|
|
|
383
|
-
const _c0$
|
|
383
|
+
const _c0$W = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
384
384
|
const _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
385
385
|
class BodyComponent {
|
|
386
386
|
}
|
|
387
387
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
388
388
|
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
389
|
-
i0.ɵɵprojectionDef(_c0$
|
|
389
|
+
i0.ɵɵprojectionDef(_c0$W);
|
|
390
390
|
i0.ɵɵelementStart(0, "div", 0);
|
|
391
391
|
i0.ɵɵprojection(1);
|
|
392
392
|
i0.ɵɵprojection(2, 1);
|
|
@@ -403,7 +403,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
403
403
|
}]
|
|
404
404
|
}], null, null); })();
|
|
405
405
|
|
|
406
|
-
const _c0$
|
|
406
|
+
const _c0$V = function (a0) { return { "govuk-input--error": a0 }; };
|
|
407
407
|
function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
408
408
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
409
409
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -419,7 +419,7 @@ function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
419
419
|
i0.ɵɵadvance(1);
|
|
420
420
|
i0.ɵɵproperty("for", ctx_r3.hourId());
|
|
421
421
|
i0.ɵɵadvance(2);
|
|
422
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
422
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$V, ctx_r3.isInvalid));
|
|
423
423
|
} }
|
|
424
424
|
function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
425
425
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -436,7 +436,7 @@ function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
436
436
|
i0.ɵɵadvance(1);
|
|
437
437
|
i0.ɵɵproperty("for", ctx_r4.minuteId());
|
|
438
438
|
i0.ɵɵadvance(2);
|
|
439
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
439
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$V, ctx_r4.isInvalid));
|
|
440
440
|
} }
|
|
441
441
|
function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
442
442
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -453,7 +453,7 @@ function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
453
453
|
i0.ɵɵadvance(1);
|
|
454
454
|
i0.ɵɵproperty("for", ctx_r5.secondId());
|
|
455
455
|
i0.ɵɵadvance(2);
|
|
456
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
456
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$V, ctx_r5.isInvalid));
|
|
457
457
|
} }
|
|
458
458
|
class DateInputComponent {
|
|
459
459
|
constructor() {
|
|
@@ -682,15 +682,15 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
682
682
|
i0.ɵɵadvance(2);
|
|
683
683
|
i0.ɵɵproperty("for", ctx.dayId());
|
|
684
684
|
i0.ɵɵadvance(2);
|
|
685
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$
|
|
685
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$V, ctx.isInvalid));
|
|
686
686
|
i0.ɵɵadvance(3);
|
|
687
687
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
688
688
|
i0.ɵɵadvance(2);
|
|
689
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$
|
|
689
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$V, ctx.isInvalid));
|
|
690
690
|
i0.ɵɵadvance(3);
|
|
691
691
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
692
692
|
i0.ɵɵadvance(2);
|
|
693
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$
|
|
693
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$V, ctx.isInvalid));
|
|
694
694
|
i0.ɵɵadvance(2);
|
|
695
695
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
696
696
|
i0.ɵɵadvance(1);
|
|
@@ -760,7 +760,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
760
760
|
i0.ɵɵelementEnd();
|
|
761
761
|
i0.ɵɵelementContainerEnd();
|
|
762
762
|
} }
|
|
763
|
-
const _c0$
|
|
763
|
+
const _c0$U = ["*"];
|
|
764
764
|
var AlertMessageType;
|
|
765
765
|
(function (AlertMessageType) {
|
|
766
766
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -780,7 +780,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
780
780
|
AlertComponent.TYPE_ERROR = 'error';
|
|
781
781
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
782
782
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
783
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
783
|
+
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$U, decls: 10, vars: 10, 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) {
|
|
784
784
|
i0.ɵɵprojectionDef();
|
|
785
785
|
i0.ɵɵelementStart(0, "div", 0);
|
|
786
786
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1011,7 +1011,7 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1011
1011
|
type: Output
|
|
1012
1012
|
}] }); })();
|
|
1013
1013
|
|
|
1014
|
-
const _c0$
|
|
1014
|
+
const _c0$T = function (a0) { return { "js-hidden": a0 }; };
|
|
1015
1015
|
const _c1$n = ["*"];
|
|
1016
1016
|
class TabComponent {
|
|
1017
1017
|
}
|
|
@@ -1022,7 +1022,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1022
1022
|
i0.ɵɵprojection(1);
|
|
1023
1023
|
i0.ɵɵelementEnd();
|
|
1024
1024
|
} if (rf & 2) {
|
|
1025
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
1025
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$T, !ctx.selected));
|
|
1026
1026
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1027
1027
|
} }, directives: [i1.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
1028
1028
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -1042,7 +1042,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1042
1042
|
type: Input
|
|
1043
1043
|
}] }); })();
|
|
1044
1044
|
|
|
1045
|
-
const _c0$
|
|
1045
|
+
const _c0$S = ["tab"];
|
|
1046
1046
|
const _c1$m = function () { return ["."]; };
|
|
1047
1047
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1048
1048
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1087,7 +1087,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
1087
1087
|
let _t;
|
|
1088
1088
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1089
1089
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1090
|
-
i0.ɵɵviewQuery(_c0$
|
|
1090
|
+
i0.ɵɵviewQuery(_c0$S, 1);
|
|
1091
1091
|
} if (rf & 2) {
|
|
1092
1092
|
let _t;
|
|
1093
1093
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1152,7 +1152,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1152
1152
|
}]
|
|
1153
1153
|
}], null, null); })();
|
|
1154
1154
|
|
|
1155
|
-
const _c0$
|
|
1155
|
+
const _c0$R = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1156
1156
|
class ActivityBannerComponent {
|
|
1157
1157
|
constructor() { }
|
|
1158
1158
|
ngOnInit() {
|
|
@@ -1169,7 +1169,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1169
1169
|
i0.ɵɵelementEnd();
|
|
1170
1170
|
i0.ɵɵelementEnd();
|
|
1171
1171
|
} if (rf & 2) {
|
|
1172
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$
|
|
1172
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$R, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1173
1173
|
i0.ɵɵadvance(2);
|
|
1174
1174
|
i0.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1175
1175
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -2592,14 +2592,6 @@ class IsCompoundPipe {
|
|
|
2592
2592
|
if (!field || !field.field_type || !field.field_type.type) {
|
|
2593
2593
|
return false;
|
|
2594
2594
|
}
|
|
2595
|
-
// Case link tab spacing alignment fix
|
|
2596
|
-
// This Pipe needs to be re-visited
|
|
2597
|
-
// to make it more generic to support and fix alignments issues for multiple tabs
|
|
2598
|
-
if (field.field_type.collection_field_type &&
|
|
2599
|
-
field.field_type.collection_field_type.id &&
|
|
2600
|
-
field.field_type.collection_field_type.id === IsCompoundPipe.CASE_LINK_FIELD_TYPE) {
|
|
2601
|
-
return true;
|
|
2602
|
-
}
|
|
2603
2595
|
if (IsCompoundPipe.COMPOUND_TYPES.indexOf(field.field_type.type) !== -1) {
|
|
2604
2596
|
if (IsCompoundPipe.EXCLUDE.indexOf(field.field_type.id) !== -1) {
|
|
2605
2597
|
return false;
|
|
@@ -2609,7 +2601,6 @@ class IsCompoundPipe {
|
|
|
2609
2601
|
return false;
|
|
2610
2602
|
}
|
|
2611
2603
|
}
|
|
2612
|
-
IsCompoundPipe.CASE_LINK_FIELD_TYPE = 'CaseLink';
|
|
2613
2604
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
2614
2605
|
'Complex',
|
|
2615
2606
|
'Label',
|
|
@@ -3313,12 +3304,6 @@ class FieldsUtils {
|
|
|
3313
3304
|
static isCollectionWithValue(pageFormFields) {
|
|
3314
3305
|
return pageFormFields[0]['value'] !== undefined;
|
|
3315
3306
|
}
|
|
3316
|
-
static isLinkedCasesCaseField(caseField) {
|
|
3317
|
-
if (!caseField) {
|
|
3318
|
-
return false;
|
|
3319
|
-
}
|
|
3320
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
3321
|
-
}
|
|
3322
3307
|
static cloneObject(obj) {
|
|
3323
3308
|
return Object.assign({}, obj);
|
|
3324
3309
|
}
|
|
@@ -3517,7 +3502,7 @@ class FieldsUtils {
|
|
|
3517
3502
|
// If the Flags CaseField has a value, it is a root-level Complex field; if it does not, it is a Flags
|
|
3518
3503
|
// CaseField that is a sub-field within another Complex field, so use the currentValue value (if any)
|
|
3519
3504
|
// instead. The exception to this is the "caseFlags" Flags CaseField, which will have an empty object value
|
|
3520
|
-
// initially
|
|
3505
|
+
// initially, because no party name is required
|
|
3521
3506
|
if (caseField.value && FieldsUtils.isNonEmptyObject(caseField.value) ||
|
|
3522
3507
|
caseField.id === this.caseLevelCaseFlagsFieldId) {
|
|
3523
3508
|
flags.push(this.mapCaseFieldToFlagsWithFormGroupPathObject(caseField, pathToFlagsFormGroup));
|
|
@@ -4220,9 +4205,7 @@ class AbstractFormFieldComponent {
|
|
|
4220
4205
|
}
|
|
4221
4206
|
addControlToFormGroup(control, parent, replace) {
|
|
4222
4207
|
if (replace) {
|
|
4223
|
-
if (this.caseField.field_type && this.caseField.field_type.
|
|
4224
|
-
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4225
|
-
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4208
|
+
if (this.caseField.field_type && this.caseField.field_type.id === 'CaseLink' && this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4226
4209
|
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4227
4210
|
}
|
|
4228
4211
|
else {
|
|
@@ -5286,9 +5269,6 @@ class FormValueService {
|
|
|
5286
5269
|
// Clear out any MultiSelect labels.
|
|
5287
5270
|
FormValueService.removeMultiSelectLabels(data);
|
|
5288
5271
|
}
|
|
5289
|
-
/**
|
|
5290
|
-
* Remove any empty or invalid array with only id
|
|
5291
|
-
*/
|
|
5292
5272
|
removeInvalidCollectionData(data, field) {
|
|
5293
5273
|
if (data[field.id] && data[field.id].length > 0) {
|
|
5294
5274
|
for (const objCollection of data[field.id]) {
|
|
@@ -5347,13 +5327,17 @@ class FormValueService {
|
|
|
5347
5327
|
// nothing for a given case field ID (hence the use of hasOwnProperty())
|
|
5348
5328
|
if (data.hasOwnProperty(caseField.id) && caseField.value) {
|
|
5349
5329
|
// Create new object for the case field ID within the data object, if necessary
|
|
5350
|
-
if (
|
|
5351
|
-
data
|
|
5330
|
+
if (data[caseField.id]) {
|
|
5331
|
+
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
5332
|
+
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
5333
|
+
Object.keys(data[caseField.id]).forEach(key => {
|
|
5334
|
+
if (caseField.value.hasOwnProperty(key)) {
|
|
5335
|
+
data[caseField.id][key] = caseField.value[key];
|
|
5336
|
+
}
|
|
5337
|
+
});
|
|
5352
5338
|
}
|
|
5353
|
-
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
5354
|
-
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
5355
|
-
Object.keys(caseField.value).forEach(key => data[caseField.id][key] = caseField.value[key]);
|
|
5356
5339
|
}
|
|
5340
|
+
;
|
|
5357
5341
|
});
|
|
5358
5342
|
}
|
|
5359
5343
|
}
|
|
@@ -6763,6 +6747,9 @@ class CaseAccessUtils {
|
|
|
6763
6747
|
else if (this.roleOrCategoryExists(CaseAccessUtils.ADMIN_ROLE, CaseAccessUtils.ADMIN_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
6764
6748
|
return CaseAccessUtils.ADMIN_ROLE_CATEGORY;
|
|
6765
6749
|
}
|
|
6750
|
+
else if (this.roleOrCategoryExists(CaseAccessUtils.CTSC_ROLE, CaseAccessUtils.CTSC_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
6751
|
+
return CaseAccessUtils.CTSC_ROLE_CATEGORY;
|
|
6752
|
+
}
|
|
6766
6753
|
else {
|
|
6767
6754
|
return CaseAccessUtils.LEGAL_OPERATIONS_ROLE_CATEGORY;
|
|
6768
6755
|
}
|
|
@@ -6787,6 +6774,9 @@ class CaseAccessUtils {
|
|
|
6787
6774
|
case CaseAccessUtils.ADMIN_ROLE_CATEGORY:
|
|
6788
6775
|
roleName = `${accessType}-access-${CaseAccessUtils.ADMIN_ROLE_NAME}`;
|
|
6789
6776
|
break;
|
|
6777
|
+
case CaseAccessUtils.CTSC_ROLE_CATEGORY:
|
|
6778
|
+
roleName = `${accessType}-access-${CaseAccessUtils.CTSC_ROLE_NAME}`;
|
|
6779
|
+
break;
|
|
6790
6780
|
default:
|
|
6791
6781
|
roleName = `${accessType}-access-${CaseAccessUtils.LEGAL_OPERATIONS_ROLE_NAME}`;
|
|
6792
6782
|
break;
|
|
@@ -6843,6 +6833,9 @@ CaseAccessUtils.LEGAL_OPERATIONS_ROLE_NAME = 'legal-ops';
|
|
|
6843
6833
|
CaseAccessUtils.CITIZEN_ROLE = 'citizen';
|
|
6844
6834
|
CaseAccessUtils.CITIZEN_ROLE_CATEGORY = 'CITIZEN';
|
|
6845
6835
|
CaseAccessUtils.CITIZEN_ROLE_NAME = 'citizen';
|
|
6836
|
+
CaseAccessUtils.CTSC_ROLE = 'ctsc';
|
|
6837
|
+
CaseAccessUtils.CTSC_ROLE_CATEGORY = 'CTSC';
|
|
6838
|
+
CaseAccessUtils.CTSC_ROLE_NAME = 'ctsc';
|
|
6846
6839
|
|
|
6847
6840
|
class WizardPageFieldToCaseFieldMapper {
|
|
6848
6841
|
mapAll(wizardPageFields, caseFields) {
|
|
@@ -7209,33 +7202,6 @@ class CasesService {
|
|
|
7209
7202
|
return throwError(error);
|
|
7210
7203
|
}), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
7211
7204
|
}
|
|
7212
|
-
/**
|
|
7213
|
-
* TODO: Gets case link responses
|
|
7214
|
-
* @returns case link responses
|
|
7215
|
-
*/
|
|
7216
|
-
getCaseLinkResponses() {
|
|
7217
|
-
const headers = new HttpHeaders()
|
|
7218
|
-
.set('experimental', 'true')
|
|
7219
|
-
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
7220
|
-
.set('Content-Type', 'application/json');
|
|
7221
|
-
const loadingToken = this.loadingService.register();
|
|
7222
|
-
return this.http
|
|
7223
|
-
.get('assets/getCaseReasons.json', { headers, observe: 'body' })
|
|
7224
|
-
.pipe(map((reasons) => {
|
|
7225
|
-
return reasons.sort((reasonA, reasonB) => reasonA.value_en > reasonB.value_en ? 1 : -1);
|
|
7226
|
-
}), catchError(error => {
|
|
7227
|
-
this.errorService.setError(error);
|
|
7228
|
-
return throwError(error);
|
|
7229
|
-
}), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
7230
|
-
}
|
|
7231
|
-
getLinkedCases(caseId) {
|
|
7232
|
-
const url = `${this.appConfig.getCaseDataStoreApiUrl()}/${caseId}`;
|
|
7233
|
-
return this.http
|
|
7234
|
-
.get(url)
|
|
7235
|
-
.pipe(catchError(error => {
|
|
7236
|
-
return throwError(error);
|
|
7237
|
-
}));
|
|
7238
|
-
}
|
|
7239
7205
|
getEventTrigger(caseTypeId, eventTriggerId, caseId, ignoreWarning) {
|
|
7240
7206
|
ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
|
|
7241
7207
|
const url = this.buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning);
|
|
@@ -7269,7 +7235,7 @@ class CasesService {
|
|
|
7269
7235
|
.set('Content-Type', 'application/json');
|
|
7270
7236
|
return this.http
|
|
7271
7237
|
.post(url, eventData, { headers, observe: 'body' })
|
|
7272
|
-
.pipe(
|
|
7238
|
+
.pipe(catchError(error => {
|
|
7273
7239
|
this.errorService.setError(error);
|
|
7274
7240
|
return throwError(error);
|
|
7275
7241
|
}));
|
|
@@ -7302,7 +7268,7 @@ class CasesService {
|
|
|
7302
7268
|
.set('Content-Type', 'application/json');
|
|
7303
7269
|
return this.http
|
|
7304
7270
|
.post(url, eventData, { headers, observe: 'body' })
|
|
7305
|
-
.pipe(
|
|
7271
|
+
.pipe(catchError(error => {
|
|
7306
7272
|
this.errorService.setError(error);
|
|
7307
7273
|
return throwError(error);
|
|
7308
7274
|
}));
|
|
@@ -7341,10 +7307,6 @@ class CasesService {
|
|
|
7341
7307
|
}
|
|
7342
7308
|
return url;
|
|
7343
7309
|
}
|
|
7344
|
-
processResponseBody(body, eventData) {
|
|
7345
|
-
this.processTasksOnSuccess(body, eventData.event);
|
|
7346
|
-
return body;
|
|
7347
|
-
}
|
|
7348
7310
|
initialiseEventTrigger(eventTrigger) {
|
|
7349
7311
|
if (!eventTrigger.wizard_pages) {
|
|
7350
7312
|
eventTrigger.wizard_pages = [];
|
|
@@ -7354,22 +7316,6 @@ class CasesService {
|
|
|
7354
7316
|
wizardPage.case_fields = this.orderService.sort(this.wizardPageFieldToCaseFieldMapper.mapAll(wizardPage.wizard_page_fields, eventTrigger.case_fields));
|
|
7355
7317
|
});
|
|
7356
7318
|
}
|
|
7357
|
-
processTasksOnSuccess(caseData, eventData) {
|
|
7358
|
-
// The following code is work allocation 1 related
|
|
7359
|
-
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation') {
|
|
7360
|
-
// This is used a feature toggle to
|
|
7361
|
-
// control the work allocation
|
|
7362
|
-
if (!this.isPuiCaseManager()) {
|
|
7363
|
-
this.workAllocationService.completeAppropriateTask(caseData.id, eventData.id, caseData.jurisdiction, caseData.case_type)
|
|
7364
|
-
.subscribe(() => {
|
|
7365
|
-
// Success. Do nothing.
|
|
7366
|
-
}, error => {
|
|
7367
|
-
// Show an appropriate warning about something that went wrong.
|
|
7368
|
-
console.warn('Could not process tasks for this case event', error);
|
|
7369
|
-
});
|
|
7370
|
-
}
|
|
7371
|
-
}
|
|
7372
|
-
}
|
|
7373
7319
|
/*
|
|
7374
7320
|
Checks if the user has role of pui-case-manager and returns true or false
|
|
7375
7321
|
*/
|
|
@@ -7392,7 +7338,7 @@ class CasesService {
|
|
|
7392
7338
|
if (userInfoStr) {
|
|
7393
7339
|
userInfo = JSON.parse(userInfoStr);
|
|
7394
7340
|
}
|
|
7395
|
-
const roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7341
|
+
const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7396
7342
|
const roleName = camUtils.getAMRoleName('challenged', roleCategory);
|
|
7397
7343
|
const beginTime = new Date();
|
|
7398
7344
|
const endTime = new Date(new Date().setUTCHours(23, 59, 59, 999));
|
|
@@ -7409,7 +7355,7 @@ class CasesService {
|
|
|
7409
7355
|
if (userInfoStr) {
|
|
7410
7356
|
userInfo = JSON.parse(userInfoStr);
|
|
7411
7357
|
}
|
|
7412
|
-
const roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7358
|
+
const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7413
7359
|
const roleName = camUtils.getAMRoleName('specific', roleCategory);
|
|
7414
7360
|
const id = userInfo.id ? userInfo.id : userInfo.uid;
|
|
7415
7361
|
const payload = camUtils.getAMPayload(null, id, roleName, roleCategory, 'SPECIFIC', caseId, sar, null, null, true);
|
|
@@ -8003,8 +7949,7 @@ class PageValidationService {
|
|
|
8003
7949
|
.filter(caseField => !this.isHidden(caseField, editForm))
|
|
8004
7950
|
.every(caseField => {
|
|
8005
7951
|
const theControl = editForm.controls['data'].get(caseField.id);
|
|
8006
|
-
return this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl)
|
|
8007
|
-
this.checkCaseLinksCollectionField(caseField, theControl);
|
|
7952
|
+
return this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl);
|
|
8008
7953
|
});
|
|
8009
7954
|
}
|
|
8010
7955
|
isHidden(caseField, editForm, path) {
|
|
@@ -8032,13 +7977,6 @@ class PageValidationService {
|
|
|
8032
7977
|
checkMandatoryField(caseField, theControl) {
|
|
8033
7978
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
8034
7979
|
}
|
|
8035
|
-
checkCaseLinksCollectionField(caseField, theControl) {
|
|
8036
|
-
if (caseField && caseField.id === 'caseLinks') {
|
|
8037
|
-
return theControl && theControl.value && Array.isArray(theControl.value) &&
|
|
8038
|
-
theControl.value.length ? true : false;
|
|
8039
|
-
}
|
|
8040
|
-
return true;
|
|
8041
|
-
}
|
|
8042
7980
|
}
|
|
8043
7981
|
PageValidationService.ɵfac = function PageValidationService_Factory(t) { return new (t || PageValidationService)(i0.ɵɵinject(CaseFieldService)); };
|
|
8044
7982
|
PageValidationService.ɵprov = i0.ɵɵdefineInjectable({ token: PageValidationService, factory: PageValidationService.ɵfac });
|
|
@@ -8417,12 +8355,10 @@ class CaseEditDataService {
|
|
|
8417
8355
|
constructor() {
|
|
8418
8356
|
this.title$ = new BehaviorSubject(null);
|
|
8419
8357
|
this.formValidationErrors$ = new BehaviorSubject([]);
|
|
8420
|
-
this.linkError$ = new BehaviorSubject(null);
|
|
8421
8358
|
this.eventTriggerName$ = new BehaviorSubject(null);
|
|
8422
8359
|
this.triggerSubmitEvent$ = new BehaviorSubject(null);
|
|
8423
8360
|
this.caseTitle$ = this.title$.asObservable();
|
|
8424
8361
|
this.caseFormValidationErrors$ = this.formValidationErrors$.asObservable();
|
|
8425
|
-
this.caseLinkError$ = this.linkError$.asObservable();
|
|
8426
8362
|
this.caseEventTriggerName$ = this.eventTriggerName$.asObservable();
|
|
8427
8363
|
this.caseTriggerSubmitEvent$ = this.triggerSubmitEvent$.asObservable();
|
|
8428
8364
|
}
|
|
@@ -8432,18 +8368,12 @@ class CaseEditDataService {
|
|
|
8432
8368
|
setCaseEventTriggerName(triggerName) {
|
|
8433
8369
|
this.eventTriggerName$.next(triggerName);
|
|
8434
8370
|
}
|
|
8435
|
-
setCaseLinkError(error) {
|
|
8436
|
-
this.linkError$.next(error);
|
|
8437
|
-
}
|
|
8438
8371
|
setFormValidationErrors(validationErrors) {
|
|
8439
8372
|
this.formValidationErrors$.next(validationErrors);
|
|
8440
8373
|
}
|
|
8441
8374
|
clearFormValidationErrors() {
|
|
8442
8375
|
this.formValidationErrors$.next([]);
|
|
8443
8376
|
}
|
|
8444
|
-
clearCaseLinkError() {
|
|
8445
|
-
this.linkError$.next(null);
|
|
8446
|
-
}
|
|
8447
8377
|
addFormValidationError(validationError) {
|
|
8448
8378
|
this.formValidationErrors$.next(this.formValidationErrors$.getValue().concat([validationError]));
|
|
8449
8379
|
}
|
|
@@ -8881,27 +8811,18 @@ class CaseEditPageComponent {
|
|
|
8881
8811
|
this.caseEditDataService.addFormValidationError({ id, message: `${label} exceeds the maximum length` });
|
|
8882
8812
|
fieldElement.markAsDirty();
|
|
8883
8813
|
}
|
|
8884
|
-
else if (this.caseLinkError && FieldsUtils.isLinkedCasesCaseField(casefield)) {
|
|
8885
|
-
this.validationErrors.push({ id: this.caseLinkError.componentId, message: this.caseLinkError.errorMessage });
|
|
8886
|
-
}
|
|
8887
8814
|
else if (fieldElement.invalid) {
|
|
8888
8815
|
if (casefield.isComplex()) {
|
|
8889
8816
|
this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id);
|
|
8890
8817
|
}
|
|
8891
8818
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
}
|
|
8896
|
-
else {
|
|
8897
|
-
const fieldArray = fieldElement;
|
|
8898
|
-
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
8899
|
-
id = `${fieldArray['component']['collItems'][0].prefix}`;
|
|
8900
|
-
}
|
|
8901
|
-
fieldArray.controls.forEach((c) => {
|
|
8902
|
-
this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id);
|
|
8903
|
-
});
|
|
8819
|
+
const fieldArray = fieldElement;
|
|
8820
|
+
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
8821
|
+
id = `${fieldArray['component']['collItems'][0].prefix}`;
|
|
8904
8822
|
}
|
|
8823
|
+
fieldArray.controls.forEach((c) => {
|
|
8824
|
+
this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id);
|
|
8825
|
+
});
|
|
8905
8826
|
}
|
|
8906
8827
|
else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
|
|
8907
8828
|
// Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
|
|
@@ -9149,7 +9070,6 @@ class CaseEditPageComponent {
|
|
|
9149
9070
|
}
|
|
9150
9071
|
syncCaseEditDataService() {
|
|
9151
9072
|
this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
|
|
9152
|
-
this.caseEditDataService.setCaseLinkError(this.caseLinkError);
|
|
9153
9073
|
this.caseEditDataService.setCaseTitle(this.getCaseTitle());
|
|
9154
9074
|
this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
9155
9075
|
next: (validationErrors) => this.validationErrors = validationErrors
|
|
@@ -9597,10 +9517,6 @@ class ReadFieldsFilterPipe {
|
|
|
9597
9517
|
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
9598
9518
|
}
|
|
9599
9519
|
static keepField(field, value, ignoreLabels = false) {
|
|
9600
|
-
// We should always render the caselinks tables from and to regardless whether it has valid value or not
|
|
9601
|
-
if (field.id === 'caseLinks') {
|
|
9602
|
-
return true;
|
|
9603
|
-
}
|
|
9604
9520
|
// We shouldn't ditch labels.
|
|
9605
9521
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
9606
9522
|
return true;
|
|
@@ -9865,154 +9781,6 @@ FieldsFilterPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldsFilter", type: Fie
|
|
|
9865
9781
|
}]
|
|
9866
9782
|
}], null, null); })();
|
|
9867
9783
|
|
|
9868
|
-
class LinkedCasesService {
|
|
9869
|
-
constructor(jurisdictionService, searchService) {
|
|
9870
|
-
this.jurisdictionService = jurisdictionService;
|
|
9871
|
-
this.searchService = searchService;
|
|
9872
|
-
this.caseFieldValue = [];
|
|
9873
|
-
this.isLinkedCasesEventTrigger = false;
|
|
9874
|
-
this.linkCaseReasons = [];
|
|
9875
|
-
this.linkedCases = [];
|
|
9876
|
-
this.initialCaseLinks = [];
|
|
9877
|
-
this.editMode = false;
|
|
9878
|
-
this.jurisdictionsResponse = [];
|
|
9879
|
-
this.serverError = null;
|
|
9880
|
-
this.serverLinkedApiError = null;
|
|
9881
|
-
this.isServerReasonCodeError = false;
|
|
9882
|
-
this.caseJurisdictionID = null;
|
|
9883
|
-
this.groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
9884
|
-
return arrObj.reduce((rv, x) => {
|
|
9885
|
-
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
9886
|
-
return rv;
|
|
9887
|
-
}, {});
|
|
9888
|
-
};
|
|
9889
|
-
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
9890
|
-
this.jurisdictionsResponse = jurisdictions;
|
|
9891
|
-
}, (error) => {
|
|
9892
|
-
this.serverJurisdictionError = true;
|
|
9893
|
-
});
|
|
9894
|
-
}
|
|
9895
|
-
constructElasticSearchQuery(caseIds, size) {
|
|
9896
|
-
return {
|
|
9897
|
-
query: {
|
|
9898
|
-
terms: {
|
|
9899
|
-
reference: caseIds,
|
|
9900
|
-
},
|
|
9901
|
-
},
|
|
9902
|
-
size,
|
|
9903
|
-
};
|
|
9904
|
-
}
|
|
9905
|
-
mapResponse(esSearchCasesResponse) {
|
|
9906
|
-
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
9907
|
-
return caseInfo && {
|
|
9908
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
9909
|
-
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
9910
|
-
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
9911
|
-
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
9912
|
-
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
9913
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
9914
|
-
caseInfo.value.ReasonForLink.map(reason => reason.value && reason.value.Reason),
|
|
9915
|
-
};
|
|
9916
|
-
}
|
|
9917
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
9918
|
-
return forkJoin(searchCasesResponse);
|
|
9919
|
-
}
|
|
9920
|
-
getAllLinkedCaseInformation() {
|
|
9921
|
-
const searchCasesResponse = [];
|
|
9922
|
-
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
9923
|
-
Object.keys(linkedCaseIds).forEach(key => {
|
|
9924
|
-
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
9925
|
-
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
9926
|
-
searchCasesResponse.push(query);
|
|
9927
|
-
});
|
|
9928
|
-
if (searchCasesResponse.length) {
|
|
9929
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
9930
|
-
const casesResponse = [];
|
|
9931
|
-
searchCases.forEach(response => {
|
|
9932
|
-
response.results.forEach((result) => {
|
|
9933
|
-
casesResponse.push(this.mapResponse(result));
|
|
9934
|
-
});
|
|
9935
|
-
});
|
|
9936
|
-
const caseLinks = casesResponse.map(item => {
|
|
9937
|
-
return {
|
|
9938
|
-
caseReference: item.caseReference,
|
|
9939
|
-
caseName: item.caseName,
|
|
9940
|
-
caseService: item.service,
|
|
9941
|
-
caseType: item.caseType,
|
|
9942
|
-
unlink: false,
|
|
9943
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
9944
|
-
return {
|
|
9945
|
-
reasonCode: reason
|
|
9946
|
-
};
|
|
9947
|
-
}),
|
|
9948
|
-
};
|
|
9949
|
-
});
|
|
9950
|
-
this.linkedCases = caseLinks;
|
|
9951
|
-
this.serverLinkedApiError = null;
|
|
9952
|
-
}, err => {
|
|
9953
|
-
this.serverLinkedApiError = {
|
|
9954
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
9955
|
-
};
|
|
9956
|
-
});
|
|
9957
|
-
}
|
|
9958
|
-
}
|
|
9959
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
9960
|
-
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
9961
|
-
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
9962
|
-
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
9963
|
-
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
9964
|
-
switch (fieldName) {
|
|
9965
|
-
case 'JURISDICTION':
|
|
9966
|
-
return selectedJurisdiction && selectedJurisdiction.description;
|
|
9967
|
-
case 'CASE_TYPE':
|
|
9968
|
-
return selectedCaseType && selectedCaseType.name;
|
|
9969
|
-
case 'CASE_TYPE_DESCRIPTION':
|
|
9970
|
-
return selectedCaseType && selectedCaseType.description;
|
|
9971
|
-
case 'STATE':
|
|
9972
|
-
return state && state.name || fieldValue;
|
|
9973
|
-
case 'STATE_DESCRIPTION':
|
|
9974
|
-
return state && state.description || fieldValue;
|
|
9975
|
-
default:
|
|
9976
|
-
break;
|
|
9977
|
-
}
|
|
9978
|
-
}
|
|
9979
|
-
getCaseName(searchCasesResponse) {
|
|
9980
|
-
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
9981
|
-
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
9982
|
-
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
9983
|
-
if (caseNameHmctsInternalField) {
|
|
9984
|
-
caseName = caseNameHmctsInternalField.value;
|
|
9985
|
-
}
|
|
9986
|
-
});
|
|
9987
|
-
return caseName;
|
|
9988
|
-
}
|
|
9989
|
-
}
|
|
9990
|
-
LinkedCasesService.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
9991
|
-
LinkedCasesService.ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
9992
|
-
LinkedCasesService.ɵprov = i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
9993
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
9994
|
-
type: Injectable
|
|
9995
|
-
}], function () { return [{ type: JurisdictionService }, { type: SearchService }]; }, null); })();
|
|
9996
|
-
|
|
9997
|
-
class LinkCasesReasonValuePipe {
|
|
9998
|
-
constructor(linkedCasesService) {
|
|
9999
|
-
this.linkedCasesService = linkedCasesService;
|
|
10000
|
-
}
|
|
10001
|
-
transform(reasonCode) {
|
|
10002
|
-
const reasonCodeMapping = this.linkedCasesService.linkCaseReasons &&
|
|
10003
|
-
this.linkedCasesService.linkCaseReasons.find(reason => reason.key === reasonCode);
|
|
10004
|
-
return reasonCodeMapping && reasonCodeMapping.value_en;
|
|
10005
|
-
}
|
|
10006
|
-
}
|
|
10007
|
-
LinkCasesReasonValuePipe.ɵfac = function LinkCasesReasonValuePipe_Factory(t) { return new (t || LinkCasesReasonValuePipe)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
10008
|
-
LinkCasesReasonValuePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdLinkCasesReasonValue", type: LinkCasesReasonValuePipe, pure: true });
|
|
10009
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesReasonValuePipe, [{
|
|
10010
|
-
type: Pipe,
|
|
10011
|
-
args: [{
|
|
10012
|
-
name: 'ccdLinkCasesReasonValue'
|
|
10013
|
-
}]
|
|
10014
|
-
}], function () { return [{ type: LinkedCasesService }]; }, null); })();
|
|
10015
|
-
|
|
10016
9784
|
var SortOrder;
|
|
10017
9785
|
(function (SortOrder) {
|
|
10018
9786
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
@@ -10048,8 +9816,7 @@ const pipeDeclarations = [
|
|
|
10048
9816
|
CcdCYAPageLabelFilterPipe,
|
|
10049
9817
|
ReadFieldsFilterPipe,
|
|
10050
9818
|
CcdTabFieldsPipe,
|
|
10051
|
-
CcdPageFieldsPipe
|
|
10052
|
-
LinkCasesReasonValuePipe
|
|
9819
|
+
CcdPageFieldsPipe
|
|
10053
9820
|
];
|
|
10054
9821
|
class PipesModule {
|
|
10055
9822
|
}
|
|
@@ -10065,16 +9832,14 @@ PipesModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
10065
9832
|
CcdCYAPageLabelFilterPipe,
|
|
10066
9833
|
ReadFieldsFilterPipe,
|
|
10067
9834
|
CcdTabFieldsPipe,
|
|
10068
|
-
CcdPageFieldsPipe,
|
|
10069
|
-
LinkCasesReasonValuePipe], imports: [CommonModule], exports: [CaseReferencePipe,
|
|
9835
|
+
CcdPageFieldsPipe], imports: [CommonModule], exports: [CaseReferencePipe,
|
|
10070
9836
|
SortSearchResultPipe,
|
|
10071
9837
|
CcdCaseTitlePipe,
|
|
10072
9838
|
CcdCollectionTableCaseFieldsFilterPipe,
|
|
10073
9839
|
CcdCYAPageLabelFilterPipe,
|
|
10074
9840
|
ReadFieldsFilterPipe,
|
|
10075
9841
|
CcdTabFieldsPipe,
|
|
10076
|
-
CcdPageFieldsPipe
|
|
10077
|
-
LinkCasesReasonValuePipe] }); })();
|
|
9842
|
+
CcdPageFieldsPipe] }); })();
|
|
10078
9843
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipesModule, [{
|
|
10079
9844
|
type: NgModule,
|
|
10080
9845
|
args: [{
|
|
@@ -10296,7 +10061,7 @@ class AddressOption {
|
|
|
10296
10061
|
}
|
|
10297
10062
|
}
|
|
10298
10063
|
|
|
10299
|
-
const _c0$
|
|
10064
|
+
const _c0$Q = ["writeComplexFieldComponent"];
|
|
10300
10065
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10301
10066
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10302
10067
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
@@ -10489,7 +10254,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10489
10254
|
}
|
|
10490
10255
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10491
10256
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10492
|
-
i0.ɵɵviewQuery(_c0$
|
|
10257
|
+
i0.ɵɵviewQuery(_c0$Q, 1);
|
|
10493
10258
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10494
10259
|
} if (rf & 2) {
|
|
10495
10260
|
let _t;
|
|
@@ -11063,7 +10828,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
11063
10828
|
i0.ɵɵadvance(1);
|
|
11064
10829
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
11065
10830
|
} }
|
|
11066
|
-
const _c0$
|
|
10831
|
+
const _c0$P = function (a0) { return { "form-group-error": a0 }; };
|
|
11067
10832
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11068
10833
|
i0.ɵɵelementStart(0, "div", 8);
|
|
11069
10834
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -11082,7 +10847,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
11082
10847
|
i0.ɵɵadvance(1);
|
|
11083
10848
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
11084
10849
|
i0.ɵɵadvance(1);
|
|
11085
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
10850
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$P, ctx_r1.errorMessages.length > 0));
|
|
11086
10851
|
i0.ɵɵadvance(1);
|
|
11087
10852
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
11088
10853
|
i0.ɵɵadvance(1);
|
|
@@ -11446,8 +11211,8 @@ WriteCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseFlag
|
|
|
11446
11211
|
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null); })();
|
|
11447
11212
|
|
|
11448
11213
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
11449
|
-
i0.ɵɵelementStart(0, "a",
|
|
11450
|
-
i0.ɵɵelementStart(1, "span",
|
|
11214
|
+
i0.ɵɵelementStart(0, "a", 1);
|
|
11215
|
+
i0.ɵɵelementStart(1, "span", 2);
|
|
11451
11216
|
i0.ɵɵtext(2);
|
|
11452
11217
|
i0.ɵɵpipe(3, "ccdCaseReference");
|
|
11453
11218
|
i0.ɵɵelementEnd();
|
|
@@ -11458,112 +11223,71 @@ function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11458
11223
|
i0.ɵɵadvance(2);
|
|
11459
11224
|
i0.ɵɵtextInterpolate(ctx_r0.caseField.value.CaseReference ? i0.ɵɵpipeBind1(3, 2, ctx_r0.caseField.value.CaseReference) : "");
|
|
11460
11225
|
} }
|
|
11461
|
-
function ReadCaseLinkFieldComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
11462
|
-
i0.ɵɵelementContainerStart(0);
|
|
11463
|
-
i0.ɵɵelement(1, "ccd-read-linked-cases", 4);
|
|
11464
|
-
i0.ɵɵelementContainerEnd();
|
|
11465
|
-
} if (rf & 2) {
|
|
11466
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
11467
|
-
i0.ɵɵadvance(1);
|
|
11468
|
-
i0.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
11469
|
-
} }
|
|
11470
11226
|
class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
11471
|
-
constructor() {
|
|
11472
|
-
super(...arguments);
|
|
11473
|
-
this.paletteContext = PaletteContext;
|
|
11474
|
-
}
|
|
11475
11227
|
hasReference() {
|
|
11476
11228
|
return this.caseField.value && this.caseField.value.CaseReference;
|
|
11477
11229
|
}
|
|
11478
|
-
hasCaseLinkCollection() {
|
|
11479
|
-
return (this.caseField.field_type &&
|
|
11480
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
11481
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11482
|
-
}
|
|
11483
11230
|
}
|
|
11484
11231
|
ReadCaseLinkFieldComponent.ɵfac = function ReadCaseLinkFieldComponent_Factory(t) { return ɵReadCaseLinkFieldComponent_BaseFactory(t || ReadCaseLinkFieldComponent); };
|
|
11485
|
-
ReadCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
11232
|
+
ReadCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 3, "href"], [1, "text-16"]], template: function ReadCaseLinkFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11486
11233
|
i0.ɵɵtemplate(0, ReadCaseLinkFieldComponent_a_0_Template, 4, 4, "a", 0);
|
|
11487
|
-
i0.ɵɵtemplate(1, ReadCaseLinkFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
|
|
11488
11234
|
} if (rf & 2) {
|
|
11489
11235
|
i0.ɵɵproperty("ngIf", ctx.hasReference());
|
|
11490
|
-
|
|
11491
|
-
i0.ɵɵproperty("ngIf", ctx.hasCaseLinkCollection());
|
|
11492
|
-
} }, encapsulation: 2 });
|
|
11236
|
+
} }, directives: [i1.NgIf], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
11493
11237
|
const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadCaseLinkFieldComponent);
|
|
11494
11238
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCaseLinkFieldComponent, [{
|
|
11495
11239
|
type: Component,
|
|
11496
11240
|
args: [{
|
|
11497
11241
|
selector: 'ccd-read-case-link-field',
|
|
11498
|
-
templateUrl: 'read-case-link-field.html'
|
|
11242
|
+
templateUrl: 'read-case-link-field.html'
|
|
11499
11243
|
}]
|
|
11500
11244
|
}], null, null); })();
|
|
11501
11245
|
|
|
11502
|
-
const _c0$
|
|
11503
|
-
function
|
|
11246
|
+
const _c0$O = ["writeComplexFieldComponent"];
|
|
11247
|
+
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11504
11248
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11505
11249
|
i0.ɵɵtext(1);
|
|
11506
11250
|
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
11507
11251
|
i0.ɵɵelementEnd();
|
|
11508
11252
|
} if (rf & 2) {
|
|
11509
|
-
const
|
|
11253
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
11510
11254
|
i0.ɵɵadvance(1);
|
|
11511
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
11255
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
11512
11256
|
} }
|
|
11513
|
-
function
|
|
11257
|
+
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
11514
11258
|
i0.ɵɵelementStart(0, "span", 7);
|
|
11515
11259
|
i0.ɵɵtext(1);
|
|
11516
11260
|
i0.ɵɵelementEnd();
|
|
11517
11261
|
} if (rf & 2) {
|
|
11518
|
-
const
|
|
11519
|
-
i0.ɵɵadvance(1);
|
|
11520
|
-
i0.ɵɵtextInterpolate(ctx_r3.caseField.hint_text);
|
|
11521
|
-
} }
|
|
11522
|
-
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11523
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
11524
|
-
i0.ɵɵelementStart(1, "label", 2);
|
|
11525
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span", 3);
|
|
11526
|
-
i0.ɵɵelementEnd();
|
|
11527
|
-
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span", 4);
|
|
11528
|
-
i0.ɵɵelement(4, "input", 5);
|
|
11529
|
-
i0.ɵɵelementEnd();
|
|
11530
|
-
} if (rf & 2) {
|
|
11531
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
11532
|
-
i0.ɵɵadvance(1);
|
|
11533
|
-
i0.ɵɵproperty("for", ctx_r0.id());
|
|
11534
|
-
i0.ɵɵadvance(1);
|
|
11535
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
11536
|
-
i0.ɵɵadvance(1);
|
|
11537
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
11262
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
11538
11263
|
i0.ɵɵadvance(1);
|
|
11539
|
-
i0.ɵɵ
|
|
11264
|
+
i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
11540
11265
|
} }
|
|
11541
|
-
function
|
|
11542
|
-
|
|
11543
|
-
i0.ɵɵ
|
|
11544
|
-
i0.ɵɵ
|
|
11545
|
-
i0.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.submitLinkedCases(); });
|
|
11546
|
-
i0.ɵɵelementEnd();
|
|
11266
|
+
function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
11267
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
11268
|
+
i0.ɵɵtext(1);
|
|
11269
|
+
i0.ɵɵpipe(2, "ccdFirstError");
|
|
11547
11270
|
i0.ɵɵelementEnd();
|
|
11548
11271
|
} if (rf & 2) {
|
|
11549
|
-
const
|
|
11272
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
11550
11273
|
i0.ɵɵadvance(1);
|
|
11551
|
-
i0.ɵɵ
|
|
11274
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label));
|
|
11552
11275
|
} }
|
|
11276
|
+
const _c1$k = function (a0) { return { "form-group-error": a0 }; };
|
|
11553
11277
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
11554
|
-
constructor(linkedCasesService) {
|
|
11555
|
-
super();
|
|
11556
|
-
this.linkedCasesService = linkedCasesService;
|
|
11557
|
-
this.caseFields = [];
|
|
11558
|
-
}
|
|
11559
11278
|
ngOnInit() {
|
|
11560
|
-
|
|
11561
|
-
this.formArray['caseField'] = this.caseField;
|
|
11562
|
-
if (!this.hasCaseLinkCollection()) {
|
|
11279
|
+
if (this.caseField.value) {
|
|
11563
11280
|
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11564
11281
|
CaseReference: new FormControl(this.caseField.value.CaseReference, Validators.required),
|
|
11565
11282
|
}), true);
|
|
11566
11283
|
}
|
|
11284
|
+
else {
|
|
11285
|
+
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11286
|
+
CaseReference: new FormControl(null, Validators.required),
|
|
11287
|
+
}), true);
|
|
11288
|
+
}
|
|
11289
|
+
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
11290
|
+
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
11567
11291
|
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
11568
11292
|
// field uses the Complex type, it is meant to be treated as one field
|
|
11569
11293
|
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
@@ -11571,18 +11295,22 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11571
11295
|
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
11572
11296
|
}
|
|
11573
11297
|
}
|
|
11574
|
-
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
11575
11298
|
}
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11299
|
+
caseReferenceValidator() {
|
|
11300
|
+
return (control) => {
|
|
11301
|
+
if (control.value) {
|
|
11302
|
+
if (this.validCaseReference(control.value)) {
|
|
11303
|
+
return null;
|
|
11304
|
+
}
|
|
11305
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11306
|
+
}
|
|
11307
|
+
else {
|
|
11308
|
+
if (control.touched) {
|
|
11309
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11310
|
+
}
|
|
11311
|
+
}
|
|
11312
|
+
return null;
|
|
11313
|
+
};
|
|
11586
11314
|
}
|
|
11587
11315
|
validCaseReference(valueString) {
|
|
11588
11316
|
if (!valueString) {
|
|
@@ -11590,45 +11318,48 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11590
11318
|
}
|
|
11591
11319
|
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
11592
11320
|
}
|
|
11593
|
-
hasCaseLinkCollection() {
|
|
11594
|
-
return (this.caseField.field_type &&
|
|
11595
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
11596
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11597
|
-
}
|
|
11598
11321
|
}
|
|
11599
|
-
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return
|
|
11322
|
+
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11600
11323
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11601
|
-
i0.ɵɵviewQuery(_c0$
|
|
11324
|
+
i0.ɵɵviewQuery(_c0$O, 1);
|
|
11602
11325
|
} if (rf & 2) {
|
|
11603
11326
|
let _t;
|
|
11604
11327
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
11605
|
-
} },
|
|
11606
|
-
i0.ɵɵ
|
|
11607
|
-
i0.ɵɵ
|
|
11608
|
-
i0.ɵɵtemplate(2,
|
|
11609
|
-
i0.ɵɵ
|
|
11328
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 9, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11329
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
11330
|
+
i0.ɵɵelementStart(1, "label", 1);
|
|
11331
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
11332
|
+
i0.ɵɵelementEnd();
|
|
11333
|
+
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 2, 1, "span", 3);
|
|
11334
|
+
i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
11335
|
+
i0.ɵɵelement(5, "input", 5);
|
|
11336
|
+
i0.ɵɵelementEnd();
|
|
11610
11337
|
} if (rf & 2) {
|
|
11338
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$k, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
11611
11339
|
i0.ɵɵadvance(1);
|
|
11612
|
-
i0.ɵɵproperty("
|
|
11340
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
11613
11341
|
i0.ɵɵadvance(1);
|
|
11614
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
11615
|
-
|
|
11342
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
11343
|
+
i0.ɵɵadvance(1);
|
|
11344
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
11345
|
+
i0.ɵɵadvance(1);
|
|
11346
|
+
i0.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
|
|
11347
|
+
i0.ɵɵadvance(1);
|
|
11348
|
+
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
11349
|
+
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
11350
|
+
const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
11616
11351
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
11617
11352
|
type: Component,
|
|
11618
11353
|
args: [{
|
|
11619
11354
|
selector: 'ccd-write-case-link-field',
|
|
11620
11355
|
templateUrl: 'write-case-link-field.html'
|
|
11621
11356
|
}]
|
|
11622
|
-
}],
|
|
11623
|
-
type: Input
|
|
11624
|
-
}], formGroup: [{
|
|
11625
|
-
type: Input
|
|
11626
|
-
}], writeComplexFieldComponent: [{
|
|
11357
|
+
}], null, { writeComplexFieldComponent: [{
|
|
11627
11358
|
type: ViewChild,
|
|
11628
|
-
args: ['writeComplexFieldComponent'
|
|
11359
|
+
args: ['writeComplexFieldComponent']
|
|
11629
11360
|
}] }); })();
|
|
11630
11361
|
|
|
11631
|
-
const _c0$
|
|
11362
|
+
const _c0$N = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
11632
11363
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11633
11364
|
i0.ɵɵelementStart(0, "tbody");
|
|
11634
11365
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11641,9 +11372,9 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11641
11372
|
} if (rf & 2) {
|
|
11642
11373
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11643
11374
|
i0.ɵɵadvance(4);
|
|
11644
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11375
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$N, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
|
|
11645
11376
|
} }
|
|
11646
|
-
const _c1$
|
|
11377
|
+
const _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11647
11378
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
11648
11379
|
i0.ɵɵelementStart(0, "tr");
|
|
11649
11380
|
i0.ɵɵelementStart(1, "td");
|
|
@@ -11655,7 +11386,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
11655
11386
|
const i_r5 = ctx.index;
|
|
11656
11387
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
11657
11388
|
i0.ɵɵadvance(2);
|
|
11658
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
11389
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$j, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
|
|
11659
11390
|
} }
|
|
11660
11391
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
11661
11392
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -11769,7 +11500,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11769
11500
|
}]
|
|
11770
11501
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11771
11502
|
|
|
11772
|
-
const _c0$
|
|
11503
|
+
const _c0$M = ["collectionItem"];
|
|
11773
11504
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11774
11505
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11775
11506
|
i0.ɵɵtext(1);
|
|
@@ -12154,7 +11885,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12154
11885
|
}
|
|
12155
11886
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
12156
11887
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12157
|
-
i0.ɵɵviewQuery(_c0$
|
|
11888
|
+
i0.ɵɵviewQuery(_c0$M, 1);
|
|
12158
11889
|
} if (rf & 2) {
|
|
12159
11890
|
let _t;
|
|
12160
11891
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12474,7 +12205,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12474
12205
|
type: Injectable
|
|
12475
12206
|
}], null, null); })();
|
|
12476
12207
|
|
|
12477
|
-
const _c0$
|
|
12208
|
+
const _c0$L = ["fileInput"];
|
|
12478
12209
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
12479
12210
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12480
12211
|
i0.ɵɵtext(1);
|
|
@@ -12499,7 +12230,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
12499
12230
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
12500
12231
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
12501
12232
|
} }
|
|
12502
|
-
const _c1$
|
|
12233
|
+
const _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12503
12234
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12504
12235
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12505
12236
|
super();
|
|
@@ -12752,7 +12483,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12752
12483
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12753
12484
|
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
12754
12485
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12755
|
-
i0.ɵɵviewQuery(_c0$
|
|
12486
|
+
i0.ɵɵviewQuery(_c0$L, 1);
|
|
12756
12487
|
} if (rf & 2) {
|
|
12757
12488
|
let _t;
|
|
12758
12489
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12788,7 +12519,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
12788
12519
|
i0.ɵɵelementEnd();
|
|
12789
12520
|
i0.ɵɵelementEnd();
|
|
12790
12521
|
} if (rf & 2) {
|
|
12791
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
12522
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
|
|
12792
12523
|
i0.ɵɵadvance(1);
|
|
12793
12524
|
i0.ɵɵproperty("for", ctx.id());
|
|
12794
12525
|
i0.ɵɵadvance(1);
|
|
@@ -12914,7 +12645,7 @@ function WriteDynamicListFieldComponent_option_9_Template(rf, ctx) { if (rf & 1)
|
|
|
12914
12645
|
i0.ɵɵadvance(1);
|
|
12915
12646
|
i0.ɵɵtextInterpolate(type_r5.label);
|
|
12916
12647
|
} }
|
|
12917
|
-
const _c0$
|
|
12648
|
+
const _c0$K = function (a0) { return { "form-group-error": a0 }; };
|
|
12918
12649
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
12919
12650
|
ngOnInit() {
|
|
12920
12651
|
/**
|
|
@@ -12956,7 +12687,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
12956
12687
|
i0.ɵɵelementEnd();
|
|
12957
12688
|
i0.ɵɵelementEnd();
|
|
12958
12689
|
} if (rf & 2) {
|
|
12959
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
12690
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$K, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12960
12691
|
i0.ɵɵadvance(1);
|
|
12961
12692
|
i0.ɵɵproperty("for", ctx.id());
|
|
12962
12693
|
i0.ɵɵadvance(1);
|
|
@@ -13077,7 +12808,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
13077
12808
|
i0.ɵɵadvance(1);
|
|
13078
12809
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
13079
12810
|
} }
|
|
13080
|
-
const _c0$
|
|
12811
|
+
const _c0$J = function (a0) { return { selected: a0 }; };
|
|
13081
12812
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
13082
12813
|
i0.ɵɵelementStart(0, "div", 10);
|
|
13083
12814
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -13088,7 +12819,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13088
12819
|
} if (rf & 2) {
|
|
13089
12820
|
const radioButton_r5 = ctx.$implicit;
|
|
13090
12821
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
13091
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
12822
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$J, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
13092
12823
|
i0.ɵɵadvance(1);
|
|
13093
12824
|
i0.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
13094
12825
|
i0.ɵɵadvance(1);
|
|
@@ -13096,7 +12827,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13096
12827
|
i0.ɵɵadvance(1);
|
|
13097
12828
|
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
13098
12829
|
} }
|
|
13099
|
-
const _c1$
|
|
12830
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
13100
12831
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13101
12832
|
ngOnInit() {
|
|
13102
12833
|
/**
|
|
@@ -13137,7 +12868,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
13137
12868
|
i0.ɵɵelementEnd();
|
|
13138
12869
|
i0.ɵɵelementEnd();
|
|
13139
12870
|
} if (rf & 2) {
|
|
13140
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
12871
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
13141
12872
|
i0.ɵɵadvance(3);
|
|
13142
12873
|
i0.ɵɵproperty("for", ctx.id());
|
|
13143
12874
|
i0.ɵɵadvance(1);
|
|
@@ -13221,8 +12952,8 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13221
12952
|
i0.ɵɵadvance(1);
|
|
13222
12953
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
13223
12954
|
} }
|
|
13224
|
-
const _c0$
|
|
13225
|
-
const _c1$
|
|
12955
|
+
const _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
12956
|
+
const _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13226
12957
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
13227
12958
|
ngOnInit() {
|
|
13228
12959
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13239,7 +12970,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13239
12970
|
i0.ɵɵelement(5, "input", 5);
|
|
13240
12971
|
i0.ɵɵelementEnd();
|
|
13241
12972
|
} if (rf & 2) {
|
|
13242
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
12973
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$I, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
13243
12974
|
i0.ɵɵadvance(1);
|
|
13244
12975
|
i0.ɵɵproperty("for", ctx.id());
|
|
13245
12976
|
i0.ɵɵadvance(1);
|
|
@@ -13249,7 +12980,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13249
12980
|
i0.ɵɵadvance(1);
|
|
13250
12981
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
13251
12982
|
i0.ɵɵadvance(1);
|
|
13252
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
12983
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$g, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
13253
12984
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
13254
12985
|
const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
13255
12986
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -13341,7 +13072,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
13341
13072
|
i0.ɵɵadvance(1);
|
|
13342
13073
|
i0.ɵɵtextInterpolate(type_r4.label);
|
|
13343
13074
|
} }
|
|
13344
|
-
const _c0$
|
|
13075
|
+
const _c0$H = function (a0) { return { "form-group-error": a0 }; };
|
|
13345
13076
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
13346
13077
|
get listItems() {
|
|
13347
13078
|
if (this.caseField) {
|
|
@@ -13379,7 +13110,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13379
13110
|
i0.ɵɵelementEnd();
|
|
13380
13111
|
i0.ɵɵelementEnd();
|
|
13381
13112
|
} if (rf & 2) {
|
|
13382
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13113
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$H, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13383
13114
|
i0.ɵɵadvance(1);
|
|
13384
13115
|
i0.ɵɵproperty("for", ctx.id());
|
|
13385
13116
|
i0.ɵɵadvance(1);
|
|
@@ -13470,7 +13201,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
13470
13201
|
i0.ɵɵadvance(1);
|
|
13471
13202
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
13472
13203
|
} }
|
|
13473
|
-
const _c0$
|
|
13204
|
+
const _c0$G = function (a0) { return { selected: a0 }; };
|
|
13474
13205
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
13475
13206
|
i0.ɵɵelementStart(0, "div", 9);
|
|
13476
13207
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -13481,7 +13212,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13481
13212
|
} if (rf & 2) {
|
|
13482
13213
|
const radioButton_r4 = ctx.$implicit;
|
|
13483
13214
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13484
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
13215
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$G, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13485
13216
|
i0.ɵɵadvance(1);
|
|
13486
13217
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13487
13218
|
i0.ɵɵadvance(1);
|
|
@@ -13489,7 +13220,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13489
13220
|
i0.ɵɵadvance(1);
|
|
13490
13221
|
i0.ɵɵtextInterpolate(radioButton_r4.label);
|
|
13491
13222
|
} }
|
|
13492
|
-
const _c1$
|
|
13223
|
+
const _c1$f = function (a0) { return { "form-group-error": a0 }; };
|
|
13493
13224
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13494
13225
|
ngOnInit() {
|
|
13495
13226
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -13513,7 +13244,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
13513
13244
|
i0.ɵɵelementEnd();
|
|
13514
13245
|
i0.ɵɵelementEnd();
|
|
13515
13246
|
} if (rf & 2) {
|
|
13516
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13247
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
13517
13248
|
i0.ɵɵadvance(3);
|
|
13518
13249
|
i0.ɵɵproperty("for", ctx.id());
|
|
13519
13250
|
i0.ɵɵadvance(1);
|
|
@@ -13612,7 +13343,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13612
13343
|
i0.ɵɵadvance(1);
|
|
13613
13344
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13614
13345
|
} }
|
|
13615
|
-
const _c0$
|
|
13346
|
+
const _c0$F = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13616
13347
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
13617
13348
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
13618
13349
|
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
@@ -13622,7 +13353,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
|
|
|
13622
13353
|
} if (rf & 2) {
|
|
13623
13354
|
const judicialUser_r5 = ctx.$implicit;
|
|
13624
13355
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13625
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
13356
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$F, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13626
13357
|
i0.ɵɵadvance(1);
|
|
13627
13358
|
i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13628
13359
|
} }
|
|
@@ -13930,7 +13661,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13930
13661
|
i0.ɵɵadvance(1);
|
|
13931
13662
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
13932
13663
|
} }
|
|
13933
|
-
const _c0$
|
|
13664
|
+
const _c0$E = function (a0) { return { "form-group-error": a0 }; };
|
|
13934
13665
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
13935
13666
|
ngOnInit() {
|
|
13936
13667
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13953,7 +13684,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
13953
13684
|
i0.ɵɵelementEnd();
|
|
13954
13685
|
i0.ɵɵelementEnd();
|
|
13955
13686
|
} if (rf & 2) {
|
|
13956
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
13687
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$E, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
13957
13688
|
i0.ɵɵadvance(1);
|
|
13958
13689
|
i0.ɵɵproperty("for", ctx.id());
|
|
13959
13690
|
i0.ɵɵadvance(1);
|
|
@@ -14070,7 +13801,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
14070
13801
|
i0.ɵɵadvance(1);
|
|
14071
13802
|
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
14072
13803
|
} }
|
|
14073
|
-
const _c0$
|
|
13804
|
+
const _c0$D = function (a0) { return { "error": a0 }; };
|
|
14074
13805
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
14075
13806
|
ngOnInit() {
|
|
14076
13807
|
this.checkboxes = new FormArray([]);
|
|
@@ -14125,7 +13856,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
14125
13856
|
i0.ɵɵelementEnd();
|
|
14126
13857
|
i0.ɵɵelementEnd();
|
|
14127
13858
|
} if (rf & 2) {
|
|
14128
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
13859
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$D, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
14129
13860
|
i0.ɵɵadvance(3);
|
|
14130
13861
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14131
13862
|
i0.ɵɵadvance(1);
|
|
@@ -14194,8 +13925,8 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14194
13925
|
i0.ɵɵadvance(1);
|
|
14195
13926
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
14196
13927
|
} }
|
|
14197
|
-
const _c0$
|
|
14198
|
-
const _c1$
|
|
13928
|
+
const _c0$C = function (a0) { return { "form-group-error": a0 }; };
|
|
13929
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14199
13930
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
14200
13931
|
ngOnInit() {
|
|
14201
13932
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14212,7 +13943,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
14212
13943
|
i0.ɵɵelement(5, "input", 5);
|
|
14213
13944
|
i0.ɵɵelementEnd();
|
|
14214
13945
|
} if (rf & 2) {
|
|
14215
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13946
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$C, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
14216
13947
|
i0.ɵɵadvance(1);
|
|
14217
13948
|
i0.ɵɵproperty("for", ctx.id());
|
|
14218
13949
|
i0.ɵɵadvance(1);
|
|
@@ -14222,7 +13953,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
14222
13953
|
i0.ɵɵadvance(1);
|
|
14223
13954
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
14224
13955
|
i0.ɵɵadvance(1);
|
|
14225
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
13956
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
14226
13957
|
} }, directives: [i1.NgClass, i1.NgIf, i2.NumberValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14227
13958
|
const ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
14228
13959
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -14462,7 +14193,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
|
|
|
14462
14193
|
i0.ɵɵelementEnd();
|
|
14463
14194
|
i0.ɵɵelementEnd();
|
|
14464
14195
|
} }
|
|
14465
|
-
const _c0$
|
|
14196
|
+
const _c0$B = function (a0) { return { "scroll-container ": a0 }; };
|
|
14466
14197
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
14467
14198
|
i0.ɵɵelementStart(0, "div", 26);
|
|
14468
14199
|
i0.ɵɵpipe(1, "async");
|
|
@@ -14476,7 +14207,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
|
|
|
14476
14207
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14477
14208
|
let tmp_0_0 = null;
|
|
14478
14209
|
let tmp_2_0 = null;
|
|
14479
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
14210
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$B, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
14480
14211
|
i0.ɵɵadvance(2);
|
|
14481
14212
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
14482
14213
|
i0.ɵɵadvance(2);
|
|
@@ -14921,7 +14652,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
14921
14652
|
i0.ɵɵadvance(1);
|
|
14922
14653
|
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
14923
14654
|
} }
|
|
14924
|
-
const _c0$
|
|
14655
|
+
const _c0$A = function (a0) { return { "error": a0 }; };
|
|
14925
14656
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
14926
14657
|
ngOnInit() {
|
|
14927
14658
|
this.checkboxes = new FormArray([]);
|
|
@@ -14995,7 +14726,7 @@ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type:
|
|
|
14995
14726
|
i0.ɵɵelementEnd();
|
|
14996
14727
|
i0.ɵɵelementEnd();
|
|
14997
14728
|
} if (rf & 2) {
|
|
14998
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
14729
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$A, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
14999
14730
|
i0.ɵɵadvance(3);
|
|
15000
14731
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15001
14732
|
i0.ɵɵadvance(1);
|
|
@@ -15063,8 +14794,8 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15063
14794
|
i0.ɵɵadvance(1);
|
|
15064
14795
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
|
|
15065
14796
|
} }
|
|
15066
|
-
const _c0$
|
|
15067
|
-
const _c1$
|
|
14797
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
14798
|
+
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15068
14799
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
15069
14800
|
ngOnInit() {
|
|
15070
14801
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15081,7 +14812,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
15081
14812
|
i0.ɵɵelement(5, "input", 5);
|
|
15082
14813
|
i0.ɵɵelementEnd();
|
|
15083
14814
|
} if (rf & 2) {
|
|
15084
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14815
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
15085
14816
|
i0.ɵɵadvance(1);
|
|
15086
14817
|
i0.ɵɵproperty("for", ctx.id());
|
|
15087
14818
|
i0.ɵɵadvance(1);
|
|
@@ -15091,7 +14822,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
15091
14822
|
i0.ɵɵadvance(1);
|
|
15092
14823
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
15093
14824
|
i0.ɵɵadvance(1);
|
|
15094
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14825
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
15095
14826
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15096
14827
|
const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
15097
14828
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -15151,8 +14882,8 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15151
14882
|
i0.ɵɵadvance(1);
|
|
15152
14883
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
15153
14884
|
} }
|
|
15154
|
-
const _c0$
|
|
15155
|
-
const _c1$
|
|
14885
|
+
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
14886
|
+
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
15156
14887
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
15157
14888
|
constructor(browserService) {
|
|
15158
14889
|
super();
|
|
@@ -15182,7 +14913,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
15182
14913
|
i0.ɵɵelementEnd();
|
|
15183
14914
|
i0.ɵɵelementEnd();
|
|
15184
14915
|
} if (rf & 2) {
|
|
15185
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14916
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
15186
14917
|
i0.ɵɵadvance(1);
|
|
15187
14918
|
i0.ɵɵproperty("for", ctx.id());
|
|
15188
14919
|
i0.ɵɵadvance(1);
|
|
@@ -15192,7 +14923,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
15192
14923
|
i0.ɵɵadvance(1);
|
|
15193
14924
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
15194
14925
|
i0.ɵɵadvance(1);
|
|
15195
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14926
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
15196
14927
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15197
14928
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
15198
14929
|
type: Component,
|
|
@@ -15252,8 +14983,8 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15252
14983
|
i0.ɵɵadvance(1);
|
|
15253
14984
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
|
|
15254
14985
|
} }
|
|
15255
|
-
const _c0$
|
|
15256
|
-
const _c1$
|
|
14986
|
+
const _c0$x = function (a0) { return { "form-group-error": a0 }; };
|
|
14987
|
+
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15257
14988
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
15258
14989
|
ngOnInit() {
|
|
15259
14990
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15275,7 +15006,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
15275
15006
|
i0.ɵɵelementEnd();
|
|
15276
15007
|
i0.ɵɵelementEnd();
|
|
15277
15008
|
} if (rf & 2) {
|
|
15278
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15009
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
15279
15010
|
i0.ɵɵadvance(1);
|
|
15280
15011
|
i0.ɵɵproperty("for", ctx.id());
|
|
15281
15012
|
i0.ɵɵadvance(1);
|
|
@@ -15285,7 +15016,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
15285
15016
|
i0.ɵɵadvance(1);
|
|
15286
15017
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
15287
15018
|
i0.ɵɵadvance(1);
|
|
15288
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15019
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
15289
15020
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15290
15021
|
const ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
15291
15022
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -15441,7 +15172,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
15441
15172
|
i0.ɵɵadvance(1);
|
|
15442
15173
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
|
|
15443
15174
|
} }
|
|
15444
|
-
const _c0$
|
|
15175
|
+
const _c0$w = function (a0) { return { selected: a0 }; };
|
|
15445
15176
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
15446
15177
|
i0.ɵɵelementStart(0, "div", 10);
|
|
15447
15178
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -15452,7 +15183,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
15452
15183
|
} if (rf & 2) {
|
|
15453
15184
|
const value_r4 = ctx.$implicit;
|
|
15454
15185
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
15455
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15186
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$w, ctx_r3.yesNoControl.value === value_r4));
|
|
15456
15187
|
i0.ɵɵadvance(1);
|
|
15457
15188
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
15458
15189
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -15461,7 +15192,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
15461
15192
|
i0.ɵɵadvance(1);
|
|
15462
15193
|
i0.ɵɵtextInterpolate(value_r4);
|
|
15463
15194
|
} }
|
|
15464
|
-
const _c1$
|
|
15195
|
+
const _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
15465
15196
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
15466
15197
|
constructor(yesNoService) {
|
|
15467
15198
|
super();
|
|
@@ -15487,7 +15218,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
15487
15218
|
i0.ɵɵelementEnd();
|
|
15488
15219
|
i0.ɵɵelementEnd();
|
|
15489
15220
|
} if (rf & 2) {
|
|
15490
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
15221
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
15491
15222
|
i0.ɵɵadvance(3);
|
|
15492
15223
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15493
15224
|
i0.ɵɵadvance(1);
|
|
@@ -15550,25 +15281,17 @@ class PaletteService {
|
|
|
15550
15281
|
return write ? WriteAddressFieldComponent : ReadComplexFieldComponent;
|
|
15551
15282
|
case 'OrderSummary':
|
|
15552
15283
|
return write ? WriteOrderSummaryFieldComponent : ReadOrderSummaryFieldComponent;
|
|
15284
|
+
case 'CaseLink':
|
|
15285
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15553
15286
|
case 'Organisation':
|
|
15554
15287
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
15555
15288
|
case 'JudicialUser':
|
|
15556
15289
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
15557
|
-
case 'CaseLink':
|
|
15558
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15559
15290
|
default:
|
|
15560
15291
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
15561
15292
|
}
|
|
15562
15293
|
case 'Collection':
|
|
15563
|
-
|
|
15564
|
-
case 'CaseLink':
|
|
15565
|
-
if (caseField.id === 'caseLinks') {
|
|
15566
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15567
|
-
}
|
|
15568
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15569
|
-
default:
|
|
15570
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15571
|
-
}
|
|
15294
|
+
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15572
15295
|
case 'MultiSelectList':
|
|
15573
15296
|
return write ? WriteMultiSelectListFieldComponent : ReadMultiSelectListFieldComponent;
|
|
15574
15297
|
case 'Document':
|
|
@@ -15605,7 +15328,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
15605
15328
|
type: Injectable
|
|
15606
15329
|
}], null, null); })();
|
|
15607
15330
|
|
|
15608
|
-
const _c0$
|
|
15331
|
+
const _c0$v = ["fieldContainer"];
|
|
15609
15332
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
15610
15333
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
15611
15334
|
constructor(resolver, paletteService) {
|
|
@@ -15649,7 +15372,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
15649
15372
|
}
|
|
15650
15373
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15651
15374
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15652
|
-
i0.ɵɵviewQuery(_c0$
|
|
15375
|
+
i0.ɵɵviewQuery(_c0$v, 1, ViewContainerRef);
|
|
15653
15376
|
} if (rf & 2) {
|
|
15654
15377
|
let _t;
|
|
15655
15378
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15683,7 +15406,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
15683
15406
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
15684
15407
|
}] }); })();
|
|
15685
15408
|
|
|
15686
|
-
const _c0$
|
|
15409
|
+
const _c0$u = ["fieldContainer"];
|
|
15687
15410
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList', 'DynamicMultiSelectList'];
|
|
15688
15411
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
15689
15412
|
constructor(resolver, paletteService) {
|
|
@@ -15727,7 +15450,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
15727
15450
|
}
|
|
15728
15451
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15729
15452
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15730
|
-
i0.ɵɵviewQuery(_c0$
|
|
15453
|
+
i0.ɵɵviewQuery(_c0$u, 3, ViewContainerRef);
|
|
15731
15454
|
} if (rf & 2) {
|
|
15732
15455
|
let _t;
|
|
15733
15456
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15776,7 +15499,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15776
15499
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
15777
15500
|
i0.ɵɵprojection(0);
|
|
15778
15501
|
} }
|
|
15779
|
-
const _c0$
|
|
15502
|
+
const _c0$t = ["*"];
|
|
15780
15503
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
15781
15504
|
constructor() {
|
|
15782
15505
|
super(...arguments);
|
|
@@ -15811,7 +15534,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
15811
15534
|
}
|
|
15812
15535
|
}
|
|
15813
15536
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
15814
|
-
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
15537
|
+
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$t, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15815
15538
|
i0.ɵɵprojectionDef();
|
|
15816
15539
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15817
15540
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 5, 2, "dl", 1);
|
|
@@ -15843,7 +15566,7 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15843
15566
|
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15844
15567
|
i0.ɵɵelementContainer(0);
|
|
15845
15568
|
} }
|
|
15846
|
-
const _c0$
|
|
15569
|
+
const _c0$s = function (a0) { return { cat: a0, level: 1 }; };
|
|
15847
15570
|
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
15848
15571
|
i0.ɵɵelementContainerStart(0);
|
|
15849
15572
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -15853,12 +15576,12 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
|
|
|
15853
15576
|
i0.ɵɵnextContext();
|
|
15854
15577
|
const _r1 = i0.ɵɵreference(13);
|
|
15855
15578
|
i0.ɵɵadvance(1);
|
|
15856
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
15579
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$s, cat_r3));
|
|
15857
15580
|
} }
|
|
15858
15581
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15859
15582
|
i0.ɵɵelementContainer(0);
|
|
15860
15583
|
} }
|
|
15861
|
-
const _c1$
|
|
15584
|
+
const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
15862
15585
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15863
15586
|
i0.ɵɵelementContainerStart(0);
|
|
15864
15587
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -15869,7 +15592,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
15869
15592
|
i0.ɵɵnextContext();
|
|
15870
15593
|
const _r1 = i0.ɵɵreference(13);
|
|
15871
15594
|
i0.ɵɵadvance(1);
|
|
15872
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$
|
|
15595
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
15873
15596
|
} }
|
|
15874
15597
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
15875
15598
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -16044,8 +15767,8 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
16044
15767
|
i0.ɵɵadvance(1);
|
|
16045
15768
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
16046
15769
|
} }
|
|
16047
|
-
const _c0$
|
|
16048
|
-
const _c1$
|
|
15770
|
+
const _c0$r = [[["", "trigger", ""]]];
|
|
15771
|
+
const _c1$8 = ["[trigger]"];
|
|
16049
15772
|
class CaseFileViewOverlayMenuComponent {
|
|
16050
15773
|
constructor() {
|
|
16051
15774
|
this.title = '';
|
|
@@ -16059,8 +15782,8 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
16059
15782
|
}
|
|
16060
15783
|
}
|
|
16061
15784
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
16062
|
-
CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$
|
|
16063
|
-
i0.ɵɵprojectionDef(_c0$
|
|
15785
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$8, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15786
|
+
i0.ɵɵprojectionDef(_c0$r);
|
|
16064
15787
|
i0.ɵɵelementStart(0, "div");
|
|
16065
15788
|
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
16066
15789
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -16807,8 +16530,8 @@ function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16807
16530
|
i0.ɵɵadvance(3);
|
|
16808
16531
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
16809
16532
|
} }
|
|
16810
|
-
const _c0$
|
|
16811
|
-
const _c1$
|
|
16533
|
+
const _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
16534
|
+
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16812
16535
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
16813
16536
|
i0.ɵɵelementStart(0, "div", 15);
|
|
16814
16537
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -16822,11 +16545,11 @@ function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
16822
16545
|
} if (rf & 2) {
|
|
16823
16546
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
16824
16547
|
i0.ɵɵadvance(1);
|
|
16825
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
16548
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
16826
16549
|
i0.ɵɵadvance(3);
|
|
16827
16550
|
i0.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
16828
16551
|
i0.ɵɵadvance(1);
|
|
16829
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
16552
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
|
|
16830
16553
|
} }
|
|
16831
16554
|
function SelectFlagTypeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
16832
16555
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -16973,7 +16696,7 @@ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeCom
|
|
|
16973
16696
|
} if (rf & 2) {
|
|
16974
16697
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
16975
16698
|
i0.ɵɵadvance(1);
|
|
16976
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
16699
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
16977
16700
|
i0.ɵɵadvance(4);
|
|
16978
16701
|
i0.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
16979
16702
|
i0.ɵɵadvance(1);
|
|
@@ -17065,7 +16788,7 @@ function SearchLanguageInterpreterComponent_div_21_div_5_Template(rf, ctx) { if
|
|
|
17065
16788
|
i0.ɵɵadvance(3);
|
|
17066
16789
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
17067
16790
|
} }
|
|
17068
|
-
const _c0$
|
|
16791
|
+
const _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
17069
16792
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
17070
16793
|
i0.ɵɵelementStart(0, "div", 25);
|
|
17071
16794
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -17080,7 +16803,7 @@ function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf &
|
|
|
17080
16803
|
} if (rf & 2) {
|
|
17081
16804
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
17082
16805
|
i0.ɵɵadvance(1);
|
|
17083
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
16806
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
17084
16807
|
i0.ɵɵadvance(2);
|
|
17085
16808
|
i0.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
17086
16809
|
i0.ɵɵadvance(1);
|
|
@@ -17246,7 +16969,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
|
|
|
17246
16969
|
const _r2 = i0.ɵɵreference(12);
|
|
17247
16970
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17248
16971
|
i0.ɵɵadvance(1);
|
|
17249
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$
|
|
16972
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
17250
16973
|
i0.ɵɵadvance(2);
|
|
17251
16974
|
i0.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
17252
16975
|
i0.ɵɵadvance(1);
|
|
@@ -17360,7 +17083,7 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
17360
17083
|
i0.ɵɵelementEnd();
|
|
17361
17084
|
i0.ɵɵelementEnd();
|
|
17362
17085
|
} }
|
|
17363
|
-
const _c0$
|
|
17086
|
+
const _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
17364
17087
|
class SelectFlagLocationComponent {
|
|
17365
17088
|
constructor() {
|
|
17366
17089
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -17445,7 +17168,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
|
|
|
17445
17168
|
} if (rf & 2) {
|
|
17446
17169
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17447
17170
|
i0.ɵɵadvance(1);
|
|
17448
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17171
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$o, ctx.errorMessages.length > 0));
|
|
17449
17172
|
i0.ɵɵadvance(4);
|
|
17450
17173
|
i0.ɵɵtextInterpolate1(" ", ctx.flagLocationTitle, " ");
|
|
17451
17174
|
i0.ɵɵadvance(1);
|
|
@@ -17498,7 +17221,7 @@ function AddCommentsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
17498
17221
|
i0.ɵɵadvance(3);
|
|
17499
17222
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.flagCommentsCharLimitErrorMessage, " ");
|
|
17500
17223
|
} }
|
|
17501
|
-
const _c0$
|
|
17224
|
+
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
17502
17225
|
class AddCommentsComponent {
|
|
17503
17226
|
constructor() {
|
|
17504
17227
|
this.optional = false;
|
|
@@ -17576,7 +17299,7 @@ AddCommentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddCommentsComponent
|
|
|
17576
17299
|
} if (rf & 2) {
|
|
17577
17300
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17578
17301
|
i0.ɵɵadvance(2);
|
|
17579
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$
|
|
17302
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$n, ctx.errorMessages.length > 0));
|
|
17580
17303
|
i0.ɵɵadvance(2);
|
|
17581
17304
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
17582
17305
|
i0.ɵɵadvance(1);
|
|
@@ -17645,7 +17368,7 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
17645
17368
|
i0.ɵɵelementEnd();
|
|
17646
17369
|
i0.ɵɵelementEnd();
|
|
17647
17370
|
} }
|
|
17648
|
-
const _c0$
|
|
17371
|
+
const _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
17649
17372
|
class ManageCaseFlagsComponent {
|
|
17650
17373
|
constructor() {
|
|
17651
17374
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -17804,7 +17527,7 @@ ManageCaseFlagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ManageCaseFlagsC
|
|
|
17804
17527
|
} if (rf & 2) {
|
|
17805
17528
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17806
17529
|
i0.ɵɵadvance(1);
|
|
17807
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17530
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$m, ctx.errorMessages.length > 0));
|
|
17808
17531
|
i0.ɵɵadvance(4);
|
|
17809
17532
|
i0.ɵɵtextInterpolate1(" ", ctx.manageCaseFlagTitle, " ");
|
|
17810
17533
|
i0.ɵɵadvance(1);
|
|
@@ -17863,8 +17586,8 @@ function UpdateFlagComponent_button_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
17863
17586
|
i0.ɵɵtext(1, " Make inactive ");
|
|
17864
17587
|
i0.ɵɵelementEnd();
|
|
17865
17588
|
} }
|
|
17866
|
-
const _c0$
|
|
17867
|
-
const _c1$
|
|
17589
|
+
const _c0$l = function (a0) { return { "form-group-error": a0 }; };
|
|
17590
|
+
const _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
17868
17591
|
class UpdateFlagComponent {
|
|
17869
17592
|
constructor() {
|
|
17870
17593
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -17982,7 +17705,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
17982
17705
|
} if (rf & 2) {
|
|
17983
17706
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17984
17707
|
i0.ɵɵadvance(2);
|
|
17985
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$
|
|
17708
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
|
|
17986
17709
|
i0.ɵɵadvance(2);
|
|
17987
17710
|
i0.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
17988
17711
|
i0.ɵɵadvance(1);
|
|
@@ -17998,7 +17721,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
17998
17721
|
i0.ɵɵadvance(3);
|
|
17999
17722
|
i0.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
|
|
18000
17723
|
i0.ɵɵadvance(6);
|
|
18001
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$
|
|
17724
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$6, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
18002
17725
|
i0.ɵɵadvance(1);
|
|
18003
17726
|
i0.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
|
|
18004
17727
|
i0.ɵɵadvance(2);
|
|
@@ -18111,2050 +17834,6 @@ CaseFlagSummaryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagSumm
|
|
|
18111
17834
|
type: Input
|
|
18112
17835
|
}] }); })();
|
|
18113
17836
|
|
|
18114
|
-
var LinkedCasesPages;
|
|
18115
|
-
(function (LinkedCasesPages) {
|
|
18116
|
-
LinkedCasesPages[LinkedCasesPages["BEFORE_YOU_START"] = 0] = "BEFORE_YOU_START";
|
|
18117
|
-
LinkedCasesPages[LinkedCasesPages["NO_LINKED_CASES"] = 1] = "NO_LINKED_CASES";
|
|
18118
|
-
LinkedCasesPages[LinkedCasesPages["LINK_CASE"] = 2] = "LINK_CASE";
|
|
18119
|
-
LinkedCasesPages[LinkedCasesPages["UNLINK_CASE"] = 3] = "UNLINK_CASE";
|
|
18120
|
-
LinkedCasesPages[LinkedCasesPages["CHECK_YOUR_ANSWERS"] = 4] = "CHECK_YOUR_ANSWERS";
|
|
18121
|
-
})(LinkedCasesPages || (LinkedCasesPages = {}));
|
|
18122
|
-
var LinkedCasesErrorMessages;
|
|
18123
|
-
(function (LinkedCasesErrorMessages) {
|
|
18124
|
-
LinkedCasesErrorMessages["ProposedCaseWithIn"] = "Case can not be linked to the same case";
|
|
18125
|
-
LinkedCasesErrorMessages["CaseNumberError"] = "Case numbers must have 16 digits";
|
|
18126
|
-
LinkedCasesErrorMessages["ReasonSelectionError"] = "Select a reason why these cases should be linked";
|
|
18127
|
-
LinkedCasesErrorMessages["SomethingWrong"] = "Something went wrong, please try again later";
|
|
18128
|
-
LinkedCasesErrorMessages["CaseCheckAgainError"] = "Check the case number and try again";
|
|
18129
|
-
LinkedCasesErrorMessages["CaseSelectionError"] = "You need to propose at least one case";
|
|
18130
|
-
LinkedCasesErrorMessages["CaseProposedError"] = "This case has already been proposed";
|
|
18131
|
-
LinkedCasesErrorMessages["CasesLinkedError"] = "These cases are already linked";
|
|
18132
|
-
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before continue";
|
|
18133
|
-
LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
|
|
18134
|
-
LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
|
|
18135
|
-
LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
|
|
18136
|
-
})(LinkedCasesErrorMessages || (LinkedCasesErrorMessages = {}));
|
|
18137
|
-
var LinkedCasesEventTriggers;
|
|
18138
|
-
(function (LinkedCasesEventTriggers) {
|
|
18139
|
-
LinkedCasesEventTriggers["LINK_CASES"] = "Link cases";
|
|
18140
|
-
LinkedCasesEventTriggers["MANAGE_CASE_LINKS"] = "Manage case links";
|
|
18141
|
-
})(LinkedCasesEventTriggers || (LinkedCasesEventTriggers = {}));
|
|
18142
|
-
var Patterns;
|
|
18143
|
-
(function (Patterns) {
|
|
18144
|
-
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
18145
|
-
})(Patterns || (Patterns = {}));
|
|
18146
|
-
|
|
18147
|
-
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
18148
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
18149
|
-
i0.ɵɵelementStart(1, "span", 6);
|
|
18150
|
-
i0.ɵɵtext(2, "Error:");
|
|
18151
|
-
i0.ɵɵelementEnd();
|
|
18152
|
-
i0.ɵɵtext(3);
|
|
18153
|
-
i0.ɵɵelementEnd();
|
|
18154
|
-
} if (rf & 2) {
|
|
18155
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
18156
|
-
i0.ɵɵadvance(3);
|
|
18157
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.linkedCasesService.serverLinkedApiError.message, " ");
|
|
18158
|
-
} }
|
|
18159
|
-
function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
18160
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
18161
|
-
i0.ɵɵelementStart(0, "div");
|
|
18162
|
-
i0.ɵɵelementStart(1, "h1", 1);
|
|
18163
|
-
i0.ɵɵtext(2, "There is a problem");
|
|
18164
|
-
i0.ɵɵelementEnd();
|
|
18165
|
-
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_1_p_3_Template, 4, 1, "p", 2);
|
|
18166
|
-
i0.ɵɵelementStart(4, "p", 3);
|
|
18167
|
-
i0.ɵɵelementStart(5, "a", 4);
|
|
18168
|
-
i0.ɵɵlistener("click", function BeforeYouStartComponent_div_1_Template_a_click_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.onBack(); });
|
|
18169
|
-
i0.ɵɵtext(6, "Go back to the Linked cases tab");
|
|
18170
|
-
i0.ɵɵelementEnd();
|
|
18171
|
-
i0.ɵɵelementEnd();
|
|
18172
|
-
i0.ɵɵelementEnd();
|
|
18173
|
-
} if (rf & 2) {
|
|
18174
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18175
|
-
i0.ɵɵadvance(3);
|
|
18176
|
-
i0.ɵɵproperty("ngIf", ctx_r0.linkedCasesService.serverLinkedApiError);
|
|
18177
|
-
} }
|
|
18178
|
-
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
18179
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
18180
|
-
i0.ɵɵelementStart(1, "p", 3);
|
|
18181
|
-
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
18182
|
-
i0.ɵɵelementEnd();
|
|
18183
|
-
i0.ɵɵelementStart(3, "p", 3);
|
|
18184
|
-
i0.ɵɵtext(4, "If the cases to be linked has no lead, you can start the linking journey from any of those cases.");
|
|
18185
|
-
i0.ɵɵelementEnd();
|
|
18186
|
-
i0.ɵɵelementEnd();
|
|
18187
|
-
} }
|
|
18188
|
-
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
18189
|
-
i0.ɵɵelementStart(0, "div", 12);
|
|
18190
|
-
i0.ɵɵelementStart(1, "p", 3);
|
|
18191
|
-
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
18192
|
-
i0.ɵɵelementEnd();
|
|
18193
|
-
i0.ɵɵelementEnd();
|
|
18194
|
-
} }
|
|
18195
|
-
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
18196
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
18197
|
-
i0.ɵɵelementStart(0, "div");
|
|
18198
|
-
i0.ɵɵelementStart(1, "h1", 1);
|
|
18199
|
-
i0.ɵɵtext(2, "Before you start");
|
|
18200
|
-
i0.ɵɵelementEnd();
|
|
18201
|
-
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7);
|
|
18202
|
-
i0.ɵɵtemplate(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
18203
|
-
i0.ɵɵelementStart(5, "div", 9);
|
|
18204
|
-
i0.ɵɵelementStart(6, "button", 10);
|
|
18205
|
-
i0.ɵɵlistener("click", function BeforeYouStartComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
18206
|
-
i0.ɵɵtext(7, "Next");
|
|
18207
|
-
i0.ɵɵelementEnd();
|
|
18208
|
-
i0.ɵɵelementEnd();
|
|
18209
|
-
i0.ɵɵelementEnd();
|
|
18210
|
-
} if (rf & 2) {
|
|
18211
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
18212
|
-
i0.ɵɵadvance(3);
|
|
18213
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isLinkCasesJourney);
|
|
18214
|
-
i0.ɵɵadvance(1);
|
|
18215
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
18216
|
-
} }
|
|
18217
|
-
class BeforeYouStartComponent {
|
|
18218
|
-
constructor(router, linkedCasesService) {
|
|
18219
|
-
this.router = router;
|
|
18220
|
-
this.linkedCasesService = linkedCasesService;
|
|
18221
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18222
|
-
this.isLinkCasesJourney = false;
|
|
18223
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
18224
|
-
// re-initiate the state based on the casefield value
|
|
18225
|
-
const linkedCaseRefereneIds = this.linkedCasesService.caseFieldValue.filter(item => item).map(item => item.id);
|
|
18226
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.linkedCases.filter(item => linkedCaseRefereneIds.indexOf(item.caseReference) !== -1);
|
|
18227
|
-
this.linkedCasesService.initialCaseLinks = this.linkedCasesService.linkedCases;
|
|
18228
|
-
}
|
|
18229
|
-
onNext() {
|
|
18230
|
-
this.linkedCasesStateEmitter.emit({
|
|
18231
|
-
currentLinkedCasesPage: LinkedCasesPages.BEFORE_YOU_START,
|
|
18232
|
-
errorMessages: this.errorMessages,
|
|
18233
|
-
navigateToNextPage: true
|
|
18234
|
-
});
|
|
18235
|
-
}
|
|
18236
|
-
onBack() {
|
|
18237
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
18238
|
-
window.location.hash = 'Linked cases';
|
|
18239
|
-
});
|
|
18240
|
-
}
|
|
18241
|
-
}
|
|
18242
|
-
BeforeYouStartComponent.ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
18243
|
-
BeforeYouStartComponent.ɵcmp = 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) {
|
|
18244
|
-
i0.ɵɵelementStart(0, "div");
|
|
18245
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0);
|
|
18246
|
-
i0.ɵɵtemplate(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
18247
|
-
i0.ɵɵelementEnd();
|
|
18248
|
-
} if (rf & 2) {
|
|
18249
|
-
i0.ɵɵadvance(1);
|
|
18250
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
18251
|
-
i0.ɵɵadvance(1);
|
|
18252
|
-
i0.ɵɵproperty("ngIf", !ctx.linkedCasesService || !ctx.linkedCasesService.serverLinkedApiError);
|
|
18253
|
-
} }, directives: [i1.NgIf], encapsulation: 2 });
|
|
18254
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
18255
|
-
type: Component,
|
|
18256
|
-
args: [{
|
|
18257
|
-
selector: 'ccd-linked-cases-before-you-start',
|
|
18258
|
-
templateUrl: './before-you-start.component.html'
|
|
18259
|
-
}]
|
|
18260
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
18261
|
-
type: Output
|
|
18262
|
-
}] }); })();
|
|
18263
|
-
|
|
18264
|
-
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
18265
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
18266
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18267
|
-
i0.ɵɵelementStart(1, "td", 14);
|
|
18268
|
-
i0.ɵɵtext(2);
|
|
18269
|
-
i0.ɵɵelement(3, "br");
|
|
18270
|
-
i0.ɵɵtext(4);
|
|
18271
|
-
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
18272
|
-
i0.ɵɵelementEnd();
|
|
18273
|
-
i0.ɵɵelementStart(6, "td", 14);
|
|
18274
|
-
i0.ɵɵelementStart(7, "a", 15);
|
|
18275
|
-
i0.ɵɵlistener("click", function CheckYourAnswersComponent_table_4_tr_9_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.onChange(); });
|
|
18276
|
-
i0.ɵɵtext(8, "Change");
|
|
18277
|
-
i0.ɵɵelementEnd();
|
|
18278
|
-
i0.ɵɵelementEnd();
|
|
18279
|
-
i0.ɵɵelementEnd();
|
|
18280
|
-
} if (rf & 2) {
|
|
18281
|
-
const case_r6 = ctx.$implicit;
|
|
18282
|
-
i0.ɵɵadvance(2);
|
|
18283
|
-
i0.ɵɵtextInterpolate1(" ", case_r6.caseName, " ");
|
|
18284
|
-
i0.ɵɵadvance(2);
|
|
18285
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 2, case_r6.caseReference), " ");
|
|
18286
|
-
} }
|
|
18287
|
-
function CheckYourAnswersComponent_table_4_tr_10_Template(rf, ctx) { if (rf & 1) {
|
|
18288
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18289
|
-
i0.ɵɵelementStart(1, "td", 16);
|
|
18290
|
-
i0.ɵɵtext(2, " None ");
|
|
18291
|
-
i0.ɵɵelementEnd();
|
|
18292
|
-
i0.ɵɵelementEnd();
|
|
18293
|
-
} }
|
|
18294
|
-
function CheckYourAnswersComponent_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
18295
|
-
i0.ɵɵelementStart(0, "table", 13);
|
|
18296
|
-
i0.ɵɵelementStart(1, "caption", 5);
|
|
18297
|
-
i0.ɵɵtext(2, "Cases to unlink");
|
|
18298
|
-
i0.ɵɵelementEnd();
|
|
18299
|
-
i0.ɵɵelementStart(3, "thead", 6);
|
|
18300
|
-
i0.ɵɵelementStart(4, "tr", 7);
|
|
18301
|
-
i0.ɵɵelementStart(5, "th", 8);
|
|
18302
|
-
i0.ɵɵtext(6, "Case name and number");
|
|
18303
|
-
i0.ɵɵelementEnd();
|
|
18304
|
-
i0.ɵɵelement(7, "th", 8);
|
|
18305
|
-
i0.ɵɵelementEnd();
|
|
18306
|
-
i0.ɵɵelementEnd();
|
|
18307
|
-
i0.ɵɵelementStart(8, "tbody", 10);
|
|
18308
|
-
i0.ɵɵtemplate(9, CheckYourAnswersComponent_table_4_tr_9_Template, 9, 4, "tr", 11);
|
|
18309
|
-
i0.ɵɵtemplate(10, CheckYourAnswersComponent_table_4_tr_10_Template, 3, 0, "tr", 12);
|
|
18310
|
-
i0.ɵɵelementEnd();
|
|
18311
|
-
i0.ɵɵelementEnd();
|
|
18312
|
-
} if (rf & 2) {
|
|
18313
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18314
|
-
i0.ɵɵadvance(9);
|
|
18315
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.casesToUnlink);
|
|
18316
|
-
i0.ɵɵadvance(1);
|
|
18317
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.casesToUnlink.length);
|
|
18318
|
-
} }
|
|
18319
|
-
function CheckYourAnswersComponent_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
18320
|
-
i0.ɵɵelement(0, "th", 8);
|
|
18321
|
-
} }
|
|
18322
|
-
function CheckYourAnswersComponent_tr_17_span_8_br_3_Template(rf, ctx) { if (rf & 1) {
|
|
18323
|
-
i0.ɵɵelement(0, "br");
|
|
18324
|
-
} }
|
|
18325
|
-
function CheckYourAnswersComponent_tr_17_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
18326
|
-
i0.ɵɵelementStart(0, "span");
|
|
18327
|
-
i0.ɵɵtext(1);
|
|
18328
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
18329
|
-
i0.ɵɵtemplate(3, CheckYourAnswersComponent_tr_17_span_8_br_3_Template, 1, 0, "br", 19);
|
|
18330
|
-
i0.ɵɵelementEnd();
|
|
18331
|
-
} if (rf & 2) {
|
|
18332
|
-
const reason_r12 = ctx.$implicit;
|
|
18333
|
-
const isLast_r13 = ctx.last;
|
|
18334
|
-
i0.ɵɵadvance(1);
|
|
18335
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, reason_r12.reasonCode), "");
|
|
18336
|
-
i0.ɵɵadvance(2);
|
|
18337
|
-
i0.ɵɵproperty("ngIf", !isLast_r13);
|
|
18338
|
-
} }
|
|
18339
|
-
function CheckYourAnswersComponent_tr_17_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
18340
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
18341
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
18342
|
-
i0.ɵɵelementStart(1, "a", 15);
|
|
18343
|
-
i0.ɵɵlistener("click", function CheckYourAnswersComponent_tr_17_td_10_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r16); const ctx_r15 = i0.ɵɵnextContext(2); return ctx_r15.onChange(); });
|
|
18344
|
-
i0.ɵɵtext(2, "Change");
|
|
18345
|
-
i0.ɵɵelementEnd();
|
|
18346
|
-
i0.ɵɵelementEnd();
|
|
18347
|
-
} }
|
|
18348
|
-
function CheckYourAnswersComponent_tr_17_Template(rf, ctx) { if (rf & 1) {
|
|
18349
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18350
|
-
i0.ɵɵelementStart(1, "td", 14);
|
|
18351
|
-
i0.ɵɵelementStart(2, "span");
|
|
18352
|
-
i0.ɵɵtext(3);
|
|
18353
|
-
i0.ɵɵelement(4, "br");
|
|
18354
|
-
i0.ɵɵtext(5);
|
|
18355
|
-
i0.ɵɵpipe(6, "ccdCaseReference");
|
|
18356
|
-
i0.ɵɵelementEnd();
|
|
18357
|
-
i0.ɵɵelementEnd();
|
|
18358
|
-
i0.ɵɵelementStart(7, "td", 14);
|
|
18359
|
-
i0.ɵɵtemplate(8, CheckYourAnswersComponent_tr_17_span_8_Template, 4, 4, "span", 17);
|
|
18360
|
-
i0.ɵɵelementEnd();
|
|
18361
|
-
i0.ɵɵelement(9, "td", 14);
|
|
18362
|
-
i0.ɵɵtemplate(10, CheckYourAnswersComponent_tr_17_td_10_Template, 3, 0, "td", 18);
|
|
18363
|
-
i0.ɵɵelementEnd();
|
|
18364
|
-
} if (rf & 2) {
|
|
18365
|
-
const case_r9 = ctx.$implicit;
|
|
18366
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
18367
|
-
i0.ɵɵadvance(3);
|
|
18368
|
-
i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
18369
|
-
i0.ɵɵadvance(2);
|
|
18370
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, case_r9.caseReference), " ");
|
|
18371
|
-
i0.ɵɵadvance(3);
|
|
18372
|
-
i0.ɵɵproperty("ngForOf", case_r9.reasons);
|
|
18373
|
-
i0.ɵɵadvance(2);
|
|
18374
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isLinkCasesJourney);
|
|
18375
|
-
} }
|
|
18376
|
-
function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
18377
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18378
|
-
i0.ɵɵelementStart(1, "td", 20);
|
|
18379
|
-
i0.ɵɵtext(2, " None ");
|
|
18380
|
-
i0.ɵɵelementEnd();
|
|
18381
|
-
i0.ɵɵelementEnd();
|
|
18382
|
-
} }
|
|
18383
|
-
class CheckYourAnswersComponent {
|
|
18384
|
-
constructor(linkedCasesService) {
|
|
18385
|
-
this.linkedCasesService = linkedCasesService;
|
|
18386
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18387
|
-
}
|
|
18388
|
-
ngOnInit() {
|
|
18389
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
18390
|
-
this.linkedCasesTableCaption = this.linkedCasesService.isLinkedCasesEventTrigger ? 'Proposed case links' : 'Linked cases';
|
|
18391
|
-
this.linkedCases = this.linkedCasesService.linkedCases.filter(linkedCase => !linkedCase.unlink);
|
|
18392
|
-
this.casesToUnlink = this.linkedCasesService.linkedCases.filter(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
18393
|
-
}
|
|
18394
|
-
onChange() {
|
|
18395
|
-
this.linkedCasesService.editMode = true;
|
|
18396
|
-
this.linkedCasesStateEmitter.emit({
|
|
18397
|
-
currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
18398
|
-
navigateToPreviousPage: true,
|
|
18399
|
-
navigateToNextPage: true
|
|
18400
|
-
});
|
|
18401
|
-
}
|
|
18402
|
-
}
|
|
18403
|
-
CheckYourAnswersComponent.ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
18404
|
-
CheckYourAnswersComponent.ɵcmp = 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) {
|
|
18405
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
18406
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
18407
|
-
i0.ɵɵelementStart(2, "h1", 2);
|
|
18408
|
-
i0.ɵɵtext(3, "Check your answers");
|
|
18409
|
-
i0.ɵɵelementEnd();
|
|
18410
|
-
i0.ɵɵtemplate(4, CheckYourAnswersComponent_table_4_Template, 11, 2, "table", 3);
|
|
18411
|
-
i0.ɵɵelementStart(5, "table", 4);
|
|
18412
|
-
i0.ɵɵelementStart(6, "caption", 5);
|
|
18413
|
-
i0.ɵɵtext(7);
|
|
18414
|
-
i0.ɵɵelementEnd();
|
|
18415
|
-
i0.ɵɵelementStart(8, "thead", 6);
|
|
18416
|
-
i0.ɵɵelementStart(9, "tr", 7);
|
|
18417
|
-
i0.ɵɵelementStart(10, "th", 8);
|
|
18418
|
-
i0.ɵɵtext(11, "Case name and number");
|
|
18419
|
-
i0.ɵɵelementEnd();
|
|
18420
|
-
i0.ɵɵelementStart(12, "th", 8);
|
|
18421
|
-
i0.ɵɵtext(13, "Reasons for case link");
|
|
18422
|
-
i0.ɵɵelementEnd();
|
|
18423
|
-
i0.ɵɵelement(14, "th", 8);
|
|
18424
|
-
i0.ɵɵtemplate(15, CheckYourAnswersComponent_th_15_Template, 1, 0, "th", 9);
|
|
18425
|
-
i0.ɵɵelementEnd();
|
|
18426
|
-
i0.ɵɵelementEnd();
|
|
18427
|
-
i0.ɵɵelementStart(16, "tbody", 10);
|
|
18428
|
-
i0.ɵɵtemplate(17, CheckYourAnswersComponent_tr_17_Template, 11, 6, "tr", 11);
|
|
18429
|
-
i0.ɵɵtemplate(18, CheckYourAnswersComponent_tr_18_Template, 3, 0, "tr", 12);
|
|
18430
|
-
i0.ɵɵelementEnd();
|
|
18431
|
-
i0.ɵɵelementEnd();
|
|
18432
|
-
i0.ɵɵelementEnd();
|
|
18433
|
-
i0.ɵɵelementEnd();
|
|
18434
|
-
} if (rf & 2) {
|
|
18435
|
-
i0.ɵɵadvance(4);
|
|
18436
|
-
i0.ɵɵproperty("ngIf", !ctx.isLinkCasesJourney);
|
|
18437
|
-
i0.ɵɵadvance(3);
|
|
18438
|
-
i0.ɵɵtextInterpolate(ctx.linkedCasesTableCaption);
|
|
18439
|
-
i0.ɵɵadvance(8);
|
|
18440
|
-
i0.ɵɵproperty("ngIf", ctx.isLinkCasesJourney);
|
|
18441
|
-
i0.ɵɵadvance(2);
|
|
18442
|
-
i0.ɵɵproperty("ngForOf", ctx.linkedCases);
|
|
18443
|
-
i0.ɵɵadvance(1);
|
|
18444
|
-
i0.ɵɵproperty("ngIf", !ctx.linkedCases.length);
|
|
18445
|
-
} }, styles: [".float-right[_ngcontent-%COMP%]{float:right}"] });
|
|
18446
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
18447
|
-
type: Component,
|
|
18448
|
-
args: [{
|
|
18449
|
-
selector: 'ccd-linked-cases-check-your-answers',
|
|
18450
|
-
templateUrl: './check-your-answers.component.html',
|
|
18451
|
-
styleUrls: ['./check-your-answers.component.scss']
|
|
18452
|
-
}]
|
|
18453
|
-
}], function () { return [{ type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
18454
|
-
type: Output
|
|
18455
|
-
}] }); })();
|
|
18456
|
-
|
|
18457
|
-
class ValidatorsUtils {
|
|
18458
|
-
numberLengthValidator(inputLength) {
|
|
18459
|
-
return (control) => {
|
|
18460
|
-
return control.value.length !== inputLength ? { isValid: false } : null;
|
|
18461
|
-
};
|
|
18462
|
-
}
|
|
18463
|
-
formArraySelectedValidator() {
|
|
18464
|
-
return (control) => {
|
|
18465
|
-
return control.value.every((option) => !option.selected) ? { isValid: false } : null;
|
|
18466
|
-
};
|
|
18467
|
-
}
|
|
18468
|
-
regexPattern(regexPattern) {
|
|
18469
|
-
return (control) => {
|
|
18470
|
-
const regex = new RegExp(regexPattern);
|
|
18471
|
-
return regex.test(control.value) ? null : { isValid: false };
|
|
18472
|
-
};
|
|
18473
|
-
}
|
|
18474
|
-
}
|
|
18475
|
-
ValidatorsUtils.ɵfac = function ValidatorsUtils_Factory(t) { return new (t || ValidatorsUtils)(); };
|
|
18476
|
-
ValidatorsUtils.ɵprov = i0.ɵɵdefineInjectable({ token: ValidatorsUtils, factory: ValidatorsUtils.ɵfac, providedIn: 'root' });
|
|
18477
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidatorsUtils, [{
|
|
18478
|
-
type: Injectable,
|
|
18479
|
-
args: [{ providedIn: 'root' }]
|
|
18480
|
-
}], null, null); })();
|
|
18481
|
-
|
|
18482
|
-
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
18483
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18484
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18485
|
-
i0.ɵɵtext(2, "Error:");
|
|
18486
|
-
i0.ɵɵelementEnd();
|
|
18487
|
-
i0.ɵɵtext(3);
|
|
18488
|
-
i0.ɵɵelementEnd();
|
|
18489
|
-
} if (rf & 2) {
|
|
18490
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
18491
|
-
i0.ɵɵadvance(3);
|
|
18492
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r4.caseNumberError, " ");
|
|
18493
|
-
} }
|
|
18494
|
-
function LinkCasesComponent_div_8_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
18495
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18496
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18497
|
-
i0.ɵɵtext(2, "Error:");
|
|
18498
|
-
i0.ɵɵelementEnd();
|
|
18499
|
-
i0.ɵɵtext(3);
|
|
18500
|
-
i0.ɵɵelementEnd();
|
|
18501
|
-
} if (rf & 2) {
|
|
18502
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
18503
|
-
i0.ɵɵadvance(3);
|
|
18504
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r5.caseReasonError, " ");
|
|
18505
|
-
} }
|
|
18506
|
-
function LinkCasesComponent_div_8_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
18507
|
-
i0.ɵɵelementStart(0, "div", 30);
|
|
18508
|
-
i0.ɵɵelement(1, "input", 31);
|
|
18509
|
-
i0.ɵɵelementStart(2, "label", 32);
|
|
18510
|
-
i0.ɵɵtext(3);
|
|
18511
|
-
i0.ɵɵelementEnd();
|
|
18512
|
-
i0.ɵɵelementEnd();
|
|
18513
|
-
} if (rf & 2) {
|
|
18514
|
-
const reason_r8 = ctx.$implicit;
|
|
18515
|
-
const pos_r9 = ctx.index;
|
|
18516
|
-
i0.ɵɵproperty("formGroupName", pos_r9);
|
|
18517
|
-
i0.ɵɵadvance(1);
|
|
18518
|
-
i0.ɵɵpropertyInterpolate("id", reason_r8.key);
|
|
18519
|
-
i0.ɵɵproperty("value", reason_r8.value_en);
|
|
18520
|
-
i0.ɵɵadvance(1);
|
|
18521
|
-
i0.ɵɵpropertyInterpolate("for", reason_r8.key);
|
|
18522
|
-
i0.ɵɵadvance(1);
|
|
18523
|
-
i0.ɵɵtextInterpolate(reason_r8.value_en);
|
|
18524
|
-
} }
|
|
18525
|
-
function LinkCasesComponent_div_8_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
18526
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18527
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18528
|
-
i0.ɵɵtext(2, "Error:");
|
|
18529
|
-
i0.ɵɵelementEnd();
|
|
18530
|
-
i0.ɵɵtext(3);
|
|
18531
|
-
i0.ɵɵelementEnd();
|
|
18532
|
-
} if (rf & 2) {
|
|
18533
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
18534
|
-
i0.ɵɵadvance(3);
|
|
18535
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r7.caseSelectionError, " ");
|
|
18536
|
-
} }
|
|
18537
|
-
const _c0$m = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
18538
|
-
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
18539
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
18540
|
-
i0.ɵɵelementStart(0, "div", 21);
|
|
18541
|
-
i0.ɵɵelementStart(1, "h3", 22);
|
|
18542
|
-
i0.ɵɵtext(2, "Enter case reference");
|
|
18543
|
-
i0.ɵɵelementEnd();
|
|
18544
|
-
i0.ɵɵelementStart(3, "div", 5);
|
|
18545
|
-
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
18546
|
-
i0.ɵɵelement(5, "input", 23);
|
|
18547
|
-
i0.ɵɵelementEnd();
|
|
18548
|
-
i0.ɵɵelementStart(6, "h3", 22);
|
|
18549
|
-
i0.ɵɵtext(7, "Why should these cases be linked?");
|
|
18550
|
-
i0.ɵɵelementEnd();
|
|
18551
|
-
i0.ɵɵelementStart(8, "div", 24);
|
|
18552
|
-
i0.ɵɵtext(9, " Select all that apply. ");
|
|
18553
|
-
i0.ɵɵelementEnd();
|
|
18554
|
-
i0.ɵɵtemplate(10, LinkCasesComponent_div_8_span_10_Template, 4, 1, "span", 6);
|
|
18555
|
-
i0.ɵɵelementStart(11, "div", 25);
|
|
18556
|
-
i0.ɵɵtemplate(12, LinkCasesComponent_div_8_div_12_Template, 4, 5, "div", 26);
|
|
18557
|
-
i0.ɵɵelementEnd();
|
|
18558
|
-
i0.ɵɵelement(13, "br");
|
|
18559
|
-
i0.ɵɵelement(14, "br");
|
|
18560
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_div_8_span_15_Template, 4, 1, "span", 6);
|
|
18561
|
-
i0.ɵɵelementStart(16, "button", 27);
|
|
18562
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.submitCaseInfo(); });
|
|
18563
|
-
i0.ɵɵtext(17, "Propose case link");
|
|
18564
|
-
i0.ɵɵelementEnd();
|
|
18565
|
-
i0.ɵɵelementEnd();
|
|
18566
|
-
} if (rf & 2) {
|
|
18567
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18568
|
-
i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
18569
|
-
i0.ɵɵadvance(3);
|
|
18570
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$m, !!ctx_r0.caseNumberError));
|
|
18571
|
-
i0.ɵɵadvance(1);
|
|
18572
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
18573
|
-
i0.ɵɵadvance(6);
|
|
18574
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
18575
|
-
i0.ɵɵadvance(1);
|
|
18576
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
18577
|
-
i0.ɵɵadvance(1);
|
|
18578
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
18579
|
-
i0.ɵɵadvance(3);
|
|
18580
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
18581
|
-
} }
|
|
18582
|
-
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
18583
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18584
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18585
|
-
i0.ɵɵtext(2, "Error:");
|
|
18586
|
-
i0.ɵɵelementEnd();
|
|
18587
|
-
i0.ɵɵtext(3);
|
|
18588
|
-
i0.ɵɵelementEnd();
|
|
18589
|
-
} if (rf & 2) {
|
|
18590
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
18591
|
-
i0.ɵɵadvance(3);
|
|
18592
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.noSelectedCaseError, " ");
|
|
18593
|
-
} }
|
|
18594
|
-
function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
18595
|
-
i0.ɵɵelementStart(0, "span");
|
|
18596
|
-
i0.ɵɵtext(1);
|
|
18597
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
18598
|
-
i0.ɵɵelement(3, "br");
|
|
18599
|
-
i0.ɵɵelementEnd();
|
|
18600
|
-
} if (rf & 2) {
|
|
18601
|
-
const reason_r15 = ctx.$implicit;
|
|
18602
|
-
i0.ɵɵadvance(1);
|
|
18603
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r15.reasonCode));
|
|
18604
|
-
} }
|
|
18605
|
-
const _c1$6 = function (a0) { return { "table-group-error": a0 }; };
|
|
18606
|
-
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
18607
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
18608
|
-
i0.ɵɵelementStart(0, "tr", 10);
|
|
18609
|
-
i0.ɵɵelementStart(1, "td", 33);
|
|
18610
|
-
i0.ɵɵelement(2, "div", 34);
|
|
18611
|
-
i0.ɵɵelementStart(3, "span");
|
|
18612
|
-
i0.ɵɵtext(4);
|
|
18613
|
-
i0.ɵɵelement(5, "br");
|
|
18614
|
-
i0.ɵɵtext(6);
|
|
18615
|
-
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
18616
|
-
i0.ɵɵelementEnd();
|
|
18617
|
-
i0.ɵɵelementEnd();
|
|
18618
|
-
i0.ɵɵelementStart(8, "td", 35);
|
|
18619
|
-
i0.ɵɵtext(9);
|
|
18620
|
-
i0.ɵɵelementEnd();
|
|
18621
|
-
i0.ɵɵelementStart(10, "td", 33);
|
|
18622
|
-
i0.ɵɵtext(11);
|
|
18623
|
-
i0.ɵɵelementEnd();
|
|
18624
|
-
i0.ɵɵelementStart(12, "td", 35);
|
|
18625
|
-
i0.ɵɵtext(13);
|
|
18626
|
-
i0.ɵɵelementEnd();
|
|
18627
|
-
i0.ɵɵelementStart(14, "td", 33);
|
|
18628
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 36);
|
|
18629
|
-
i0.ɵɵelementEnd();
|
|
18630
|
-
i0.ɵɵelementStart(16, "td", 33);
|
|
18631
|
-
i0.ɵɵelementStart(17, "a", 37);
|
|
18632
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { i0.ɵɵrestoreView(_r17); const pos_r13 = ctx.index; const case_r12 = ctx.$implicit; const ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.onSelectedLinkedCaseRemove(pos_r13, case_r12.caseReference); });
|
|
18633
|
-
i0.ɵɵtext(18, "Remove");
|
|
18634
|
-
i0.ɵɵelementEnd();
|
|
18635
|
-
i0.ɵɵelementEnd();
|
|
18636
|
-
i0.ɵɵelementEnd();
|
|
18637
|
-
} if (rf & 2) {
|
|
18638
|
-
const case_r12 = ctx.$implicit;
|
|
18639
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
18640
|
-
i0.ɵɵadvance(2);
|
|
18641
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$6, ctx_r2.caseSelectionError && case_r12.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
18642
|
-
i0.ɵɵadvance(2);
|
|
18643
|
-
i0.ɵɵtextInterpolate1("", case_r12.caseName, " ");
|
|
18644
|
-
i0.ɵɵadvance(2);
|
|
18645
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 10, case_r12.caseReference), "");
|
|
18646
|
-
i0.ɵɵadvance(2);
|
|
18647
|
-
i0.ɵɵproperty("title", case_r12.caseTypeDescription);
|
|
18648
|
-
i0.ɵɵadvance(1);
|
|
18649
|
-
i0.ɵɵtextInterpolate(case_r12.caseType);
|
|
18650
|
-
i0.ɵɵadvance(2);
|
|
18651
|
-
i0.ɵɵtextInterpolate(case_r12.caseService);
|
|
18652
|
-
i0.ɵɵadvance(1);
|
|
18653
|
-
i0.ɵɵproperty("title", case_r12.caseStateDescription);
|
|
18654
|
-
i0.ɵɵadvance(1);
|
|
18655
|
-
i0.ɵɵtextInterpolate(case_r12.caseState);
|
|
18656
|
-
i0.ɵɵadvance(2);
|
|
18657
|
-
i0.ɵɵproperty("ngForOf", case_r12.reasons);
|
|
18658
|
-
i0.ɵɵadvance(2);
|
|
18659
|
-
i0.ɵɵattribute("id", case_r12.caseReference);
|
|
18660
|
-
} }
|
|
18661
|
-
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
18662
|
-
i0.ɵɵelementStart(0, "tr", 10);
|
|
18663
|
-
i0.ɵɵelementStart(1, "td", 38);
|
|
18664
|
-
i0.ɵɵtext(2, " None ");
|
|
18665
|
-
i0.ɵɵelementEnd();
|
|
18666
|
-
i0.ɵɵelementEnd();
|
|
18667
|
-
} }
|
|
18668
|
-
class LinkCasesComponent {
|
|
18669
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
18670
|
-
this.casesService = casesService;
|
|
18671
|
-
this.fb = fb;
|
|
18672
|
-
this.validatorsUtils = validatorsUtils;
|
|
18673
|
-
this.linkedCasesService = linkedCasesService;
|
|
18674
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18675
|
-
this.errorMessages = [];
|
|
18676
|
-
this.selectedCases = [];
|
|
18677
|
-
this.linkCaseReasons = [];
|
|
18678
|
-
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
18679
|
-
}
|
|
18680
|
-
ngOnInit() {
|
|
18681
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
18682
|
-
this.caseName = this.linkedCasesService.caseName;
|
|
18683
|
-
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
18684
|
-
this.initForm();
|
|
18685
|
-
if (this.linkedCasesService.editMode) {
|
|
18686
|
-
// this may have includes the currently added one but yet to be submitted.
|
|
18687
|
-
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
18688
|
-
}
|
|
18689
|
-
else if (this.linkedCasesService.initialCaseLinks.length !== this.linkedCasesService.caseFieldValue.length) {
|
|
18690
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.initialCaseLinks;
|
|
18691
|
-
}
|
|
18692
|
-
}
|
|
18693
|
-
initForm() {
|
|
18694
|
-
this.linkCaseForm = this.fb.group({
|
|
18695
|
-
caseNumber: ['', [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
|
|
18696
|
-
reasonType: this.getReasonTypeFormArray,
|
|
18697
|
-
});
|
|
18698
|
-
}
|
|
18699
|
-
get getReasonTypeFormArray() {
|
|
18700
|
-
return this.fb.array(this.linkCaseReasons.map((val) => this.fb.group({
|
|
18701
|
-
key: [val.key],
|
|
18702
|
-
value_en: [val.value_en],
|
|
18703
|
-
value_cy: [val.value_cy],
|
|
18704
|
-
hint_text_en: [val.hint_text_en],
|
|
18705
|
-
hint_text_cy: [val.hint_text_cy],
|
|
18706
|
-
lov_order: [val.lov_order],
|
|
18707
|
-
parent_key: [val.parent_key],
|
|
18708
|
-
selected: [!!val.selected],
|
|
18709
|
-
})), this.validatorsUtils.formArraySelectedValidator());
|
|
18710
|
-
}
|
|
18711
|
-
submitCaseInfo() {
|
|
18712
|
-
this.errorMessages = [];
|
|
18713
|
-
this.caseReasonError = null;
|
|
18714
|
-
this.caseNumberError = null;
|
|
18715
|
-
this.caseSelectionError = null;
|
|
18716
|
-
this.noSelectedCaseError = null;
|
|
18717
|
-
if (this.linkCaseForm.valid &&
|
|
18718
|
-
!this.isCaseSelected(this.selectedCases) &&
|
|
18719
|
-
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
18720
|
-
!this.isCaseSelectedSameAsCurrentCase()) {
|
|
18721
|
-
this.getCaseInfo();
|
|
18722
|
-
}
|
|
18723
|
-
else {
|
|
18724
|
-
this.showErrorInfo();
|
|
18725
|
-
}
|
|
18726
|
-
}
|
|
18727
|
-
isCaseSelected(linkedCases) {
|
|
18728
|
-
if (linkedCases.length === 0) {
|
|
18729
|
-
return false;
|
|
18730
|
-
}
|
|
18731
|
-
const caseNumber = this.linkCaseForm.value.caseNumber;
|
|
18732
|
-
return !!linkedCases.find((caseLink) => caseLink.caseReference.split('-').join('') === caseNumber.split('-').join(''));
|
|
18733
|
-
}
|
|
18734
|
-
isCaseSelectedSameAsCurrentCase() {
|
|
18735
|
-
return this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('');
|
|
18736
|
-
}
|
|
18737
|
-
showErrorInfo() {
|
|
18738
|
-
if (this.linkCaseForm.controls.caseNumber.invalid) {
|
|
18739
|
-
this.caseNumberError = LinkedCasesErrorMessages.CaseNumberError;
|
|
18740
|
-
this.errorMessages.push({
|
|
18741
|
-
title: 'dummy-case-number',
|
|
18742
|
-
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
18743
|
-
fieldId: 'caseNumber',
|
|
18744
|
-
});
|
|
18745
|
-
}
|
|
18746
|
-
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
18747
|
-
this.caseReasonError = LinkedCasesErrorMessages.ReasonSelectionError;
|
|
18748
|
-
this.errorMessages.push({
|
|
18749
|
-
title: 'dummy-case-reason',
|
|
18750
|
-
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
18751
|
-
fieldId: 'caseReason',
|
|
18752
|
-
});
|
|
18753
|
-
}
|
|
18754
|
-
if (this.isCaseSelected(this.selectedCases)) {
|
|
18755
|
-
this.caseSelectionError = LinkedCasesErrorMessages.CaseProposedError;
|
|
18756
|
-
this.errorMessages.push({
|
|
18757
|
-
title: 'dummy-case-number',
|
|
18758
|
-
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
18759
|
-
fieldId: 'caseNumber',
|
|
18760
|
-
});
|
|
18761
|
-
}
|
|
18762
|
-
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
18763
|
-
this.caseSelectionError = LinkedCasesErrorMessages.CasesLinkedError;
|
|
18764
|
-
this.errorMessages.push({
|
|
18765
|
-
title: 'dummy-case-number',
|
|
18766
|
-
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
18767
|
-
fieldId: 'caseNumber',
|
|
18768
|
-
});
|
|
18769
|
-
}
|
|
18770
|
-
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
18771
|
-
this.errorMessages.push({
|
|
18772
|
-
title: 'dummy-case-number',
|
|
18773
|
-
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
18774
|
-
fieldId: 'caseNumber',
|
|
18775
|
-
});
|
|
18776
|
-
}
|
|
18777
|
-
window.scrollTo(0, 0);
|
|
18778
|
-
this.emitLinkedCasesState(false);
|
|
18779
|
-
}
|
|
18780
|
-
getCaseInfo() {
|
|
18781
|
-
const caseNumberData = this.linkCaseForm.value.caseNumber.replace(/[- ]/g, '');
|
|
18782
|
-
this.casesService
|
|
18783
|
-
.getCaseViewV2(caseNumberData)
|
|
18784
|
-
.subscribe((caseView) => {
|
|
18785
|
-
this.linkedCasesService.caseDetails = caseView;
|
|
18786
|
-
const caseLink = {
|
|
18787
|
-
caseReference: caseView.case_id,
|
|
18788
|
-
reasons: this.getSelectedCaseReasons(),
|
|
18789
|
-
createdDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
18790
|
-
caseType: caseView.case_type.name || '',
|
|
18791
|
-
caseTypeDescription: caseView.case_type.description || '',
|
|
18792
|
-
caseState: caseView.state.name || '',
|
|
18793
|
-
caseStateDescription: caseView.state.description || '',
|
|
18794
|
-
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
18795
|
-
caseName: this.linkedCasesService.getCaseName(caseView),
|
|
18796
|
-
};
|
|
18797
|
-
const ccdApiCaseLinkData = {
|
|
18798
|
-
CaseReference: caseView.case_id,
|
|
18799
|
-
CaseType: caseView.case_type.id,
|
|
18800
|
-
CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
18801
|
-
ReasonForLink: this.getSelectedCCDTypeCaseReason()
|
|
18802
|
-
};
|
|
18803
|
-
if (!this.linkedCasesService.caseFieldValue) {
|
|
18804
|
-
this.linkedCasesService.caseFieldValue = [];
|
|
18805
|
-
}
|
|
18806
|
-
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
18807
|
-
this.selectedCases.push(caseLink);
|
|
18808
|
-
this.initForm();
|
|
18809
|
-
this.emitLinkedCasesState(false);
|
|
18810
|
-
}, (error) => {
|
|
18811
|
-
this.caseNumberError = LinkedCasesErrorMessages.CaseCheckAgainError;
|
|
18812
|
-
this.errorMessages.push({
|
|
18813
|
-
title: 'dummy-case-number',
|
|
18814
|
-
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
18815
|
-
fieldId: 'caseNumber',
|
|
18816
|
-
});
|
|
18817
|
-
this.emitLinkedCasesState(false);
|
|
18818
|
-
window.scrollTo(0, 0);
|
|
18819
|
-
return throwError(error);
|
|
18820
|
-
});
|
|
18821
|
-
}
|
|
18822
|
-
// Return linked cases state and error messages to the parent
|
|
18823
|
-
emitLinkedCasesState(isNavigateToNextPage) {
|
|
18824
|
-
this.linkedCasesStateEmitter.emit({
|
|
18825
|
-
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
18826
|
-
errorMessages: this.errorMessages,
|
|
18827
|
-
navigateToNextPage: isNavigateToNextPage,
|
|
18828
|
-
});
|
|
18829
|
-
}
|
|
18830
|
-
getSelectedCaseReasons() {
|
|
18831
|
-
const selectedReasons = [];
|
|
18832
|
-
this.linkCaseForm.controls.reasonType.value.forEach((selectedReason) => {
|
|
18833
|
-
if (selectedReason.selected) {
|
|
18834
|
-
selectedReasons.push({
|
|
18835
|
-
reasonCode: selectedReason.key
|
|
18836
|
-
});
|
|
18837
|
-
}
|
|
18838
|
-
});
|
|
18839
|
-
return selectedReasons;
|
|
18840
|
-
}
|
|
18841
|
-
getSelectedCCDTypeCaseReason() {
|
|
18842
|
-
const selectedReasons = [];
|
|
18843
|
-
this.linkCaseForm.controls.reasonType.value.forEach((selectedReason) => {
|
|
18844
|
-
if (selectedReason.selected) {
|
|
18845
|
-
selectedReasons.push({
|
|
18846
|
-
value: {
|
|
18847
|
-
Reason: selectedReason.key,
|
|
18848
|
-
}
|
|
18849
|
-
});
|
|
18850
|
-
}
|
|
18851
|
-
});
|
|
18852
|
-
return selectedReasons;
|
|
18853
|
-
}
|
|
18854
|
-
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
18855
|
-
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
18856
|
-
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
18857
|
-
if (updatedItems) {
|
|
18858
|
-
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
18859
|
-
}
|
|
18860
|
-
this.selectedCases.splice(pos, 1);
|
|
18861
|
-
}
|
|
18862
|
-
onNext() {
|
|
18863
|
-
this.errorMessages = [];
|
|
18864
|
-
this.caseReasonError = null;
|
|
18865
|
-
this.caseNumberError = null;
|
|
18866
|
-
this.caseSelectionError = null;
|
|
18867
|
-
this.noSelectedCaseError = null;
|
|
18868
|
-
let navigateToNextPage = true;
|
|
18869
|
-
if (this.selectedCases.length) {
|
|
18870
|
-
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
18871
|
-
}
|
|
18872
|
-
else {
|
|
18873
|
-
this.noSelectedCaseError = LinkedCasesErrorMessages.CaseSelectionError;
|
|
18874
|
-
this.errorMessages.push({
|
|
18875
|
-
title: 'dummy-case-selection',
|
|
18876
|
-
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
18877
|
-
fieldId: 'caseReason',
|
|
18878
|
-
});
|
|
18879
|
-
navigateToNextPage = false;
|
|
18880
|
-
}
|
|
18881
|
-
this.emitLinkedCasesState(navigateToNextPage);
|
|
18882
|
-
}
|
|
18883
|
-
}
|
|
18884
|
-
LinkCasesComponent.ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
18885
|
-
LinkCasesComponent.ɵcmp = 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"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes", 3, "ngClass"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["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, "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], [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) {
|
|
18886
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
18887
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
18888
|
-
i0.ɵɵelementStart(2, "div");
|
|
18889
|
-
i0.ɵɵelementStart(3, "span", 2);
|
|
18890
|
-
i0.ɵɵtext(4);
|
|
18891
|
-
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
18892
|
-
i0.ɵɵelementEnd();
|
|
18893
|
-
i0.ɵɵelementStart(6, "h1", 3);
|
|
18894
|
-
i0.ɵɵtext(7, "Select a\u00A0case you want to link to this case");
|
|
18895
|
-
i0.ɵɵelementEnd();
|
|
18896
|
-
i0.ɵɵtemplate(8, LinkCasesComponent_div_8_Template, 18, 11, "div", 4);
|
|
18897
|
-
i0.ɵɵelement(9, "hr");
|
|
18898
|
-
i0.ɵɵelement(10, "br");
|
|
18899
|
-
i0.ɵɵelement(11, "br");
|
|
18900
|
-
i0.ɵɵelementStart(12, "div", 5);
|
|
18901
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_span_13_Template, 4, 1, "span", 6);
|
|
18902
|
-
i0.ɵɵelementStart(14, "table", 7);
|
|
18903
|
-
i0.ɵɵelementStart(15, "caption", 8);
|
|
18904
|
-
i0.ɵɵtext(16, "Proposed case links ");
|
|
18905
|
-
i0.ɵɵelementEnd();
|
|
18906
|
-
i0.ɵɵelementStart(17, "thead", 9);
|
|
18907
|
-
i0.ɵɵelementStart(18, "tr", 10);
|
|
18908
|
-
i0.ɵɵelementStart(19, "th", 11);
|
|
18909
|
-
i0.ɵɵtext(20, "Case name and number");
|
|
18910
|
-
i0.ɵɵelementEnd();
|
|
18911
|
-
i0.ɵɵelementStart(21, "th", 12);
|
|
18912
|
-
i0.ɵɵtext(22, "Case type ");
|
|
18913
|
-
i0.ɵɵelementEnd();
|
|
18914
|
-
i0.ɵɵelementStart(23, "th", 13);
|
|
18915
|
-
i0.ɵɵtext(24, "Service");
|
|
18916
|
-
i0.ɵɵelementEnd();
|
|
18917
|
-
i0.ɵɵelementStart(25, "th", 13);
|
|
18918
|
-
i0.ɵɵtext(26, "State");
|
|
18919
|
-
i0.ɵɵelementEnd();
|
|
18920
|
-
i0.ɵɵelementStart(27, "th", 14);
|
|
18921
|
-
i0.ɵɵtext(28, "Reasons for case link");
|
|
18922
|
-
i0.ɵɵelementEnd();
|
|
18923
|
-
i0.ɵɵelement(29, "th", 15);
|
|
18924
|
-
i0.ɵɵelementEnd();
|
|
18925
|
-
i0.ɵɵelementEnd();
|
|
18926
|
-
i0.ɵɵelementStart(30, "tbody", 16);
|
|
18927
|
-
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17);
|
|
18928
|
-
i0.ɵɵtemplate(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
18929
|
-
i0.ɵɵelementEnd();
|
|
18930
|
-
i0.ɵɵelementEnd();
|
|
18931
|
-
i0.ɵɵelementEnd();
|
|
18932
|
-
i0.ɵɵelementStart(33, "div", 19);
|
|
18933
|
-
i0.ɵɵelementStart(34, "button", 20);
|
|
18934
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
18935
|
-
i0.ɵɵtext(35, "Next");
|
|
18936
|
-
i0.ɵɵelementEnd();
|
|
18937
|
-
i0.ɵɵelementEnd();
|
|
18938
|
-
i0.ɵɵelementEnd();
|
|
18939
|
-
i0.ɵɵelementEnd();
|
|
18940
|
-
i0.ɵɵelementEnd();
|
|
18941
|
-
} if (rf & 2) {
|
|
18942
|
-
i0.ɵɵadvance(4);
|
|
18943
|
-
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
18944
|
-
i0.ɵɵadvance(4);
|
|
18945
|
-
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
18946
|
-
i0.ɵɵadvance(4);
|
|
18947
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx.noSelectedCaseError));
|
|
18948
|
-
i0.ɵɵadvance(1);
|
|
18949
|
-
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
18950
|
-
i0.ɵɵadvance(18);
|
|
18951
|
-
i0.ɵɵproperty("ngForOf", ctx.selectedCases);
|
|
18952
|
-
i0.ɵɵadvance(1);
|
|
18953
|
-
i0.ɵɵproperty("ngIf", !ctx.selectedCases.length);
|
|
18954
|
-
} }, styles: [".no-visited-state[_ngcontent-%COMP%]{color:#1d70b8;cursor:pointer}.no-visited-state[_ngcontent-%COMP%]:hover{color:#003078}.govuk-checkboxes[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes[_ngcontent-%COMP%] .govuk-checkboxes__item[_ngcontent-%COMP%]{display:flex} .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row[_ngcontent-%COMP%]{position:relative}.govuk-table__row[_ngcontent-%COMP%] .table-group-error[_ngcontent-%COMP%]{position:absolute;height:calc(100% - 20px);margin-left:-15px}"] });
|
|
18955
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
18956
|
-
type: Component,
|
|
18957
|
-
args: [{
|
|
18958
|
-
selector: 'ccd-link-cases',
|
|
18959
|
-
styleUrls: ['./link-cases.component.scss'],
|
|
18960
|
-
templateUrl: './link-cases.component.html',
|
|
18961
|
-
}]
|
|
18962
|
-
}], function () { return [{ type: CasesService }, { type: i2.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
18963
|
-
type: Output
|
|
18964
|
-
}] }); })();
|
|
18965
|
-
|
|
18966
|
-
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
18967
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
18968
|
-
i0.ɵɵelementStart(0, "a", 2);
|
|
18969
|
-
i0.ɵɵlistener("click", function LinkedCasesFromTableComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.onClick(); });
|
|
18970
|
-
i0.ɵɵtext(1);
|
|
18971
|
-
i0.ɵɵelementEnd();
|
|
18972
|
-
} if (rf & 2) {
|
|
18973
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18974
|
-
i0.ɵɵadvance(1);
|
|
18975
|
-
i0.ɵɵtextInterpolate(ctx_r0.showHideLinkText);
|
|
18976
|
-
} }
|
|
18977
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
18978
|
-
i0.ɵɵelementStart(0, "span");
|
|
18979
|
-
i0.ɵɵtext(1);
|
|
18980
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
18981
|
-
i0.ɵɵelement(3, "br");
|
|
18982
|
-
i0.ɵɵelementEnd();
|
|
18983
|
-
} if (rf & 2) {
|
|
18984
|
-
const reason_r11 = ctx.$implicit;
|
|
18985
|
-
i0.ɵɵadvance(1);
|
|
18986
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, reason_r11.reasonCode), " ");
|
|
18987
|
-
} }
|
|
18988
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
18989
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
18990
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template, 4, 3, "span", 17);
|
|
18991
|
-
i0.ɵɵelementEnd();
|
|
18992
|
-
} if (rf & 2) {
|
|
18993
|
-
const details_r9 = ctx.$implicit;
|
|
18994
|
-
i0.ɵɵadvance(1);
|
|
18995
|
-
i0.ɵɵproperty("ngForOf", details_r9.reasons);
|
|
18996
|
-
} }
|
|
18997
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
18998
|
-
i0.ɵɵelementStart(0, "tr", 5);
|
|
18999
|
-
i0.ɵɵelementStart(1, "td", 11);
|
|
19000
|
-
i0.ɵɵelementStart(2, "p", 12);
|
|
19001
|
-
i0.ɵɵelementStart(3, "a", 13);
|
|
19002
|
-
i0.ɵɵelementStart(4, "span");
|
|
19003
|
-
i0.ɵɵtext(5);
|
|
19004
|
-
i0.ɵɵelement(6, "br");
|
|
19005
|
-
i0.ɵɵtext(7);
|
|
19006
|
-
i0.ɵɵpipe(8, "ccdCaseReference");
|
|
19007
|
-
i0.ɵɵelementEnd();
|
|
19008
|
-
i0.ɵɵelementEnd();
|
|
19009
|
-
i0.ɵɵelementEnd();
|
|
19010
|
-
i0.ɵɵelementEnd();
|
|
19011
|
-
i0.ɵɵelementStart(9, "td", 14);
|
|
19012
|
-
i0.ɵɵelementStart(10, "span", 15);
|
|
19013
|
-
i0.ɵɵtext(11);
|
|
19014
|
-
i0.ɵɵelementEnd();
|
|
19015
|
-
i0.ɵɵelementEnd();
|
|
19016
|
-
i0.ɵɵelementStart(12, "td", 14);
|
|
19017
|
-
i0.ɵɵelementStart(13, "span");
|
|
19018
|
-
i0.ɵɵtext(14);
|
|
19019
|
-
i0.ɵɵelementEnd();
|
|
19020
|
-
i0.ɵɵelementEnd();
|
|
19021
|
-
i0.ɵɵelementStart(15, "td", 14);
|
|
19022
|
-
i0.ɵɵelementStart(16, "span", 15);
|
|
19023
|
-
i0.ɵɵtext(17);
|
|
19024
|
-
i0.ɵɵelementEnd();
|
|
19025
|
-
i0.ɵɵelementEnd();
|
|
19026
|
-
i0.ɵɵtemplate(18, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template, 2, 1, "td", 16);
|
|
19027
|
-
i0.ɵɵelementEnd();
|
|
19028
|
-
} if (rf & 2) {
|
|
19029
|
-
const case_r7 = ctx.$implicit;
|
|
19030
|
-
i0.ɵɵadvance(3);
|
|
19031
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r7.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19032
|
-
i0.ɵɵadvance(2);
|
|
19033
|
-
i0.ɵɵtextInterpolate1("", case_r7.caseNameHmctsInternal, " ");
|
|
19034
|
-
i0.ɵɵadvance(2);
|
|
19035
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 9, case_r7.caseReference), "");
|
|
19036
|
-
i0.ɵɵadvance(3);
|
|
19037
|
-
i0.ɵɵproperty("title", case_r7.ccdCaseTypeDescription);
|
|
19038
|
-
i0.ɵɵadvance(1);
|
|
19039
|
-
i0.ɵɵtextInterpolate(case_r7.ccdCaseType);
|
|
19040
|
-
i0.ɵɵadvance(3);
|
|
19041
|
-
i0.ɵɵtextInterpolate(case_r7.ccdJurisdiction);
|
|
19042
|
-
i0.ɵɵadvance(2);
|
|
19043
|
-
i0.ɵɵproperty("title", case_r7.stateDescription);
|
|
19044
|
-
i0.ɵɵadvance(1);
|
|
19045
|
-
i0.ɵɵtextInterpolate(case_r7.state);
|
|
19046
|
-
i0.ɵɵadvance(1);
|
|
19047
|
-
i0.ɵɵproperty("ngForOf", case_r7.linkDetails);
|
|
19048
|
-
} }
|
|
19049
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template(rf, ctx) { if (rf & 1) {
|
|
19050
|
-
i0.ɵɵelementStart(0, "tr", 5);
|
|
19051
|
-
i0.ɵɵelementStart(1, "td", 18);
|
|
19052
|
-
i0.ɵɵtext(2, " None ");
|
|
19053
|
-
i0.ɵɵelementEnd();
|
|
19054
|
-
i0.ɵɵelementEnd();
|
|
19055
|
-
} }
|
|
19056
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_Template(rf, ctx) { if (rf & 1) {
|
|
19057
|
-
i0.ɵɵelementStart(0, "tbody", 8);
|
|
19058
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template, 19, 11, "tr", 9);
|
|
19059
|
-
i0.ɵɵtemplate(2, LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template, 3, 0, "tr", 10);
|
|
19060
|
-
i0.ɵɵelementEnd();
|
|
19061
|
-
} if (rf & 2) {
|
|
19062
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
19063
|
-
i0.ɵɵadvance(1);
|
|
19064
|
-
i0.ɵɵproperty("ngForOf", ctx_r4.getLinkedCasesResponse);
|
|
19065
|
-
i0.ɵɵadvance(1);
|
|
19066
|
-
i0.ɵɵproperty("ngIf", ctx_r4.noLinkedCases);
|
|
19067
|
-
} }
|
|
19068
|
-
function LinkedCasesFromTableComponent_table_1_Template(rf, ctx) { if (rf & 1) {
|
|
19069
|
-
i0.ɵɵelementStart(0, "table", 3);
|
|
19070
|
-
i0.ɵɵelementStart(1, "thead", 4);
|
|
19071
|
-
i0.ɵɵelementStart(2, "tr", 5);
|
|
19072
|
-
i0.ɵɵelementStart(3, "th", 6);
|
|
19073
|
-
i0.ɵɵtext(4, "Case name and number");
|
|
19074
|
-
i0.ɵɵelementEnd();
|
|
19075
|
-
i0.ɵɵelementStart(5, "th", 6);
|
|
19076
|
-
i0.ɵɵtext(6, "Case type ");
|
|
19077
|
-
i0.ɵɵelementEnd();
|
|
19078
|
-
i0.ɵɵelementStart(7, "th", 6);
|
|
19079
|
-
i0.ɵɵtext(8, "Service");
|
|
19080
|
-
i0.ɵɵelementEnd();
|
|
19081
|
-
i0.ɵɵelementStart(9, "th", 6);
|
|
19082
|
-
i0.ɵɵtext(10, "State");
|
|
19083
|
-
i0.ɵɵelementEnd();
|
|
19084
|
-
i0.ɵɵelementStart(11, "th", 6);
|
|
19085
|
-
i0.ɵɵtext(12, "Reasons for case link");
|
|
19086
|
-
i0.ɵɵelementEnd();
|
|
19087
|
-
i0.ɵɵelementEnd();
|
|
19088
|
-
i0.ɵɵelementEnd();
|
|
19089
|
-
i0.ɵɵtemplate(13, LinkedCasesFromTableComponent_table_1_tbody_13_Template, 3, 2, "tbody", 7);
|
|
19090
|
-
i0.ɵɵelementEnd();
|
|
19091
|
-
} if (rf & 2) {
|
|
19092
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
19093
|
-
i0.ɵɵadvance(13);
|
|
19094
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.linkedCasesService.isServerReasonCodeError));
|
|
19095
|
-
} }
|
|
19096
|
-
var PageType;
|
|
19097
|
-
(function (PageType) {
|
|
19098
|
-
PageType["LINKEDCASESTABLBEVIEW"] = "linkedCasesTableView";
|
|
19099
|
-
PageType["PROPOSEDCASELINK"] = "proposedCaseLink";
|
|
19100
|
-
})(PageType || (PageType = {}));
|
|
19101
|
-
class LinkedCasesFromTableComponent {
|
|
19102
|
-
constructor(route, casesService, linkedCasesService) {
|
|
19103
|
-
this.route = route;
|
|
19104
|
-
this.casesService = casesService;
|
|
19105
|
-
this.linkedCasesService = linkedCasesService;
|
|
19106
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19107
|
-
this.pageType = PageType;
|
|
19108
|
-
this.getLinkedCasesResponse = [];
|
|
19109
|
-
this.showHideLinkText = 'Show';
|
|
19110
|
-
this.noLinkedCases = true;
|
|
19111
|
-
this.isServerError = false;
|
|
19112
|
-
}
|
|
19113
|
-
ngAfterViewInit() {
|
|
19114
|
-
const labelField = document.getElementsByClassName('case-viewer-label');
|
|
19115
|
-
if (labelField && labelField.length) {
|
|
19116
|
-
labelField[0].replaceWith('');
|
|
19117
|
-
}
|
|
19118
|
-
}
|
|
19119
|
-
ngOnInit() {
|
|
19120
|
-
this.fetchPageData();
|
|
19121
|
-
if (this.route.snapshot.data.case) {
|
|
19122
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
19123
|
-
}
|
|
19124
|
-
}
|
|
19125
|
-
fetchPageData() {
|
|
19126
|
-
this.caseId = this.route.snapshot.data.case.case_id;
|
|
19127
|
-
this.getLinkedCases().subscribe(response => {
|
|
19128
|
-
this.isServerError = false;
|
|
19129
|
-
this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(item => {
|
|
19130
|
-
const mappedCasetype = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
19131
|
-
const mappedCasetypeDescription = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
19132
|
-
const mappedCaseState = this.mapLookupIDToValueFromJurisdictions('STATE', item.state);
|
|
19133
|
-
const mappedCaseStateDescription = this.mapLookupIDToValueFromJurisdictions('STATE_DESCRIPTION', item.state);
|
|
19134
|
-
const mappedCaseService = this.mapLookupIDToValueFromJurisdictions('JURISDICTION', item.ccdJurisdiction);
|
|
19135
|
-
return Object.assign(Object.assign({}, item), { ccdCaseType: mappedCasetype, ccdCaseTypeDescription: mappedCasetypeDescription, ccdJurisdiction: mappedCaseService, state: mappedCaseState, stateDescription: mappedCaseStateDescription, caseNameHmctsInternal: item.caseNameHmctsInternal || LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT });
|
|
19136
|
-
});
|
|
19137
|
-
this.noLinkedCases = !response.linkedCases || !response.linkedCases.length;
|
|
19138
|
-
}, err => {
|
|
19139
|
-
this.isServerError = true;
|
|
19140
|
-
this.notifyAPIFailure.emit(true);
|
|
19141
|
-
});
|
|
19142
|
-
}
|
|
19143
|
-
getLinkedCases() {
|
|
19144
|
-
return this.casesService.getLinkedCases(this.caseId);
|
|
19145
|
-
}
|
|
19146
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
19147
|
-
return this.linkedCasesService.mapLookupIDToValueFromJurisdictions(fieldName, fieldValue);
|
|
19148
|
-
}
|
|
19149
|
-
onClick() {
|
|
19150
|
-
this.showHideLinkText = this.showHideLinkText === 'Show'
|
|
19151
|
-
? 'Hide'
|
|
19152
|
-
: 'Show';
|
|
19153
|
-
}
|
|
19154
|
-
}
|
|
19155
|
-
LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
19156
|
-
LinkedCasesFromTableComponent.ɵfac = function LinkedCasesFromTableComponent_Factory(t) { return new (t || LinkedCasesFromTableComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19157
|
-
LinkedCasesFromTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkedCasesFromTableComponent, selectors: [["ccd-linked-cases-from-table"]], inputs: { caseField: "caseField" }, outputs: { notifyAPIFailure: "notifyAPIFailure" }, decls: 2, vars: 2, consts: [["id", "show-hide-link", "class", "govuk-link", "href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "table to display cases linked from", 4, "ngIf"], ["id", "show-hide-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["aria-describedby", "table to display cases linked from"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "20%", 1, "govuk-table__header", "case-table-column"], ["class", "govuk-table__body", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__header", "case-table-column", "width-20"], [1, "govuk-body"], ["target", "_blank", "rel", "noopener", 1, "govuk-link", 3, "href"], [1, "case-table-column"], [3, "title"], ["class", "case-table-column", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["colspan", "5", 1, "govuk-table__cell"]], template: function LinkedCasesFromTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19158
|
-
i0.ɵɵtemplate(0, LinkedCasesFromTableComponent_a_0_Template, 2, 1, "a", 0);
|
|
19159
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_Template, 14, 1, "table", 1);
|
|
19160
|
-
} if (rf & 2) {
|
|
19161
|
-
i0.ɵɵproperty("ngIf", !ctx.noLinkedCases && !ctx.isServerError);
|
|
19162
|
-
i0.ɵɵadvance(1);
|
|
19163
|
-
i0.ɵɵproperty("ngIf", ctx.getLinkedCasesResponse && ctx.showHideLinkText === "Hide" || ctx.noLinkedCases);
|
|
19164
|
-
} }, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}.heading-h2[_ngcontent-%COMP%]{margin-bottom:0}"] });
|
|
19165
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesFromTableComponent, [{
|
|
19166
|
-
type: Component,
|
|
19167
|
-
args: [{
|
|
19168
|
-
selector: 'ccd-linked-cases-from-table',
|
|
19169
|
-
templateUrl: './linked-cases-from-table.component.html',
|
|
19170
|
-
styleUrls: ['./linked-cases-from-table.component.scss']
|
|
19171
|
-
}]
|
|
19172
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: CasesService }, { type: LinkedCasesService }]; }, { caseField: [{
|
|
19173
|
-
type: Input
|
|
19174
|
-
}], notifyAPIFailure: [{
|
|
19175
|
-
type: Output
|
|
19176
|
-
}] }); })();
|
|
19177
|
-
|
|
19178
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template(rf, ctx) { if (rf & 1) {
|
|
19179
|
-
i0.ɵɵelementStart(0, "a", 16);
|
|
19180
|
-
i0.ɵɵtext(1);
|
|
19181
|
-
i0.ɵɵelementEnd();
|
|
19182
|
-
} if (rf & 2) {
|
|
19183
|
-
const case_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
19184
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
19185
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19186
|
-
i0.ɵɵadvance(1);
|
|
19187
|
-
i0.ɵɵtextInterpolate(ctx_r9.getCaseRefereneLink(case_r3.caseReference));
|
|
19188
|
-
} }
|
|
19189
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template(rf, ctx) { if (rf & 1) {
|
|
19190
|
-
i0.ɵɵelement(0, "br");
|
|
19191
|
-
} }
|
|
19192
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
19193
|
-
i0.ɵɵelementStart(0, "span");
|
|
19194
|
-
i0.ɵɵtext(1);
|
|
19195
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
19196
|
-
i0.ɵɵelementStart(3, "span");
|
|
19197
|
-
i0.ɵɵtemplate(4, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template, 2, 2, "a", 15);
|
|
19198
|
-
i0.ɵɵelementEnd();
|
|
19199
|
-
i0.ɵɵtemplate(5, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template, 1, 0, "br", 13);
|
|
19200
|
-
i0.ɵɵelementEnd();
|
|
19201
|
-
} if (rf & 2) {
|
|
19202
|
-
const reason_r6 = ctx.$implicit;
|
|
19203
|
-
const isLast_r8 = ctx.last;
|
|
19204
|
-
const ctx_r5 = i0.ɵɵnextContext(4);
|
|
19205
|
-
i0.ɵɵadvance(1);
|
|
19206
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, reason_r6), "");
|
|
19207
|
-
i0.ɵɵadvance(3);
|
|
19208
|
-
i0.ɵɵproperty("ngIf", ctx_r5.hasLeadCaseOrConsolidated(reason_r6));
|
|
19209
|
-
i0.ɵɵadvance(1);
|
|
19210
|
-
i0.ɵɵproperty("ngIf", !isLast_r8);
|
|
19211
|
-
} }
|
|
19212
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
19213
|
-
i0.ɵɵelementStart(0, "td");
|
|
19214
|
-
i0.ɵɵtemplate(1, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template, 6, 5, "span", 14);
|
|
19215
|
-
i0.ɵɵelementEnd();
|
|
19216
|
-
} if (rf & 2) {
|
|
19217
|
-
const case_r3 = i0.ɵɵnextContext().$implicit;
|
|
19218
|
-
i0.ɵɵadvance(1);
|
|
19219
|
-
i0.ɵɵproperty("ngForOf", case_r3.reasons);
|
|
19220
|
-
} }
|
|
19221
|
-
function LinkedCasesToTableComponent_table_2_tr_14_Template(rf, ctx) { if (rf & 1) {
|
|
19222
|
-
i0.ɵɵelementStart(0, "tr", 4);
|
|
19223
|
-
i0.ɵɵelementStart(1, "td");
|
|
19224
|
-
i0.ɵɵelementStart(2, "p", 9);
|
|
19225
|
-
i0.ɵɵelementStart(3, "a", 10);
|
|
19226
|
-
i0.ɵɵelementStart(4, "span", 11);
|
|
19227
|
-
i0.ɵɵtext(5);
|
|
19228
|
-
i0.ɵɵelement(6, "br");
|
|
19229
|
-
i0.ɵɵtext(7);
|
|
19230
|
-
i0.ɵɵpipe(8, "ccdCaseReference");
|
|
19231
|
-
i0.ɵɵelementEnd();
|
|
19232
|
-
i0.ɵɵelementEnd();
|
|
19233
|
-
i0.ɵɵelementEnd();
|
|
19234
|
-
i0.ɵɵelementEnd();
|
|
19235
|
-
i0.ɵɵelementStart(9, "td");
|
|
19236
|
-
i0.ɵɵelementStart(10, "span", 12);
|
|
19237
|
-
i0.ɵɵtext(11);
|
|
19238
|
-
i0.ɵɵelementEnd();
|
|
19239
|
-
i0.ɵɵelementEnd();
|
|
19240
|
-
i0.ɵɵelementStart(12, "td");
|
|
19241
|
-
i0.ɵɵelementStart(13, "span");
|
|
19242
|
-
i0.ɵɵtext(14);
|
|
19243
|
-
i0.ɵɵelementEnd();
|
|
19244
|
-
i0.ɵɵelementEnd();
|
|
19245
|
-
i0.ɵɵelementStart(15, "td");
|
|
19246
|
-
i0.ɵɵelementStart(16, "span", 12);
|
|
19247
|
-
i0.ɵɵtext(17);
|
|
19248
|
-
i0.ɵɵelementEnd();
|
|
19249
|
-
i0.ɵɵelementEnd();
|
|
19250
|
-
i0.ɵɵtemplate(18, LinkedCasesToTableComponent_table_2_tr_14_td_18_Template, 2, 1, "td", 13);
|
|
19251
|
-
i0.ɵɵelementEnd();
|
|
19252
|
-
} if (rf & 2) {
|
|
19253
|
-
const case_r3 = ctx.$implicit;
|
|
19254
|
-
i0.ɵɵadvance(3);
|
|
19255
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19256
|
-
i0.ɵɵadvance(2);
|
|
19257
|
-
i0.ɵɵtextInterpolate1("", case_r3.caseName, " ");
|
|
19258
|
-
i0.ɵɵadvance(2);
|
|
19259
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 9, case_r3.caseReference), "");
|
|
19260
|
-
i0.ɵɵadvance(3);
|
|
19261
|
-
i0.ɵɵproperty("title", case_r3.caseTypeDescription);
|
|
19262
|
-
i0.ɵɵadvance(1);
|
|
19263
|
-
i0.ɵɵtextInterpolate(case_r3.caseType);
|
|
19264
|
-
i0.ɵɵadvance(3);
|
|
19265
|
-
i0.ɵɵtextInterpolate(case_r3.service);
|
|
19266
|
-
i0.ɵɵadvance(2);
|
|
19267
|
-
i0.ɵɵproperty("title", case_r3.stateDescription);
|
|
19268
|
-
i0.ɵɵadvance(1);
|
|
19269
|
-
i0.ɵɵtextInterpolate(case_r3.state);
|
|
19270
|
-
i0.ɵɵadvance(1);
|
|
19271
|
-
i0.ɵɵproperty("ngIf", case_r3 && case_r3.reasons);
|
|
19272
|
-
} }
|
|
19273
|
-
function LinkedCasesToTableComponent_table_2_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
19274
|
-
i0.ɵɵelementStart(0, "tr", 4);
|
|
19275
|
-
i0.ɵɵelementStart(1, "td", 17);
|
|
19276
|
-
i0.ɵɵtext(2, " None ");
|
|
19277
|
-
i0.ɵɵelementEnd();
|
|
19278
|
-
i0.ɵɵelementEnd();
|
|
19279
|
-
} }
|
|
19280
|
-
function LinkedCasesToTableComponent_table_2_Template(rf, ctx) { if (rf & 1) {
|
|
19281
|
-
i0.ɵɵelementStart(0, "table", 3);
|
|
19282
|
-
i0.ɵɵelementStart(1, "thead");
|
|
19283
|
-
i0.ɵɵelementStart(2, "tr", 4);
|
|
19284
|
-
i0.ɵɵelementStart(3, "th", 5);
|
|
19285
|
-
i0.ɵɵtext(4, "Case name and number");
|
|
19286
|
-
i0.ɵɵelementEnd();
|
|
19287
|
-
i0.ɵɵelementStart(5, "th", 5);
|
|
19288
|
-
i0.ɵɵtext(6, "Case type ");
|
|
19289
|
-
i0.ɵɵelementEnd();
|
|
19290
|
-
i0.ɵɵelementStart(7, "th", 5);
|
|
19291
|
-
i0.ɵɵtext(8, "Service");
|
|
19292
|
-
i0.ɵɵelementEnd();
|
|
19293
|
-
i0.ɵɵelementStart(9, "th", 5);
|
|
19294
|
-
i0.ɵɵtext(10, "State");
|
|
19295
|
-
i0.ɵɵelementEnd();
|
|
19296
|
-
i0.ɵɵelementStart(11, "th", 5);
|
|
19297
|
-
i0.ɵɵtext(12, "Reasons for case link");
|
|
19298
|
-
i0.ɵɵelementEnd();
|
|
19299
|
-
i0.ɵɵelementEnd();
|
|
19300
|
-
i0.ɵɵelementEnd();
|
|
19301
|
-
i0.ɵɵelementStart(13, "tbody", 6);
|
|
19302
|
-
i0.ɵɵtemplate(14, LinkedCasesToTableComponent_table_2_tr_14_Template, 19, 11, "tr", 7);
|
|
19303
|
-
i0.ɵɵtemplate(15, LinkedCasesToTableComponent_table_2_tr_15_Template, 3, 0, "tr", 8);
|
|
19304
|
-
i0.ɵɵelementEnd();
|
|
19305
|
-
i0.ɵɵelementEnd();
|
|
19306
|
-
} if (rf & 2) {
|
|
19307
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19308
|
-
i0.ɵɵadvance(14);
|
|
19309
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
|
|
19310
|
-
i0.ɵɵadvance(1);
|
|
19311
|
-
i0.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.linkedCasesService.isServerReasonCodeError));
|
|
19312
|
-
} }
|
|
19313
|
-
class LinkedCasesToTableComponent {
|
|
19314
|
-
constructor(route, linkedCasesService, casesService) {
|
|
19315
|
-
this.route = route;
|
|
19316
|
-
this.linkedCasesService = linkedCasesService;
|
|
19317
|
-
this.casesService = casesService;
|
|
19318
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19319
|
-
this.linkedCasesFromResponse = [];
|
|
19320
|
-
this.isServerError = false;
|
|
19321
|
-
this.jurisdictionsResponse = [];
|
|
19322
|
-
}
|
|
19323
|
-
ngAfterViewInit() {
|
|
19324
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
19325
|
-
if (labelField && labelField.length) {
|
|
19326
|
-
labelField[0].replaceWith('');
|
|
19327
|
-
}
|
|
19328
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
19329
|
-
if (labelField && labelField.length) {
|
|
19330
|
-
labelField[0].replaceWith('');
|
|
19331
|
-
}
|
|
19332
|
-
}
|
|
19333
|
-
ngOnInit() {
|
|
19334
|
-
this.caseId = this.route.snapshot && this.route.snapshot.data && this.route.snapshot.data.case.case_id;
|
|
19335
|
-
this.getAllLinkedCaseInformation();
|
|
19336
|
-
if (this.route.snapshot.data.case) {
|
|
19337
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
19338
|
-
}
|
|
19339
|
-
}
|
|
19340
|
-
getCaseRefereneLink(caseRef) {
|
|
19341
|
-
return caseRef.slice(this.caseId.length - 4);
|
|
19342
|
-
}
|
|
19343
|
-
sortLinkedCasesByReasonCode(searchCasesResponse) {
|
|
19344
|
-
const topLevelresultArray = [];
|
|
19345
|
-
let secondLevelresultArray = [];
|
|
19346
|
-
searchCasesResponse.forEach((item) => {
|
|
19347
|
-
const reasons = item && item.reasons || [];
|
|
19348
|
-
const consolidatedStateReason = reasons.map(x => x).find(reason => reason === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE);
|
|
19349
|
-
const progressedStateReason = reasons.map(x => x).find(reason => reason === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE);
|
|
19350
|
-
let arrayItem;
|
|
19351
|
-
if (progressedStateReason) {
|
|
19352
|
-
arrayItem = Object.assign({}, item);
|
|
19353
|
-
topLevelresultArray.push(arrayItem);
|
|
19354
|
-
}
|
|
19355
|
-
else if (consolidatedStateReason) {
|
|
19356
|
-
arrayItem = Object.assign({}, item);
|
|
19357
|
-
secondLevelresultArray = [Object.assign({}, item), ...secondLevelresultArray];
|
|
19358
|
-
}
|
|
19359
|
-
else {
|
|
19360
|
-
arrayItem = Object.assign({}, item);
|
|
19361
|
-
secondLevelresultArray.push(Object.assign({}, item));
|
|
19362
|
-
}
|
|
19363
|
-
});
|
|
19364
|
-
return topLevelresultArray.concat(secondLevelresultArray);
|
|
19365
|
-
}
|
|
19366
|
-
getAllLinkedCaseInformation() {
|
|
19367
|
-
const searchCasesResponse = [];
|
|
19368
|
-
const caseFieldValue = this.caseField ? this.caseField.value : [];
|
|
19369
|
-
// Generate the list of observables
|
|
19370
|
-
caseFieldValue.forEach(fieldValue => {
|
|
19371
|
-
if (fieldValue && fieldValue.id) {
|
|
19372
|
-
searchCasesResponse.push(this.casesService.getCaseViewV2(fieldValue.id));
|
|
19373
|
-
}
|
|
19374
|
-
});
|
|
19375
|
-
if (searchCasesResponse.length) {
|
|
19376
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
19377
|
-
const casesResponse = [];
|
|
19378
|
-
searchCases.forEach(response => {
|
|
19379
|
-
casesResponse.push(this.mapResponse(response));
|
|
19380
|
-
});
|
|
19381
|
-
this.linkedCasesFromResponse = this.sortLinkedCasesByReasonCode(casesResponse);
|
|
19382
|
-
this.isLoaded = true;
|
|
19383
|
-
const caseLinks = this.linkedCasesFromResponse.map(item => {
|
|
19384
|
-
return {
|
|
19385
|
-
caseReference: item.caseReference,
|
|
19386
|
-
caseName: item.caseName,
|
|
19387
|
-
caseService: item.service,
|
|
19388
|
-
caseType: item.caseType,
|
|
19389
|
-
unlink: false,
|
|
19390
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
19391
|
-
return {
|
|
19392
|
-
reasonCode: reason
|
|
19393
|
-
};
|
|
19394
|
-
}),
|
|
19395
|
-
};
|
|
19396
|
-
});
|
|
19397
|
-
this.linkedCasesService.initialCaseLinks = caseLinks;
|
|
19398
|
-
this.linkedCasesService.linkedCases = caseLinks;
|
|
19399
|
-
this.isServerError = false;
|
|
19400
|
-
}, err => {
|
|
19401
|
-
this.isServerError = true;
|
|
19402
|
-
this.notifyAPIFailure.emit(true);
|
|
19403
|
-
});
|
|
19404
|
-
}
|
|
19405
|
-
}
|
|
19406
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
19407
|
-
return forkJoin(searchCasesResponse);
|
|
19408
|
-
}
|
|
19409
|
-
hasLeadCaseOrConsolidated(reasonCode) {
|
|
19410
|
-
return reasonCode === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE ||
|
|
19411
|
-
reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE;
|
|
19412
|
-
}
|
|
19413
|
-
mapResponse(esSearchCasesResponse) {
|
|
19414
|
-
const caseInfo = this.caseField.value.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
19415
|
-
return caseInfo && {
|
|
19416
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
19417
|
-
caseName: this.linkedCasesService.getCaseName(esSearchCasesResponse),
|
|
19418
|
-
caseType: esSearchCasesResponse.case_type.name || '',
|
|
19419
|
-
caseTypeDescription: esSearchCasesResponse.case_type.description || '',
|
|
19420
|
-
service: esSearchCasesResponse.case_type && esSearchCasesResponse.case_type.jurisdiction.description || '',
|
|
19421
|
-
state: esSearchCasesResponse.state.name || '',
|
|
19422
|
-
stateDescription: esSearchCasesResponse.state.description || '',
|
|
19423
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
19424
|
-
caseInfo.value.ReasonForLink.map(reason => reason.value && reason.value.Reason),
|
|
19425
|
-
};
|
|
19426
|
-
}
|
|
19427
|
-
}
|
|
19428
|
-
LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE = 'CLRC015';
|
|
19429
|
-
LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE = 'CLRC016';
|
|
19430
|
-
LinkedCasesToTableComponent.ɵfac = function LinkedCasesToTableComponent_Factory(t) { return new (t || LinkedCasesToTableComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CasesService)); };
|
|
19431
|
-
LinkedCasesToTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkedCasesToTableComponent, selectors: [["ccd-linked-cases-to-table"]], inputs: { caseField: "caseField" }, outputs: { notifyAPIFailure: "notifyAPIFailure" }, decls: 3, vars: 1, consts: [[1, "govuk-grid-row", "govuk-!-margin-bottom-2"], [1, "govuk-grid-column-full"], ["aria-describedby", "table to display cases linked TO", 4, "ngIf"], ["aria-describedby", "table to display cases linked TO"], [1, "govuk-table__row"], ["scope", "col", "width", "20%", 1, "govuk-table__header", "case-table-column"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-body"], ["target", "_blank", "rel", "noopener", 3, "href"], [1, "govuk-link"], [3, "title"], [4, "ngIf"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-padding-left-1", 3, "href", 4, "ngIf"], [1, "govuk-!-padding-left-1", 3, "href"], ["colspan", "5", 1, "govuk-table__cell"]], template: function LinkedCasesToTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19432
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19433
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19434
|
-
i0.ɵɵtemplate(2, LinkedCasesToTableComponent_table_2_Template, 16, 2, "table", 2);
|
|
19435
|
-
i0.ɵɵelementEnd();
|
|
19436
|
-
i0.ɵɵelementEnd();
|
|
19437
|
-
} if (rf & 2) {
|
|
19438
|
-
i0.ɵɵadvance(2);
|
|
19439
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesFromResponse);
|
|
19440
|
-
} }, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}"] });
|
|
19441
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesToTableComponent, [{
|
|
19442
|
-
type: Component,
|
|
19443
|
-
args: [{
|
|
19444
|
-
selector: 'ccd-linked-cases-to-table',
|
|
19445
|
-
templateUrl: './linked-cases-to-table.component.html',
|
|
19446
|
-
styleUrls: ['./linked-cases-to-table.component.scss']
|
|
19447
|
-
}]
|
|
19448
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: LinkedCasesService }, { type: CasesService }]; }, { caseField: [{
|
|
19449
|
-
type: Input
|
|
19450
|
-
}], notifyAPIFailure: [{
|
|
19451
|
-
type: Output
|
|
19452
|
-
}] }); })();
|
|
19453
|
-
|
|
19454
|
-
function NoLinkedCasesComponent_h1_2_Template(rf, ctx) { if (rf & 1) {
|
|
19455
|
-
i0.ɵɵelementStart(0, "h1", 9);
|
|
19456
|
-
i0.ɵɵtext(1, "There is a problem");
|
|
19457
|
-
i0.ɵɵelementEnd();
|
|
19458
|
-
} }
|
|
19459
|
-
function NoLinkedCasesComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
19460
|
-
i0.ɵɵelementStart(0, "p", 10);
|
|
19461
|
-
i0.ɵɵelementStart(1, "span", 11);
|
|
19462
|
-
i0.ɵɵtext(2, "Error:");
|
|
19463
|
-
i0.ɵɵelementEnd();
|
|
19464
|
-
i0.ɵɵtext(3);
|
|
19465
|
-
i0.ɵɵelementEnd();
|
|
19466
|
-
} if (rf & 2) {
|
|
19467
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
19468
|
-
i0.ɵɵadvance(3);
|
|
19469
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.linkedCasesService.serverLinkedApiError.message, " ");
|
|
19470
|
-
} }
|
|
19471
|
-
function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
19472
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
19473
|
-
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
19474
|
-
i0.ɵɵelementEnd();
|
|
19475
|
-
} }
|
|
19476
|
-
class NoLinkedCasesComponent {
|
|
19477
|
-
constructor(router, linkedCasesService) {
|
|
19478
|
-
this.router = router;
|
|
19479
|
-
this.linkedCasesService = linkedCasesService;
|
|
19480
|
-
}
|
|
19481
|
-
onBack() {
|
|
19482
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
19483
|
-
window.location.hash = 'Linked cases';
|
|
19484
|
-
});
|
|
19485
|
-
}
|
|
19486
|
-
}
|
|
19487
|
-
NoLinkedCasesComponent.ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19488
|
-
NoLinkedCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], decls: 12, vars: 3, consts: [[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"], ["noLinkedCases", ""], [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) {
|
|
19489
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19490
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19491
|
-
i0.ɵɵtemplate(2, NoLinkedCasesComponent_h1_2_Template, 2, 0, "h1", 2);
|
|
19492
|
-
i0.ɵɵtemplate(3, NoLinkedCasesComponent_p_3_Template, 4, 1, "p", 3);
|
|
19493
|
-
i0.ɵɵtemplate(4, NoLinkedCasesComponent_ng_template_4_Template, 2, 0, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
19494
|
-
i0.ɵɵelementStart(6, "p", 5);
|
|
19495
|
-
i0.ɵɵelementStart(7, "a", 6);
|
|
19496
|
-
i0.ɵɵlistener("click", function NoLinkedCasesComponent_Template_a_click_7_listener() { return ctx.onBack(); });
|
|
19497
|
-
i0.ɵɵtext(8, "Go back to the Linked cases tab");
|
|
19498
|
-
i0.ɵɵelementEnd();
|
|
19499
|
-
i0.ɵɵelementEnd();
|
|
19500
|
-
i0.ɵɵelementStart(9, "div", 7);
|
|
19501
|
-
i0.ɵɵelementStart(10, "button", 8);
|
|
19502
|
-
i0.ɵɵlistener("click", function NoLinkedCasesComponent_Template_button_click_10_listener() { return ctx.onBack(); });
|
|
19503
|
-
i0.ɵɵtext(11, "Back");
|
|
19504
|
-
i0.ɵɵelementEnd();
|
|
19505
|
-
i0.ɵɵelementEnd();
|
|
19506
|
-
i0.ɵɵelementEnd();
|
|
19507
|
-
i0.ɵɵelementEnd();
|
|
19508
|
-
} if (rf & 2) {
|
|
19509
|
-
const _r2 = i0.ɵɵreference(5);
|
|
19510
|
-
i0.ɵɵadvance(2);
|
|
19511
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
19512
|
-
i0.ɵɵadvance(1);
|
|
19513
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError)("ngIfElse", _r2);
|
|
19514
|
-
} }, directives: [i1.NgIf], encapsulation: 2 });
|
|
19515
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
19516
|
-
type: Component,
|
|
19517
|
-
args: [{
|
|
19518
|
-
selector: 'ccd-no-linked-cases',
|
|
19519
|
-
templateUrl: './no-linked-cases.component.html'
|
|
19520
|
-
}]
|
|
19521
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }]; }, null); })();
|
|
19522
|
-
|
|
19523
|
-
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
19524
|
-
i0.ɵɵelementStart(0, "p", 11);
|
|
19525
|
-
i0.ɵɵelementStart(1, "span", 12);
|
|
19526
|
-
i0.ɵɵtext(2, "Error:");
|
|
19527
|
-
i0.ɵɵelementEnd();
|
|
19528
|
-
i0.ɵɵtext(3);
|
|
19529
|
-
i0.ɵɵelementEnd();
|
|
19530
|
-
} if (rf & 2) {
|
|
19531
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
19532
|
-
i0.ɵɵadvance(3);
|
|
19533
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.unlinkErrorMessage, " ");
|
|
19534
|
-
} }
|
|
19535
|
-
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
19536
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
19537
|
-
i0.ɵɵelementStart(0, "div", 13);
|
|
19538
|
-
i0.ɵɵelementStart(1, "input", 14);
|
|
19539
|
-
i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(3); return ctx_r5.onChange($event.target); });
|
|
19540
|
-
i0.ɵɵelementEnd();
|
|
19541
|
-
i0.ɵɵelementStart(2, "label", 15);
|
|
19542
|
-
i0.ɵɵtext(3);
|
|
19543
|
-
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
19544
|
-
i0.ɵɵelementEnd();
|
|
19545
|
-
i0.ɵɵelementEnd();
|
|
19546
|
-
} if (rf & 2) {
|
|
19547
|
-
const case_r4 = ctx.$implicit;
|
|
19548
|
-
i0.ɵɵadvance(1);
|
|
19549
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
19550
|
-
i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
19551
|
-
i0.ɵɵadvance(1);
|
|
19552
|
-
i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
19553
|
-
i0.ɵɵadvance(1);
|
|
19554
|
-
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
19555
|
-
} }
|
|
19556
|
-
const _c0$l = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
19557
|
-
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
19558
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
19559
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
19560
|
-
i0.ɵɵelementStart(2, "div", 9);
|
|
19561
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 8, "div", 10);
|
|
19562
|
-
i0.ɵɵelementEnd();
|
|
19563
|
-
i0.ɵɵelementEnd();
|
|
19564
|
-
} if (rf & 2) {
|
|
19565
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
19566
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$l, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
19567
|
-
i0.ɵɵadvance(1);
|
|
19568
|
-
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
19569
|
-
i0.ɵɵadvance(2);
|
|
19570
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
19571
|
-
} }
|
|
19572
|
-
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
19573
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
19574
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
19575
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
19576
|
-
i0.ɵɵelementStart(2, "h1", 3);
|
|
19577
|
-
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
19578
|
-
i0.ɵɵelementEnd();
|
|
19579
|
-
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
19580
|
-
i0.ɵɵelementStart(5, "div", 5);
|
|
19581
|
-
i0.ɵɵelementStart(6, "button", 6);
|
|
19582
|
-
i0.ɵɵlistener("click", function UnLinkCasesComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
19583
|
-
i0.ɵɵtext(7, "Next");
|
|
19584
|
-
i0.ɵɵelementEnd();
|
|
19585
|
-
i0.ɵɵelementEnd();
|
|
19586
|
-
i0.ɵɵelementEnd();
|
|
19587
|
-
i0.ɵɵelementEnd();
|
|
19588
|
-
} if (rf & 2) {
|
|
19589
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19590
|
-
i0.ɵɵadvance(4);
|
|
19591
|
-
i0.ɵɵproperty("ngIf", ctx_r0.unlinkCaseForm);
|
|
19592
|
-
} }
|
|
19593
|
-
class UnLinkCasesComponent {
|
|
19594
|
-
constructor(caseEdit, fb, casesService, linkedCasesService) {
|
|
19595
|
-
this.caseEdit = caseEdit;
|
|
19596
|
-
this.fb = fb;
|
|
19597
|
-
this.casesService = casesService;
|
|
19598
|
-
this.linkedCasesService = linkedCasesService;
|
|
19599
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
19600
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19601
|
-
this.linkedCases = [];
|
|
19602
|
-
this.errorMessages = [];
|
|
19603
|
-
this.isServerError = false;
|
|
19604
|
-
}
|
|
19605
|
-
ngOnInit() {
|
|
19606
|
-
this.getLinkedCases();
|
|
19607
|
-
}
|
|
19608
|
-
getLinkedCases() {
|
|
19609
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
19610
|
-
if (this.linkedCasesService.linkedCases.length > 0) {
|
|
19611
|
-
this.linkedCases = this.linkedCasesService.linkedCases;
|
|
19612
|
-
this.getAllLinkedCaseInformation();
|
|
19613
|
-
}
|
|
19614
|
-
else {
|
|
19615
|
-
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
19616
|
-
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
19617
|
-
if (linkedCasesTab) {
|
|
19618
|
-
const linkedCases = linkedCasesTab.fields[0].value;
|
|
19619
|
-
this.linkedCases = linkedCases;
|
|
19620
|
-
this.linkedCasesService.linkedCases = linkedCases;
|
|
19621
|
-
this.getAllLinkedCaseInformation();
|
|
19622
|
-
}
|
|
19623
|
-
});
|
|
19624
|
-
}
|
|
19625
|
-
}
|
|
19626
|
-
getAllLinkedCaseInformation() {
|
|
19627
|
-
const searchCasesResponse = [];
|
|
19628
|
-
this.linkedCases.forEach(linkedCase => {
|
|
19629
|
-
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
19630
|
-
});
|
|
19631
|
-
if (searchCasesResponse.length) {
|
|
19632
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
19633
|
-
searchCases.forEach((response) => {
|
|
19634
|
-
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
19635
|
-
if (linkedCaseFromList) {
|
|
19636
|
-
const caseName = this.linkedCasesService.getCaseName(response);
|
|
19637
|
-
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
19638
|
-
}
|
|
19639
|
-
});
|
|
19640
|
-
this.initForm();
|
|
19641
|
-
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
19642
|
-
this.isServerError = false;
|
|
19643
|
-
}, err => {
|
|
19644
|
-
this.isServerError = true;
|
|
19645
|
-
this.notifyAPIFailure.emit(true);
|
|
19646
|
-
});
|
|
19647
|
-
}
|
|
19648
|
-
}
|
|
19649
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
19650
|
-
return forkJoin(searchCasesResponse);
|
|
19651
|
-
}
|
|
19652
|
-
initForm() {
|
|
19653
|
-
this.unlinkCaseForm = this.fb.group({
|
|
19654
|
-
linkedCases: this.getLinkedCasesFormArray
|
|
19655
|
-
});
|
|
19656
|
-
}
|
|
19657
|
-
get getLinkedCasesFormArray() {
|
|
19658
|
-
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
19659
|
-
caseReference: val.caseReference,
|
|
19660
|
-
reasons: val.reasons,
|
|
19661
|
-
createdDateTime: val.createdDateTime,
|
|
19662
|
-
caseType: val.caseType,
|
|
19663
|
-
caseState: val.caseState,
|
|
19664
|
-
caseService: val.caseService,
|
|
19665
|
-
caseName: val.caseName || UnLinkCasesComponent.CASE_NAME_MISSING_TEXT,
|
|
19666
|
-
unlink: val.unlink
|
|
19667
|
-
}));
|
|
19668
|
-
return this.fb.array(formFieldArray);
|
|
19669
|
-
}
|
|
19670
|
-
onChange(caseSelected) {
|
|
19671
|
-
this.resetErrorMessages();
|
|
19672
|
-
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
19673
|
-
if (selectedCase) {
|
|
19674
|
-
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
19675
|
-
}
|
|
19676
|
-
}
|
|
19677
|
-
onNext() {
|
|
19678
|
-
this.resetErrorMessages();
|
|
19679
|
-
let navigateToNextPage = true;
|
|
19680
|
-
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
19681
|
-
if (!casesMarkedToUnlink) {
|
|
19682
|
-
this.errorMessages.push({
|
|
19683
|
-
title: 'case-selection',
|
|
19684
|
-
description: LinkedCasesErrorMessages.UnlinkCaseSelectionError,
|
|
19685
|
-
fieldId: `case-reference-${this.linkedCases[0].caseReference}`
|
|
19686
|
-
});
|
|
19687
|
-
this.unlinkErrorMessage = LinkedCasesErrorMessages.UnlinkCaseSelectionError;
|
|
19688
|
-
navigateToNextPage = false;
|
|
19689
|
-
}
|
|
19690
|
-
const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
|
|
19691
|
-
const updatedLinkedCases = this.linkedCasesService.caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.value.CaseReference) === -1);
|
|
19692
|
-
this.caseEdit.form.controls['data'] = new FormGroup({ caseLinks: new FormControl(updatedLinkedCases || []) });
|
|
19693
|
-
// Return linked cases state and error messages to the parent
|
|
19694
|
-
this.linkedCasesStateEmitter.emit({
|
|
19695
|
-
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
19696
|
-
errorMessages: this.errorMessages,
|
|
19697
|
-
navigateToNextPage
|
|
19698
|
-
});
|
|
19699
|
-
}
|
|
19700
|
-
resetErrorMessages() {
|
|
19701
|
-
this.errorMessages = [];
|
|
19702
|
-
this.unlinkErrorMessage = null;
|
|
19703
|
-
}
|
|
19704
|
-
}
|
|
19705
|
-
UnLinkCasesComponent.LINKED_CASES_TAB_ID = 'linked_cases_sscs';
|
|
19706
|
-
UnLinkCasesComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
19707
|
-
UnLinkCasesComponent.ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19708
|
-
UnLinkCasesComponent.ɵcmp = 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, "id", "value", "checked", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19709
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
19710
|
-
} if (rf & 2) {
|
|
19711
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
19712
|
-
} }, directives: [i1.NgIf, i1.NgClass, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgForOf, i2.FormArrayName], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
19713
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
19714
|
-
type: Component,
|
|
19715
|
-
args: [{
|
|
19716
|
-
selector: 'ccd-unlink-cases',
|
|
19717
|
-
templateUrl: './unlink-cases.component.html'
|
|
19718
|
-
}]
|
|
19719
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i2.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
19720
|
-
type: Output
|
|
19721
|
-
}], notifyAPIFailure: [{
|
|
19722
|
-
type: Output
|
|
19723
|
-
}] }); })();
|
|
19724
|
-
|
|
19725
|
-
function WriteLinkedCasesComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
19726
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
19727
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
19728
|
-
i0.ɵɵelementStart(1, "ul", 8);
|
|
19729
|
-
i0.ɵɵelementStart(2, "li");
|
|
19730
|
-
i0.ɵɵelementStart(3, "a", 9);
|
|
19731
|
-
i0.ɵɵlistener("click", function WriteLinkedCasesComponent_div_0_div_3_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r9); const errorMessage_r7 = ctx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.navigateToErrorElement(errorMessage_r7.fieldId); });
|
|
19732
|
-
i0.ɵɵtext(4);
|
|
19733
|
-
i0.ɵɵelementEnd();
|
|
19734
|
-
i0.ɵɵelementEnd();
|
|
19735
|
-
i0.ɵɵelementEnd();
|
|
19736
|
-
i0.ɵɵelementEnd();
|
|
19737
|
-
} if (rf & 2) {
|
|
19738
|
-
const errorMessage_r7 = ctx.$implicit;
|
|
19739
|
-
i0.ɵɵadvance(4);
|
|
19740
|
-
i0.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
19741
|
-
} }
|
|
19742
|
-
function WriteLinkedCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
19743
|
-
i0.ɵɵelementStart(0, "div", 4);
|
|
19744
|
-
i0.ɵɵelementStart(1, "h2", 5);
|
|
19745
|
-
i0.ɵɵtext(2, " There is a problem ");
|
|
19746
|
-
i0.ɵɵelementEnd();
|
|
19747
|
-
i0.ɵɵtemplate(3, WriteLinkedCasesComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
19748
|
-
i0.ɵɵelementEnd();
|
|
19749
|
-
} if (rf & 2) {
|
|
19750
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19751
|
-
i0.ɵɵadvance(3);
|
|
19752
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
19753
|
-
} }
|
|
19754
|
-
function WriteLinkedCasesComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
19755
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
19756
|
-
i0.ɵɵelementContainerStart(0);
|
|
19757
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 10);
|
|
19758
|
-
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_3_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onLinkedCasesStateEmitted($event); });
|
|
19759
|
-
i0.ɵɵelementEnd();
|
|
19760
|
-
i0.ɵɵelementContainerEnd();
|
|
19761
|
-
} }
|
|
19762
|
-
function WriteLinkedCasesComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
19763
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
19764
|
-
i0.ɵɵelementContainerStart(0);
|
|
19765
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 10);
|
|
19766
|
-
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_4_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.onLinkedCasesStateEmitted($event); });
|
|
19767
|
-
i0.ɵɵelementEnd();
|
|
19768
|
-
i0.ɵɵelementContainerEnd();
|
|
19769
|
-
} }
|
|
19770
|
-
function WriteLinkedCasesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
19771
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
19772
|
-
i0.ɵɵelementContainerStart(0);
|
|
19773
|
-
i0.ɵɵelementStart(1, "ccd-link-cases", 10);
|
|
19774
|
-
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_5_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.onLinkedCasesStateEmitted($event); });
|
|
19775
|
-
i0.ɵɵelementEnd();
|
|
19776
|
-
i0.ɵɵelementContainerEnd();
|
|
19777
|
-
} }
|
|
19778
|
-
function WriteLinkedCasesComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
19779
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
19780
|
-
i0.ɵɵelementContainerStart(0);
|
|
19781
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
19782
|
-
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_6_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.onLinkedCasesStateEmitted($event); });
|
|
19783
|
-
i0.ɵɵelementEnd();
|
|
19784
|
-
i0.ɵɵelementContainerEnd();
|
|
19785
|
-
} }
|
|
19786
|
-
function WriteLinkedCasesComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
19787
|
-
const _r19 = i0.ɵɵgetCurrentView();
|
|
19788
|
-
i0.ɵɵelementContainerStart(0);
|
|
19789
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 10);
|
|
19790
|
-
i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesComponent_ng_container_7_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.onLinkedCasesStateEmitted($event); });
|
|
19791
|
-
i0.ɵɵelementEnd();
|
|
19792
|
-
i0.ɵɵelementContainerEnd();
|
|
19793
|
-
} }
|
|
19794
|
-
class WriteLinkedCasesComponent extends AbstractFieldWriteComponent {
|
|
19795
|
-
constructor(caseEdit, appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
19796
|
-
super();
|
|
19797
|
-
this.caseEdit = caseEdit;
|
|
19798
|
-
this.appConfig = appConfig;
|
|
19799
|
-
this.commonDataService = commonDataService;
|
|
19800
|
-
this.casesService = casesService;
|
|
19801
|
-
this.linkedCasesService = linkedCasesService;
|
|
19802
|
-
this.caseEditDataService = caseEditDataService;
|
|
19803
|
-
this.onLinkedCasesSelected = new EventEmitter();
|
|
19804
|
-
this.isLinkedCasesJourney = false;
|
|
19805
|
-
this.linkedCasesPages = LinkedCasesPages;
|
|
19806
|
-
this.linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
19807
|
-
this.linkedCases = [];
|
|
19808
|
-
this.errorMessages = [];
|
|
19809
|
-
}
|
|
19810
|
-
ngOnInit() {
|
|
19811
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
19812
|
-
this.linkedCasesService.caseId = this.caseEdit.caseDetails.case_id;
|
|
19813
|
-
this.linkedCasesService.caseName = this.linkedCasesService.getCaseName(this.caseEdit.caseDetails);
|
|
19814
|
-
this.linkedCasesService.caseDetails = this.caseEdit.caseDetails;
|
|
19815
|
-
this.linkedCasesService.editMode = false;
|
|
19816
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
19817
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
19818
|
-
next: reasons => {
|
|
19819
|
-
this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);
|
|
19820
|
-
}
|
|
19821
|
-
});
|
|
19822
|
-
this.getLinkedCases();
|
|
19823
|
-
this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
19824
|
-
next: name => {
|
|
19825
|
-
this.linkedCasesService.isLinkedCasesEventTrigger
|
|
19826
|
-
= (name === LinkedCasesEventTriggers.LINK_CASES);
|
|
19827
|
-
}
|
|
19828
|
-
});
|
|
19829
|
-
}
|
|
19830
|
-
ngAfterViewInit() {
|
|
19831
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
19832
|
-
if (labelField && labelField.length) {
|
|
19833
|
-
labelField[0].replaceWith('');
|
|
19834
|
-
}
|
|
19835
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
19836
|
-
if (labelField && labelField.length) {
|
|
19837
|
-
labelField[0].replaceWith('');
|
|
19838
|
-
}
|
|
19839
|
-
}
|
|
19840
|
-
onLinkedCasesStateEmitted(linkedCasesState) {
|
|
19841
|
-
this.errorMessages = [];
|
|
19842
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
19843
|
-
if (linkedCasesState.navigateToNextPage) {
|
|
19844
|
-
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
19845
|
-
this.setContinueButtonValidationErrorMessage();
|
|
19846
|
-
this.proceedToNextPage();
|
|
19847
|
-
}
|
|
19848
|
-
else {
|
|
19849
|
-
if (linkedCasesState.errorMessages && linkedCasesState.errorMessages.length) {
|
|
19850
|
-
linkedCasesState.errorMessages.forEach((errorMessage, index) => {
|
|
19851
|
-
this.caseEditDataService.addFormValidationError({ id: errorMessage.fieldId, message: errorMessage.description });
|
|
19852
|
-
});
|
|
19853
|
-
}
|
|
19854
|
-
}
|
|
19855
|
-
}
|
|
19856
|
-
isAtFinalState() {
|
|
19857
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
19858
|
-
}
|
|
19859
|
-
setContinueButtonValidationErrorMessage() {
|
|
19860
|
-
const errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
19861
|
-
? LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
19862
|
-
: LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
19863
|
-
const buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
19864
|
-
? 'back-button'
|
|
19865
|
-
: 'next-button';
|
|
19866
|
-
this.caseEditDataService.setCaseLinkError({
|
|
19867
|
-
componentId: buttonId,
|
|
19868
|
-
errorMessage
|
|
19869
|
-
});
|
|
19870
|
-
}
|
|
19871
|
-
proceedToNextPage() {
|
|
19872
|
-
if (this.isAtFinalPage()) {
|
|
19873
|
-
// Continue button event must be allowed in final page
|
|
19874
|
-
this.caseEditDataService.clearCaseLinkError();
|
|
19875
|
-
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
19876
|
-
this.formGroup.updateValueAndValidity();
|
|
19877
|
-
// update form value
|
|
19878
|
-
this.onLinkedCasesSelected.emit();
|
|
19879
|
-
this.caseEdit.form.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue) });
|
|
19880
|
-
}
|
|
19881
|
-
}
|
|
19882
|
-
isAtFinalPage() {
|
|
19883
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
19884
|
-
}
|
|
19885
|
-
getNextPage(linkedCasesState) {
|
|
19886
|
-
if ((this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START) ||
|
|
19887
|
-
(linkedCasesState.currentLinkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS && linkedCasesState.navigateToPreviousPage)) {
|
|
19888
|
-
return this.isLinkedCasesJourney
|
|
19889
|
-
? LinkedCasesPages.LINK_CASE
|
|
19890
|
-
: LinkedCasesPages.UNLINK_CASE;
|
|
19891
|
-
}
|
|
19892
|
-
return LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
19893
|
-
}
|
|
19894
|
-
getLinkedCases() {
|
|
19895
|
-
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
19896
|
-
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
19897
|
-
const linkField = tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
19898
|
-
return linkField;
|
|
19899
|
-
});
|
|
19900
|
-
if (caseViewFiltered) {
|
|
19901
|
-
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields.length && filtered.fields[0].value);
|
|
19902
|
-
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
19903
|
-
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
19904
|
-
}
|
|
19905
|
-
// Initialise the first page to display
|
|
19906
|
-
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
19907
|
-
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
19908
|
-
&& !this.linkedCasesService.serverLinkedApiError)
|
|
19909
|
-
? LinkedCasesPages.BEFORE_YOU_START
|
|
19910
|
-
: LinkedCasesPages.NO_LINKED_CASES;
|
|
19911
|
-
// Initialise the error to be displayed when clicked on Continue button
|
|
19912
|
-
this.setContinueButtonValidationErrorMessage();
|
|
19913
|
-
});
|
|
19914
|
-
}
|
|
19915
|
-
navigateToErrorElement(elementId) {
|
|
19916
|
-
if (elementId) {
|
|
19917
|
-
const htmlElement = document.getElementById(elementId);
|
|
19918
|
-
if (htmlElement) {
|
|
19919
|
-
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
19920
|
-
htmlElement.focus();
|
|
19921
|
-
}
|
|
19922
|
-
}
|
|
19923
|
-
}
|
|
19924
|
-
}
|
|
19925
|
-
WriteLinkedCasesComponent.ɵfac = function WriteLinkedCasesComponent_Factory(t) { return new (t || WriteLinkedCasesComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
19926
|
-
WriteLinkedCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteLinkedCasesComponent, selectors: [["ccd-write-linked-cases"]], inputs: { caseFields: "caseFields", caseField: "caseField", isLinkedCasesJourney: "isLinkedCasesJourney", formGroup: "formGroup" }, outputs: { onLinkedCasesSelected: "onLinkedCasesSelected" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 8, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], ["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"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19927
|
-
i0.ɵɵtemplate(0, WriteLinkedCasesComponent_div_0_Template, 4, 1, "div", 0);
|
|
19928
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19929
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
19930
|
-
i0.ɵɵtemplate(3, WriteLinkedCasesComponent_ng_container_3_Template, 2, 0, "ng-container", 3);
|
|
19931
|
-
i0.ɵɵtemplate(4, WriteLinkedCasesComponent_ng_container_4_Template, 2, 0, "ng-container", 3);
|
|
19932
|
-
i0.ɵɵtemplate(5, WriteLinkedCasesComponent_ng_container_5_Template, 2, 0, "ng-container", 3);
|
|
19933
|
-
i0.ɵɵtemplate(6, WriteLinkedCasesComponent_ng_container_6_Template, 2, 0, "ng-container", 3);
|
|
19934
|
-
i0.ɵɵtemplate(7, WriteLinkedCasesComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
19935
|
-
i0.ɵɵelementEnd();
|
|
19936
|
-
i0.ɵɵelementEnd();
|
|
19937
|
-
} if (rf & 2) {
|
|
19938
|
-
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
19939
|
-
i0.ɵɵadvance(1);
|
|
19940
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
19941
|
-
i0.ɵɵadvance(1);
|
|
19942
|
-
i0.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
19943
|
-
i0.ɵɵadvance(1);
|
|
19944
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.BEFORE_YOU_START);
|
|
19945
|
-
i0.ɵɵadvance(1);
|
|
19946
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.NO_LINKED_CASES);
|
|
19947
|
-
i0.ɵɵadvance(1);
|
|
19948
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.LINK_CASE);
|
|
19949
|
-
i0.ɵɵadvance(1);
|
|
19950
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.UNLINK_CASE);
|
|
19951
|
-
i0.ɵɵadvance(1);
|
|
19952
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.CHECK_YOUR_ANSWERS);
|
|
19953
|
-
} }, encapsulation: 2 });
|
|
19954
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesComponent, [{
|
|
19955
|
-
type: Component,
|
|
19956
|
-
args: [{
|
|
19957
|
-
selector: 'ccd-write-linked-cases',
|
|
19958
|
-
templateUrl: './write-linked-cases.component.html'
|
|
19959
|
-
}]
|
|
19960
|
-
}], function () { return [{ type: CaseEditComponent }, { type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }]; }, { caseFields: [{
|
|
19961
|
-
type: Input
|
|
19962
|
-
}], caseField: [{
|
|
19963
|
-
type: Input
|
|
19964
|
-
}], onLinkedCasesSelected: [{
|
|
19965
|
-
type: Output
|
|
19966
|
-
}], isLinkedCasesJourney: [{
|
|
19967
|
-
type: Input
|
|
19968
|
-
}], formGroup: [{
|
|
19969
|
-
type: Input
|
|
19970
|
-
}] }); })();
|
|
19971
|
-
|
|
19972
|
-
function ReadLinkedCasesComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
19973
|
-
i0.ɵɵelementContainer(0);
|
|
19974
|
-
} }
|
|
19975
|
-
function ReadLinkedCasesComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
19976
|
-
i0.ɵɵelementContainer(0);
|
|
19977
|
-
} }
|
|
19978
|
-
function ReadLinkedCasesComponent_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
19979
|
-
i0.ɵɵelementContainer(0);
|
|
19980
|
-
} }
|
|
19981
|
-
function ReadLinkedCasesComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
19982
|
-
i0.ɵɵelementContainer(0);
|
|
19983
|
-
} }
|
|
19984
|
-
function ReadLinkedCasesComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
19985
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
19986
|
-
i0.ɵɵelementStart(0, "div", 8);
|
|
19987
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
19988
|
-
i0.ɵɵtext(2);
|
|
19989
|
-
i0.ɵɵelementEnd();
|
|
19990
|
-
i0.ɵɵelementStart(3, "span", 10);
|
|
19991
|
-
i0.ɵɵelementStart(4, "a", 11);
|
|
19992
|
-
i0.ɵɵlistener("click", function ReadLinkedCasesComponent_ng_template_16_Template_a_click_4_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.reloadCurrentRoute(); });
|
|
19993
|
-
i0.ɵɵtext(5, "Reload the Linked cases tab");
|
|
19994
|
-
i0.ɵɵelementEnd();
|
|
19995
|
-
i0.ɵɵelementEnd();
|
|
19996
|
-
i0.ɵɵelementEnd();
|
|
19997
|
-
} if (rf & 2) {
|
|
19998
|
-
const ctx_r5 = i0.ɵɵnextContext();
|
|
19999
|
-
i0.ɵɵadvance(2);
|
|
20000
|
-
i0.ɵɵtextInterpolate(ctx_r5.serverLinkedApiError.message);
|
|
20001
|
-
} }
|
|
20002
|
-
function ReadLinkedCasesComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
20003
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
20004
|
-
i0.ɵɵelementStart(0, "div", 8);
|
|
20005
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
20006
|
-
i0.ɵɵtext(2);
|
|
20007
|
-
i0.ɵɵelementEnd();
|
|
20008
|
-
i0.ɵɵelementStart(3, "span", 10);
|
|
20009
|
-
i0.ɵɵelementStart(4, "a", 11);
|
|
20010
|
-
i0.ɵɵlistener("click", function ReadLinkedCasesComponent_ng_template_18_Template_a_click_4_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.reloadCurrentRoute(); });
|
|
20011
|
-
i0.ɵɵtext(5, "Reload the Linked cases tab");
|
|
20012
|
-
i0.ɵɵelementEnd();
|
|
20013
|
-
i0.ɵɵelementEnd();
|
|
20014
|
-
i0.ɵɵelementEnd();
|
|
20015
|
-
} if (rf & 2) {
|
|
20016
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
20017
|
-
i0.ɵɵadvance(2);
|
|
20018
|
-
i0.ɵɵtextInterpolate(ctx_r7.serverError.message);
|
|
20019
|
-
} }
|
|
20020
|
-
class ReadLinkedCasesComponent {
|
|
20021
|
-
constructor(router, linkedCasesService, appConfig, commonDataService) {
|
|
20022
|
-
this.router = router;
|
|
20023
|
-
this.linkedCasesService = linkedCasesService;
|
|
20024
|
-
this.appConfig = appConfig;
|
|
20025
|
-
this.commonDataService = commonDataService;
|
|
20026
|
-
this.reasonListLoaded = false;
|
|
20027
|
-
this.reload = false;
|
|
20028
|
-
this.serverError = null;
|
|
20029
|
-
this.serverLinkedApiError = null;
|
|
20030
|
-
this.isServerReasonCodeError = false;
|
|
20031
|
-
this.isServerJurisdictionError = false;
|
|
20032
|
-
this.isServerLinkedFromError = false;
|
|
20033
|
-
this.isServerLinkedToError = false;
|
|
20034
|
-
}
|
|
20035
|
-
ngOnInit() {
|
|
20036
|
-
this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
|
|
20037
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
20038
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
20039
|
-
next: reasons => {
|
|
20040
|
-
this.reasonListLoaded = true;
|
|
20041
|
-
this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);
|
|
20042
|
-
},
|
|
20043
|
-
error: error => {
|
|
20044
|
-
this.isServerReasonCodeError = true;
|
|
20045
|
-
this.linkedCasesService.isServerReasonCodeError = true;
|
|
20046
|
-
}
|
|
20047
|
-
});
|
|
20048
|
-
this.serverLinkedApiError = {
|
|
20049
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
20050
|
-
};
|
|
20051
|
-
this.serverError = {
|
|
20052
|
-
id: 'backendError', message: 'There has been a system error and your request could not be processed.'
|
|
20053
|
-
};
|
|
20054
|
-
}
|
|
20055
|
-
ngAfterViewInit() {
|
|
20056
|
-
this.linkedCasesService.caseFieldValue = this.caseField.value || [];
|
|
20057
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
20058
|
-
if (labelField && labelField.length) {
|
|
20059
|
-
labelField[0].replaceWith('');
|
|
20060
|
-
}
|
|
20061
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
20062
|
-
if (labelField && labelField.length) {
|
|
20063
|
-
labelField[0].replaceWith('');
|
|
20064
|
-
}
|
|
20065
|
-
labelField = document.getElementsByClassName('case-viewer-label');
|
|
20066
|
-
if (labelField && labelField.length) {
|
|
20067
|
-
labelField[0].replaceWith('');
|
|
20068
|
-
}
|
|
20069
|
-
}
|
|
20070
|
-
reloadCurrentRoute() {
|
|
20071
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(() => {
|
|
20072
|
-
window.location.hash = 'Linked cases';
|
|
20073
|
-
});
|
|
20074
|
-
}
|
|
20075
|
-
getFailureLinkedToNotification(evt) {
|
|
20076
|
-
this.isServerLinkedToError = true;
|
|
20077
|
-
}
|
|
20078
|
-
getFailureLinkedFromNotification(evt) {
|
|
20079
|
-
this.isServerLinkedFromError = true;
|
|
20080
|
-
}
|
|
20081
|
-
}
|
|
20082
|
-
ReadLinkedCasesComponent.ɵfac = function ReadLinkedCasesComponent_Factory(t) { return new (t || ReadLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService)); };
|
|
20083
|
-
ReadLinkedCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadLinkedCasesComponent, selectors: [["ccd-read-linked-cases"]], inputs: { caseField: "caseField" }, decls: 20, vars: 10, consts: [[1, "govuk-!-margin-bottom-2"], [1, "heading-h1"], [1, "table-sub-heading"], ["reloadPage", "reload", 3, "caseField", "notifyAPIFailure"], [4, "ngIf", "ngIfThen"], [1, "govuk-!-margin-top-8"], ["singleApiError", ""], ["multiApisError", ""], [1, "govuk-main-wrapper"], [1, "govuk-body"], [1, "govuk-body", "align-left"], ["href", "javascript:void(0)", "id", "reload-linked-cases-tab", 1, "govuk-link", 3, "click"]], template: function ReadLinkedCasesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20084
|
-
i0.ɵɵelementStart(0, "div");
|
|
20085
|
-
i0.ɵɵelementStart(1, "div", 0);
|
|
20086
|
-
i0.ɵɵelementStart(2, "h1", 1);
|
|
20087
|
-
i0.ɵɵtext(3, "Linked cases");
|
|
20088
|
-
i0.ɵɵelementEnd();
|
|
20089
|
-
i0.ɵɵelementStart(4, "label", 2);
|
|
20090
|
-
i0.ɵɵtext(5, "This case is linked to");
|
|
20091
|
-
i0.ɵɵelementEnd();
|
|
20092
|
-
i0.ɵɵelementStart(6, "ccd-linked-cases-to-table", 3);
|
|
20093
|
-
i0.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_to_table_notifyAPIFailure_6_listener($event) { return ctx.getFailureLinkedToNotification($event); });
|
|
20094
|
-
i0.ɵɵelementEnd();
|
|
20095
|
-
i0.ɵɵtemplate(7, ReadLinkedCasesComponent_ng_container_7_Template, 1, 0, "ng-container", 4);
|
|
20096
|
-
i0.ɵɵtemplate(8, ReadLinkedCasesComponent_ng_container_8_Template, 1, 0, "ng-container", 4);
|
|
20097
|
-
i0.ɵɵelementEnd();
|
|
20098
|
-
i0.ɵɵelementStart(9, "div", 5);
|
|
20099
|
-
i0.ɵɵelementStart(10, "label", 2);
|
|
20100
|
-
i0.ɵɵtext(11, "This case is linked from");
|
|
20101
|
-
i0.ɵɵelementEnd();
|
|
20102
|
-
i0.ɵɵelement(12, "br");
|
|
20103
|
-
i0.ɵɵelementStart(13, "ccd-linked-cases-from-table", 3);
|
|
20104
|
-
i0.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_from_table_notifyAPIFailure_13_listener($event) { return ctx.getFailureLinkedFromNotification($event); });
|
|
20105
|
-
i0.ɵɵelementEnd();
|
|
20106
|
-
i0.ɵɵtemplate(14, ReadLinkedCasesComponent_ng_container_14_Template, 1, 0, "ng-container", 4);
|
|
20107
|
-
i0.ɵɵtemplate(15, ReadLinkedCasesComponent_ng_container_15_Template, 1, 0, "ng-container", 4);
|
|
20108
|
-
i0.ɵɵelementEnd();
|
|
20109
|
-
i0.ɵɵelementEnd();
|
|
20110
|
-
i0.ɵɵtemplate(16, ReadLinkedCasesComponent_ng_template_16_Template, 6, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
20111
|
-
i0.ɵɵtemplate(18, ReadLinkedCasesComponent_ng_template_18_Template, 6, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
20112
|
-
} if (rf & 2) {
|
|
20113
|
-
const _r4 = i0.ɵɵreference(17);
|
|
20114
|
-
const _r6 = i0.ɵɵreference(19);
|
|
20115
|
-
i0.ɵɵadvance(6);
|
|
20116
|
-
i0.ɵɵproperty("caseField", ctx.caseField);
|
|
20117
|
-
i0.ɵɵadvance(1);
|
|
20118
|
-
i0.ɵɵproperty("ngIf", ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
20119
|
-
i0.ɵɵadvance(1);
|
|
20120
|
-
i0.ɵɵproperty("ngIf", !(ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedToError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
20121
|
-
i0.ɵɵadvance(5);
|
|
20122
|
-
i0.ɵɵproperty("caseField", ctx.caseField);
|
|
20123
|
-
i0.ɵɵadvance(1);
|
|
20124
|
-
i0.ɵɵproperty("ngIf", ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
20125
|
-
i0.ɵɵadvance(1);
|
|
20126
|
-
i0.ɵɵproperty("ngIf", !(ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedFromError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
20127
|
-
} }, styles: [".table-sub-heading[_ngcontent-%COMP%]{font-size:24px;font-weight:700}"] });
|
|
20128
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadLinkedCasesComponent, [{
|
|
20129
|
-
type: Component,
|
|
20130
|
-
args: [{
|
|
20131
|
-
selector: 'ccd-read-linked-cases',
|
|
20132
|
-
templateUrl: './read-linked-cases.component.html',
|
|
20133
|
-
styleUrls: ['./read-linked-cases.component.scss']
|
|
20134
|
-
}]
|
|
20135
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: AbstractAppConfig }, { type: CommonDataService }]; }, { caseField: [{
|
|
20136
|
-
type: Input
|
|
20137
|
-
}] }); })();
|
|
20138
|
-
|
|
20139
|
-
class LinkCaseReason {
|
|
20140
|
-
}
|
|
20141
|
-
class CCDCaseLinkType {
|
|
20142
|
-
}
|
|
20143
|
-
class CaseLink {
|
|
20144
|
-
}
|
|
20145
|
-
class LinkReason {
|
|
20146
|
-
}
|
|
20147
|
-
class LinkedCasesResponse {
|
|
20148
|
-
}
|
|
20149
|
-
class CaseLinkResponse {
|
|
20150
|
-
}
|
|
20151
|
-
class LinkDetails {
|
|
20152
|
-
}
|
|
20153
|
-
class Terms {
|
|
20154
|
-
}
|
|
20155
|
-
class ESQueryType {
|
|
20156
|
-
}
|
|
20157
|
-
|
|
20158
17837
|
class CollectionCreateCheckerService {
|
|
20159
17838
|
setDisplayContextForChildren(caseField, profile) {
|
|
20160
17839
|
const children = this.getCaseFieldChildren(caseField);
|
|
@@ -21923,7 +19602,6 @@ const PALETTE_COMPONENTS = [
|
|
|
21923
19602
|
ReadComplexFieldTableComponent,
|
|
21924
19603
|
ReadComplexFieldCollectionTableComponent,
|
|
21925
19604
|
ReadCaseFlagFieldComponent,
|
|
21926
|
-
ReadLinkedCasesComponent,
|
|
21927
19605
|
// Write
|
|
21928
19606
|
WriteJudicialUserFieldComponent,
|
|
21929
19607
|
WriteAddressFieldComponent,
|
|
@@ -21963,14 +19641,6 @@ const PALETTE_COMPONENTS = [
|
|
|
21963
19641
|
CaseFileViewOverlayMenuComponent,
|
|
21964
19642
|
CaseFileViewFolderDocumentActionsComponent,
|
|
21965
19643
|
CaseFileViewFolderSelectorComponent,
|
|
21966
|
-
LinkedCasesToTableComponent,
|
|
21967
|
-
LinkedCasesFromTableComponent,
|
|
21968
|
-
BeforeYouStartComponent,
|
|
21969
|
-
LinkCasesComponent,
|
|
21970
|
-
CheckYourAnswersComponent,
|
|
21971
|
-
WriteLinkedCasesComponent,
|
|
21972
|
-
UnLinkCasesComponent,
|
|
21973
|
-
NoLinkedCasesComponent,
|
|
21974
19644
|
// component for dynamic list
|
|
21975
19645
|
WriteDynamicMultiSelectListFieldComponent,
|
|
21976
19646
|
WriteDynamicRadioListFieldComponent,
|
|
@@ -21993,7 +19663,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
21993
19663
|
FileUploadStateService,
|
|
21994
19664
|
FileUploadProgressGuard,
|
|
21995
19665
|
WindowService,
|
|
21996
|
-
LinkedCasesService,
|
|
21997
19666
|
CommonDataService,
|
|
21998
19667
|
JurisdictionService,
|
|
21999
19668
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -22088,7 +19757,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22088
19757
|
ReadComplexFieldTableComponent,
|
|
22089
19758
|
ReadComplexFieldCollectionTableComponent,
|
|
22090
19759
|
ReadCaseFlagFieldComponent,
|
|
22091
|
-
ReadLinkedCasesComponent,
|
|
22092
19760
|
// Write
|
|
22093
19761
|
WriteJudicialUserFieldComponent,
|
|
22094
19762
|
WriteAddressFieldComponent,
|
|
@@ -22128,14 +19796,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22128
19796
|
CaseFileViewOverlayMenuComponent,
|
|
22129
19797
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22130
19798
|
CaseFileViewFolderSelectorComponent,
|
|
22131
|
-
LinkedCasesToTableComponent,
|
|
22132
|
-
LinkedCasesFromTableComponent,
|
|
22133
|
-
BeforeYouStartComponent,
|
|
22134
|
-
LinkCasesComponent,
|
|
22135
|
-
CheckYourAnswersComponent,
|
|
22136
|
-
WriteLinkedCasesComponent,
|
|
22137
|
-
UnLinkCasesComponent,
|
|
22138
|
-
NoLinkedCasesComponent,
|
|
22139
19799
|
// component for dynamic list
|
|
22140
19800
|
WriteDynamicMultiSelectListFieldComponent,
|
|
22141
19801
|
WriteDynamicRadioListFieldComponent,
|
|
@@ -22216,7 +19876,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22216
19876
|
ReadComplexFieldTableComponent,
|
|
22217
19877
|
ReadComplexFieldCollectionTableComponent,
|
|
22218
19878
|
ReadCaseFlagFieldComponent,
|
|
22219
|
-
ReadLinkedCasesComponent,
|
|
22220
19879
|
// Write
|
|
22221
19880
|
WriteJudicialUserFieldComponent,
|
|
22222
19881
|
WriteAddressFieldComponent,
|
|
@@ -22256,14 +19915,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22256
19915
|
CaseFileViewOverlayMenuComponent,
|
|
22257
19916
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22258
19917
|
CaseFileViewFolderSelectorComponent,
|
|
22259
|
-
LinkedCasesToTableComponent,
|
|
22260
|
-
LinkedCasesFromTableComponent,
|
|
22261
|
-
BeforeYouStartComponent,
|
|
22262
|
-
LinkCasesComponent,
|
|
22263
|
-
CheckYourAnswersComponent,
|
|
22264
|
-
WriteLinkedCasesComponent,
|
|
22265
|
-
UnLinkCasesComponent,
|
|
22266
|
-
NoLinkedCasesComponent,
|
|
22267
19918
|
// component for dynamic list
|
|
22268
19919
|
WriteDynamicMultiSelectListFieldComponent,
|
|
22269
19920
|
WriteDynamicRadioListFieldComponent,
|
|
@@ -22340,7 +19991,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22340
19991
|
FileUploadStateService,
|
|
22341
19992
|
FileUploadProgressGuard,
|
|
22342
19993
|
WindowService,
|
|
22343
|
-
LinkedCasesService,
|
|
22344
19994
|
CommonDataService,
|
|
22345
19995
|
JurisdictionService,
|
|
22346
19996
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -22358,7 +20008,6 @@ i0.ɵɵsetComponentScope(ReadOrganisationFieldComponent, [i1.NgSwitch, i1.NgSwit
|
|
|
22358
20008
|
i0.ɵɵsetComponentScope(ReadOrderSummaryFieldComponent, [i1.NgForOf, ReadOrderSummaryRowComponent,
|
|
22359
20009
|
ReadMoneyGbpFieldComponent], []);
|
|
22360
20010
|
i0.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, [ReadMoneyGbpFieldComponent], []);
|
|
22361
|
-
i0.ɵɵsetComponentScope(ReadCaseLinkFieldComponent, [i1.NgIf, ReadLinkedCasesComponent], [CaseReferencePipe]);
|
|
22362
20011
|
i0.ɵɵsetComponentScope(ReadComplexFieldComponent, [i1.NgSwitch, i1.NgSwitchCase, ReadComplexFieldRawComponent,
|
|
22363
20012
|
ReadComplexFieldCollectionTableComponent, i1.NgSwitchDefault, ReadComplexFieldTableComponent], []);
|
|
22364
20013
|
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, [i1.NgForOf, FieldReadComponent], [ReadFieldsFilterPipe]);
|
|
@@ -22366,7 +20015,6 @@ i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1.NgForOf, i1.NgIf, F
|
|
|
22366
20015
|
i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1.NgForOf, i1.NgIf, FieldReadComponent,
|
|
22367
20016
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1.KeyValuePipe, IsCompoundPipe]);
|
|
22368
20017
|
i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1.NgSwitch, i1.NgSwitchCase, CaseFlagSummaryListComponent, i1.NgSwitchDefault, i1.NgForOf, i1.NgIf, CaseFlagTableComponent], []);
|
|
22369
|
-
i0.ɵɵsetComponentScope(ReadLinkedCasesComponent, [LinkedCasesToTableComponent, i1.NgIf, LinkedCasesFromTableComponent], []);
|
|
22370
20018
|
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1.NgIf, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.SelectControlValueAccessor, i1.NgForOf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
|
|
22371
20019
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2.NgControlStatusGroup, i2.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
22372
20020
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1.NgClass, i1.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
|
|
@@ -22381,21 +20029,11 @@ i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2.NgControlStatusGro
|
|
|
22381
20029
|
WriteOrganisationComplexFieldComponent], [i1.AsyncPipe]);
|
|
22382
20030
|
i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
22383
20031
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
|
|
22384
|
-
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, WriteLinkedCasesComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
|
|
22385
20032
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22386
20033
|
i0.ɵɵsetComponentScope(
|
|
22387
20034
|
// ComponentLauncher web components
|
|
22388
|
-
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent,
|
|
22389
|
-
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent,
|
|
22390
|
-
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22391
|
-
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22392
|
-
i0.ɵɵsetComponentScope(LinkCasesComponent, [i1.NgIf, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i2.FormArrayName, i1.NgForOf, i2.FormGroupName, i2.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22393
|
-
i0.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22394
|
-
i0.ɵɵsetComponentScope(WriteLinkedCasesComponent, [i1.NgIf, i1.NgForOf, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgSwitch, i1.NgSwitchCase, BeforeYouStartComponent,
|
|
22395
|
-
NoLinkedCasesComponent,
|
|
22396
|
-
LinkCasesComponent,
|
|
22397
|
-
UnLinkCasesComponent,
|
|
22398
|
-
CheckYourAnswersComponent], []);
|
|
20035
|
+
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.ɵcs], []);
|
|
20036
|
+
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.ɵcs], []);
|
|
22399
20037
|
|
|
22400
20038
|
class Confirmation {
|
|
22401
20039
|
constructor(caseId, status, header, body) {
|
|
@@ -31066,5 +28704,5 @@ class TestRouteSnapshotBuilder {
|
|
|
31066
28704
|
* Generated bundle index. Do not edit.
|
|
31067
28705
|
*/
|
|
31068
28706
|
|
|
31069
|
-
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,
|
|
28707
|
+
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, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFieldReadComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, 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, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, 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, Embedded, 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, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, 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, TestRouteSnapshotBuilder, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, 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, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
31070
28708
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|