@hmcts/ccd-case-ui-toolkit 5.0.33-angular11-upgrade → 5.0.34-case-file-view-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 +1693 -442
- 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/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/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/public-api.js +3 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1340 -247
- 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/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/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/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -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;
|
|
@@ -9529,7 +9574,7 @@ ReadFieldsFilterPipe.EMPTY_VALUES = [
|
|
|
9529
9574
|
'',
|
|
9530
9575
|
{}
|
|
9531
9576
|
];
|
|
9532
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher'];
|
|
9577
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
|
|
9533
9578
|
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
9534
9579
|
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
9535
9580
|
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
@@ -9947,39 +9992,22 @@ PipesModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
9947
9992
|
}]
|
|
9948
9993
|
}], null, null); })();
|
|
9949
9994
|
|
|
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;
|
|
9995
|
+
class CommonDataService {
|
|
9996
|
+
constructor(http) {
|
|
9997
|
+
this.http = http;
|
|
9964
9998
|
}
|
|
9965
|
-
|
|
9966
|
-
if (
|
|
9967
|
-
this.
|
|
9999
|
+
getRefData(url) {
|
|
10000
|
+
if (url) {
|
|
10001
|
+
return this.http.get(url, { observe: 'body' });
|
|
9968
10002
|
}
|
|
10003
|
+
return of(null);
|
|
9969
10004
|
}
|
|
9970
10005
|
}
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
}], null, { caseReference: [{
|
|
9977
|
-
type: Input
|
|
9978
|
-
}], topLevelFormGroup: [{
|
|
9979
|
-
type: Input
|
|
9980
|
-
}], context: [{
|
|
9981
|
-
type: Input
|
|
9982
|
-
}] }); })();
|
|
10006
|
+
CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0.ɵɵinject(i1$2.HttpClient)); };
|
|
10007
|
+
CommonDataService.ɵprov = i0.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
|
|
10008
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonDataService, [{
|
|
10009
|
+
type: Injectable
|
|
10010
|
+
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
9983
10011
|
|
|
9984
10012
|
function WriteComplexFieldComponent_h2_3_Template(rf, ctx) { if (rf & 1) {
|
|
9985
10013
|
i0.ɵɵelementStart(0, "h2", 3);
|
|
@@ -10170,13 +10198,13 @@ class AddressOption {
|
|
|
10170
10198
|
}
|
|
10171
10199
|
}
|
|
10172
10200
|
|
|
10173
|
-
const _c0$
|
|
10201
|
+
const _c0$R = ["writeComplexFieldComponent"];
|
|
10174
10202
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
10175
10203
|
i0.ɵɵelementStart(0, "span", 14);
|
|
10176
10204
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
10177
10205
|
i0.ɵɵelementEnd();
|
|
10178
10206
|
} }
|
|
10179
|
-
const _c1$
|
|
10207
|
+
const _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
10180
10208
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
10181
10209
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10182
10210
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -10195,7 +10223,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
10195
10223
|
i0.ɵɵelementEnd();
|
|
10196
10224
|
} if (rf & 2) {
|
|
10197
10225
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10198
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
10226
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
10199
10227
|
i0.ɵɵadvance(1);
|
|
10200
10228
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
10201
10229
|
i0.ɵɵadvance(3);
|
|
@@ -10363,7 +10391,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
10363
10391
|
}
|
|
10364
10392
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
10365
10393
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
10366
|
-
i0.ɵɵviewQuery(_c0$
|
|
10394
|
+
i0.ɵɵviewQuery(_c0$R, 1);
|
|
10367
10395
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
10368
10396
|
} if (rf & 2) {
|
|
10369
10397
|
let _t;
|
|
@@ -10398,6 +10426,235 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
|
|
|
10398
10426
|
type: Input
|
|
10399
10427
|
}] }); })();
|
|
10400
10428
|
|
|
10429
|
+
var PaletteContext;
|
|
10430
|
+
(function (PaletteContext) {
|
|
10431
|
+
PaletteContext["DEFAULT"] = "DEFAULT";
|
|
10432
|
+
PaletteContext["CHECK_YOUR_ANSWER"] = "CHECK_YOUR_ANSWER";
|
|
10433
|
+
PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
|
|
10434
|
+
})(PaletteContext || (PaletteContext = {}));
|
|
10435
|
+
|
|
10436
|
+
class AbstractFieldReadComponent extends AbstractFormFieldComponent {
|
|
10437
|
+
constructor() {
|
|
10438
|
+
super(...arguments);
|
|
10439
|
+
/**
|
|
10440
|
+
* Optional. Enable context-aware rendering of fields.
|
|
10441
|
+
*/
|
|
10442
|
+
this.context = PaletteContext.DEFAULT;
|
|
10443
|
+
}
|
|
10444
|
+
ngOnInit() {
|
|
10445
|
+
if (!this.caseField.metadata) {
|
|
10446
|
+
this.registerControl(new FormControl(this.caseField.value));
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
AbstractFieldReadComponent.ɵfac = function AbstractFieldReadComponent_Factory(t) { return ɵAbstractFieldReadComponent_BaseFactory(t || AbstractFieldReadComponent); };
|
|
10451
|
+
AbstractFieldReadComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context" }, features: [i0.ɵɵInheritDefinitionFeature] });
|
|
10452
|
+
const ɵAbstractFieldReadComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(AbstractFieldReadComponent);
|
|
10453
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldReadComponent, [{
|
|
10454
|
+
type: Directive
|
|
10455
|
+
}], null, { caseReference: [{
|
|
10456
|
+
type: Input
|
|
10457
|
+
}], topLevelFormGroup: [{
|
|
10458
|
+
type: Input
|
|
10459
|
+
}], context: [{
|
|
10460
|
+
type: Input
|
|
10461
|
+
}] }); })();
|
|
10462
|
+
|
|
10463
|
+
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10464
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
10465
|
+
i0.ɵɵelementStart(1, "h1", 3);
|
|
10466
|
+
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
10467
|
+
i0.ɵɵelementEnd();
|
|
10468
|
+
i0.ɵɵelementStart(3, "p", 4);
|
|
10469
|
+
i0.ɵɵtext(4, "Try again later.");
|
|
10470
|
+
i0.ɵɵelementEnd();
|
|
10471
|
+
i0.ɵɵelementEnd();
|
|
10472
|
+
} }
|
|
10473
|
+
function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
10474
|
+
i0.ɵɵelementContainerStart(0);
|
|
10475
|
+
i0.ɵɵelement(1, "mv-media-viewer", 11);
|
|
10476
|
+
i0.ɵɵelementContainerEnd();
|
|
10477
|
+
} if (rf & 2) {
|
|
10478
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10479
|
+
i0.ɵɵadvance(1);
|
|
10480
|
+
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);
|
|
10481
|
+
} }
|
|
10482
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10483
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
10484
|
+
i0.ɵɵelementStart(0, "div");
|
|
10485
|
+
i0.ɵɵelementStart(1, "h2", 5);
|
|
10486
|
+
i0.ɵɵtext(2, "Case file");
|
|
10487
|
+
i0.ɵɵelementEnd();
|
|
10488
|
+
i0.ɵɵelementStart(3, "div", 6);
|
|
10489
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
10490
|
+
i0.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
10491
|
+
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); });
|
|
10492
|
+
i0.ɵɵelementEnd();
|
|
10493
|
+
i0.ɵɵelementEnd();
|
|
10494
|
+
i0.ɵɵelement(6, "div", 9);
|
|
10495
|
+
i0.ɵɵelementStart(7, "div", 10);
|
|
10496
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
10497
|
+
i0.ɵɵelementEnd();
|
|
10498
|
+
i0.ɵɵelementEnd();
|
|
10499
|
+
i0.ɵɵelementEnd();
|
|
10500
|
+
} if (rf & 2) {
|
|
10501
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
10502
|
+
i0.ɵɵadvance(5);
|
|
10503
|
+
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
10504
|
+
i0.ɵɵadvance(3);
|
|
10505
|
+
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10506
|
+
} }
|
|
10507
|
+
class CaseFileViewFieldComponent {
|
|
10508
|
+
constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
10509
|
+
this.elementRef = elementRef;
|
|
10510
|
+
this.route = route;
|
|
10511
|
+
this.caseFileViewService = caseFileViewService;
|
|
10512
|
+
this.documentManagementService = documentManagementService;
|
|
10513
|
+
this.loadingService = loadingService;
|
|
10514
|
+
this.allowMoving = true;
|
|
10515
|
+
this.getCategoriesAndDocumentsError = false;
|
|
10516
|
+
}
|
|
10517
|
+
ngOnInit() {
|
|
10518
|
+
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
10519
|
+
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
10520
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
10521
|
+
next: data => {
|
|
10522
|
+
this.caseVersion = data.case_version;
|
|
10523
|
+
},
|
|
10524
|
+
error: _ => this.getCategoriesAndDocumentsError = true
|
|
10525
|
+
});
|
|
10526
|
+
}
|
|
10527
|
+
ngAfterViewInit() {
|
|
10528
|
+
const slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
10529
|
+
const documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
10530
|
+
const mousedown$ = fromEvent(slider, 'mousedown');
|
|
10531
|
+
const mousemove$ = fromEvent(document, 'mousemove');
|
|
10532
|
+
const mouseup$ = fromEvent(document, 'mouseup');
|
|
10533
|
+
const drag$ = mousedown$.pipe(switchMap((start) => {
|
|
10534
|
+
const x = start.clientX;
|
|
10535
|
+
const documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
10536
|
+
return mousemove$.pipe(map(move => {
|
|
10537
|
+
move.preventDefault();
|
|
10538
|
+
return {
|
|
10539
|
+
dx: move.clientX - x,
|
|
10540
|
+
documentTreeContainerWidth
|
|
10541
|
+
};
|
|
10542
|
+
}), takeUntil(mouseup$));
|
|
10543
|
+
}));
|
|
10544
|
+
drag$.subscribe(pos => {
|
|
10545
|
+
const calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
10546
|
+
documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
|
|
10547
|
+
});
|
|
10548
|
+
}
|
|
10549
|
+
setMediaViewerFile(document) {
|
|
10550
|
+
const mediaViewerInfo = this.documentManagementService.getMediaViewerInfo({
|
|
10551
|
+
document_binary_url: document.document_binary_url,
|
|
10552
|
+
document_filename: document.document_filename
|
|
10553
|
+
});
|
|
10554
|
+
this.currentDocument = JSON.parse(mediaViewerInfo);
|
|
10555
|
+
}
|
|
10556
|
+
moveDocument(data) {
|
|
10557
|
+
const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
10558
|
+
const loadingToken = this.loadingService.register();
|
|
10559
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(_ => {
|
|
10560
|
+
location.reload();
|
|
10561
|
+
this.loadingService.unregister(loadingToken);
|
|
10562
|
+
});
|
|
10563
|
+
}
|
|
10564
|
+
ngOnDestroy() {
|
|
10565
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
10566
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
10567
|
+
}
|
|
10568
|
+
}
|
|
10569
|
+
}
|
|
10570
|
+
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10571
|
+
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)); };
|
|
10572
|
+
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) {
|
|
10573
|
+
i0.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
10574
|
+
i0.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
10575
|
+
} if (rf & 2) {
|
|
10576
|
+
i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
10577
|
+
i0.ɵɵadvance(1);
|
|
10578
|
+
i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10579
|
+
} }, 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}"] });
|
|
10580
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
10581
|
+
type: Component,
|
|
10582
|
+
args: [{
|
|
10583
|
+
selector: 'ccd-case-file-view-field',
|
|
10584
|
+
templateUrl: './case-file-view-field.component.html',
|
|
10585
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10586
|
+
}]
|
|
10587
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null); })();
|
|
10588
|
+
|
|
10589
|
+
function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
10590
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
10591
|
+
i0.ɵɵelementStart(1, "h1", 3);
|
|
10592
|
+
i0.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
10593
|
+
i0.ɵɵelementEnd();
|
|
10594
|
+
i0.ɵɵelementStart(3, "p", 4);
|
|
10595
|
+
i0.ɵɵtext(4, "Try again later.");
|
|
10596
|
+
i0.ɵɵelementEnd();
|
|
10597
|
+
i0.ɵɵelementEnd();
|
|
10598
|
+
} }
|
|
10599
|
+
function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
|
10600
|
+
i0.ɵɵelementContainerStart(0);
|
|
10601
|
+
i0.ɵɵelement(1, "mv-media-viewer", 11);
|
|
10602
|
+
i0.ɵɵelementContainerEnd();
|
|
10603
|
+
} if (rf & 2) {
|
|
10604
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
10605
|
+
i0.ɵɵadvance(1);
|
|
10606
|
+
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);
|
|
10607
|
+
} }
|
|
10608
|
+
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10609
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
10610
|
+
i0.ɵɵelementStart(0, "div");
|
|
10611
|
+
i0.ɵɵelementStart(1, "h2", 5);
|
|
10612
|
+
i0.ɵɵtext(2, "Case file");
|
|
10613
|
+
i0.ɵɵelementEnd();
|
|
10614
|
+
i0.ɵɵelementStart(3, "div", 6);
|
|
10615
|
+
i0.ɵɵelementStart(4, "div", 7);
|
|
10616
|
+
i0.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
10617
|
+
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); });
|
|
10618
|
+
i0.ɵɵelementEnd();
|
|
10619
|
+
i0.ɵɵelementEnd();
|
|
10620
|
+
i0.ɵɵelement(6, "div", 9);
|
|
10621
|
+
i0.ɵɵelementStart(7, "div", 10);
|
|
10622
|
+
i0.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
10623
|
+
i0.ɵɵelementEnd();
|
|
10624
|
+
i0.ɵɵelementEnd();
|
|
10625
|
+
i0.ɵɵelementEnd();
|
|
10626
|
+
} if (rf & 2) {
|
|
10627
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
10628
|
+
i0.ɵɵadvance(5);
|
|
10629
|
+
i0.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
10630
|
+
i0.ɵɵadvance(3);
|
|
10631
|
+
i0.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
10632
|
+
} }
|
|
10633
|
+
class CaseFileViewFieldReadComponent extends CaseFileViewFieldComponent {
|
|
10634
|
+
constructor() {
|
|
10635
|
+
super(...arguments);
|
|
10636
|
+
this.allowMoving = true;
|
|
10637
|
+
}
|
|
10638
|
+
}
|
|
10639
|
+
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
10640
|
+
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) {
|
|
10641
|
+
i0.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
10642
|
+
i0.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
10643
|
+
} if (rf & 2) {
|
|
10644
|
+
i0.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
10645
|
+
i0.ɵɵadvance(1);
|
|
10646
|
+
i0.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10647
|
+
} }, 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}"] });
|
|
10648
|
+
const ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
|
|
10649
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
|
|
10650
|
+
type: Component,
|
|
10651
|
+
args: [{
|
|
10652
|
+
selector: 'ccd-case-file-view-field',
|
|
10653
|
+
templateUrl: './case-file-view-field.component.html',
|
|
10654
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10655
|
+
}]
|
|
10656
|
+
}], null, null); })();
|
|
10657
|
+
|
|
10401
10658
|
var AddCommentsErrorMessage;
|
|
10402
10659
|
(function (AddCommentsErrorMessage) {
|
|
10403
10660
|
AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
|
|
@@ -10708,7 +10965,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if
|
|
|
10708
10965
|
i0.ɵɵadvance(1);
|
|
10709
10966
|
i0.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
10710
10967
|
} }
|
|
10711
|
-
const _c0$
|
|
10968
|
+
const _c0$Q = function (a0) { return { "form-group-error": a0 }; };
|
|
10712
10969
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
10713
10970
|
i0.ɵɵelementStart(0, "div", 8);
|
|
10714
10971
|
i0.ɵɵelementStart(1, "div", 9);
|
|
@@ -10727,7 +10984,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
10727
10984
|
i0.ɵɵadvance(1);
|
|
10728
10985
|
i0.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
10729
10986
|
i0.ɵɵadvance(1);
|
|
10730
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
10987
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
|
|
10731
10988
|
i0.ɵɵadvance(1);
|
|
10732
10989
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
10733
10990
|
i0.ɵɵadvance(1);
|
|
@@ -11136,7 +11393,7 @@ const ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
|
|
|
11136
11393
|
}]
|
|
11137
11394
|
}], null, null); })();
|
|
11138
11395
|
|
|
11139
|
-
const _c0$
|
|
11396
|
+
const _c0$P = ["writeComplexFieldComponent"];
|
|
11140
11397
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
11141
11398
|
i0.ɵɵelementStart(0, "span", 6);
|
|
11142
11399
|
i0.ɵɵtext(1);
|
|
@@ -11235,7 +11492,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11235
11492
|
}
|
|
11236
11493
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
11237
11494
|
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$
|
|
11495
|
+
i0.ɵɵviewQuery(_c0$P, 1);
|
|
11239
11496
|
} if (rf & 2) {
|
|
11240
11497
|
let _t;
|
|
11241
11498
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
@@ -11267,7 +11524,7 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
|
|
|
11267
11524
|
args: ['writeComplexFieldComponent', /* TODO: add static flag */ {}]
|
|
11268
11525
|
}] }); })();
|
|
11269
11526
|
|
|
11270
|
-
const _c0$
|
|
11527
|
+
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
11528
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
11272
11529
|
i0.ɵɵelementStart(0, "tbody");
|
|
11273
11530
|
i0.ɵɵelementStart(1, "tr");
|
|
@@ -11280,9 +11537,9 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
11280
11537
|
} if (rf & 2) {
|
|
11281
11538
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11282
11539
|
i0.ɵɵadvance(4);
|
|
11283
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$
|
|
11540
|
+
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
11541
|
} }
|
|
11285
|
-
const _c1$
|
|
11542
|
+
const _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
11286
11543
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
11287
11544
|
i0.ɵɵelementStart(0, "tr");
|
|
11288
11545
|
i0.ɵɵelementStart(1, "td");
|
|
@@ -11294,7 +11551,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
11294
11551
|
const i_r5 = ctx.index;
|
|
11295
11552
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
11296
11553
|
i0.ɵɵadvance(2);
|
|
11297
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
11554
|
+
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
11555
|
} }
|
|
11299
11556
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
11300
11557
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -11408,7 +11665,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
|
|
|
11408
11665
|
}]
|
|
11409
11666
|
}], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
|
|
11410
11667
|
|
|
11411
|
-
const _c0$
|
|
11668
|
+
const _c0$N = ["collectionItem"];
|
|
11412
11669
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
11413
11670
|
i0.ɵɵelementStart(0, "span", 9);
|
|
11414
11671
|
i0.ɵɵtext(1);
|
|
@@ -11782,7 +12039,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11782
12039
|
}
|
|
11783
12040
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
11784
12041
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11785
|
-
i0.ɵɵviewQuery(_c0$
|
|
12042
|
+
i0.ɵɵviewQuery(_c0$N, 1);
|
|
11786
12043
|
} if (rf & 2) {
|
|
11787
12044
|
let _t;
|
|
11788
12045
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
@@ -12102,7 +12359,7 @@ FileUploadStateService.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadState
|
|
|
12102
12359
|
type: Injectable
|
|
12103
12360
|
}], null, null); })();
|
|
12104
12361
|
|
|
12105
|
-
const _c0$
|
|
12362
|
+
const _c0$M = ["fileInput"];
|
|
12106
12363
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
12107
12364
|
i0.ɵɵelementStart(0, "span", 12);
|
|
12108
12365
|
i0.ɵɵtext(1);
|
|
@@ -12127,7 +12384,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
|
|
|
12127
12384
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
12128
12385
|
i0.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
12129
12386
|
} }
|
|
12130
|
-
const _c1$
|
|
12387
|
+
const _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12131
12388
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12132
12389
|
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12133
12390
|
super();
|
|
@@ -12380,7 +12637,7 @@ WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facili
|
|
|
12380
12637
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12381
12638
|
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
12639
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12383
|
-
i0.ɵɵviewQuery(_c0$
|
|
12640
|
+
i0.ɵɵviewQuery(_c0$M, 1);
|
|
12384
12641
|
} if (rf & 2) {
|
|
12385
12642
|
let _t;
|
|
12386
12643
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
@@ -12416,7 +12673,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
12416
12673
|
i0.ɵɵelementEnd();
|
|
12417
12674
|
i0.ɵɵelementEnd();
|
|
12418
12675
|
} if (rf & 2) {
|
|
12419
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$
|
|
12676
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
|
|
12420
12677
|
i0.ɵɵadvance(1);
|
|
12421
12678
|
i0.ɵɵproperty("for", ctx.id());
|
|
12422
12679
|
i0.ɵɵadvance(1);
|
|
@@ -12542,7 +12799,7 @@ function WriteDynamicListFieldComponent_option_9_Template(rf, ctx) { if (rf & 1)
|
|
|
12542
12799
|
i0.ɵɵadvance(1);
|
|
12543
12800
|
i0.ɵɵtextInterpolate(type_r5.label);
|
|
12544
12801
|
} }
|
|
12545
|
-
const _c0$
|
|
12802
|
+
const _c0$L = function (a0) { return { "form-group-error": a0 }; };
|
|
12546
12803
|
class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
12547
12804
|
ngOnInit() {
|
|
12548
12805
|
/**
|
|
@@ -12584,7 +12841,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
|
|
|
12584
12841
|
i0.ɵɵelementEnd();
|
|
12585
12842
|
i0.ɵɵelementEnd();
|
|
12586
12843
|
} if (rf & 2) {
|
|
12587
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$
|
|
12844
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12588
12845
|
i0.ɵɵadvance(1);
|
|
12589
12846
|
i0.ɵɵproperty("for", ctx.id());
|
|
12590
12847
|
i0.ɵɵadvance(1);
|
|
@@ -12705,7 +12962,7 @@ function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf &
|
|
|
12705
12962
|
i0.ɵɵadvance(1);
|
|
12706
12963
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
12707
12964
|
} }
|
|
12708
|
-
const _c0$
|
|
12965
|
+
const _c0$K = function (a0) { return { selected: a0 }; };
|
|
12709
12966
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
12710
12967
|
i0.ɵɵelementStart(0, "div", 10);
|
|
12711
12968
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -12716,7 +12973,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12716
12973
|
} if (rf & 2) {
|
|
12717
12974
|
const radioButton_r5 = ctx.$implicit;
|
|
12718
12975
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
12719
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
12976
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
12720
12977
|
i0.ɵɵadvance(1);
|
|
12721
12978
|
i0.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
12722
12979
|
i0.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -12725,7 +12982,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
12725
12982
|
i0.ɵɵadvance(1);
|
|
12726
12983
|
i0.ɵɵtextInterpolate(radioButton_r5.label);
|
|
12727
12984
|
} }
|
|
12728
|
-
const _c1$
|
|
12985
|
+
const _c1$i = function (a0) { return { "form-group-error": a0 }; };
|
|
12729
12986
|
class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
12730
12987
|
ngOnInit() {
|
|
12731
12988
|
/**
|
|
@@ -12766,7 +13023,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
|
|
|
12766
13023
|
i0.ɵɵelementEnd();
|
|
12767
13024
|
i0.ɵɵelementEnd();
|
|
12768
13025
|
} if (rf & 2) {
|
|
12769
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$
|
|
13026
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
12770
13027
|
i0.ɵɵadvance(3);
|
|
12771
13028
|
i0.ɵɵproperty("for", ctx.id());
|
|
12772
13029
|
i0.ɵɵadvance(1);
|
|
@@ -12850,8 +13107,8 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
12850
13107
|
i0.ɵɵadvance(1);
|
|
12851
13108
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
12852
13109
|
} }
|
|
12853
|
-
const _c0$
|
|
12854
|
-
const _c1$
|
|
13110
|
+
const _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
13111
|
+
const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
12855
13112
|
class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
12856
13113
|
ngOnInit() {
|
|
12857
13114
|
this.emailControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -12868,7 +13125,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
12868
13125
|
i0.ɵɵelement(5, "input", 5);
|
|
12869
13126
|
i0.ɵɵelementEnd();
|
|
12870
13127
|
} if (rf & 2) {
|
|
12871
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
13128
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
12872
13129
|
i0.ɵɵadvance(1);
|
|
12873
13130
|
i0.ɵɵproperty("for", ctx.id());
|
|
12874
13131
|
i0.ɵɵadvance(1);
|
|
@@ -12878,7 +13135,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
|
|
|
12878
13135
|
i0.ɵɵadvance(1);
|
|
12879
13136
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
12880
13137
|
i0.ɵɵadvance(1);
|
|
12881
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
13138
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
12882
13139
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12883
13140
|
const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
12884
13141
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -12970,7 +13227,7 @@ function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
12970
13227
|
i0.ɵɵadvance(1);
|
|
12971
13228
|
i0.ɵɵtextInterpolate(type_r4.label);
|
|
12972
13229
|
} }
|
|
12973
|
-
const _c0$
|
|
13230
|
+
const _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
12974
13231
|
class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
12975
13232
|
get listItems() {
|
|
12976
13233
|
if (this.caseField) {
|
|
@@ -13008,7 +13265,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
|
|
|
13008
13265
|
i0.ɵɵelementEnd();
|
|
13009
13266
|
i0.ɵɵelementEnd();
|
|
13010
13267
|
} if (rf & 2) {
|
|
13011
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$
|
|
13268
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
13012
13269
|
i0.ɵɵadvance(1);
|
|
13013
13270
|
i0.ɵɵproperty("for", ctx.id());
|
|
13014
13271
|
i0.ɵɵadvance(1);
|
|
@@ -13099,7 +13356,7 @@ function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1
|
|
|
13099
13356
|
i0.ɵɵadvance(1);
|
|
13100
13357
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
13101
13358
|
} }
|
|
13102
|
-
const _c0$
|
|
13359
|
+
const _c0$H = function (a0) { return { selected: a0 }; };
|
|
13103
13360
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
13104
13361
|
i0.ɵɵelementStart(0, "div", 9);
|
|
13105
13362
|
i0.ɵɵelement(1, "input", 10);
|
|
@@ -13110,7 +13367,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13110
13367
|
} if (rf & 2) {
|
|
13111
13368
|
const radioButton_r4 = ctx.$implicit;
|
|
13112
13369
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13113
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$
|
|
13370
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13114
13371
|
i0.ɵɵadvance(1);
|
|
13115
13372
|
i0.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13116
13373
|
i0.ɵɵadvance(1);
|
|
@@ -13118,7 +13375,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
13118
13375
|
i0.ɵɵadvance(1);
|
|
13119
13376
|
i0.ɵɵtextInterpolate(radioButton_r4.label);
|
|
13120
13377
|
} }
|
|
13121
|
-
const _c1$
|
|
13378
|
+
const _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
13122
13379
|
class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
|
|
13123
13380
|
ngOnInit() {
|
|
13124
13381
|
const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
|
|
@@ -13142,7 +13399,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
|
|
|
13142
13399
|
i0.ɵɵelementEnd();
|
|
13143
13400
|
i0.ɵɵelementEnd();
|
|
13144
13401
|
} if (rf & 2) {
|
|
13145
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13402
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
13146
13403
|
i0.ɵɵadvance(3);
|
|
13147
13404
|
i0.ɵɵproperty("for", ctx.id());
|
|
13148
13405
|
i0.ɵɵadvance(1);
|
|
@@ -13241,7 +13498,7 @@ function WriteJudicialUserFieldComponent_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
13241
13498
|
i0.ɵɵadvance(1);
|
|
13242
13499
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13243
13500
|
} }
|
|
13244
|
-
const _c0$
|
|
13501
|
+
const _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13245
13502
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
13246
13503
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
13247
13504
|
i0.ɵɵelementStart(0, "mat-option", 11);
|
|
@@ -13251,7 +13508,7 @@ function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) { if (rf
|
|
|
13251
13508
|
} if (rf & 2) {
|
|
13252
13509
|
const judicialUser_r5 = ctx.$implicit;
|
|
13253
13510
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
13254
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$
|
|
13511
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13255
13512
|
i0.ɵɵadvance(1);
|
|
13256
13513
|
i0.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13257
13514
|
} }
|
|
@@ -13559,7 +13816,7 @@ function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13559
13816
|
i0.ɵɵadvance(1);
|
|
13560
13817
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
13561
13818
|
} }
|
|
13562
|
-
const _c0$
|
|
13819
|
+
const _c0$F = function (a0) { return { "form-group-error": a0 }; };
|
|
13563
13820
|
class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
|
|
13564
13821
|
ngOnInit() {
|
|
13565
13822
|
this.moneyGbpControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13582,7 +13839,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
|
|
|
13582
13839
|
i0.ɵɵelementEnd();
|
|
13583
13840
|
i0.ɵɵelementEnd();
|
|
13584
13841
|
} if (rf & 2) {
|
|
13585
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
13842
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$F, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
13586
13843
|
i0.ɵɵadvance(1);
|
|
13587
13844
|
i0.ɵɵproperty("for", ctx.id());
|
|
13588
13845
|
i0.ɵɵadvance(1);
|
|
@@ -13699,7 +13956,7 @@ function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
13699
13956
|
i0.ɵɵadvance(1);
|
|
13700
13957
|
i0.ɵɵtextInterpolate(checkbox_r4.label);
|
|
13701
13958
|
} }
|
|
13702
|
-
const _c0$
|
|
13959
|
+
const _c0$E = function (a0) { return { "error": a0 }; };
|
|
13703
13960
|
class WriteMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
13704
13961
|
ngOnInit() {
|
|
13705
13962
|
this.checkboxes = new FormArray([]);
|
|
@@ -13754,7 +14011,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
|
|
|
13754
14011
|
i0.ɵɵelementEnd();
|
|
13755
14012
|
i0.ɵɵelementEnd();
|
|
13756
14013
|
} if (rf & 2) {
|
|
13757
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$
|
|
14014
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$E, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
13758
14015
|
i0.ɵɵadvance(3);
|
|
13759
14016
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
13760
14017
|
i0.ɵɵadvance(1);
|
|
@@ -13823,8 +14080,8 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
13823
14080
|
i0.ɵɵadvance(1);
|
|
13824
14081
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
13825
14082
|
} }
|
|
13826
|
-
const _c0$
|
|
13827
|
-
const _c1$
|
|
14083
|
+
const _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
14084
|
+
const _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
|
|
13828
14085
|
class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
13829
14086
|
ngOnInit() {
|
|
13830
14087
|
this.numberControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -13841,7 +14098,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
13841
14098
|
i0.ɵɵelement(5, "input", 5);
|
|
13842
14099
|
i0.ɵɵelementEnd();
|
|
13843
14100
|
} if (rf & 2) {
|
|
13844
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14101
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$D, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
13845
14102
|
i0.ɵɵadvance(1);
|
|
13846
14103
|
i0.ɵɵproperty("for", ctx.id());
|
|
13847
14104
|
i0.ɵɵadvance(1);
|
|
@@ -13851,7 +14108,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
|
|
|
13851
14108
|
i0.ɵɵadvance(1);
|
|
13852
14109
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
13853
14110
|
i0.ɵɵadvance(1);
|
|
13854
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14111
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
13855
14112
|
} }, directives: [i1.NgClass, i1.NgIf, i2.NumberValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
13856
14113
|
const ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
13857
14114
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -14091,7 +14348,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_div_4_Template(rf, ct
|
|
|
14091
14348
|
i0.ɵɵelementEnd();
|
|
14092
14349
|
i0.ɵɵelementEnd();
|
|
14093
14350
|
} }
|
|
14094
|
-
const _c0$
|
|
14351
|
+
const _c0$C = function (a0) { return { "scroll-container ": a0 }; };
|
|
14095
14352
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
14096
14353
|
i0.ɵɵelementStart(0, "div", 26);
|
|
14097
14354
|
i0.ɵɵpipe(1, "async");
|
|
@@ -14105,7 +14362,7 @@ function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) { i
|
|
|
14105
14362
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14106
14363
|
let tmp_0_0 = null;
|
|
14107
14364
|
let tmp_2_0 = null;
|
|
14108
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$
|
|
14365
|
+
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
14366
|
i0.ɵɵadvance(2);
|
|
14110
14367
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
14111
14368
|
i0.ɵɵadvance(2);
|
|
@@ -14504,8 +14761,8 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14504
14761
|
i0.ɵɵadvance(1);
|
|
14505
14762
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
|
|
14506
14763
|
} }
|
|
14507
|
-
const _c0$
|
|
14508
|
-
const _c1$
|
|
14764
|
+
const _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
14765
|
+
const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14509
14766
|
class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
14510
14767
|
ngOnInit() {
|
|
14511
14768
|
this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14522,7 +14779,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
14522
14779
|
i0.ɵɵelement(5, "input", 5);
|
|
14523
14780
|
i0.ɵɵelementEnd();
|
|
14524
14781
|
} if (rf & 2) {
|
|
14525
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14782
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$B, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
14526
14783
|
i0.ɵɵadvance(1);
|
|
14527
14784
|
i0.ɵɵproperty("for", ctx.id());
|
|
14528
14785
|
i0.ɵɵadvance(1);
|
|
@@ -14532,7 +14789,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
|
|
|
14532
14789
|
i0.ɵɵadvance(1);
|
|
14533
14790
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
14534
14791
|
i0.ɵɵadvance(1);
|
|
14535
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14792
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
14536
14793
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14537
14794
|
const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
14538
14795
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -14592,8 +14849,8 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14592
14849
|
i0.ɵɵadvance(1);
|
|
14593
14850
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
14594
14851
|
} }
|
|
14595
|
-
const _c0$
|
|
14596
|
-
const _c1$
|
|
14852
|
+
const _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
14853
|
+
const _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
14597
14854
|
class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
14598
14855
|
constructor(browserService) {
|
|
14599
14856
|
super();
|
|
@@ -14623,7 +14880,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
14623
14880
|
i0.ɵɵelementEnd();
|
|
14624
14881
|
i0.ɵɵelementEnd();
|
|
14625
14882
|
} if (rf & 2) {
|
|
14626
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14883
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$A, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
14627
14884
|
i0.ɵɵadvance(1);
|
|
14628
14885
|
i0.ɵɵproperty("for", ctx.id());
|
|
14629
14886
|
i0.ɵɵadvance(1);
|
|
@@ -14633,7 +14890,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
|
|
|
14633
14890
|
i0.ɵɵadvance(1);
|
|
14634
14891
|
i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
14635
14892
|
i0.ɵɵadvance(1);
|
|
14636
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14893
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
14637
14894
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14638
14895
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
14639
14896
|
type: Component,
|
|
@@ -14693,8 +14950,8 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
14693
14950
|
i0.ɵɵadvance(1);
|
|
14694
14951
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
|
|
14695
14952
|
} }
|
|
14696
|
-
const _c0$
|
|
14697
|
-
const _c1$
|
|
14953
|
+
const _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
14954
|
+
const _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14698
14955
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
14699
14956
|
ngOnInit() {
|
|
14700
14957
|
this.textControl = this.registerControl(new FormControl(this.caseField.value));
|
|
@@ -14716,7 +14973,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
14716
14973
|
i0.ɵɵelementEnd();
|
|
14717
14974
|
i0.ɵɵelementEnd();
|
|
14718
14975
|
} if (rf & 2) {
|
|
14719
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
14976
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$z, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
14720
14977
|
i0.ɵɵadvance(1);
|
|
14721
14978
|
i0.ɵɵproperty("for", ctx.id());
|
|
14722
14979
|
i0.ɵɵadvance(1);
|
|
@@ -14726,7 +14983,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
|
|
|
14726
14983
|
i0.ɵɵadvance(1);
|
|
14727
14984
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
14728
14985
|
i0.ɵɵadvance(1);
|
|
14729
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
14986
|
+
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
14987
|
} }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14731
14988
|
const ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
14732
14989
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
@@ -14882,7 +15139,7 @@ function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
14882
15139
|
i0.ɵɵadvance(1);
|
|
14883
15140
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
|
|
14884
15141
|
} }
|
|
14885
|
-
const _c0$
|
|
15142
|
+
const _c0$y = function (a0) { return { selected: a0 }; };
|
|
14886
15143
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
14887
15144
|
i0.ɵɵelementStart(0, "div", 10);
|
|
14888
15145
|
i0.ɵɵelement(1, "input", 11);
|
|
@@ -14893,7 +15150,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14893
15150
|
} if (rf & 2) {
|
|
14894
15151
|
const value_r4 = ctx.$implicit;
|
|
14895
15152
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
14896
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$
|
|
15153
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$y, ctx_r3.yesNoControl.value === value_r4));
|
|
14897
15154
|
i0.ɵɵadvance(1);
|
|
14898
15155
|
i0.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
14899
15156
|
i0.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -14902,7 +15159,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14902
15159
|
i0.ɵɵadvance(1);
|
|
14903
15160
|
i0.ɵɵtextInterpolate(value_r4);
|
|
14904
15161
|
} }
|
|
14905
|
-
const _c1$
|
|
15162
|
+
const _c1$b = function (a0) { return { "form-group-error": a0 }; };
|
|
14906
15163
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
14907
15164
|
constructor(yesNoService) {
|
|
14908
15165
|
super();
|
|
@@ -14928,7 +15185,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
14928
15185
|
i0.ɵɵelementEnd();
|
|
14929
15186
|
i0.ɵɵelementEnd();
|
|
14930
15187
|
} if (rf & 2) {
|
|
14931
|
-
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
15188
|
+
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
14932
15189
|
i0.ɵɵadvance(3);
|
|
14933
15190
|
i0.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14934
15191
|
i0.ɵɵadvance(1);
|
|
@@ -14949,6 +15206,11 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
|
|
|
14949
15206
|
}], function () { return [{ type: YesNoService }]; }, null); })();
|
|
14950
15207
|
|
|
14951
15208
|
class PaletteService {
|
|
15209
|
+
constructor() {
|
|
15210
|
+
this.componentLauncherRegistry = {
|
|
15211
|
+
CaseFileView: [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent]
|
|
15212
|
+
};
|
|
15213
|
+
}
|
|
14952
15214
|
getFieldComponentClass(caseField, write) {
|
|
14953
15215
|
switch (caseField.field_type.type) {
|
|
14954
15216
|
case 'Text':
|
|
@@ -15013,12 +15275,23 @@ class PaletteService {
|
|
|
15013
15275
|
return CaseHistoryViewerFieldComponent;
|
|
15014
15276
|
case 'WaysToPay':
|
|
15015
15277
|
return WaysToPayFieldComponent;
|
|
15278
|
+
case 'ComponentLauncher':
|
|
15279
|
+
return this.getComponentLauncherComponent(caseField, write);
|
|
15016
15280
|
case 'FlagLauncher':
|
|
15017
15281
|
return write ? WriteCaseFlagFieldComponent : ReadCaseFlagFieldComponent;
|
|
15018
15282
|
default:
|
|
15019
15283
|
return UnsupportedFieldComponent;
|
|
15020
15284
|
}
|
|
15021
15285
|
}
|
|
15286
|
+
getComponentLauncherComponent(caseField, write) {
|
|
15287
|
+
// Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
|
|
15288
|
+
// component from the componentLauncherRegistry
|
|
15289
|
+
const argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
|
|
15290
|
+
if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
|
|
15291
|
+
return this.componentLauncherRegistry[argumentValue][write ? 0 : 1];
|
|
15292
|
+
}
|
|
15293
|
+
return UnsupportedFieldComponent;
|
|
15294
|
+
}
|
|
15022
15295
|
}
|
|
15023
15296
|
PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
|
|
15024
15297
|
PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory: PaletteService.ɵfac });
|
|
@@ -15026,7 +15299,7 @@ PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory
|
|
|
15026
15299
|
type: Injectable
|
|
15027
15300
|
}], null, null); })();
|
|
15028
15301
|
|
|
15029
|
-
const _c0$
|
|
15302
|
+
const _c0$x = ["fieldContainer"];
|
|
15030
15303
|
const FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
15031
15304
|
class FieldReadComponent extends AbstractFieldReadComponent {
|
|
15032
15305
|
constructor(resolver, paletteService) {
|
|
@@ -15070,7 +15343,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
|
|
|
15070
15343
|
}
|
|
15071
15344
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15072
15345
|
FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15073
|
-
i0.ɵɵviewQuery(_c0$
|
|
15346
|
+
i0.ɵɵviewQuery(_c0$x, 1, ViewContainerRef);
|
|
15074
15347
|
} if (rf & 2) {
|
|
15075
15348
|
let _t;
|
|
15076
15349
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15104,7 +15377,7 @@ FieldReadComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldReadComponent, se
|
|
|
15104
15377
|
args: ['fieldContainer', { static: false, read: ViewContainerRef }]
|
|
15105
15378
|
}] }); })();
|
|
15106
15379
|
|
|
15107
|
-
const _c0$
|
|
15380
|
+
const _c0$w = ["fieldContainer"];
|
|
15108
15381
|
const FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
15109
15382
|
class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
15110
15383
|
constructor(resolver, paletteService) {
|
|
@@ -15148,7 +15421,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
15148
15421
|
}
|
|
15149
15422
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(PaletteService)); };
|
|
15150
15423
|
FieldWriteComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15151
|
-
i0.ɵɵviewQuery(_c0$
|
|
15424
|
+
i0.ɵɵviewQuery(_c0$w, 3, ViewContainerRef);
|
|
15152
15425
|
} if (rf & 2) {
|
|
15153
15426
|
let _t;
|
|
15154
15427
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
|
|
@@ -15197,7 +15470,7 @@ function FieldReadLabelComponent_dl_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15197
15470
|
function FieldReadLabelComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
15198
15471
|
i0.ɵɵprojection(0);
|
|
15199
15472
|
} }
|
|
15200
|
-
const _c0$
|
|
15473
|
+
const _c0$v = ["*"];
|
|
15201
15474
|
class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
15202
15475
|
constructor() {
|
|
15203
15476
|
super(...arguments);
|
|
@@ -15232,7 +15505,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
|
|
|
15232
15505
|
}
|
|
15233
15506
|
}
|
|
15234
15507
|
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$
|
|
15508
|
+
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
15509
|
i0.ɵɵprojectionDef();
|
|
15237
15510
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15238
15511
|
i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 5, 2, "dl", 1);
|
|
@@ -15261,42 +15534,802 @@ const ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedF
|
|
|
15261
15534
|
type: Input
|
|
15262
15535
|
}] }); })();
|
|
15263
15536
|
|
|
15264
|
-
|
|
15265
|
-
|
|
15266
|
-
this.http = http;
|
|
15267
|
-
}
|
|
15268
|
-
getRefData(url) {
|
|
15269
|
-
if (url) {
|
|
15270
|
-
return this.http.get(url, { observe: 'body' });
|
|
15271
|
-
}
|
|
15272
|
-
return of(null);
|
|
15273
|
-
}
|
|
15274
|
-
}
|
|
15275
|
-
CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0.ɵɵinject(i1$2.HttpClient)); };
|
|
15276
|
-
CommonDataService.ɵprov = i0.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
|
|
15277
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CommonDataService, [{
|
|
15278
|
-
type: Injectable
|
|
15279
|
-
}], function () { return [{ type: i1$2.HttpClient }]; }, null); })();
|
|
15280
|
-
|
|
15281
|
-
function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
15282
|
-
i0.ɵɵelementStart(0, "tr");
|
|
15283
|
-
i0.ɵɵelementStart(1, "td", 13);
|
|
15284
|
-
i0.ɵɵtext(2, "None");
|
|
15285
|
-
i0.ɵɵelementEnd();
|
|
15286
|
-
i0.ɵɵelementEnd();
|
|
15537
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15538
|
+
i0.ɵɵelementContainer(0);
|
|
15287
15539
|
} }
|
|
15288
|
-
function
|
|
15289
|
-
|
|
15290
|
-
i0.ɵɵ
|
|
15291
|
-
i0.ɵɵ
|
|
15540
|
+
const _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
15541
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15542
|
+
i0.ɵɵelementContainerStart(0);
|
|
15543
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15544
|
+
i0.ɵɵelementContainerEnd();
|
|
15545
|
+
} if (rf & 2) {
|
|
15546
|
+
const cat_r3 = ctx.$implicit;
|
|
15547
|
+
i0.ɵɵnextContext();
|
|
15548
|
+
const _r1 = i0.ɵɵreference(13);
|
|
15549
|
+
i0.ɵɵadvance(1);
|
|
15550
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c0$u, cat_r3));
|
|
15292
15551
|
} }
|
|
15293
|
-
function
|
|
15294
|
-
i0.ɵɵ
|
|
15295
|
-
i0.ɵɵtext(1, "Inactive");
|
|
15296
|
-
i0.ɵɵelementEnd();
|
|
15552
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15553
|
+
i0.ɵɵelementContainer(0);
|
|
15297
15554
|
} }
|
|
15298
|
-
function
|
|
15299
|
-
|
|
15555
|
+
const _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
15556
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
15557
|
+
i0.ɵɵelementContainerStart(0);
|
|
15558
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
15559
|
+
i0.ɵɵelementContainerEnd();
|
|
15560
|
+
} if (rf & 2) {
|
|
15561
|
+
const subcat_r8 = ctx.$implicit;
|
|
15562
|
+
const level_r6 = i0.ɵɵnextContext().level;
|
|
15563
|
+
i0.ɵɵnextContext();
|
|
15564
|
+
const _r1 = i0.ɵɵreference(13);
|
|
15565
|
+
i0.ɵɵadvance(1);
|
|
15566
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
|
|
15567
|
+
} }
|
|
15568
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
15569
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
15570
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
15571
|
+
i0.ɵɵelementStart(1, "input", 10);
|
|
15572
|
+
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); });
|
|
15573
|
+
i0.ɵɵelementEnd();
|
|
15574
|
+
i0.ɵɵelementStart(2, "label", 11);
|
|
15575
|
+
i0.ɵɵelement(3, "img", 12);
|
|
15576
|
+
i0.ɵɵtext(4);
|
|
15577
|
+
i0.ɵɵelementEnd();
|
|
15578
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
|
|
15579
|
+
i0.ɵɵelementEnd();
|
|
15580
|
+
} if (rf & 2) {
|
|
15581
|
+
const cat_r5 = ctx.cat;
|
|
15582
|
+
const level_r6 = ctx.level;
|
|
15583
|
+
i0.ɵɵadvance(1);
|
|
15584
|
+
i0.ɵɵpropertyInterpolate1("name", "level-", level_r6, "");
|
|
15585
|
+
i0.ɵɵproperty("id", cat_r5.category_id);
|
|
15586
|
+
i0.ɵɵadvance(1);
|
|
15587
|
+
i0.ɵɵproperty("for", cat_r5.category_id);
|
|
15588
|
+
i0.ɵɵadvance(2);
|
|
15589
|
+
i0.ɵɵtextInterpolate1(" ", cat_r5.category_name, " ");
|
|
15590
|
+
i0.ɵɵadvance(1);
|
|
15591
|
+
i0.ɵɵproperty("ngForOf", cat_r5.sub_categories);
|
|
15592
|
+
} }
|
|
15593
|
+
class CaseFileViewFolderSelectorComponent {
|
|
15594
|
+
constructor(dialogRef, data) {
|
|
15595
|
+
this.dialogRef = dialogRef;
|
|
15596
|
+
this.data = data;
|
|
15597
|
+
this.currentCategories = [];
|
|
15598
|
+
this.selected = '';
|
|
15599
|
+
this.currentCategories = [...this.data.categories];
|
|
15600
|
+
}
|
|
15601
|
+
ngAfterViewInit() {
|
|
15602
|
+
const path = this.findPath();
|
|
15603
|
+
path.forEach(p => document.getElementById(p).checked = true);
|
|
15604
|
+
}
|
|
15605
|
+
handleChange(evt) {
|
|
15606
|
+
if (evt.target.checked) {
|
|
15607
|
+
this.select(evt.target.id);
|
|
15608
|
+
// get level of this checkbox so we can clear all lower levels
|
|
15609
|
+
let level = parseInt(evt.target.name.split('-')[1], 10) + 1;
|
|
15610
|
+
let nodes = document.getElementsByName(`level-${level}`);
|
|
15611
|
+
while (nodes.length > 0) {
|
|
15612
|
+
nodes.forEach((node) => node.checked = false);
|
|
15613
|
+
level += 1;
|
|
15614
|
+
nodes = document.getElementsByName(`level-${level}`);
|
|
15615
|
+
}
|
|
15616
|
+
}
|
|
15617
|
+
}
|
|
15618
|
+
select(categoryId) {
|
|
15619
|
+
this.selected = categoryId;
|
|
15620
|
+
}
|
|
15621
|
+
cancel() {
|
|
15622
|
+
this.dialogRef.close();
|
|
15623
|
+
}
|
|
15624
|
+
save() {
|
|
15625
|
+
this.dialogRef.close(this.selected.length > 0 ? this.selected : null);
|
|
15626
|
+
}
|
|
15627
|
+
findPath() {
|
|
15628
|
+
for (const c of this.data.categories) {
|
|
15629
|
+
const r = this.containsDocument(c, this.data.document);
|
|
15630
|
+
if (r) {
|
|
15631
|
+
return r;
|
|
15632
|
+
}
|
|
15633
|
+
}
|
|
15634
|
+
}
|
|
15635
|
+
containsDocument(cat, document) {
|
|
15636
|
+
if (cat.documents.findIndex(doc => doc.document_binary_url === document.document_binary_url) > -1) {
|
|
15637
|
+
return [cat.category_id];
|
|
15638
|
+
}
|
|
15639
|
+
for (const c of cat.sub_categories) {
|
|
15640
|
+
const r = this.containsDocument(c, document);
|
|
15641
|
+
if (r) {
|
|
15642
|
+
return [cat.category_id, ...r];
|
|
15643
|
+
}
|
|
15644
|
+
}
|
|
15645
|
+
return null;
|
|
15646
|
+
}
|
|
15647
|
+
}
|
|
15648
|
+
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
|
|
15649
|
+
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) {
|
|
15650
|
+
i0.ɵɵelementStart(0, "h2", 0);
|
|
15651
|
+
i0.ɵɵtext(1, "Move File");
|
|
15652
|
+
i0.ɵɵelementEnd();
|
|
15653
|
+
i0.ɵɵelementStart(2, "p");
|
|
15654
|
+
i0.ɵɵtext(3);
|
|
15655
|
+
i0.ɵɵelementEnd();
|
|
15656
|
+
i0.ɵɵelementStart(4, "div", 1);
|
|
15657
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
|
|
15658
|
+
i0.ɵɵelementEnd();
|
|
15659
|
+
i0.ɵɵelementStart(6, "div", 3);
|
|
15660
|
+
i0.ɵɵelementStart(7, "button", 4);
|
|
15661
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
15662
|
+
i0.ɵɵtext(8, "Save");
|
|
15663
|
+
i0.ɵɵelementEnd();
|
|
15664
|
+
i0.ɵɵelementStart(9, "a", 5);
|
|
15665
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
|
|
15666
|
+
i0.ɵɵtext(10, "Cancel");
|
|
15667
|
+
i0.ɵɵelementEnd();
|
|
15668
|
+
i0.ɵɵelementEnd();
|
|
15669
|
+
i0.ɵɵelementStart(11, "div", 6);
|
|
15670
|
+
i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
15671
|
+
i0.ɵɵelementEnd();
|
|
15672
|
+
i0.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
|
15673
|
+
} if (rf & 2) {
|
|
15674
|
+
i0.ɵɵadvance(3);
|
|
15675
|
+
i0.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
15676
|
+
i0.ɵɵadvance(2);
|
|
15677
|
+
i0.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
15678
|
+
} }, 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}"] });
|
|
15679
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
15680
|
+
type: Component,
|
|
15681
|
+
args: [{
|
|
15682
|
+
selector: 'xui-case-file-view-folder-selector',
|
|
15683
|
+
templateUrl: './case-file-view-folder-selector.component.html',
|
|
15684
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
15685
|
+
}]
|
|
15686
|
+
}], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
15687
|
+
type: Inject,
|
|
15688
|
+
args: [MAT_DIALOG_DATA]
|
|
15689
|
+
}] }]; }, null); })();
|
|
15690
|
+
|
|
15691
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15692
|
+
i0.ɵɵelementContainerStart(0);
|
|
15693
|
+
i0.ɵɵelementStart(1, "div", 6);
|
|
15694
|
+
i0.ɵɵtext(2);
|
|
15695
|
+
i0.ɵɵelementEnd();
|
|
15696
|
+
i0.ɵɵelementContainerEnd();
|
|
15697
|
+
} if (rf & 2) {
|
|
15698
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
15699
|
+
i0.ɵɵadvance(2);
|
|
15700
|
+
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
15701
|
+
} }
|
|
15702
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
15703
|
+
i0.ɵɵelement(0, "img", 10);
|
|
15704
|
+
} if (rf & 2) {
|
|
15705
|
+
const item_r4 = i0.ɵɵnextContext().$implicit;
|
|
15706
|
+
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
15707
|
+
i0.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
15708
|
+
i0.ɵɵproperty("src", item_r4.iconSrc, i0.ɵɵsanitizeUrl);
|
|
15709
|
+
} }
|
|
15710
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
15711
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
15712
|
+
i0.ɵɵelementContainerStart(0);
|
|
15713
|
+
i0.ɵɵelementStart(1, "div", 7);
|
|
15714
|
+
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(); });
|
|
15715
|
+
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
15716
|
+
i0.ɵɵelementStart(3, "div", 9);
|
|
15717
|
+
i0.ɵɵtext(4);
|
|
15718
|
+
i0.ɵɵelementEnd();
|
|
15719
|
+
i0.ɵɵelementEnd();
|
|
15720
|
+
i0.ɵɵelementContainerEnd();
|
|
15721
|
+
} if (rf & 2) {
|
|
15722
|
+
const item_r4 = ctx.$implicit;
|
|
15723
|
+
i0.ɵɵadvance(2);
|
|
15724
|
+
i0.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
15725
|
+
i0.ɵɵadvance(2);
|
|
15726
|
+
i0.ɵɵtextInterpolate(item_r4.actionText);
|
|
15727
|
+
} }
|
|
15728
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
15729
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
15730
|
+
i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
15731
|
+
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
15732
|
+
i0.ɵɵelementEnd();
|
|
15733
|
+
} if (rf & 2) {
|
|
15734
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
15735
|
+
i0.ɵɵadvance(1);
|
|
15736
|
+
i0.ɵɵproperty("ngIf", ctx_r1.title);
|
|
15737
|
+
i0.ɵɵadvance(1);
|
|
15738
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
15739
|
+
} }
|
|
15740
|
+
const _c0$t = [[["", "trigger", ""]]];
|
|
15741
|
+
const _c1$9 = ["[trigger]"];
|
|
15742
|
+
class CaseFileViewOverlayMenuComponent {
|
|
15743
|
+
constructor() {
|
|
15744
|
+
this.title = '';
|
|
15745
|
+
this.isOpen = false;
|
|
15746
|
+
this.isOpenChange = new EventEmitter();
|
|
15747
|
+
}
|
|
15748
|
+
closeOverlay() {
|
|
15749
|
+
const isOpen = false;
|
|
15750
|
+
this.isOpen = isOpen;
|
|
15751
|
+
this.isOpenChange.emit(isOpen);
|
|
15752
|
+
}
|
|
15753
|
+
}
|
|
15754
|
+
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
15755
|
+
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) {
|
|
15756
|
+
i0.ɵɵprojectionDef(_c0$t);
|
|
15757
|
+
i0.ɵɵelementStart(0, "div");
|
|
15758
|
+
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
15759
|
+
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
15760
|
+
i0.ɵɵprojection(3);
|
|
15761
|
+
i0.ɵɵelementEnd();
|
|
15762
|
+
i0.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
15763
|
+
i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
15764
|
+
i0.ɵɵelementEnd();
|
|
15765
|
+
} if (rf & 2) {
|
|
15766
|
+
const _r0 = i0.ɵɵreference(2);
|
|
15767
|
+
i0.ɵɵadvance(4);
|
|
15768
|
+
i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
15769
|
+
} }, 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}"] });
|
|
15770
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
15771
|
+
type: Component,
|
|
15772
|
+
args: [{
|
|
15773
|
+
selector: 'ccd-case-file-view-overlay-menu',
|
|
15774
|
+
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
15775
|
+
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
15776
|
+
}]
|
|
15777
|
+
}], null, { title: [{
|
|
15778
|
+
type: Input
|
|
15779
|
+
}], menuItems: [{
|
|
15780
|
+
type: Input
|
|
15781
|
+
}], isOpen: [{
|
|
15782
|
+
type: Input
|
|
15783
|
+
}], isOpenChange: [{
|
|
15784
|
+
type: Output
|
|
15785
|
+
}] }); })();
|
|
15786
|
+
|
|
15787
|
+
class CaseFileViewFolderDocumentActionsComponent {
|
|
15788
|
+
constructor() {
|
|
15789
|
+
this.isOpen = false;
|
|
15790
|
+
this.changeFolderAction = new EventEmitter();
|
|
15791
|
+
this.openInANewTabAction = new EventEmitter();
|
|
15792
|
+
this.downloadAction = new EventEmitter();
|
|
15793
|
+
this.printAction = new EventEmitter();
|
|
15794
|
+
this.overlayMenuItems = [
|
|
15795
|
+
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: () => this.openInANewTabAction.emit() },
|
|
15796
|
+
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: () => this.downloadAction.emit() },
|
|
15797
|
+
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: () => this.printAction.emit() },
|
|
15798
|
+
];
|
|
15799
|
+
}
|
|
15800
|
+
ngOnInit() {
|
|
15801
|
+
if (this.allowMoving) {
|
|
15802
|
+
this.overlayMenuItems.unshift({ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: () => this.changeFolderAction.emit() });
|
|
15803
|
+
}
|
|
15804
|
+
}
|
|
15805
|
+
}
|
|
15806
|
+
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
15807
|
+
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) {
|
|
15808
|
+
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
15809
|
+
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
15810
|
+
i0.ɵɵelementContainerStart(1, 1);
|
|
15811
|
+
i0.ɵɵelement(2, "img", 2);
|
|
15812
|
+
i0.ɵɵelementContainerEnd();
|
|
15813
|
+
i0.ɵɵelementEnd();
|
|
15814
|
+
} if (rf & 2) {
|
|
15815
|
+
i0.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
15816
|
+
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-4px}"] });
|
|
15817
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
15818
|
+
type: Component,
|
|
15819
|
+
args: [{
|
|
15820
|
+
selector: 'ccd-case-file-view-folder-document-actions',
|
|
15821
|
+
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
15822
|
+
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
15823
|
+
}]
|
|
15824
|
+
}], function () { return []; }, { allowMoving: [{
|
|
15825
|
+
type: Input
|
|
15826
|
+
}], changeFolderAction: [{
|
|
15827
|
+
type: Output
|
|
15828
|
+
}], openInANewTabAction: [{
|
|
15829
|
+
type: Output
|
|
15830
|
+
}], downloadAction: [{
|
|
15831
|
+
type: Output
|
|
15832
|
+
}], printAction: [{
|
|
15833
|
+
type: Output
|
|
15834
|
+
}] }); })();
|
|
15835
|
+
|
|
15836
|
+
class CaseFileViewFolderSortComponent {
|
|
15837
|
+
constructor() {
|
|
15838
|
+
this.isOpen = false;
|
|
15839
|
+
this.sortAscending = new EventEmitter();
|
|
15840
|
+
this.sortDescending = new EventEmitter();
|
|
15841
|
+
this.overlayMenuItems = [
|
|
15842
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
|
|
15843
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
|
|
15844
|
+
];
|
|
15845
|
+
}
|
|
15846
|
+
}
|
|
15847
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
15848
|
+
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) {
|
|
15849
|
+
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
15850
|
+
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
15851
|
+
i0.ɵɵelementContainerStart(1, 1);
|
|
15852
|
+
i0.ɵɵelement(2, "img", 2);
|
|
15853
|
+
i0.ɵɵelementContainerEnd();
|
|
15854
|
+
i0.ɵɵelementEnd();
|
|
15855
|
+
} if (rf & 2) {
|
|
15856
|
+
i0.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
15857
|
+
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
|
|
15858
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
15859
|
+
type: Component,
|
|
15860
|
+
args: [{
|
|
15861
|
+
selector: 'ccd-case-file-view-folder-sort',
|
|
15862
|
+
templateUrl: './case-file-view-folder-sort.component.html',
|
|
15863
|
+
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
15864
|
+
}]
|
|
15865
|
+
}], function () { return []; }, { sortAscending: [{
|
|
15866
|
+
type: Output
|
|
15867
|
+
}], sortDescending: [{
|
|
15868
|
+
type: Output
|
|
15869
|
+
}] }); })();
|
|
15870
|
+
|
|
15871
|
+
class CaseFileViewCategory {
|
|
15872
|
+
}
|
|
15873
|
+
|
|
15874
|
+
class CaseFileViewDocument {
|
|
15875
|
+
}
|
|
15876
|
+
|
|
15877
|
+
/**
|
|
15878
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
15879
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
15880
|
+
*/
|
|
15881
|
+
class CategoriesAndDocuments {
|
|
15882
|
+
}
|
|
15883
|
+
|
|
15884
|
+
var DocumentTreeNodeType;
|
|
15885
|
+
(function (DocumentTreeNodeType) {
|
|
15886
|
+
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
15887
|
+
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
15888
|
+
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
15889
|
+
|
|
15890
|
+
class DocumentTreeNode {
|
|
15891
|
+
get childDocumentCount() {
|
|
15892
|
+
const countChildren = (childNodes) => {
|
|
15893
|
+
let count = 0;
|
|
15894
|
+
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
15895
|
+
const documents = childNodes.filter(item => item.type === 'document');
|
|
15896
|
+
count += documents.length;
|
|
15897
|
+
childNodes.forEach((children) => {
|
|
15898
|
+
count += countChildren(children.children);
|
|
15899
|
+
});
|
|
15900
|
+
}
|
|
15901
|
+
return count;
|
|
15902
|
+
};
|
|
15903
|
+
return countChildren(this.children);
|
|
15904
|
+
}
|
|
15905
|
+
sortChildrenAscending() {
|
|
15906
|
+
var _a, _b;
|
|
15907
|
+
const sortAscending = () => {
|
|
15908
|
+
return (a, b) => {
|
|
15909
|
+
const nameA = a.name.toUpperCase();
|
|
15910
|
+
const nameB = b.name.toUpperCase();
|
|
15911
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
15912
|
+
return 0;
|
|
15913
|
+
}
|
|
15914
|
+
if (nameA < nameB) {
|
|
15915
|
+
return -1;
|
|
15916
|
+
}
|
|
15917
|
+
if (nameA > nameB) {
|
|
15918
|
+
return 1;
|
|
15919
|
+
}
|
|
15920
|
+
};
|
|
15921
|
+
};
|
|
15922
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
15923
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
15924
|
+
childNodes.sortChildrenAscending();
|
|
15925
|
+
});
|
|
15926
|
+
}
|
|
15927
|
+
sortChildrenDescending() {
|
|
15928
|
+
var _a, _b;
|
|
15929
|
+
const sortDescending = () => {
|
|
15930
|
+
return (a, b) => {
|
|
15931
|
+
const nameA = a.name.toUpperCase();
|
|
15932
|
+
const nameB = b.name.toUpperCase();
|
|
15933
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
15934
|
+
return 0;
|
|
15935
|
+
}
|
|
15936
|
+
if (nameA > nameB) {
|
|
15937
|
+
return -1;
|
|
15938
|
+
}
|
|
15939
|
+
if (nameA < nameB) {
|
|
15940
|
+
return 1;
|
|
15941
|
+
}
|
|
15942
|
+
};
|
|
15943
|
+
};
|
|
15944
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
15945
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
15946
|
+
childNodes.sortChildrenDescending();
|
|
15947
|
+
});
|
|
15948
|
+
}
|
|
15949
|
+
get flattenedAll() {
|
|
15950
|
+
var _a;
|
|
15951
|
+
const flattenChildren = (nodeChild) => {
|
|
15952
|
+
var _a;
|
|
15953
|
+
const flattenedNodes = [];
|
|
15954
|
+
flattenedNodes.push(nodeChild);
|
|
15955
|
+
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
15956
|
+
nodeChild.children.forEach((child) => {
|
|
15957
|
+
flattenedNodes.push(...flattenChildren(child));
|
|
15958
|
+
});
|
|
15959
|
+
}
|
|
15960
|
+
return flattenedNodes;
|
|
15961
|
+
};
|
|
15962
|
+
return [
|
|
15963
|
+
this,
|
|
15964
|
+
...(_a = this.children) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
15965
|
+
return flattenChildren(item);
|
|
15966
|
+
}).flat()
|
|
15967
|
+
];
|
|
15968
|
+
}
|
|
15969
|
+
}
|
|
15970
|
+
__decorate([
|
|
15971
|
+
Type(() => DocumentTreeNode),
|
|
15972
|
+
__metadata("design:type", Array)
|
|
15973
|
+
], DocumentTreeNode.prototype, "children", void 0);
|
|
15974
|
+
__decorate([
|
|
15975
|
+
Expose(),
|
|
15976
|
+
__metadata("design:type", Object),
|
|
15977
|
+
__metadata("design:paramtypes", [])
|
|
15978
|
+
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
15979
|
+
|
|
15980
|
+
function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
15981
|
+
i0.ɵɵelementStart(0, "div");
|
|
15982
|
+
i0.ɵɵtext(1, " No results found ");
|
|
15983
|
+
i0.ɵɵelementEnd();
|
|
15984
|
+
} }
|
|
15985
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) { if (rf & 1) {
|
|
15986
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
15987
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
|
|
15988
|
+
i0.ɵɵelementStart(1, "button", 13);
|
|
15989
|
+
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); });
|
|
15990
|
+
i0.ɵɵelementStart(2, "div", 14);
|
|
15991
|
+
i0.ɵɵelement(3, "img", 15);
|
|
15992
|
+
i0.ɵɵelementEnd();
|
|
15993
|
+
i0.ɵɵelementStart(4, "span", 16);
|
|
15994
|
+
i0.ɵɵtext(5);
|
|
15995
|
+
i0.ɵɵelementEnd();
|
|
15996
|
+
i0.ɵɵelementStart(6, "div", 17);
|
|
15997
|
+
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
|
|
15998
|
+
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); });
|
|
15999
|
+
i0.ɵɵelementEnd();
|
|
16000
|
+
i0.ɵɵelementEnd();
|
|
16001
|
+
i0.ɵɵelementEnd();
|
|
16002
|
+
i0.ɵɵelementEnd();
|
|
16003
|
+
} if (rf & 2) {
|
|
16004
|
+
const node_r4 = ctx.$implicit;
|
|
16005
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
16006
|
+
i0.ɵɵadvance(1);
|
|
16007
|
+
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
16008
|
+
i0.ɵɵadvance(4);
|
|
16009
|
+
i0.ɵɵtextInterpolate(node_r4.name);
|
|
16010
|
+
i0.ɵɵadvance(2);
|
|
16011
|
+
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
16012
|
+
} }
|
|
16013
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
16014
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
|
|
16015
|
+
i0.ɵɵelementStart(1, "button", 20);
|
|
16016
|
+
i0.ɵɵelementStart(2, "div", 21);
|
|
16017
|
+
i0.ɵɵelement(3, "img", 22);
|
|
16018
|
+
i0.ɵɵelementStart(4, "span", 23);
|
|
16019
|
+
i0.ɵɵtext(5);
|
|
16020
|
+
i0.ɵɵelementEnd();
|
|
16021
|
+
i0.ɵɵelementEnd();
|
|
16022
|
+
i0.ɵɵelementStart(6, "span", 24);
|
|
16023
|
+
i0.ɵɵtext(7);
|
|
16024
|
+
i0.ɵɵelementEnd();
|
|
16025
|
+
i0.ɵɵelementEnd();
|
|
16026
|
+
i0.ɵɵelementStart(8, "div");
|
|
16027
|
+
i0.ɵɵelementContainer(9, 25);
|
|
16028
|
+
i0.ɵɵelementEnd();
|
|
16029
|
+
i0.ɵɵelementEnd();
|
|
16030
|
+
} if (rf & 2) {
|
|
16031
|
+
const node_r11 = ctx.$implicit;
|
|
16032
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
16033
|
+
i0.ɵɵadvance(2);
|
|
16034
|
+
i0.ɵɵattribute("aria-label", "toggle " + node_r11.name);
|
|
16035
|
+
i0.ɵɵadvance(1);
|
|
16036
|
+
i0.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r11) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0.ɵɵsanitizeUrl);
|
|
16037
|
+
i0.ɵɵadvance(2);
|
|
16038
|
+
i0.ɵɵtextInterpolate(node_r11.childDocumentCount);
|
|
16039
|
+
i0.ɵɵadvance(2);
|
|
16040
|
+
i0.ɵɵtextInterpolate(node_r11.name);
|
|
16041
|
+
i0.ɵɵadvance(1);
|
|
16042
|
+
i0.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r11));
|
|
16043
|
+
} }
|
|
16044
|
+
function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
16045
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
16046
|
+
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
16047
|
+
i0.ɵɵelementStart(2, "div");
|
|
16048
|
+
i0.ɵɵelementStart(3, "cdk-tree", 9);
|
|
16049
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
|
|
16050
|
+
i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
16051
|
+
i0.ɵɵelementEnd();
|
|
16052
|
+
i0.ɵɵelementEnd();
|
|
16053
|
+
i0.ɵɵelementEnd();
|
|
16054
|
+
} if (rf & 2) {
|
|
16055
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16056
|
+
i0.ɵɵadvance(1);
|
|
16057
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
|
|
16058
|
+
i0.ɵɵadvance(2);
|
|
16059
|
+
i0.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
|
|
16060
|
+
i0.ɵɵadvance(2);
|
|
16061
|
+
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
|
|
16062
|
+
} }
|
|
16063
|
+
const MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
16064
|
+
class CaseFileViewFolderComponent {
|
|
16065
|
+
constructor(windowService, router, documentManagementService, dialog) {
|
|
16066
|
+
this.windowService = windowService;
|
|
16067
|
+
this.router = router;
|
|
16068
|
+
this.documentManagementService = documentManagementService;
|
|
16069
|
+
this.dialog = dialog;
|
|
16070
|
+
this.clickedDocument = new EventEmitter();
|
|
16071
|
+
this.moveDocument = new EventEmitter();
|
|
16072
|
+
this.categories = [];
|
|
16073
|
+
this.getChildren = (node) => of(node.children);
|
|
16074
|
+
this.nestedChildren = (_, nodeData) => nodeData.children;
|
|
16075
|
+
this.nestedTreeControl = new NestedTreeControl(this.getChildren);
|
|
16076
|
+
}
|
|
16077
|
+
get documentCount() {
|
|
16078
|
+
var _a;
|
|
16079
|
+
if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
|
|
16080
|
+
return this.nestedDataSource.reduce((acc, item) => {
|
|
16081
|
+
return acc + item.childDocumentCount;
|
|
16082
|
+
}, 0);
|
|
16083
|
+
}
|
|
16084
|
+
else {
|
|
16085
|
+
return 0;
|
|
16086
|
+
}
|
|
16087
|
+
}
|
|
16088
|
+
ngOnInit() {
|
|
16089
|
+
this.documentFilterFormGroup = new FormGroup({});
|
|
16090
|
+
this.documentSearchFormControl = new FormControl('');
|
|
16091
|
+
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
16092
|
+
// Listen to search input and initiate filter documents if at least three characters entered
|
|
16093
|
+
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(tap((searchTerm) => this.searchTermLength = searchTerm.length), switchMap((searchTerm) => this.filter(searchTerm.toLowerCase()).pipe())).subscribe(documentTreeData => {
|
|
16094
|
+
this.nestedDataSource = documentTreeData;
|
|
16095
|
+
this.nestedTreeControl.dataNodes = documentTreeData;
|
|
16096
|
+
this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
|
|
16097
|
+
? this.nestedTreeControl.expandAll()
|
|
16098
|
+
: this.nestedTreeControl.collapseAll();
|
|
16099
|
+
});
|
|
16100
|
+
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
16101
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(categoriesAndDocuments => {
|
|
16102
|
+
const categories = categoriesAndDocuments.categories;
|
|
16103
|
+
this.categories = categories;
|
|
16104
|
+
// Generate document tree data from categories
|
|
16105
|
+
this.documentTreeData = this.generateTreeData(categories);
|
|
16106
|
+
// Append uncategorised documents
|
|
16107
|
+
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
16108
|
+
const uncategorisedDocuments = this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
16109
|
+
this.documentTreeData.push(uncategorisedDocuments);
|
|
16110
|
+
}
|
|
16111
|
+
// Initialise cdk tree with generated data
|
|
16112
|
+
this.nestedDataSource = this.documentTreeData;
|
|
16113
|
+
this.nestedTreeControl.dataNodes = this.documentTreeData;
|
|
16114
|
+
});
|
|
16115
|
+
}
|
|
16116
|
+
generateTreeData(categories) {
|
|
16117
|
+
return categories.reduce((tree, node) => {
|
|
16118
|
+
const newDocumentTreeNode = new DocumentTreeNode();
|
|
16119
|
+
newDocumentTreeNode.name = node.category_name;
|
|
16120
|
+
newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
|
|
16121
|
+
newDocumentTreeNode.children = [...this.generateTreeData(node.sub_categories), ...this.getDocuments(node.documents)];
|
|
16122
|
+
return [
|
|
16123
|
+
...tree,
|
|
16124
|
+
newDocumentTreeNode,
|
|
16125
|
+
];
|
|
16126
|
+
}, []);
|
|
16127
|
+
}
|
|
16128
|
+
getDocuments(documents) {
|
|
16129
|
+
const documentsToReturn = [];
|
|
16130
|
+
documents.forEach(document => {
|
|
16131
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16132
|
+
documentTreeNode.name = document.document_filename;
|
|
16133
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
16134
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
16135
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
16136
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
16137
|
+
documentsToReturn.push(documentTreeNode);
|
|
16138
|
+
});
|
|
16139
|
+
return documentsToReturn;
|
|
16140
|
+
}
|
|
16141
|
+
getUncategorisedDocuments(uncategorisedDocuments) {
|
|
16142
|
+
const documents = [];
|
|
16143
|
+
uncategorisedDocuments.forEach(document => {
|
|
16144
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16145
|
+
documentTreeNode.name = document.document_filename;
|
|
16146
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
16147
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
16148
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
16149
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
16150
|
+
documents.push(documentTreeNode);
|
|
16151
|
+
});
|
|
16152
|
+
const uncategorisedNode = new DocumentTreeNode();
|
|
16153
|
+
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
16154
|
+
uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
|
|
16155
|
+
uncategorisedNode.children = documents;
|
|
16156
|
+
return uncategorisedNode;
|
|
16157
|
+
}
|
|
16158
|
+
filter(searchTerm) {
|
|
16159
|
+
// Make a copy of the data so we do not mutate the original
|
|
16160
|
+
function copy(node) {
|
|
16161
|
+
const documentTreeNode = new DocumentTreeNode();
|
|
16162
|
+
return Object.assign(documentTreeNode, node);
|
|
16163
|
+
}
|
|
16164
|
+
let filteredData = this.documentTreeData;
|
|
16165
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
16166
|
+
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
16167
|
+
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
16168
|
+
return true;
|
|
16169
|
+
}
|
|
16170
|
+
// Call recursively if node has children
|
|
16171
|
+
if (node.children) {
|
|
16172
|
+
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
16173
|
+
}
|
|
16174
|
+
});
|
|
16175
|
+
}
|
|
16176
|
+
return of(filteredData);
|
|
16177
|
+
}
|
|
16178
|
+
triggerDocumentAction(actionType, documentTreeNode) {
|
|
16179
|
+
var _a;
|
|
16180
|
+
switch (actionType) {
|
|
16181
|
+
case ('changeFolder'):
|
|
16182
|
+
this.openMoveDialog(documentTreeNode);
|
|
16183
|
+
break;
|
|
16184
|
+
case ('openInANewTab'):
|
|
16185
|
+
this.windowService.setLocalStorage(MEDIA_VIEWER_LOCALSTORAGE_KEY, this.documentManagementService.getMediaViewerInfo({
|
|
16186
|
+
document_binary_url: documentTreeNode.document_binary_url,
|
|
16187
|
+
document_filename: documentTreeNode.document_filename
|
|
16188
|
+
}));
|
|
16189
|
+
this.windowService.openOnNewTab((_a = this.router.createUrlTree(['/media-viewer'])) === null || _a === void 0 ? void 0 : _a.toString());
|
|
16190
|
+
break;
|
|
16191
|
+
case ('download'):
|
|
16192
|
+
// Create a URL from the document_binary_url property (absolute URL) and use the path portion (relative URL).
|
|
16193
|
+
// This is necessary because the Manage Cases application will automatically apply a proxy to the request, with
|
|
16194
|
+
// the correct remote endpoint
|
|
16195
|
+
this.downloadFile(new URL(documentTreeNode.document_binary_url).pathname, documentTreeNode.document_filename);
|
|
16196
|
+
break;
|
|
16197
|
+
case ('print'):
|
|
16198
|
+
this.printDocument(new URL(documentTreeNode.document_binary_url).pathname);
|
|
16199
|
+
break;
|
|
16200
|
+
default:
|
|
16201
|
+
return;
|
|
16202
|
+
}
|
|
16203
|
+
}
|
|
16204
|
+
sortDataSourceAscAlphabetically() {
|
|
16205
|
+
const sortedData = this.nestedDataSource.map(item => {
|
|
16206
|
+
item.sortChildrenAscending();
|
|
16207
|
+
return item;
|
|
16208
|
+
});
|
|
16209
|
+
this.updateNodeData(sortedData);
|
|
16210
|
+
}
|
|
16211
|
+
sortDataSourceDescAlphabetically() {
|
|
16212
|
+
const sortedData = this.nestedDataSource.map(item => {
|
|
16213
|
+
item.sortChildrenDescending();
|
|
16214
|
+
return item;
|
|
16215
|
+
});
|
|
16216
|
+
this.updateNodeData(sortedData);
|
|
16217
|
+
}
|
|
16218
|
+
updateNodeData(data) {
|
|
16219
|
+
const prevSelected = this.nestedTreeControl.expansionModel.selected.map((item) => {
|
|
16220
|
+
return item.name;
|
|
16221
|
+
});
|
|
16222
|
+
this.nestedTreeControl.collapseAll();
|
|
16223
|
+
this.nestedDataSource = data.map((item) => {
|
|
16224
|
+
const newDocumentTreeNode = new DocumentTreeNode();
|
|
16225
|
+
newDocumentTreeNode.name = item.name;
|
|
16226
|
+
newDocumentTreeNode.type = item.type;
|
|
16227
|
+
newDocumentTreeNode.children = item.children;
|
|
16228
|
+
return newDocumentTreeNode;
|
|
16229
|
+
});
|
|
16230
|
+
const flattenedArray = this.nestedDataSource.map((item) => {
|
|
16231
|
+
return item.flattenedAll;
|
|
16232
|
+
}).flat();
|
|
16233
|
+
const newObjects = flattenedArray.filter((item) => {
|
|
16234
|
+
return prevSelected.includes(item.name);
|
|
16235
|
+
});
|
|
16236
|
+
newObjects.forEach(object => this.nestedTreeControl.expand(object));
|
|
16237
|
+
}
|
|
16238
|
+
ngOnDestroy() {
|
|
16239
|
+
var _a, _b;
|
|
16240
|
+
(_a = this.categoriesAndDocumentsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
16241
|
+
(_b = this.documentFilterSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
16242
|
+
}
|
|
16243
|
+
openMoveDialog(node) {
|
|
16244
|
+
const dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
16245
|
+
width: '570px',
|
|
16246
|
+
data: { categories: this.categories, document: node }
|
|
16247
|
+
});
|
|
16248
|
+
dialogRef.afterClosed().subscribe(newCatId => {
|
|
16249
|
+
if (newCatId) {
|
|
16250
|
+
this.moveDocument.emit({ newCategory: newCatId, document: node });
|
|
16251
|
+
}
|
|
16252
|
+
});
|
|
16253
|
+
}
|
|
16254
|
+
printDocument(url) {
|
|
16255
|
+
const printWindow = window.open(url);
|
|
16256
|
+
printWindow.print();
|
|
16257
|
+
}
|
|
16258
|
+
downloadFile(url, downloadFileName) {
|
|
16259
|
+
const a = document.createElement('a');
|
|
16260
|
+
document.body.appendChild(a);
|
|
16261
|
+
a.setAttribute('style', 'display: none');
|
|
16262
|
+
a.href = url;
|
|
16263
|
+
a.download = downloadFileName;
|
|
16264
|
+
a.click();
|
|
16265
|
+
a.remove();
|
|
16266
|
+
}
|
|
16267
|
+
}
|
|
16268
|
+
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
16269
|
+
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
16270
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
|
|
16271
|
+
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)); };
|
|
16272
|
+
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) {
|
|
16273
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
16274
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
16275
|
+
i0.ɵɵelement(2, "input", 2);
|
|
16276
|
+
i0.ɵɵelementEnd();
|
|
16277
|
+
i0.ɵɵelementEnd();
|
|
16278
|
+
i0.ɵɵelementStart(3, "div", 3);
|
|
16279
|
+
i0.ɵɵelementStart(4, "div", 4);
|
|
16280
|
+
i0.ɵɵtext(5);
|
|
16281
|
+
i0.ɵɵelementEnd();
|
|
16282
|
+
i0.ɵɵelementStart(6, "div");
|
|
16283
|
+
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
16284
|
+
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(); });
|
|
16285
|
+
i0.ɵɵelementEnd();
|
|
16286
|
+
i0.ɵɵelementEnd();
|
|
16287
|
+
i0.ɵɵelementEnd();
|
|
16288
|
+
i0.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 6, 4, "div", 6);
|
|
16289
|
+
} if (rf & 2) {
|
|
16290
|
+
i0.ɵɵadvance(1);
|
|
16291
|
+
i0.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
16292
|
+
i0.ɵɵadvance(4);
|
|
16293
|
+
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
16294
|
+
i0.ɵɵadvance(3);
|
|
16295
|
+
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
16296
|
+
} }, 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}"] });
|
|
16297
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
16298
|
+
type: Component,
|
|
16299
|
+
args: [{
|
|
16300
|
+
selector: 'ccd-case-file-view-folder',
|
|
16301
|
+
templateUrl: './case-file-view-folder.component.html',
|
|
16302
|
+
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
16303
|
+
}]
|
|
16304
|
+
}], function () { return [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
16305
|
+
type: Input
|
|
16306
|
+
}], allowMoving: [{
|
|
16307
|
+
type: Input
|
|
16308
|
+
}], clickedDocument: [{
|
|
16309
|
+
type: Output
|
|
16310
|
+
}], moveDocument: [{
|
|
16311
|
+
type: Output
|
|
16312
|
+
}] }); })();
|
|
16313
|
+
|
|
16314
|
+
function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) { if (rf & 1) {
|
|
16315
|
+
i0.ɵɵelementStart(0, "tr");
|
|
16316
|
+
i0.ɵɵelementStart(1, "td", 13);
|
|
16317
|
+
i0.ɵɵtext(2, "None");
|
|
16318
|
+
i0.ɵɵelementEnd();
|
|
16319
|
+
i0.ɵɵelementEnd();
|
|
16320
|
+
} }
|
|
16321
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) { if (rf & 1) {
|
|
16322
|
+
i0.ɵɵelementStart(0, "strong", 19);
|
|
16323
|
+
i0.ɵɵtext(1, "Active");
|
|
16324
|
+
i0.ɵɵelementEnd();
|
|
16325
|
+
} }
|
|
16326
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) { if (rf & 1) {
|
|
16327
|
+
i0.ɵɵelementStart(0, "strong", 20);
|
|
16328
|
+
i0.ɵɵtext(1, "Inactive");
|
|
16329
|
+
i0.ɵɵelementEnd();
|
|
16330
|
+
} }
|
|
16331
|
+
function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) { if (rf & 1) {
|
|
16332
|
+
i0.ɵɵelementStart(0, "strong", 20);
|
|
15300
16333
|
i0.ɵɵtext(1, "Requested");
|
|
15301
16334
|
i0.ɵɵelementEnd();
|
|
15302
16335
|
} }
|
|
@@ -17236,7 +18269,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
17236
18269
|
i0.ɵɵadvance(1);
|
|
17237
18270
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
17238
18271
|
i0.ɵɵadvance(1);
|
|
17239
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.
|
|
18272
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
17240
18273
|
i0.ɵɵadvance(3);
|
|
17241
18274
|
i0.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
17242
18275
|
} }
|
|
@@ -17335,10 +18368,14 @@ class LinkCasesComponent {
|
|
|
17335
18368
|
this.linkedCasesStateEmitter = new EventEmitter();
|
|
17336
18369
|
this.errorMessages = [];
|
|
17337
18370
|
this.selectedCases = [];
|
|
18371
|
+
this.linkCaseReasons = [];
|
|
17338
18372
|
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
17339
18373
|
}
|
|
17340
18374
|
ngOnInit() {
|
|
17341
18375
|
this.initForm();
|
|
18376
|
+
this.caseId = this.linkedCasesService.caseId;
|
|
18377
|
+
this.caseName = this.linkedCasesService.caseName;
|
|
18378
|
+
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
17342
18379
|
if (this.linkedCasesService.editMode) {
|
|
17343
18380
|
// this may have includes the currently added one but yet to be submitted.
|
|
17344
18381
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
@@ -17354,7 +18391,7 @@ class LinkCasesComponent {
|
|
|
17354
18391
|
});
|
|
17355
18392
|
}
|
|
17356
18393
|
get getReasonTypeFormArray() {
|
|
17357
|
-
return this.fb.array(this.
|
|
18394
|
+
return this.fb.array(this.linkCaseReasons.map((val) => this.fb.group({
|
|
17358
18395
|
key: [val.key],
|
|
17359
18396
|
value_en: [val.value_en],
|
|
17360
18397
|
value_cy: [val.value_cy],
|
|
@@ -17597,7 +18634,7 @@ LinkCasesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LinkCasesComponent, se
|
|
|
17597
18634
|
i0.ɵɵelementEnd();
|
|
17598
18635
|
} if (rf & 2) {
|
|
17599
18636
|
i0.ɵɵadvance(4);
|
|
17600
|
-
i0.ɵɵtextInterpolate2("Link cases to ", ctx.
|
|
18637
|
+
i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
17601
18638
|
i0.ɵɵadvance(4);
|
|
17602
18639
|
i0.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
17603
18640
|
i0.ɵɵadvance(4);
|
|
@@ -20261,7 +21298,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
|
|
|
20261
21298
|
} if (rf & 2) {
|
|
20262
21299
|
i0.ɵɵadvance(1);
|
|
20263
21300
|
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
|
|
20264
|
-
} }, directives: [i1$
|
|
21301
|
+
} }, directives: [i1$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
20265
21302
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
20266
21303
|
type: Component,
|
|
20267
21304
|
args: [{
|
|
@@ -20605,6 +21642,14 @@ const PALETTE_COMPONENTS = [
|
|
|
20605
21642
|
WriteFixedRadioListFieldComponent,
|
|
20606
21643
|
WriteCaseLinkFieldComponent,
|
|
20607
21644
|
WriteCollectionFieldComponent,
|
|
21645
|
+
// ComponentLauncher web components
|
|
21646
|
+
CaseFileViewFieldComponent,
|
|
21647
|
+
CaseFileViewFieldReadComponent,
|
|
21648
|
+
CaseFileViewFolderComponent,
|
|
21649
|
+
CaseFileViewFolderSortComponent,
|
|
21650
|
+
CaseFileViewOverlayMenuComponent,
|
|
21651
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21652
|
+
CaseFileViewFolderSelectorComponent,
|
|
20608
21653
|
LinkedCasesToTableComponent,
|
|
20609
21654
|
LinkedCasesFromTableComponent,
|
|
20610
21655
|
BeforeYouStartComponent,
|
|
@@ -20654,8 +21699,13 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20654
21699
|
MatInputModule,
|
|
20655
21700
|
MatDatepickerModule,
|
|
20656
21701
|
MatAutocompleteModule,
|
|
21702
|
+
CdkTreeModule,
|
|
21703
|
+
OverlayModule,
|
|
20657
21704
|
PaymentLibModule,
|
|
20658
|
-
ScrollToModule.forRoot()
|
|
21705
|
+
ScrollToModule.forRoot(),
|
|
21706
|
+
MatDialogModule,
|
|
21707
|
+
MediaViewerModule,
|
|
21708
|
+
LoadingModule
|
|
20659
21709
|
], NgxMatDatetimePickerModule,
|
|
20660
21710
|
NgxMatNativeDateModule,
|
|
20661
21711
|
NgxMatTimepickerModule,
|
|
@@ -20746,6 +21796,14 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20746
21796
|
WriteFixedRadioListFieldComponent,
|
|
20747
21797
|
WriteCaseLinkFieldComponent,
|
|
20748
21798
|
WriteCollectionFieldComponent,
|
|
21799
|
+
// ComponentLauncher web components
|
|
21800
|
+
CaseFileViewFieldComponent,
|
|
21801
|
+
CaseFileViewFieldReadComponent,
|
|
21802
|
+
CaseFileViewFolderComponent,
|
|
21803
|
+
CaseFileViewFolderSortComponent,
|
|
21804
|
+
CaseFileViewOverlayMenuComponent,
|
|
21805
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21806
|
+
CaseFileViewFolderSelectorComponent,
|
|
20749
21807
|
LinkedCasesToTableComponent,
|
|
20750
21808
|
LinkedCasesFromTableComponent,
|
|
20751
21809
|
BeforeYouStartComponent,
|
|
@@ -20774,7 +21832,11 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20774
21832
|
MatInputModule,
|
|
20775
21833
|
MatDatepickerModule,
|
|
20776
21834
|
MatAutocompleteModule,
|
|
20777
|
-
|
|
21835
|
+
CdkTreeModule,
|
|
21836
|
+
OverlayModule,
|
|
21837
|
+
PaymentLibModule, i2$1.ScrollToModule, MatDialogModule,
|
|
21838
|
+
MediaViewerModule,
|
|
21839
|
+
LoadingModule], exports: [NgxMatDatetimePickerModule,
|
|
20778
21840
|
NgxMatNativeDateModule,
|
|
20779
21841
|
NgxMatTimepickerModule,
|
|
20780
21842
|
TabsModule,
|
|
@@ -20851,6 +21913,14 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20851
21913
|
WriteFixedRadioListFieldComponent,
|
|
20852
21914
|
WriteCaseLinkFieldComponent,
|
|
20853
21915
|
WriteCollectionFieldComponent,
|
|
21916
|
+
// ComponentLauncher web components
|
|
21917
|
+
CaseFileViewFieldComponent,
|
|
21918
|
+
CaseFileViewFieldReadComponent,
|
|
21919
|
+
CaseFileViewFolderComponent,
|
|
21920
|
+
CaseFileViewFolderSortComponent,
|
|
21921
|
+
CaseFileViewOverlayMenuComponent,
|
|
21922
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
21923
|
+
CaseFileViewFolderSelectorComponent,
|
|
20854
21924
|
LinkedCasesToTableComponent,
|
|
20855
21925
|
LinkedCasesFromTableComponent,
|
|
20856
21926
|
BeforeYouStartComponent,
|
|
@@ -20884,8 +21954,13 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20884
21954
|
MatInputModule,
|
|
20885
21955
|
MatDatepickerModule,
|
|
20886
21956
|
MatAutocompleteModule,
|
|
21957
|
+
CdkTreeModule,
|
|
21958
|
+
OverlayModule,
|
|
20887
21959
|
PaymentLibModule,
|
|
20888
|
-
ScrollToModule.forRoot()
|
|
21960
|
+
ScrollToModule.forRoot(),
|
|
21961
|
+
MatDialogModule,
|
|
21962
|
+
MediaViewerModule,
|
|
21963
|
+
LoadingModule
|
|
20889
21964
|
],
|
|
20890
21965
|
declarations: [
|
|
20891
21966
|
FixedListPipe,
|
|
@@ -20926,7 +22001,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
20926
22001
|
CommonDataService,
|
|
20927
22002
|
JurisdictionService$1,
|
|
20928
22003
|
{ provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
20929
|
-
]
|
|
22004
|
+
],
|
|
22005
|
+
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
20930
22006
|
}]
|
|
20931
22007
|
}], null, null); })();
|
|
20932
22008
|
i0.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], []);
|
|
@@ -20964,6 +22040,10 @@ i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryField
|
|
|
20964
22040
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
|
|
20965
22041
|
i0.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, WriteLinkedCasesComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
|
|
20966
22042
|
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
22043
|
+
i0.ɵɵsetComponentScope(
|
|
22044
|
+
// ComponentLauncher web components
|
|
22045
|
+
CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
22046
|
+
i0.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1.NgIf, CaseFileViewFolderComponent, i12.ɵcs], []);
|
|
20967
22047
|
i0.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
20968
22048
|
i0.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1.NgIf, i1.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
20969
22049
|
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 +22948,7 @@ LoadingSpinnerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoadingSpinnerCom
|
|
|
21868
22948
|
} if (rf & 2) {
|
|
21869
22949
|
i0.ɵɵadvance(3);
|
|
21870
22950
|
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
|
|
22951
|
+
} }, 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
22952
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
21873
22953
|
type: Component,
|
|
21874
22954
|
args: [{
|
|
@@ -22655,7 +23735,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
|
|
|
22655
23735
|
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
22656
23736
|
i0.ɵɵadvance(3);
|
|
22657
23737
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
22658
|
-
} }, directives: [i1$
|
|
23738
|
+
} }, 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
23739
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
22660
23740
|
type: Component,
|
|
22661
23741
|
args: [{
|
|
@@ -23005,7 +24085,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
|
|
|
23005
24085
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
|
|
23006
24086
|
i0.ɵɵadvance(2);
|
|
23007
24087
|
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$
|
|
24088
|
+
} }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
|
|
23009
24089
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
23010
24090
|
type: Component,
|
|
23011
24091
|
args: [{
|
|
@@ -24942,8 +26022,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template(rf, ctx)
|
|
|
24942
26022
|
i0.ɵɵproperty("id", tab_r19.id)("label", tab_r19.label);
|
|
24943
26023
|
} }
|
|
24944
26024
|
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",
|
|
26025
|
+
i0.ɵɵelementStart(0, "th", 37);
|
|
26026
|
+
i0.ɵɵelementStart(1, "div", 38);
|
|
24947
26027
|
i0.ɵɵtext(2);
|
|
24948
26028
|
i0.ɵɵelementEnd();
|
|
24949
26029
|
i0.ɵɵelementEnd();
|
|
@@ -24955,9 +26035,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24955
26035
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
24956
26036
|
i0.ɵɵelementStart(0, "tr");
|
|
24957
26037
|
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",
|
|
26038
|
+
i0.ɵɵelementStart(2, "th", 34);
|
|
26039
|
+
i0.ɵɵelementStart(3, "span", 35);
|
|
26040
|
+
i0.ɵɵelement(4, "ccd-field-read", 36);
|
|
24961
26041
|
i0.ɵɵelementEnd();
|
|
24962
26042
|
i0.ɵɵelementEnd();
|
|
24963
26043
|
i0.ɵɵelementEnd();
|
|
@@ -24966,21 +26046,25 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24966
26046
|
const ctx_r25 = i0.ɵɵnextContext(4);
|
|
24967
26047
|
i0.ɵɵadvance(1);
|
|
24968
26048
|
i0.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
24969
|
-
i0.ɵɵadvance(
|
|
26049
|
+
i0.ɵɵadvance(1);
|
|
26050
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26051
|
+
i0.ɵɵadvance(2);
|
|
24970
26052
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
24971
26053
|
} }
|
|
24972
26054
|
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",
|
|
26055
|
+
i0.ɵɵelementStart(0, "tr", 39);
|
|
26056
|
+
i0.ɵɵelementStart(1, "th", 34);
|
|
26057
|
+
i0.ɵɵelementStart(2, "span", 35);
|
|
26058
|
+
i0.ɵɵelement(3, "ccd-field-read", 36);
|
|
24977
26059
|
i0.ɵɵelementEnd();
|
|
24978
26060
|
i0.ɵɵelementEnd();
|
|
24979
26061
|
i0.ɵɵelementEnd();
|
|
24980
26062
|
} if (rf & 2) {
|
|
24981
26063
|
const field_r24 = i0.ɵɵnextContext().$implicit;
|
|
24982
26064
|
const ctx_r26 = i0.ɵɵnextContext(4);
|
|
24983
|
-
i0.ɵɵadvance(
|
|
26065
|
+
i0.ɵɵadvance(1);
|
|
26066
|
+
i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
26067
|
+
i0.ɵɵadvance(2);
|
|
24984
26068
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
24985
26069
|
} }
|
|
24986
26070
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -24988,8 +26072,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_
|
|
|
24988
26072
|
i0.ɵɵelementStart(1, "div", 29);
|
|
24989
26073
|
i0.ɵɵelementContainerStart(2, 30);
|
|
24990
26074
|
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,
|
|
26075
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 31);
|
|
26076
|
+
i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 32);
|
|
24993
26077
|
i0.ɵɵelementContainerEnd();
|
|
24994
26078
|
i0.ɵɵelementEnd();
|
|
24995
26079
|
i0.ɵɵelementContainerEnd();
|
|
@@ -25326,12 +26410,14 @@ class CaseFullAccessViewComponent {
|
|
|
25326
26410
|
return false;
|
|
25327
26411
|
}
|
|
25328
26412
|
/**
|
|
25329
|
-
* Indicates that a CaseField is to be displayed without a label, as is expected for
|
|
26413
|
+
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
26414
|
+
* fields.
|
|
25330
26415
|
* @param caseField The `CaseField` instance to check
|
|
25331
26416
|
* @returns `true` if it should not have a label; `false` otherwise
|
|
25332
26417
|
*/
|
|
25333
26418
|
isFieldToHaveNoLabel(caseField) {
|
|
25334
|
-
return
|
|
26419
|
+
return caseField.field_type.type === 'ComponentLauncher'
|
|
26420
|
+
&& caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
|
|
25335
26421
|
}
|
|
25336
26422
|
init() {
|
|
25337
26423
|
// Clone and sort tabs array
|
|
@@ -25386,7 +26472,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
|
|
|
25386
26472
|
} if (rf & 2) {
|
|
25387
26473
|
let _t;
|
|
25388
26474
|
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"]
|
|
26475
|
+
} }, 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
26476
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
25391
26477
|
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
25392
26478
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
|
|
@@ -28599,11 +29685,11 @@ function SearchResultComponent_table_0_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
28599
29685
|
i0.ɵɵadvance(2);
|
|
28600
29686
|
i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
|
|
28601
29687
|
} }
|
|
28602
|
-
function
|
|
29688
|
+
function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
28603
29689
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
28604
29690
|
i0.ɵɵelementStart(0, "div", 27);
|
|
28605
29691
|
i0.ɵɵelementStart(1, "a", 28);
|
|
28606
|
-
i0.ɵɵlistener("click", function
|
|
29692
|
+
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
29693
|
i0.ɵɵelementEnd();
|
|
28608
29694
|
i0.ɵɵelementEnd();
|
|
28609
29695
|
} if (rf & 2) {
|
|
@@ -28614,18 +29700,25 @@ function SearchResultComponent_table_0_th_10_div_3_Template(rf, ctx) { if (rf &
|
|
|
28614
29700
|
} }
|
|
28615
29701
|
function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
28616
29702
|
const _r22 = i0.ɵɵgetCurrentView();
|
|
28617
|
-
i0.ɵɵelementStart(0, "th"
|
|
28618
|
-
i0.ɵɵelementStart(1, "
|
|
28619
|
-
i0.ɵɵ
|
|
28620
|
-
i0.ɵɵ
|
|
29703
|
+
i0.ɵɵelementStart(0, "th");
|
|
29704
|
+
i0.ɵɵelementStart(1, "table", 24);
|
|
29705
|
+
i0.ɵɵelementStart(2, "tr");
|
|
29706
|
+
i0.ɵɵelementStart(3, "th");
|
|
29707
|
+
i0.ɵɵelementStart(4, "div", 25);
|
|
29708
|
+
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); });
|
|
29709
|
+
i0.ɵɵtext(5);
|
|
29710
|
+
i0.ɵɵelementEnd();
|
|
29711
|
+
i0.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
|
|
29712
|
+
i0.ɵɵelementEnd();
|
|
29713
|
+
i0.ɵɵelementEnd();
|
|
28621
29714
|
i0.ɵɵelementEnd();
|
|
28622
|
-
i0.ɵɵtemplate(3, SearchResultComponent_table_0_th_10_div_3_Template, 2, 1, "div", 26);
|
|
28623
29715
|
i0.ɵɵelementEnd();
|
|
28624
29716
|
} if (rf & 2) {
|
|
28625
29717
|
const col_r15 = ctx.$implicit;
|
|
28626
29718
|
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
28627
|
-
i0.ɵɵ
|
|
28628
|
-
i0.ɵɵ
|
|
29719
|
+
i0.ɵɵadvance(1);
|
|
29720
|
+
i0.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
|
|
29721
|
+
i0.ɵɵadvance(4);
|
|
28629
29722
|
i0.ɵɵtextInterpolate(col_r15.label);
|
|
28630
29723
|
i0.ɵɵadvance(1);
|
|
28631
29724
|
i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
|
|
@@ -28637,10 +29730,10 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ct
|
|
|
28637
29730
|
const _r30 = i0.ɵɵgetCurrentView();
|
|
28638
29731
|
i0.ɵɵelementStart(0, "td", 20);
|
|
28639
29732
|
i0.ɵɵelementStart(1, "div", 21);
|
|
28640
|
-
i0.ɵɵelementStart(2, "input",
|
|
29733
|
+
i0.ɵɵelementStart(2, "input", 31);
|
|
28641
29734
|
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
29735
|
i0.ɵɵelementEnd();
|
|
28643
|
-
i0.ɵɵelement(3, "label",
|
|
29736
|
+
i0.ɵɵelement(3, "label", 32);
|
|
28644
29737
|
i0.ɵɵelementEnd();
|
|
28645
29738
|
i0.ɵɵelementEnd();
|
|
28646
29739
|
} if (rf & 2) {
|
|
@@ -28655,7 +29748,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template(rf, ct
|
|
|
28655
29748
|
} }
|
|
28656
29749
|
const _c0 = function () { return ["value"]; };
|
|
28657
29750
|
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",
|
|
29751
|
+
i0.ɵɵelement(0, "ccd-field-read", 41);
|
|
28659
29752
|
} if (rf & 2) {
|
|
28660
29753
|
const col_r32 = i0.ɵɵnextContext(3).$implicit;
|
|
28661
29754
|
const result_r24 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28670,9 +29763,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
|
|
|
28670
29763
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r24.case_id));
|
|
28671
29764
|
} }
|
|
28672
29765
|
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,
|
|
29766
|
+
i0.ɵɵelementContainerStart(0, 38);
|
|
29767
|
+
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);
|
|
29768
|
+
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
29769
|
i0.ɵɵelementContainerEnd();
|
|
28677
29770
|
} if (rf & 2) {
|
|
28678
29771
|
const _r38 = i0.ɵɵreference(3);
|
|
@@ -28683,9 +29776,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_containe
|
|
|
28683
29776
|
i0.ɵɵproperty("ngIf", ctx_r36.draftPrefixOrGet(col_r32, result_r24))("ngIfElse", _r38);
|
|
28684
29777
|
} }
|
|
28685
29778
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
28686
|
-
i0.ɵɵelementStart(0, "a",
|
|
29779
|
+
i0.ɵɵelementStart(0, "a", 36);
|
|
28687
29780
|
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",
|
|
29781
|
+
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
29782
|
i0.ɵɵelementEnd();
|
|
28690
29783
|
} if (rf & 2) {
|
|
28691
29784
|
const result_r24 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -28696,8 +29789,8 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf
|
|
|
28696
29789
|
i0.ɵɵproperty("ngIf", !ctx_r34.hideRows);
|
|
28697
29790
|
} }
|
|
28698
29791
|
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",
|
|
29792
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
29793
|
+
i0.ɵɵelement(1, "ccd-field-read", 41);
|
|
28701
29794
|
i0.ɵɵelementEnd();
|
|
28702
29795
|
} if (rf & 2) {
|
|
28703
29796
|
const col_r32 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28708,9 +29801,9 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(
|
|
|
28708
29801
|
i0.ɵɵproperty("caseField", result_r24.columns[col_r32.case_field_id])("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
28709
29802
|
} }
|
|
28710
29803
|
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",
|
|
29804
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
29805
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
29806
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
28714
29807
|
i0.ɵɵelementEnd();
|
|
28715
29808
|
} if (rf & 2) {
|
|
28716
29809
|
const colIndex_r33 = ctx.index;
|
|
@@ -28722,7 +29815,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ct
|
|
|
28722
29815
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
28723
29816
|
i0.ɵɵelementStart(0, "td");
|
|
28724
29817
|
i0.ɵɵelementStart(1, "div");
|
|
28725
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
29818
|
+
i0.ɵɵelement(2, "ccd-activity", 42);
|
|
28726
29819
|
i0.ɵɵelementEnd();
|
|
28727
29820
|
i0.ɵɵelementEnd();
|
|
28728
29821
|
} if (rf & 2) {
|
|
@@ -28736,7 +29829,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template(rf, ct
|
|
|
28736
29829
|
function SearchResultComponent_table_0_ng_container_13_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
28737
29830
|
i0.ɵɵelementStart(0, "tr");
|
|
28738
29831
|
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",
|
|
29832
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
28740
29833
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
28741
29834
|
i0.ɵɵelementEnd();
|
|
28742
29835
|
} if (rf & 2) {
|
|
@@ -28751,7 +29844,7 @@ function SearchResultComponent_table_0_ng_container_13_tr_1_Template(rf, ctx) {
|
|
|
28751
29844
|
const _c1 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
|
|
28752
29845
|
function SearchResultComponent_table_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
28753
29846
|
i0.ɵɵelementContainerStart(0);
|
|
28754
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr",
|
|
29847
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr", 9);
|
|
28755
29848
|
i0.ɵɵpipe(2, "paginate");
|
|
28756
29849
|
i0.ɵɵelementContainerEnd();
|
|
28757
29850
|
} if (rf & 2) {
|
|
@@ -28763,10 +29856,10 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
28763
29856
|
const _r56 = i0.ɵɵgetCurrentView();
|
|
28764
29857
|
i0.ɵɵelementStart(0, "td", 20);
|
|
28765
29858
|
i0.ɵɵelementStart(1, "div", 21);
|
|
28766
|
-
i0.ɵɵelementStart(2, "input",
|
|
29859
|
+
i0.ɵɵelementStart(2, "input", 43);
|
|
28767
29860
|
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
29861
|
i0.ɵɵelementEnd();
|
|
28769
|
-
i0.ɵɵelement(3, "label",
|
|
29862
|
+
i0.ɵɵelement(3, "label", 32);
|
|
28770
29863
|
i0.ɵɵelementEnd();
|
|
28771
29864
|
i0.ɵɵelementEnd();
|
|
28772
29865
|
} if (rf & 2) {
|
|
@@ -28780,7 +29873,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
28780
29873
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r50.case_id, "");
|
|
28781
29874
|
} }
|
|
28782
29875
|
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",
|
|
29876
|
+
i0.ɵɵelement(0, "ccd-field-read", 41);
|
|
28784
29877
|
} if (rf & 2) {
|
|
28785
29878
|
const col_r60 = i0.ɵɵnextContext(3).$implicit;
|
|
28786
29879
|
const result_r50 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28795,9 +29888,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
28795
29888
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r50.case_id));
|
|
28796
29889
|
} }
|
|
28797
29890
|
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,
|
|
29891
|
+
i0.ɵɵelementContainerStart(0, 38);
|
|
29892
|
+
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);
|
|
29893
|
+
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
29894
|
i0.ɵɵelementContainerEnd();
|
|
28802
29895
|
} if (rf & 2) {
|
|
28803
29896
|
const _r66 = i0.ɵɵreference(3);
|
|
@@ -28808,9 +29901,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
28808
29901
|
i0.ɵɵproperty("ngIf", ctx_r64.draftPrefixOrGet(col_r60, result_r50))("ngIfElse", _r66);
|
|
28809
29902
|
} }
|
|
28810
29903
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
28811
|
-
i0.ɵɵelementStart(0, "a",
|
|
29904
|
+
i0.ɵɵelementStart(0, "a", 36);
|
|
28812
29905
|
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",
|
|
29906
|
+
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
29907
|
i0.ɵɵelementEnd();
|
|
28815
29908
|
} if (rf & 2) {
|
|
28816
29909
|
const result_r50 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -28821,8 +29914,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
28821
29914
|
i0.ɵɵproperty("ngIf", !ctx_r62.hideRows);
|
|
28822
29915
|
} }
|
|
28823
29916
|
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",
|
|
29917
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
29918
|
+
i0.ɵɵelement(1, "ccd-field-read", 41);
|
|
28826
29919
|
i0.ɵɵelementEnd();
|
|
28827
29920
|
} if (rf & 2) {
|
|
28828
29921
|
const col_r60 = i0.ɵɵnextContext().$implicit;
|
|
@@ -28833,9 +29926,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
28833
29926
|
i0.ɵɵproperty("caseField", result_r50.columns[col_r60.case_field_id])("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
|
|
28834
29927
|
} }
|
|
28835
29928
|
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",
|
|
29929
|
+
i0.ɵɵelementStart(0, "td", 33);
|
|
29930
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
29931
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
28839
29932
|
i0.ɵɵelementEnd();
|
|
28840
29933
|
} if (rf & 2) {
|
|
28841
29934
|
const colIndex_r61 = ctx.index;
|
|
@@ -28847,7 +29940,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
28847
29940
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
28848
29941
|
i0.ɵɵelementStart(0, "td");
|
|
28849
29942
|
i0.ɵɵelementStart(1, "div");
|
|
28850
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
29943
|
+
i0.ɵɵelement(2, "ccd-activity", 42);
|
|
28851
29944
|
i0.ɵɵelementEnd();
|
|
28852
29945
|
i0.ɵɵelementEnd();
|
|
28853
29946
|
} if (rf & 2) {
|
|
@@ -28861,7 +29954,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
28861
29954
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
28862
29955
|
i0.ɵɵelementStart(0, "tr");
|
|
28863
29956
|
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",
|
|
29957
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
28865
29958
|
i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
28866
29959
|
i0.ɵɵelementEnd();
|
|
28867
29960
|
} if (rf & 2) {
|
|
@@ -28875,7 +29968,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
28875
29968
|
} }
|
|
28876
29969
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
28877
29970
|
i0.ɵɵelementContainerStart(0);
|
|
28878
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
29971
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
|
|
28879
29972
|
i0.ɵɵpipe(2, "paginate");
|
|
28880
29973
|
i0.ɵɵpipe(3, "ccdSortSearchResult");
|
|
28881
29974
|
i0.ɵɵelementContainerEnd();
|
|
@@ -28897,7 +29990,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
28897
29990
|
i0.ɵɵelementStart(7, "thead");
|
|
28898
29991
|
i0.ɵɵelementStart(8, "tr", 7);
|
|
28899
29992
|
i0.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
|
|
28900
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
29993
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
|
|
28901
29994
|
i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
|
|
28902
29995
|
i0.ɵɵelementEnd();
|
|
28903
29996
|
i0.ɵɵelementEnd();
|
|
@@ -28929,7 +30022,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
28929
30022
|
} }
|
|
28930
30023
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
28931
30024
|
const _r78 = i0.ɵɵgetCurrentView();
|
|
28932
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
30025
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 44);
|
|
28933
30026
|
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
30027
|
i0.ɵɵelementEnd();
|
|
28935
30028
|
} if (rf & 2) {
|
|
@@ -28937,7 +30030,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
28937
30030
|
i0.ɵɵproperty("visibilityLabel", ctx_r1.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r1.page)("screenReaderCurrentLabel", "You're on page");
|
|
28938
30031
|
} }
|
|
28939
30032
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
28940
|
-
i0.ɵɵelementStart(0, "div",
|
|
30033
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
28941
30034
|
i0.ɵɵtext(1, " No cases found. Try using different filters.\n");
|
|
28942
30035
|
i0.ɵɵelementEnd();
|
|
28943
30036
|
} }
|
|
@@ -29275,7 +30368,7 @@ SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
|
|
|
29275
30368
|
SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
|
|
29276
30369
|
SearchResultComponent.PARAM_CASE_STATE = 'case-state';
|
|
29277
30370
|
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"], [
|
|
30371
|
+
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
30372
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
|
|
29280
30373
|
i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
|
|
29281
30374
|
i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template, 2, 0, "div", 2);
|
|
@@ -29385,7 +30478,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
29385
30478
|
]
|
|
29386
30479
|
}]
|
|
29387
30480
|
}], null, null); })();
|
|
29388
|
-
i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$
|
|
30481
|
+
i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
29389
30482
|
|
|
29390
30483
|
class ComplexFieldOverride {
|
|
29391
30484
|
}
|
|
@@ -29625,5 +30718,5 @@ class TestRouteSnapshotBuilder {
|
|
|
29625
30718
|
* Generated bundle index. Do not edit.
|
|
29626
30719
|
*/
|
|
29627
30720
|
|
|
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$1 as JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesReasonValuePipe, LinkDetails, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, 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 };
|
|
30721
|
+
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$1 as 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
30722
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|