@hmcts/ccd-case-ui-toolkit 5.0.33-angular11-upgrade → 5.0.36-prl-integration-merge-into-angular-11
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 +1520 -287
- 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/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +23 -17
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +72 -0
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +134 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.js +52 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +38 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +353 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +159 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +6 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.js +2 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +100 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +2 -0
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +4 -0
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +9 -5
- package/esm2015/lib/shared/components/palette/case-link/components/write-linked-cases.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +5 -7
- package/esm2015/lib/shared/components/palette/index.js +2 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +71 -15
- package/esm2015/lib/shared/components/palette/palette.service.js +19 -1
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
- package/esm2015/lib/shared/components/search-result/search-result.component.js +53 -46
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.js +6 -0
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +93 -0
- package/esm2015/lib/shared/domain/case-file-view/index.js +6 -0
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/domain/definition/jurisdiction.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +46 -0
- package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
- package/esm2015/lib/shared/services/index.js +2 -1
- package/esm2015/lib/shared/services/jurisdiction/jurisdiction.service.js +4 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1351 -273
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +5 -1
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +2 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +8 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +33 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts +17 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +13 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +53 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts +28 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +6 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts +6 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +13 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts +4 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts +5 -1
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +1 -2
- package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +1 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +41 -29
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts +2 -0
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts +5 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +14 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/index.d.ts +6 -0
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
- 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/definition/jurisdiction.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +21 -0
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
- package/lib/shared/services/case-file-view/index.d.ts +2 -0
- package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared/services/index.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +2 -1
- package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -1
- package/esm2015/lib/shared/components/palette/case-link/services/jurisdiction.service.js +0 -22
- package/lib/shared/components/palette/case-link/services/jurisdiction.service.d.ts +0 -12
- package/lib/shared/components/palette/case-link/services/jurisdiction.service.d.ts.map +0 -1
|
@@ -7,10 +7,10 @@ import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
|
|
|
7
7
|
import * as i2 from '@angular/forms';
|
|
8
8
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import polling from 'rx-polling';
|
|
10
|
-
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, forkJoin } from 'rxjs';
|
|
10
|
+
import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, forkJoin, fromEvent } from 'rxjs';
|
|
11
11
|
import * as i1$2 from '@angular/common/http';
|
|
12
12
|
import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
13
|
-
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first,
|
|
13
|
+
import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first, switchMap, takeUntil, filter } from 'rxjs/operators';
|
|
14
14
|
import { Type, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
|
|
15
15
|
import * as _ from 'underscore';
|
|
16
16
|
import * as moment from 'moment';
|
|
@@ -18,9 +18,13 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
18
18
|
import { isUndefined } from 'util';
|
|
19
19
|
import { StateMachine } from '@edium/fsm';
|
|
20
20
|
import * as i1$3 from '@angular/material/dialog';
|
|
21
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
21
|
+
import { MatDialogConfig, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
22
22
|
import * as i4 from '@angular-material-components/datetime-picker';
|
|
23
23
|
import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
24
|
+
import * as i1$4 from '@angular/cdk/overlay';
|
|
25
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
26
|
+
import * as i7 from '@angular/cdk/tree';
|
|
27
|
+
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
24
28
|
import * as i5 from '@angular/material/autocomplete';
|
|
25
29
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
26
30
|
import * as i6 from '@angular/material/core';
|
|
@@ -33,14 +37,16 @@ import * as i3$1 from '@angular/material/input';
|
|
|
33
37
|
import { MatInputModule } from '@angular/material/input';
|
|
34
38
|
import * as i3 from '@hmcts/ccpay-web-component';
|
|
35
39
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
36
|
-
import * as
|
|
37
|
-
import {
|
|
40
|
+
import * as i12 from '@hmcts/media-viewer';
|
|
41
|
+
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
38
42
|
import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
|
|
39
43
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
44
|
+
import * as i1$5 from 'ngx-md';
|
|
45
|
+
import { NgxMdModule } from 'ngx-md';
|
|
40
46
|
import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
|
|
41
47
|
import * as i6$2 from '@angular/cdk/portal';
|
|
42
48
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
43
|
-
import * as i1$
|
|
49
|
+
import * as i1$6 from 'ngx-pagination';
|
|
44
50
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
45
51
|
import * as i9 from '@angular/material/tabs';
|
|
46
52
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
@@ -109,13 +115,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
109
115
|
i0.ɵɵadvance(3);
|
|
110
116
|
i0.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
111
117
|
} }
|
|
112
|
-
const _c0$
|
|
113
|
-
const _c1$
|
|
118
|
+
const _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
119
|
+
const _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
114
120
|
class FooterComponent {
|
|
115
121
|
}
|
|
116
122
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
117
|
-
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
118
|
-
i0.ɵɵprojectionDef(_c0$
|
|
123
|
+
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
124
|
+
i0.ɵɵprojectionDef(_c0$_);
|
|
119
125
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
120
126
|
i0.ɵɵelementStart(1, "div", 1);
|
|
121
127
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -182,8 +188,8 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
182
188
|
i0.ɵɵadvance(3);
|
|
183
189
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
184
190
|
} }
|
|
185
|
-
const _c0$
|
|
186
|
-
const _c1$
|
|
191
|
+
const _c0$Z = [[["", "headerNavigation", ""]]];
|
|
192
|
+
const _c1$q = ["[headerNavigation]"];
|
|
187
193
|
class HeaderBarComponent {
|
|
188
194
|
constructor() {
|
|
189
195
|
this.signOutRequest = new EventEmitter();
|
|
@@ -193,8 +199,8 @@ class HeaderBarComponent {
|
|
|
193
199
|
}
|
|
194
200
|
}
|
|
195
201
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
196
|
-
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
197
|
-
i0.ɵɵprojectionDef(_c0$
|
|
202
|
+
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
203
|
+
i0.ɵɵprojectionDef(_c0$Z);
|
|
198
204
|
i0.ɵɵelementStart(0, "header", 0);
|
|
199
205
|
i0.ɵɵelementStart(1, "div", 1);
|
|
200
206
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -251,13 +257,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
251
257
|
type: Output
|
|
252
258
|
}] }); })();
|
|
253
259
|
|
|
254
|
-
const _c0$
|
|
255
|
-
const _c1$
|
|
260
|
+
const _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
|
+
const _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
256
262
|
class NavigationComponent {
|
|
257
263
|
}
|
|
258
264
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
259
|
-
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
260
|
-
i0.ɵɵprojectionDef(_c0$
|
|
265
|
+
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
266
|
+
i0.ɵɵprojectionDef(_c0$Y);
|
|
261
267
|
i0.ɵɵelementStart(0, "div");
|
|
262
268
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
263
269
|
i0.ɵɵprojection(2);
|
|
@@ -374,13 +380,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
374
380
|
}]
|
|
375
381
|
}], null, null); })();
|
|
376
382
|
|
|
377
|
-
const _c0$
|
|
378
|
-
const _c1$
|
|
383
|
+
const _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
384
|
+
const _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
379
385
|
class BodyComponent {
|
|
380
386
|
}
|
|
381
387
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
382
|
-
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
383
|
-
i0.ɵɵprojectionDef(_c0$
|
|
388
|
+
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
389
|
+
i0.ɵɵprojectionDef(_c0$X);
|
|
384
390
|
i0.ɵɵelementStart(0, "div", 0);
|
|
385
391
|
i0.ɵɵprojection(1);
|
|
386
392
|
i0.ɵɵprojection(2, 1);
|
|
@@ -397,7 +403,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
397
403
|
}]
|
|
398
404
|
}], null, null); })();
|
|
399
405
|
|
|
400
|
-
const _c0$
|
|
406
|
+
const _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
|
|
401
407
|
function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
402
408
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
403
409
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -413,7 +419,7 @@ function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
413
419
|
i0.ɵɵadvance(1);
|
|
414
420
|
i0.ɵɵproperty("for", ctx_r3.hourId());
|
|
415
421
|
i0.ɵɵadvance(2);
|
|
416
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
422
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
|
|
417
423
|
} }
|
|
418
424
|
function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
419
425
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -430,7 +436,7 @@ function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
430
436
|
i0.ɵɵadvance(1);
|
|
431
437
|
i0.ɵɵproperty("for", ctx_r4.minuteId());
|
|
432
438
|
i0.ɵɵadvance(2);
|
|
433
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
439
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
|
|
434
440
|
} }
|
|
435
441
|
function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
436
442
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -447,7 +453,7 @@ function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
447
453
|
i0.ɵɵadvance(1);
|
|
448
454
|
i0.ɵɵproperty("for", ctx_r5.secondId());
|
|
449
455
|
i0.ɵɵadvance(2);
|
|
450
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
456
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
|
|
451
457
|
} }
|
|
452
458
|
class DateInputComponent {
|
|
453
459
|
constructor() {
|
|
@@ -676,15 +682,15 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
676
682
|
i0.ɵɵadvance(2);
|
|
677
683
|
i0.ɵɵproperty("for", ctx.dayId());
|
|
678
684
|
i0.ɵɵadvance(2);
|
|
679
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$
|
|
685
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
|
|
680
686
|
i0.ɵɵadvance(3);
|
|
681
687
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
682
688
|
i0.ɵɵadvance(2);
|
|
683
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$
|
|
689
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
|
|
684
690
|
i0.ɵɵadvance(3);
|
|
685
691
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
686
692
|
i0.ɵɵadvance(2);
|
|
687
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$
|
|
693
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
|
|
688
694
|
i0.ɵɵadvance(2);
|
|
689
695
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
690
696
|
i0.ɵɵadvance(1);
|
|
@@ -754,7 +760,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
754
760
|
i0.ɵɵelementEnd();
|
|
755
761
|
i0.ɵɵelementContainerEnd();
|
|
756
762
|
} }
|
|
757
|
-
const _c0$
|
|
763
|
+
const _c0$V = ["*"];
|
|
758
764
|
var AlertMessageType;
|
|
759
765
|
(function (AlertMessageType) {
|
|
760
766
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -774,7 +780,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
774
780
|
AlertComponent.TYPE_ERROR = 'error';
|
|
775
781
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
776
782
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
777
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
783
|
+
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
|
|
778
784
|
i0.ɵɵprojectionDef();
|
|
779
785
|
i0.ɵɵelementStart(0, "div", 0);
|
|
780
786
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -1005,18 +1011,18 @@ NotificationBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NotificationB
|
|
|
1005
1011
|
type: Output
|
|
1006
1012
|
}] }); })();
|
|
1007
1013
|
|
|
1008
|
-
const _c0$
|
|
1009
|
-
const _c1$
|
|
1014
|
+
const _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1015
|
+
const _c1$n = ["*"];
|
|
1010
1016
|
class TabComponent {
|
|
1011
1017
|
}
|
|
1012
1018
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1013
|
-
TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1019
|
+
TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1014
1020
|
i0.ɵɵprojectionDef();
|
|
1015
1021
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1016
1022
|
i0.ɵɵprojection(1);
|
|
1017
1023
|
i0.ɵɵelementEnd();
|
|
1018
1024
|
} if (rf & 2) {
|
|
1019
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
1025
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
|
|
1020
1026
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1021
1027
|
} }, directives: [i1.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
1022
1028
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -1036,8 +1042,8 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
1036
1042
|
type: Input
|
|
1037
1043
|
}] }); })();
|
|
1038
1044
|
|
|
1039
|
-
const _c0$
|
|
1040
|
-
const _c1$
|
|
1045
|
+
const _c0$T = ["tab"];
|
|
1046
|
+
const _c1$m = function () { return ["."]; };
|
|
1041
1047
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1042
1048
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
1043
1049
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -1050,7 +1056,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1050
1056
|
} if (rf & 2) {
|
|
1051
1057
|
const panel_r1 = ctx.$implicit;
|
|
1052
1058
|
i0.ɵɵadvance(1);
|
|
1053
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$
|
|
1059
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1054
1060
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1055
1061
|
i0.ɵɵadvance(2);
|
|
1056
1062
|
i0.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -1081,7 +1087,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
1081
1087
|
let _t;
|
|
1082
1088
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
1083
1089
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1084
|
-
i0.ɵɵviewQuery(_c0$
|
|
1090
|
+
i0.ɵɵviewQuery(_c0$T, 1);
|
|
1085
1091
|
} if (rf & 2) {
|
|
1086
1092
|
let _t;
|
|
1087
1093
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1146,7 +1152,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1146
1152
|
}]
|
|
1147
1153
|
}], null, null); })();
|
|
1148
1154
|
|
|
1149
|
-
const _c0$
|
|
1155
|
+
const _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1150
1156
|
class ActivityBannerComponent {
|
|
1151
1157
|
constructor() { }
|
|
1152
1158
|
ngOnInit() {
|
|
@@ -1163,7 +1169,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1163
1169
|
i0.ɵɵelementEnd();
|
|
1164
1170
|
i0.ɵɵelementEnd();
|
|
1165
1171
|
} if (rf & 2) {
|
|
1166
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$
|
|
1172
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1167
1173
|
i0.ɵɵadvance(2);
|
|
1168
1174
|
i0.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1169
1175
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -2596,7 +2602,7 @@ class IsCompoundPipe {
|
|
|
2596
2602
|
}
|
|
2597
2603
|
}
|
|
2598
2604
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
2599
|
-
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
2605
|
+
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
|
|
2600
2606
|
];
|
|
2601
2607
|
IsCompoundPipe.EXCLUDE = [
|
|
2602
2608
|
'CaseLink', 'JudicialUser'
|
|
@@ -5793,6 +5799,45 @@ AddressesService.ɵprov = i0.ɵɵdefineInjectable({ token: AddressesService, fac
|
|
|
5793
5799
|
type: Injectable
|
|
5794
5800
|
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null); })();
|
|
5795
5801
|
|
|
5802
|
+
class CaseFileViewService {
|
|
5803
|
+
constructor(http, appConfig) {
|
|
5804
|
+
this.http = http;
|
|
5805
|
+
this.appConfig = appConfig;
|
|
5806
|
+
}
|
|
5807
|
+
/**
|
|
5808
|
+
* Retrieves the categories and documents for a case.
|
|
5809
|
+
*
|
|
5810
|
+
* @param caseRef 16-digit Case Reference number of the case
|
|
5811
|
+
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
5812
|
+
*/
|
|
5813
|
+
getCategoriesAndDocuments(caseRef) {
|
|
5814
|
+
let url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
5815
|
+
if (url) {
|
|
5816
|
+
url += `/${caseRef}`;
|
|
5817
|
+
return this.http.get(url, { observe: 'body' });
|
|
5818
|
+
}
|
|
5819
|
+
return of(null);
|
|
5820
|
+
}
|
|
5821
|
+
updateDocumentCategory(caseRef, caseVersion, attributePath, categoryId) {
|
|
5822
|
+
let url = this.appConfig.getDocumentDataUrl();
|
|
5823
|
+
if (url) {
|
|
5824
|
+
url += `/${caseRef}`;
|
|
5825
|
+
const body = {
|
|
5826
|
+
case_version: caseVersion,
|
|
5827
|
+
attribute_path: attributePath,
|
|
5828
|
+
category_id: categoryId
|
|
5829
|
+
};
|
|
5830
|
+
return this.http.put(url, body, { observe: 'body' });
|
|
5831
|
+
}
|
|
5832
|
+
return of(null);
|
|
5833
|
+
}
|
|
5834
|
+
}
|
|
5835
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)); };
|
|
5836
|
+
CaseFileViewService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
5837
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewService, [{
|
|
5838
|
+
type: Injectable
|
|
5839
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null); })();
|
|
5840
|
+
|
|
5796
5841
|
class CaseFlagRefdataService {
|
|
5797
5842
|
constructor(http, appConfig) {
|
|
5798
5843
|
this.http = http;
|
|
@@ -6047,12 +6092,15 @@ FormErrorService.ɵprov = i0.ɵɵdefineInjectable({ token: FormErrorService, fac
|
|
|
6047
6092
|
type: Injectable
|
|
6048
6093
|
}], null, null); })();
|
|
6049
6094
|
|
|
6050
|
-
class JurisdictionService
|
|
6095
|
+
class JurisdictionService {
|
|
6051
6096
|
constructor(httpService) {
|
|
6052
6097
|
this.httpService = httpService;
|
|
6053
6098
|
this.selectedJurisdictionSource = new Subject();
|
|
6054
6099
|
this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
|
|
6055
6100
|
}
|
|
6101
|
+
getJurisdictions() {
|
|
6102
|
+
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
6103
|
+
}
|
|
6056
6104
|
announceSelectedJurisdiction(jurisdiction) {
|
|
6057
6105
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
6058
6106
|
}
|
|
@@ -6063,9 +6111,9 @@ class JurisdictionService$1 {
|
|
|
6063
6111
|
return this.httpService.post('api/prd/judicial/searchJudicialUserByPersonalCodes', { personal_code: personalCodes });
|
|
6064
6112
|
}
|
|
6065
6113
|
}
|
|
6066
|
-
JurisdictionService
|
|
6067
|
-
JurisdictionService
|
|
6068
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService
|
|
6114
|
+
JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0.ɵɵinject(HttpService)); };
|
|
6115
|
+
JurisdictionService.ɵprov = i0.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
|
|
6116
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService, [{
|
|
6069
6117
|
type: Injectable
|
|
6070
6118
|
}], function () { return [{ type: HttpService }]; }, null); })();
|
|
6071
6119
|
|
|
@@ -9529,7 +9577,7 @@ ReadFieldsFilterPipe.EMPTY_VALUES = [
|
|
|
9529
9577
|
'',
|
|
9530
9578
|
{}
|
|
9531
9579
|
];
|
|
9532
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher'];
|
|
9580
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
|
|
9533
9581
|
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
9534
9582
|
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
9535
9583
|
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
@@ -9704,24 +9752,6 @@ FieldsFilterPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldsFilter", type: Fie
|
|
|
9704
9752
|
}]
|
|
9705
9753
|
}], null, null); })();
|
|
9706
9754
|
|
|
9707
|
-
class JurisdictionService {
|
|
9708
|
-
constructor(http) {
|
|
9709
|
-
this.http = http;
|
|
9710
|
-
}
|
|
9711
|
-
getJurisdictions() {
|
|
9712
|
-
const headers = new HttpHeaders({
|
|
9713
|
-
'Content-Type': 'application/json',
|
|
9714
|
-
Accept: 'application/json'
|
|
9715
|
-
});
|
|
9716
|
-
return this.http.get('/aggregated/caseworkers/:uid/jurisdictions?access=read', { headers });
|
|
9717
|
-
}
|
|
9718
|
-
}
|
|
9719
|
-
JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0.ɵɵinject(i1$2.HttpClient)); };
|
|
9720
|
-
JurisdictionService.ɵprov = i0.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
|
|
9721
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(JurisdictionService, [{
|
|
9722
|
-
type: Injectable
|
|
9723
|
-
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
9724
|
-
|
|
9725
9755
|
class LinkedCasesService {
|
|
9726
9756
|
constructor(jurisdictionService, searchService) {
|
|
9727
9757
|
this.jurisdictionService = jurisdictionService;
|
|
@@ -9947,39 +9977,22 @@ PipesModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
9947
9977
|
}]
|
|
9948
9978
|
}], null, null); })();
|
|
9949
9979
|
|
|
9950
|
-
|
|
9951
|
-
(
|
|
9952
|
-
|
|
9953
|
-
PaletteContext["CHECK_YOUR_ANSWER"] = "CHECK_YOUR_ANSWER";
|
|
9954
|
-
PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
|
|
9955
|
-
})(PaletteContext || (PaletteContext = {}));
|
|
9956
|
-
|
|
9957
|
-
class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
9958
|
-
constructor() {
|
|
9959
|
-
super(...arguments);
|
|
9960
|
-
/**
|
|
9961
|
-
* Optional. Enable context-aware rendering of fields.
|
|
9962
|
-
*/
|
|
9963
|
-
this.context = PaletteContext.DEFAULT;
|
|
9980
|
+
class CommonDataService {
|
|
9981
|
+
constructor(http) {
|
|
9982
|
+
this.http = http;
|
|
9964
9983
|
}
|
|
9965
|
-
|
|
9966
|
-
if (
|
|
9967
|
-
this.
|
|
9984
|
+
getRefData(url) {
|
|
9985
|
+
if (url) {
|
|
9986
|
+
return this.http.get(url, { observe: 'body' });
|
|
9968
9987
|
}
|
|
9988
|
+
return of(null);
|
|
9969
9989
|
}
|
|
9970
9990
|
}
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
}], null, { caseReference: [{
|
|
9977
|
-
type: Input
|
|
9978
|
-
}], topLevelFormGroup: [{
|
|
9979
|
-
type: Input
|
|
9980
|
-
}], context: [{
|
|
9981
|
-
type: Input
|
|
9982
|
-
}] }); })();
|
|
9991
|
+
CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0.ɵɵinject(i1$2.HttpClient)); };
|
|
9992
|
+
CommonDataService.ɵprov = i0.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
|
|
9993
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonDataService, [{
|
|
9994
|
+
type: Injectable
|
|
9995
|
+
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
9983
9996
|
|
|
9984
9997
|
function WriteComplexFieldComponent_h2_3_Template(rf, ctx) { if (rf & 1) {
|
|
9985
9998
|
i0.ɵɵelementStart(0, "h2", 3);
|
|
@@ -10170,13 +10183,13 @@ class AddressOption {
|
|
|
10170
10183
|
}
|
|
10171
10184
|
}
|
|
10172
10185
|
|
|
10173
|
-
const _c0$
|
|
10186
|
+
const _c0$R = ["writeComplexFieldComponent"];
|
|
10174
10187
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10175
10188
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10176
10189
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
10177
10190
|
i0.ɵɵelementEnd();
|
|
10178
10191
|
} }
|
|
10179
|
-
const _c1$
|
|
10192
|
+
const _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
10180
10193
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
10181
10194
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10182
10195
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -10195,7 +10208,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10195
10208
|
i0.ɵɵelementEnd();
|
|
10196
10209
|
} if (rf & 2) {
|
|
10197
10210
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10198
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
10211
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
10199
10212
|
i0.ɵɵadvance(1);
|
|
10200
10213
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
10201
10214
|
i0.ɵɵadvance(3);
|
|
@@ -10363,7 +10376,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10363
10376
|
}
|
|
10364
10377
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10365
10378
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10366
|
-
i0.ɵɵviewQuery(_c0$
|
|
10379
|
+
i0.ɵɵviewQuery(_c0$R, 1);
|
|
10367
10380
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10368
10381
|
} if (rf & 2) {
|
|
10369
10382
|
let _t;
|
|
@@ -10398,6 +10411,235 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
|
|
|
10398
10411
|
type: Input
|
|
10399
10412
|
}] }); })();
|
|
10400
10413
|
|
|
10414
|
+
var PaletteContext;
|
|
10415
|
+
(function (PaletteContext) {
|
|
10416
|
+
PaletteContext["DEFAULT"] = "DEFAULT";
|
|
10417
|
+
PaletteContext["CHECK_YOUR_ANSWER"] = "CHECK_YOUR_ANSWER";
|
|
10418
|
+
PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
|
|
10419
|
+
})(PaletteContext || (PaletteContext = {}));
|
|
10420
|
+
|
|
10421
|
+
class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
10422
|
+
constructor() {
|
|
10423
|
+
super(...arguments);
|
|
10424
|
+
/**
|
|
10425
|
+
* Optional. Enable context-aware rendering of fields.
|
|
10426
|
+
*/
|
|
10427
|
+
this.context = PaletteContext.DEFAULT;
|
|
10428
|
+
}
|
|
10429
|
+
ngOnInit() {
|
|
10430
|
+
if (!this.caseField.metadata) {
|
|
10431
|
+
this.registerControl(new FormControl(this.caseField.value));
|
|
10432
|
+
}
|
|
10433
|
+
}
|
|
10434
|
+
}
|
|
10435
|
+
AbstractFieldReadComponent.ɵfac = function AbstractFieldReadComponent_Factory(t) { return ɵAbstractFieldReadComponent_BaseFactory(t || AbstractFieldReadComponent); };
|
|
10436
|
+
AbstractFieldReadComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
10437
|
+
const ɵAbstractFieldReadComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(AbstractFieldReadComponent);
|
|
10438
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldReadComponent, [{
|
|
10439
|
+
type: Directive
|
|
10440
|
+
}], null, { caseReference: [{
|
|
10441
|
+
type: Input
|
|
10442
|
+
}], topLevelFormGroup: [{
|
|
10443
|
+
type: Input
|
|
10444
|
+
}], context: [{
|
|
10445
|
+
type: Input
|
|
10446
|
+
}] }); })();
|
|
10447
|
+
|
|
10448
|
+
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10449
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
10450
|
+
i0.ɵɵelementStart(1, "h1", 3);
|
|
10451
|
+
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
10452
|
+
i0.ɵɵelementEnd();
|
|
10453
|
+
i0.ɵɵelementStart(3, "p", 4);
|
|
10454
|
+
i0.ɵɵtext(4, "Try again later.");
|
|
10455
|
+
i0.ɵɵelementEnd();
|
|
10456
|
+
i0.ɵɵelementEnd();
|
|
10457
|
+
} }
|
|
10458
|
+
function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
10459
|
+
i0.ɵɵelementContainerStart(0);
|
|
10460
|
+
i0.ɵɵelement(1, "mv-media-viewer", 11);
|
|
10461
|
+
i0.ɵɵelementContainerEnd();
|
|
10462
|
+
} if (rf & 2) {
|
|
10463
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10464
|
+
i0.ɵɵadvance(1);
|
|
10465
|
+
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);
|
|
10466
|
+
} }
|
|
10467
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10468
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
10469
|
+
i0.ɵɵelementStart(0, "div");
|
|
10470
|
+
i0.ɵɵelementStart(1, "h2", 5);
|
|
10471
|
+
i0.ɵɵtext(2, "Case file");
|
|
10472
|
+
i0.ɵɵelementEnd();
|
|
10473
|
+
i0.ɵɵelementStart(3, "div", 6);
|
|
10474
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
10475
|
+
i0.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
10476
|
+
i0.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
10477
|
+
i0.ɵɵelementEnd();
|
|
10478
|
+
i0.ɵɵelementEnd();
|
|
10479
|
+
i0.ɵɵelement(6, "div", 9);
|
|
10480
|
+
i0.ɵɵelementStart(7, "div", 10);
|
|
10481
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
10482
|
+
i0.ɵɵelementEnd();
|
|
10483
|
+
i0.ɵɵelementEnd();
|
|
10484
|
+
i0.ɵɵelementEnd();
|
|
10485
|
+
} if (rf & 2) {
|
|
10486
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
10487
|
+
i0.ɵɵadvance(5);
|
|
10488
|
+
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
10489
|
+
i0.ɵɵadvance(3);
|
|
10490
|
+
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10491
|
+
} }
|
|
10492
|
+
class CaseFileViewFieldComponent {
|
|
10493
|
+
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
10494
|
+
this.elementRef = elementRef;
|
|
10495
|
+
this.route = route;
|
|
10496
|
+
this.caseFileViewService = caseFileViewService;
|
|
10497
|
+
this.documentManagementService = documentManagementService;
|
|
10498
|
+
this.loadingService = loadingService;
|
|
10499
|
+
this.allowMoving = true;
|
|
10500
|
+
this.getCategoriesAndDocumentsError = false;
|
|
10501
|
+
}
|
|
10502
|
+
ngOnInit() {
|
|
10503
|
+
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
10504
|
+
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
10505
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
10506
|
+
next: data => {
|
|
10507
|
+
this.caseVersion = data.case_version;
|
|
10508
|
+
},
|
|
10509
|
+
error: _ => this.getCategoriesAndDocumentsError = true
|
|
10510
|
+
});
|
|
10511
|
+
}
|
|
10512
|
+
ngAfterViewInit() {
|
|
10513
|
+
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
10514
|
+
const documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
10515
|
+
const mousedown$ = fromEvent(slider, 'mousedown');
|
|
10516
|
+
const mousemove$ = fromEvent(document, 'mousemove');
|
|
10517
|
+
const mouseup$ = fromEvent(document, 'mouseup');
|
|
10518
|
+
const drag$ = mousedown$.pipe(switchMap((start) => {
|
|
10519
|
+
const x = start.clientX;
|
|
10520
|
+
const documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
10521
|
+
return mousemove$.pipe(map(move => {
|
|
10522
|
+
move.preventDefault();
|
|
10523
|
+
return {
|
|
10524
|
+
dx: move.clientX - x,
|
|
10525
|
+
documentTreeContainerWidth
|
|
10526
|
+
};
|
|
10527
|
+
}), takeUntil(mouseup$));
|
|
10528
|
+
}));
|
|
10529
|
+
drag$.subscribe(pos => {
|
|
10530
|
+
const calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
10531
|
+
documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
|
|
10532
|
+
});
|
|
10533
|
+
}
|
|
10534
|
+
setMediaViewerFile(document) {
|
|
10535
|
+
const mediaViewerInfo = this.documentManagementService.getMediaViewerInfo({
|
|
10536
|
+
document_binary_url: document.document_binary_url,
|
|
10537
|
+
document_filename: document.document_filename
|
|
10538
|
+
});
|
|
10539
|
+
this.currentDocument = JSON.parse(mediaViewerInfo);
|
|
10540
|
+
}
|
|
10541
|
+
moveDocument(data) {
|
|
10542
|
+
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
10543
|
+
const loadingToken = this.loadingService.register();
|
|
10544
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(_ => {
|
|
10545
|
+
location.reload();
|
|
10546
|
+
this.loadingService.unregister(loadingToken);
|
|
10547
|
+
});
|
|
10548
|
+
}
|
|
10549
|
+
ngOnDestroy() {
|
|
10550
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
10551
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
10552
|
+
}
|
|
10553
|
+
}
|
|
10554
|
+
}
|
|
10555
|
+
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10556
|
+
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)); };
|
|
10557
|
+
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) {
|
|
10558
|
+
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10559
|
+
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
10560
|
+
} if (rf & 2) {
|
|
10561
|
+
i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
10562
|
+
i0.ɵɵadvance(1);
|
|
10563
|
+
i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10564
|
+
} }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
10565
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
10566
|
+
type: Component,
|
|
10567
|
+
args: [{
|
|
10568
|
+
selector: 'ccd-case-file-view-field',
|
|
10569
|
+
templateUrl: './case-file-view-field.component.html',
|
|
10570
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10571
|
+
}]
|
|
10572
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null); })();
|
|
10573
|
+
|
|
10574
|
+
function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10575
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
10576
|
+
i0.ɵɵelementStart(1, "h1", 3);
|
|
10577
|
+
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
10578
|
+
i0.ɵɵelementEnd();
|
|
10579
|
+
i0.ɵɵelementStart(3, "p", 4);
|
|
10580
|
+
i0.ɵɵtext(4, "Try again later.");
|
|
10581
|
+
i0.ɵɵelementEnd();
|
|
10582
|
+
i0.ɵɵelementEnd();
|
|
10583
|
+
} }
|
|
10584
|
+
function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
10585
|
+
i0.ɵɵelementContainerStart(0);
|
|
10586
|
+
i0.ɵɵelement(1, "mv-media-viewer", 11);
|
|
10587
|
+
i0.ɵɵelementContainerEnd();
|
|
10588
|
+
} if (rf & 2) {
|
|
10589
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10590
|
+
i0.ɵɵadvance(1);
|
|
10591
|
+
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);
|
|
10592
|
+
} }
|
|
10593
|
+
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10594
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
10595
|
+
i0.ɵɵelementStart(0, "div");
|
|
10596
|
+
i0.ɵɵelementStart(1, "h2", 5);
|
|
10597
|
+
i0.ɵɵtext(2, "Case file");
|
|
10598
|
+
i0.ɵɵelementEnd();
|
|
10599
|
+
i0.ɵɵelementStart(3, "div", 6);
|
|
10600
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
10601
|
+
i0.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
10602
|
+
i0.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
10603
|
+
i0.ɵɵelementEnd();
|
|
10604
|
+
i0.ɵɵelementEnd();
|
|
10605
|
+
i0.ɵɵelement(6, "div", 9);
|
|
10606
|
+
i0.ɵɵelementStart(7, "div", 10);
|
|
10607
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
10608
|
+
i0.ɵɵelementEnd();
|
|
10609
|
+
i0.ɵɵelementEnd();
|
|
10610
|
+
i0.ɵɵelementEnd();
|
|
10611
|
+
} if (rf & 2) {
|
|
10612
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
10613
|
+
i0.ɵɵadvance(5);
|
|
10614
|
+
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
10615
|
+
i0.ɵɵadvance(3);
|
|
10616
|
+
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10617
|
+
} }
|
|
10618
|
+
class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
10619
|
+
constructor() {
|
|
10620
|
+
super(...arguments);
|
|
10621
|
+
this.allowMoving = true;
|
|
10622
|
+
}
|
|
10623
|
+
}
|
|
10624
|
+
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10625
|
+
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) {
|
|
10626
|
+
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10627
|
+
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10628
|
+
} if (rf & 2) {
|
|
10629
|
+
i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
10630
|
+
i0.ɵɵadvance(1);
|
|
10631
|
+
i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10632
|
+
} }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
10633
|
+
const ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
|
|
10634
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
|
|
10635
|
+
type: Component,
|
|
10636
|
+
args: [{
|
|
10637
|
+
selector: 'ccd-case-file-view-field',
|
|
10638
|
+
templateUrl: './case-file-view-field.component.html',
|
|
10639
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10640
|
+
}]
|
|
10641
|
+
}], null, null); })();
|
|
10642
|
+
|
|
10401
10643
|
var AddCommentsErrorMessage;
|
|
10402
10644
|
(function (AddCommentsErrorMessage) {
|
|
10403
10645
|
AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
|
|
@@ -10708,7 +10950,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
10708
10950
|
i0.ɵɵadvance(1);
|
|
10709
10951
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
10710
10952
|
} }
|
|
10711
|
-
const _c0$
|
|
10953
|
+
const _c0$Q = function (a0) { return { "form-group-error": a0 }; };
|
|
10712
10954
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10713
10955
|
i0.ɵɵelementStart(0, "div", 8);
|
|
10714
10956
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -10727,7 +10969,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10727
10969
|
i0.ɵɵadvance(1);
|
|
10728
10970
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
10729
10971
|
i0.ɵɵadvance(1);
|
|
10730
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
10972
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
|
|
10731
10973
|
i0.ɵɵadvance(1);
|
|
10732
10974
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
10733
10975
|
i0.ɵɵadvance(1);
|
|
@@ -11136,7 +11378,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11136
11378
|
}]
|
|
11137
11379
|
}], null, null); })();
|
|
11138
11380
|
|
|
11139
|
-
const _c0$
|
|
11381
|
+
const _c0$P = ["writeComplexFieldComponent"];
|
|
11140
11382
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11141
11383
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11142
11384
|
i0.ɵɵtext(1);
|
|
@@ -11235,7 +11477,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11235
11477
|
}
|
|
11236
11478
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
11237
11479
|
WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11238
|
-
i0.ɵɵviewQuery(_c0$
|
|
11480
|
+
i0.ɵɵviewQuery(_c0$P, 1);
|
|
11239
11481
|
} if (rf & 2) {
|
|
11240
11482
|
let _t;
|
|
11241
11483
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11267,7 +11509,7 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
|
|
|
11267
11509
|
args: ['writeComplexFieldComponent', /* TODO: add static flag */ {}]
|
|
11268
11510
|
}] }); })();
|
|
11269
11511
|
|
|
11270
|
-
const _c0$
|
|
11512
|
+
const _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
11271
11513
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11272
11514
|
i0.ɵɵelementStart(0, "tbody");
|
|
11273
11515
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11280,9 +11522,9 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11280
11522
|
} if (rf & 2) {
|
|
11281
11523
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11282
11524
|
i0.ɵɵadvance(4);
|
|
11283
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11525
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$O, 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);
|
|
11284
11526
|
} }
|
|
11285
|
-
const _c1$
|
|
11527
|
+
const _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11286
11528
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
11287
11529
|
i0.ɵɵelementStart(0, "tr");
|
|
11288
11530
|
i0.ɵɵelementStart(1, "td");
|
|
@@ -11294,7 +11536,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
11294
11536
|
const i_r5 = ctx.index;
|
|
11295
11537
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
11296
11538
|
i0.ɵɵadvance(2);
|
|
11297
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
11539
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$k, 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));
|
|
11298
11540
|
} }
|
|
11299
11541
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
11300
11542
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -11408,7 +11650,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11408
11650
|
}]
|
|
11409
11651
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11410
11652
|
|
|
11411
|
-
const _c0$
|
|
11653
|
+
const _c0$N = ["collectionItem"];
|
|
11412
11654
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11413
11655
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11414
11656
|
i0.ɵɵtext(1);
|
|
@@ -11782,7 +12024,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11782
12024
|
}
|
|
11783
12025
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
11784
12026
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11785
|
-
i0.ɵɵviewQuery(_c0$
|
|
12027
|
+
i0.ɵɵviewQuery(_c0$N, 1);
|
|
11786
12028
|
} if (rf & 2) {
|
|
11787
12029
|
let _t;
|
|
11788
12030
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12102,7 +12344,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12102
12344
|
type: Injectable
|
|
12103
12345
|
}], null, null); })();
|
|
12104
12346
|
|
|
12105
|
-
const _c0$
|
|
12347
|
+
const _c0$M = ["fileInput"];
|
|
12106
12348
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
12107
12349
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12108
12350
|
i0.ɵɵtext(1);
|
|
@@ -12127,7 +12369,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
12127
12369
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
12128
12370
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
12129
12371
|
} }
|
|
12130
|
-
const _c1$
|
|
12372
|
+
const _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12131
12373
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12132
12374
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12133
12375
|
super();
|
|
@@ -12380,7 +12622,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12380
12622
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12381
12623
|
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)); };
|
|
12382
12624
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12383
|
-
i0.ɵɵviewQuery(_c0$
|
|
12625
|
+
i0.ɵɵviewQuery(_c0$M, 1);
|
|
12384
12626
|
} if (rf & 2) {
|
|
12385
12627
|
let _t;
|
|
12386
12628
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12416,7 +12658,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
12416
12658
|
i0.ɵɵelementEnd();
|
|
12417
12659
|
i0.ɵɵelementEnd();
|
|
12418
12660
|
} if (rf & 2) {
|
|
12419
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
12661
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
|
|
12420
12662
|
i0.ɵɵadvance(1);
|
|
12421
12663
|
i0.ɵɵproperty("for", ctx.id());
|
|
12422
12664
|
i0.ɵɵadvance(1);
|
|
@@ -12542,7 +12784,7 @@ function WriteDynamicListFieldComponent_option_9_Template(rf, ctx) { if (rf & 1)
|
|
|
12542
12784
|
i0.ɵɵadvance(1);
|
|
12543
12785
|
i0.ɵɵtextInterpolate(type_r5.label);
|
|
12544
12786
|
} }
|
|
12545
|
-
const _c0$
|
|
12787
|
+
const _c0$L = function (a0) { return { "form-group-error": a0 }; };
|
|
12546
12788
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
12547
12789
|
ngOnInit() {
|
|
12548
12790
|
/**
|
|
@@ -12584,7 +12826,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
12584
12826
|
i0.ɵɵelementEnd();
|
|
12585
12827
|
i0.ɵɵelementEnd();
|
|
12586
12828
|
} if (rf & 2) {
|
|
12587
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
12829
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12588
12830
|
i0.ɵɵadvance(1);
|
|
12589
12831
|
i0.ɵɵproperty("for", ctx.id());
|
|
12590
12832
|
i0.ɵɵadvance(1);
|
|
@@ -12705,7 +12947,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
12705
12947
|
i0.ɵɵadvance(1);
|
|
12706
12948
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
12707
12949
|
} }
|
|
12708
|
-
const _c0$
|
|
12950
|
+
const _c0$K = function (a0) { return { selected: a0 }; };
|
|
12709
12951
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
12710
12952
|
i0.ɵɵelementStart(0, "div", 10);
|
|
12711
12953
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -12716,7 +12958,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12716
12958
|
} if (rf & 2) {
|
|
12717
12959
|
const radioButton_r5 = ctx.$implicit;
|
|
12718
12960
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
12719
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
12961
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
12720
12962
|
i0.ɵɵadvance(1);
|
|
12721
12963
|
i0.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
12722
12964
|
i0.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -12725,7 +12967,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12725
12967
|
i0.ɵɵadvance(1);
|
|
12726
12968
|
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
12727
12969
|
} }
|
|
12728
|
-
const _c1$
|
|
12970
|
+
const _c1$i = function (a0) { return { "form-group-error": a0 }; };
|
|
12729
12971
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
12730
12972
|
ngOnInit() {
|
|
12731
12973
|
/**
|
|
@@ -12766,7 +13008,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
12766
13008
|
i0.ɵɵelementEnd();
|
|
12767
13009
|
i0.ɵɵelementEnd();
|
|
12768
13010
|
} if (rf & 2) {
|
|
12769
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
13011
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
12770
13012
|
i0.ɵɵadvance(3);
|
|
12771
13013
|
i0.ɵɵproperty("for", ctx.id());
|
|
12772
13014
|
i0.ɵɵadvance(1);
|
|
@@ -12850,8 +13092,8 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
12850
13092
|
i0.ɵɵadvance(1);
|
|
12851
13093
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
12852
13094
|
} }
|
|
12853
|
-
const _c0$
|
|
12854
|
-
const _c1$
|
|
13095
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
13096
|
+
const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
12855
13097
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
12856
13098
|
ngOnInit() {
|
|
12857
13099
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -12868,7 +13110,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
12868
13110
|
i0.ɵɵelement(5, "input", 5);
|
|
12869
13111
|
i0.ɵɵelementEnd();
|
|
12870
13112
|
} if (rf & 2) {
|
|
12871
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13113
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
12872
13114
|
i0.ɵɵadvance(1);
|
|
12873
13115
|
i0.ɵɵproperty("for", ctx.id());
|
|
12874
13116
|
i0.ɵɵadvance(1);
|
|
@@ -12878,7 +13120,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
12878
13120
|
i0.ɵɵadvance(1);
|
|
12879
13121
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
12880
13122
|
i0.ɵɵadvance(1);
|
|
12881
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
13123
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
12882
13124
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12883
13125
|
const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
12884
13126
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -12970,7 +13212,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
12970
13212
|
i0.ɵɵadvance(1);
|
|
12971
13213
|
i0.ɵɵtextInterpolate(type_r4.label);
|
|
12972
13214
|
} }
|
|
12973
|
-
const _c0$
|
|
13215
|
+
const _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
12974
13216
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
12975
13217
|
get listItems() {
|
|
12976
13218
|
if (this.caseField) {
|
|
@@ -13008,7 +13250,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13008
13250
|
i0.ɵɵelementEnd();
|
|
13009
13251
|
i0.ɵɵelementEnd();
|
|
13010
13252
|
} if (rf & 2) {
|
|
13011
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13253
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13012
13254
|
i0.ɵɵadvance(1);
|
|
13013
13255
|
i0.ɵɵproperty("for", ctx.id());
|
|
13014
13256
|
i0.ɵɵadvance(1);
|
|
@@ -13099,7 +13341,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
13099
13341
|
i0.ɵɵadvance(1);
|
|
13100
13342
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
13101
13343
|
} }
|
|
13102
|
-
const _c0$
|
|
13344
|
+
const _c0$H = function (a0) { return { selected: a0 }; };
|
|
13103
13345
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
13104
13346
|
i0.ɵɵelementStart(0, "div", 9);
|
|
13105
13347
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -13110,7 +13352,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13110
13352
|
} if (rf & 2) {
|
|
13111
13353
|
const radioButton_r4 = ctx.$implicit;
|
|
13112
13354
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13113
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
13355
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13114
13356
|
i0.ɵɵadvance(1);
|
|
13115
13357
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13116
13358
|
i0.ɵɵadvance(1);
|
|
@@ -13118,7 +13360,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13118
13360
|
i0.ɵɵadvance(1);
|
|
13119
13361
|
i0.ɵɵtextInterpolate(radioButton_r4.label);
|
|
13120
13362
|
} }
|
|
13121
|
-
const _c1$
|
|
13363
|
+
const _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
13122
13364
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13123
13365
|
ngOnInit() {
|
|
13124
13366
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -13142,7 +13384,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
13142
13384
|
i0.ɵɵelementEnd();
|
|
13143
13385
|
i0.ɵɵelementEnd();
|
|
13144
13386
|
} if (rf & 2) {
|
|
13145
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13387
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
13146
13388
|
i0.ɵɵadvance(3);
|
|
13147
13389
|
i0.ɵɵproperty("for", ctx.id());
|
|
13148
13390
|
i0.ɵɵadvance(1);
|
|
@@ -13208,7 +13450,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
13208
13450
|
}
|
|
13209
13451
|
}
|
|
13210
13452
|
}
|
|
13211
|
-
ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService
|
|
13453
|
+
ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
13212
13454
|
ReadJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadJudicialUserFieldComponent, selectors: [["ccd-read-judicial-user-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "text-16", 4, "ngIf"], [1, "text-16"]], template: function ReadJudicialUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13213
13455
|
i0.ɵɵtemplate(0, ReadJudicialUserFieldComponent_span_0_Template, 2, 2, "span", 0);
|
|
13214
13456
|
} if (rf & 2) {
|
|
@@ -13220,7 +13462,7 @@ ReadJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadJudici
|
|
|
13220
13462
|
selector: 'ccd-read-judicial-user-field',
|
|
13221
13463
|
templateUrl: './read-judicial-user-field.component.html'
|
|
13222
13464
|
}]
|
|
13223
|
-
}], function () { return [{ type: JurisdictionService
|
|
13465
|
+
}], function () { return [{ type: JurisdictionService }]; }, null); })();
|
|
13224
13466
|
|
|
13225
13467
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
13226
13468
|
i0.ɵɵelementStart(0, "span", 9);
|
|
@@ -13241,7 +13483,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13241
13483
|
i0.ɵɵadvance(1);
|
|
13242
13484
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13243
13485
|
} }
|
|
13244
|
-
const _c0$
|
|
13486
|
+
const _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13245
13487
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
13246
13488
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
13247
13489
|
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
@@ -13251,7 +13493,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
|
|
|
13251
13493
|
} if (rf & 2) {
|
|
13252
13494
|
const judicialUser_r5 = ctx.$implicit;
|
|
13253
13495
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13254
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
13496
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13255
13497
|
i0.ɵɵadvance(1);
|
|
13256
13498
|
i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13257
13499
|
} }
|
|
@@ -13297,7 +13539,7 @@ class WriteJudicialUserFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13297
13539
|
}
|
|
13298
13540
|
}
|
|
13299
13541
|
}
|
|
13300
|
-
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(JurisdictionService
|
|
13542
|
+
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
13301
13543
|
WriteJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", ""], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], [1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13302
13544
|
i0.ɵɵelementStart(0, "div", 0);
|
|
13303
13545
|
i0.ɵɵelementStart(1, "label", 1);
|
|
@@ -13333,7 +13575,7 @@ WriteJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteJudi
|
|
|
13333
13575
|
styleUrls: ['./write-judicial-user-field.component.scss'],
|
|
13334
13576
|
templateUrl: './write-judicial-user-field.component.html'
|
|
13335
13577
|
}]
|
|
13336
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: JurisdictionService
|
|
13578
|
+
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: JurisdictionService }]; }, null); })();
|
|
13337
13579
|
|
|
13338
13580
|
class LabelFieldComponent {
|
|
13339
13581
|
constructor() {
|
|
@@ -13559,7 +13801,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13559
13801
|
i0.ɵɵadvance(1);
|
|
13560
13802
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
13561
13803
|
} }
|
|
13562
|
-
const _c0$
|
|
13804
|
+
const _c0$F = function (a0) { return { "form-group-error": a0 }; };
|
|
13563
13805
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
13564
13806
|
ngOnInit() {
|
|
13565
13807
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13582,7 +13824,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
13582
13824
|
i0.ɵɵelementEnd();
|
|
13583
13825
|
i0.ɵɵelementEnd();
|
|
13584
13826
|
} if (rf & 2) {
|
|
13585
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
13827
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$F, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
13586
13828
|
i0.ɵɵadvance(1);
|
|
13587
13829
|
i0.ɵɵproperty("for", ctx.id());
|
|
13588
13830
|
i0.ɵɵadvance(1);
|
|
@@ -13699,7 +13941,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
13699
13941
|
i0.ɵɵadvance(1);
|
|
13700
13942
|
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
13701
13943
|
} }
|
|
13702
|
-
const _c0$
|
|
13944
|
+
const _c0$E = function (a0) { return { "error": a0 }; };
|
|
13703
13945
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
13704
13946
|
ngOnInit() {
|
|
13705
13947
|
this.checkboxes = new FormArray([]);
|
|
@@ -13754,7 +13996,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
13754
13996
|
i0.ɵɵelementEnd();
|
|
13755
13997
|
i0.ɵɵelementEnd();
|
|
13756
13998
|
} if (rf & 2) {
|
|
13757
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
13999
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$E, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
13758
14000
|
i0.ɵɵadvance(3);
|
|
13759
14001
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
13760
14002
|
i0.ɵɵadvance(1);
|
|
@@ -13823,8 +14065,8 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13823
14065
|
i0.ɵɵadvance(1);
|
|
13824
14066
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
13825
14067
|
} }
|
|
13826
|
-
const _c0$
|
|
13827
|
-
const _c1$
|
|
14068
|
+
const _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
14069
|
+
const _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13828
14070
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
13829
14071
|
ngOnInit() {
|
|
13830
14072
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13841,7 +14083,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
13841
14083
|
i0.ɵɵelement(5, "input", 5);
|
|
13842
14084
|
i0.ɵɵelementEnd();
|
|
13843
14085
|
} if (rf & 2) {
|
|
13844
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14086
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
13845
14087
|
i0.ɵɵadvance(1);
|
|
13846
14088
|
i0.ɵɵproperty("for", ctx.id());
|
|
13847
14089
|
i0.ɵɵadvance(1);
|
|
@@ -13851,7 +14093,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
13851
14093
|
i0.ɵɵadvance(1);
|
|
13852
14094
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
13853
14095
|
i0.ɵɵadvance(1);
|
|
13854
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14096
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
13855
14097
|
} }, directives: [i1.NgClass, i1.NgIf, i2.NumberValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
13856
14098
|
const ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
13857
14099
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -14091,7 +14333,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
|
|
|
14091
14333
|
i0.ɵɵelementEnd();
|
|
14092
14334
|
i0.ɵɵelementEnd();
|
|
14093
14335
|
} }
|
|
14094
|
-
const _c0$
|
|
14336
|
+
const _c0$C = function (a0) { return { "scroll-container ": a0 }; };
|
|
14095
14337
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
14096
14338
|
i0.ɵɵelementStart(0, "div", 26);
|
|
14097
14339
|
i0.ɵɵpipe(1, "async");
|
|
@@ -14105,7 +14347,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
|
|
|
14105
14347
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14106
14348
|
let tmp_0_0 = null;
|
|
14107
14349
|
let tmp_2_0 = null;
|
|
14108
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
14350
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$C, ((tmp_0_0 = i0.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
14109
14351
|
i0.ɵɵadvance(2);
|
|
14110
14352
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
14111
14353
|
i0.ɵɵadvance(2);
|
|
@@ -14504,8 +14746,8 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14504
14746
|
i0.ɵɵadvance(1);
|
|
14505
14747
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
|
|
14506
14748
|
} }
|
|
14507
|
-
const _c0$
|
|
14508
|
-
const _c1$
|
|
14749
|
+
const _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
14750
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14509
14751
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
14510
14752
|
ngOnInit() {
|
|
14511
14753
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14522,7 +14764,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
14522
14764
|
i0.ɵɵelement(5, "input", 5);
|
|
14523
14765
|
i0.ɵɵelementEnd();
|
|
14524
14766
|
} if (rf & 2) {
|
|
14525
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14767
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
14526
14768
|
i0.ɵɵadvance(1);
|
|
14527
14769
|
i0.ɵɵproperty("for", ctx.id());
|
|
14528
14770
|
i0.ɵɵadvance(1);
|
|
@@ -14532,7 +14774,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
14532
14774
|
i0.ɵɵadvance(1);
|
|
14533
14775
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
14534
14776
|
i0.ɵɵadvance(1);
|
|
14535
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14777
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
14536
14778
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14537
14779
|
const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
14538
14780
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -14592,8 +14834,8 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14592
14834
|
i0.ɵɵadvance(1);
|
|
14593
14835
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
14594
14836
|
} }
|
|
14595
|
-
const _c0$
|
|
14596
|
-
const _c1$
|
|
14837
|
+
const _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
14838
|
+
const _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
14597
14839
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
14598
14840
|
constructor(browserService) {
|
|
14599
14841
|
super();
|
|
@@ -14623,7 +14865,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
14623
14865
|
i0.ɵɵelementEnd();
|
|
14624
14866
|
i0.ɵɵelementEnd();
|
|
14625
14867
|
} if (rf & 2) {
|
|
14626
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14868
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$A, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
14627
14869
|
i0.ɵɵadvance(1);
|
|
14628
14870
|
i0.ɵɵproperty("for", ctx.id());
|
|
14629
14871
|
i0.ɵɵadvance(1);
|
|
@@ -14633,7 +14875,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
14633
14875
|
i0.ɵɵadvance(1);
|
|
14634
14876
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
14635
14877
|
i0.ɵɵadvance(1);
|
|
14636
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14878
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
14637
14879
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14638
14880
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
14639
14881
|
type: Component,
|
|
@@ -14693,8 +14935,8 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14693
14935
|
i0.ɵɵadvance(1);
|
|
14694
14936
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
|
|
14695
14937
|
} }
|
|
14696
|
-
const _c0$
|
|
14697
|
-
const _c1$
|
|
14938
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
14939
|
+
const _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14698
14940
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
14699
14941
|
ngOnInit() {
|
|
14700
14942
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14716,7 +14958,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
14716
14958
|
i0.ɵɵelementEnd();
|
|
14717
14959
|
i0.ɵɵelementEnd();
|
|
14718
14960
|
} if (rf & 2) {
|
|
14719
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14961
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
14720
14962
|
i0.ɵɵadvance(1);
|
|
14721
14963
|
i0.ɵɵproperty("for", ctx.id());
|
|
14722
14964
|
i0.ɵɵadvance(1);
|
|
@@ -14726,7 +14968,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
14726
14968
|
i0.ɵɵadvance(1);
|
|
14727
14969
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
14728
14970
|
i0.ɵɵadvance(1);
|
|
14729
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14971
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
14730
14972
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14731
14973
|
const ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
14732
14974
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -14882,7 +15124,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
14882
15124
|
i0.ɵɵadvance(1);
|
|
14883
15125
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
|
|
14884
15126
|
} }
|
|
14885
|
-
const _c0$
|
|
15127
|
+
const _c0$y = function (a0) { return { selected: a0 }; };
|
|
14886
15128
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
14887
15129
|
i0.ɵɵelementStart(0, "div", 10);
|
|
14888
15130
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -14893,7 +15135,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14893
15135
|
} if (rf & 2) {
|
|
14894
15136
|
const value_r4 = ctx.$implicit;
|
|
14895
15137
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
14896
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15138
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, ctx_r3.yesNoControl.value === value_r4));
|
|
14897
15139
|
i0.ɵɵadvance(1);
|
|
14898
15140
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
14899
15141
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -14902,7 +15144,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14902
15144
|
i0.ɵɵadvance(1);
|
|
14903
15145
|
i0.ɵɵtextInterpolate(value_r4);
|
|
14904
15146
|
} }
|
|
14905
|
-
const _c1$
|
|
15147
|
+
const _c1$b = function (a0) { return { "form-group-error": a0 }; };
|
|
14906
15148
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
14907
15149
|
constructor(yesNoService) {
|
|
14908
15150
|
super();
|
|
@@ -14928,7 +15170,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
14928
15170
|
i0.ɵɵelementEnd();
|
|
14929
15171
|
i0.ɵɵelementEnd();
|
|
14930
15172
|
} if (rf & 2) {
|
|
14931
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
15173
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
14932
15174
|
i0.ɵɵadvance(3);
|
|
14933
15175
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14934
15176
|
i0.ɵɵadvance(1);
|
|
@@ -14949,6 +15191,11 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
14949
15191
|
}], function () { return [{ type: YesNoService }]; }, null); })();
|
|
14950
15192
|
|
|
14951
15193
|
class PaletteService {
|
|
15194
|
+
constructor() {
|
|
15195
|
+
this.componentLauncherRegistry = {
|
|
15196
|
+
CaseFileView: [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent]
|
|
15197
|
+
};
|
|
15198
|
+
}
|
|
14952
15199
|
getFieldComponentClass(caseField, write) {
|
|
14953
15200
|
switch (caseField.field_type.type) {
|
|
14954
15201
|
case 'Text':
|
|
@@ -15013,12 +15260,23 @@ class PaletteService {
|
|
|
15013
15260
|
return CaseHistoryViewerFieldComponent;
|
|
15014
15261
|
case 'WaysToPay':
|
|
15015
15262
|
return WaysToPayFieldComponent;
|
|
15263
|
+
case 'ComponentLauncher':
|
|
15264
|
+
return this.getComponentLauncherComponent(caseField, write);
|
|
15016
15265
|
case 'FlagLauncher':
|
|
15017
15266
|
return write ? WriteCaseFlagFieldComponent : ReadCaseFlagFieldComponent;
|
|
15018
15267
|
default:
|
|
15019
15268
|
return UnsupportedFieldComponent;
|
|
15020
15269
|
}
|
|
15021
15270
|
}
|
|
15271
|
+
getComponentLauncherComponent(caseField, write) {
|
|
15272
|
+
// Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
|
|
15273
|
+
// component from the componentLauncherRegistry
|
|
15274
|
+
const argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
|
|
15275
|
+
if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
|
|
15276
|
+
return this.componentLauncherRegistry[argumentValue][write ? 0 : 1];
|
|
15277
|
+
}
|
|
15278
|
+
return UnsupportedFieldComponent;
|
|
15279
|
+
}
|
|
15022
15280
|
}
|
|
15023
15281
|
PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
|
|
15024
15282
|
PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory: PaletteService.ɵfac });
|
|
@@ -15026,7 +15284,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
15026
15284
|
type: Injectable
|
|
15027
15285
|
}], null, null); })();
|
|
15028
15286
|
|
|
15029
|
-
const _c0$
|
|
15287
|
+
const _c0$x = ["fieldContainer"];
|
|
15030
15288
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
15031
15289
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
15032
15290
|
constructor(resolver, paletteService) {
|
|
@@ -15070,7 +15328,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
15070
15328
|
}
|
|
15071
15329
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15072
15330
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15073
|
-
i0.ɵɵviewQuery(_c0$
|
|
15331
|
+
i0.ɵɵviewQuery(_c0$x, 1, ViewContainerRef);
|
|
15074
15332
|
} if (rf & 2) {
|
|
15075
15333
|
let _t;
|
|
15076
15334
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15104,7 +15362,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
15104
15362
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
15105
15363
|
}] }); })();
|
|
15106
15364
|
|
|
15107
|
-
const _c0$
|
|
15365
|
+
const _c0$w = ["fieldContainer"];
|
|
15108
15366
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
15109
15367
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
15110
15368
|
constructor(resolver, paletteService) {
|
|
@@ -15148,7 +15406,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
15148
15406
|
}
|
|
15149
15407
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15150
15408
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15151
|
-
i0.ɵɵviewQuery(_c0$
|
|
15409
|
+
i0.ɵɵviewQuery(_c0$w, 3, ViewContainerRef);
|
|
15152
15410
|
} if (rf & 2) {
|
|
15153
15411
|
let _t;
|
|
15154
15412
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15197,7 +15455,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15197
15455
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
15198
15456
|
i0.ɵɵprojection(0);
|
|
15199
15457
|
} }
|
|
15200
|
-
const _c0$
|
|
15458
|
+
const _c0$v = ["*"];
|
|
15201
15459
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
15202
15460
|
constructor() {
|
|
15203
15461
|
super(...arguments);
|
|
@@ -15232,7 +15490,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
15232
15490
|
}
|
|
15233
15491
|
}
|
|
15234
15492
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
15235
|
-
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
15493
|
+
FieldReadLabelComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, 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) {
|
|
15236
15494
|
i0.ɵɵprojectionDef();
|
|
15237
15495
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15238
15496
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 5, 2, "dl", 1);
|
|
@@ -15261,27 +15519,787 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15261
15519
|
type: Input
|
|
15262
15520
|
}] }); })();
|
|
15263
15521
|
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
|
|
15267
|
-
|
|
15268
|
-
|
|
15269
|
-
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
(
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
i0.ɵɵ
|
|
15522
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15523
|
+
i0.ɵɵelementContainer(0);
|
|
15524
|
+
} }
|
|
15525
|
+
const _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
15526
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15527
|
+
i0.ɵɵelementContainerStart(0);
|
|
15528
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15529
|
+
i0.ɵɵelementContainerEnd();
|
|
15530
|
+
} if (rf & 2) {
|
|
15531
|
+
const cat_r3 = ctx.$implicit;
|
|
15532
|
+
i0.ɵɵnextContext();
|
|
15533
|
+
const _r1 = i0.ɵɵreference(13);
|
|
15534
|
+
i0.ɵɵadvance(1);
|
|
15535
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$u, cat_r3));
|
|
15536
|
+
} }
|
|
15537
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15538
|
+
i0.ɵɵelementContainer(0);
|
|
15539
|
+
} }
|
|
15540
|
+
const _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
15541
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15542
|
+
i0.ɵɵelementContainerStart(0);
|
|
15543
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15544
|
+
i0.ɵɵelementContainerEnd();
|
|
15545
|
+
} if (rf & 2) {
|
|
15546
|
+
const subcat_r8 = ctx.$implicit;
|
|
15547
|
+
const level_r6 = i0.ɵɵnextContext().level;
|
|
15548
|
+
i0.ɵɵnextContext();
|
|
15549
|
+
const _r1 = i0.ɵɵreference(13);
|
|
15550
|
+
i0.ɵɵadvance(1);
|
|
15551
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
|
|
15552
|
+
} }
|
|
15553
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
15554
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
15555
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
15556
|
+
i0.ɵɵelementStart(1, "input", 10);
|
|
15557
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.handleChange($event); });
|
|
15558
|
+
i0.ɵɵelementEnd();
|
|
15559
|
+
i0.ɵɵelementStart(2, "label", 11);
|
|
15560
|
+
i0.ɵɵelement(3, "img", 12);
|
|
15561
|
+
i0.ɵɵtext(4);
|
|
15562
|
+
i0.ɵɵelementEnd();
|
|
15563
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
|
|
15564
|
+
i0.ɵɵelementEnd();
|
|
15565
|
+
} if (rf & 2) {
|
|
15566
|
+
const cat_r5 = ctx.cat;
|
|
15567
|
+
const level_r6 = ctx.level;
|
|
15568
|
+
i0.ɵɵadvance(1);
|
|
15569
|
+
i0.ɵɵpropertyInterpolate1("name", "level-", level_r6, "");
|
|
15570
|
+
i0.ɵɵproperty("id", cat_r5.category_id);
|
|
15571
|
+
i0.ɵɵadvance(1);
|
|
15572
|
+
i0.ɵɵproperty("for", cat_r5.category_id);
|
|
15573
|
+
i0.ɵɵadvance(2);
|
|
15574
|
+
i0.ɵɵtextInterpolate1(" ", cat_r5.category_name, " ");
|
|
15575
|
+
i0.ɵɵadvance(1);
|
|
15576
|
+
i0.ɵɵproperty("ngForOf", cat_r5.sub_categories);
|
|
15577
|
+
} }
|
|
15578
|
+
class CaseFileViewFolderSelectorComponent {
|
|
15579
|
+
constructor(dialogRef, data) {
|
|
15580
|
+
this.dialogRef = dialogRef;
|
|
15581
|
+
this.data = data;
|
|
15582
|
+
this.currentCategories = [];
|
|
15583
|
+
this.selected = '';
|
|
15584
|
+
this.currentCategories = [...this.data.categories];
|
|
15585
|
+
}
|
|
15586
|
+
ngAfterViewInit() {
|
|
15587
|
+
const path = this.findPath();
|
|
15588
|
+
path.forEach(p => document.getElementById(p).checked = true);
|
|
15589
|
+
}
|
|
15590
|
+
handleChange(evt) {
|
|
15591
|
+
if (evt.target.checked) {
|
|
15592
|
+
this.select(evt.target.id);
|
|
15593
|
+
// get level of this checkbox so we can clear all lower levels
|
|
15594
|
+
let level = parseInt(evt.target.name.split('-')[1], 10) + 1;
|
|
15595
|
+
let nodes = document.getElementsByName(`level-${level}`);
|
|
15596
|
+
while (nodes.length > 0) {
|
|
15597
|
+
nodes.forEach((node) => node.checked = false);
|
|
15598
|
+
level += 1;
|
|
15599
|
+
nodes = document.getElementsByName(`level-${level}`);
|
|
15600
|
+
}
|
|
15601
|
+
}
|
|
15602
|
+
}
|
|
15603
|
+
select(categoryId) {
|
|
15604
|
+
this.selected = categoryId;
|
|
15605
|
+
}
|
|
15606
|
+
cancel() {
|
|
15607
|
+
this.dialogRef.close();
|
|
15608
|
+
}
|
|
15609
|
+
save() {
|
|
15610
|
+
this.dialogRef.close(this.selected.length > 0 ? this.selected : null);
|
|
15611
|
+
}
|
|
15612
|
+
findPath() {
|
|
15613
|
+
for (const c of this.data.categories) {
|
|
15614
|
+
const r = this.containsDocument(c, this.data.document);
|
|
15615
|
+
if (r) {
|
|
15616
|
+
return r;
|
|
15617
|
+
}
|
|
15618
|
+
}
|
|
15619
|
+
}
|
|
15620
|
+
containsDocument(cat, document) {
|
|
15621
|
+
if (cat.documents.findIndex(doc => doc.document_binary_url === document.document_binary_url) > -1) {
|
|
15622
|
+
return [cat.category_id];
|
|
15623
|
+
}
|
|
15624
|
+
for (const c of cat.sub_categories) {
|
|
15625
|
+
const r = this.containsDocument(c, document);
|
|
15626
|
+
if (r) {
|
|
15627
|
+
return [cat.category_id, ...r];
|
|
15628
|
+
}
|
|
15629
|
+
}
|
|
15630
|
+
return null;
|
|
15631
|
+
}
|
|
15632
|
+
}
|
|
15633
|
+
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
15634
|
+
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"], [1, "close", 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) {
|
|
15635
|
+
i0.ɵɵelementStart(0, "h2", 0);
|
|
15636
|
+
i0.ɵɵtext(1, "Move File");
|
|
15637
|
+
i0.ɵɵelementEnd();
|
|
15638
|
+
i0.ɵɵelementStart(2, "p");
|
|
15639
|
+
i0.ɵɵtext(3);
|
|
15640
|
+
i0.ɵɵelementEnd();
|
|
15641
|
+
i0.ɵɵelementStart(4, "div", 1);
|
|
15642
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
|
|
15643
|
+
i0.ɵɵelementEnd();
|
|
15644
|
+
i0.ɵɵelementStart(6, "div", 3);
|
|
15645
|
+
i0.ɵɵelementStart(7, "button", 4);
|
|
15646
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
15647
|
+
i0.ɵɵtext(8, "Save");
|
|
15648
|
+
i0.ɵɵelementEnd();
|
|
15649
|
+
i0.ɵɵelementStart(9, "a", 5);
|
|
15650
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
|
|
15651
|
+
i0.ɵɵtext(10, "Cancel");
|
|
15652
|
+
i0.ɵɵelementEnd();
|
|
15653
|
+
i0.ɵɵelementEnd();
|
|
15654
|
+
i0.ɵɵelementStart(11, "div", 6);
|
|
15655
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
15656
|
+
i0.ɵɵelementEnd();
|
|
15657
|
+
i0.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
15658
|
+
} if (rf & 2) {
|
|
15659
|
+
i0.ɵɵadvance(3);
|
|
15660
|
+
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
15661
|
+
i0.ɵɵadvance(2);
|
|
15662
|
+
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
15663
|
+
} }, directives: [i1.NgForOf, i1.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
|
|
15664
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
15665
|
+
type: Component,
|
|
15666
|
+
args: [{
|
|
15667
|
+
selector: 'xui-case-file-view-folder-selector',
|
|
15668
|
+
templateUrl: './case-file-view-folder-selector.component.html',
|
|
15669
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
15670
|
+
}]
|
|
15671
|
+
}], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
15672
|
+
type: Inject,
|
|
15673
|
+
args: [MAT_DIALOG_DATA]
|
|
15674
|
+
}] }]; }, null); })();
|
|
15675
|
+
|
|
15676
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15677
|
+
i0.ɵɵelementContainerStart(0);
|
|
15678
|
+
i0.ɵɵelementStart(1, "div", 6);
|
|
15679
|
+
i0.ɵɵtext(2);
|
|
15680
|
+
i0.ɵɵelementEnd();
|
|
15681
|
+
i0.ɵɵelementContainerEnd();
|
|
15682
|
+
} if (rf & 2) {
|
|
15683
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
15684
|
+
i0.ɵɵadvance(2);
|
|
15685
|
+
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
15686
|
+
} }
|
|
15687
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
15688
|
+
i0.ɵɵelement(0, "img", 10);
|
|
15689
|
+
} if (rf & 2) {
|
|
15690
|
+
const item_r4 = i0.ɵɵnextContext().$implicit;
|
|
15691
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
15692
|
+
i0.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
15693
|
+
i0.ɵɵproperty("src", item_r4.iconSrc, i0.ɵɵsanitizeUrl);
|
|
15694
|
+
} }
|
|
15695
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
15696
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
15697
|
+
i0.ɵɵelementContainerStart(0);
|
|
15698
|
+
i0.ɵɵelementStart(1, "div", 7);
|
|
15699
|
+
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r8); const item_r4 = ctx.$implicit; const ctx_r7 = i0.ɵɵnextContext(2); item_r4.actionFn(); return ctx_r7.closeOverlay(); });
|
|
15700
|
+
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
15701
|
+
i0.ɵɵelementStart(3, "div", 9);
|
|
15702
|
+
i0.ɵɵtext(4);
|
|
15703
|
+
i0.ɵɵelementEnd();
|
|
15704
|
+
i0.ɵɵelementEnd();
|
|
15705
|
+
i0.ɵɵelementContainerEnd();
|
|
15706
|
+
} if (rf & 2) {
|
|
15707
|
+
const item_r4 = ctx.$implicit;
|
|
15708
|
+
i0.ɵɵadvance(2);
|
|
15709
|
+
i0.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
15710
|
+
i0.ɵɵadvance(2);
|
|
15711
|
+
i0.ɵɵtextInterpolate(item_r4.actionText);
|
|
15712
|
+
} }
|
|
15713
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
15714
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
15715
|
+
i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
15716
|
+
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
15717
|
+
i0.ɵɵelementEnd();
|
|
15718
|
+
} if (rf & 2) {
|
|
15719
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15720
|
+
i0.ɵɵadvance(1);
|
|
15721
|
+
i0.ɵɵproperty("ngIf", ctx_r1.title);
|
|
15722
|
+
i0.ɵɵadvance(1);
|
|
15723
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
15724
|
+
} }
|
|
15725
|
+
const _c0$t = [[["", "trigger", ""]]];
|
|
15726
|
+
const _c1$9 = ["[trigger]"];
|
|
15727
|
+
class CaseFileViewOverlayMenuComponent {
|
|
15728
|
+
constructor() {
|
|
15729
|
+
this.title = '';
|
|
15730
|
+
this.isOpen = false;
|
|
15731
|
+
this.isOpenChange = new EventEmitter();
|
|
15732
|
+
}
|
|
15733
|
+
closeOverlay() {
|
|
15734
|
+
const isOpen = false;
|
|
15735
|
+
this.isOpen = isOpen;
|
|
15736
|
+
this.isOpenChange.emit(isOpen);
|
|
15737
|
+
}
|
|
15738
|
+
}
|
|
15739
|
+
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
15740
|
+
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$9, 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) {
|
|
15741
|
+
i0.ɵɵprojectionDef(_c0$t);
|
|
15742
|
+
i0.ɵɵelementStart(0, "div");
|
|
15743
|
+
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
15744
|
+
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
15745
|
+
i0.ɵɵprojection(3);
|
|
15746
|
+
i0.ɵɵelementEnd();
|
|
15747
|
+
i0.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
15748
|
+
i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
15749
|
+
i0.ɵɵelementEnd();
|
|
15750
|
+
} if (rf & 2) {
|
|
15751
|
+
const _r0 = i0.ɵɵreference(2);
|
|
15752
|
+
i0.ɵɵadvance(4);
|
|
15753
|
+
i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
15754
|
+
} }, directives: [i1$4.CdkOverlayOrigin, i1$4.CdkConnectedOverlay, i1.NgIf, i1.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
15755
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
15756
|
+
type: Component,
|
|
15757
|
+
args: [{
|
|
15758
|
+
selector: 'ccd-case-file-view-overlay-menu',
|
|
15759
|
+
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
15760
|
+
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
15761
|
+
}]
|
|
15762
|
+
}], null, { title: [{
|
|
15763
|
+
type: Input
|
|
15764
|
+
}], menuItems: [{
|
|
15765
|
+
type: Input
|
|
15766
|
+
}], isOpen: [{
|
|
15767
|
+
type: Input
|
|
15768
|
+
}], isOpenChange: [{
|
|
15769
|
+
type: Output
|
|
15770
|
+
}] }); })();
|
|
15771
|
+
|
|
15772
|
+
class CaseFileViewFolderDocumentActionsComponent {
|
|
15773
|
+
constructor() {
|
|
15774
|
+
this.isOpen = false;
|
|
15775
|
+
this.changeFolderAction = new EventEmitter();
|
|
15776
|
+
this.openInANewTabAction = new EventEmitter();
|
|
15777
|
+
this.downloadAction = new EventEmitter();
|
|
15778
|
+
this.printAction = new EventEmitter();
|
|
15779
|
+
this.overlayMenuItems = [
|
|
15780
|
+
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: () => this.openInANewTabAction.emit() },
|
|
15781
|
+
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: () => this.downloadAction.emit() },
|
|
15782
|
+
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: () => this.printAction.emit() },
|
|
15783
|
+
];
|
|
15784
|
+
}
|
|
15785
|
+
ngOnInit() {
|
|
15786
|
+
if (this.allowMoving) {
|
|
15787
|
+
this.overlayMenuItems.unshift({ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: () => this.changeFolderAction.emit() });
|
|
15788
|
+
}
|
|
15789
|
+
}
|
|
15790
|
+
}
|
|
15791
|
+
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
15792
|
+
CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], inputs: { allowMoving: "allowMoving" }, outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15793
|
+
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
15794
|
+
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
15795
|
+
i0.ɵɵelementContainerStart(1, 1);
|
|
15796
|
+
i0.ɵɵelement(2, "img", 2);
|
|
15797
|
+
i0.ɵɵelementContainerEnd();
|
|
15798
|
+
i0.ɵɵelementEnd();
|
|
15799
|
+
} if (rf & 2) {
|
|
15800
|
+
i0.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
15801
|
+
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-4px}"] });
|
|
15802
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
15803
|
+
type: Component,
|
|
15804
|
+
args: [{
|
|
15805
|
+
selector: 'ccd-case-file-view-folder-document-actions',
|
|
15806
|
+
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
15807
|
+
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
15808
|
+
}]
|
|
15809
|
+
}], function () { return []; }, { allowMoving: [{
|
|
15810
|
+
type: Input
|
|
15811
|
+
}], changeFolderAction: [{
|
|
15812
|
+
type: Output
|
|
15813
|
+
}], openInANewTabAction: [{
|
|
15814
|
+
type: Output
|
|
15815
|
+
}], downloadAction: [{
|
|
15816
|
+
type: Output
|
|
15817
|
+
}], printAction: [{
|
|
15818
|
+
type: Output
|
|
15819
|
+
}] }); })();
|
|
15820
|
+
|
|
15821
|
+
class CaseFileViewFolderSortComponent {
|
|
15822
|
+
constructor() {
|
|
15823
|
+
this.isOpen = false;
|
|
15824
|
+
this.sortAscending = new EventEmitter();
|
|
15825
|
+
this.sortDescending = new EventEmitter();
|
|
15826
|
+
this.overlayMenuItems = [
|
|
15827
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
|
|
15828
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
|
|
15829
|
+
];
|
|
15830
|
+
}
|
|
15831
|
+
}
|
|
15832
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
15833
|
+
CaseFileViewFolderSortComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 3, vars: 3, consts: [[3, "title", "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button-icon"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15834
|
+
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
15835
|
+
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
15836
|
+
i0.ɵɵelementContainerStart(1, 1);
|
|
15837
|
+
i0.ɵɵelement(2, "img", 2);
|
|
15838
|
+
i0.ɵɵelementContainerEnd();
|
|
15839
|
+
i0.ɵɵelementEnd();
|
|
15840
|
+
} if (rf & 2) {
|
|
15841
|
+
i0.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
15842
|
+
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
|
|
15843
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
15844
|
+
type: Component,
|
|
15845
|
+
args: [{
|
|
15846
|
+
selector: 'ccd-case-file-view-folder-sort',
|
|
15847
|
+
templateUrl: './case-file-view-folder-sort.component.html',
|
|
15848
|
+
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
15849
|
+
}]
|
|
15850
|
+
}], function () { return []; }, { sortAscending: [{
|
|
15851
|
+
type: Output
|
|
15852
|
+
}], sortDescending: [{
|
|
15853
|
+
type: Output
|
|
15854
|
+
}] }); })();
|
|
15855
|
+
|
|
15856
|
+
class CaseFileViewCategory {
|
|
15857
|
+
}
|
|
15858
|
+
|
|
15859
|
+
class CaseFileViewDocument {
|
|
15860
|
+
}
|
|
15861
|
+
|
|
15862
|
+
/**
|
|
15863
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
15864
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
15865
|
+
*/
|
|
15866
|
+
class CategoriesAndDocuments {
|
|
15867
|
+
}
|
|
15868
|
+
|
|
15869
|
+
var DocumentTreeNodeType;
|
|
15870
|
+
(function (DocumentTreeNodeType) {
|
|
15871
|
+
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
15872
|
+
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
15873
|
+
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
15874
|
+
|
|
15875
|
+
class DocumentTreeNode {
|
|
15876
|
+
get childDocumentCount() {
|
|
15877
|
+
const countChildren = (childNodes) => {
|
|
15878
|
+
let count = 0;
|
|
15879
|
+
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
15880
|
+
const documents = childNodes.filter(item => item.type === 'document');
|
|
15881
|
+
count += documents.length;
|
|
15882
|
+
childNodes.forEach((children) => {
|
|
15883
|
+
count += countChildren(children.children);
|
|
15884
|
+
});
|
|
15885
|
+
}
|
|
15886
|
+
return count;
|
|
15887
|
+
};
|
|
15888
|
+
return countChildren(this.children);
|
|
15889
|
+
}
|
|
15890
|
+
sortChildrenAscending() {
|
|
15891
|
+
var _a, _b;
|
|
15892
|
+
const sortAscending = () => {
|
|
15893
|
+
return (a, b) => {
|
|
15894
|
+
const nameA = a.name.toUpperCase();
|
|
15895
|
+
const nameB = b.name.toUpperCase();
|
|
15896
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
15897
|
+
return 0;
|
|
15898
|
+
}
|
|
15899
|
+
if (nameA < nameB) {
|
|
15900
|
+
return -1;
|
|
15901
|
+
}
|
|
15902
|
+
if (nameA > nameB) {
|
|
15903
|
+
return 1;
|
|
15904
|
+
}
|
|
15905
|
+
};
|
|
15906
|
+
};
|
|
15907
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
15908
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
15909
|
+
childNodes.sortChildrenAscending();
|
|
15910
|
+
});
|
|
15911
|
+
}
|
|
15912
|
+
sortChildrenDescending() {
|
|
15913
|
+
var _a, _b;
|
|
15914
|
+
const sortDescending = () => {
|
|
15915
|
+
return (a, b) => {
|
|
15916
|
+
const nameA = a.name.toUpperCase();
|
|
15917
|
+
const nameB = b.name.toUpperCase();
|
|
15918
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
15919
|
+
return 0;
|
|
15920
|
+
}
|
|
15921
|
+
if (nameA > nameB) {
|
|
15922
|
+
return -1;
|
|
15923
|
+
}
|
|
15924
|
+
if (nameA < nameB) {
|
|
15925
|
+
return 1;
|
|
15926
|
+
}
|
|
15927
|
+
};
|
|
15928
|
+
};
|
|
15929
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
15930
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
15931
|
+
childNodes.sortChildrenDescending();
|
|
15932
|
+
});
|
|
15933
|
+
}
|
|
15934
|
+
get flattenedAll() {
|
|
15935
|
+
var _a;
|
|
15936
|
+
const flattenChildren = (nodeChild) => {
|
|
15937
|
+
var _a;
|
|
15938
|
+
const flattenedNodes = [];
|
|
15939
|
+
flattenedNodes.push(nodeChild);
|
|
15940
|
+
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
15941
|
+
nodeChild.children.forEach((child) => {
|
|
15942
|
+
flattenedNodes.push(...flattenChildren(child));
|
|
15943
|
+
});
|
|
15944
|
+
}
|
|
15945
|
+
return flattenedNodes;
|
|
15946
|
+
};
|
|
15947
|
+
return [
|
|
15948
|
+
this,
|
|
15949
|
+
...(_a = this.children) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
15950
|
+
return flattenChildren(item);
|
|
15951
|
+
}).flat()
|
|
15952
|
+
];
|
|
15953
|
+
}
|
|
15954
|
+
}
|
|
15955
|
+
__decorate([
|
|
15956
|
+
Type(() => DocumentTreeNode),
|
|
15957
|
+
__metadata("design:type", Array)
|
|
15958
|
+
], DocumentTreeNode.prototype, "children", void 0);
|
|
15959
|
+
__decorate([
|
|
15960
|
+
Expose(),
|
|
15961
|
+
__metadata("design:type", Object),
|
|
15962
|
+
__metadata("design:paramtypes", [])
|
|
15963
|
+
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
15964
|
+
|
|
15965
|
+
function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
15966
|
+
i0.ɵɵelementStart(0, "div");
|
|
15967
|
+
i0.ɵɵtext(1, " No results found ");
|
|
15968
|
+
i0.ɵɵelementEnd();
|
|
15969
|
+
} }
|
|
15970
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) { if (rf & 1) {
|
|
15971
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
15972
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
|
|
15973
|
+
i0.ɵɵelementStart(1, "button", 13);
|
|
15974
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r5 = i0.ɵɵnextContext(2); ctx_r5.selectedNodeItem = node_r4; return ctx_r5.clickedDocument.emit(node_r4); });
|
|
15975
|
+
i0.ɵɵelementStart(2, "div", 14);
|
|
15976
|
+
i0.ɵɵelement(3, "img", 15);
|
|
15977
|
+
i0.ɵɵelementEnd();
|
|
15978
|
+
i0.ɵɵelementStart(4, "span", 16);
|
|
15979
|
+
i0.ɵɵtext(5);
|
|
15980
|
+
i0.ɵɵelementEnd();
|
|
15981
|
+
i0.ɵɵelementStart(6, "div", 17);
|
|
15982
|
+
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
|
|
15983
|
+
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
15984
|
+
i0.ɵɵelementEnd();
|
|
15985
|
+
i0.ɵɵelementEnd();
|
|
15986
|
+
i0.ɵɵelementEnd();
|
|
15987
|
+
i0.ɵɵelementEnd();
|
|
15988
|
+
} if (rf & 2) {
|
|
15989
|
+
const node_r4 = ctx.$implicit;
|
|
15990
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
15991
|
+
i0.ɵɵadvance(1);
|
|
15992
|
+
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
15993
|
+
i0.ɵɵadvance(4);
|
|
15994
|
+
i0.ɵɵtextInterpolate(node_r4.name);
|
|
15995
|
+
i0.ɵɵadvance(2);
|
|
15996
|
+
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
15997
|
+
} }
|
|
15998
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
15999
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
|
|
16000
|
+
i0.ɵɵelementStart(1, "button", 20);
|
|
16001
|
+
i0.ɵɵelementStart(2, "div", 21);
|
|
16002
|
+
i0.ɵɵelement(3, "img", 22);
|
|
16003
|
+
i0.ɵɵelementStart(4, "span", 23);
|
|
16004
|
+
i0.ɵɵtext(5);
|
|
16005
|
+
i0.ɵɵelementEnd();
|
|
16006
|
+
i0.ɵɵelementEnd();
|
|
16007
|
+
i0.ɵɵelementStart(6, "span", 24);
|
|
16008
|
+
i0.ɵɵtext(7);
|
|
16009
|
+
i0.ɵɵelementEnd();
|
|
16010
|
+
i0.ɵɵelementEnd();
|
|
16011
|
+
i0.ɵɵelementStart(8, "div");
|
|
16012
|
+
i0.ɵɵelementContainer(9, 25);
|
|
16013
|
+
i0.ɵɵelementEnd();
|
|
16014
|
+
i0.ɵɵelementEnd();
|
|
16015
|
+
} if (rf & 2) {
|
|
16016
|
+
const node_r11 = ctx.$implicit;
|
|
16017
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
16018
|
+
i0.ɵɵadvance(2);
|
|
16019
|
+
i0.ɵɵattribute("aria-label", "toggle " + node_r11.name);
|
|
16020
|
+
i0.ɵɵadvance(1);
|
|
16021
|
+
i0.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r11) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0.ɵɵsanitizeUrl);
|
|
16022
|
+
i0.ɵɵadvance(2);
|
|
16023
|
+
i0.ɵɵtextInterpolate(node_r11.childDocumentCount);
|
|
16024
|
+
i0.ɵɵadvance(2);
|
|
16025
|
+
i0.ɵɵtextInterpolate(node_r11.name);
|
|
16026
|
+
i0.ɵɵadvance(1);
|
|
16027
|
+
i0.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r11));
|
|
16028
|
+
} }
|
|
16029
|
+
function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16030
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
16031
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
16032
|
+
i0.ɵɵelementStart(2, "div");
|
|
16033
|
+
i0.ɵɵelementStart(3, "cdk-tree", 9);
|
|
16034
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
|
|
16035
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
16036
|
+
i0.ɵɵelementEnd();
|
|
16037
|
+
i0.ɵɵelementEnd();
|
|
16038
|
+
i0.ɵɵelementEnd();
|
|
16039
|
+
} if (rf & 2) {
|
|
16040
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16041
|
+
i0.ɵɵadvance(1);
|
|
16042
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
|
|
16043
|
+
i0.ɵɵadvance(2);
|
|
16044
|
+
i0.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
|
|
16045
|
+
i0.ɵɵadvance(2);
|
|
16046
|
+
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
|
|
16047
|
+
} }
|
|
16048
|
+
const MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
16049
|
+
class CaseFileViewFolderComponent {
|
|
16050
|
+
constructor(windowService, router, documentManagementService, dialog) {
|
|
16051
|
+
this.windowService = windowService;
|
|
16052
|
+
this.router = router;
|
|
16053
|
+
this.documentManagementService = documentManagementService;
|
|
16054
|
+
this.dialog = dialog;
|
|
16055
|
+
this.clickedDocument = new EventEmitter();
|
|
16056
|
+
this.moveDocument = new EventEmitter();
|
|
16057
|
+
this.categories = [];
|
|
16058
|
+
this.getChildren = (node) => of(node.children);
|
|
16059
|
+
this.nestedChildren = (_, nodeData) => nodeData.children;
|
|
16060
|
+
this.nestedTreeControl = new NestedTreeControl(this.getChildren);
|
|
16061
|
+
}
|
|
16062
|
+
get documentCount() {
|
|
16063
|
+
var _a;
|
|
16064
|
+
if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
|
|
16065
|
+
return this.nestedDataSource.reduce((acc, item) => {
|
|
16066
|
+
return acc + item.childDocumentCount;
|
|
16067
|
+
}, 0);
|
|
16068
|
+
}
|
|
16069
|
+
else {
|
|
16070
|
+
return 0;
|
|
16071
|
+
}
|
|
16072
|
+
}
|
|
16073
|
+
ngOnInit() {
|
|
16074
|
+
this.documentFilterFormGroup = new FormGroup({});
|
|
16075
|
+
this.documentSearchFormControl = new FormControl('');
|
|
16076
|
+
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
16077
|
+
// Listen to search input and initiate filter documents if at least three characters entered
|
|
16078
|
+
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(tap((searchTerm) => this.searchTermLength = searchTerm.length), switchMap((searchTerm) => this.filter(searchTerm.toLowerCase()).pipe())).subscribe(documentTreeData => {
|
|
16079
|
+
this.nestedDataSource = documentTreeData;
|
|
16080
|
+
this.nestedTreeControl.dataNodes = documentTreeData;
|
|
16081
|
+
this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
|
|
16082
|
+
? this.nestedTreeControl.expandAll()
|
|
16083
|
+
: this.nestedTreeControl.collapseAll();
|
|
16084
|
+
});
|
|
16085
|
+
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
16086
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(categoriesAndDocuments => {
|
|
16087
|
+
const categories = categoriesAndDocuments.categories;
|
|
16088
|
+
this.categories = categories;
|
|
16089
|
+
// Generate document tree data from categories
|
|
16090
|
+
this.documentTreeData = this.generateTreeData(categories);
|
|
16091
|
+
// Append uncategorised documents
|
|
16092
|
+
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
16093
|
+
const uncategorisedDocuments = this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
16094
|
+
this.documentTreeData.push(uncategorisedDocuments);
|
|
16095
|
+
}
|
|
16096
|
+
// Initialise cdk tree with generated data
|
|
16097
|
+
this.nestedDataSource = this.documentTreeData;
|
|
16098
|
+
this.nestedTreeControl.dataNodes = this.documentTreeData;
|
|
16099
|
+
});
|
|
16100
|
+
}
|
|
16101
|
+
generateTreeData(categories) {
|
|
16102
|
+
return categories.reduce((tree, node) => {
|
|
16103
|
+
const newDocumentTreeNode = new DocumentTreeNode();
|
|
16104
|
+
newDocumentTreeNode.name = node.category_name;
|
|
16105
|
+
newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
|
|
16106
|
+
newDocumentTreeNode.children = [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)];
|
|
16107
|
+
return [
|
|
16108
|
+
...tree,
|
|
16109
|
+
newDocumentTreeNode,
|
|
16110
|
+
];
|
|
16111
|
+
}, []);
|
|
16112
|
+
}
|
|
16113
|
+
getDocuments(documents) {
|
|
16114
|
+
const documentsToReturn = [];
|
|
16115
|
+
documents.forEach(document => {
|
|
16116
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16117
|
+
documentTreeNode.name = document.document_filename;
|
|
16118
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
16119
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
16120
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
16121
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
16122
|
+
documentsToReturn.push(documentTreeNode);
|
|
16123
|
+
});
|
|
16124
|
+
return documentsToReturn;
|
|
16125
|
+
}
|
|
16126
|
+
getUncategorisedDocuments(uncategorisedDocuments) {
|
|
16127
|
+
const documents = [];
|
|
16128
|
+
uncategorisedDocuments.forEach(document => {
|
|
16129
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16130
|
+
documentTreeNode.name = document.document_filename;
|
|
16131
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
16132
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
16133
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
16134
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
16135
|
+
documents.push(documentTreeNode);
|
|
16136
|
+
});
|
|
16137
|
+
const uncategorisedNode = new DocumentTreeNode();
|
|
16138
|
+
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
16139
|
+
uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
|
|
16140
|
+
uncategorisedNode.children = documents;
|
|
16141
|
+
return uncategorisedNode;
|
|
16142
|
+
}
|
|
16143
|
+
filter(searchTerm) {
|
|
16144
|
+
// Make a copy of the data so we do not mutate the original
|
|
16145
|
+
function copy(node) {
|
|
16146
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16147
|
+
return Object.assign(documentTreeNode, node);
|
|
16148
|
+
}
|
|
16149
|
+
let filteredData = this.documentTreeData;
|
|
16150
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
16151
|
+
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
16152
|
+
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
16153
|
+
return true;
|
|
16154
|
+
}
|
|
16155
|
+
// Call recursively if node has children
|
|
16156
|
+
if (node.children) {
|
|
16157
|
+
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
16158
|
+
}
|
|
16159
|
+
});
|
|
16160
|
+
}
|
|
16161
|
+
return of(filteredData);
|
|
16162
|
+
}
|
|
16163
|
+
triggerDocumentAction(actionType, documentTreeNode) {
|
|
16164
|
+
var _a;
|
|
16165
|
+
switch (actionType) {
|
|
16166
|
+
case ('changeFolder'):
|
|
16167
|
+
this.openMoveDialog(documentTreeNode);
|
|
16168
|
+
break;
|
|
16169
|
+
case ('openInANewTab'):
|
|
16170
|
+
this.windowService.setLocalStorage(MEDIA_VIEWER_LOCALSTORAGE_KEY, this.documentManagementService.getMediaViewerInfo({
|
|
16171
|
+
document_binary_url: documentTreeNode.document_binary_url,
|
|
16172
|
+
document_filename: documentTreeNode.document_filename
|
|
16173
|
+
}));
|
|
16174
|
+
this.windowService.openOnNewTab((_a = this.router.createUrlTree(['/media-viewer'])) === null || _a === void 0 ? void 0 : _a.toString());
|
|
16175
|
+
break;
|
|
16176
|
+
case ('download'):
|
|
16177
|
+
// Create a URL from the document_binary_url property (absolute URL) and use the path portion (relative URL).
|
|
16178
|
+
// This is necessary because the Manage Cases application will automatically apply a proxy to the request, with
|
|
16179
|
+
// the correct remote endpoint
|
|
16180
|
+
this.downloadFile(new URL(documentTreeNode.document_binary_url).pathname, documentTreeNode.document_filename);
|
|
16181
|
+
break;
|
|
16182
|
+
case ('print'):
|
|
16183
|
+
this.printDocument(new URL(documentTreeNode.document_binary_url).pathname);
|
|
16184
|
+
break;
|
|
16185
|
+
default:
|
|
16186
|
+
return;
|
|
16187
|
+
}
|
|
16188
|
+
}
|
|
16189
|
+
sortDataSourceAscAlphabetically() {
|
|
16190
|
+
const sortedData = this.nestedDataSource.map(item => {
|
|
16191
|
+
item.sortChildrenAscending();
|
|
16192
|
+
return item;
|
|
16193
|
+
});
|
|
16194
|
+
this.updateNodeData(sortedData);
|
|
16195
|
+
}
|
|
16196
|
+
sortDataSourceDescAlphabetically() {
|
|
16197
|
+
const sortedData = this.nestedDataSource.map(item => {
|
|
16198
|
+
item.sortChildrenDescending();
|
|
16199
|
+
return item;
|
|
16200
|
+
});
|
|
16201
|
+
this.updateNodeData(sortedData);
|
|
16202
|
+
}
|
|
16203
|
+
updateNodeData(data) {
|
|
16204
|
+
const prevSelected = this.nestedTreeControl.expansionModel.selected.map((item) => {
|
|
16205
|
+
return item.name;
|
|
16206
|
+
});
|
|
16207
|
+
this.nestedTreeControl.collapseAll();
|
|
16208
|
+
this.nestedDataSource = data.map((item) => {
|
|
16209
|
+
const newDocumentTreeNode = new DocumentTreeNode();
|
|
16210
|
+
newDocumentTreeNode.name = item.name;
|
|
16211
|
+
newDocumentTreeNode.type = item.type;
|
|
16212
|
+
newDocumentTreeNode.children = item.children;
|
|
16213
|
+
return newDocumentTreeNode;
|
|
16214
|
+
});
|
|
16215
|
+
const flattenedArray = this.nestedDataSource.map((item) => {
|
|
16216
|
+
return item.flattenedAll;
|
|
16217
|
+
}).flat();
|
|
16218
|
+
const newObjects = flattenedArray.filter((item) => {
|
|
16219
|
+
return prevSelected.includes(item.name);
|
|
16220
|
+
});
|
|
16221
|
+
newObjects.forEach(object => this.nestedTreeControl.expand(object));
|
|
16222
|
+
}
|
|
16223
|
+
ngOnDestroy() {
|
|
16224
|
+
var _a, _b;
|
|
16225
|
+
(_a = this.categoriesAndDocumentsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
16226
|
+
(_b = this.documentFilterSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
16227
|
+
}
|
|
16228
|
+
openMoveDialog(node) {
|
|
16229
|
+
const dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
16230
|
+
width: '570px',
|
|
16231
|
+
data: { categories: this.categories, document: node }
|
|
16232
|
+
});
|
|
16233
|
+
dialogRef.afterClosed().subscribe(newCatId => {
|
|
16234
|
+
if (newCatId) {
|
|
16235
|
+
this.moveDocument.emit({ newCategory: newCatId, document: node });
|
|
16236
|
+
}
|
|
16237
|
+
});
|
|
16238
|
+
}
|
|
16239
|
+
printDocument(url) {
|
|
16240
|
+
const printWindow = window.open(url);
|
|
16241
|
+
printWindow.print();
|
|
16242
|
+
}
|
|
16243
|
+
downloadFile(url, downloadFileName) {
|
|
16244
|
+
const a = document.createElement('a');
|
|
16245
|
+
document.body.appendChild(a);
|
|
16246
|
+
a.setAttribute('style', 'display: none');
|
|
16247
|
+
a.href = url;
|
|
16248
|
+
a.download = downloadFileName;
|
|
16249
|
+
a.click();
|
|
16250
|
+
a.remove();
|
|
16251
|
+
}
|
|
16252
|
+
}
|
|
16253
|
+
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
16254
|
+
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
16255
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
|
|
16256
|
+
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)); };
|
|
16257
|
+
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) {
|
|
16258
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
16259
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
16260
|
+
i0.ɵɵelement(2, "input", 2);
|
|
16261
|
+
i0.ɵɵelementEnd();
|
|
16262
|
+
i0.ɵɵelementEnd();
|
|
16263
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
16264
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
16265
|
+
i0.ɵɵtext(5);
|
|
16266
|
+
i0.ɵɵelementEnd();
|
|
16267
|
+
i0.ɵɵelementStart(6, "div");
|
|
16268
|
+
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
16269
|
+
i0.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener() { return ctx.sortDataSourceDescAlphabetically(); });
|
|
16270
|
+
i0.ɵɵelementEnd();
|
|
16271
|
+
i0.ɵɵelementEnd();
|
|
16272
|
+
i0.ɵɵelementEnd();
|
|
16273
|
+
i0.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 6, 4, "div", 6);
|
|
16274
|
+
} if (rf & 2) {
|
|
16275
|
+
i0.ɵɵadvance(1);
|
|
16276
|
+
i0.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
16277
|
+
i0.ɵɵadvance(4);
|
|
16278
|
+
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
16279
|
+
i0.ɵɵadvance(3);
|
|
16280
|
+
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
16281
|
+
} }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, CaseFileViewFolderSortComponent, i1.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
|
|
16282
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
16283
|
+
type: Component,
|
|
16284
|
+
args: [{
|
|
16285
|
+
selector: 'ccd-case-file-view-folder',
|
|
16286
|
+
templateUrl: './case-file-view-folder.component.html',
|
|
16287
|
+
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
16288
|
+
}]
|
|
16289
|
+
}], function () { return [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
16290
|
+
type: Input
|
|
16291
|
+
}], allowMoving: [{
|
|
16292
|
+
type: Input
|
|
16293
|
+
}], clickedDocument: [{
|
|
16294
|
+
type: Output
|
|
16295
|
+
}], moveDocument: [{
|
|
16296
|
+
type: Output
|
|
16297
|
+
}] }); })();
|
|
16298
|
+
|
|
16299
|
+
function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
16300
|
+
i0.ɵɵelementStart(0, "tr");
|
|
16301
|
+
i0.ɵɵelementStart(1, "td", 13);
|
|
16302
|
+
i0.ɵɵtext(2, "None");
|
|
15285
16303
|
i0.ɵɵelementEnd();
|
|
15286
16304
|
i0.ɵɵelementEnd();
|
|
15287
16305
|
} }
|
|
@@ -17236,7 +18254,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
17236
18254
|
i0.ɵɵadvance(1);
|
|
17237
18255
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
17238
18256
|
i0.ɵɵadvance(1);
|
|
17239
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.
|
|
18257
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
17240
18258
|
i0.ɵɵadvance(3);
|
|
17241
18259
|
i0.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
17242
18260
|
} }
|
|
@@ -17335,10 +18353,14 @@ class LinkCasesComponent {
|
|
|
17335
18353
|
this.linkedCasesStateEmitter = new EventEmitter();
|
|
17336
18354
|
this.errorMessages = [];
|
|
17337
18355
|
this.selectedCases = [];
|
|
18356
|
+
this.linkCaseReasons = [];
|
|
17338
18357
|
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
17339
18358
|
}
|
|
17340
18359
|
ngOnInit() {
|
|
17341
18360
|
this.initForm();
|
|
18361
|
+
this.caseId = this.linkedCasesService.caseId;
|
|
18362
|
+
this.caseName = this.linkedCasesService.caseName;
|
|
18363
|
+
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
17342
18364
|
if (this.linkedCasesService.editMode) {
|
|
17343
18365
|
// this may have includes the currently added one but yet to be submitted.
|
|
17344
18366
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
@@ -17354,7 +18376,7 @@ class LinkCasesComponent {
|
|
|
17354
18376
|
});
|
|
17355
18377
|
}
|
|
17356
18378
|
get getReasonTypeFormArray() {
|
|
17357
|
-
return this.fb.array(this.
|
|
18379
|
+
return this.fb.array(this.linkCaseReasons.map((val) => this.fb.group({
|
|
17358
18380
|
key: [val.key],
|
|
17359
18381
|
value_en: [val.value_en],
|
|
17360
18382
|
value_cy: [val.value_cy],
|
|
@@ -17597,7 +18619,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
|
|
|
17597
18619
|
i0.ɵɵelementEnd();
|
|
17598
18620
|
} if (rf & 2) {
|
|
17599
18621
|
i0.ɵɵadvance(4);
|
|
17600
|
-
i0.ɵɵtextInterpolate2("Link cases to ", ctx.
|
|
18622
|
+
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
17601
18623
|
i0.ɵɵadvance(4);
|
|
17602
18624
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
17603
18625
|
i0.ɵɵadvance(4);
|
|
@@ -20261,7 +21283,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
|
|
|
20261
21283
|
} if (rf & 2) {
|
|
20262
21284
|
i0.ɵɵadvance(1);
|
|
20263
21285
|
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
|
|
20264
|
-
} }, directives: [i1$
|
|
21286
|
+
} }, directives: [i1$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
20265
21287
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
20266
21288
|
type: Component,
|
|
20267
21289
|
args: [{
|
|
@@ -20605,6 +21627,14 @@ const PALETTE_COMPONENTS = [
|
|
|
20605
21627
|
WriteFixedRadioListFieldComponent,
|
|
20606
21628
|
WriteCaseLinkFieldComponent,
|
|
20607
21629
|
WriteCollectionFieldComponent,
|
|
21630
|
+
// ComponentLauncher web components
|
|
21631
|
+
CaseFileViewFieldComponent,
|
|
21632
|
+
CaseFileViewFieldReadComponent,
|
|
21633
|
+
CaseFileViewFolderComponent,
|
|
21634
|
+
CaseFileViewFolderSortComponent,
|
|
21635
|
+
CaseFileViewOverlayMenuComponent,
|
|
21636
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21637
|
+
CaseFileViewFolderSelectorComponent,
|
|
20608
21638
|
LinkedCasesToTableComponent,
|
|
20609
21639
|
LinkedCasesFromTableComponent,
|
|
20610
21640
|
BeforeYouStartComponent,
|
|
@@ -20630,7 +21660,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20630
21660
|
WindowService,
|
|
20631
21661
|
LinkedCasesService,
|
|
20632
21662
|
CommonDataService,
|
|
20633
|
-
JurisdictionService
|
|
21663
|
+
JurisdictionService,
|
|
20634
21664
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
20635
21665
|
], imports: [[
|
|
20636
21666
|
CommonModule,
|
|
@@ -20654,8 +21684,13 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20654
21684
|
MatInputModule,
|
|
20655
21685
|
MatDatepickerModule,
|
|
20656
21686
|
MatAutocompleteModule,
|
|
21687
|
+
CdkTreeModule,
|
|
21688
|
+
OverlayModule,
|
|
20657
21689
|
PaymentLibModule,
|
|
20658
|
-
ScrollToModule.forRoot()
|
|
21690
|
+
ScrollToModule.forRoot(),
|
|
21691
|
+
MatDialogModule,
|
|
21692
|
+
MediaViewerModule,
|
|
21693
|
+
LoadingModule
|
|
20659
21694
|
], NgxMatDatetimePickerModule,
|
|
20660
21695
|
NgxMatNativeDateModule,
|
|
20661
21696
|
NgxMatTimepickerModule,
|
|
@@ -20746,6 +21781,14 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20746
21781
|
WriteFixedRadioListFieldComponent,
|
|
20747
21782
|
WriteCaseLinkFieldComponent,
|
|
20748
21783
|
WriteCollectionFieldComponent,
|
|
21784
|
+
// ComponentLauncher web components
|
|
21785
|
+
CaseFileViewFieldComponent,
|
|
21786
|
+
CaseFileViewFieldReadComponent,
|
|
21787
|
+
CaseFileViewFolderComponent,
|
|
21788
|
+
CaseFileViewFolderSortComponent,
|
|
21789
|
+
CaseFileViewOverlayMenuComponent,
|
|
21790
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21791
|
+
CaseFileViewFolderSelectorComponent,
|
|
20749
21792
|
LinkedCasesToTableComponent,
|
|
20750
21793
|
LinkedCasesFromTableComponent,
|
|
20751
21794
|
BeforeYouStartComponent,
|
|
@@ -20774,7 +21817,11 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20774
21817
|
MatInputModule,
|
|
20775
21818
|
MatDatepickerModule,
|
|
20776
21819
|
MatAutocompleteModule,
|
|
20777
|
-
|
|
21820
|
+
CdkTreeModule,
|
|
21821
|
+
OverlayModule,
|
|
21822
|
+
PaymentLibModule, i2$1.ScrollToModule, MatDialogModule,
|
|
21823
|
+
MediaViewerModule,
|
|
21824
|
+
LoadingModule], exports: [NgxMatDatetimePickerModule,
|
|
20778
21825
|
NgxMatNativeDateModule,
|
|
20779
21826
|
NgxMatTimepickerModule,
|
|
20780
21827
|
TabsModule,
|
|
@@ -20851,6 +21898,14 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20851
21898
|
WriteFixedRadioListFieldComponent,
|
|
20852
21899
|
WriteCaseLinkFieldComponent,
|
|
20853
21900
|
WriteCollectionFieldComponent,
|
|
21901
|
+
// ComponentLauncher web components
|
|
21902
|
+
CaseFileViewFieldComponent,
|
|
21903
|
+
CaseFileViewFieldReadComponent,
|
|
21904
|
+
CaseFileViewFolderComponent,
|
|
21905
|
+
CaseFileViewFolderSortComponent,
|
|
21906
|
+
CaseFileViewOverlayMenuComponent,
|
|
21907
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21908
|
+
CaseFileViewFolderSelectorComponent,
|
|
20854
21909
|
LinkedCasesToTableComponent,
|
|
20855
21910
|
LinkedCasesFromTableComponent,
|
|
20856
21911
|
BeforeYouStartComponent,
|
|
@@ -20884,8 +21939,13 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20884
21939
|
MatInputModule,
|
|
20885
21940
|
MatDatepickerModule,
|
|
20886
21941
|
MatAutocompleteModule,
|
|
21942
|
+
CdkTreeModule,
|
|
21943
|
+
OverlayModule,
|
|
20887
21944
|
PaymentLibModule,
|
|
20888
|
-
ScrollToModule.forRoot()
|
|
21945
|
+
ScrollToModule.forRoot(),
|
|
21946
|
+
MatDialogModule,
|
|
21947
|
+
MediaViewerModule,
|
|
21948
|
+
LoadingModule
|
|
20889
21949
|
],
|
|
20890
21950
|
declarations: [
|
|
20891
21951
|
FixedListPipe,
|
|
@@ -20924,9 +21984,10 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20924
21984
|
WindowService,
|
|
20925
21985
|
LinkedCasesService,
|
|
20926
21986
|
CommonDataService,
|
|
20927
|
-
JurisdictionService
|
|
21987
|
+
JurisdictionService,
|
|
20928
21988
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
20929
|
-
]
|
|
21989
|
+
],
|
|
21990
|
+
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
20930
21991
|
}]
|
|
20931
21992
|
}], null, null); })();
|
|
20932
21993
|
i0.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], []);
|
|
@@ -20964,6 +22025,10 @@ i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryField
|
|
|
20964
22025
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
|
|
20965
22026
|
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, WriteLinkedCasesComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
|
|
20966
22027
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22028
|
+
i0.ɵɵsetComponentScope(
|
|
22029
|
+
// ComponentLauncher web components
|
|
22030
|
+
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
22031
|
+
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
20967
22032
|
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
20968
22033
|
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
20969
22034
|
i0.ɵɵsetComponentScope(LinkCasesComponent, [i1.NgIf, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i2.FormArrayName, i1.NgForOf, i2.FormGroupName, i2.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
@@ -21868,7 +22933,7 @@ LoadingSpinnerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoadingSpinnerCom
|
|
|
21868
22933
|
} if (rf & 2) {
|
|
21869
22934
|
i0.ɵɵadvance(3);
|
|
21870
22935
|
i0.ɵɵtextInterpolate(ctx.loadingText);
|
|
21871
|
-
} }, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px
|
|
22936
|
+
} }, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
|
|
21872
22937
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
21873
22938
|
type: Component,
|
|
21874
22939
|
args: [{
|
|
@@ -22655,7 +23720,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
|
|
|
22655
23720
|
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
22656
23721
|
i0.ɵɵadvance(3);
|
|
22657
23722
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
22658
|
-
} }, directives: [i1$
|
|
23723
|
+
} }, directives: [i1$6.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
22659
23724
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
22660
23725
|
type: Component,
|
|
22661
23726
|
args: [{
|
|
@@ -23005,7 +24070,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
|
|
|
23005
24070
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
|
|
23006
24071
|
i0.ɵɵadvance(2);
|
|
23007
24072
|
i0.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
23008
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$
|
|
24073
|
+
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
|
|
23009
24074
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
23010
24075
|
type: Component,
|
|
23011
24076
|
args: [{
|
|
@@ -23453,7 +24518,7 @@ class WorkbasketFiltersComponent {
|
|
|
23453
24518
|
WorkbasketFiltersComponent.PARAM_JURISDICTION = 'jurisdiction';
|
|
23454
24519
|
WorkbasketFiltersComponent.PARAM_CASE_TYPE = 'case-type';
|
|
23455
24520
|
WorkbasketFiltersComponent.PARAM_CASE_STATE = 'case-state';
|
|
23456
|
-
WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(WorkbasketInputFilterService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService
|
|
24521
|
+
WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(WorkbasketInputFilterService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(WindowService)); };
|
|
23457
24522
|
WorkbasketFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 28, vars: 13, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange", "change"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", "workbasket-filters-apply", 3, "disabled", "click"], ["type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "isInSearchBlock", "keyup.enter"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23458
24523
|
i0.ɵɵelementStart(0, "h2", 0);
|
|
23459
24524
|
i0.ɵɵtext(1, "Filters");
|
|
@@ -23533,7 +24598,7 @@ WorkbasketFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WorkbasketFilt
|
|
|
23533
24598
|
templateUrl: './workbasket-filters.component.html',
|
|
23534
24599
|
styleUrls: ['./workbasket-filters.component.scss']
|
|
23535
24600
|
}]
|
|
23536
|
-
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService
|
|
24601
|
+
}], function () { return [{ type: i1$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService }, { type: AlertService }, { type: WindowService }]; }, { jurisdictions: [{
|
|
23537
24602
|
type: Input
|
|
23538
24603
|
}], defaults: [{
|
|
23539
24604
|
type: Input
|
|
@@ -23550,7 +24615,7 @@ WorkbasketFiltersModule.ɵmod = i0.ɵɵdefineNgModule({ type: WorkbasketFiltersM
|
|
|
23550
24615
|
WorkbasketFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
23551
24616
|
WorkbasketInputFilterService,
|
|
23552
24617
|
OrderService,
|
|
23553
|
-
JurisdictionService
|
|
24618
|
+
JurisdictionService,
|
|
23554
24619
|
AlertService,
|
|
23555
24620
|
WindowService,
|
|
23556
24621
|
], imports: [[
|
|
@@ -23584,7 +24649,7 @@ WorkbasketFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
23584
24649
|
providers: [
|
|
23585
24650
|
WorkbasketInputFilterService,
|
|
23586
24651
|
OrderService,
|
|
23587
|
-
JurisdictionService
|
|
24652
|
+
JurisdictionService,
|
|
23588
24653
|
AlertService,
|
|
23589
24654
|
WindowService,
|
|
23590
24655
|
]
|
|
@@ -23653,7 +24718,7 @@ CaseListFiltersModule.ɵmod = i0.ɵɵdefineNgModule({ type: CaseListFiltersModul
|
|
|
23653
24718
|
CaseListFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
23654
24719
|
WorkbasketInputFilterService,
|
|
23655
24720
|
OrderService,
|
|
23656
|
-
JurisdictionService
|
|
24721
|
+
JurisdictionService,
|
|
23657
24722
|
AlertService,
|
|
23658
24723
|
WindowService
|
|
23659
24724
|
], imports: [[
|
|
@@ -23690,7 +24755,7 @@ CaseListFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
23690
24755
|
providers: [
|
|
23691
24756
|
WorkbasketInputFilterService,
|
|
23692
24757
|
OrderService,
|
|
23693
|
-
JurisdictionService
|
|
24758
|
+
JurisdictionService,
|
|
23694
24759
|
AlertService,
|
|
23695
24760
|
WindowService
|
|
23696
24761
|
]
|
|
@@ -24942,8 +26007,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template(rf, ctx)
|
|
|
24942
26007
|
i0.ɵɵproperty("id", tab_r19.id)("label", tab_r19.label);
|
|
24943
26008
|
} }
|
|
24944
26009
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
24945
|
-
i0.ɵɵelementStart(0, "th",
|
|
24946
|
-
i0.ɵɵelementStart(1, "div",
|
|
26010
|
+
i0.ɵɵelementStart(0, "th", 37);
|
|
26011
|
+
i0.ɵɵelementStart(1, "div", 38);
|
|
24947
26012
|
i0.ɵɵtext(2);
|
|
24948
26013
|
i0.ɵɵelementEnd();
|
|
24949
26014
|
i0.ɵɵelementEnd();
|
|
@@ -24955,9 +26020,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24955
26020
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
24956
26021
|
i0.ɵɵelementStart(0, "tr");
|
|
24957
26022
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 33);
|
|
24958
|
-
i0.ɵɵelementStart(2, "
|
|
24959
|
-
i0.ɵɵelementStart(3, "span",
|
|
24960
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
26023
|
+
i0.ɵɵelementStart(2, "th", 34);
|
|
26024
|
+
i0.ɵɵelementStart(3, "span", 35);
|
|
26025
|
+
i0.ɵɵelement(4, "ccd-field-read", 36);
|
|
24961
26026
|
i0.ɵɵelementEnd();
|
|
24962
26027
|
i0.ɵɵelementEnd();
|
|
24963
26028
|
i0.ɵɵelementEnd();
|
|
@@ -24966,21 +26031,25 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24966
26031
|
const ctx_r25 = i0.ɵɵnextContext(4);
|
|
24967
26032
|
i0.ɵɵadvance(1);
|
|
24968
26033
|
i0.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
24969
|
-
i0.ɵɵadvance(
|
|
26034
|
+
i0.ɵɵadvance(1);
|
|
26035
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26036
|
+
i0.ɵɵadvance(2);
|
|
24970
26037
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
24971
26038
|
} }
|
|
24972
26039
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
24973
|
-
i0.ɵɵelementStart(0, "tr",
|
|
24974
|
-
i0.ɵɵelementStart(1, "th",
|
|
24975
|
-
i0.ɵɵelementStart(2, "span",
|
|
24976
|
-
i0.ɵɵelement(3, "ccd-field-read",
|
|
26040
|
+
i0.ɵɵelementStart(0, "tr", 39);
|
|
26041
|
+
i0.ɵɵelementStart(1, "th", 34);
|
|
26042
|
+
i0.ɵɵelementStart(2, "span", 35);
|
|
26043
|
+
i0.ɵɵelement(3, "ccd-field-read", 36);
|
|
24977
26044
|
i0.ɵɵelementEnd();
|
|
24978
26045
|
i0.ɵɵelementEnd();
|
|
24979
26046
|
i0.ɵɵelementEnd();
|
|
24980
26047
|
} if (rf & 2) {
|
|
24981
26048
|
const field_r24 = i0.ɵɵnextContext().$implicit;
|
|
24982
26049
|
const ctx_r26 = i0.ɵɵnextContext(4);
|
|
24983
|
-
i0.ɵɵadvance(
|
|
26050
|
+
i0.ɵɵadvance(1);
|
|
26051
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26052
|
+
i0.ɵɵadvance(2);
|
|
24984
26053
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
24985
26054
|
} }
|
|
24986
26055
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -24988,8 +26057,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24988
26057
|
i0.ɵɵelementStart(1, "div", 29);
|
|
24989
26058
|
i0.ɵɵelementContainerStart(2, 30);
|
|
24990
26059
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
24991
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5,
|
|
24992
|
-
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4,
|
|
26060
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 31);
|
|
26061
|
+
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 32);
|
|
24993
26062
|
i0.ɵɵelementContainerEnd();
|
|
24994
26063
|
i0.ɵɵelementEnd();
|
|
24995
26064
|
i0.ɵɵelementContainerEnd();
|
|
@@ -25326,12 +26395,14 @@ class CaseFullAccessViewComponent {
|
|
|
25326
26395
|
return false;
|
|
25327
26396
|
}
|
|
25328
26397
|
/**
|
|
25329
|
-
* Indicates that a CaseField is to be displayed without a label, as is expected for
|
|
26398
|
+
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
26399
|
+
* fields.
|
|
25330
26400
|
* @param caseField The `CaseField` instance to check
|
|
25331
26401
|
* @returns `true` if it should not have a label; `false` otherwise
|
|
25332
26402
|
*/
|
|
25333
26403
|
isFieldToHaveNoLabel(caseField) {
|
|
25334
|
-
return
|
|
26404
|
+
return caseField.field_type.type === 'ComponentLauncher'
|
|
26405
|
+
&& caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
|
|
25335
26406
|
}
|
|
25336
26407
|
init() {
|
|
25337
26408
|
// Clone and sort tabs array
|
|
@@ -25386,7 +26457,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
|
|
|
25386
26457
|
} if (rf & 2) {
|
|
25387
26458
|
let _t;
|
|
25388
26459
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
25389
|
-
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]
|
|
26460
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
25390
26461
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
25391
26462
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
25392
26463
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
|
|
@@ -28352,7 +29423,7 @@ class SearchFiltersComponent {
|
|
|
28352
29423
|
}
|
|
28353
29424
|
}
|
|
28354
29425
|
}
|
|
28355
|
-
SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0.ɵɵdirectiveInject(SearchService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService
|
|
29426
|
+
SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0.ɵɵdirectiveInject(SearchService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(WindowService)); };
|
|
28356
29427
|
SearchFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchFiltersComponent, selectors: [["ccd-search-filters"]], inputs: { jurisdictions: "jurisdictions", autoApply: "autoApply" }, outputs: { onApply: "onApply", onReset: "onReset", onJurisdiction: "onJurisdiction" }, decls: 19, vars: 7, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group", 2, "margin-top", "13px"], ["for", "s-jurisdiction", 1, "form-label"], ["id", "s-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-group"], ["for", "s-case-type", 1, "form-label"], ["id", "s-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "disabled", "ngModel", "ngModelChange", "change"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", 3, "disabled", "click", "keyup.enter"], ["id", "reset", "type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "keyup.enter"]], template: function SearchFiltersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28357
29428
|
i0.ɵɵelementStart(0, "h2", 0);
|
|
28358
29429
|
i0.ɵɵtext(1, "Filters");
|
|
@@ -28407,7 +29478,7 @@ SearchFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchFiltersCompo
|
|
|
28407
29478
|
selector: 'ccd-search-filters',
|
|
28408
29479
|
templateUrl: './search-filters.component.html',
|
|
28409
29480
|
}]
|
|
28410
|
-
}], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService
|
|
29481
|
+
}], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService }, { type: WindowService }]; }, { jurisdictions: [{
|
|
28411
29482
|
type: Input
|
|
28412
29483
|
}], autoApply: [{
|
|
28413
29484
|
type: Input
|
|
@@ -28482,7 +29553,7 @@ SearchFiltersModule.ɵmod = i0.ɵɵdefineNgModule({ type: SearchFiltersModule })
|
|
|
28482
29553
|
SearchFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
28483
29554
|
SearchService,
|
|
28484
29555
|
OrderService,
|
|
28485
|
-
JurisdictionService
|
|
29556
|
+
JurisdictionService,
|
|
28486
29557
|
DefinitionsService,
|
|
28487
29558
|
WindowService
|
|
28488
29559
|
], imports: [[
|
|
@@ -28518,7 +29589,7 @@ SearchFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
28518
29589
|
providers: [
|
|
28519
29590
|
SearchService,
|
|
28520
29591
|
OrderService,
|
|
28521
|
-
JurisdictionService
|
|
29592
|
+
JurisdictionService,
|
|
28522
29593
|
DefinitionsService,
|
|
28523
29594
|
WindowService
|
|
28524
29595
|
]
|
|
@@ -28599,11 +29670,11 @@ function SearchResultComponent_table_0_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
28599
29670
|
i0.ɵɵadvance(2);
|
|
28600
29671
|
i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
|
|
28601
29672
|
} }
|
|
28602
|
-
function
|
|
29673
|
+
function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
28603
29674
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
28604
29675
|
i0.ɵɵelementStart(0, "div", 27);
|
|
28605
29676
|
i0.ɵɵelementStart(1, "a", 28);
|
|
28606
|
-
i0.ɵɵlistener("click", function
|
|
29677
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
|
|
28607
29678
|
i0.ɵɵelementEnd();
|
|
28608
29679
|
i0.ɵɵelementEnd();
|
|
28609
29680
|
} if (rf & 2) {
|
|
@@ -28614,18 +29685,25 @@ function SearchResultComponent_table_0_th_10_div_3_Template(rf, ctx) { if (rf &
|
|
|
28614
29685
|
} }
|
|
28615
29686
|
function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
28616
29687
|
const _r22 = i0.ɵɵgetCurrentView();
|
|
28617
|
-
i0.ɵɵelementStart(0, "th"
|
|
28618
|
-
i0.ɵɵelementStart(1, "
|
|
28619
|
-
i0.ɵɵ
|
|
28620
|
-
i0.ɵɵ
|
|
29688
|
+
i0.ɵɵelementStart(0, "th");
|
|
29689
|
+
i0.ɵɵelementStart(1, "table", 24);
|
|
29690
|
+
i0.ɵɵelementStart(2, "tr");
|
|
29691
|
+
i0.ɵɵelementStart(3, "th");
|
|
29692
|
+
i0.ɵɵelementStart(4, "div", 25);
|
|
29693
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r22); const col_r15 = ctx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
|
|
29694
|
+
i0.ɵɵtext(5);
|
|
29695
|
+
i0.ɵɵelementEnd();
|
|
29696
|
+
i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
|
|
29697
|
+
i0.ɵɵelementEnd();
|
|
29698
|
+
i0.ɵɵelementEnd();
|
|
28621
29699
|
i0.ɵɵelementEnd();
|
|
28622
|
-
i0.ɵɵtemplate(3, SearchResultComponent_table_0_th_10_div_3_Template, 2, 1, "div", 26);
|
|
28623
29700
|
i0.ɵɵelementEnd();
|
|
28624
29701
|
} if (rf & 2) {
|
|
28625
29702
|
const col_r15 = ctx.$implicit;
|
|
28626
29703
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
28627
|
-
i0.ɵɵ
|
|
28628
|
-
i0.ɵɵ
|
|
29704
|
+
i0.ɵɵadvance(1);
|
|
29705
|
+
i0.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
|
|
29706
|
+
i0.ɵɵadvance(4);
|
|
28629
29707
|
i0.ɵɵtextInterpolate(col_r15.label);
|
|
28630
29708
|
i0.ɵɵadvance(1);
|
|
28631
29709
|
i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
|
|
@@ -28637,10 +29715,10 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ct
|
|
|
28637
29715
|
const _r30 = i0.ɵɵgetCurrentView();
|
|
28638
29716
|
i0.ɵɵelementStart(0, "td", 20);
|
|
28639
29717
|
i0.ɵɵelementStart(1, "div", 21);
|
|
28640
|
-
i0.ɵɵelementStart(2, "input",
|
|
29718
|
+
i0.ɵɵelementStart(2, "input", 31);
|
|
28641
29719
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r30); const result_r24 = i0.ɵɵnextContext().$implicit; const ctx_r28 = i0.ɵɵnextContext(3); return ctx_r28.changeSelection(result_r24); });
|
|
28642
29720
|
i0.ɵɵelementEnd();
|
|
28643
|
-
i0.ɵɵelement(3, "label",
|
|
29721
|
+
i0.ɵɵelement(3, "label", 32);
|
|
28644
29722
|
i0.ɵɵelementEnd();
|
|
28645
29723
|
i0.ɵɵelementEnd();
|
|
28646
29724
|
} if (rf & 2) {
|
|
@@ -28655,7 +29733,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ct
|
|
|
28655
29733
|
} }
|
|
28656
29734
|
const _c0 = function () { return ["value"]; };
|
|
28657
29735
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
28658
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
29736
|
+
i0.ɵɵelement(0, "ccd-field-read", 41);
|
|
28659
29737
|
} if (rf & 2) {
|
|
28660
29738
|
const col_r32 = i0.ɵɵnextContext(3).$implicit;
|
|
28661
29739
|
const result_r24 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28670,9 +29748,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
|
|
|
28670
29748
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r24.case_id));
|
|
28671
29749
|
} }
|
|
28672
29750
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
28673
|
-
i0.ɵɵelementContainerStart(0,
|
|
28674
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
28675
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
29751
|
+
i0.ɵɵelementContainerStart(0, 38);
|
|
29752
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
|
|
29753
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor);
|
|
28676
29754
|
i0.ɵɵelementContainerEnd();
|
|
28677
29755
|
} if (rf & 2) {
|
|
28678
29756
|
const _r38 = i0.ɵɵreference(3);
|
|
@@ -28683,9 +29761,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
|
|
|
28683
29761
|
i0.ɵɵproperty("ngIf", ctx_r36.draftPrefixOrGet(col_r32, result_r24))("ngIfElse", _r38);
|
|
28684
29762
|
} }
|
|
28685
29763
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
28686
|
-
i0.ɵɵelementStart(0, "a",
|
|
29764
|
+
i0.ɵɵelementStart(0, "a", 36);
|
|
28687
29765
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
28688
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
29766
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
|
|
28689
29767
|
i0.ɵɵelementEnd();
|
|
28690
29768
|
} if (rf & 2) {
|
|
28691
29769
|
const result_r24 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -28696,8 +29774,8 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf
|
|
|
28696
29774
|
i0.ɵɵproperty("ngIf", !ctx_r34.hideRows);
|
|
28697
29775
|
} }
|
|
28698
29776
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28699
|
-
i0.ɵɵelementStart(0, "div",
|
|
28700
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
29777
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
29778
|
+
i0.ɵɵelement(1, "ccd-field-read", 41);
|
|
28701
29779
|
i0.ɵɵelementEnd();
|
|
28702
29780
|
} if (rf & 2) {
|
|
28703
29781
|
const col_r32 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28708,9 +29786,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(
|
|
|
28708
29786
|
i0.ɵɵproperty("caseField", result_r24.columns[col_r32.case_field_id])("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
28709
29787
|
} }
|
|
28710
29788
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
28711
|
-
i0.ɵɵelementStart(0, "td",
|
|
28712
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
28713
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
29789
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
29790
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
29791
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
28714
29792
|
i0.ɵɵelementEnd();
|
|
28715
29793
|
} if (rf & 2) {
|
|
28716
29794
|
const colIndex_r33 = ctx.index;
|
|
@@ -28722,7 +29800,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ct
|
|
|
28722
29800
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
28723
29801
|
i0.ɵɵelementStart(0, "td");
|
|
28724
29802
|
i0.ɵɵelementStart(1, "div");
|
|
28725
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
29803
|
+
i0.ɵɵelement(2, "ccd-activity", 42);
|
|
28726
29804
|
i0.ɵɵelementEnd();
|
|
28727
29805
|
i0.ɵɵelementEnd();
|
|
28728
29806
|
} if (rf & 2) {
|
|
@@ -28736,7 +29814,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ct
|
|
|
28736
29814
|
function SearchResultComponent_table_0_ng_container_13_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
28737
29815
|
i0.ɵɵelementStart(0, "tr");
|
|
28738
29816
|
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template, 4, 5, "td", 8);
|
|
28739
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td",
|
|
29817
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
28740
29818
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
28741
29819
|
i0.ɵɵelementEnd();
|
|
28742
29820
|
} if (rf & 2) {
|
|
@@ -28751,7 +29829,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_Template(rf, ctx) {
|
|
|
28751
29829
|
const _c1 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
|
|
28752
29830
|
function SearchResultComponent_table_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
28753
29831
|
i0.ɵɵelementContainerStart(0);
|
|
28754
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr",
|
|
29832
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr", 9);
|
|
28755
29833
|
i0.ɵɵpipe(2, "paginate");
|
|
28756
29834
|
i0.ɵɵelementContainerEnd();
|
|
28757
29835
|
} if (rf & 2) {
|
|
@@ -28763,10 +29841,10 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
28763
29841
|
const _r56 = i0.ɵɵgetCurrentView();
|
|
28764
29842
|
i0.ɵɵelementStart(0, "td", 20);
|
|
28765
29843
|
i0.ɵɵelementStart(1, "div", 21);
|
|
28766
|
-
i0.ɵɵelementStart(2, "input",
|
|
29844
|
+
i0.ɵɵelementStart(2, "input", 43);
|
|
28767
29845
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r54 = i0.ɵɵnextContext(3); return ctx_r54.changeSelection(result_r50); })("keyup", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return ctx_r57.onKeyUp($event, result_r50); });
|
|
28768
29846
|
i0.ɵɵelementEnd();
|
|
28769
|
-
i0.ɵɵelement(3, "label",
|
|
29847
|
+
i0.ɵɵelement(3, "label", 32);
|
|
28770
29848
|
i0.ɵɵelementEnd();
|
|
28771
29849
|
i0.ɵɵelementEnd();
|
|
28772
29850
|
} if (rf & 2) {
|
|
@@ -28780,7 +29858,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
28780
29858
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r50.case_id, "");
|
|
28781
29859
|
} }
|
|
28782
29860
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
28783
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
29861
|
+
i0.ɵɵelement(0, "ccd-field-read", 41);
|
|
28784
29862
|
} if (rf & 2) {
|
|
28785
29863
|
const col_r60 = i0.ɵɵnextContext(3).$implicit;
|
|
28786
29864
|
const result_r50 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28795,9 +29873,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
28795
29873
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r50.case_id));
|
|
28796
29874
|
} }
|
|
28797
29875
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
28798
|
-
i0.ɵɵelementContainerStart(0,
|
|
28799
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
28800
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
29876
|
+
i0.ɵɵelementContainerStart(0, 38);
|
|
29877
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
|
|
29878
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor);
|
|
28801
29879
|
i0.ɵɵelementContainerEnd();
|
|
28802
29880
|
} if (rf & 2) {
|
|
28803
29881
|
const _r66 = i0.ɵɵreference(3);
|
|
@@ -28808,9 +29886,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
28808
29886
|
i0.ɵɵproperty("ngIf", ctx_r64.draftPrefixOrGet(col_r60, result_r50))("ngIfElse", _r66);
|
|
28809
29887
|
} }
|
|
28810
29888
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
28811
|
-
i0.ɵɵelementStart(0, "a",
|
|
29889
|
+
i0.ɵɵelementStart(0, "a", 36);
|
|
28812
29890
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
28813
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
29891
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
|
|
28814
29892
|
i0.ɵɵelementEnd();
|
|
28815
29893
|
} if (rf & 2) {
|
|
28816
29894
|
const result_r50 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -28821,8 +29899,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
28821
29899
|
i0.ɵɵproperty("ngIf", !ctx_r62.hideRows);
|
|
28822
29900
|
} }
|
|
28823
29901
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28824
|
-
i0.ɵɵelementStart(0, "div",
|
|
28825
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
29902
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
29903
|
+
i0.ɵɵelement(1, "ccd-field-read", 41);
|
|
28826
29904
|
i0.ɵɵelementEnd();
|
|
28827
29905
|
} if (rf & 2) {
|
|
28828
29906
|
const col_r60 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28833,9 +29911,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
28833
29911
|
i0.ɵɵproperty("caseField", result_r50.columns[col_r60.case_field_id])("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
28834
29912
|
} }
|
|
28835
29913
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
28836
|
-
i0.ɵɵelementStart(0, "td",
|
|
28837
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
28838
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
29914
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
29915
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
29916
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
28839
29917
|
i0.ɵɵelementEnd();
|
|
28840
29918
|
} if (rf & 2) {
|
|
28841
29919
|
const colIndex_r61 = ctx.index;
|
|
@@ -28847,7 +29925,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
28847
29925
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
28848
29926
|
i0.ɵɵelementStart(0, "td");
|
|
28849
29927
|
i0.ɵɵelementStart(1, "div");
|
|
28850
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
29928
|
+
i0.ɵɵelement(2, "ccd-activity", 42);
|
|
28851
29929
|
i0.ɵɵelementEnd();
|
|
28852
29930
|
i0.ɵɵelementEnd();
|
|
28853
29931
|
} if (rf & 2) {
|
|
@@ -28861,7 +29939,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
28861
29939
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
28862
29940
|
i0.ɵɵelementStart(0, "tr");
|
|
28863
29941
|
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
|
|
28864
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td",
|
|
29942
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
28865
29943
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
28866
29944
|
i0.ɵɵelementEnd();
|
|
28867
29945
|
} if (rf & 2) {
|
|
@@ -28875,7 +29953,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
28875
29953
|
} }
|
|
28876
29954
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
28877
29955
|
i0.ɵɵelementContainerStart(0);
|
|
28878
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
29956
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
|
|
28879
29957
|
i0.ɵɵpipe(2, "paginate");
|
|
28880
29958
|
i0.ɵɵpipe(3, "ccdSortSearchResult");
|
|
28881
29959
|
i0.ɵɵelementContainerEnd();
|
|
@@ -28897,7 +29975,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
28897
29975
|
i0.ɵɵelementStart(7, "thead");
|
|
28898
29976
|
i0.ɵɵelementStart(8, "tr", 7);
|
|
28899
29977
|
i0.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
|
|
28900
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
29978
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
|
|
28901
29979
|
i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
|
|
28902
29980
|
i0.ɵɵelementEnd();
|
|
28903
29981
|
i0.ɵɵelementEnd();
|
|
@@ -28929,7 +30007,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
28929
30007
|
} }
|
|
28930
30008
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
28931
30009
|
const _r78 = i0.ɵɵgetCurrentView();
|
|
28932
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
30010
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 44);
|
|
28933
30011
|
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r78); const ctx_r77 = i0.ɵɵnextContext(); return ctx_r77.goToPage($event); });
|
|
28934
30012
|
i0.ɵɵelementEnd();
|
|
28935
30013
|
} if (rf & 2) {
|
|
@@ -28937,7 +30015,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
28937
30015
|
i0.ɵɵproperty("visibilityLabel", ctx_r1.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r1.page)("screenReaderCurrentLabel", "You're on page");
|
|
28938
30016
|
} }
|
|
28939
30017
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28940
|
-
i0.ɵɵelementStart(0, "div",
|
|
30018
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
28941
30019
|
i0.ɵɵtext(1, " No cases found. Try using different filters.\n");
|
|
28942
30020
|
i0.ɵɵelementEnd();
|
|
28943
30021
|
} }
|
|
@@ -29275,7 +30353,7 @@ SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
|
|
|
29275
30353
|
SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
|
|
29276
30354
|
SearchResultComponent.PARAM_CASE_STATE = 'case-state';
|
|
29277
30355
|
SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
29278
|
-
SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [
|
|
30356
|
+
SearchResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29279
30357
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
|
|
29280
30358
|
i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
|
|
29281
30359
|
i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template, 2, 0, "div", 2);
|
|
@@ -29385,7 +30463,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
29385
30463
|
]
|
|
29386
30464
|
}]
|
|
29387
30465
|
}], null, null); })();
|
|
29388
|
-
i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$
|
|
30466
|
+
i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
29389
30467
|
|
|
29390
30468
|
class ComplexFieldOverride {
|
|
29391
30469
|
}
|
|
@@ -29625,5 +30703,5 @@ class TestRouteSnapshotBuilder {
|
|
|
29625
30703
|
* Generated bundle index. Do not edit.
|
|
29626
30704
|
*/
|
|
29627
30705
|
|
|
29628
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, 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
|
|
30706
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, 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, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, 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, LinkCaseReason, LinkCasesComponent, LinkCasesReasonValuePipe, LinkDetails, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageType, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesComponent, 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, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, 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, WriteLinkedCasesComponent, 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 };
|
|
29629
30707
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|