@hmcts/ccd-case-ui-toolkit 5.0.44-angular11-welsh-release-part1-4 → 5.0.44-angular11-welsh-release-part1-7
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 +724 -3257
- 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-create/case-create.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +7 -17
- package/esm2015/lib/shared/components/case-editor/case-progress/case-progress.component.js +2 -2
- package/esm2015/lib/shared/components/case-editor/services/case-edit-wizard.guard.js +3 -2
- 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/case-editor/services/work-allocation.service.js +2 -2
- package/esm2015/lib/shared/components/case-timeline/case-timeline.component.js +2 -2
- package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +12 -4
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/abstract-form-field.component.js +2 -4
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +5 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +3 -4
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
- 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 +68 -77
- package/esm2015/lib/shared/components/palette/label/label-field.component.js +24 -5
- package/esm2015/lib/shared/components/palette/palette.module.js +21 -67
- package/esm2015/lib/shared/components/palette/palette.service.js +4 -10
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +1 -10
- package/esm2015/lib/shared/domain/alert/alert-status-params.model.js +2 -0
- 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/alert/alert.service.js +28 -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 +328 -2637
- 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/case-edit-wizard.guard.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/case-viewer/case-event-trigger/case-event-trigger.component.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/base-field/field-read.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.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/label/label-field.component.d.ts +2 -1
- package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +59 -68
- 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/alert/alert-status-params.model.d.ts +6 -0
- package/lib/shared/domain/alert/alert-status-params.model.d.ts.map +1 -0
- 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/alert/alert.service.d.ts +8 -4
- package/lib/shared/services/alert/alert.service.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
|
@@ -9,7 +9,7 @@ import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
|
9
9
|
import * as i2$1 from '@angular/forms';
|
|
10
10
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
11
|
import polling from 'rx-polling';
|
|
12
|
-
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer,
|
|
12
|
+
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent } from 'rxjs';
|
|
13
13
|
import * as i1$2 from '@angular/common/http';
|
|
14
14
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
15
15
|
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first, switchMap, takeUntil, filter } from 'rxjs/operators';
|
|
@@ -39,7 +39,7 @@ import * as i3$1 from '@angular/material/input';
|
|
|
39
39
|
import { MatInputModule } from '@angular/material/input';
|
|
40
40
|
import * as i3 from '@hmcts/ccpay-web-component';
|
|
41
41
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
42
|
-
import * as
|
|
42
|
+
import * as i12 from '@hmcts/media-viewer';
|
|
43
43
|
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
44
44
|
import * as i2$2 from '@nicky-lenaers/ngx-scroll-to';
|
|
45
45
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
@@ -141,13 +141,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
141
141
|
i0.ɵɵadvance(4);
|
|
142
142
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
|
|
143
143
|
} }
|
|
144
|
-
const _c0$
|
|
144
|
+
const _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
145
145
|
const _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
146
146
|
class FooterComponent {
|
|
147
147
|
}
|
|
148
148
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
149
149
|
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) {
|
|
150
|
-
i0.ɵɵprojectionDef(_c0$
|
|
150
|
+
i0.ɵɵprojectionDef(_c0$Y);
|
|
151
151
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
152
152
|
i0.ɵɵelementStart(1, "div", 1);
|
|
153
153
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
|
|
@@ -220,7 +220,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
220
220
|
i0.ɵɵadvance(3);
|
|
221
221
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx_r2.title));
|
|
222
222
|
} }
|
|
223
|
-
const _c0$
|
|
223
|
+
const _c0$X = [[["", "headerNavigation", ""]]];
|
|
224
224
|
const _c1$q = ["[headerNavigation]"];
|
|
225
225
|
class HeaderBarComponent {
|
|
226
226
|
constructor() {
|
|
@@ -232,7 +232,7 @@ class HeaderBarComponent {
|
|
|
232
232
|
}
|
|
233
233
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
234
234
|
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
235
|
-
i0.ɵɵprojectionDef(_c0$
|
|
235
|
+
i0.ɵɵprojectionDef(_c0$X);
|
|
236
236
|
i0.ɵɵelementStart(0, "header", 0);
|
|
237
237
|
i0.ɵɵelementStart(1, "div", 1);
|
|
238
238
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -295,13 +295,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
295
295
|
type: Output
|
|
296
296
|
}] }); })();
|
|
297
297
|
|
|
298
|
-
const _c0$
|
|
298
|
+
const _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
299
299
|
const _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
300
300
|
class NavigationComponent {
|
|
301
301
|
}
|
|
302
302
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
303
303
|
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) {
|
|
304
|
-
i0.ɵɵprojectionDef(_c0$
|
|
304
|
+
i0.ɵɵprojectionDef(_c0$W);
|
|
305
305
|
i0.ɵɵelementStart(0, "div");
|
|
306
306
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
307
307
|
i0.ɵɵprojection(2);
|
|
@@ -429,13 +429,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
429
429
|
}]
|
|
430
430
|
}], null, null); })();
|
|
431
431
|
|
|
432
|
-
const _c0$
|
|
432
|
+
const _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
433
433
|
const _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
434
434
|
class BodyComponent {
|
|
435
435
|
}
|
|
436
436
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
437
437
|
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) {
|
|
438
|
-
i0.ɵɵprojectionDef(_c0$
|
|
438
|
+
i0.ɵɵprojectionDef(_c0$V);
|
|
439
439
|
i0.ɵɵelementStart(0, "div", 0);
|
|
440
440
|
i0.ɵɵprojection(1);
|
|
441
441
|
i0.ɵɵprojection(2, 1);
|
|
@@ -452,7 +452,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
452
452
|
}]
|
|
453
453
|
}], null, null); })();
|
|
454
454
|
|
|
455
|
-
const _c0$
|
|
455
|
+
const _c0$U = function (a0) { return { "govuk-input--error": a0 }; };
|
|
456
456
|
function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
457
457
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
458
458
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -471,7 +471,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
471
471
|
i0.ɵɵadvance(1);
|
|
472
472
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Hour"));
|
|
473
473
|
i0.ɵɵadvance(2);
|
|
474
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
474
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$U, ctx_r3.isInvalid));
|
|
475
475
|
} }
|
|
476
476
|
function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
477
477
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -491,7 +491,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
|
|
|
491
491
|
i0.ɵɵadvance(1);
|
|
492
492
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Minute"));
|
|
493
493
|
i0.ɵɵadvance(2);
|
|
494
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
494
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$U, ctx_r4.isInvalid));
|
|
495
495
|
} }
|
|
496
496
|
function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
497
497
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -511,7 +511,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
511
511
|
i0.ɵɵadvance(1);
|
|
512
512
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Second"));
|
|
513
513
|
i0.ɵɵadvance(2);
|
|
514
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
514
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$U, ctx_r5.isInvalid));
|
|
515
515
|
} }
|
|
516
516
|
class DateInputComponent {
|
|
517
517
|
constructor() {
|
|
@@ -745,19 +745,19 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
745
745
|
i0.ɵɵadvance(1);
|
|
746
746
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Day"));
|
|
747
747
|
i0.ɵɵadvance(2);
|
|
748
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$
|
|
748
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$U, ctx.isInvalid));
|
|
749
749
|
i0.ɵɵadvance(3);
|
|
750
750
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
751
751
|
i0.ɵɵadvance(1);
|
|
752
752
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Month"));
|
|
753
753
|
i0.ɵɵadvance(2);
|
|
754
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$
|
|
754
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$U, ctx.isInvalid));
|
|
755
755
|
i0.ɵɵadvance(3);
|
|
756
756
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
757
757
|
i0.ɵɵadvance(1);
|
|
758
758
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 25, "Year"));
|
|
759
759
|
i0.ɵɵadvance(2);
|
|
760
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$
|
|
760
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$U, ctx.isInvalid));
|
|
761
761
|
i0.ɵɵadvance(2);
|
|
762
762
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
763
763
|
i0.ɵɵadvance(1);
|
|
@@ -827,7 +827,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
827
827
|
i0.ɵɵelementEnd();
|
|
828
828
|
i0.ɵɵelementContainerEnd();
|
|
829
829
|
} }
|
|
830
|
-
const _c0$
|
|
830
|
+
const _c0$T = ["*"];
|
|
831
831
|
var AlertMessageType;
|
|
832
832
|
(function (AlertMessageType) {
|
|
833
833
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -847,7 +847,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
847
847
|
AlertComponent.TYPE_ERROR = 'error';
|
|
848
848
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
849
849
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
850
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
850
|
+
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$T, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
851
851
|
i0.ɵɵprojectionDef();
|
|
852
852
|
i0.ɵɵelementStart(0, "div", 0);
|
|
853
853
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1085,7 +1085,7 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1085
1085
|
type: Output
|
|
1086
1086
|
}] }); })();
|
|
1087
1087
|
|
|
1088
|
-
const _c0$
|
|
1088
|
+
const _c0$S = function (a0) { return { "js-hidden": a0 }; };
|
|
1089
1089
|
const _c1$n = ["*"];
|
|
1090
1090
|
class TabComponent {
|
|
1091
1091
|
}
|
|
@@ -1096,7 +1096,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1096
1096
|
i0.ɵɵprojection(1);
|
|
1097
1097
|
i0.ɵɵelementEnd();
|
|
1098
1098
|
} if (rf & 2) {
|
|
1099
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
1099
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$S, !ctx.selected));
|
|
1100
1100
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1101
1101
|
} }, directives: [i2.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}}"] });
|
|
1102
1102
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -1116,7 +1116,7 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1116
1116
|
type: Input
|
|
1117
1117
|
}] }); })();
|
|
1118
1118
|
|
|
1119
|
-
const _c0$
|
|
1119
|
+
const _c0$R = ["tab"];
|
|
1120
1120
|
const _c1$m = function () { return ["."]; };
|
|
1121
1121
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1122
1122
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1163,7 +1163,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
1163
1163
|
let _t;
|
|
1164
1164
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1165
1165
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1166
|
-
i0.ɵɵviewQuery(_c0$
|
|
1166
|
+
i0.ɵɵviewQuery(_c0$R, 1);
|
|
1167
1167
|
} if (rf & 2) {
|
|
1168
1168
|
let _t;
|
|
1169
1169
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1230,7 +1230,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1230
1230
|
}]
|
|
1231
1231
|
}], null, null); })();
|
|
1232
1232
|
|
|
1233
|
-
const _c0$
|
|
1233
|
+
const _c0$Q = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1234
1234
|
class ActivityBannerComponent {
|
|
1235
1235
|
constructor() { }
|
|
1236
1236
|
ngOnInit() {
|
|
@@ -1249,7 +1249,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1249
1249
|
i0.ɵɵelementEnd();
|
|
1250
1250
|
i0.ɵɵelementEnd();
|
|
1251
1251
|
} if (rf & 2) {
|
|
1252
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$
|
|
1252
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$Q, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1253
1253
|
i0.ɵɵadvance(2);
|
|
1254
1254
|
i0.ɵɵpropertyInterpolate("alt", i0.ɵɵpipeBind1(3, 4, ctx.description));
|
|
1255
1255
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -1964,8 +1964,9 @@ ActivityModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
1964
1964
|
}], null, null); })();
|
|
1965
1965
|
|
|
1966
1966
|
class AlertService {
|
|
1967
|
-
constructor(router) {
|
|
1967
|
+
constructor(router, rpxTranslationService) {
|
|
1968
1968
|
this.router = router;
|
|
1969
|
+
this.rpxTranslationService = rpxTranslationService;
|
|
1969
1970
|
// the preserved messages
|
|
1970
1971
|
this.preservedError = '';
|
|
1971
1972
|
this.preservedWarning = '';
|
|
@@ -2008,28 +2009,45 @@ class AlertService {
|
|
|
2008
2009
|
this.alertObserver.next(null);
|
|
2009
2010
|
this.message = '';
|
|
2010
2011
|
}
|
|
2011
|
-
error(
|
|
2012
|
+
error({ phrase, replacements }) {
|
|
2013
|
+
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
2012
2014
|
this.preservedError = this.preserveMessages(message);
|
|
2013
2015
|
const alert = { level: 'error', message };
|
|
2014
2016
|
this.errorObserver.next(alert);
|
|
2015
2017
|
// EUI-3381.
|
|
2016
2018
|
this.push(alert);
|
|
2017
2019
|
}
|
|
2018
|
-
warning(
|
|
2020
|
+
warning({ phrase, replacements }) {
|
|
2021
|
+
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
2019
2022
|
this.preservedWarning = this.preserveMessages(message);
|
|
2020
2023
|
const alert = { level: 'warning', message };
|
|
2021
2024
|
this.warningObserver.next(alert);
|
|
2022
2025
|
// EUI-3381.
|
|
2023
2026
|
this.push(alert);
|
|
2024
2027
|
}
|
|
2025
|
-
success(
|
|
2026
|
-
|
|
2028
|
+
success({ preserve, phrase, replacements }) {
|
|
2029
|
+
const message = this.getTranslationWithReplacements(phrase, replacements);
|
|
2027
2030
|
this.preserveAlerts = preserve || this.preserveAlerts;
|
|
2028
2031
|
const alert = { level: 'success', message };
|
|
2032
|
+
this.preservedSuccess = this.preserveMessages(message);
|
|
2029
2033
|
this.successObserver.next(alert);
|
|
2030
2034
|
// EUI-3381.
|
|
2031
2035
|
this.push(alert);
|
|
2032
2036
|
}
|
|
2037
|
+
getTranslationWithReplacements(phrase, replacements) {
|
|
2038
|
+
let message;
|
|
2039
|
+
if (replacements) {
|
|
2040
|
+
this.rpxTranslationService.getTranslationWithReplacements(phrase, replacements).subscribe(translation => {
|
|
2041
|
+
message = translation;
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
else {
|
|
2045
|
+
this.rpxTranslationService.getTranslation(phrase).subscribe(translation => {
|
|
2046
|
+
message = translation;
|
|
2047
|
+
});
|
|
2048
|
+
}
|
|
2049
|
+
return message;
|
|
2050
|
+
}
|
|
2033
2051
|
setPreserveAlerts(preserve, urlInfo) {
|
|
2034
2052
|
// if there is no url setting then just preserve the messages
|
|
2035
2053
|
if (!urlInfo) {
|
|
@@ -2073,11 +2091,11 @@ class AlertService {
|
|
|
2073
2091
|
});
|
|
2074
2092
|
}
|
|
2075
2093
|
}
|
|
2076
|
-
AlertService.ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(i0.ɵɵinject(i1$1.Router)); };
|
|
2094
|
+
AlertService.ɵfac = function AlertService_Factory(t) { return new (t || AlertService)(i0.ɵɵinject(i1$1.Router), i0.ɵɵinject(i1.RpxTranslationService)); };
|
|
2077
2095
|
AlertService.ɵprov = i0.ɵɵdefineInjectable({ token: AlertService, factory: AlertService.ɵfac });
|
|
2078
2096
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AlertService, [{
|
|
2079
2097
|
type: Injectable
|
|
2080
|
-
}], function () { return [{ type: i1$1.Router }]; }, null); })();
|
|
2098
|
+
}], function () { return [{ type: i1$1.Router }, { type: i1.RpxTranslationService }]; }, null); })();
|
|
2081
2099
|
|
|
2082
2100
|
const DRAFT_PREFIX = 'DRAFT';
|
|
2083
2101
|
const DRAFT_QUERY_PARAM = 'draft';
|
|
@@ -2680,14 +2698,6 @@ class IsCompoundPipe {
|
|
|
2680
2698
|
if (!field || !field.field_type || !field.field_type.type) {
|
|
2681
2699
|
return false;
|
|
2682
2700
|
}
|
|
2683
|
-
// Case link tab spacing alignment fix
|
|
2684
|
-
// This Pipe needs to be re-visited
|
|
2685
|
-
// to make it more generic to support and fix alignments issues for multiple tabs
|
|
2686
|
-
if (field.field_type.collection_field_type &&
|
|
2687
|
-
field.field_type.collection_field_type.id &&
|
|
2688
|
-
field.field_type.collection_field_type.id === IsCompoundPipe.CASE_LINK_FIELD_TYPE) {
|
|
2689
|
-
return true;
|
|
2690
|
-
}
|
|
2691
2701
|
if (IsCompoundPipe.COMPOUND_TYPES.indexOf(field.field_type.type) !== -1) {
|
|
2692
2702
|
if (IsCompoundPipe.EXCLUDE.indexOf(field.field_type.id) !== -1) {
|
|
2693
2703
|
return false;
|
|
@@ -2697,7 +2707,6 @@ class IsCompoundPipe {
|
|
|
2697
2707
|
return false;
|
|
2698
2708
|
}
|
|
2699
2709
|
}
|
|
2700
|
-
IsCompoundPipe.CASE_LINK_FIELD_TYPE = 'CaseLink';
|
|
2701
2710
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
2702
2711
|
'Complex',
|
|
2703
2712
|
'Label',
|
|
@@ -3398,12 +3407,6 @@ class FieldsUtils {
|
|
|
3398
3407
|
static isCollectionWithValue(pageFormFields) {
|
|
3399
3408
|
return pageFormFields[0]['value'] !== undefined;
|
|
3400
3409
|
}
|
|
3401
|
-
static isLinkedCasesCaseField(caseField) {
|
|
3402
|
-
if (!caseField) {
|
|
3403
|
-
return false;
|
|
3404
|
-
}
|
|
3405
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
3406
|
-
}
|
|
3407
3410
|
static cloneObject(obj) {
|
|
3408
3411
|
return Object.assign({}, obj);
|
|
3409
3412
|
}
|
|
@@ -3602,7 +3605,7 @@ class FieldsUtils {
|
|
|
3602
3605
|
// If the Flags CaseField has a value, it is a root-level Complex field; if it does not, it is a Flags
|
|
3603
3606
|
// CaseField that is a sub-field within another Complex field, so use the currentValue value (if any)
|
|
3604
3607
|
// instead. The exception to this is the "caseFlags" Flags CaseField, which will have an empty object value
|
|
3605
|
-
// initially
|
|
3608
|
+
// initially, because no party name is required
|
|
3606
3609
|
if (caseField.value && FieldsUtils.isNonEmptyObject(caseField.value) ||
|
|
3607
3610
|
caseField.id === this.caseLevelCaseFlagsFieldId) {
|
|
3608
3611
|
flags.push(this.mapCaseFieldToFlagsWithFormGroupPathObject(caseField, pathToFlagsFormGroup));
|
|
@@ -4305,9 +4308,7 @@ class AbstractFormFieldComponent {
|
|
|
4305
4308
|
}
|
|
4306
4309
|
addControlToFormGroup(control, parent, replace) {
|
|
4307
4310
|
if (replace) {
|
|
4308
|
-
if (this.caseField.field_type && this.caseField.field_type.
|
|
4309
|
-
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4310
|
-
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4311
|
+
if (this.caseField.field_type && this.caseField.field_type.id === 'CaseLink' && this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4311
4312
|
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4312
4313
|
}
|
|
4313
4314
|
else {
|
|
@@ -5356,9 +5357,6 @@ class FormValueService {
|
|
|
5356
5357
|
// Clear out any MultiSelect labels.
|
|
5357
5358
|
FormValueService.removeMultiSelectLabels(data);
|
|
5358
5359
|
}
|
|
5359
|
-
/**
|
|
5360
|
-
* Remove any empty or invalid array with only id
|
|
5361
|
-
*/
|
|
5362
5360
|
removeInvalidCollectionData(data, field) {
|
|
5363
5361
|
if (data[field.id] && data[field.id].length > 0) {
|
|
5364
5362
|
for (const objCollection of data[field.id]) {
|
|
@@ -5417,13 +5415,17 @@ class FormValueService {
|
|
|
5417
5415
|
// nothing for a given case field ID (hence the use of hasOwnProperty())
|
|
5418
5416
|
if (data.hasOwnProperty(caseField.id) && caseField.value) {
|
|
5419
5417
|
// Create new object for the case field ID within the data object, if necessary
|
|
5420
|
-
if (
|
|
5421
|
-
data
|
|
5418
|
+
if (data[caseField.id]) {
|
|
5419
|
+
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
5420
|
+
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
5421
|
+
Object.keys(data[caseField.id]).forEach(key => {
|
|
5422
|
+
if (caseField.value.hasOwnProperty(key)) {
|
|
5423
|
+
data[caseField.id][key] = caseField.value[key];
|
|
5424
|
+
}
|
|
5425
|
+
});
|
|
5422
5426
|
}
|
|
5423
|
-
// Copy all values from the corresponding CaseField; this ensures all nested flag data (for example, a
|
|
5424
|
-
// Flags field within a Complex field or a collection of Complex fields) is copied across
|
|
5425
|
-
Object.keys(caseField.value).forEach(key => data[caseField.id][key] = caseField.value[key]);
|
|
5426
5427
|
}
|
|
5428
|
+
;
|
|
5427
5429
|
});
|
|
5428
5430
|
}
|
|
5429
5431
|
}
|
|
@@ -6839,6 +6841,9 @@ class CaseAccessUtils {
|
|
|
6839
6841
|
else if (this.roleOrCategoryExists(CaseAccessUtils.ADMIN_ROLE, CaseAccessUtils.ADMIN_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
6840
6842
|
return CaseAccessUtils.ADMIN_ROLE_CATEGORY;
|
|
6841
6843
|
}
|
|
6844
|
+
else if (this.roleOrCategoryExists(CaseAccessUtils.CTSC_ROLE, CaseAccessUtils.CTSC_ROLE_CATEGORY, roleKeywords, roleCategories)) {
|
|
6845
|
+
return CaseAccessUtils.CTSC_ROLE_CATEGORY;
|
|
6846
|
+
}
|
|
6842
6847
|
else {
|
|
6843
6848
|
return CaseAccessUtils.LEGAL_OPERATIONS_ROLE_CATEGORY;
|
|
6844
6849
|
}
|
|
@@ -6863,6 +6868,9 @@ class CaseAccessUtils {
|
|
|
6863
6868
|
case CaseAccessUtils.ADMIN_ROLE_CATEGORY:
|
|
6864
6869
|
roleName = `${accessType}-access-${CaseAccessUtils.ADMIN_ROLE_NAME}`;
|
|
6865
6870
|
break;
|
|
6871
|
+
case CaseAccessUtils.CTSC_ROLE_CATEGORY:
|
|
6872
|
+
roleName = `${accessType}-access-${CaseAccessUtils.CTSC_ROLE_NAME}`;
|
|
6873
|
+
break;
|
|
6866
6874
|
default:
|
|
6867
6875
|
roleName = `${accessType}-access-${CaseAccessUtils.LEGAL_OPERATIONS_ROLE_NAME}`;
|
|
6868
6876
|
break;
|
|
@@ -6919,6 +6927,9 @@ CaseAccessUtils.LEGAL_OPERATIONS_ROLE_NAME = 'legal-ops';
|
|
|
6919
6927
|
CaseAccessUtils.CITIZEN_ROLE = 'citizen';
|
|
6920
6928
|
CaseAccessUtils.CITIZEN_ROLE_CATEGORY = 'CITIZEN';
|
|
6921
6929
|
CaseAccessUtils.CITIZEN_ROLE_NAME = 'citizen';
|
|
6930
|
+
CaseAccessUtils.CTSC_ROLE = 'ctsc';
|
|
6931
|
+
CaseAccessUtils.CTSC_ROLE_CATEGORY = 'CTSC';
|
|
6932
|
+
CaseAccessUtils.CTSC_ROLE_NAME = 'ctsc';
|
|
6922
6933
|
|
|
6923
6934
|
class WizardPageFieldToCaseFieldMapper {
|
|
6924
6935
|
mapAll(wizardPageFields, caseFields) {
|
|
@@ -7151,7 +7162,7 @@ class WorkAllocationService {
|
|
|
7151
7162
|
if (this.userIsCaseworker(userDetails.userInfo.roles)) {
|
|
7152
7163
|
// when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
|
|
7153
7164
|
this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
|
|
7154
|
-
this.alertService.warning('A task could not be completed successfully. Please complete the task associated with the case manually.');
|
|
7165
|
+
this.alertService.warning({ phrase: 'A task could not be completed successfully. Please complete the task associated with the case manually.' });
|
|
7155
7166
|
}
|
|
7156
7167
|
}
|
|
7157
7168
|
/**
|
|
@@ -7285,33 +7296,6 @@ class CasesService {
|
|
|
7285
7296
|
return throwError(error);
|
|
7286
7297
|
}), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
7287
7298
|
}
|
|
7288
|
-
/**
|
|
7289
|
-
* TODO: Gets case link responses
|
|
7290
|
-
* @returns case link responses
|
|
7291
|
-
*/
|
|
7292
|
-
getCaseLinkResponses() {
|
|
7293
|
-
const headers = new HttpHeaders()
|
|
7294
|
-
.set('experimental', 'true')
|
|
7295
|
-
.set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
|
|
7296
|
-
.set('Content-Type', 'application/json');
|
|
7297
|
-
const loadingToken = this.loadingService.register();
|
|
7298
|
-
return this.http
|
|
7299
|
-
.get('assets/getCaseReasons.json', { headers, observe: 'body' })
|
|
7300
|
-
.pipe(map((reasons) => {
|
|
7301
|
-
return reasons.sort((reasonA, reasonB) => reasonA.value_en > reasonB.value_en ? 1 : -1);
|
|
7302
|
-
}), catchError(error => {
|
|
7303
|
-
this.errorService.setError(error);
|
|
7304
|
-
return throwError(error);
|
|
7305
|
-
}), finalize(() => this.loadingService.unregister(loadingToken)));
|
|
7306
|
-
}
|
|
7307
|
-
getLinkedCases(caseId) {
|
|
7308
|
-
const url = `${this.appConfig.getCaseDataStoreApiUrl()}/${caseId}`;
|
|
7309
|
-
return this.http
|
|
7310
|
-
.get(url)
|
|
7311
|
-
.pipe(catchError(error => {
|
|
7312
|
-
return throwError(error);
|
|
7313
|
-
}));
|
|
7314
|
-
}
|
|
7315
7299
|
getEventTrigger(caseTypeId, eventTriggerId, caseId, ignoreWarning) {
|
|
7316
7300
|
ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
|
|
7317
7301
|
const url = this.buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning);
|
|
@@ -7345,7 +7329,7 @@ class CasesService {
|
|
|
7345
7329
|
.set('Content-Type', 'application/json');
|
|
7346
7330
|
return this.http
|
|
7347
7331
|
.post(url, eventData, { headers, observe: 'body' })
|
|
7348
|
-
.pipe(
|
|
7332
|
+
.pipe(catchError(error => {
|
|
7349
7333
|
this.errorService.setError(error);
|
|
7350
7334
|
return throwError(error);
|
|
7351
7335
|
}));
|
|
@@ -7378,7 +7362,7 @@ class CasesService {
|
|
|
7378
7362
|
.set('Content-Type', 'application/json');
|
|
7379
7363
|
return this.http
|
|
7380
7364
|
.post(url, eventData, { headers, observe: 'body' })
|
|
7381
|
-
.pipe(
|
|
7365
|
+
.pipe(catchError(error => {
|
|
7382
7366
|
this.errorService.setError(error);
|
|
7383
7367
|
return throwError(error);
|
|
7384
7368
|
}));
|
|
@@ -7417,10 +7401,6 @@ class CasesService {
|
|
|
7417
7401
|
}
|
|
7418
7402
|
return url;
|
|
7419
7403
|
}
|
|
7420
|
-
processResponseBody(body, eventData) {
|
|
7421
|
-
this.processTasksOnSuccess(body, eventData.event);
|
|
7422
|
-
return body;
|
|
7423
|
-
}
|
|
7424
7404
|
initialiseEventTrigger(eventTrigger) {
|
|
7425
7405
|
if (!eventTrigger.wizard_pages) {
|
|
7426
7406
|
eventTrigger.wizard_pages = [];
|
|
@@ -7430,22 +7410,6 @@ class CasesService {
|
|
|
7430
7410
|
wizardPage.case_fields = this.orderService.sort(this.wizardPageFieldToCaseFieldMapper.mapAll(wizardPage.wizard_page_fields, eventTrigger.case_fields));
|
|
7431
7411
|
});
|
|
7432
7412
|
}
|
|
7433
|
-
processTasksOnSuccess(caseData, eventData) {
|
|
7434
|
-
// The following code is work allocation 1 related
|
|
7435
|
-
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation') {
|
|
7436
|
-
// This is used a feature toggle to
|
|
7437
|
-
// control the work allocation
|
|
7438
|
-
if (!this.isPuiCaseManager()) {
|
|
7439
|
-
this.workAllocationService.completeAppropriateTask(caseData.id, eventData.id, caseData.jurisdiction, caseData.case_type)
|
|
7440
|
-
.subscribe(() => {
|
|
7441
|
-
// Success. Do nothing.
|
|
7442
|
-
}, error => {
|
|
7443
|
-
// Show an appropriate warning about something that went wrong.
|
|
7444
|
-
console.warn('Could not process tasks for this case event', error);
|
|
7445
|
-
});
|
|
7446
|
-
}
|
|
7447
|
-
}
|
|
7448
|
-
}
|
|
7449
7413
|
/*
|
|
7450
7414
|
Checks if the user has role of pui-case-manager and returns true or false
|
|
7451
7415
|
*/
|
|
@@ -7468,7 +7432,7 @@ class CasesService {
|
|
|
7468
7432
|
if (userInfoStr) {
|
|
7469
7433
|
userInfo = JSON.parse(userInfoStr);
|
|
7470
7434
|
}
|
|
7471
|
-
const roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7435
|
+
const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7472
7436
|
const roleName = camUtils.getAMRoleName('challenged', roleCategory);
|
|
7473
7437
|
const beginTime = new Date();
|
|
7474
7438
|
const endTime = new Date(new Date().setUTCHours(23, 59, 59, 999));
|
|
@@ -7485,7 +7449,7 @@ class CasesService {
|
|
|
7485
7449
|
if (userInfoStr) {
|
|
7486
7450
|
userInfo = JSON.parse(userInfoStr);
|
|
7487
7451
|
}
|
|
7488
|
-
const roleCategory = camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7452
|
+
const roleCategory = userInfo.roleCategory || camUtils.getMappedRoleCategory(userInfo.roles, userInfo.roleCategories);
|
|
7489
7453
|
const roleName = camUtils.getAMRoleName('specific', roleCategory);
|
|
7490
7454
|
const id = userInfo.id ? userInfo.id : userInfo.uid;
|
|
7491
7455
|
const payload = camUtils.getAMPayload(null, id, roleName, roleCategory, 'SPECIFIC', caseId, sar, null, null, true);
|
|
@@ -7558,7 +7522,7 @@ class CaseCreateComponent {
|
|
|
7558
7522
|
this.eventTriggerService.announceEventTrigger(eventTrigger);
|
|
7559
7523
|
})
|
|
7560
7524
|
.catch((error) => {
|
|
7561
|
-
this.alertService.error(error.message);
|
|
7525
|
+
this.alertService.error({ phrase: error.message });
|
|
7562
7526
|
return throwError(error);
|
|
7563
7527
|
});
|
|
7564
7528
|
}
|
|
@@ -7745,7 +7709,8 @@ class CaseEditWizardGuard {
|
|
|
7745
7709
|
if (!wizard.hasPage(pageId)) {
|
|
7746
7710
|
this.goToFirst(wizard, canShowPredicate, route)
|
|
7747
7711
|
.then(() => {
|
|
7748
|
-
|
|
7712
|
+
const replacements = { PAGEID: pageId };
|
|
7713
|
+
this.alertService.error({ phrase: 'No page could be found for %PAGEID%', replacements });
|
|
7749
7714
|
});
|
|
7750
7715
|
return Promise.resolve(false);
|
|
7751
7716
|
}
|
|
@@ -8079,8 +8044,7 @@ class PageValidationService {
|
|
|
8079
8044
|
.filter(caseField => !this.isHidden(caseField, editForm))
|
|
8080
8045
|
.every(caseField => {
|
|
8081
8046
|
const theControl = editForm.controls['data'].get(caseField.id);
|
|
8082
|
-
return this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl)
|
|
8083
|
-
this.checkCaseLinksCollectionField(caseField, theControl);
|
|
8047
|
+
return this.checkDocumentField(caseField, theControl) && this.checkOptionalField(caseField, theControl);
|
|
8084
8048
|
});
|
|
8085
8049
|
}
|
|
8086
8050
|
isHidden(caseField, editForm, path) {
|
|
@@ -8108,13 +8072,6 @@ class PageValidationService {
|
|
|
8108
8072
|
checkMandatoryField(caseField, theControl) {
|
|
8109
8073
|
return this.caseFieldService.isMandatory(caseField) && theControl === null;
|
|
8110
8074
|
}
|
|
8111
|
-
checkCaseLinksCollectionField(caseField, theControl) {
|
|
8112
|
-
if (caseField && caseField.id === 'caseLinks') {
|
|
8113
|
-
return theControl && theControl.value && Array.isArray(theControl.value) &&
|
|
8114
|
-
theControl.value.length ? true : false;
|
|
8115
|
-
}
|
|
8116
|
-
return true;
|
|
8117
|
-
}
|
|
8118
8075
|
}
|
|
8119
8076
|
PageValidationService.ɵfac = function PageValidationService_Factory(t) { return new (t || PageValidationService)(i0.ɵɵinject(CaseFieldService)); };
|
|
8120
8077
|
PageValidationService.ɵprov = i0.ɵɵdefineInjectable({ token: PageValidationService, factory: PageValidationService.ɵfac });
|
|
@@ -8497,12 +8454,10 @@ class CaseEditDataService {
|
|
|
8497
8454
|
constructor() {
|
|
8498
8455
|
this.title$ = new BehaviorSubject(null);
|
|
8499
8456
|
this.formValidationErrors$ = new BehaviorSubject([]);
|
|
8500
|
-
this.linkError$ = new BehaviorSubject(null);
|
|
8501
8457
|
this.eventTriggerName$ = new BehaviorSubject(null);
|
|
8502
8458
|
this.triggerSubmitEvent$ = new BehaviorSubject(null);
|
|
8503
8459
|
this.caseTitle$ = this.title$.asObservable();
|
|
8504
8460
|
this.caseFormValidationErrors$ = this.formValidationErrors$.asObservable();
|
|
8505
|
-
this.caseLinkError$ = this.linkError$.asObservable();
|
|
8506
8461
|
this.caseEventTriggerName$ = this.eventTriggerName$.asObservable();
|
|
8507
8462
|
this.caseTriggerSubmitEvent$ = this.triggerSubmitEvent$.asObservable();
|
|
8508
8463
|
}
|
|
@@ -8512,18 +8467,12 @@ class CaseEditDataService {
|
|
|
8512
8467
|
setCaseEventTriggerName(triggerName) {
|
|
8513
8468
|
this.eventTriggerName$.next(triggerName);
|
|
8514
8469
|
}
|
|
8515
|
-
setCaseLinkError(error) {
|
|
8516
|
-
this.linkError$.next(error);
|
|
8517
|
-
}
|
|
8518
8470
|
setFormValidationErrors(validationErrors) {
|
|
8519
8471
|
this.formValidationErrors$.next(validationErrors);
|
|
8520
8472
|
}
|
|
8521
8473
|
clearFormValidationErrors() {
|
|
8522
8474
|
this.formValidationErrors$.next([]);
|
|
8523
8475
|
}
|
|
8524
|
-
clearCaseLinkError() {
|
|
8525
|
-
this.linkError$.next(null);
|
|
8526
|
-
}
|
|
8527
8476
|
addFormValidationError(validationError) {
|
|
8528
8477
|
this.formValidationErrors$.next(this.formValidationErrors$.getValue().concat([validationError]));
|
|
8529
8478
|
}
|
|
@@ -9002,27 +8951,18 @@ class CaseEditPageComponent {
|
|
|
9002
8951
|
this.caseEditDataService.addFormValidationError({ id, message: `${label} exceeds the maximum length` });
|
|
9003
8952
|
fieldElement.markAsDirty();
|
|
9004
8953
|
}
|
|
9005
|
-
else if (this.caseLinkError && FieldsUtils.isLinkedCasesCaseField(casefield)) {
|
|
9006
|
-
this.validationErrors.push({ id: this.caseLinkError.componentId, message: this.caseLinkError.errorMessage });
|
|
9007
|
-
}
|
|
9008
8954
|
else if (fieldElement.invalid) {
|
|
9009
8955
|
if (casefield.isComplex()) {
|
|
9010
8956
|
this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id);
|
|
9011
8957
|
}
|
|
9012
8958
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
}
|
|
9017
|
-
else {
|
|
9018
|
-
const fieldArray = fieldElement;
|
|
9019
|
-
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
9020
|
-
id = `${fieldArray['component']['collItems'][0].prefix}`;
|
|
9021
|
-
}
|
|
9022
|
-
fieldArray.controls.forEach((c) => {
|
|
9023
|
-
this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id);
|
|
9024
|
-
});
|
|
8959
|
+
const fieldArray = fieldElement;
|
|
8960
|
+
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
8961
|
+
id = `${fieldArray['component']['collItems'][0].prefix}`;
|
|
9025
8962
|
}
|
|
8963
|
+
fieldArray.controls.forEach((c) => {
|
|
8964
|
+
this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id);
|
|
8965
|
+
});
|
|
9026
8966
|
}
|
|
9027
8967
|
else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
|
|
9028
8968
|
// Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
|
|
@@ -9270,7 +9210,6 @@ class CaseEditPageComponent {
|
|
|
9270
9210
|
}
|
|
9271
9211
|
syncCaseEditDataService() {
|
|
9272
9212
|
this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
|
|
9273
|
-
this.caseEditDataService.setCaseLinkError(this.caseLinkError);
|
|
9274
9213
|
this.caseEditDataService.setCaseTitle(this.getCaseTitle());
|
|
9275
9214
|
this.caseEditDataService.caseFormValidationErrors$.subscribe({
|
|
9276
9215
|
next: (validationErrors) => this.validationErrors = validationErrors
|
|
@@ -9736,10 +9675,6 @@ class ReadFieldsFilterPipe {
|
|
|
9736
9675
|
&& ReadFieldsFilterPipe.NESTED_TYPES[field.field_type.type](field, value);
|
|
9737
9676
|
}
|
|
9738
9677
|
static keepField(field, value, ignoreLabels = false) {
|
|
9739
|
-
// We should always render the caselinks tables from and to regardless whether it has valid value or not
|
|
9740
|
-
if (field.id === 'caseLinks') {
|
|
9741
|
-
return true;
|
|
9742
|
-
}
|
|
9743
9678
|
// We shouldn't ditch labels.
|
|
9744
9679
|
if (!ignoreLabels && field.field_type.type === 'Label' && (field.label || '').length > 0) {
|
|
9745
9680
|
return true;
|
|
@@ -10004,154 +9939,6 @@ FieldsFilterPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldsFilter", type: Fie
|
|
|
10004
9939
|
}]
|
|
10005
9940
|
}], null, null); })();
|
|
10006
9941
|
|
|
10007
|
-
class LinkedCasesService {
|
|
10008
|
-
constructor(jurisdictionService, searchService) {
|
|
10009
|
-
this.jurisdictionService = jurisdictionService;
|
|
10010
|
-
this.searchService = searchService;
|
|
10011
|
-
this.caseFieldValue = [];
|
|
10012
|
-
this.isLinkedCasesEventTrigger = false;
|
|
10013
|
-
this.linkCaseReasons = [];
|
|
10014
|
-
this.linkedCases = [];
|
|
10015
|
-
this.initialCaseLinks = [];
|
|
10016
|
-
this.editMode = false;
|
|
10017
|
-
this.jurisdictionsResponse = [];
|
|
10018
|
-
this.serverError = null;
|
|
10019
|
-
this.serverLinkedApiError = null;
|
|
10020
|
-
this.isServerReasonCodeError = false;
|
|
10021
|
-
this.caseJurisdictionID = null;
|
|
10022
|
-
this.groupLinkedCasesByCaseType = (arrObj, key) => {
|
|
10023
|
-
return arrObj.reduce((rv, x) => {
|
|
10024
|
-
(rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
|
|
10025
|
-
return rv;
|
|
10026
|
-
}, {});
|
|
10027
|
-
};
|
|
10028
|
-
this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
|
|
10029
|
-
this.jurisdictionsResponse = jurisdictions;
|
|
10030
|
-
}, (error) => {
|
|
10031
|
-
this.serverJurisdictionError = true;
|
|
10032
|
-
});
|
|
10033
|
-
}
|
|
10034
|
-
constructElasticSearchQuery(caseIds, size) {
|
|
10035
|
-
return {
|
|
10036
|
-
query: {
|
|
10037
|
-
terms: {
|
|
10038
|
-
reference: caseIds,
|
|
10039
|
-
},
|
|
10040
|
-
},
|
|
10041
|
-
size,
|
|
10042
|
-
};
|
|
10043
|
-
}
|
|
10044
|
-
mapResponse(esSearchCasesResponse) {
|
|
10045
|
-
const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
10046
|
-
return caseInfo && {
|
|
10047
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
10048
|
-
caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
|
|
10049
|
-
caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
|
|
10050
|
-
service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
|
|
10051
|
-
state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
|
|
10052
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
10053
|
-
caseInfo.value.ReasonForLink.map(reason => reason.value && reason.value.Reason),
|
|
10054
|
-
};
|
|
10055
|
-
}
|
|
10056
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
10057
|
-
return forkJoin(searchCasesResponse);
|
|
10058
|
-
}
|
|
10059
|
-
getAllLinkedCaseInformation() {
|
|
10060
|
-
const searchCasesResponse = [];
|
|
10061
|
-
const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
|
|
10062
|
-
Object.keys(linkedCaseIds).forEach(key => {
|
|
10063
|
-
const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
|
|
10064
|
-
const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
|
|
10065
|
-
searchCasesResponse.push(query);
|
|
10066
|
-
});
|
|
10067
|
-
if (searchCasesResponse.length) {
|
|
10068
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
10069
|
-
const casesResponse = [];
|
|
10070
|
-
searchCases.forEach(response => {
|
|
10071
|
-
response.results.forEach((result) => {
|
|
10072
|
-
casesResponse.push(this.mapResponse(result));
|
|
10073
|
-
});
|
|
10074
|
-
});
|
|
10075
|
-
const caseLinks = casesResponse.map(item => {
|
|
10076
|
-
return {
|
|
10077
|
-
caseReference: item.caseReference,
|
|
10078
|
-
caseName: item.caseName,
|
|
10079
|
-
caseService: item.service,
|
|
10080
|
-
caseType: item.caseType,
|
|
10081
|
-
unlink: false,
|
|
10082
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
10083
|
-
return {
|
|
10084
|
-
reasonCode: reason
|
|
10085
|
-
};
|
|
10086
|
-
}),
|
|
10087
|
-
};
|
|
10088
|
-
});
|
|
10089
|
-
this.linkedCases = caseLinks;
|
|
10090
|
-
this.serverLinkedApiError = null;
|
|
10091
|
-
}, err => {
|
|
10092
|
-
this.serverLinkedApiError = {
|
|
10093
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
10094
|
-
};
|
|
10095
|
-
});
|
|
10096
|
-
}
|
|
10097
|
-
}
|
|
10098
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
10099
|
-
const selectedJurisdiction = this.jurisdictionsResponse &&
|
|
10100
|
-
this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
|
|
10101
|
-
const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
|
|
10102
|
-
const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
|
|
10103
|
-
switch (fieldName) {
|
|
10104
|
-
case 'JURISDICTION':
|
|
10105
|
-
return selectedJurisdiction && selectedJurisdiction.description;
|
|
10106
|
-
case 'CASE_TYPE':
|
|
10107
|
-
return selectedCaseType && selectedCaseType.name;
|
|
10108
|
-
case 'CASE_TYPE_DESCRIPTION':
|
|
10109
|
-
return selectedCaseType && selectedCaseType.description;
|
|
10110
|
-
case 'STATE':
|
|
10111
|
-
return state && state.name || fieldValue;
|
|
10112
|
-
case 'STATE_DESCRIPTION':
|
|
10113
|
-
return state && state.description || fieldValue;
|
|
10114
|
-
default:
|
|
10115
|
-
break;
|
|
10116
|
-
}
|
|
10117
|
-
}
|
|
10118
|
-
getCaseName(searchCasesResponse) {
|
|
10119
|
-
let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
|
|
10120
|
-
const tabs = searchCasesResponse.tabs.filter(tab => {
|
|
10121
|
-
const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
|
|
10122
|
-
if (caseNameHmctsInternalField) {
|
|
10123
|
-
caseName = caseNameHmctsInternalField.value;
|
|
10124
|
-
}
|
|
10125
|
-
});
|
|
10126
|
-
return caseName;
|
|
10127
|
-
}
|
|
10128
|
-
}
|
|
10129
|
-
LinkedCasesService.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
10130
|
-
LinkedCasesService.ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
|
|
10131
|
-
LinkedCasesService.ɵprov = i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
|
|
10132
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
|
|
10133
|
-
type: Injectable
|
|
10134
|
-
}], function () { return [{ type: JurisdictionService }, { type: SearchService }]; }, null); })();
|
|
10135
|
-
|
|
10136
|
-
class LinkCasesReasonValuePipe {
|
|
10137
|
-
constructor(linkedCasesService) {
|
|
10138
|
-
this.linkedCasesService = linkedCasesService;
|
|
10139
|
-
}
|
|
10140
|
-
transform(reasonCode) {
|
|
10141
|
-
const reasonCodeMapping = this.linkedCasesService.linkCaseReasons &&
|
|
10142
|
-
this.linkedCasesService.linkCaseReasons.find(reason => reason.key === reasonCode);
|
|
10143
|
-
return reasonCodeMapping && reasonCodeMapping.value_en;
|
|
10144
|
-
}
|
|
10145
|
-
}
|
|
10146
|
-
LinkCasesReasonValuePipe.ɵfac = function LinkCasesReasonValuePipe_Factory(t) { return new (t || LinkCasesReasonValuePipe)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
10147
|
-
LinkCasesReasonValuePipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdLinkCasesReasonValue", type: LinkCasesReasonValuePipe, pure: true });
|
|
10148
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesReasonValuePipe, [{
|
|
10149
|
-
type: Pipe,
|
|
10150
|
-
args: [{
|
|
10151
|
-
name: 'ccdLinkCasesReasonValue'
|
|
10152
|
-
}]
|
|
10153
|
-
}], function () { return [{ type: LinkedCasesService }]; }, null); })();
|
|
10154
|
-
|
|
10155
9942
|
var SortOrder;
|
|
10156
9943
|
(function (SortOrder) {
|
|
10157
9944
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
@@ -10187,8 +9974,7 @@ const pipeDeclarations = [
|
|
|
10187
9974
|
CcdCYAPageLabelFilterPipe,
|
|
10188
9975
|
ReadFieldsFilterPipe,
|
|
10189
9976
|
CcdTabFieldsPipe,
|
|
10190
|
-
CcdPageFieldsPipe
|
|
10191
|
-
LinkCasesReasonValuePipe
|
|
9977
|
+
CcdPageFieldsPipe
|
|
10192
9978
|
];
|
|
10193
9979
|
class PipesModule {
|
|
10194
9980
|
}
|
|
@@ -10204,16 +9990,14 @@ PipesModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
10204
9990
|
CcdCYAPageLabelFilterPipe,
|
|
10205
9991
|
ReadFieldsFilterPipe,
|
|
10206
9992
|
CcdTabFieldsPipe,
|
|
10207
|
-
CcdPageFieldsPipe,
|
|
10208
|
-
LinkCasesReasonValuePipe], imports: [CommonModule], exports: [CaseReferencePipe,
|
|
9993
|
+
CcdPageFieldsPipe], imports: [CommonModule], exports: [CaseReferencePipe,
|
|
10209
9994
|
SortSearchResultPipe,
|
|
10210
9995
|
CcdCaseTitlePipe,
|
|
10211
9996
|
CcdCollectionTableCaseFieldsFilterPipe,
|
|
10212
9997
|
CcdCYAPageLabelFilterPipe,
|
|
10213
9998
|
ReadFieldsFilterPipe,
|
|
10214
9999
|
CcdTabFieldsPipe,
|
|
10215
|
-
CcdPageFieldsPipe
|
|
10216
|
-
LinkCasesReasonValuePipe] }); })();
|
|
10000
|
+
CcdPageFieldsPipe] }); })();
|
|
10217
10001
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PipesModule, [{
|
|
10218
10002
|
type: NgModule,
|
|
10219
10003
|
args: [{
|
|
@@ -10436,7 +10220,7 @@ class AddressOption {
|
|
|
10436
10220
|
}
|
|
10437
10221
|
}
|
|
10438
10222
|
|
|
10439
|
-
const _c0$
|
|
10223
|
+
const _c0$P = ["writeComplexFieldComponent"];
|
|
10440
10224
|
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
10441
10225
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10442
10226
|
i0.ɵɵtext(1);
|
|
@@ -10648,7 +10432,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10648
10432
|
}
|
|
10649
10433
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10650
10434
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10651
|
-
i0.ɵɵviewQuery(_c0$
|
|
10435
|
+
i0.ɵɵviewQuery(_c0$P, 1);
|
|
10652
10436
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10653
10437
|
} if (rf & 2) {
|
|
10654
10438
|
let _t;
|
|
@@ -10734,7 +10518,7 @@ function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if
|
|
|
10734
10518
|
} if (rf & 2) {
|
|
10735
10519
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10736
10520
|
i0.ɵɵadvance(1);
|
|
10737
|
-
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
10521
|
+
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
10738
10522
|
} }
|
|
10739
10523
|
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10740
10524
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10750,7 +10534,7 @@ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10750
10534
|
i0.ɵɵelementEnd();
|
|
10751
10535
|
i0.ɵɵelement(6, "div", 9);
|
|
10752
10536
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10753
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2,
|
|
10537
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10754
10538
|
i0.ɵɵelementEnd();
|
|
10755
10539
|
i0.ɵɵelementEnd();
|
|
10756
10540
|
i0.ɵɵelementEnd();
|
|
@@ -10826,7 +10610,7 @@ class CaseFileViewFieldComponent {
|
|
|
10826
10610
|
}
|
|
10827
10611
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10828
10612
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
10829
|
-
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10613
|
+
CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10830
10614
|
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10831
10615
|
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
10832
10616
|
} if (rf & 2) {
|
|
@@ -10860,7 +10644,7 @@ function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
|
10860
10644
|
} if (rf & 2) {
|
|
10861
10645
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10862
10646
|
i0.ɵɵadvance(1);
|
|
10863
|
-
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
10647
|
+
i0.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
|
|
10864
10648
|
} }
|
|
10865
10649
|
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10866
10650
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -10876,7 +10660,7 @@ function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10876
10660
|
i0.ɵɵelementEnd();
|
|
10877
10661
|
i0.ɵɵelement(6, "div", 9);
|
|
10878
10662
|
i0.ɵɵelementStart(7, "div", 10);
|
|
10879
|
-
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2,
|
|
10663
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
|
|
10880
10664
|
i0.ɵɵelementEnd();
|
|
10881
10665
|
i0.ɵɵelementEnd();
|
|
10882
10666
|
i0.ɵɵelementEnd();
|
|
@@ -10894,7 +10678,7 @@ class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
|
10894
10678
|
}
|
|
10895
10679
|
}
|
|
10896
10680
|
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10897
|
-
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10681
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10898
10682
|
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10899
10683
|
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10900
10684
|
} if (rf & 2) {
|
|
@@ -11228,7 +11012,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
11228
11012
|
i0.ɵɵadvance(1);
|
|
11229
11013
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
11230
11014
|
} }
|
|
11231
|
-
const _c0$
|
|
11015
|
+
const _c0$O = function (a0) { return { "form-group-error": a0 }; };
|
|
11232
11016
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11233
11017
|
i0.ɵɵelementStart(0, "div", 8);
|
|
11234
11018
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -11247,7 +11031,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
11247
11031
|
i0.ɵɵadvance(1);
|
|
11248
11032
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
11249
11033
|
i0.ɵɵadvance(1);
|
|
11250
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
11034
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$O, ctx_r1.errorMessages.length > 0));
|
|
11251
11035
|
i0.ɵɵadvance(1);
|
|
11252
11036
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
11253
11037
|
i0.ɵɵadvance(1);
|
|
@@ -11611,8 +11395,8 @@ WriteCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseFlag
|
|
|
11611
11395
|
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null); })();
|
|
11612
11396
|
|
|
11613
11397
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
11614
|
-
i0.ɵɵelementStart(0, "a",
|
|
11615
|
-
i0.ɵɵelementStart(1, "span",
|
|
11398
|
+
i0.ɵɵelementStart(0, "a", 1);
|
|
11399
|
+
i0.ɵɵelementStart(1, "span", 2);
|
|
11616
11400
|
i0.ɵɵtext(2);
|
|
11617
11401
|
i0.ɵɵpipe(3, "ccdCaseReference");
|
|
11618
11402
|
i0.ɵɵelementEnd();
|
|
@@ -11623,114 +11407,74 @@ function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11623
11407
|
i0.ɵɵadvance(2);
|
|
11624
11408
|
i0.ɵɵtextInterpolate(ctx_r0.caseField.value.CaseReference ? i0.ɵɵpipeBind1(3, 2, ctx_r0.caseField.value.CaseReference) : "");
|
|
11625
11409
|
} }
|
|
11626
|
-
function ReadCaseLinkFieldComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
11627
|
-
i0.ɵɵelementContainerStart(0);
|
|
11628
|
-
i0.ɵɵelement(1, "ccd-read-linked-cases", 4);
|
|
11629
|
-
i0.ɵɵelementContainerEnd();
|
|
11630
|
-
} if (rf & 2) {
|
|
11631
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
11632
|
-
i0.ɵɵadvance(1);
|
|
11633
|
-
i0.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
11634
|
-
} }
|
|
11635
11410
|
class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
11636
|
-
constructor() {
|
|
11637
|
-
super(...arguments);
|
|
11638
|
-
this.paletteContext = PaletteContext;
|
|
11639
|
-
}
|
|
11640
11411
|
hasReference() {
|
|
11641
11412
|
return this.caseField.value && this.caseField.value.CaseReference;
|
|
11642
11413
|
}
|
|
11643
|
-
hasCaseLinkCollection() {
|
|
11644
|
-
return (this.caseField.field_type &&
|
|
11645
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
11646
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11647
|
-
}
|
|
11648
11414
|
}
|
|
11649
11415
|
ReadCaseLinkFieldComponent.ɵfac = function ReadCaseLinkFieldComponent_Factory(t) { return ɵReadCaseLinkFieldComponent_BaseFactory(t || ReadCaseLinkFieldComponent); };
|
|
11650
|
-
ReadCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
11416
|
+
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) {
|
|
11651
11417
|
i0.ɵɵtemplate(0, ReadCaseLinkFieldComponent_a_0_Template, 4, 4, "a", 0);
|
|
11652
|
-
i0.ɵɵtemplate(1, ReadCaseLinkFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
|
|
11653
11418
|
} if (rf & 2) {
|
|
11654
11419
|
i0.ɵɵproperty("ngIf", ctx.hasReference());
|
|
11655
|
-
|
|
11656
|
-
i0.ɵɵproperty("ngIf", ctx.hasCaseLinkCollection());
|
|
11657
|
-
} }, encapsulation: 2 });
|
|
11420
|
+
} }, directives: [i2.NgIf], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
11658
11421
|
const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadCaseLinkFieldComponent);
|
|
11659
11422
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCaseLinkFieldComponent, [{
|
|
11660
11423
|
type: Component,
|
|
11661
11424
|
args: [{
|
|
11662
11425
|
selector: 'ccd-read-case-link-field',
|
|
11663
|
-
templateUrl: 'read-case-link-field.html'
|
|
11426
|
+
templateUrl: 'read-case-link-field.html'
|
|
11664
11427
|
}]
|
|
11665
11428
|
}], null, null); })();
|
|
11666
11429
|
|
|
11667
|
-
const _c0$
|
|
11668
|
-
function
|
|
11430
|
+
const _c0$N = ["writeComplexFieldComponent"];
|
|
11431
|
+
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11669
11432
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11670
11433
|
i0.ɵɵtext(1);
|
|
11671
11434
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11672
11435
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
11673
11436
|
i0.ɵɵelementEnd();
|
|
11674
11437
|
} if (rf & 2) {
|
|
11675
|
-
const
|
|
11438
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
11676
11439
|
i0.ɵɵadvance(1);
|
|
11677
|
-
i0.ɵɵ
|
|
11440
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)), "}");
|
|
11678
11441
|
} }
|
|
11679
|
-
function
|
|
11442
|
+
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
11680
11443
|
i0.ɵɵelementStart(0, "span", 7);
|
|
11681
11444
|
i0.ɵɵtext(1);
|
|
11682
11445
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11683
11446
|
i0.ɵɵelementEnd();
|
|
11684
11447
|
} if (rf & 2) {
|
|
11685
|
-
const
|
|
11686
|
-
i0.ɵɵadvance(1);
|
|
11687
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.caseField.hint_text));
|
|
11688
|
-
} }
|
|
11689
|
-
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
11690
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
11691
|
-
i0.ɵɵelementStart(1, "label", 2);
|
|
11692
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 4, 5, "span", 3);
|
|
11693
|
-
i0.ɵɵelementEnd();
|
|
11694
|
-
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 3, 3, "span", 4);
|
|
11695
|
-
i0.ɵɵelement(4, "input", 5);
|
|
11696
|
-
i0.ɵɵelementEnd();
|
|
11697
|
-
} if (rf & 2) {
|
|
11698
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
11699
|
-
i0.ɵɵadvance(1);
|
|
11700
|
-
i0.ɵɵproperty("for", ctx_r0.id());
|
|
11701
|
-
i0.ɵɵadvance(1);
|
|
11702
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
11703
|
-
i0.ɵɵadvance(1);
|
|
11704
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
11448
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
11705
11449
|
i0.ɵɵadvance(1);
|
|
11706
|
-
i0.ɵɵ
|
|
11450
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
11707
11451
|
} }
|
|
11708
|
-
function
|
|
11709
|
-
|
|
11710
|
-
i0.ɵɵ
|
|
11711
|
-
i0.ɵɵ
|
|
11712
|
-
i0.ɵɵ
|
|
11713
|
-
i0.ɵɵelementEnd();
|
|
11452
|
+
function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
11453
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
11454
|
+
i0.ɵɵtext(1);
|
|
11455
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11456
|
+
i0.ɵɵpipe(3, "ccdFirstError");
|
|
11714
11457
|
i0.ɵɵelementEnd();
|
|
11715
11458
|
} if (rf & 2) {
|
|
11716
|
-
const
|
|
11459
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
11717
11460
|
i0.ɵɵadvance(1);
|
|
11718
|
-
i0.ɵɵ
|
|
11461
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)));
|
|
11719
11462
|
} }
|
|
11463
|
+
const _c1$k = function (a0) { return { "form-group-error": a0 }; };
|
|
11720
11464
|
class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
11721
|
-
constructor(linkedCasesService) {
|
|
11722
|
-
super();
|
|
11723
|
-
this.linkedCasesService = linkedCasesService;
|
|
11724
|
-
this.caseFields = [];
|
|
11725
|
-
}
|
|
11726
11465
|
ngOnInit() {
|
|
11727
|
-
|
|
11728
|
-
this.formArray['caseField'] = this.caseField;
|
|
11729
|
-
if (!this.hasCaseLinkCollection()) {
|
|
11466
|
+
if (this.caseField.value) {
|
|
11730
11467
|
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11731
11468
|
CaseReference: new FormControl(this.caseField.value.CaseReference, Validators.required),
|
|
11732
11469
|
}), true);
|
|
11733
11470
|
}
|
|
11471
|
+
else {
|
|
11472
|
+
this.caseLinkGroup = this.registerControl(new FormGroup({
|
|
11473
|
+
CaseReference: new FormControl(null, Validators.required),
|
|
11474
|
+
}), true);
|
|
11475
|
+
}
|
|
11476
|
+
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
11477
|
+
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
11734
11478
|
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
11735
11479
|
// field uses the Complex type, it is meant to be treated as one field
|
|
11736
11480
|
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
@@ -11738,18 +11482,22 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11738
11482
|
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
11739
11483
|
}
|
|
11740
11484
|
}
|
|
11741
|
-
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
11742
11485
|
}
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11486
|
+
caseReferenceValidator() {
|
|
11487
|
+
return (control) => {
|
|
11488
|
+
if (control.value) {
|
|
11489
|
+
if (this.validCaseReference(control.value)) {
|
|
11490
|
+
return null;
|
|
11491
|
+
}
|
|
11492
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11493
|
+
}
|
|
11494
|
+
else {
|
|
11495
|
+
if (control.touched) {
|
|
11496
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
11497
|
+
}
|
|
11498
|
+
}
|
|
11499
|
+
return null;
|
|
11500
|
+
};
|
|
11753
11501
|
}
|
|
11754
11502
|
validCaseReference(valueString) {
|
|
11755
11503
|
if (!valueString) {
|
|
@@ -11757,45 +11505,48 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11757
11505
|
}
|
|
11758
11506
|
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
11759
11507
|
}
|
|
11760
|
-
hasCaseLinkCollection() {
|
|
11761
|
-
return (this.caseField.field_type &&
|
|
11762
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
11763
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
11764
|
-
}
|
|
11765
11508
|
}
|
|
11766
|
-
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return
|
|
11509
|
+
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
11767
11510
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11768
|
-
i0.ɵɵviewQuery(_c0$
|
|
11511
|
+
i0.ɵɵviewQuery(_c0$N, 1);
|
|
11769
11512
|
} if (rf & 2) {
|
|
11770
11513
|
let _t;
|
|
11771
11514
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
11772
|
-
} },
|
|
11773
|
-
i0.ɵɵ
|
|
11774
|
-
i0.ɵɵ
|
|
11775
|
-
i0.ɵɵtemplate(2,
|
|
11776
|
-
i0.ɵɵ
|
|
11515
|
+
} }, 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) {
|
|
11516
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
11517
|
+
i0.ɵɵelementStart(1, "label", 1);
|
|
11518
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
11519
|
+
i0.ɵɵelementEnd();
|
|
11520
|
+
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
11521
|
+
i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 4, 6, "span", 4);
|
|
11522
|
+
i0.ɵɵelement(5, "input", 5);
|
|
11523
|
+
i0.ɵɵelementEnd();
|
|
11777
11524
|
} if (rf & 2) {
|
|
11525
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$k, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
11778
11526
|
i0.ɵɵadvance(1);
|
|
11779
|
-
i0.ɵɵproperty("
|
|
11527
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
11780
11528
|
i0.ɵɵadvance(1);
|
|
11781
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
11782
|
-
|
|
11529
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
11530
|
+
i0.ɵɵadvance(1);
|
|
11531
|
+
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
11532
|
+
i0.ɵɵadvance(1);
|
|
11533
|
+
i0.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
|
|
11534
|
+
i0.ɵɵadvance(1);
|
|
11535
|
+
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
11536
|
+
} }, directives: [i2.NgClass, i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
11537
|
+
const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
11783
11538
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
11784
11539
|
type: Component,
|
|
11785
11540
|
args: [{
|
|
11786
11541
|
selector: 'ccd-write-case-link-field',
|
|
11787
11542
|
templateUrl: 'write-case-link-field.html'
|
|
11788
11543
|
}]
|
|
11789
|
-
}],
|
|
11790
|
-
type: Input
|
|
11791
|
-
}], formGroup: [{
|
|
11792
|
-
type: Input
|
|
11793
|
-
}], writeComplexFieldComponent: [{
|
|
11544
|
+
}], null, { writeComplexFieldComponent: [{
|
|
11794
11545
|
type: ViewChild,
|
|
11795
|
-
args: ['writeComplexFieldComponent'
|
|
11546
|
+
args: ['writeComplexFieldComponent']
|
|
11796
11547
|
}] }); })();
|
|
11797
11548
|
|
|
11798
|
-
const _c0$
|
|
11549
|
+
const _c0$M = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
11799
11550
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11800
11551
|
i0.ɵɵelementStart(0, "tbody");
|
|
11801
11552
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11808,9 +11559,9 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11808
11559
|
} if (rf & 2) {
|
|
11809
11560
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11810
11561
|
i0.ɵɵadvance(4);
|
|
11811
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11562
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$M, 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);
|
|
11812
11563
|
} }
|
|
11813
|
-
const _c1$
|
|
11564
|
+
const _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11814
11565
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
11815
11566
|
i0.ɵɵelementStart(0, "tr");
|
|
11816
11567
|
i0.ɵɵelementStart(1, "td");
|
|
@@ -11822,7 +11573,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
11822
11573
|
const i_r5 = ctx.index;
|
|
11823
11574
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
11824
11575
|
i0.ɵɵadvance(2);
|
|
11825
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
11576
|
+
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));
|
|
11826
11577
|
} }
|
|
11827
11578
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
11828
11579
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -11949,7 +11700,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11949
11700
|
}]
|
|
11950
11701
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11951
11702
|
|
|
11952
|
-
const _c0$
|
|
11703
|
+
const _c0$L = ["collectionItem"];
|
|
11953
11704
|
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11954
11705
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11955
11706
|
i0.ɵɵtext(1);
|
|
@@ -12332,7 +12083,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12332
12083
|
}
|
|
12333
12084
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
12334
12085
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12335
|
-
i0.ɵɵviewQuery(_c0$
|
|
12086
|
+
i0.ɵɵviewQuery(_c0$L, 1);
|
|
12336
12087
|
} if (rf & 2) {
|
|
12337
12088
|
let _t;
|
|
12338
12089
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12669,7 +12420,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12669
12420
|
type: Injectable
|
|
12670
12421
|
}], null, null); })();
|
|
12671
12422
|
|
|
12672
|
-
const _c0$
|
|
12423
|
+
const _c0$K = ["fileInput"];
|
|
12673
12424
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
12674
12425
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12675
12426
|
i0.ɵɵtext(1);
|
|
@@ -12696,7 +12447,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_10_Template(rf, ctx
|
|
|
12696
12447
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
12697
12448
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
12698
12449
|
} }
|
|
12699
|
-
const _c1$
|
|
12450
|
+
const _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12700
12451
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12701
12452
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12702
12453
|
super();
|
|
@@ -12949,7 +12700,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12949
12700
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12950
12701
|
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)); };
|
|
12951
12702
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12952
|
-
i0.ɵɵviewQuery(_c0$
|
|
12703
|
+
i0.ɵɵviewQuery(_c0$K, 1);
|
|
12953
12704
|
} if (rf & 2) {
|
|
12954
12705
|
let _t;
|
|
12955
12706
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12987,7 +12738,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
12987
12738
|
i0.ɵɵelementEnd();
|
|
12988
12739
|
i0.ɵɵelementEnd();
|
|
12989
12740
|
} if (rf & 2) {
|
|
12990
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c1$
|
|
12741
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c1$i, !ctx.valid));
|
|
12991
12742
|
i0.ɵɵadvance(1);
|
|
12992
12743
|
i0.ɵɵproperty("for", ctx.id());
|
|
12993
12744
|
i0.ɵɵadvance(1);
|
|
@@ -13124,7 +12875,7 @@ function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1
|
|
|
13124
12875
|
i0.ɵɵadvance(1);
|
|
13125
12876
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r5.label));
|
|
13126
12877
|
} }
|
|
13127
|
-
const _c0$
|
|
12878
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
13128
12879
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
13129
12880
|
ngOnInit() {
|
|
13130
12881
|
/**
|
|
@@ -13167,7 +12918,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
13167
12918
|
i0.ɵɵelementEnd();
|
|
13168
12919
|
i0.ɵɵelementEnd();
|
|
13169
12920
|
} if (rf & 2) {
|
|
13170
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$
|
|
12921
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c0$J, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
13171
12922
|
i0.ɵɵadvance(1);
|
|
13172
12923
|
i0.ɵɵproperty("for", ctx.id());
|
|
13173
12924
|
i0.ɵɵadvance(1);
|
|
@@ -13298,7 +13049,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
13298
13049
|
i0.ɵɵadvance(1);
|
|
13299
13050
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
|
|
13300
13051
|
} }
|
|
13301
|
-
const _c0$
|
|
13052
|
+
const _c0$I = function (a0) { return { selected: a0 }; };
|
|
13302
13053
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
13303
13054
|
i0.ɵɵelementStart(0, "div", 10);
|
|
13304
13055
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -13310,7 +13061,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13310
13061
|
} if (rf & 2) {
|
|
13311
13062
|
const radioButton_r5 = ctx.$implicit;
|
|
13312
13063
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
13313
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13064
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
13314
13065
|
i0.ɵɵadvance(1);
|
|
13315
13066
|
i0.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
13316
13067
|
i0.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -13319,7 +13070,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
13319
13070
|
i0.ɵɵadvance(1);
|
|
13320
13071
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
|
|
13321
13072
|
} }
|
|
13322
|
-
const _c1$
|
|
13073
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
13323
13074
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13324
13075
|
ngOnInit() {
|
|
13325
13076
|
/**
|
|
@@ -13360,7 +13111,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
13360
13111
|
i0.ɵɵelementEnd();
|
|
13361
13112
|
i0.ɵɵelementEnd();
|
|
13362
13113
|
} if (rf & 2) {
|
|
13363
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
13114
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
13364
13115
|
i0.ɵɵadvance(3);
|
|
13365
13116
|
i0.ɵɵproperty("for", ctx.id());
|
|
13366
13117
|
i0.ɵɵadvance(1);
|
|
@@ -13447,8 +13198,8 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13447
13198
|
i0.ɵɵadvance(1);
|
|
13448
13199
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
|
|
13449
13200
|
} }
|
|
13450
|
-
const _c0$
|
|
13451
|
-
const _c1$
|
|
13201
|
+
const _c0$H = function (a0) { return { "form-group-error": a0 }; };
|
|
13202
|
+
const _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13452
13203
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
13453
13204
|
ngOnInit() {
|
|
13454
13205
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13465,7 +13216,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13465
13216
|
i0.ɵɵelement(5, "input", 5);
|
|
13466
13217
|
i0.ɵɵelementEnd();
|
|
13467
13218
|
} if (rf & 2) {
|
|
13468
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13219
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$H, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
13469
13220
|
i0.ɵɵadvance(1);
|
|
13470
13221
|
i0.ɵɵproperty("for", ctx.id());
|
|
13471
13222
|
i0.ɵɵadvance(1);
|
|
@@ -13475,7 +13226,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
13475
13226
|
i0.ɵɵadvance(1);
|
|
13476
13227
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
13477
13228
|
i0.ɵɵadvance(1);
|
|
13478
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
13229
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$g, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
13479
13230
|
} }, directives: [i2.NgClass, i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
13480
13231
|
const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
13481
13232
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -13572,7 +13323,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
13572
13323
|
i0.ɵɵadvance(1);
|
|
13573
13324
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, type_r4.label));
|
|
13574
13325
|
} }
|
|
13575
|
-
const _c0$
|
|
13326
|
+
const _c0$G = function (a0) { return { "form-group-error": a0 }; };
|
|
13576
13327
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
13577
13328
|
get listItems() {
|
|
13578
13329
|
if (this.caseField) {
|
|
@@ -13610,7 +13361,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13610
13361
|
i0.ɵɵelementEnd();
|
|
13611
13362
|
i0.ɵɵelementEnd();
|
|
13612
13363
|
} if (rf & 2) {
|
|
13613
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13364
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$G, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13614
13365
|
i0.ɵɵadvance(1);
|
|
13615
13366
|
i0.ɵɵproperty("for", ctx.id());
|
|
13616
13367
|
i0.ɵɵadvance(1);
|
|
@@ -13705,7 +13456,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
13705
13456
|
i0.ɵɵadvance(1);
|
|
13706
13457
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
|
|
13707
13458
|
} }
|
|
13708
|
-
const _c0$
|
|
13459
|
+
const _c0$F = function (a0) { return { selected: a0 }; };
|
|
13709
13460
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
13710
13461
|
i0.ɵɵelementStart(0, "div", 9);
|
|
13711
13462
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -13717,7 +13468,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13717
13468
|
} if (rf & 2) {
|
|
13718
13469
|
const radioButton_r4 = ctx.$implicit;
|
|
13719
13470
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13720
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13471
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$F, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13721
13472
|
i0.ɵɵadvance(1);
|
|
13722
13473
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13723
13474
|
i0.ɵɵadvance(1);
|
|
@@ -13725,7 +13476,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13725
13476
|
i0.ɵɵadvance(1);
|
|
13726
13477
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
|
|
13727
13478
|
} }
|
|
13728
|
-
const _c1$
|
|
13479
|
+
const _c1$f = function (a0) { return { "form-group-error": a0 }; };
|
|
13729
13480
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13730
13481
|
ngOnInit() {
|
|
13731
13482
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -13749,7 +13500,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
13749
13500
|
i0.ɵɵelementEnd();
|
|
13750
13501
|
i0.ɵɵelementEnd();
|
|
13751
13502
|
} if (rf & 2) {
|
|
13752
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13503
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
13753
13504
|
i0.ɵɵadvance(3);
|
|
13754
13505
|
i0.ɵɵproperty("for", ctx.id());
|
|
13755
13506
|
i0.ɵɵadvance(1);
|
|
@@ -13848,7 +13599,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13848
13599
|
i0.ɵɵadvance(1);
|
|
13849
13600
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13850
13601
|
} }
|
|
13851
|
-
const _c0$
|
|
13602
|
+
const _c0$E = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13852
13603
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
13853
13604
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
13854
13605
|
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
@@ -13858,7 +13609,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
|
|
|
13858
13609
|
} if (rf & 2) {
|
|
13859
13610
|
const judicialUser_r5 = ctx.$implicit;
|
|
13860
13611
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13861
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
13612
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$E, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13862
13613
|
i0.ɵɵadvance(1);
|
|
13863
13614
|
i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13864
13615
|
} }
|
|
@@ -13942,23 +13693,40 @@ WriteJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteJudi
|
|
|
13942
13693
|
}]
|
|
13943
13694
|
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: JurisdictionService }]; }, null); })();
|
|
13944
13695
|
|
|
13696
|
+
function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) { if (rf & 1) {
|
|
13697
|
+
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
13698
|
+
i0.ɵɵpipe(1, "rpxTranslate");
|
|
13699
|
+
} if (rf & 2) {
|
|
13700
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
13701
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1, 2, ctx_r0.caseField.label))("markdownUseHrefAsRouterLink", ctx_r0.markdownUseHrefAsRouterLink);
|
|
13702
|
+
} }
|
|
13703
|
+
function LabelFieldComponent_ccd_markdown_3_Template(rf, ctx) { if (rf & 1) {
|
|
13704
|
+
i0.ɵɵelement(0, "ccd-markdown", 2);
|
|
13705
|
+
} if (rf & 2) {
|
|
13706
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
13707
|
+
i0.ɵɵproperty("content", ctx_r1.caseField.value || ctx_r1.caseField.label)("markdownUseHrefAsRouterLink", ctx_r1.markdownUseHrefAsRouterLink);
|
|
13708
|
+
} }
|
|
13945
13709
|
class LabelFieldComponent {
|
|
13946
13710
|
constructor() {
|
|
13947
13711
|
this.caseFields = [];
|
|
13712
|
+
this.labelCanBeTranslated = false;
|
|
13948
13713
|
}
|
|
13949
13714
|
}
|
|
13950
13715
|
LabelFieldComponent.ɵfac = function LabelFieldComponent_Factory(t) { return new (t || LabelFieldComponent)(); };
|
|
13951
|
-
LabelFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls:
|
|
13716
|
+
LabelFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 5, vars: 6, consts: [["ccdLabelSubstitutor", "", 1, "case-field", 3, "hidden", "caseField", "contextFields", "id"], [3, "content", "markdownUseHrefAsRouterLink", 4, "ngIf"], [3, "content", "markdownUseHrefAsRouterLink"]], template: function LabelFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13952
13717
|
i0.ɵɵelementStart(0, "dl", 0);
|
|
13953
13718
|
i0.ɵɵelementStart(1, "dt");
|
|
13954
|
-
i0.ɵɵ
|
|
13719
|
+
i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2, 4, "ccd-markdown", 1);
|
|
13720
|
+
i0.ɵɵtemplate(3, LabelFieldComponent_ccd_markdown_3_Template, 1, 2, "ccd-markdown", 1);
|
|
13955
13721
|
i0.ɵɵelementEnd();
|
|
13956
|
-
i0.ɵɵelement(
|
|
13722
|
+
i0.ɵɵelement(4, "dd");
|
|
13957
13723
|
i0.ɵɵelementEnd();
|
|
13958
13724
|
} if (rf & 2) {
|
|
13959
13725
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
|
|
13960
13726
|
i0.ɵɵadvance(2);
|
|
13961
|
-
i0.ɵɵproperty("
|
|
13727
|
+
i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated);
|
|
13728
|
+
i0.ɵɵadvance(1);
|
|
13729
|
+
i0.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
|
|
13962
13730
|
} }, encapsulation: 2 });
|
|
13963
13731
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelFieldComponent, [{
|
|
13964
13732
|
type: Component,
|
|
@@ -13970,6 +13738,8 @@ LabelFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LabelFieldComponent,
|
|
|
13970
13738
|
type: Input
|
|
13971
13739
|
}], caseFields: [{
|
|
13972
13740
|
type: Input
|
|
13741
|
+
}], labelCanBeTranslated: [{
|
|
13742
|
+
type: Input
|
|
13973
13743
|
}], markdownUseHrefAsRouterLink: [{
|
|
13974
13744
|
type: Input
|
|
13975
13745
|
}] }); })();
|
|
@@ -14169,7 +13939,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14169
13939
|
i0.ɵɵadvance(1);
|
|
14170
13940
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
|
|
14171
13941
|
} }
|
|
14172
|
-
const _c0$
|
|
13942
|
+
const _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
14173
13943
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
14174
13944
|
ngOnInit() {
|
|
14175
13945
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14192,7 +13962,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
14192
13962
|
i0.ɵɵelementEnd();
|
|
14193
13963
|
i0.ɵɵelementEnd();
|
|
14194
13964
|
} if (rf & 2) {
|
|
14195
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
13965
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
14196
13966
|
i0.ɵɵadvance(1);
|
|
14197
13967
|
i0.ɵɵproperty("for", ctx.id());
|
|
14198
13968
|
i0.ɵɵadvance(1);
|
|
@@ -14316,7 +14086,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
14316
14086
|
i0.ɵɵadvance(1);
|
|
14317
14087
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, checkbox_r4.label));
|
|
14318
14088
|
} }
|
|
14319
|
-
const _c0$
|
|
14089
|
+
const _c0$C = function (a0) { return { "error": a0 }; };
|
|
14320
14090
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
14321
14091
|
ngOnInit() {
|
|
14322
14092
|
this.checkboxes = new FormArray([]);
|
|
@@ -14371,7 +14141,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
14371
14141
|
i0.ɵɵelementEnd();
|
|
14372
14142
|
i0.ɵɵelementEnd();
|
|
14373
14143
|
} if (rf & 2) {
|
|
14374
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
14144
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
14375
14145
|
i0.ɵɵadvance(3);
|
|
14376
14146
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14377
14147
|
i0.ɵɵadvance(1);
|
|
@@ -14443,8 +14213,8 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14443
14213
|
i0.ɵɵadvance(1);
|
|
14444
14214
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)));
|
|
14445
14215
|
} }
|
|
14446
|
-
const _c0$
|
|
14447
|
-
const _c1$
|
|
14216
|
+
const _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
14217
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14448
14218
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
14449
14219
|
ngOnInit() {
|
|
14450
14220
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14461,7 +14231,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
14461
14231
|
i0.ɵɵelement(5, "input", 5);
|
|
14462
14232
|
i0.ɵɵelementEnd();
|
|
14463
14233
|
} if (rf & 2) {
|
|
14464
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14234
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
14465
14235
|
i0.ɵɵadvance(1);
|
|
14466
14236
|
i0.ɵɵproperty("for", ctx.id());
|
|
14467
14237
|
i0.ɵɵadvance(1);
|
|
@@ -14471,7 +14241,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
14471
14241
|
i0.ɵɵadvance(1);
|
|
14472
14242
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
14473
14243
|
i0.ɵɵadvance(1);
|
|
14474
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14244
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
14475
14245
|
} }, directives: [i2.NgClass, i2.NgIf, i2$1.NumberValueAccessor, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14476
14246
|
const ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
14477
14247
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -14747,7 +14517,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_div_4_Template(rf, ct
|
|
|
14747
14517
|
i0.ɵɵadvance(2);
|
|
14748
14518
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 1, "No results found."), " ");
|
|
14749
14519
|
} }
|
|
14750
|
-
const _c0$
|
|
14520
|
+
const _c0$A = function (a0) { return { "scroll-container ": a0 }; };
|
|
14751
14521
|
function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
14752
14522
|
i0.ɵɵelementStart(0, "div", 26);
|
|
14753
14523
|
i0.ɵɵpipe(1, "async");
|
|
@@ -14761,7 +14531,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) { i
|
|
|
14761
14531
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14762
14532
|
let tmp_0_0 = null;
|
|
14763
14533
|
let tmp_2_0 = null;
|
|
14764
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
14534
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
14765
14535
|
i0.ɵɵadvance(2);
|
|
14766
14536
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
14767
14537
|
i0.ɵɵadvance(2);
|
|
@@ -15183,8 +14953,8 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15183
14953
|
i0.ɵɵadvance(1);
|
|
15184
14954
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
|
|
15185
14955
|
} }
|
|
15186
|
-
const _c0$
|
|
15187
|
-
const _c1$
|
|
14956
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
14957
|
+
const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15188
14958
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
15189
14959
|
ngOnInit() {
|
|
15190
14960
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15201,7 +14971,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
15201
14971
|
i0.ɵɵelement(5, "input", 5);
|
|
15202
14972
|
i0.ɵɵelementEnd();
|
|
15203
14973
|
} if (rf & 2) {
|
|
15204
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14974
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
15205
14975
|
i0.ɵɵadvance(1);
|
|
15206
14976
|
i0.ɵɵproperty("for", ctx.id());
|
|
15207
14977
|
i0.ɵɵadvance(1);
|
|
@@ -15211,7 +14981,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
15211
14981
|
i0.ɵɵadvance(1);
|
|
15212
14982
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
15213
14983
|
i0.ɵɵadvance(1);
|
|
15214
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14984
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
15215
14985
|
} }, directives: [i2.NgClass, i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15216
14986
|
const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
15217
14987
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -15275,8 +15045,8 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15275
15045
|
i0.ɵɵadvance(1);
|
|
15276
15046
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
|
|
15277
15047
|
} }
|
|
15278
|
-
const _c0$
|
|
15279
|
-
const _c1$
|
|
15048
|
+
const _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
15049
|
+
const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
15280
15050
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
15281
15051
|
constructor(browserService) {
|
|
15282
15052
|
super();
|
|
@@ -15306,7 +15076,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
15306
15076
|
i0.ɵɵelementEnd();
|
|
15307
15077
|
i0.ɵɵelementEnd();
|
|
15308
15078
|
} if (rf & 2) {
|
|
15309
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15079
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
15310
15080
|
i0.ɵɵadvance(1);
|
|
15311
15081
|
i0.ɵɵproperty("for", ctx.id());
|
|
15312
15082
|
i0.ɵɵadvance(1);
|
|
@@ -15316,7 +15086,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
15316
15086
|
i0.ɵɵadvance(1);
|
|
15317
15087
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
15318
15088
|
i0.ɵɵadvance(1);
|
|
15319
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15089
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
15320
15090
|
} }, directives: [i2.NgClass, i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15321
15091
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
15322
15092
|
type: Component,
|
|
@@ -15380,8 +15150,8 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15380
15150
|
i0.ɵɵadvance(1);
|
|
15381
15151
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
|
|
15382
15152
|
} }
|
|
15383
|
-
const _c0$
|
|
15384
|
-
const _c1$
|
|
15153
|
+
const _c0$x = function (a0) { return { "form-group-error": a0 }; };
|
|
15154
|
+
const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15385
15155
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
15386
15156
|
ngOnInit() {
|
|
15387
15157
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -15403,7 +15173,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
15403
15173
|
i0.ɵɵelementEnd();
|
|
15404
15174
|
i0.ɵɵelementEnd();
|
|
15405
15175
|
} if (rf & 2) {
|
|
15406
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15176
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
15407
15177
|
i0.ɵɵadvance(1);
|
|
15408
15178
|
i0.ɵɵproperty("for", ctx.id());
|
|
15409
15179
|
i0.ɵɵadvance(1);
|
|
@@ -15413,7 +15183,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
15413
15183
|
i0.ɵɵadvance(1);
|
|
15414
15184
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
15415
15185
|
i0.ɵɵadvance(1);
|
|
15416
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15186
|
+
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);
|
|
15417
15187
|
} }, directives: [i2.NgClass, i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective], pipes: [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15418
15188
|
const ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
15419
15189
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -15573,7 +15343,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
15573
15343
|
i0.ɵɵadvance(1);
|
|
15574
15344
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
|
|
15575
15345
|
} }
|
|
15576
|
-
const _c0$
|
|
15346
|
+
const _c0$w = function (a0) { return { selected: a0 }; };
|
|
15577
15347
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
15578
15348
|
i0.ɵɵelementStart(0, "div", 10);
|
|
15579
15349
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -15585,7 +15355,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
15585
15355
|
} if (rf & 2) {
|
|
15586
15356
|
const value_r4 = ctx.$implicit;
|
|
15587
15357
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
15588
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
15358
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$w, ctx_r3.yesNoControl.value === value_r4));
|
|
15589
15359
|
i0.ɵɵadvance(1);
|
|
15590
15360
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
15591
15361
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -15594,7 +15364,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
15594
15364
|
i0.ɵɵadvance(1);
|
|
15595
15365
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, value_r4));
|
|
15596
15366
|
} }
|
|
15597
|
-
const _c1$
|
|
15367
|
+
const _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
15598
15368
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
15599
15369
|
constructor(yesNoService) {
|
|
15600
15370
|
super();
|
|
@@ -15620,7 +15390,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
15620
15390
|
i0.ɵɵelementEnd();
|
|
15621
15391
|
i0.ɵɵelementEnd();
|
|
15622
15392
|
} if (rf & 2) {
|
|
15623
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
15393
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
15624
15394
|
i0.ɵɵadvance(3);
|
|
15625
15395
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15626
15396
|
i0.ɵɵadvance(1);
|
|
@@ -15681,6 +15451,8 @@ class PaletteService {
|
|
|
15681
15451
|
return write ? WriteAddressFieldComponent : ReadComplexFieldComponent;
|
|
15682
15452
|
case 'OrderSummary':
|
|
15683
15453
|
return write ? WriteOrderSummaryFieldComponent : ReadOrderSummaryFieldComponent;
|
|
15454
|
+
case 'CaseLink':
|
|
15455
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15684
15456
|
case 'Organisation':
|
|
15685
15457
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
15686
15458
|
case 'JudicialUser':
|
|
@@ -15689,15 +15461,7 @@ class PaletteService {
|
|
|
15689
15461
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
15690
15462
|
}
|
|
15691
15463
|
case 'Collection':
|
|
15692
|
-
|
|
15693
|
-
case 'CaseLink':
|
|
15694
|
-
if (caseField.id === 'caseLinks') {
|
|
15695
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
15696
|
-
}
|
|
15697
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15698
|
-
default:
|
|
15699
|
-
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15700
|
-
}
|
|
15464
|
+
return write ? WriteCollectionFieldComponent : ReadCollectionFieldComponent;
|
|
15701
15465
|
case 'MultiSelectList':
|
|
15702
15466
|
return write ? WriteMultiSelectListFieldComponent : ReadMultiSelectListFieldComponent;
|
|
15703
15467
|
case 'Document':
|
|
@@ -15734,7 +15498,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
15734
15498
|
type: Injectable
|
|
15735
15499
|
}], null, null); })();
|
|
15736
15500
|
|
|
15737
|
-
const _c0$
|
|
15501
|
+
const _c0$v = ["fieldContainer"];
|
|
15738
15502
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
15739
15503
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
15740
15504
|
constructor(resolver, paletteService) {
|
|
@@ -15772,13 +15536,17 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
15772
15536
|
component.instance['caseReference'] = this.caseReference;
|
|
15773
15537
|
component.instance['context'] = this.context;
|
|
15774
15538
|
component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
|
|
15539
|
+
component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
|
|
15775
15540
|
this.fieldContainer.insert(component.hostView);
|
|
15776
15541
|
});
|
|
15777
15542
|
}
|
|
15543
|
+
labelCanBeTranslated(caseField) {
|
|
15544
|
+
return !!(caseField.field_type.type === 'Label' && caseField.label);
|
|
15545
|
+
}
|
|
15778
15546
|
}
|
|
15779
15547
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15780
15548
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15781
|
-
i0.ɵɵviewQuery(_c0$
|
|
15549
|
+
i0.ɵɵviewQuery(_c0$v, 1, ViewContainerRef);
|
|
15782
15550
|
} if (rf & 2) {
|
|
15783
15551
|
let _t;
|
|
15784
15552
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15812,7 +15580,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
15812
15580
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
15813
15581
|
}] }); })();
|
|
15814
15582
|
|
|
15815
|
-
const _c0$
|
|
15583
|
+
const _c0$u = ["fieldContainer"];
|
|
15816
15584
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
15817
15585
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
15818
15586
|
constructor(resolver, paletteService) {
|
|
@@ -15857,7 +15625,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
15857
15625
|
}
|
|
15858
15626
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15859
15627
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15860
|
-
i0.ɵɵviewQuery(_c0$
|
|
15628
|
+
i0.ɵɵviewQuery(_c0$u, 3, ViewContainerRef);
|
|
15861
15629
|
} if (rf & 2) {
|
|
15862
15630
|
let _t;
|
|
15863
15631
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15907,7 +15675,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15907
15675
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
15908
15676
|
i0.ɵɵprojection(0);
|
|
15909
15677
|
} }
|
|
15910
|
-
const _c0$
|
|
15678
|
+
const _c0$t = ["*"];
|
|
15911
15679
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
15912
15680
|
constructor() {
|
|
15913
15681
|
super(...arguments);
|
|
@@ -15942,7 +15710,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
15942
15710
|
}
|
|
15943
15711
|
}
|
|
15944
15712
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
15945
|
-
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
15713
|
+
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) {
|
|
15946
15714
|
i0.ɵɵprojectionDef();
|
|
15947
15715
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15948
15716
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 1);
|
|
@@ -15971,25 +15739,25 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15971
15739
|
type: Input
|
|
15972
15740
|
}] }); })();
|
|
15973
15741
|
|
|
15974
|
-
function
|
|
15742
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15975
15743
|
i0.ɵɵelementContainer(0);
|
|
15976
15744
|
} }
|
|
15977
|
-
const _c0$
|
|
15978
|
-
function
|
|
15745
|
+
const _c0$s = function (a0) { return { cat: a0, level: 1 }; };
|
|
15746
|
+
function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
15979
15747
|
i0.ɵɵelementContainerStart(0);
|
|
15980
|
-
i0.ɵɵtemplate(1,
|
|
15748
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15981
15749
|
i0.ɵɵelementContainerEnd();
|
|
15982
15750
|
} if (rf & 2) {
|
|
15983
15751
|
const cat_r3 = ctx.$implicit;
|
|
15984
15752
|
i0.ɵɵnextContext();
|
|
15985
15753
|
const _r1 = i0.ɵɵreference(13);
|
|
15986
15754
|
i0.ɵɵadvance(1);
|
|
15987
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$
|
|
15755
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$s, cat_r3));
|
|
15988
15756
|
} }
|
|
15989
15757
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15990
15758
|
i0.ɵɵelementContainer(0);
|
|
15991
15759
|
} }
|
|
15992
|
-
const _c1$
|
|
15760
|
+
const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
15993
15761
|
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15994
15762
|
i0.ɵɵelementContainerStart(0);
|
|
15995
15763
|
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
@@ -16000,7 +15768,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
|
|
|
16000
15768
|
i0.ɵɵnextContext();
|
|
16001
15769
|
const _r1 = i0.ɵɵreference(13);
|
|
16002
15770
|
i0.ɵɵadvance(1);
|
|
16003
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$
|
|
15771
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
|
|
16004
15772
|
} }
|
|
16005
15773
|
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
16006
15774
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -16012,7 +15780,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
|
16012
15780
|
i0.ɵɵelement(3, "img", 12);
|
|
16013
15781
|
i0.ɵɵtext(4);
|
|
16014
15782
|
i0.ɵɵelementEnd();
|
|
16015
|
-
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container",
|
|
15783
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
|
|
16016
15784
|
i0.ɵɵelementEnd();
|
|
16017
15785
|
} if (rf & 2) {
|
|
16018
15786
|
const cat_r5 = ctx.cat;
|
|
@@ -16083,42 +15851,43 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
16083
15851
|
}
|
|
16084
15852
|
}
|
|
16085
15853
|
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
16086
|
-
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [
|
|
16087
|
-
i0.ɵɵelementStart(0, "
|
|
16088
|
-
i0.ɵɵ
|
|
15854
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15855
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
15856
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
|
|
16089
15857
|
i0.ɵɵelementEnd();
|
|
16090
|
-
i0.ɵɵelementStart(
|
|
16091
|
-
i0.ɵɵtext(
|
|
15858
|
+
i0.ɵɵelementStart(1, "h2", 1);
|
|
15859
|
+
i0.ɵɵtext(2, "Move File");
|
|
16092
15860
|
i0.ɵɵelementEnd();
|
|
16093
|
-
i0.ɵɵelementStart(
|
|
16094
|
-
i0.ɵɵ
|
|
15861
|
+
i0.ɵɵelementStart(3, "p");
|
|
15862
|
+
i0.ɵɵtext(4);
|
|
16095
15863
|
i0.ɵɵelementEnd();
|
|
16096
|
-
i0.ɵɵelementStart(
|
|
16097
|
-
i0.ɵɵ
|
|
16098
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
16099
|
-
i0.ɵɵtext(8, "Save");
|
|
15864
|
+
i0.ɵɵelementStart(5, "div", 2);
|
|
15865
|
+
i0.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
|
|
16100
15866
|
i0.ɵɵelementEnd();
|
|
16101
|
-
i0.ɵɵelementStart(
|
|
16102
|
-
i0.ɵɵ
|
|
16103
|
-
i0.ɵɵ
|
|
15867
|
+
i0.ɵɵelementStart(7, "div", 4);
|
|
15868
|
+
i0.ɵɵelementStart(8, "button", 5);
|
|
15869
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
|
|
15870
|
+
i0.ɵɵtext(9, "Save");
|
|
16104
15871
|
i0.ɵɵelementEnd();
|
|
15872
|
+
i0.ɵɵelementStart(10, "a", 6);
|
|
15873
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
|
|
15874
|
+
i0.ɵɵtext(11, "Cancel");
|
|
16105
15875
|
i0.ɵɵelementEnd();
|
|
16106
|
-
i0.ɵɵelementStart(11, "div", 6);
|
|
16107
|
-
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
16108
15876
|
i0.ɵɵelementEnd();
|
|
16109
15877
|
i0.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
16110
15878
|
} if (rf & 2) {
|
|
16111
|
-
i0.ɵɵadvance(
|
|
15879
|
+
i0.ɵɵadvance(4);
|
|
16112
15880
|
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
16113
15881
|
i0.ɵɵadvance(2);
|
|
16114
15882
|
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
16115
|
-
} }, directives: [i2.NgForOf, i2.NgTemplateOutlet], styles: ["
|
|
15883
|
+
} }, directives: [i2.NgForOf, i2.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
|
|
16116
15884
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
16117
15885
|
type: Component,
|
|
16118
15886
|
args: [{
|
|
16119
15887
|
selector: 'xui-case-file-view-folder-selector',
|
|
16120
15888
|
templateUrl: './case-file-view-folder-selector.component.html',
|
|
16121
|
-
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
15889
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss'],
|
|
15890
|
+
encapsulation: ViewEncapsulation.None
|
|
16122
15891
|
}]
|
|
16123
15892
|
}], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
16124
15893
|
type: Inject,
|
|
@@ -16174,8 +15943,8 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
|
|
|
16174
15943
|
i0.ɵɵadvance(1);
|
|
16175
15944
|
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
16176
15945
|
} }
|
|
16177
|
-
const _c0$
|
|
16178
|
-
const _c1$
|
|
15946
|
+
const _c0$r = [[["", "trigger", ""]]];
|
|
15947
|
+
const _c1$8 = ["[trigger]"];
|
|
16179
15948
|
class CaseFileViewOverlayMenuComponent {
|
|
16180
15949
|
constructor() {
|
|
16181
15950
|
this.title = '';
|
|
@@ -16189,8 +15958,8 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
16189
15958
|
}
|
|
16190
15959
|
}
|
|
16191
15960
|
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
16192
|
-
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$
|
|
16193
|
-
i0.ɵɵprojectionDef(_c0$
|
|
15961
|
+
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) {
|
|
15962
|
+
i0.ɵɵprojectionDef(_c0$r);
|
|
16194
15963
|
i0.ɵɵelementStart(0, "div");
|
|
16195
15964
|
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
16196
15965
|
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
@@ -16599,7 +16368,7 @@ class CaseFileViewFolderComponent {
|
|
|
16599
16368
|
return Object.assign(documentTreeNode, node);
|
|
16600
16369
|
}
|
|
16601
16370
|
let filteredData = this.documentTreeData;
|
|
16602
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length >
|
|
16371
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
|
|
16603
16372
|
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
16604
16373
|
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
16605
16374
|
return true;
|
|
@@ -16679,7 +16448,6 @@ class CaseFileViewFolderComponent {
|
|
|
16679
16448
|
}
|
|
16680
16449
|
openMoveDialog(node) {
|
|
16681
16450
|
const dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
16682
|
-
width: '570px',
|
|
16683
16451
|
data: { categories: this.categories, document: node }
|
|
16684
16452
|
});
|
|
16685
16453
|
dialogRef.afterClosed().subscribe(newCatId => {
|
|
@@ -16704,7 +16472,7 @@ class CaseFileViewFolderComponent {
|
|
|
16704
16472
|
}
|
|
16705
16473
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
16706
16474
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
16707
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS =
|
|
16475
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
16708
16476
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
16709
16477
|
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16710
16478
|
i0.ɵɵelementStart(0, "div", 0);
|
|
@@ -16938,8 +16706,8 @@ function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
16938
16706
|
i0.ɵɵadvance(3);
|
|
16939
16707
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
|
|
16940
16708
|
} }
|
|
16941
|
-
const _c0$
|
|
16942
|
-
const _c1$
|
|
16709
|
+
const _c0$q = function (a0) { return { "form-group-error": a0 }; };
|
|
16710
|
+
const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16943
16711
|
function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
16944
16712
|
i0.ɵɵelementStart(0, "div", 15);
|
|
16945
16713
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -16953,11 +16721,11 @@ function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
16953
16721
|
} if (rf & 2) {
|
|
16954
16722
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
16955
16723
|
i0.ɵɵadvance(1);
|
|
16956
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
16724
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
|
|
16957
16725
|
i0.ɵɵadvance(3);
|
|
16958
16726
|
i0.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
|
|
16959
16727
|
i0.ɵɵadvance(1);
|
|
16960
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
16728
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
|
|
16961
16729
|
} }
|
|
16962
16730
|
function SelectFlagTypeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
16963
16731
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -17104,7 +16872,7 @@ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeCom
|
|
|
17104
16872
|
} if (rf & 2) {
|
|
17105
16873
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17106
16874
|
i0.ɵɵadvance(1);
|
|
17107
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
16875
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
|
|
17108
16876
|
i0.ɵɵadvance(4);
|
|
17109
16877
|
i0.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
|
|
17110
16878
|
i0.ɵɵadvance(1);
|
|
@@ -17196,7 +16964,7 @@ function SearchLanguageInterpreterComponent_div_21_div_5_Template(rf, ctx) { if
|
|
|
17196
16964
|
i0.ɵɵadvance(3);
|
|
17197
16965
|
i0.ɵɵtextInterpolate1(" ", ctx_r8.languageCharLimitErrorMessage, " ");
|
|
17198
16966
|
} }
|
|
17199
|
-
const _c0$
|
|
16967
|
+
const _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
17200
16968
|
function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
17201
16969
|
i0.ɵɵelementStart(0, "div", 25);
|
|
17202
16970
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -17211,7 +16979,7 @@ function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf &
|
|
|
17211
16979
|
} if (rf & 2) {
|
|
17212
16980
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
17213
16981
|
i0.ɵɵadvance(1);
|
|
17214
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
16982
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$p, ctx_r5.languageNotEnteredErrorMessage || ctx_r5.languageCharLimitErrorMessage));
|
|
17215
16983
|
i0.ɵɵadvance(2);
|
|
17216
16984
|
i0.ɵɵtextInterpolate(ctx_r5.searchLanguageInterpreterStep.INPUT_LABEL);
|
|
17217
16985
|
i0.ɵɵadvance(1);
|
|
@@ -17377,7 +17145,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
|
|
|
17377
17145
|
const _r2 = i0.ɵɵreference(12);
|
|
17378
17146
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17379
17147
|
i0.ɵɵadvance(1);
|
|
17380
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$
|
|
17148
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
|
|
17381
17149
|
i0.ɵɵadvance(2);
|
|
17382
17150
|
i0.ɵɵproperty("for", ctx.languageSearchTermControlName);
|
|
17383
17151
|
i0.ɵɵadvance(1);
|
|
@@ -17491,7 +17259,7 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
17491
17259
|
i0.ɵɵelementEnd();
|
|
17492
17260
|
i0.ɵɵelementEnd();
|
|
17493
17261
|
} }
|
|
17494
|
-
const _c0$
|
|
17262
|
+
const _c0$o = function (a0) { return { "form-group-error": a0 }; };
|
|
17495
17263
|
class SelectFlagLocationComponent {
|
|
17496
17264
|
constructor() {
|
|
17497
17265
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -17576,7 +17344,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
|
|
|
17576
17344
|
} if (rf & 2) {
|
|
17577
17345
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17578
17346
|
i0.ɵɵadvance(1);
|
|
17579
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17347
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$o, ctx.errorMessages.length > 0));
|
|
17580
17348
|
i0.ɵɵadvance(4);
|
|
17581
17349
|
i0.ɵɵtextInterpolate1(" ", ctx.flagLocationTitle, " ");
|
|
17582
17350
|
i0.ɵɵadvance(1);
|
|
@@ -17629,7 +17397,7 @@ function AddCommentsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
17629
17397
|
i0.ɵɵadvance(3);
|
|
17630
17398
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.flagCommentsCharLimitErrorMessage, " ");
|
|
17631
17399
|
} }
|
|
17632
|
-
const _c0$
|
|
17400
|
+
const _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
17633
17401
|
class AddCommentsComponent {
|
|
17634
17402
|
constructor() {
|
|
17635
17403
|
this.optional = false;
|
|
@@ -17707,7 +17475,7 @@ AddCommentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddCommentsComponent
|
|
|
17707
17475
|
} if (rf & 2) {
|
|
17708
17476
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17709
17477
|
i0.ɵɵadvance(2);
|
|
17710
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$
|
|
17478
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c0$n, ctx.errorMessages.length > 0));
|
|
17711
17479
|
i0.ɵɵadvance(2);
|
|
17712
17480
|
i0.ɵɵproperty("for", ctx.flagCommentsControlName);
|
|
17713
17481
|
i0.ɵɵadvance(1);
|
|
@@ -17776,7 +17544,7 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
17776
17544
|
i0.ɵɵelementEnd();
|
|
17777
17545
|
i0.ɵɵelementEnd();
|
|
17778
17546
|
} }
|
|
17779
|
-
const _c0$
|
|
17547
|
+
const _c0$m = function (a0) { return { "form-group-error": a0 }; };
|
|
17780
17548
|
class ManageCaseFlagsComponent {
|
|
17781
17549
|
constructor() {
|
|
17782
17550
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -17940,7 +17708,7 @@ ManageCaseFlagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ManageCaseFlagsC
|
|
|
17940
17708
|
} if (rf & 2) {
|
|
17941
17709
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
17942
17710
|
i0.ɵɵadvance(1);
|
|
17943
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
17711
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$m, ctx.errorMessages.length > 0));
|
|
17944
17712
|
i0.ɵɵadvance(4);
|
|
17945
17713
|
i0.ɵɵtextInterpolate1(" ", ctx.manageCaseFlagTitle, " ");
|
|
17946
17714
|
i0.ɵɵadvance(1);
|
|
@@ -17999,8 +17767,8 @@ function UpdateFlagComponent_button_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
17999
17767
|
i0.ɵɵtext(1, " Make inactive ");
|
|
18000
17768
|
i0.ɵɵelementEnd();
|
|
18001
17769
|
} }
|
|
18002
|
-
const _c0$
|
|
18003
|
-
const _c1$
|
|
17770
|
+
const _c0$l = function (a0) { return { "form-group-error": a0 }; };
|
|
17771
|
+
const _c1$6 = function (a0) { return { "govuk-tag--grey": a0 }; };
|
|
18004
17772
|
class UpdateFlagComponent {
|
|
18005
17773
|
constructor() {
|
|
18006
17774
|
this.caseFlagStateEmitter = new EventEmitter();
|
|
@@ -18118,7 +17886,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
18118
17886
|
} if (rf & 2) {
|
|
18119
17887
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
18120
17888
|
i0.ɵɵadvance(2);
|
|
18121
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$
|
|
17889
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c0$l, ctx.errorMessages.length > 0));
|
|
18122
17890
|
i0.ɵɵadvance(2);
|
|
18123
17891
|
i0.ɵɵproperty("for", ctx.updateFlagControlName);
|
|
18124
17892
|
i0.ɵɵadvance(1);
|
|
@@ -18134,7 +17902,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
|
|
|
18134
17902
|
i0.ɵɵadvance(3);
|
|
18135
17903
|
i0.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
|
|
18136
17904
|
i0.ɵɵadvance(6);
|
|
18137
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$
|
|
17905
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c1$6, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
|
|
18138
17906
|
i0.ɵɵadvance(1);
|
|
18139
17907
|
i0.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
|
|
18140
17908
|
i0.ɵɵadvance(2);
|
|
@@ -18252,2050 +18020,6 @@ CaseFlagSummaryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagSumm
|
|
|
18252
18020
|
type: Input
|
|
18253
18021
|
}] }); })();
|
|
18254
18022
|
|
|
18255
|
-
var LinkedCasesPages;
|
|
18256
|
-
(function (LinkedCasesPages) {
|
|
18257
|
-
LinkedCasesPages[LinkedCasesPages["BEFORE_YOU_START"] = 0] = "BEFORE_YOU_START";
|
|
18258
|
-
LinkedCasesPages[LinkedCasesPages["NO_LINKED_CASES"] = 1] = "NO_LINKED_CASES";
|
|
18259
|
-
LinkedCasesPages[LinkedCasesPages["LINK_CASE"] = 2] = "LINK_CASE";
|
|
18260
|
-
LinkedCasesPages[LinkedCasesPages["UNLINK_CASE"] = 3] = "UNLINK_CASE";
|
|
18261
|
-
LinkedCasesPages[LinkedCasesPages["CHECK_YOUR_ANSWERS"] = 4] = "CHECK_YOUR_ANSWERS";
|
|
18262
|
-
})(LinkedCasesPages || (LinkedCasesPages = {}));
|
|
18263
|
-
var LinkedCasesErrorMessages;
|
|
18264
|
-
(function (LinkedCasesErrorMessages) {
|
|
18265
|
-
LinkedCasesErrorMessages["ProposedCaseWithIn"] = "Case can not be linked to the same case";
|
|
18266
|
-
LinkedCasesErrorMessages["CaseNumberError"] = "Case numbers must have 16 digits";
|
|
18267
|
-
LinkedCasesErrorMessages["ReasonSelectionError"] = "Select a reason why these cases should be linked";
|
|
18268
|
-
LinkedCasesErrorMessages["SomethingWrong"] = "Something went wrong, please try again later";
|
|
18269
|
-
LinkedCasesErrorMessages["CaseCheckAgainError"] = "Check the case number and try again";
|
|
18270
|
-
LinkedCasesErrorMessages["CaseSelectionError"] = "You need to propose at least one case";
|
|
18271
|
-
LinkedCasesErrorMessages["CaseProposedError"] = "This case has already been proposed";
|
|
18272
|
-
LinkedCasesErrorMessages["CasesLinkedError"] = "These cases are already linked";
|
|
18273
|
-
LinkedCasesErrorMessages["UnlinkCaseSelectionError"] = "Select a case to unlink before continue";
|
|
18274
|
-
LinkedCasesErrorMessages["LinkCasesNavigationError"] = "Please select Next to link case(s)";
|
|
18275
|
-
LinkedCasesErrorMessages["UnlinkCasesNavigationError"] = "Please select Next to unlink case(s)";
|
|
18276
|
-
LinkedCasesErrorMessages["BackNavigationError"] = "Please select Back to go to the previous page";
|
|
18277
|
-
})(LinkedCasesErrorMessages || (LinkedCasesErrorMessages = {}));
|
|
18278
|
-
var LinkedCasesEventTriggers;
|
|
18279
|
-
(function (LinkedCasesEventTriggers) {
|
|
18280
|
-
LinkedCasesEventTriggers["LINK_CASES"] = "Link cases";
|
|
18281
|
-
LinkedCasesEventTriggers["MANAGE_CASE_LINKS"] = "Manage case links";
|
|
18282
|
-
})(LinkedCasesEventTriggers || (LinkedCasesEventTriggers = {}));
|
|
18283
|
-
var Patterns;
|
|
18284
|
-
(function (Patterns) {
|
|
18285
|
-
Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
|
|
18286
|
-
})(Patterns || (Patterns = {}));
|
|
18287
|
-
|
|
18288
|
-
function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
18289
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
18290
|
-
i0.ɵɵelementStart(1, "span", 6);
|
|
18291
|
-
i0.ɵɵtext(2, "Error:");
|
|
18292
|
-
i0.ɵɵelementEnd();
|
|
18293
|
-
i0.ɵɵtext(3);
|
|
18294
|
-
i0.ɵɵelementEnd();
|
|
18295
|
-
} if (rf & 2) {
|
|
18296
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
18297
|
-
i0.ɵɵadvance(3);
|
|
18298
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.linkedCasesService.serverLinkedApiError.message, " ");
|
|
18299
|
-
} }
|
|
18300
|
-
function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
18301
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
18302
|
-
i0.ɵɵelementStart(0, "div");
|
|
18303
|
-
i0.ɵɵelementStart(1, "h1", 1);
|
|
18304
|
-
i0.ɵɵtext(2, "There is a problem");
|
|
18305
|
-
i0.ɵɵelementEnd();
|
|
18306
|
-
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_1_p_3_Template, 4, 1, "p", 2);
|
|
18307
|
-
i0.ɵɵelementStart(4, "p", 3);
|
|
18308
|
-
i0.ɵɵelementStart(5, "a", 4);
|
|
18309
|
-
i0.ɵɵlistener("click", function BeforeYouStartComponent_div_1_Template_a_click_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.onBack(); });
|
|
18310
|
-
i0.ɵɵtext(6, "Go back to the Linked cases tab");
|
|
18311
|
-
i0.ɵɵelementEnd();
|
|
18312
|
-
i0.ɵɵelementEnd();
|
|
18313
|
-
i0.ɵɵelementEnd();
|
|
18314
|
-
} if (rf & 2) {
|
|
18315
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18316
|
-
i0.ɵɵadvance(3);
|
|
18317
|
-
i0.ɵɵproperty("ngIf", ctx_r0.linkedCasesService.serverLinkedApiError);
|
|
18318
|
-
} }
|
|
18319
|
-
function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
18320
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
18321
|
-
i0.ɵɵelementStart(1, "p", 3);
|
|
18322
|
-
i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
|
|
18323
|
-
i0.ɵɵelementEnd();
|
|
18324
|
-
i0.ɵɵelementStart(3, "p", 3);
|
|
18325
|
-
i0.ɵɵtext(4, "If the cases to be linked has no lead, you can start the linking journey from any of those cases.");
|
|
18326
|
-
i0.ɵɵelementEnd();
|
|
18327
|
-
i0.ɵɵelementEnd();
|
|
18328
|
-
} }
|
|
18329
|
-
function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
18330
|
-
i0.ɵɵelementStart(0, "div", 12);
|
|
18331
|
-
i0.ɵɵelementStart(1, "p", 3);
|
|
18332
|
-
i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
|
|
18333
|
-
i0.ɵɵelementEnd();
|
|
18334
|
-
i0.ɵɵelementEnd();
|
|
18335
|
-
} }
|
|
18336
|
-
function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
18337
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
18338
|
-
i0.ɵɵelementStart(0, "div");
|
|
18339
|
-
i0.ɵɵelementStart(1, "h1", 1);
|
|
18340
|
-
i0.ɵɵtext(2, "Before you start");
|
|
18341
|
-
i0.ɵɵelementEnd();
|
|
18342
|
-
i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7);
|
|
18343
|
-
i0.ɵɵtemplate(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
|
|
18344
|
-
i0.ɵɵelementStart(5, "div", 9);
|
|
18345
|
-
i0.ɵɵelementStart(6, "button", 10);
|
|
18346
|
-
i0.ɵɵlistener("click", function BeforeYouStartComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
18347
|
-
i0.ɵɵtext(7, "Next");
|
|
18348
|
-
i0.ɵɵelementEnd();
|
|
18349
|
-
i0.ɵɵelementEnd();
|
|
18350
|
-
i0.ɵɵelementEnd();
|
|
18351
|
-
} if (rf & 2) {
|
|
18352
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
18353
|
-
i0.ɵɵadvance(3);
|
|
18354
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isLinkCasesJourney);
|
|
18355
|
-
i0.ɵɵadvance(1);
|
|
18356
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
|
|
18357
|
-
} }
|
|
18358
|
-
class BeforeYouStartComponent {
|
|
18359
|
-
constructor(router, linkedCasesService) {
|
|
18360
|
-
this.router = router;
|
|
18361
|
-
this.linkedCasesService = linkedCasesService;
|
|
18362
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18363
|
-
this.isLinkCasesJourney = false;
|
|
18364
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
18365
|
-
// re-initiate the state based on the casefield value
|
|
18366
|
-
const linkedCaseRefereneIds = this.linkedCasesService.caseFieldValue.filter(item => item).map(item => item.id);
|
|
18367
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.linkedCases.filter(item => linkedCaseRefereneIds.indexOf(item.caseReference) !== -1);
|
|
18368
|
-
this.linkedCasesService.initialCaseLinks = this.linkedCasesService.linkedCases;
|
|
18369
|
-
}
|
|
18370
|
-
onNext() {
|
|
18371
|
-
this.linkedCasesStateEmitter.emit({
|
|
18372
|
-
currentLinkedCasesPage: LinkedCasesPages.BEFORE_YOU_START,
|
|
18373
|
-
errorMessages: this.errorMessages,
|
|
18374
|
-
navigateToNextPage: true
|
|
18375
|
-
});
|
|
18376
|
-
}
|
|
18377
|
-
onBack() {
|
|
18378
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
18379
|
-
window.location.hash = 'Linked cases';
|
|
18380
|
-
});
|
|
18381
|
-
}
|
|
18382
|
-
}
|
|
18383
|
-
BeforeYouStartComponent.ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
18384
|
-
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) {
|
|
18385
|
-
i0.ɵɵelementStart(0, "div");
|
|
18386
|
-
i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0);
|
|
18387
|
-
i0.ɵɵtemplate(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
|
|
18388
|
-
i0.ɵɵelementEnd();
|
|
18389
|
-
} if (rf & 2) {
|
|
18390
|
-
i0.ɵɵadvance(1);
|
|
18391
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
18392
|
-
i0.ɵɵadvance(1);
|
|
18393
|
-
i0.ɵɵproperty("ngIf", !ctx.linkedCasesService || !ctx.linkedCasesService.serverLinkedApiError);
|
|
18394
|
-
} }, directives: [i2.NgIf], encapsulation: 2 });
|
|
18395
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
|
|
18396
|
-
type: Component,
|
|
18397
|
-
args: [{
|
|
18398
|
-
selector: 'ccd-linked-cases-before-you-start',
|
|
18399
|
-
templateUrl: './before-you-start.component.html'
|
|
18400
|
-
}]
|
|
18401
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
18402
|
-
type: Output
|
|
18403
|
-
}] }); })();
|
|
18404
|
-
|
|
18405
|
-
function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
|
|
18406
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
18407
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18408
|
-
i0.ɵɵelementStart(1, "td", 14);
|
|
18409
|
-
i0.ɵɵtext(2);
|
|
18410
|
-
i0.ɵɵelement(3, "br");
|
|
18411
|
-
i0.ɵɵtext(4);
|
|
18412
|
-
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
18413
|
-
i0.ɵɵelementEnd();
|
|
18414
|
-
i0.ɵɵelementStart(6, "td", 14);
|
|
18415
|
-
i0.ɵɵelementStart(7, "a", 15);
|
|
18416
|
-
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(); });
|
|
18417
|
-
i0.ɵɵtext(8, "Change");
|
|
18418
|
-
i0.ɵɵelementEnd();
|
|
18419
|
-
i0.ɵɵelementEnd();
|
|
18420
|
-
i0.ɵɵelementEnd();
|
|
18421
|
-
} if (rf & 2) {
|
|
18422
|
-
const case_r6 = ctx.$implicit;
|
|
18423
|
-
i0.ɵɵadvance(2);
|
|
18424
|
-
i0.ɵɵtextInterpolate1(" ", case_r6.caseName, " ");
|
|
18425
|
-
i0.ɵɵadvance(2);
|
|
18426
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 2, case_r6.caseReference), " ");
|
|
18427
|
-
} }
|
|
18428
|
-
function CheckYourAnswersComponent_table_4_tr_10_Template(rf, ctx) { if (rf & 1) {
|
|
18429
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18430
|
-
i0.ɵɵelementStart(1, "td", 16);
|
|
18431
|
-
i0.ɵɵtext(2, " None ");
|
|
18432
|
-
i0.ɵɵelementEnd();
|
|
18433
|
-
i0.ɵɵelementEnd();
|
|
18434
|
-
} }
|
|
18435
|
-
function CheckYourAnswersComponent_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
18436
|
-
i0.ɵɵelementStart(0, "table", 13);
|
|
18437
|
-
i0.ɵɵelementStart(1, "caption", 5);
|
|
18438
|
-
i0.ɵɵtext(2, "Cases to unlink");
|
|
18439
|
-
i0.ɵɵelementEnd();
|
|
18440
|
-
i0.ɵɵelementStart(3, "thead", 6);
|
|
18441
|
-
i0.ɵɵelementStart(4, "tr", 7);
|
|
18442
|
-
i0.ɵɵelementStart(5, "th", 8);
|
|
18443
|
-
i0.ɵɵtext(6, "Case name and number");
|
|
18444
|
-
i0.ɵɵelementEnd();
|
|
18445
|
-
i0.ɵɵelement(7, "th", 8);
|
|
18446
|
-
i0.ɵɵelementEnd();
|
|
18447
|
-
i0.ɵɵelementEnd();
|
|
18448
|
-
i0.ɵɵelementStart(8, "tbody", 10);
|
|
18449
|
-
i0.ɵɵtemplate(9, CheckYourAnswersComponent_table_4_tr_9_Template, 9, 4, "tr", 11);
|
|
18450
|
-
i0.ɵɵtemplate(10, CheckYourAnswersComponent_table_4_tr_10_Template, 3, 0, "tr", 12);
|
|
18451
|
-
i0.ɵɵelementEnd();
|
|
18452
|
-
i0.ɵɵelementEnd();
|
|
18453
|
-
} if (rf & 2) {
|
|
18454
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18455
|
-
i0.ɵɵadvance(9);
|
|
18456
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.casesToUnlink);
|
|
18457
|
-
i0.ɵɵadvance(1);
|
|
18458
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.casesToUnlink.length);
|
|
18459
|
-
} }
|
|
18460
|
-
function CheckYourAnswersComponent_th_15_Template(rf, ctx) { if (rf & 1) {
|
|
18461
|
-
i0.ɵɵelement(0, "th", 8);
|
|
18462
|
-
} }
|
|
18463
|
-
function CheckYourAnswersComponent_tr_17_span_8_br_3_Template(rf, ctx) { if (rf & 1) {
|
|
18464
|
-
i0.ɵɵelement(0, "br");
|
|
18465
|
-
} }
|
|
18466
|
-
function CheckYourAnswersComponent_tr_17_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
18467
|
-
i0.ɵɵelementStart(0, "span");
|
|
18468
|
-
i0.ɵɵtext(1);
|
|
18469
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
18470
|
-
i0.ɵɵtemplate(3, CheckYourAnswersComponent_tr_17_span_8_br_3_Template, 1, 0, "br", 19);
|
|
18471
|
-
i0.ɵɵelementEnd();
|
|
18472
|
-
} if (rf & 2) {
|
|
18473
|
-
const reason_r12 = ctx.$implicit;
|
|
18474
|
-
const isLast_r13 = ctx.last;
|
|
18475
|
-
i0.ɵɵadvance(1);
|
|
18476
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, reason_r12.reasonCode), "");
|
|
18477
|
-
i0.ɵɵadvance(2);
|
|
18478
|
-
i0.ɵɵproperty("ngIf", !isLast_r13);
|
|
18479
|
-
} }
|
|
18480
|
-
function CheckYourAnswersComponent_tr_17_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
18481
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
|
18482
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
18483
|
-
i0.ɵɵelementStart(1, "a", 15);
|
|
18484
|
-
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(); });
|
|
18485
|
-
i0.ɵɵtext(2, "Change");
|
|
18486
|
-
i0.ɵɵelementEnd();
|
|
18487
|
-
i0.ɵɵelementEnd();
|
|
18488
|
-
} }
|
|
18489
|
-
function CheckYourAnswersComponent_tr_17_Template(rf, ctx) { if (rf & 1) {
|
|
18490
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18491
|
-
i0.ɵɵelementStart(1, "td", 14);
|
|
18492
|
-
i0.ɵɵelementStart(2, "span");
|
|
18493
|
-
i0.ɵɵtext(3);
|
|
18494
|
-
i0.ɵɵelement(4, "br");
|
|
18495
|
-
i0.ɵɵtext(5);
|
|
18496
|
-
i0.ɵɵpipe(6, "ccdCaseReference");
|
|
18497
|
-
i0.ɵɵelementEnd();
|
|
18498
|
-
i0.ɵɵelementEnd();
|
|
18499
|
-
i0.ɵɵelementStart(7, "td", 14);
|
|
18500
|
-
i0.ɵɵtemplate(8, CheckYourAnswersComponent_tr_17_span_8_Template, 4, 4, "span", 17);
|
|
18501
|
-
i0.ɵɵelementEnd();
|
|
18502
|
-
i0.ɵɵelement(9, "td", 14);
|
|
18503
|
-
i0.ɵɵtemplate(10, CheckYourAnswersComponent_tr_17_td_10_Template, 3, 0, "td", 18);
|
|
18504
|
-
i0.ɵɵelementEnd();
|
|
18505
|
-
} if (rf & 2) {
|
|
18506
|
-
const case_r9 = ctx.$implicit;
|
|
18507
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
18508
|
-
i0.ɵɵadvance(3);
|
|
18509
|
-
i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
18510
|
-
i0.ɵɵadvance(2);
|
|
18511
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, case_r9.caseReference), " ");
|
|
18512
|
-
i0.ɵɵadvance(3);
|
|
18513
|
-
i0.ɵɵproperty("ngForOf", case_r9.reasons);
|
|
18514
|
-
i0.ɵɵadvance(2);
|
|
18515
|
-
i0.ɵɵproperty("ngIf", ctx_r2.isLinkCasesJourney);
|
|
18516
|
-
} }
|
|
18517
|
-
function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
|
|
18518
|
-
i0.ɵɵelementStart(0, "tr", 7);
|
|
18519
|
-
i0.ɵɵelementStart(1, "td", 20);
|
|
18520
|
-
i0.ɵɵtext(2, " None ");
|
|
18521
|
-
i0.ɵɵelementEnd();
|
|
18522
|
-
i0.ɵɵelementEnd();
|
|
18523
|
-
} }
|
|
18524
|
-
class CheckYourAnswersComponent {
|
|
18525
|
-
constructor(linkedCasesService) {
|
|
18526
|
-
this.linkedCasesService = linkedCasesService;
|
|
18527
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18528
|
-
}
|
|
18529
|
-
ngOnInit() {
|
|
18530
|
-
this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
|
|
18531
|
-
this.linkedCasesTableCaption = this.linkedCasesService.isLinkedCasesEventTrigger ? 'Proposed case links' : 'Linked cases';
|
|
18532
|
-
this.linkedCases = this.linkedCasesService.linkedCases.filter(linkedCase => !linkedCase.unlink);
|
|
18533
|
-
this.casesToUnlink = this.linkedCasesService.linkedCases.filter(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
18534
|
-
}
|
|
18535
|
-
onChange() {
|
|
18536
|
-
this.linkedCasesService.editMode = true;
|
|
18537
|
-
this.linkedCasesStateEmitter.emit({
|
|
18538
|
-
currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
|
|
18539
|
-
navigateToPreviousPage: true,
|
|
18540
|
-
navigateToNextPage: true
|
|
18541
|
-
});
|
|
18542
|
-
}
|
|
18543
|
-
}
|
|
18544
|
-
CheckYourAnswersComponent.ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
18545
|
-
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) {
|
|
18546
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
18547
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
18548
|
-
i0.ɵɵelementStart(2, "h1", 2);
|
|
18549
|
-
i0.ɵɵtext(3, "Check your answers");
|
|
18550
|
-
i0.ɵɵelementEnd();
|
|
18551
|
-
i0.ɵɵtemplate(4, CheckYourAnswersComponent_table_4_Template, 11, 2, "table", 3);
|
|
18552
|
-
i0.ɵɵelementStart(5, "table", 4);
|
|
18553
|
-
i0.ɵɵelementStart(6, "caption", 5);
|
|
18554
|
-
i0.ɵɵtext(7);
|
|
18555
|
-
i0.ɵɵelementEnd();
|
|
18556
|
-
i0.ɵɵelementStart(8, "thead", 6);
|
|
18557
|
-
i0.ɵɵelementStart(9, "tr", 7);
|
|
18558
|
-
i0.ɵɵelementStart(10, "th", 8);
|
|
18559
|
-
i0.ɵɵtext(11, "Case name and number");
|
|
18560
|
-
i0.ɵɵelementEnd();
|
|
18561
|
-
i0.ɵɵelementStart(12, "th", 8);
|
|
18562
|
-
i0.ɵɵtext(13, "Reasons for case link");
|
|
18563
|
-
i0.ɵɵelementEnd();
|
|
18564
|
-
i0.ɵɵelement(14, "th", 8);
|
|
18565
|
-
i0.ɵɵtemplate(15, CheckYourAnswersComponent_th_15_Template, 1, 0, "th", 9);
|
|
18566
|
-
i0.ɵɵelementEnd();
|
|
18567
|
-
i0.ɵɵelementEnd();
|
|
18568
|
-
i0.ɵɵelementStart(16, "tbody", 10);
|
|
18569
|
-
i0.ɵɵtemplate(17, CheckYourAnswersComponent_tr_17_Template, 11, 6, "tr", 11);
|
|
18570
|
-
i0.ɵɵtemplate(18, CheckYourAnswersComponent_tr_18_Template, 3, 0, "tr", 12);
|
|
18571
|
-
i0.ɵɵelementEnd();
|
|
18572
|
-
i0.ɵɵelementEnd();
|
|
18573
|
-
i0.ɵɵelementEnd();
|
|
18574
|
-
i0.ɵɵelementEnd();
|
|
18575
|
-
} if (rf & 2) {
|
|
18576
|
-
i0.ɵɵadvance(4);
|
|
18577
|
-
i0.ɵɵproperty("ngIf", !ctx.isLinkCasesJourney);
|
|
18578
|
-
i0.ɵɵadvance(3);
|
|
18579
|
-
i0.ɵɵtextInterpolate(ctx.linkedCasesTableCaption);
|
|
18580
|
-
i0.ɵɵadvance(8);
|
|
18581
|
-
i0.ɵɵproperty("ngIf", ctx.isLinkCasesJourney);
|
|
18582
|
-
i0.ɵɵadvance(2);
|
|
18583
|
-
i0.ɵɵproperty("ngForOf", ctx.linkedCases);
|
|
18584
|
-
i0.ɵɵadvance(1);
|
|
18585
|
-
i0.ɵɵproperty("ngIf", !ctx.linkedCases.length);
|
|
18586
|
-
} }, styles: [".float-right[_ngcontent-%COMP%]{float:right}"] });
|
|
18587
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
|
|
18588
|
-
type: Component,
|
|
18589
|
-
args: [{
|
|
18590
|
-
selector: 'ccd-linked-cases-check-your-answers',
|
|
18591
|
-
templateUrl: './check-your-answers.component.html',
|
|
18592
|
-
styleUrls: ['./check-your-answers.component.scss']
|
|
18593
|
-
}]
|
|
18594
|
-
}], function () { return [{ type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
18595
|
-
type: Output
|
|
18596
|
-
}] }); })();
|
|
18597
|
-
|
|
18598
|
-
class ValidatorsUtils {
|
|
18599
|
-
numberLengthValidator(inputLength) {
|
|
18600
|
-
return (control) => {
|
|
18601
|
-
return control.value.length !== inputLength ? { isValid: false } : null;
|
|
18602
|
-
};
|
|
18603
|
-
}
|
|
18604
|
-
formArraySelectedValidator() {
|
|
18605
|
-
return (control) => {
|
|
18606
|
-
return control.value.every((option) => !option.selected) ? { isValid: false } : null;
|
|
18607
|
-
};
|
|
18608
|
-
}
|
|
18609
|
-
regexPattern(regexPattern) {
|
|
18610
|
-
return (control) => {
|
|
18611
|
-
const regex = new RegExp(regexPattern);
|
|
18612
|
-
return regex.test(control.value) ? null : { isValid: false };
|
|
18613
|
-
};
|
|
18614
|
-
}
|
|
18615
|
-
}
|
|
18616
|
-
ValidatorsUtils.ɵfac = function ValidatorsUtils_Factory(t) { return new (t || ValidatorsUtils)(); };
|
|
18617
|
-
ValidatorsUtils.ɵprov = i0.ɵɵdefineInjectable({ token: ValidatorsUtils, factory: ValidatorsUtils.ɵfac, providedIn: 'root' });
|
|
18618
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidatorsUtils, [{
|
|
18619
|
-
type: Injectable,
|
|
18620
|
-
args: [{ providedIn: 'root' }]
|
|
18621
|
-
}], null, null); })();
|
|
18622
|
-
|
|
18623
|
-
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
18624
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18625
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18626
|
-
i0.ɵɵtext(2, "Error:");
|
|
18627
|
-
i0.ɵɵelementEnd();
|
|
18628
|
-
i0.ɵɵtext(3);
|
|
18629
|
-
i0.ɵɵelementEnd();
|
|
18630
|
-
} if (rf & 2) {
|
|
18631
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
18632
|
-
i0.ɵɵadvance(3);
|
|
18633
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r4.caseNumberError, " ");
|
|
18634
|
-
} }
|
|
18635
|
-
function LinkCasesComponent_div_8_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
18636
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18637
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18638
|
-
i0.ɵɵtext(2, "Error:");
|
|
18639
|
-
i0.ɵɵelementEnd();
|
|
18640
|
-
i0.ɵɵtext(3);
|
|
18641
|
-
i0.ɵɵelementEnd();
|
|
18642
|
-
} if (rf & 2) {
|
|
18643
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
18644
|
-
i0.ɵɵadvance(3);
|
|
18645
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r5.caseReasonError, " ");
|
|
18646
|
-
} }
|
|
18647
|
-
function LinkCasesComponent_div_8_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
18648
|
-
i0.ɵɵelementStart(0, "div", 30);
|
|
18649
|
-
i0.ɵɵelement(1, "input", 31);
|
|
18650
|
-
i0.ɵɵelementStart(2, "label", 32);
|
|
18651
|
-
i0.ɵɵtext(3);
|
|
18652
|
-
i0.ɵɵelementEnd();
|
|
18653
|
-
i0.ɵɵelementEnd();
|
|
18654
|
-
} if (rf & 2) {
|
|
18655
|
-
const reason_r8 = ctx.$implicit;
|
|
18656
|
-
const pos_r9 = ctx.index;
|
|
18657
|
-
i0.ɵɵproperty("formGroupName", pos_r9);
|
|
18658
|
-
i0.ɵɵadvance(1);
|
|
18659
|
-
i0.ɵɵpropertyInterpolate("id", reason_r8.key);
|
|
18660
|
-
i0.ɵɵproperty("value", reason_r8.value_en);
|
|
18661
|
-
i0.ɵɵadvance(1);
|
|
18662
|
-
i0.ɵɵpropertyInterpolate("for", reason_r8.key);
|
|
18663
|
-
i0.ɵɵadvance(1);
|
|
18664
|
-
i0.ɵɵtextInterpolate(reason_r8.value_en);
|
|
18665
|
-
} }
|
|
18666
|
-
function LinkCasesComponent_div_8_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
18667
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18668
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18669
|
-
i0.ɵɵtext(2, "Error:");
|
|
18670
|
-
i0.ɵɵelementEnd();
|
|
18671
|
-
i0.ɵɵtext(3);
|
|
18672
|
-
i0.ɵɵelementEnd();
|
|
18673
|
-
} if (rf & 2) {
|
|
18674
|
-
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
18675
|
-
i0.ɵɵadvance(3);
|
|
18676
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r7.caseSelectionError, " ");
|
|
18677
|
-
} }
|
|
18678
|
-
const _c0$m = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
18679
|
-
function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
18680
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
18681
|
-
i0.ɵɵelementStart(0, "div", 21);
|
|
18682
|
-
i0.ɵɵelementStart(1, "h3", 22);
|
|
18683
|
-
i0.ɵɵtext(2, "Enter case reference");
|
|
18684
|
-
i0.ɵɵelementEnd();
|
|
18685
|
-
i0.ɵɵelementStart(3, "div", 5);
|
|
18686
|
-
i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
|
|
18687
|
-
i0.ɵɵelement(5, "input", 23);
|
|
18688
|
-
i0.ɵɵelementEnd();
|
|
18689
|
-
i0.ɵɵelementStart(6, "h3", 22);
|
|
18690
|
-
i0.ɵɵtext(7, "Why should these cases be linked?");
|
|
18691
|
-
i0.ɵɵelementEnd();
|
|
18692
|
-
i0.ɵɵelementStart(8, "div", 24);
|
|
18693
|
-
i0.ɵɵtext(9, " Select all that apply. ");
|
|
18694
|
-
i0.ɵɵelementEnd();
|
|
18695
|
-
i0.ɵɵtemplate(10, LinkCasesComponent_div_8_span_10_Template, 4, 1, "span", 6);
|
|
18696
|
-
i0.ɵɵelementStart(11, "div", 25);
|
|
18697
|
-
i0.ɵɵtemplate(12, LinkCasesComponent_div_8_div_12_Template, 4, 5, "div", 26);
|
|
18698
|
-
i0.ɵɵelementEnd();
|
|
18699
|
-
i0.ɵɵelement(13, "br");
|
|
18700
|
-
i0.ɵɵelement(14, "br");
|
|
18701
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_div_8_span_15_Template, 4, 1, "span", 6);
|
|
18702
|
-
i0.ɵɵelementStart(16, "button", 27);
|
|
18703
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.submitCaseInfo(); });
|
|
18704
|
-
i0.ɵɵtext(17, "Propose case link");
|
|
18705
|
-
i0.ɵɵelementEnd();
|
|
18706
|
-
i0.ɵɵelementEnd();
|
|
18707
|
-
} if (rf & 2) {
|
|
18708
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
18709
|
-
i0.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
|
|
18710
|
-
i0.ɵɵadvance(3);
|
|
18711
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$m, !!ctx_r0.caseNumberError));
|
|
18712
|
-
i0.ɵɵadvance(1);
|
|
18713
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
|
|
18714
|
-
i0.ɵɵadvance(6);
|
|
18715
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
|
|
18716
|
-
i0.ɵɵadvance(1);
|
|
18717
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
18718
|
-
i0.ɵɵadvance(1);
|
|
18719
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
18720
|
-
i0.ɵɵadvance(3);
|
|
18721
|
-
i0.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
18722
|
-
} }
|
|
18723
|
-
function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
18724
|
-
i0.ɵɵelementStart(0, "span", 28);
|
|
18725
|
-
i0.ɵɵelementStart(1, "span", 29);
|
|
18726
|
-
i0.ɵɵtext(2, "Error:");
|
|
18727
|
-
i0.ɵɵelementEnd();
|
|
18728
|
-
i0.ɵɵtext(3);
|
|
18729
|
-
i0.ɵɵelementEnd();
|
|
18730
|
-
} if (rf & 2) {
|
|
18731
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
18732
|
-
i0.ɵɵadvance(3);
|
|
18733
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.noSelectedCaseError, " ");
|
|
18734
|
-
} }
|
|
18735
|
-
function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
|
|
18736
|
-
i0.ɵɵelementStart(0, "span");
|
|
18737
|
-
i0.ɵɵtext(1);
|
|
18738
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
18739
|
-
i0.ɵɵelement(3, "br");
|
|
18740
|
-
i0.ɵɵelementEnd();
|
|
18741
|
-
} if (rf & 2) {
|
|
18742
|
-
const reason_r15 = ctx.$implicit;
|
|
18743
|
-
i0.ɵɵadvance(1);
|
|
18744
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r15.reasonCode));
|
|
18745
|
-
} }
|
|
18746
|
-
const _c1$6 = function (a0) { return { "table-group-error": a0 }; };
|
|
18747
|
-
function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
18748
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
18749
|
-
i0.ɵɵelementStart(0, "tr", 10);
|
|
18750
|
-
i0.ɵɵelementStart(1, "td", 33);
|
|
18751
|
-
i0.ɵɵelement(2, "div", 34);
|
|
18752
|
-
i0.ɵɵelementStart(3, "span");
|
|
18753
|
-
i0.ɵɵtext(4);
|
|
18754
|
-
i0.ɵɵelement(5, "br");
|
|
18755
|
-
i0.ɵɵtext(6);
|
|
18756
|
-
i0.ɵɵpipe(7, "ccdCaseReference");
|
|
18757
|
-
i0.ɵɵelementEnd();
|
|
18758
|
-
i0.ɵɵelementEnd();
|
|
18759
|
-
i0.ɵɵelementStart(8, "td", 35);
|
|
18760
|
-
i0.ɵɵtext(9);
|
|
18761
|
-
i0.ɵɵelementEnd();
|
|
18762
|
-
i0.ɵɵelementStart(10, "td", 33);
|
|
18763
|
-
i0.ɵɵtext(11);
|
|
18764
|
-
i0.ɵɵelementEnd();
|
|
18765
|
-
i0.ɵɵelementStart(12, "td", 35);
|
|
18766
|
-
i0.ɵɵtext(13);
|
|
18767
|
-
i0.ɵɵelementEnd();
|
|
18768
|
-
i0.ɵɵelementStart(14, "td", 33);
|
|
18769
|
-
i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 36);
|
|
18770
|
-
i0.ɵɵelementEnd();
|
|
18771
|
-
i0.ɵɵelementStart(16, "td", 33);
|
|
18772
|
-
i0.ɵɵelementStart(17, "a", 37);
|
|
18773
|
-
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); });
|
|
18774
|
-
i0.ɵɵtext(18, "Remove");
|
|
18775
|
-
i0.ɵɵelementEnd();
|
|
18776
|
-
i0.ɵɵelementEnd();
|
|
18777
|
-
i0.ɵɵelementEnd();
|
|
18778
|
-
} if (rf & 2) {
|
|
18779
|
-
const case_r12 = ctx.$implicit;
|
|
18780
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
18781
|
-
i0.ɵɵadvance(2);
|
|
18782
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$6, ctx_r2.caseSelectionError && case_r12.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
|
|
18783
|
-
i0.ɵɵadvance(2);
|
|
18784
|
-
i0.ɵɵtextInterpolate1("", case_r12.caseName, " ");
|
|
18785
|
-
i0.ɵɵadvance(2);
|
|
18786
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 10, case_r12.caseReference), "");
|
|
18787
|
-
i0.ɵɵadvance(2);
|
|
18788
|
-
i0.ɵɵproperty("title", case_r12.caseTypeDescription);
|
|
18789
|
-
i0.ɵɵadvance(1);
|
|
18790
|
-
i0.ɵɵtextInterpolate(case_r12.caseType);
|
|
18791
|
-
i0.ɵɵadvance(2);
|
|
18792
|
-
i0.ɵɵtextInterpolate(case_r12.caseService);
|
|
18793
|
-
i0.ɵɵadvance(1);
|
|
18794
|
-
i0.ɵɵproperty("title", case_r12.caseStateDescription);
|
|
18795
|
-
i0.ɵɵadvance(1);
|
|
18796
|
-
i0.ɵɵtextInterpolate(case_r12.caseState);
|
|
18797
|
-
i0.ɵɵadvance(2);
|
|
18798
|
-
i0.ɵɵproperty("ngForOf", case_r12.reasons);
|
|
18799
|
-
i0.ɵɵadvance(2);
|
|
18800
|
-
i0.ɵɵattribute("id", case_r12.caseReference);
|
|
18801
|
-
} }
|
|
18802
|
-
function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
|
|
18803
|
-
i0.ɵɵelementStart(0, "tr", 10);
|
|
18804
|
-
i0.ɵɵelementStart(1, "td", 38);
|
|
18805
|
-
i0.ɵɵtext(2, " None ");
|
|
18806
|
-
i0.ɵɵelementEnd();
|
|
18807
|
-
i0.ɵɵelementEnd();
|
|
18808
|
-
} }
|
|
18809
|
-
class LinkCasesComponent {
|
|
18810
|
-
constructor(casesService, fb, validatorsUtils, linkedCasesService) {
|
|
18811
|
-
this.casesService = casesService;
|
|
18812
|
-
this.fb = fb;
|
|
18813
|
-
this.validatorsUtils = validatorsUtils;
|
|
18814
|
-
this.linkedCasesService = linkedCasesService;
|
|
18815
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
18816
|
-
this.errorMessages = [];
|
|
18817
|
-
this.selectedCases = [];
|
|
18818
|
-
this.linkCaseReasons = [];
|
|
18819
|
-
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
18820
|
-
}
|
|
18821
|
-
ngOnInit() {
|
|
18822
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
18823
|
-
this.caseName = this.linkedCasesService.caseName;
|
|
18824
|
-
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
18825
|
-
this.initForm();
|
|
18826
|
-
if (this.linkedCasesService.editMode) {
|
|
18827
|
-
// this may have includes the currently added one but yet to be submitted.
|
|
18828
|
-
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
18829
|
-
}
|
|
18830
|
-
else if (this.linkedCasesService.initialCaseLinks.length !== this.linkedCasesService.caseFieldValue.length) {
|
|
18831
|
-
this.linkedCasesService.linkedCases = this.linkedCasesService.initialCaseLinks;
|
|
18832
|
-
}
|
|
18833
|
-
}
|
|
18834
|
-
initForm() {
|
|
18835
|
-
this.linkCaseForm = this.fb.group({
|
|
18836
|
-
caseNumber: ['', [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
|
|
18837
|
-
reasonType: this.getReasonTypeFormArray,
|
|
18838
|
-
});
|
|
18839
|
-
}
|
|
18840
|
-
get getReasonTypeFormArray() {
|
|
18841
|
-
return this.fb.array(this.linkCaseReasons.map((val) => this.fb.group({
|
|
18842
|
-
key: [val.key],
|
|
18843
|
-
value_en: [val.value_en],
|
|
18844
|
-
value_cy: [val.value_cy],
|
|
18845
|
-
hint_text_en: [val.hint_text_en],
|
|
18846
|
-
hint_text_cy: [val.hint_text_cy],
|
|
18847
|
-
lov_order: [val.lov_order],
|
|
18848
|
-
parent_key: [val.parent_key],
|
|
18849
|
-
selected: [!!val.selected],
|
|
18850
|
-
})), this.validatorsUtils.formArraySelectedValidator());
|
|
18851
|
-
}
|
|
18852
|
-
submitCaseInfo() {
|
|
18853
|
-
this.errorMessages = [];
|
|
18854
|
-
this.caseReasonError = null;
|
|
18855
|
-
this.caseNumberError = null;
|
|
18856
|
-
this.caseSelectionError = null;
|
|
18857
|
-
this.noSelectedCaseError = null;
|
|
18858
|
-
if (this.linkCaseForm.valid &&
|
|
18859
|
-
!this.isCaseSelected(this.selectedCases) &&
|
|
18860
|
-
!this.isCaseSelected(this.linkedCasesService.linkedCases) &&
|
|
18861
|
-
!this.isCaseSelectedSameAsCurrentCase()) {
|
|
18862
|
-
this.getCaseInfo();
|
|
18863
|
-
}
|
|
18864
|
-
else {
|
|
18865
|
-
this.showErrorInfo();
|
|
18866
|
-
}
|
|
18867
|
-
}
|
|
18868
|
-
isCaseSelected(linkedCases) {
|
|
18869
|
-
if (linkedCases.length === 0) {
|
|
18870
|
-
return false;
|
|
18871
|
-
}
|
|
18872
|
-
const caseNumber = this.linkCaseForm.value.caseNumber;
|
|
18873
|
-
return !!linkedCases.find((caseLink) => caseLink.caseReference.split('-').join('') === caseNumber.split('-').join(''));
|
|
18874
|
-
}
|
|
18875
|
-
isCaseSelectedSameAsCurrentCase() {
|
|
18876
|
-
return this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('');
|
|
18877
|
-
}
|
|
18878
|
-
showErrorInfo() {
|
|
18879
|
-
if (this.linkCaseForm.controls.caseNumber.invalid) {
|
|
18880
|
-
this.caseNumberError = LinkedCasesErrorMessages.CaseNumberError;
|
|
18881
|
-
this.errorMessages.push({
|
|
18882
|
-
title: 'dummy-case-number',
|
|
18883
|
-
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
18884
|
-
fieldId: 'caseNumber',
|
|
18885
|
-
});
|
|
18886
|
-
}
|
|
18887
|
-
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
18888
|
-
this.caseReasonError = LinkedCasesErrorMessages.ReasonSelectionError;
|
|
18889
|
-
this.errorMessages.push({
|
|
18890
|
-
title: 'dummy-case-reason',
|
|
18891
|
-
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
18892
|
-
fieldId: 'caseReason',
|
|
18893
|
-
});
|
|
18894
|
-
}
|
|
18895
|
-
if (this.isCaseSelected(this.selectedCases)) {
|
|
18896
|
-
this.caseSelectionError = LinkedCasesErrorMessages.CaseProposedError;
|
|
18897
|
-
this.errorMessages.push({
|
|
18898
|
-
title: 'dummy-case-number',
|
|
18899
|
-
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
18900
|
-
fieldId: 'caseNumber',
|
|
18901
|
-
});
|
|
18902
|
-
}
|
|
18903
|
-
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
18904
|
-
this.caseSelectionError = LinkedCasesErrorMessages.CasesLinkedError;
|
|
18905
|
-
this.errorMessages.push({
|
|
18906
|
-
title: 'dummy-case-number',
|
|
18907
|
-
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
18908
|
-
fieldId: 'caseNumber',
|
|
18909
|
-
});
|
|
18910
|
-
}
|
|
18911
|
-
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
18912
|
-
this.errorMessages.push({
|
|
18913
|
-
title: 'dummy-case-number',
|
|
18914
|
-
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
18915
|
-
fieldId: 'caseNumber',
|
|
18916
|
-
});
|
|
18917
|
-
}
|
|
18918
|
-
window.scrollTo(0, 0);
|
|
18919
|
-
this.emitLinkedCasesState(false);
|
|
18920
|
-
}
|
|
18921
|
-
getCaseInfo() {
|
|
18922
|
-
const caseNumberData = this.linkCaseForm.value.caseNumber.replace(/[- ]/g, '');
|
|
18923
|
-
this.casesService
|
|
18924
|
-
.getCaseViewV2(caseNumberData)
|
|
18925
|
-
.subscribe((caseView) => {
|
|
18926
|
-
this.linkedCasesService.caseDetails = caseView;
|
|
18927
|
-
const caseLink = {
|
|
18928
|
-
caseReference: caseView.case_id,
|
|
18929
|
-
reasons: this.getSelectedCaseReasons(),
|
|
18930
|
-
createdDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
18931
|
-
caseType: caseView.case_type.name || '',
|
|
18932
|
-
caseTypeDescription: caseView.case_type.description || '',
|
|
18933
|
-
caseState: caseView.state.name || '',
|
|
18934
|
-
caseStateDescription: caseView.state.description || '',
|
|
18935
|
-
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
18936
|
-
caseName: this.linkedCasesService.getCaseName(caseView),
|
|
18937
|
-
};
|
|
18938
|
-
const ccdApiCaseLinkData = {
|
|
18939
|
-
CaseReference: caseView.case_id,
|
|
18940
|
-
CaseType: caseView.case_type.id,
|
|
18941
|
-
CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
|
|
18942
|
-
ReasonForLink: this.getSelectedCCDTypeCaseReason()
|
|
18943
|
-
};
|
|
18944
|
-
if (!this.linkedCasesService.caseFieldValue) {
|
|
18945
|
-
this.linkedCasesService.caseFieldValue = [];
|
|
18946
|
-
}
|
|
18947
|
-
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
18948
|
-
this.selectedCases.push(caseLink);
|
|
18949
|
-
this.initForm();
|
|
18950
|
-
this.emitLinkedCasesState(false);
|
|
18951
|
-
}, (error) => {
|
|
18952
|
-
this.caseNumberError = LinkedCasesErrorMessages.CaseCheckAgainError;
|
|
18953
|
-
this.errorMessages.push({
|
|
18954
|
-
title: 'dummy-case-number',
|
|
18955
|
-
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
18956
|
-
fieldId: 'caseNumber',
|
|
18957
|
-
});
|
|
18958
|
-
this.emitLinkedCasesState(false);
|
|
18959
|
-
window.scrollTo(0, 0);
|
|
18960
|
-
return throwError(error);
|
|
18961
|
-
});
|
|
18962
|
-
}
|
|
18963
|
-
// Return linked cases state and error messages to the parent
|
|
18964
|
-
emitLinkedCasesState(isNavigateToNextPage) {
|
|
18965
|
-
this.linkedCasesStateEmitter.emit({
|
|
18966
|
-
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
18967
|
-
errorMessages: this.errorMessages,
|
|
18968
|
-
navigateToNextPage: isNavigateToNextPage,
|
|
18969
|
-
});
|
|
18970
|
-
}
|
|
18971
|
-
getSelectedCaseReasons() {
|
|
18972
|
-
const selectedReasons = [];
|
|
18973
|
-
this.linkCaseForm.controls.reasonType.value.forEach((selectedReason) => {
|
|
18974
|
-
if (selectedReason.selected) {
|
|
18975
|
-
selectedReasons.push({
|
|
18976
|
-
reasonCode: selectedReason.key
|
|
18977
|
-
});
|
|
18978
|
-
}
|
|
18979
|
-
});
|
|
18980
|
-
return selectedReasons;
|
|
18981
|
-
}
|
|
18982
|
-
getSelectedCCDTypeCaseReason() {
|
|
18983
|
-
const selectedReasons = [];
|
|
18984
|
-
this.linkCaseForm.controls.reasonType.value.forEach((selectedReason) => {
|
|
18985
|
-
if (selectedReason.selected) {
|
|
18986
|
-
selectedReasons.push({
|
|
18987
|
-
value: {
|
|
18988
|
-
Reason: selectedReason.key,
|
|
18989
|
-
}
|
|
18990
|
-
});
|
|
18991
|
-
}
|
|
18992
|
-
});
|
|
18993
|
-
return selectedReasons;
|
|
18994
|
-
}
|
|
18995
|
-
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
18996
|
-
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
18997
|
-
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
18998
|
-
if (updatedItems) {
|
|
18999
|
-
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
19000
|
-
}
|
|
19001
|
-
this.selectedCases.splice(pos, 1);
|
|
19002
|
-
}
|
|
19003
|
-
onNext() {
|
|
19004
|
-
this.errorMessages = [];
|
|
19005
|
-
this.caseReasonError = null;
|
|
19006
|
-
this.caseNumberError = null;
|
|
19007
|
-
this.caseSelectionError = null;
|
|
19008
|
-
this.noSelectedCaseError = null;
|
|
19009
|
-
let navigateToNextPage = true;
|
|
19010
|
-
if (this.selectedCases.length) {
|
|
19011
|
-
this.linkedCasesService.linkedCases = this.selectedCases;
|
|
19012
|
-
}
|
|
19013
|
-
else {
|
|
19014
|
-
this.noSelectedCaseError = LinkedCasesErrorMessages.CaseSelectionError;
|
|
19015
|
-
this.errorMessages.push({
|
|
19016
|
-
title: 'dummy-case-selection',
|
|
19017
|
-
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
19018
|
-
fieldId: 'caseReason',
|
|
19019
|
-
});
|
|
19020
|
-
navigateToNextPage = false;
|
|
19021
|
-
}
|
|
19022
|
-
this.emitLinkedCasesState(navigateToNextPage);
|
|
19023
|
-
}
|
|
19024
|
-
}
|
|
19025
|
-
LinkCasesComponent.ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i2$1.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19026
|
-
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) {
|
|
19027
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19028
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19029
|
-
i0.ɵɵelementStart(2, "div");
|
|
19030
|
-
i0.ɵɵelementStart(3, "span", 2);
|
|
19031
|
-
i0.ɵɵtext(4);
|
|
19032
|
-
i0.ɵɵpipe(5, "ccdCaseReference");
|
|
19033
|
-
i0.ɵɵelementEnd();
|
|
19034
|
-
i0.ɵɵelementStart(6, "h1", 3);
|
|
19035
|
-
i0.ɵɵtext(7, "Select a\u00A0case you want to link to this case");
|
|
19036
|
-
i0.ɵɵelementEnd();
|
|
19037
|
-
i0.ɵɵtemplate(8, LinkCasesComponent_div_8_Template, 18, 11, "div", 4);
|
|
19038
|
-
i0.ɵɵelement(9, "hr");
|
|
19039
|
-
i0.ɵɵelement(10, "br");
|
|
19040
|
-
i0.ɵɵelement(11, "br");
|
|
19041
|
-
i0.ɵɵelementStart(12, "div", 5);
|
|
19042
|
-
i0.ɵɵtemplate(13, LinkCasesComponent_span_13_Template, 4, 1, "span", 6);
|
|
19043
|
-
i0.ɵɵelementStart(14, "table", 7);
|
|
19044
|
-
i0.ɵɵelementStart(15, "caption", 8);
|
|
19045
|
-
i0.ɵɵtext(16, "Proposed case links ");
|
|
19046
|
-
i0.ɵɵelementEnd();
|
|
19047
|
-
i0.ɵɵelementStart(17, "thead", 9);
|
|
19048
|
-
i0.ɵɵelementStart(18, "tr", 10);
|
|
19049
|
-
i0.ɵɵelementStart(19, "th", 11);
|
|
19050
|
-
i0.ɵɵtext(20, "Case name and number");
|
|
19051
|
-
i0.ɵɵelementEnd();
|
|
19052
|
-
i0.ɵɵelementStart(21, "th", 12);
|
|
19053
|
-
i0.ɵɵtext(22, "Case type ");
|
|
19054
|
-
i0.ɵɵelementEnd();
|
|
19055
|
-
i0.ɵɵelementStart(23, "th", 13);
|
|
19056
|
-
i0.ɵɵtext(24, "Service");
|
|
19057
|
-
i0.ɵɵelementEnd();
|
|
19058
|
-
i0.ɵɵelementStart(25, "th", 13);
|
|
19059
|
-
i0.ɵɵtext(26, "State");
|
|
19060
|
-
i0.ɵɵelementEnd();
|
|
19061
|
-
i0.ɵɵelementStart(27, "th", 14);
|
|
19062
|
-
i0.ɵɵtext(28, "Reasons for case link");
|
|
19063
|
-
i0.ɵɵelementEnd();
|
|
19064
|
-
i0.ɵɵelement(29, "th", 15);
|
|
19065
|
-
i0.ɵɵelementEnd();
|
|
19066
|
-
i0.ɵɵelementEnd();
|
|
19067
|
-
i0.ɵɵelementStart(30, "tbody", 16);
|
|
19068
|
-
i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17);
|
|
19069
|
-
i0.ɵɵtemplate(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
|
|
19070
|
-
i0.ɵɵelementEnd();
|
|
19071
|
-
i0.ɵɵelementEnd();
|
|
19072
|
-
i0.ɵɵelementEnd();
|
|
19073
|
-
i0.ɵɵelementStart(33, "div", 19);
|
|
19074
|
-
i0.ɵɵelementStart(34, "button", 20);
|
|
19075
|
-
i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
|
|
19076
|
-
i0.ɵɵtext(35, "Next");
|
|
19077
|
-
i0.ɵɵelementEnd();
|
|
19078
|
-
i0.ɵɵelementEnd();
|
|
19079
|
-
i0.ɵɵelementEnd();
|
|
19080
|
-
i0.ɵɵelementEnd();
|
|
19081
|
-
i0.ɵɵelementEnd();
|
|
19082
|
-
} if (rf & 2) {
|
|
19083
|
-
i0.ɵɵadvance(4);
|
|
19084
|
-
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
19085
|
-
i0.ɵɵadvance(4);
|
|
19086
|
-
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
19087
|
-
i0.ɵɵadvance(4);
|
|
19088
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx.noSelectedCaseError));
|
|
19089
|
-
i0.ɵɵadvance(1);
|
|
19090
|
-
i0.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
|
|
19091
|
-
i0.ɵɵadvance(18);
|
|
19092
|
-
i0.ɵɵproperty("ngForOf", ctx.selectedCases);
|
|
19093
|
-
i0.ɵɵadvance(1);
|
|
19094
|
-
i0.ɵɵproperty("ngIf", !ctx.selectedCases.length);
|
|
19095
|
-
} }, 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}"] });
|
|
19096
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
|
|
19097
|
-
type: Component,
|
|
19098
|
-
args: [{
|
|
19099
|
-
selector: 'ccd-link-cases',
|
|
19100
|
-
styleUrls: ['./link-cases.component.scss'],
|
|
19101
|
-
templateUrl: './link-cases.component.html',
|
|
19102
|
-
}]
|
|
19103
|
-
}], function () { return [{ type: CasesService }, { type: i2$1.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
19104
|
-
type: Output
|
|
19105
|
-
}] }); })();
|
|
19106
|
-
|
|
19107
|
-
function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
19108
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
19109
|
-
i0.ɵɵelementStart(0, "a", 2);
|
|
19110
|
-
i0.ɵɵlistener("click", function LinkedCasesFromTableComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.onClick(); });
|
|
19111
|
-
i0.ɵɵtext(1);
|
|
19112
|
-
i0.ɵɵelementEnd();
|
|
19113
|
-
} if (rf & 2) {
|
|
19114
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19115
|
-
i0.ɵɵadvance(1);
|
|
19116
|
-
i0.ɵɵtextInterpolate(ctx_r0.showHideLinkText);
|
|
19117
|
-
} }
|
|
19118
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
19119
|
-
i0.ɵɵelementStart(0, "span");
|
|
19120
|
-
i0.ɵɵtext(1);
|
|
19121
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
19122
|
-
i0.ɵɵelement(3, "br");
|
|
19123
|
-
i0.ɵɵelementEnd();
|
|
19124
|
-
} if (rf & 2) {
|
|
19125
|
-
const reason_r11 = ctx.$implicit;
|
|
19126
|
-
i0.ɵɵadvance(1);
|
|
19127
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, reason_r11.reasonCode), " ");
|
|
19128
|
-
} }
|
|
19129
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
19130
|
-
i0.ɵɵelementStart(0, "td", 14);
|
|
19131
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_span_1_Template, 4, 3, "span", 17);
|
|
19132
|
-
i0.ɵɵelementEnd();
|
|
19133
|
-
} if (rf & 2) {
|
|
19134
|
-
const details_r9 = ctx.$implicit;
|
|
19135
|
-
i0.ɵɵadvance(1);
|
|
19136
|
-
i0.ɵɵproperty("ngForOf", details_r9.reasons);
|
|
19137
|
-
} }
|
|
19138
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
19139
|
-
i0.ɵɵelementStart(0, "tr", 5);
|
|
19140
|
-
i0.ɵɵelementStart(1, "td", 11);
|
|
19141
|
-
i0.ɵɵelementStart(2, "p", 12);
|
|
19142
|
-
i0.ɵɵelementStart(3, "a", 13);
|
|
19143
|
-
i0.ɵɵelementStart(4, "span");
|
|
19144
|
-
i0.ɵɵtext(5);
|
|
19145
|
-
i0.ɵɵelement(6, "br");
|
|
19146
|
-
i0.ɵɵtext(7);
|
|
19147
|
-
i0.ɵɵpipe(8, "ccdCaseReference");
|
|
19148
|
-
i0.ɵɵelementEnd();
|
|
19149
|
-
i0.ɵɵelementEnd();
|
|
19150
|
-
i0.ɵɵelementEnd();
|
|
19151
|
-
i0.ɵɵelementEnd();
|
|
19152
|
-
i0.ɵɵelementStart(9, "td", 14);
|
|
19153
|
-
i0.ɵɵelementStart(10, "span", 15);
|
|
19154
|
-
i0.ɵɵtext(11);
|
|
19155
|
-
i0.ɵɵelementEnd();
|
|
19156
|
-
i0.ɵɵelementEnd();
|
|
19157
|
-
i0.ɵɵelementStart(12, "td", 14);
|
|
19158
|
-
i0.ɵɵelementStart(13, "span");
|
|
19159
|
-
i0.ɵɵtext(14);
|
|
19160
|
-
i0.ɵɵelementEnd();
|
|
19161
|
-
i0.ɵɵelementEnd();
|
|
19162
|
-
i0.ɵɵelementStart(15, "td", 14);
|
|
19163
|
-
i0.ɵɵelementStart(16, "span", 15);
|
|
19164
|
-
i0.ɵɵtext(17);
|
|
19165
|
-
i0.ɵɵelementEnd();
|
|
19166
|
-
i0.ɵɵelementEnd();
|
|
19167
|
-
i0.ɵɵtemplate(18, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_td_18_Template, 2, 1, "td", 16);
|
|
19168
|
-
i0.ɵɵelementEnd();
|
|
19169
|
-
} if (rf & 2) {
|
|
19170
|
-
const case_r7 = ctx.$implicit;
|
|
19171
|
-
i0.ɵɵadvance(3);
|
|
19172
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r7.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19173
|
-
i0.ɵɵadvance(2);
|
|
19174
|
-
i0.ɵɵtextInterpolate1("", case_r7.caseNameHmctsInternal, " ");
|
|
19175
|
-
i0.ɵɵadvance(2);
|
|
19176
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 9, case_r7.caseReference), "");
|
|
19177
|
-
i0.ɵɵadvance(3);
|
|
19178
|
-
i0.ɵɵproperty("title", case_r7.ccdCaseTypeDescription);
|
|
19179
|
-
i0.ɵɵadvance(1);
|
|
19180
|
-
i0.ɵɵtextInterpolate(case_r7.ccdCaseType);
|
|
19181
|
-
i0.ɵɵadvance(3);
|
|
19182
|
-
i0.ɵɵtextInterpolate(case_r7.ccdJurisdiction);
|
|
19183
|
-
i0.ɵɵadvance(2);
|
|
19184
|
-
i0.ɵɵproperty("title", case_r7.stateDescription);
|
|
19185
|
-
i0.ɵɵadvance(1);
|
|
19186
|
-
i0.ɵɵtextInterpolate(case_r7.state);
|
|
19187
|
-
i0.ɵɵadvance(1);
|
|
19188
|
-
i0.ɵɵproperty("ngForOf", case_r7.linkDetails);
|
|
19189
|
-
} }
|
|
19190
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template(rf, ctx) { if (rf & 1) {
|
|
19191
|
-
i0.ɵɵelementStart(0, "tr", 5);
|
|
19192
|
-
i0.ɵɵelementStart(1, "td", 18);
|
|
19193
|
-
i0.ɵɵtext(2, " None ");
|
|
19194
|
-
i0.ɵɵelementEnd();
|
|
19195
|
-
i0.ɵɵelementEnd();
|
|
19196
|
-
} }
|
|
19197
|
-
function LinkedCasesFromTableComponent_table_1_tbody_13_Template(rf, ctx) { if (rf & 1) {
|
|
19198
|
-
i0.ɵɵelementStart(0, "tbody", 8);
|
|
19199
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_tbody_13_tr_1_Template, 19, 11, "tr", 9);
|
|
19200
|
-
i0.ɵɵtemplate(2, LinkedCasesFromTableComponent_table_1_tbody_13_tr_2_Template, 3, 0, "tr", 10);
|
|
19201
|
-
i0.ɵɵelementEnd();
|
|
19202
|
-
} if (rf & 2) {
|
|
19203
|
-
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
19204
|
-
i0.ɵɵadvance(1);
|
|
19205
|
-
i0.ɵɵproperty("ngForOf", ctx_r4.getLinkedCasesResponse);
|
|
19206
|
-
i0.ɵɵadvance(1);
|
|
19207
|
-
i0.ɵɵproperty("ngIf", ctx_r4.noLinkedCases);
|
|
19208
|
-
} }
|
|
19209
|
-
function LinkedCasesFromTableComponent_table_1_Template(rf, ctx) { if (rf & 1) {
|
|
19210
|
-
i0.ɵɵelementStart(0, "table", 3);
|
|
19211
|
-
i0.ɵɵelementStart(1, "thead", 4);
|
|
19212
|
-
i0.ɵɵelementStart(2, "tr", 5);
|
|
19213
|
-
i0.ɵɵelementStart(3, "th", 6);
|
|
19214
|
-
i0.ɵɵtext(4, "Case name and number");
|
|
19215
|
-
i0.ɵɵelementEnd();
|
|
19216
|
-
i0.ɵɵelementStart(5, "th", 6);
|
|
19217
|
-
i0.ɵɵtext(6, "Case type ");
|
|
19218
|
-
i0.ɵɵelementEnd();
|
|
19219
|
-
i0.ɵɵelementStart(7, "th", 6);
|
|
19220
|
-
i0.ɵɵtext(8, "Service");
|
|
19221
|
-
i0.ɵɵelementEnd();
|
|
19222
|
-
i0.ɵɵelementStart(9, "th", 6);
|
|
19223
|
-
i0.ɵɵtext(10, "State");
|
|
19224
|
-
i0.ɵɵelementEnd();
|
|
19225
|
-
i0.ɵɵelementStart(11, "th", 6);
|
|
19226
|
-
i0.ɵɵtext(12, "Reasons for case link");
|
|
19227
|
-
i0.ɵɵelementEnd();
|
|
19228
|
-
i0.ɵɵelementEnd();
|
|
19229
|
-
i0.ɵɵelementEnd();
|
|
19230
|
-
i0.ɵɵtemplate(13, LinkedCasesFromTableComponent_table_1_tbody_13_Template, 3, 2, "tbody", 7);
|
|
19231
|
-
i0.ɵɵelementEnd();
|
|
19232
|
-
} if (rf & 2) {
|
|
19233
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
19234
|
-
i0.ɵɵadvance(13);
|
|
19235
|
-
i0.ɵɵproperty("ngIf", ctx_r1.getLinkedCasesResponse && (!ctx_r1.isServerError && !ctx_r1.linkedCasesService.isServerReasonCodeError));
|
|
19236
|
-
} }
|
|
19237
|
-
var PageType;
|
|
19238
|
-
(function (PageType) {
|
|
19239
|
-
PageType["LINKEDCASESTABLBEVIEW"] = "linkedCasesTableView";
|
|
19240
|
-
PageType["PROPOSEDCASELINK"] = "proposedCaseLink";
|
|
19241
|
-
})(PageType || (PageType = {}));
|
|
19242
|
-
class LinkedCasesFromTableComponent {
|
|
19243
|
-
constructor(route, casesService, linkedCasesService) {
|
|
19244
|
-
this.route = route;
|
|
19245
|
-
this.casesService = casesService;
|
|
19246
|
-
this.linkedCasesService = linkedCasesService;
|
|
19247
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19248
|
-
this.pageType = PageType;
|
|
19249
|
-
this.getLinkedCasesResponse = [];
|
|
19250
|
-
this.showHideLinkText = 'Show';
|
|
19251
|
-
this.noLinkedCases = true;
|
|
19252
|
-
this.isServerError = false;
|
|
19253
|
-
}
|
|
19254
|
-
ngAfterViewInit() {
|
|
19255
|
-
const labelField = document.getElementsByClassName('case-viewer-label');
|
|
19256
|
-
if (labelField && labelField.length) {
|
|
19257
|
-
labelField[0].replaceWith('');
|
|
19258
|
-
}
|
|
19259
|
-
}
|
|
19260
|
-
ngOnInit() {
|
|
19261
|
-
this.fetchPageData();
|
|
19262
|
-
if (this.route.snapshot.data.case) {
|
|
19263
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
19264
|
-
}
|
|
19265
|
-
}
|
|
19266
|
-
fetchPageData() {
|
|
19267
|
-
this.caseId = this.route.snapshot.data.case.case_id;
|
|
19268
|
-
this.getLinkedCases().subscribe(response => {
|
|
19269
|
-
this.isServerError = false;
|
|
19270
|
-
this.getLinkedCasesResponse = response.linkedCases && response.linkedCases.map(item => {
|
|
19271
|
-
const mappedCasetype = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', item.ccdCaseType);
|
|
19272
|
-
const mappedCasetypeDescription = this.mapLookupIDToValueFromJurisdictions('CASE_TYPE_DESCRIPTION', item.ccdCaseType);
|
|
19273
|
-
const mappedCaseState = this.mapLookupIDToValueFromJurisdictions('STATE', item.state);
|
|
19274
|
-
const mappedCaseStateDescription = this.mapLookupIDToValueFromJurisdictions('STATE_DESCRIPTION', item.state);
|
|
19275
|
-
const mappedCaseService = this.mapLookupIDToValueFromJurisdictions('JURISDICTION', item.ccdJurisdiction);
|
|
19276
|
-
return Object.assign(Object.assign({}, item), { ccdCaseType: mappedCasetype, ccdCaseTypeDescription: mappedCasetypeDescription, ccdJurisdiction: mappedCaseService, state: mappedCaseState, stateDescription: mappedCaseStateDescription, caseNameHmctsInternal: item.caseNameHmctsInternal || LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT });
|
|
19277
|
-
});
|
|
19278
|
-
this.noLinkedCases = !response.linkedCases || !response.linkedCases.length;
|
|
19279
|
-
}, err => {
|
|
19280
|
-
this.isServerError = true;
|
|
19281
|
-
this.notifyAPIFailure.emit(true);
|
|
19282
|
-
});
|
|
19283
|
-
}
|
|
19284
|
-
getLinkedCases() {
|
|
19285
|
-
return this.casesService.getLinkedCases(this.caseId);
|
|
19286
|
-
}
|
|
19287
|
-
mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
|
|
19288
|
-
return this.linkedCasesService.mapLookupIDToValueFromJurisdictions(fieldName, fieldValue);
|
|
19289
|
-
}
|
|
19290
|
-
onClick() {
|
|
19291
|
-
this.showHideLinkText = this.showHideLinkText === 'Show'
|
|
19292
|
-
? 'Hide'
|
|
19293
|
-
: 'Show';
|
|
19294
|
-
}
|
|
19295
|
-
}
|
|
19296
|
-
LinkedCasesFromTableComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
19297
|
-
LinkedCasesFromTableComponent.ɵfac = function LinkedCasesFromTableComponent_Factory(t) { return new (t || LinkedCasesFromTableComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19298
|
-
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) {
|
|
19299
|
-
i0.ɵɵtemplate(0, LinkedCasesFromTableComponent_a_0_Template, 2, 1, "a", 0);
|
|
19300
|
-
i0.ɵɵtemplate(1, LinkedCasesFromTableComponent_table_1_Template, 14, 1, "table", 1);
|
|
19301
|
-
} if (rf & 2) {
|
|
19302
|
-
i0.ɵɵproperty("ngIf", !ctx.noLinkedCases && !ctx.isServerError);
|
|
19303
|
-
i0.ɵɵadvance(1);
|
|
19304
|
-
i0.ɵɵproperty("ngIf", ctx.getLinkedCasesResponse && ctx.showHideLinkText === "Hide" || ctx.noLinkedCases);
|
|
19305
|
-
} }, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}.heading-h2[_ngcontent-%COMP%]{margin-bottom:0}"] });
|
|
19306
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesFromTableComponent, [{
|
|
19307
|
-
type: Component,
|
|
19308
|
-
args: [{
|
|
19309
|
-
selector: 'ccd-linked-cases-from-table',
|
|
19310
|
-
templateUrl: './linked-cases-from-table.component.html',
|
|
19311
|
-
styleUrls: ['./linked-cases-from-table.component.scss']
|
|
19312
|
-
}]
|
|
19313
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: CasesService }, { type: LinkedCasesService }]; }, { caseField: [{
|
|
19314
|
-
type: Input
|
|
19315
|
-
}], notifyAPIFailure: [{
|
|
19316
|
-
type: Output
|
|
19317
|
-
}] }); })();
|
|
19318
|
-
|
|
19319
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template(rf, ctx) { if (rf & 1) {
|
|
19320
|
-
i0.ɵɵelementStart(0, "a", 16);
|
|
19321
|
-
i0.ɵɵtext(1);
|
|
19322
|
-
i0.ɵɵelementEnd();
|
|
19323
|
-
} if (rf & 2) {
|
|
19324
|
-
const case_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
19325
|
-
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
19326
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19327
|
-
i0.ɵɵadvance(1);
|
|
19328
|
-
i0.ɵɵtextInterpolate(ctx_r9.getCaseRefereneLink(case_r3.caseReference));
|
|
19329
|
-
} }
|
|
19330
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template(rf, ctx) { if (rf & 1) {
|
|
19331
|
-
i0.ɵɵelement(0, "br");
|
|
19332
|
-
} }
|
|
19333
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
19334
|
-
i0.ɵɵelementStart(0, "span");
|
|
19335
|
-
i0.ɵɵtext(1);
|
|
19336
|
-
i0.ɵɵpipe(2, "ccdLinkCasesReasonValue");
|
|
19337
|
-
i0.ɵɵelementStart(3, "span");
|
|
19338
|
-
i0.ɵɵtemplate(4, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_a_4_Template, 2, 2, "a", 15);
|
|
19339
|
-
i0.ɵɵelementEnd();
|
|
19340
|
-
i0.ɵɵtemplate(5, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_br_5_Template, 1, 0, "br", 13);
|
|
19341
|
-
i0.ɵɵelementEnd();
|
|
19342
|
-
} if (rf & 2) {
|
|
19343
|
-
const reason_r6 = ctx.$implicit;
|
|
19344
|
-
const isLast_r8 = ctx.last;
|
|
19345
|
-
const ctx_r5 = i0.ɵɵnextContext(4);
|
|
19346
|
-
i0.ɵɵadvance(1);
|
|
19347
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, reason_r6), "");
|
|
19348
|
-
i0.ɵɵadvance(3);
|
|
19349
|
-
i0.ɵɵproperty("ngIf", ctx_r5.hasLeadCaseOrConsolidated(reason_r6));
|
|
19350
|
-
i0.ɵɵadvance(1);
|
|
19351
|
-
i0.ɵɵproperty("ngIf", !isLast_r8);
|
|
19352
|
-
} }
|
|
19353
|
-
function LinkedCasesToTableComponent_table_2_tr_14_td_18_Template(rf, ctx) { if (rf & 1) {
|
|
19354
|
-
i0.ɵɵelementStart(0, "td");
|
|
19355
|
-
i0.ɵɵtemplate(1, LinkedCasesToTableComponent_table_2_tr_14_td_18_span_1_Template, 6, 5, "span", 14);
|
|
19356
|
-
i0.ɵɵelementEnd();
|
|
19357
|
-
} if (rf & 2) {
|
|
19358
|
-
const case_r3 = i0.ɵɵnextContext().$implicit;
|
|
19359
|
-
i0.ɵɵadvance(1);
|
|
19360
|
-
i0.ɵɵproperty("ngForOf", case_r3.reasons);
|
|
19361
|
-
} }
|
|
19362
|
-
function LinkedCasesToTableComponent_table_2_tr_14_Template(rf, ctx) { if (rf & 1) {
|
|
19363
|
-
i0.ɵɵelementStart(0, "tr", 4);
|
|
19364
|
-
i0.ɵɵelementStart(1, "td");
|
|
19365
|
-
i0.ɵɵelementStart(2, "p", 9);
|
|
19366
|
-
i0.ɵɵelementStart(3, "a", 10);
|
|
19367
|
-
i0.ɵɵelementStart(4, "span", 11);
|
|
19368
|
-
i0.ɵɵtext(5);
|
|
19369
|
-
i0.ɵɵelement(6, "br");
|
|
19370
|
-
i0.ɵɵtext(7);
|
|
19371
|
-
i0.ɵɵpipe(8, "ccdCaseReference");
|
|
19372
|
-
i0.ɵɵelementEnd();
|
|
19373
|
-
i0.ɵɵelementEnd();
|
|
19374
|
-
i0.ɵɵelementEnd();
|
|
19375
|
-
i0.ɵɵelementEnd();
|
|
19376
|
-
i0.ɵɵelementStart(9, "td");
|
|
19377
|
-
i0.ɵɵelementStart(10, "span", 12);
|
|
19378
|
-
i0.ɵɵtext(11);
|
|
19379
|
-
i0.ɵɵelementEnd();
|
|
19380
|
-
i0.ɵɵelementEnd();
|
|
19381
|
-
i0.ɵɵelementStart(12, "td");
|
|
19382
|
-
i0.ɵɵelementStart(13, "span");
|
|
19383
|
-
i0.ɵɵtext(14);
|
|
19384
|
-
i0.ɵɵelementEnd();
|
|
19385
|
-
i0.ɵɵelementEnd();
|
|
19386
|
-
i0.ɵɵelementStart(15, "td");
|
|
19387
|
-
i0.ɵɵelementStart(16, "span", 12);
|
|
19388
|
-
i0.ɵɵtext(17);
|
|
19389
|
-
i0.ɵɵelementEnd();
|
|
19390
|
-
i0.ɵɵelementEnd();
|
|
19391
|
-
i0.ɵɵtemplate(18, LinkedCasesToTableComponent_table_2_tr_14_td_18_Template, 2, 1, "td", 13);
|
|
19392
|
-
i0.ɵɵelementEnd();
|
|
19393
|
-
} if (rf & 2) {
|
|
19394
|
-
const case_r3 = ctx.$implicit;
|
|
19395
|
-
i0.ɵɵadvance(3);
|
|
19396
|
-
i0.ɵɵpropertyInterpolate1("href", "cases/case-details/", case_r3.caseReference, "", i0.ɵɵsanitizeUrl);
|
|
19397
|
-
i0.ɵɵadvance(2);
|
|
19398
|
-
i0.ɵɵtextInterpolate1("", case_r3.caseName, " ");
|
|
19399
|
-
i0.ɵɵadvance(2);
|
|
19400
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 9, case_r3.caseReference), "");
|
|
19401
|
-
i0.ɵɵadvance(3);
|
|
19402
|
-
i0.ɵɵproperty("title", case_r3.caseTypeDescription);
|
|
19403
|
-
i0.ɵɵadvance(1);
|
|
19404
|
-
i0.ɵɵtextInterpolate(case_r3.caseType);
|
|
19405
|
-
i0.ɵɵadvance(3);
|
|
19406
|
-
i0.ɵɵtextInterpolate(case_r3.service);
|
|
19407
|
-
i0.ɵɵadvance(2);
|
|
19408
|
-
i0.ɵɵproperty("title", case_r3.stateDescription);
|
|
19409
|
-
i0.ɵɵadvance(1);
|
|
19410
|
-
i0.ɵɵtextInterpolate(case_r3.state);
|
|
19411
|
-
i0.ɵɵadvance(1);
|
|
19412
|
-
i0.ɵɵproperty("ngIf", case_r3 && case_r3.reasons);
|
|
19413
|
-
} }
|
|
19414
|
-
function LinkedCasesToTableComponent_table_2_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
19415
|
-
i0.ɵɵelementStart(0, "tr", 4);
|
|
19416
|
-
i0.ɵɵelementStart(1, "td", 17);
|
|
19417
|
-
i0.ɵɵtext(2, " None ");
|
|
19418
|
-
i0.ɵɵelementEnd();
|
|
19419
|
-
i0.ɵɵelementEnd();
|
|
19420
|
-
} }
|
|
19421
|
-
function LinkedCasesToTableComponent_table_2_Template(rf, ctx) { if (rf & 1) {
|
|
19422
|
-
i0.ɵɵelementStart(0, "table", 3);
|
|
19423
|
-
i0.ɵɵelementStart(1, "thead");
|
|
19424
|
-
i0.ɵɵelementStart(2, "tr", 4);
|
|
19425
|
-
i0.ɵɵelementStart(3, "th", 5);
|
|
19426
|
-
i0.ɵɵtext(4, "Case name and number");
|
|
19427
|
-
i0.ɵɵelementEnd();
|
|
19428
|
-
i0.ɵɵelementStart(5, "th", 5);
|
|
19429
|
-
i0.ɵɵtext(6, "Case type ");
|
|
19430
|
-
i0.ɵɵelementEnd();
|
|
19431
|
-
i0.ɵɵelementStart(7, "th", 5);
|
|
19432
|
-
i0.ɵɵtext(8, "Service");
|
|
19433
|
-
i0.ɵɵelementEnd();
|
|
19434
|
-
i0.ɵɵelementStart(9, "th", 5);
|
|
19435
|
-
i0.ɵɵtext(10, "State");
|
|
19436
|
-
i0.ɵɵelementEnd();
|
|
19437
|
-
i0.ɵɵelementStart(11, "th", 5);
|
|
19438
|
-
i0.ɵɵtext(12, "Reasons for case link");
|
|
19439
|
-
i0.ɵɵelementEnd();
|
|
19440
|
-
i0.ɵɵelementEnd();
|
|
19441
|
-
i0.ɵɵelementEnd();
|
|
19442
|
-
i0.ɵɵelementStart(13, "tbody", 6);
|
|
19443
|
-
i0.ɵɵtemplate(14, LinkedCasesToTableComponent_table_2_tr_14_Template, 19, 11, "tr", 7);
|
|
19444
|
-
i0.ɵɵtemplate(15, LinkedCasesToTableComponent_table_2_tr_15_Template, 3, 0, "tr", 8);
|
|
19445
|
-
i0.ɵɵelementEnd();
|
|
19446
|
-
i0.ɵɵelementEnd();
|
|
19447
|
-
} if (rf & 2) {
|
|
19448
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19449
|
-
i0.ɵɵadvance(14);
|
|
19450
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.linkedCasesFromResponse);
|
|
19451
|
-
i0.ɵɵadvance(1);
|
|
19452
|
-
i0.ɵɵproperty("ngIf", ctx_r0.linkedCasesFromResponse && ctx_r0.linkedCasesFromResponse.length === 0 && (!ctx_r0.isServerError && !ctx_r0.linkedCasesService.isServerReasonCodeError));
|
|
19453
|
-
} }
|
|
19454
|
-
class LinkedCasesToTableComponent {
|
|
19455
|
-
constructor(route, linkedCasesService, casesService) {
|
|
19456
|
-
this.route = route;
|
|
19457
|
-
this.linkedCasesService = linkedCasesService;
|
|
19458
|
-
this.casesService = casesService;
|
|
19459
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19460
|
-
this.linkedCasesFromResponse = [];
|
|
19461
|
-
this.isServerError = false;
|
|
19462
|
-
this.jurisdictionsResponse = [];
|
|
19463
|
-
}
|
|
19464
|
-
ngAfterViewInit() {
|
|
19465
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
19466
|
-
if (labelField && labelField.length) {
|
|
19467
|
-
labelField[0].replaceWith('');
|
|
19468
|
-
}
|
|
19469
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
19470
|
-
if (labelField && labelField.length) {
|
|
19471
|
-
labelField[0].replaceWith('');
|
|
19472
|
-
}
|
|
19473
|
-
}
|
|
19474
|
-
ngOnInit() {
|
|
19475
|
-
this.caseId = this.route.snapshot && this.route.snapshot.data && this.route.snapshot.data.case.case_id;
|
|
19476
|
-
this.getAllLinkedCaseInformation();
|
|
19477
|
-
if (this.route.snapshot.data.case) {
|
|
19478
|
-
this.linkedCasesService.caseDetails = this.route.snapshot.data.case;
|
|
19479
|
-
}
|
|
19480
|
-
}
|
|
19481
|
-
getCaseRefereneLink(caseRef) {
|
|
19482
|
-
return caseRef.slice(this.caseId.length - 4);
|
|
19483
|
-
}
|
|
19484
|
-
sortLinkedCasesByReasonCode(searchCasesResponse) {
|
|
19485
|
-
const topLevelresultArray = [];
|
|
19486
|
-
let secondLevelresultArray = [];
|
|
19487
|
-
searchCasesResponse.forEach((item) => {
|
|
19488
|
-
const reasons = item && item.reasons || [];
|
|
19489
|
-
const consolidatedStateReason = reasons.map(x => x).find(reason => reason === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE);
|
|
19490
|
-
const progressedStateReason = reasons.map(x => x).find(reason => reason === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE);
|
|
19491
|
-
let arrayItem;
|
|
19492
|
-
if (progressedStateReason) {
|
|
19493
|
-
arrayItem = Object.assign({}, item);
|
|
19494
|
-
topLevelresultArray.push(arrayItem);
|
|
19495
|
-
}
|
|
19496
|
-
else if (consolidatedStateReason) {
|
|
19497
|
-
arrayItem = Object.assign({}, item);
|
|
19498
|
-
secondLevelresultArray = [Object.assign({}, item), ...secondLevelresultArray];
|
|
19499
|
-
}
|
|
19500
|
-
else {
|
|
19501
|
-
arrayItem = Object.assign({}, item);
|
|
19502
|
-
secondLevelresultArray.push(Object.assign({}, item));
|
|
19503
|
-
}
|
|
19504
|
-
});
|
|
19505
|
-
return topLevelresultArray.concat(secondLevelresultArray);
|
|
19506
|
-
}
|
|
19507
|
-
getAllLinkedCaseInformation() {
|
|
19508
|
-
const searchCasesResponse = [];
|
|
19509
|
-
const caseFieldValue = this.caseField ? this.caseField.value : [];
|
|
19510
|
-
// Generate the list of observables
|
|
19511
|
-
caseFieldValue.forEach(fieldValue => {
|
|
19512
|
-
if (fieldValue && fieldValue.id) {
|
|
19513
|
-
searchCasesResponse.push(this.casesService.getCaseViewV2(fieldValue.id));
|
|
19514
|
-
}
|
|
19515
|
-
});
|
|
19516
|
-
if (searchCasesResponse.length) {
|
|
19517
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
19518
|
-
const casesResponse = [];
|
|
19519
|
-
searchCases.forEach(response => {
|
|
19520
|
-
casesResponse.push(this.mapResponse(response));
|
|
19521
|
-
});
|
|
19522
|
-
this.linkedCasesFromResponse = this.sortLinkedCasesByReasonCode(casesResponse);
|
|
19523
|
-
this.isLoaded = true;
|
|
19524
|
-
const caseLinks = this.linkedCasesFromResponse.map(item => {
|
|
19525
|
-
return {
|
|
19526
|
-
caseReference: item.caseReference,
|
|
19527
|
-
caseName: item.caseName,
|
|
19528
|
-
caseService: item.service,
|
|
19529
|
-
caseType: item.caseType,
|
|
19530
|
-
unlink: false,
|
|
19531
|
-
reasons: item.reasons && item.reasons.map(reason => {
|
|
19532
|
-
return {
|
|
19533
|
-
reasonCode: reason
|
|
19534
|
-
};
|
|
19535
|
-
}),
|
|
19536
|
-
};
|
|
19537
|
-
});
|
|
19538
|
-
this.linkedCasesService.initialCaseLinks = caseLinks;
|
|
19539
|
-
this.linkedCasesService.linkedCases = caseLinks;
|
|
19540
|
-
this.isServerError = false;
|
|
19541
|
-
}, err => {
|
|
19542
|
-
this.isServerError = true;
|
|
19543
|
-
this.notifyAPIFailure.emit(true);
|
|
19544
|
-
});
|
|
19545
|
-
}
|
|
19546
|
-
}
|
|
19547
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
19548
|
-
return forkJoin(searchCasesResponse);
|
|
19549
|
-
}
|
|
19550
|
-
hasLeadCaseOrConsolidated(reasonCode) {
|
|
19551
|
-
return reasonCode === LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE ||
|
|
19552
|
-
reasonCode === LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE;
|
|
19553
|
-
}
|
|
19554
|
-
mapResponse(esSearchCasesResponse) {
|
|
19555
|
-
const caseInfo = this.caseField.value.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
|
|
19556
|
-
return caseInfo && {
|
|
19557
|
-
caseReference: esSearchCasesResponse.case_id,
|
|
19558
|
-
caseName: this.linkedCasesService.getCaseName(esSearchCasesResponse),
|
|
19559
|
-
caseType: esSearchCasesResponse.case_type.name || '',
|
|
19560
|
-
caseTypeDescription: esSearchCasesResponse.case_type.description || '',
|
|
19561
|
-
service: esSearchCasesResponse.case_type && esSearchCasesResponse.case_type.jurisdiction.description || '',
|
|
19562
|
-
state: esSearchCasesResponse.state.name || '',
|
|
19563
|
-
stateDescription: esSearchCasesResponse.state.description || '',
|
|
19564
|
-
reasons: caseInfo.value && caseInfo.value.ReasonForLink &&
|
|
19565
|
-
caseInfo.value.ReasonForLink.map(reason => reason.value && reason.value.Reason),
|
|
19566
|
-
};
|
|
19567
|
-
}
|
|
19568
|
-
}
|
|
19569
|
-
LinkedCasesToTableComponent.CASE_CONSOLIDATED_REASON_CODE = 'CLRC015';
|
|
19570
|
-
LinkedCasesToTableComponent.CASE_PROGRESS_REASON_CODE = 'CLRC016';
|
|
19571
|
-
LinkedCasesToTableComponent.ɵfac = function LinkedCasesToTableComponent_Factory(t) { return new (t || LinkedCasesToTableComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CasesService)); };
|
|
19572
|
-
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) {
|
|
19573
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19574
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19575
|
-
i0.ɵɵtemplate(2, LinkedCasesToTableComponent_table_2_Template, 16, 2, "table", 2);
|
|
19576
|
-
i0.ɵɵelementEnd();
|
|
19577
|
-
i0.ɵɵelementEnd();
|
|
19578
|
-
} if (rf & 2) {
|
|
19579
|
-
i0.ɵɵadvance(2);
|
|
19580
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesFromResponse);
|
|
19581
|
-
} }, styles: [".case-table-column[_ngcontent-%COMP%]{min-width:20%;max-width:20%}"] });
|
|
19582
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesToTableComponent, [{
|
|
19583
|
-
type: Component,
|
|
19584
|
-
args: [{
|
|
19585
|
-
selector: 'ccd-linked-cases-to-table',
|
|
19586
|
-
templateUrl: './linked-cases-to-table.component.html',
|
|
19587
|
-
styleUrls: ['./linked-cases-to-table.component.scss']
|
|
19588
|
-
}]
|
|
19589
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: LinkedCasesService }, { type: CasesService }]; }, { caseField: [{
|
|
19590
|
-
type: Input
|
|
19591
|
-
}], notifyAPIFailure: [{
|
|
19592
|
-
type: Output
|
|
19593
|
-
}] }); })();
|
|
19594
|
-
|
|
19595
|
-
function NoLinkedCasesComponent_h1_2_Template(rf, ctx) { if (rf & 1) {
|
|
19596
|
-
i0.ɵɵelementStart(0, "h1", 9);
|
|
19597
|
-
i0.ɵɵtext(1, "There is a problem");
|
|
19598
|
-
i0.ɵɵelementEnd();
|
|
19599
|
-
} }
|
|
19600
|
-
function NoLinkedCasesComponent_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
19601
|
-
i0.ɵɵelementStart(0, "p", 10);
|
|
19602
|
-
i0.ɵɵelementStart(1, "span", 11);
|
|
19603
|
-
i0.ɵɵtext(2, "Error:");
|
|
19604
|
-
i0.ɵɵelementEnd();
|
|
19605
|
-
i0.ɵɵtext(3);
|
|
19606
|
-
i0.ɵɵelementEnd();
|
|
19607
|
-
} if (rf & 2) {
|
|
19608
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
19609
|
-
i0.ɵɵadvance(3);
|
|
19610
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.linkedCasesService.serverLinkedApiError.message, " ");
|
|
19611
|
-
} }
|
|
19612
|
-
function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
19613
|
-
i0.ɵɵelementStart(0, "p", 5);
|
|
19614
|
-
i0.ɵɵtext(1, "There are no cases linked to this one.");
|
|
19615
|
-
i0.ɵɵelementEnd();
|
|
19616
|
-
} }
|
|
19617
|
-
class NoLinkedCasesComponent {
|
|
19618
|
-
constructor(router, linkedCasesService) {
|
|
19619
|
-
this.router = router;
|
|
19620
|
-
this.linkedCasesService = linkedCasesService;
|
|
19621
|
-
}
|
|
19622
|
-
onBack() {
|
|
19623
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(() => {
|
|
19624
|
-
window.location.hash = 'Linked cases';
|
|
19625
|
-
});
|
|
19626
|
-
}
|
|
19627
|
-
}
|
|
19628
|
-
NoLinkedCasesComponent.ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19629
|
-
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) {
|
|
19630
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
19631
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
19632
|
-
i0.ɵɵtemplate(2, NoLinkedCasesComponent_h1_2_Template, 2, 0, "h1", 2);
|
|
19633
|
-
i0.ɵɵtemplate(3, NoLinkedCasesComponent_p_3_Template, 4, 1, "p", 3);
|
|
19634
|
-
i0.ɵɵtemplate(4, NoLinkedCasesComponent_ng_template_4_Template, 2, 0, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
19635
|
-
i0.ɵɵelementStart(6, "p", 5);
|
|
19636
|
-
i0.ɵɵelementStart(7, "a", 6);
|
|
19637
|
-
i0.ɵɵlistener("click", function NoLinkedCasesComponent_Template_a_click_7_listener() { return ctx.onBack(); });
|
|
19638
|
-
i0.ɵɵtext(8, "Go back to the Linked cases tab");
|
|
19639
|
-
i0.ɵɵelementEnd();
|
|
19640
|
-
i0.ɵɵelementEnd();
|
|
19641
|
-
i0.ɵɵelementStart(9, "div", 7);
|
|
19642
|
-
i0.ɵɵelementStart(10, "button", 8);
|
|
19643
|
-
i0.ɵɵlistener("click", function NoLinkedCasesComponent_Template_button_click_10_listener() { return ctx.onBack(); });
|
|
19644
|
-
i0.ɵɵtext(11, "Back");
|
|
19645
|
-
i0.ɵɵelementEnd();
|
|
19646
|
-
i0.ɵɵelementEnd();
|
|
19647
|
-
i0.ɵɵelementEnd();
|
|
19648
|
-
i0.ɵɵelementEnd();
|
|
19649
|
-
} if (rf & 2) {
|
|
19650
|
-
const _r2 = i0.ɵɵreference(5);
|
|
19651
|
-
i0.ɵɵadvance(2);
|
|
19652
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError);
|
|
19653
|
-
i0.ɵɵadvance(1);
|
|
19654
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCasesService.serverLinkedApiError)("ngIfElse", _r2);
|
|
19655
|
-
} }, directives: [i2.NgIf], encapsulation: 2 });
|
|
19656
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
|
|
19657
|
-
type: Component,
|
|
19658
|
-
args: [{
|
|
19659
|
-
selector: 'ccd-no-linked-cases',
|
|
19660
|
-
templateUrl: './no-linked-cases.component.html'
|
|
19661
|
-
}]
|
|
19662
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }]; }, null); })();
|
|
19663
|
-
|
|
19664
|
-
function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
19665
|
-
i0.ɵɵelementStart(0, "p", 11);
|
|
19666
|
-
i0.ɵɵelementStart(1, "span", 12);
|
|
19667
|
-
i0.ɵɵtext(2, "Error:");
|
|
19668
|
-
i0.ɵɵelementEnd();
|
|
19669
|
-
i0.ɵɵtext(3);
|
|
19670
|
-
i0.ɵɵelementEnd();
|
|
19671
|
-
} if (rf & 2) {
|
|
19672
|
-
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
19673
|
-
i0.ɵɵadvance(3);
|
|
19674
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.unlinkErrorMessage, " ");
|
|
19675
|
-
} }
|
|
19676
|
-
function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
19677
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
19678
|
-
i0.ɵɵelementStart(0, "div", 13);
|
|
19679
|
-
i0.ɵɵelementStart(1, "input", 14);
|
|
19680
|
-
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); });
|
|
19681
|
-
i0.ɵɵelementEnd();
|
|
19682
|
-
i0.ɵɵelementStart(2, "label", 15);
|
|
19683
|
-
i0.ɵɵtext(3);
|
|
19684
|
-
i0.ɵɵpipe(4, "ccdCaseReference");
|
|
19685
|
-
i0.ɵɵelementEnd();
|
|
19686
|
-
i0.ɵɵelementEnd();
|
|
19687
|
-
} if (rf & 2) {
|
|
19688
|
-
const case_r4 = ctx.$implicit;
|
|
19689
|
-
i0.ɵɵadvance(1);
|
|
19690
|
-
i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
|
|
19691
|
-
i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
|
|
19692
|
-
i0.ɵɵadvance(1);
|
|
19693
|
-
i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
|
|
19694
|
-
i0.ɵɵadvance(1);
|
|
19695
|
-
i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
|
|
19696
|
-
} }
|
|
19697
|
-
const _c0$l = function (a0) { return { "govuk-form-group--error": a0 }; };
|
|
19698
|
-
function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
19699
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
19700
|
-
i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
|
|
19701
|
-
i0.ɵɵelementStart(2, "div", 9);
|
|
19702
|
-
i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 8, "div", 10);
|
|
19703
|
-
i0.ɵɵelementEnd();
|
|
19704
|
-
i0.ɵɵelementEnd();
|
|
19705
|
-
} if (rf & 2) {
|
|
19706
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
19707
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$l, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
|
|
19708
|
-
i0.ɵɵadvance(1);
|
|
19709
|
-
i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
|
|
19710
|
-
i0.ɵɵadvance(2);
|
|
19711
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
|
|
19712
|
-
} }
|
|
19713
|
-
function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
19714
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
19715
|
-
i0.ɵɵelementStart(0, "div", 1);
|
|
19716
|
-
i0.ɵɵelementStart(1, "div", 2);
|
|
19717
|
-
i0.ɵɵelementStart(2, "h1", 3);
|
|
19718
|
-
i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
|
|
19719
|
-
i0.ɵɵelementEnd();
|
|
19720
|
-
i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
|
|
19721
|
-
i0.ɵɵelementStart(5, "div", 5);
|
|
19722
|
-
i0.ɵɵelementStart(6, "button", 6);
|
|
19723
|
-
i0.ɵɵlistener("click", function UnLinkCasesComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.onNext(); });
|
|
19724
|
-
i0.ɵɵtext(7, "Next");
|
|
19725
|
-
i0.ɵɵelementEnd();
|
|
19726
|
-
i0.ɵɵelementEnd();
|
|
19727
|
-
i0.ɵɵelementEnd();
|
|
19728
|
-
i0.ɵɵelementEnd();
|
|
19729
|
-
} if (rf & 2) {
|
|
19730
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19731
|
-
i0.ɵɵadvance(4);
|
|
19732
|
-
i0.ɵɵproperty("ngIf", ctx_r0.unlinkCaseForm);
|
|
19733
|
-
} }
|
|
19734
|
-
class UnLinkCasesComponent {
|
|
19735
|
-
constructor(caseEdit, fb, casesService, linkedCasesService) {
|
|
19736
|
-
this.caseEdit = caseEdit;
|
|
19737
|
-
this.fb = fb;
|
|
19738
|
-
this.casesService = casesService;
|
|
19739
|
-
this.linkedCasesService = linkedCasesService;
|
|
19740
|
-
this.linkedCasesStateEmitter = new EventEmitter();
|
|
19741
|
-
this.notifyAPIFailure = new EventEmitter(false);
|
|
19742
|
-
this.linkedCases = [];
|
|
19743
|
-
this.errorMessages = [];
|
|
19744
|
-
this.isServerError = false;
|
|
19745
|
-
}
|
|
19746
|
-
ngOnInit() {
|
|
19747
|
-
this.getLinkedCases();
|
|
19748
|
-
}
|
|
19749
|
-
getLinkedCases() {
|
|
19750
|
-
this.caseId = this.linkedCasesService.caseId;
|
|
19751
|
-
if (this.linkedCasesService.linkedCases.length > 0) {
|
|
19752
|
-
this.linkedCases = this.linkedCasesService.linkedCases;
|
|
19753
|
-
this.getAllLinkedCaseInformation();
|
|
19754
|
-
}
|
|
19755
|
-
else {
|
|
19756
|
-
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
19757
|
-
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
19758
|
-
if (linkedCasesTab) {
|
|
19759
|
-
const linkedCases = linkedCasesTab.fields[0].value;
|
|
19760
|
-
this.linkedCases = linkedCases;
|
|
19761
|
-
this.linkedCasesService.linkedCases = linkedCases;
|
|
19762
|
-
this.getAllLinkedCaseInformation();
|
|
19763
|
-
}
|
|
19764
|
-
});
|
|
19765
|
-
}
|
|
19766
|
-
}
|
|
19767
|
-
getAllLinkedCaseInformation() {
|
|
19768
|
-
const searchCasesResponse = [];
|
|
19769
|
-
this.linkedCases.forEach(linkedCase => {
|
|
19770
|
-
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
19771
|
-
});
|
|
19772
|
-
if (searchCasesResponse.length) {
|
|
19773
|
-
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
19774
|
-
searchCases.forEach((response) => {
|
|
19775
|
-
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
19776
|
-
if (linkedCaseFromList) {
|
|
19777
|
-
const caseName = this.linkedCasesService.getCaseName(response);
|
|
19778
|
-
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
19779
|
-
}
|
|
19780
|
-
});
|
|
19781
|
-
this.initForm();
|
|
19782
|
-
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
19783
|
-
this.isServerError = false;
|
|
19784
|
-
}, err => {
|
|
19785
|
-
this.isServerError = true;
|
|
19786
|
-
this.notifyAPIFailure.emit(true);
|
|
19787
|
-
});
|
|
19788
|
-
}
|
|
19789
|
-
}
|
|
19790
|
-
searchCasesByCaseIds(searchCasesResponse) {
|
|
19791
|
-
return forkJoin(searchCasesResponse);
|
|
19792
|
-
}
|
|
19793
|
-
initForm() {
|
|
19794
|
-
this.unlinkCaseForm = this.fb.group({
|
|
19795
|
-
linkedCases: this.getLinkedCasesFormArray
|
|
19796
|
-
});
|
|
19797
|
-
}
|
|
19798
|
-
get getLinkedCasesFormArray() {
|
|
19799
|
-
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
19800
|
-
caseReference: val.caseReference,
|
|
19801
|
-
reasons: val.reasons,
|
|
19802
|
-
createdDateTime: val.createdDateTime,
|
|
19803
|
-
caseType: val.caseType,
|
|
19804
|
-
caseState: val.caseState,
|
|
19805
|
-
caseService: val.caseService,
|
|
19806
|
-
caseName: val.caseName || UnLinkCasesComponent.CASE_NAME_MISSING_TEXT,
|
|
19807
|
-
unlink: val.unlink
|
|
19808
|
-
}));
|
|
19809
|
-
return this.fb.array(formFieldArray);
|
|
19810
|
-
}
|
|
19811
|
-
onChange(caseSelected) {
|
|
19812
|
-
this.resetErrorMessages();
|
|
19813
|
-
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
19814
|
-
if (selectedCase) {
|
|
19815
|
-
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
19816
|
-
}
|
|
19817
|
-
}
|
|
19818
|
-
onNext() {
|
|
19819
|
-
this.resetErrorMessages();
|
|
19820
|
-
let navigateToNextPage = true;
|
|
19821
|
-
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
19822
|
-
if (!casesMarkedToUnlink) {
|
|
19823
|
-
this.errorMessages.push({
|
|
19824
|
-
title: 'case-selection',
|
|
19825
|
-
description: LinkedCasesErrorMessages.UnlinkCaseSelectionError,
|
|
19826
|
-
fieldId: `case-reference-${this.linkedCases[0].caseReference}`
|
|
19827
|
-
});
|
|
19828
|
-
this.unlinkErrorMessage = LinkedCasesErrorMessages.UnlinkCaseSelectionError;
|
|
19829
|
-
navigateToNextPage = false;
|
|
19830
|
-
}
|
|
19831
|
-
const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
|
|
19832
|
-
const updatedLinkedCases = this.linkedCasesService.caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.value.CaseReference) === -1);
|
|
19833
|
-
this.caseEdit.form.controls['data'] = new FormGroup({ caseLinks: new FormControl(updatedLinkedCases || []) });
|
|
19834
|
-
// Return linked cases state and error messages to the parent
|
|
19835
|
-
this.linkedCasesStateEmitter.emit({
|
|
19836
|
-
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
19837
|
-
errorMessages: this.errorMessages,
|
|
19838
|
-
navigateToNextPage
|
|
19839
|
-
});
|
|
19840
|
-
}
|
|
19841
|
-
resetErrorMessages() {
|
|
19842
|
-
this.errorMessages = [];
|
|
19843
|
-
this.unlinkErrorMessage = null;
|
|
19844
|
-
}
|
|
19845
|
-
}
|
|
19846
|
-
UnLinkCasesComponent.LINKED_CASES_TAB_ID = 'linked_cases_sscs';
|
|
19847
|
-
UnLinkCasesComponent.CASE_NAME_MISSING_TEXT = 'Case name missing';
|
|
19848
|
-
UnLinkCasesComponent.ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i2$1.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
19849
|
-
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) {
|
|
19850
|
-
i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
|
|
19851
|
-
} if (rf & 2) {
|
|
19852
|
-
i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
|
|
19853
|
-
} }, directives: [i2.NgIf, i2.NgClass, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, i2.NgForOf, i2$1.FormArrayName], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
19854
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
|
|
19855
|
-
type: Component,
|
|
19856
|
-
args: [{
|
|
19857
|
-
selector: 'ccd-unlink-cases',
|
|
19858
|
-
templateUrl: './unlink-cases.component.html'
|
|
19859
|
-
}]
|
|
19860
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i2$1.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }]; }, { linkedCasesStateEmitter: [{
|
|
19861
|
-
type: Output
|
|
19862
|
-
}], notifyAPIFailure: [{
|
|
19863
|
-
type: Output
|
|
19864
|
-
}] }); })();
|
|
19865
|
-
|
|
19866
|
-
function WriteLinkedCasesComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
19867
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
19868
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
19869
|
-
i0.ɵɵelementStart(1, "ul", 8);
|
|
19870
|
-
i0.ɵɵelementStart(2, "li");
|
|
19871
|
-
i0.ɵɵelementStart(3, "a", 9);
|
|
19872
|
-
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); });
|
|
19873
|
-
i0.ɵɵtext(4);
|
|
19874
|
-
i0.ɵɵelementEnd();
|
|
19875
|
-
i0.ɵɵelementEnd();
|
|
19876
|
-
i0.ɵɵelementEnd();
|
|
19877
|
-
i0.ɵɵelementEnd();
|
|
19878
|
-
} if (rf & 2) {
|
|
19879
|
-
const errorMessage_r7 = ctx.$implicit;
|
|
19880
|
-
i0.ɵɵadvance(4);
|
|
19881
|
-
i0.ɵɵtextInterpolate(errorMessage_r7.description);
|
|
19882
|
-
} }
|
|
19883
|
-
function WriteLinkedCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
19884
|
-
i0.ɵɵelementStart(0, "div", 4);
|
|
19885
|
-
i0.ɵɵelementStart(1, "h2", 5);
|
|
19886
|
-
i0.ɵɵtext(2, " There is a problem ");
|
|
19887
|
-
i0.ɵɵelementEnd();
|
|
19888
|
-
i0.ɵɵtemplate(3, WriteLinkedCasesComponent_div_0_div_3_Template, 5, 1, "div", 6);
|
|
19889
|
-
i0.ɵɵelementEnd();
|
|
19890
|
-
} if (rf & 2) {
|
|
19891
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
19892
|
-
i0.ɵɵadvance(3);
|
|
19893
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
19894
|
-
} }
|
|
19895
|
-
function WriteLinkedCasesComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
19896
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
19897
|
-
i0.ɵɵelementContainerStart(0);
|
|
19898
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 10);
|
|
19899
|
-
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); });
|
|
19900
|
-
i0.ɵɵelementEnd();
|
|
19901
|
-
i0.ɵɵelementContainerEnd();
|
|
19902
|
-
} }
|
|
19903
|
-
function WriteLinkedCasesComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
19904
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
|
19905
|
-
i0.ɵɵelementContainerStart(0);
|
|
19906
|
-
i0.ɵɵelementStart(1, "ccd-no-linked-cases", 10);
|
|
19907
|
-
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); });
|
|
19908
|
-
i0.ɵɵelementEnd();
|
|
19909
|
-
i0.ɵɵelementContainerEnd();
|
|
19910
|
-
} }
|
|
19911
|
-
function WriteLinkedCasesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
19912
|
-
const _r15 = i0.ɵɵgetCurrentView();
|
|
19913
|
-
i0.ɵɵelementContainerStart(0);
|
|
19914
|
-
i0.ɵɵelementStart(1, "ccd-link-cases", 10);
|
|
19915
|
-
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); });
|
|
19916
|
-
i0.ɵɵelementEnd();
|
|
19917
|
-
i0.ɵɵelementContainerEnd();
|
|
19918
|
-
} }
|
|
19919
|
-
function WriteLinkedCasesComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
19920
|
-
const _r17 = i0.ɵɵgetCurrentView();
|
|
19921
|
-
i0.ɵɵelementContainerStart(0);
|
|
19922
|
-
i0.ɵɵelementStart(1, "ccd-unlink-cases", 10);
|
|
19923
|
-
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); });
|
|
19924
|
-
i0.ɵɵelementEnd();
|
|
19925
|
-
i0.ɵɵelementContainerEnd();
|
|
19926
|
-
} }
|
|
19927
|
-
function WriteLinkedCasesComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
19928
|
-
const _r19 = i0.ɵɵgetCurrentView();
|
|
19929
|
-
i0.ɵɵelementContainerStart(0);
|
|
19930
|
-
i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 10);
|
|
19931
|
-
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); });
|
|
19932
|
-
i0.ɵɵelementEnd();
|
|
19933
|
-
i0.ɵɵelementContainerEnd();
|
|
19934
|
-
} }
|
|
19935
|
-
class WriteLinkedCasesComponent extends AbstractFieldWriteComponent {
|
|
19936
|
-
constructor(caseEdit, appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
|
|
19937
|
-
super();
|
|
19938
|
-
this.caseEdit = caseEdit;
|
|
19939
|
-
this.appConfig = appConfig;
|
|
19940
|
-
this.commonDataService = commonDataService;
|
|
19941
|
-
this.casesService = casesService;
|
|
19942
|
-
this.linkedCasesService = linkedCasesService;
|
|
19943
|
-
this.caseEditDataService = caseEditDataService;
|
|
19944
|
-
this.onLinkedCasesSelected = new EventEmitter();
|
|
19945
|
-
this.isLinkedCasesJourney = false;
|
|
19946
|
-
this.linkedCasesPages = LinkedCasesPages;
|
|
19947
|
-
this.linkedCasesEventTriggers = LinkedCasesEventTriggers;
|
|
19948
|
-
this.linkedCases = [];
|
|
19949
|
-
this.errorMessages = [];
|
|
19950
|
-
}
|
|
19951
|
-
ngOnInit() {
|
|
19952
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
19953
|
-
this.linkedCasesService.caseId = this.caseEdit.caseDetails.case_id;
|
|
19954
|
-
this.linkedCasesService.caseName = this.linkedCasesService.getCaseName(this.caseEdit.caseDetails);
|
|
19955
|
-
this.linkedCasesService.caseDetails = this.caseEdit.caseDetails;
|
|
19956
|
-
this.linkedCasesService.editMode = false;
|
|
19957
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
19958
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
19959
|
-
next: reasons => {
|
|
19960
|
-
this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);
|
|
19961
|
-
}
|
|
19962
|
-
});
|
|
19963
|
-
this.getLinkedCases();
|
|
19964
|
-
this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
19965
|
-
next: name => {
|
|
19966
|
-
this.linkedCasesService.isLinkedCasesEventTrigger
|
|
19967
|
-
= (name === LinkedCasesEventTriggers.LINK_CASES);
|
|
19968
|
-
}
|
|
19969
|
-
});
|
|
19970
|
-
}
|
|
19971
|
-
ngAfterViewInit() {
|
|
19972
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
19973
|
-
if (labelField && labelField.length) {
|
|
19974
|
-
labelField[0].replaceWith('');
|
|
19975
|
-
}
|
|
19976
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
19977
|
-
if (labelField && labelField.length) {
|
|
19978
|
-
labelField[0].replaceWith('');
|
|
19979
|
-
}
|
|
19980
|
-
}
|
|
19981
|
-
onLinkedCasesStateEmitted(linkedCasesState) {
|
|
19982
|
-
this.errorMessages = [];
|
|
19983
|
-
this.caseEditDataService.clearFormValidationErrors();
|
|
19984
|
-
if (linkedCasesState.navigateToNextPage) {
|
|
19985
|
-
this.linkedCasesPage = this.getNextPage(linkedCasesState);
|
|
19986
|
-
this.setContinueButtonValidationErrorMessage();
|
|
19987
|
-
this.proceedToNextPage();
|
|
19988
|
-
}
|
|
19989
|
-
else {
|
|
19990
|
-
if (linkedCasesState.errorMessages && linkedCasesState.errorMessages.length) {
|
|
19991
|
-
linkedCasesState.errorMessages.forEach((errorMessage, index) => {
|
|
19992
|
-
this.caseEditDataService.addFormValidationError({ id: errorMessage.fieldId, message: errorMessage.description });
|
|
19993
|
-
});
|
|
19994
|
-
}
|
|
19995
|
-
}
|
|
19996
|
-
}
|
|
19997
|
-
isAtFinalState() {
|
|
19998
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
19999
|
-
}
|
|
20000
|
-
setContinueButtonValidationErrorMessage() {
|
|
20001
|
-
const errorMessage = this.linkedCasesService.isLinkedCasesEventTrigger
|
|
20002
|
-
? LinkedCasesErrorMessages.LinkCasesNavigationError
|
|
20003
|
-
: LinkedCasesErrorMessages.UnlinkCasesNavigationError;
|
|
20004
|
-
const buttonId = this.linkedCasesService.linkedCases.length === 0
|
|
20005
|
-
? 'back-button'
|
|
20006
|
-
: 'next-button';
|
|
20007
|
-
this.caseEditDataService.setCaseLinkError({
|
|
20008
|
-
componentId: buttonId,
|
|
20009
|
-
errorMessage
|
|
20010
|
-
});
|
|
20011
|
-
}
|
|
20012
|
-
proceedToNextPage() {
|
|
20013
|
-
if (this.isAtFinalPage()) {
|
|
20014
|
-
// Continue button event must be allowed in final page
|
|
20015
|
-
this.caseEditDataService.clearCaseLinkError();
|
|
20016
|
-
// Trigger validation to clear the "notAtFinalPage" error if now at the final state
|
|
20017
|
-
this.formGroup.updateValueAndValidity();
|
|
20018
|
-
// update form value
|
|
20019
|
-
this.onLinkedCasesSelected.emit();
|
|
20020
|
-
this.caseEdit.form.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue) });
|
|
20021
|
-
}
|
|
20022
|
-
}
|
|
20023
|
-
isAtFinalPage() {
|
|
20024
|
-
return this.linkedCasesPage === this.linkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
20025
|
-
}
|
|
20026
|
-
getNextPage(linkedCasesState) {
|
|
20027
|
-
if ((this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START) ||
|
|
20028
|
-
(linkedCasesState.currentLinkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS && linkedCasesState.navigateToPreviousPage)) {
|
|
20029
|
-
return this.isLinkedCasesJourney
|
|
20030
|
-
? LinkedCasesPages.LINK_CASE
|
|
20031
|
-
: LinkedCasesPages.UNLINK_CASE;
|
|
20032
|
-
}
|
|
20033
|
-
return LinkedCasesPages.CHECK_YOUR_ANSWERS;
|
|
20034
|
-
}
|
|
20035
|
-
getLinkedCases() {
|
|
20036
|
-
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
20037
|
-
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
20038
|
-
const linkField = tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
20039
|
-
return linkField;
|
|
20040
|
-
});
|
|
20041
|
-
if (caseViewFiltered) {
|
|
20042
|
-
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields.length && filtered.fields[0].value);
|
|
20043
|
-
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
20044
|
-
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
20045
|
-
}
|
|
20046
|
-
// Initialise the first page to display
|
|
20047
|
-
this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
|
|
20048
|
-
(this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
|
|
20049
|
-
&& !this.linkedCasesService.serverLinkedApiError)
|
|
20050
|
-
? LinkedCasesPages.BEFORE_YOU_START
|
|
20051
|
-
: LinkedCasesPages.NO_LINKED_CASES;
|
|
20052
|
-
// Initialise the error to be displayed when clicked on Continue button
|
|
20053
|
-
this.setContinueButtonValidationErrorMessage();
|
|
20054
|
-
});
|
|
20055
|
-
}
|
|
20056
|
-
navigateToErrorElement(elementId) {
|
|
20057
|
-
if (elementId) {
|
|
20058
|
-
const htmlElement = document.getElementById(elementId);
|
|
20059
|
-
if (htmlElement) {
|
|
20060
|
-
htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
|
20061
|
-
htmlElement.focus();
|
|
20062
|
-
}
|
|
20063
|
-
}
|
|
20064
|
-
}
|
|
20065
|
-
}
|
|
20066
|
-
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)); };
|
|
20067
|
-
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) {
|
|
20068
|
-
i0.ɵɵtemplate(0, WriteLinkedCasesComponent_div_0_Template, 4, 1, "div", 0);
|
|
20069
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
20070
|
-
i0.ɵɵelementStart(2, "div", 2);
|
|
20071
|
-
i0.ɵɵtemplate(3, WriteLinkedCasesComponent_ng_container_3_Template, 2, 0, "ng-container", 3);
|
|
20072
|
-
i0.ɵɵtemplate(4, WriteLinkedCasesComponent_ng_container_4_Template, 2, 0, "ng-container", 3);
|
|
20073
|
-
i0.ɵɵtemplate(5, WriteLinkedCasesComponent_ng_container_5_Template, 2, 0, "ng-container", 3);
|
|
20074
|
-
i0.ɵɵtemplate(6, WriteLinkedCasesComponent_ng_container_6_Template, 2, 0, "ng-container", 3);
|
|
20075
|
-
i0.ɵɵtemplate(7, WriteLinkedCasesComponent_ng_container_7_Template, 2, 0, "ng-container", 3);
|
|
20076
|
-
i0.ɵɵelementEnd();
|
|
20077
|
-
i0.ɵɵelementEnd();
|
|
20078
|
-
} if (rf & 2) {
|
|
20079
|
-
i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
|
|
20080
|
-
i0.ɵɵadvance(1);
|
|
20081
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
20082
|
-
i0.ɵɵadvance(1);
|
|
20083
|
-
i0.ɵɵproperty("ngSwitch", ctx.linkedCasesPage);
|
|
20084
|
-
i0.ɵɵadvance(1);
|
|
20085
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.BEFORE_YOU_START);
|
|
20086
|
-
i0.ɵɵadvance(1);
|
|
20087
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.NO_LINKED_CASES);
|
|
20088
|
-
i0.ɵɵadvance(1);
|
|
20089
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.LINK_CASE);
|
|
20090
|
-
i0.ɵɵadvance(1);
|
|
20091
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.UNLINK_CASE);
|
|
20092
|
-
i0.ɵɵadvance(1);
|
|
20093
|
-
i0.ɵɵproperty("ngSwitchCase", ctx.linkedCasesPages.CHECK_YOUR_ANSWERS);
|
|
20094
|
-
} }, encapsulation: 2 });
|
|
20095
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesComponent, [{
|
|
20096
|
-
type: Component,
|
|
20097
|
-
args: [{
|
|
20098
|
-
selector: 'ccd-write-linked-cases',
|
|
20099
|
-
templateUrl: './write-linked-cases.component.html'
|
|
20100
|
-
}]
|
|
20101
|
-
}], function () { return [{ type: CaseEditComponent }, { type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }]; }, { caseFields: [{
|
|
20102
|
-
type: Input
|
|
20103
|
-
}], caseField: [{
|
|
20104
|
-
type: Input
|
|
20105
|
-
}], onLinkedCasesSelected: [{
|
|
20106
|
-
type: Output
|
|
20107
|
-
}], isLinkedCasesJourney: [{
|
|
20108
|
-
type: Input
|
|
20109
|
-
}], formGroup: [{
|
|
20110
|
-
type: Input
|
|
20111
|
-
}] }); })();
|
|
20112
|
-
|
|
20113
|
-
function ReadLinkedCasesComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
20114
|
-
i0.ɵɵelementContainer(0);
|
|
20115
|
-
} }
|
|
20116
|
-
function ReadLinkedCasesComponent_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
20117
|
-
i0.ɵɵelementContainer(0);
|
|
20118
|
-
} }
|
|
20119
|
-
function ReadLinkedCasesComponent_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
20120
|
-
i0.ɵɵelementContainer(0);
|
|
20121
|
-
} }
|
|
20122
|
-
function ReadLinkedCasesComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
20123
|
-
i0.ɵɵelementContainer(0);
|
|
20124
|
-
} }
|
|
20125
|
-
function ReadLinkedCasesComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
20126
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
20127
|
-
i0.ɵɵelementStart(0, "div", 8);
|
|
20128
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
20129
|
-
i0.ɵɵtext(2);
|
|
20130
|
-
i0.ɵɵelementEnd();
|
|
20131
|
-
i0.ɵɵelementStart(3, "span", 10);
|
|
20132
|
-
i0.ɵɵelementStart(4, "a", 11);
|
|
20133
|
-
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(); });
|
|
20134
|
-
i0.ɵɵtext(5, "Reload the Linked cases tab");
|
|
20135
|
-
i0.ɵɵelementEnd();
|
|
20136
|
-
i0.ɵɵelementEnd();
|
|
20137
|
-
i0.ɵɵelementEnd();
|
|
20138
|
-
} if (rf & 2) {
|
|
20139
|
-
const ctx_r5 = i0.ɵɵnextContext();
|
|
20140
|
-
i0.ɵɵadvance(2);
|
|
20141
|
-
i0.ɵɵtextInterpolate(ctx_r5.serverLinkedApiError.message);
|
|
20142
|
-
} }
|
|
20143
|
-
function ReadLinkedCasesComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
20144
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
|
20145
|
-
i0.ɵɵelementStart(0, "div", 8);
|
|
20146
|
-
i0.ɵɵelementStart(1, "p", 9);
|
|
20147
|
-
i0.ɵɵtext(2);
|
|
20148
|
-
i0.ɵɵelementEnd();
|
|
20149
|
-
i0.ɵɵelementStart(3, "span", 10);
|
|
20150
|
-
i0.ɵɵelementStart(4, "a", 11);
|
|
20151
|
-
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(); });
|
|
20152
|
-
i0.ɵɵtext(5, "Reload the Linked cases tab");
|
|
20153
|
-
i0.ɵɵelementEnd();
|
|
20154
|
-
i0.ɵɵelementEnd();
|
|
20155
|
-
i0.ɵɵelementEnd();
|
|
20156
|
-
} if (rf & 2) {
|
|
20157
|
-
const ctx_r7 = i0.ɵɵnextContext();
|
|
20158
|
-
i0.ɵɵadvance(2);
|
|
20159
|
-
i0.ɵɵtextInterpolate(ctx_r7.serverError.message);
|
|
20160
|
-
} }
|
|
20161
|
-
class ReadLinkedCasesComponent {
|
|
20162
|
-
constructor(router, linkedCasesService, appConfig, commonDataService) {
|
|
20163
|
-
this.router = router;
|
|
20164
|
-
this.linkedCasesService = linkedCasesService;
|
|
20165
|
-
this.appConfig = appConfig;
|
|
20166
|
-
this.commonDataService = commonDataService;
|
|
20167
|
-
this.reasonListLoaded = false;
|
|
20168
|
-
this.reload = false;
|
|
20169
|
-
this.serverError = null;
|
|
20170
|
-
this.serverLinkedApiError = null;
|
|
20171
|
-
this.isServerReasonCodeError = false;
|
|
20172
|
-
this.isServerJurisdictionError = false;
|
|
20173
|
-
this.isServerLinkedFromError = false;
|
|
20174
|
-
this.isServerLinkedToError = false;
|
|
20175
|
-
}
|
|
20176
|
-
ngOnInit() {
|
|
20177
|
-
this.isServerJurisdictionError = this.linkedCasesService.serverJurisdictionError || false;
|
|
20178
|
-
const reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + '/lov/categories/CaseLinkingReasonCode';
|
|
20179
|
-
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
20180
|
-
next: reasons => {
|
|
20181
|
-
this.reasonListLoaded = true;
|
|
20182
|
-
this.linkedCasesService.linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);
|
|
20183
|
-
},
|
|
20184
|
-
error: error => {
|
|
20185
|
-
this.isServerReasonCodeError = true;
|
|
20186
|
-
this.linkedCasesService.isServerReasonCodeError = true;
|
|
20187
|
-
}
|
|
20188
|
-
});
|
|
20189
|
-
this.serverLinkedApiError = {
|
|
20190
|
-
id: 'backendError', message: 'Some case information is not available at the moment'
|
|
20191
|
-
};
|
|
20192
|
-
this.serverError = {
|
|
20193
|
-
id: 'backendError', message: 'There has been a system error and your request could not be processed.'
|
|
20194
|
-
};
|
|
20195
|
-
}
|
|
20196
|
-
ngAfterViewInit() {
|
|
20197
|
-
this.linkedCasesService.caseFieldValue = this.caseField.value || [];
|
|
20198
|
-
let labelField = document.getElementsByClassName('govuk-heading-l');
|
|
20199
|
-
if (labelField && labelField.length) {
|
|
20200
|
-
labelField[0].replaceWith('');
|
|
20201
|
-
}
|
|
20202
|
-
labelField = document.getElementsByClassName('heading-h2');
|
|
20203
|
-
if (labelField && labelField.length) {
|
|
20204
|
-
labelField[0].replaceWith('');
|
|
20205
|
-
}
|
|
20206
|
-
labelField = document.getElementsByClassName('case-viewer-label');
|
|
20207
|
-
if (labelField && labelField.length) {
|
|
20208
|
-
labelField[0].replaceWith('');
|
|
20209
|
-
}
|
|
20210
|
-
}
|
|
20211
|
-
reloadCurrentRoute() {
|
|
20212
|
-
this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(() => {
|
|
20213
|
-
window.location.hash = 'Linked cases';
|
|
20214
|
-
});
|
|
20215
|
-
}
|
|
20216
|
-
getFailureLinkedToNotification(evt) {
|
|
20217
|
-
this.isServerLinkedToError = true;
|
|
20218
|
-
}
|
|
20219
|
-
getFailureLinkedFromNotification(evt) {
|
|
20220
|
-
this.isServerLinkedFromError = true;
|
|
20221
|
-
}
|
|
20222
|
-
}
|
|
20223
|
-
ReadLinkedCasesComponent.ɵfac = function ReadLinkedCasesComponent_Factory(t) { return new (t || ReadLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService)); };
|
|
20224
|
-
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) {
|
|
20225
|
-
i0.ɵɵelementStart(0, "div");
|
|
20226
|
-
i0.ɵɵelementStart(1, "div", 0);
|
|
20227
|
-
i0.ɵɵelementStart(2, "h1", 1);
|
|
20228
|
-
i0.ɵɵtext(3, "Linked cases");
|
|
20229
|
-
i0.ɵɵelementEnd();
|
|
20230
|
-
i0.ɵɵelementStart(4, "label", 2);
|
|
20231
|
-
i0.ɵɵtext(5, "This case is linked to");
|
|
20232
|
-
i0.ɵɵelementEnd();
|
|
20233
|
-
i0.ɵɵelementStart(6, "ccd-linked-cases-to-table", 3);
|
|
20234
|
-
i0.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_to_table_notifyAPIFailure_6_listener($event) { return ctx.getFailureLinkedToNotification($event); });
|
|
20235
|
-
i0.ɵɵelementEnd();
|
|
20236
|
-
i0.ɵɵtemplate(7, ReadLinkedCasesComponent_ng_container_7_Template, 1, 0, "ng-container", 4);
|
|
20237
|
-
i0.ɵɵtemplate(8, ReadLinkedCasesComponent_ng_container_8_Template, 1, 0, "ng-container", 4);
|
|
20238
|
-
i0.ɵɵelementEnd();
|
|
20239
|
-
i0.ɵɵelementStart(9, "div", 5);
|
|
20240
|
-
i0.ɵɵelementStart(10, "label", 2);
|
|
20241
|
-
i0.ɵɵtext(11, "This case is linked from");
|
|
20242
|
-
i0.ɵɵelementEnd();
|
|
20243
|
-
i0.ɵɵelement(12, "br");
|
|
20244
|
-
i0.ɵɵelementStart(13, "ccd-linked-cases-from-table", 3);
|
|
20245
|
-
i0.ɵɵlistener("notifyAPIFailure", function ReadLinkedCasesComponent_Template_ccd_linked_cases_from_table_notifyAPIFailure_13_listener($event) { return ctx.getFailureLinkedFromNotification($event); });
|
|
20246
|
-
i0.ɵɵelementEnd();
|
|
20247
|
-
i0.ɵɵtemplate(14, ReadLinkedCasesComponent_ng_container_14_Template, 1, 0, "ng-container", 4);
|
|
20248
|
-
i0.ɵɵtemplate(15, ReadLinkedCasesComponent_ng_container_15_Template, 1, 0, "ng-container", 4);
|
|
20249
|
-
i0.ɵɵelementEnd();
|
|
20250
|
-
i0.ɵɵelementEnd();
|
|
20251
|
-
i0.ɵɵtemplate(16, ReadLinkedCasesComponent_ng_template_16_Template, 6, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
20252
|
-
i0.ɵɵtemplate(18, ReadLinkedCasesComponent_ng_template_18_Template, 6, 1, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
20253
|
-
} if (rf & 2) {
|
|
20254
|
-
const _r4 = i0.ɵɵreference(17);
|
|
20255
|
-
const _r6 = i0.ɵɵreference(19);
|
|
20256
|
-
i0.ɵɵadvance(6);
|
|
20257
|
-
i0.ɵɵproperty("caseField", ctx.caseField);
|
|
20258
|
-
i0.ɵɵadvance(1);
|
|
20259
|
-
i0.ɵɵproperty("ngIf", ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
20260
|
-
i0.ɵɵadvance(1);
|
|
20261
|
-
i0.ɵɵproperty("ngIf", !(ctx.isServerLinkedToError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedToError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
20262
|
-
i0.ɵɵadvance(5);
|
|
20263
|
-
i0.ɵɵproperty("caseField", ctx.caseField);
|
|
20264
|
-
i0.ɵɵadvance(1);
|
|
20265
|
-
i0.ɵɵproperty("ngIf", ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError)("ngIfThen", _r6);
|
|
20266
|
-
i0.ɵɵadvance(1);
|
|
20267
|
-
i0.ɵɵproperty("ngIf", !(ctx.isServerLinkedFromError && ctx.isServerJurisdictionError && ctx.isServerReasonCodeError) && (ctx.isServerLinkedFromError || ctx.isServerJurisdictionError || ctx.isServerReasonCodeError))("ngIfThen", _r4);
|
|
20268
|
-
} }, styles: [".table-sub-heading[_ngcontent-%COMP%]{font-size:24px;font-weight:700}"] });
|
|
20269
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadLinkedCasesComponent, [{
|
|
20270
|
-
type: Component,
|
|
20271
|
-
args: [{
|
|
20272
|
-
selector: 'ccd-read-linked-cases',
|
|
20273
|
-
templateUrl: './read-linked-cases.component.html',
|
|
20274
|
-
styleUrls: ['./read-linked-cases.component.scss']
|
|
20275
|
-
}]
|
|
20276
|
-
}], function () { return [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: AbstractAppConfig }, { type: CommonDataService }]; }, { caseField: [{
|
|
20277
|
-
type: Input
|
|
20278
|
-
}] }); })();
|
|
20279
|
-
|
|
20280
|
-
class LinkCaseReason {
|
|
20281
|
-
}
|
|
20282
|
-
class CCDCaseLinkType {
|
|
20283
|
-
}
|
|
20284
|
-
class CaseLink {
|
|
20285
|
-
}
|
|
20286
|
-
class LinkReason {
|
|
20287
|
-
}
|
|
20288
|
-
class LinkedCasesResponse {
|
|
20289
|
-
}
|
|
20290
|
-
class CaseLinkResponse {
|
|
20291
|
-
}
|
|
20292
|
-
class LinkDetails {
|
|
20293
|
-
}
|
|
20294
|
-
class Terms {
|
|
20295
|
-
}
|
|
20296
|
-
class ESQueryType {
|
|
20297
|
-
}
|
|
20298
|
-
|
|
20299
18023
|
class CollectionCreateCheckerService {
|
|
20300
18024
|
setDisplayContextForChildren(caseField, profile) {
|
|
20301
18025
|
const children = this.getCaseFieldChildren(caseField);
|
|
@@ -22143,7 +19867,6 @@ const PALETTE_COMPONENTS = [
|
|
|
22143
19867
|
ReadComplexFieldTableComponent,
|
|
22144
19868
|
ReadComplexFieldCollectionTableComponent,
|
|
22145
19869
|
ReadCaseFlagFieldComponent,
|
|
22146
|
-
ReadLinkedCasesComponent,
|
|
22147
19870
|
// Write
|
|
22148
19871
|
WriteJudicialUserFieldComponent,
|
|
22149
19872
|
WriteAddressFieldComponent,
|
|
@@ -22179,15 +19902,7 @@ const PALETTE_COMPONENTS = [
|
|
|
22179
19902
|
CaseFileViewFolderSortComponent,
|
|
22180
19903
|
CaseFileViewOverlayMenuComponent,
|
|
22181
19904
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22182
|
-
CaseFileViewFolderSelectorComponent
|
|
22183
|
-
LinkedCasesToTableComponent,
|
|
22184
|
-
LinkedCasesFromTableComponent,
|
|
22185
|
-
BeforeYouStartComponent,
|
|
22186
|
-
LinkCasesComponent,
|
|
22187
|
-
CheckYourAnswersComponent,
|
|
22188
|
-
WriteLinkedCasesComponent,
|
|
22189
|
-
UnLinkCasesComponent,
|
|
22190
|
-
NoLinkedCasesComponent
|
|
19905
|
+
CaseFileViewFolderSelectorComponent
|
|
22191
19906
|
];
|
|
22192
19907
|
class PaletteModule {
|
|
22193
19908
|
}
|
|
@@ -22203,7 +19918,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22203
19918
|
FileUploadStateService,
|
|
22204
19919
|
FileUploadProgressGuard,
|
|
22205
19920
|
WindowService,
|
|
22206
|
-
LinkedCasesService,
|
|
22207
19921
|
CommonDataService,
|
|
22208
19922
|
JurisdictionService,
|
|
22209
19923
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -22299,7 +20013,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22299
20013
|
ReadComplexFieldTableComponent,
|
|
22300
20014
|
ReadComplexFieldCollectionTableComponent,
|
|
22301
20015
|
ReadCaseFlagFieldComponent,
|
|
22302
|
-
ReadLinkedCasesComponent,
|
|
22303
20016
|
// Write
|
|
22304
20017
|
WriteJudicialUserFieldComponent,
|
|
22305
20018
|
WriteAddressFieldComponent,
|
|
@@ -22335,15 +20048,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22335
20048
|
CaseFileViewFolderSortComponent,
|
|
22336
20049
|
CaseFileViewOverlayMenuComponent,
|
|
22337
20050
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22338
|
-
CaseFileViewFolderSelectorComponent,
|
|
22339
|
-
LinkedCasesToTableComponent,
|
|
22340
|
-
LinkedCasesFromTableComponent,
|
|
22341
|
-
BeforeYouStartComponent,
|
|
22342
|
-
LinkCasesComponent,
|
|
22343
|
-
CheckYourAnswersComponent,
|
|
22344
|
-
WriteLinkedCasesComponent,
|
|
22345
|
-
UnLinkCasesComponent,
|
|
22346
|
-
NoLinkedCasesComponent], imports: [CommonModule,
|
|
20051
|
+
CaseFileViewFolderSelectorComponent], imports: [CommonModule,
|
|
22347
20052
|
RouterModule,
|
|
22348
20053
|
FormsModule,
|
|
22349
20054
|
ReactiveFormsModule,
|
|
@@ -22417,7 +20122,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22417
20122
|
ReadComplexFieldTableComponent,
|
|
22418
20123
|
ReadComplexFieldCollectionTableComponent,
|
|
22419
20124
|
ReadCaseFlagFieldComponent,
|
|
22420
|
-
ReadLinkedCasesComponent,
|
|
22421
20125
|
// Write
|
|
22422
20126
|
WriteJudicialUserFieldComponent,
|
|
22423
20127
|
WriteAddressFieldComponent,
|
|
@@ -22453,15 +20157,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22453
20157
|
CaseFileViewFolderSortComponent,
|
|
22454
20158
|
CaseFileViewOverlayMenuComponent,
|
|
22455
20159
|
CaseFileViewFolderDocumentActionsComponent,
|
|
22456
|
-
CaseFileViewFolderSelectorComponent
|
|
22457
|
-
LinkedCasesToTableComponent,
|
|
22458
|
-
LinkedCasesFromTableComponent,
|
|
22459
|
-
BeforeYouStartComponent,
|
|
22460
|
-
LinkCasesComponent,
|
|
22461
|
-
CheckYourAnswersComponent,
|
|
22462
|
-
WriteLinkedCasesComponent,
|
|
22463
|
-
UnLinkCasesComponent,
|
|
22464
|
-
NoLinkedCasesComponent] }); })();
|
|
20160
|
+
CaseFileViewFolderSelectorComponent] }); })();
|
|
22465
20161
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
|
|
22466
20162
|
type: NgModule,
|
|
22467
20163
|
args: [{
|
|
@@ -22532,7 +20228,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22532
20228
|
FileUploadStateService,
|
|
22533
20229
|
FileUploadProgressGuard,
|
|
22534
20230
|
WindowService,
|
|
22535
|
-
LinkedCasesService,
|
|
22536
20231
|
CommonDataService,
|
|
22537
20232
|
JurisdictionService,
|
|
22538
20233
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
@@ -22541,7 +20236,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
22541
20236
|
}]
|
|
22542
20237
|
}], null, null); })();
|
|
22543
20238
|
i0.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective], []);
|
|
22544
|
-
i0.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
|
|
20239
|
+
i0.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, i2.NgIf, MarkdownComponent], [i1.RpxTranslatePipe]);
|
|
22545
20240
|
i0.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
|
|
22546
20241
|
i0.ɵɵsetComponentScope(EventLogComponent, [i2.NgSwitch, i2.NgSwitchCase, EventLogTableComponent, i2.NgIf, EventLogDetailsComponent], []);
|
|
22547
20242
|
i0.ɵɵsetComponentScope(ReadCollectionFieldComponent, [i2.NgIf, i2.NgSwitch, i2.NgSwitchCase, FieldReadComponent, i2.NgForOf], []);
|
|
@@ -22550,7 +20245,6 @@ i0.ɵɵsetComponentScope(ReadOrganisationFieldComponent, [i2.NgSwitch, i2.NgSwit
|
|
|
22550
20245
|
i0.ɵɵsetComponentScope(ReadOrderSummaryFieldComponent, [i2.NgForOf, ReadOrderSummaryRowComponent,
|
|
22551
20246
|
ReadMoneyGbpFieldComponent], [i1.RpxTranslatePipe]);
|
|
22552
20247
|
i0.ɵɵsetComponentScope(ReadOrderSummaryRowComponent, [ReadMoneyGbpFieldComponent], [i1.RpxTranslatePipe]);
|
|
22553
|
-
i0.ɵɵsetComponentScope(ReadCaseLinkFieldComponent, [i2.NgIf, ReadLinkedCasesComponent], [CaseReferencePipe]);
|
|
22554
20248
|
i0.ɵɵsetComponentScope(ReadComplexFieldComponent, [i2.NgSwitch, i2.NgSwitchCase, ReadComplexFieldRawComponent,
|
|
22555
20249
|
ReadComplexFieldCollectionTableComponent, i2.NgSwitchDefault, ReadComplexFieldTableComponent], []);
|
|
22556
20250
|
i0.ɵɵsetComponentScope(ReadComplexFieldRawComponent, [i2.NgForOf, FieldReadComponent], [ReadFieldsFilterPipe, i1.RpxTranslatePipe]);
|
|
@@ -22558,7 +20252,6 @@ i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i2.NgForOf, i2.NgIf, F
|
|
|
22558
20252
|
i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i2.NgForOf, i2.NgIf, FieldReadComponent,
|
|
22559
20253
|
ReadCaseLinkFieldComponent], [i1.RpxTranslatePipe, ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i2.KeyValuePipe, IsCompoundPipe]);
|
|
22560
20254
|
i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i2.NgSwitch, i2.NgSwitchCase, CaseFlagSummaryListComponent, i2.NgSwitchDefault, i2.NgForOf, i2.NgIf, CaseFlagTableComponent], [i1.RpxTranslatePipe]);
|
|
22561
|
-
i0.ɵɵsetComponentScope(ReadLinkedCasesComponent, [LinkedCasesToTableComponent, i2.NgIf, LinkedCasesFromTableComponent], []);
|
|
22562
20255
|
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i2.NgIf, i2.NgClass, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective, i2$1.SelectControlValueAccessor, i2.NgForOf, i2$1.NgSelectOption, i2$1.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective], [i1.RpxTranslatePipe, FieldLabelPipe]);
|
|
22563
20256
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i2.NgIf, i2.NgForOf, i2.NgSwitch, i2.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, FieldWriteComponent], [i1.RpxTranslatePipe, FieldLabelPipe, IsReadOnlyPipe]);
|
|
22564
20257
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i2.NgClass, i2.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe, i1.RpxTranslatePipe]);
|
|
@@ -22573,21 +20266,11 @@ i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2$1.NgControlStatusG
|
|
|
22573
20266
|
WriteOrganisationComplexFieldComponent], [i2.AsyncPipe, i1.RpxTranslatePipe]);
|
|
22574
20267
|
i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
22575
20268
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i2.NgIf, DatetimePickerComponent, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, WriteDateFieldComponent], []);
|
|
22576
|
-
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i2.NgIf, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlDirective, WriteLinkedCasesComponent, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective], [i1.RpxTranslatePipe, FieldLabelPipe]);
|
|
22577
20269
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i2.NgIf, i2.NgForOf, FieldWriteComponent, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective], [i1.RpxTranslatePipe, FieldLabelPipe, FirstErrorPipe]);
|
|
22578
20270
|
i0.ɵɵsetComponentScope(
|
|
22579
20271
|
// ComponentLauncher web components
|
|
22580
|
-
CaseFileViewFieldComponent, [i2.NgIf, CaseFileViewFolderComponent,
|
|
22581
|
-
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i2.NgIf, CaseFileViewFolderComponent,
|
|
22582
|
-
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i2.NgIf, i2.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22583
|
-
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i2.NgIf, i2.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22584
|
-
i0.ɵɵsetComponentScope(LinkCasesComponent, [i2.NgIf, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, i2.NgClass, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlName, i2$1.FormArrayName, i2.NgForOf, i2$1.FormGroupName, i2$1.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22585
|
-
i0.ɵɵsetComponentScope(CheckYourAnswersComponent, [i2.NgIf, i2.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
22586
|
-
i0.ɵɵsetComponentScope(WriteLinkedCasesComponent, [i2.NgIf, i2.NgForOf, i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, i2.NgSwitch, i2.NgSwitchCase, BeforeYouStartComponent,
|
|
22587
|
-
NoLinkedCasesComponent,
|
|
22588
|
-
LinkCasesComponent,
|
|
22589
|
-
UnLinkCasesComponent,
|
|
22590
|
-
CheckYourAnswersComponent], []);
|
|
20272
|
+
CaseFileViewFieldComponent, [i2.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
20273
|
+
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i2.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
22591
20274
|
|
|
22592
20275
|
class Confirmation {
|
|
22593
20276
|
constructor(caseId, status, header, body) {
|
|
@@ -23445,7 +21128,7 @@ class CaseProgressComponent {
|
|
|
23445
21128
|
this.eventTrigger = eventTrigger;
|
|
23446
21129
|
})
|
|
23447
21130
|
.catch((error) => {
|
|
23448
|
-
this.alertService.error(error.message);
|
|
21131
|
+
this.alertService.error({ phrase: error.message });
|
|
23449
21132
|
return throwError(error);
|
|
23450
21133
|
});
|
|
23451
21134
|
}
|
|
@@ -25927,7 +23610,7 @@ class CaseTimelineComponent {
|
|
|
25927
23610
|
}))
|
|
25928
23611
|
.toPromise()
|
|
25929
23612
|
.catch((error) => {
|
|
25930
|
-
this.alertService.error(error.message);
|
|
23613
|
+
this.alertService.error({ phrase: error.message });
|
|
25931
23614
|
return throwError(error);
|
|
25932
23615
|
});
|
|
25933
23616
|
}
|
|
@@ -26244,12 +23927,20 @@ class CaseEventTriggerComponent {
|
|
|
26244
23927
|
.navigate([this.parentUrl])
|
|
26245
23928
|
.then(() => {
|
|
26246
23929
|
const caseReference = this.caseReferencePipe.transform(this.caseDetails.case_id.toString());
|
|
23930
|
+
const replacements = { CASEREFERENCE: caseReference, NAME: this.eventTrigger.name };
|
|
26247
23931
|
if (EventStatusService.isIncomplete(eventStatus)) {
|
|
26248
|
-
this.alertService.warning(
|
|
26249
|
-
|
|
23932
|
+
this.alertService.warning({
|
|
23933
|
+
phrase: `Case #%CASEREFERENCE% has been updated with event: %NAME%
|
|
23934
|
+
but the callback service cannot be completed`,
|
|
23935
|
+
replacements
|
|
23936
|
+
});
|
|
26250
23937
|
}
|
|
26251
23938
|
else {
|
|
26252
|
-
this.alertService.success(
|
|
23939
|
+
this.alertService.success({
|
|
23940
|
+
phrase: 'Case #%CASEREFERENCE% has been updated with event: %NAME%',
|
|
23941
|
+
replacements,
|
|
23942
|
+
preserve: true
|
|
23943
|
+
});
|
|
26253
23944
|
}
|
|
26254
23945
|
});
|
|
26255
23946
|
}
|
|
@@ -26860,7 +24551,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_
|
|
|
26860
24551
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
26861
24552
|
i0.ɵɵelementStart(0, "tr");
|
|
26862
24553
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_th_1_Template, 4, 3, "th", 32);
|
|
26863
|
-
i0.ɵɵelementStart(2, "
|
|
24554
|
+
i0.ɵɵelementStart(2, "td", 33);
|
|
26864
24555
|
i0.ɵɵelementStart(3, "span", 34);
|
|
26865
24556
|
i0.ɵɵelement(4, "ccd-field-read", 35);
|
|
26866
24557
|
i0.ɵɵelementEnd();
|
|
@@ -31884,5 +29575,5 @@ class TestRouteSnapshotBuilder {
|
|
|
31884
29575
|
* Generated bundle index. Do not edit.
|
|
31885
29576
|
*/
|
|
31886
29577
|
|
|
31887
|
-
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,
|
|
29578
|
+
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, 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, 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 };
|
|
31888
29579
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|