@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-document-count → 5.0.25-case-file-view-all-document-count
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 +107 -473
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +51 -129
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +1 -4
- package/esm2015/lib/shared/components/palette/palette.module.js +4 -20
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +1 -66
- package/esm2015/public-api.js +3 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +96 -425
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +2 -6
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +0 -3
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +22 -26
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +0 -3
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.js +0 -46
- 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 +0 -38
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.js +0 -2
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +0 -100
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +0 -2
- 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 +0 -15
- 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 +0 -1
- 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 +0 -13
- 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 +0 -1
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts +0 -6
- 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 +0 -1
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +0 -13
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +0 -1
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts +0 -2
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts.map +0 -1
|
@@ -19,13 +19,11 @@ import { isUndefined } from 'util';
|
|
|
19
19
|
import { StateMachine } from '@edium/fsm';
|
|
20
20
|
import * as i1$4 from 'ngx-md';
|
|
21
21
|
import { NgxMdModule } from 'ngx-md';
|
|
22
|
-
import * as
|
|
22
|
+
import * as i1$5 from '@angular/cdk/tree';
|
|
23
23
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
24
|
-
import * as i1$5 from '@angular/cdk/overlay';
|
|
25
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
26
24
|
import * as i1$6 from '@angular/material/dialog';
|
|
27
25
|
import { MatDialogConfig } from '@angular/material/dialog';
|
|
28
|
-
import * as i2
|
|
26
|
+
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
29
27
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
30
28
|
import * as i4 from '@angular-material-components/datetime-picker';
|
|
31
29
|
import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
@@ -112,13 +110,13 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
112
110
|
i0.ɵɵadvance(3);
|
|
113
111
|
i0.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
114
112
|
} }
|
|
115
|
-
const _c0$
|
|
116
|
-
const _c1$
|
|
113
|
+
const _c0$P = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
114
|
+
const _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
117
115
|
class FooterComponent {
|
|
118
116
|
}
|
|
119
117
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
120
|
-
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
121
|
-
i0.ɵɵprojectionDef(_c0$
|
|
118
|
+
FooterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$n, 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) {
|
|
119
|
+
i0.ɵɵprojectionDef(_c0$P);
|
|
122
120
|
i0.ɵɵelementStart(0, "footer", 0);
|
|
123
121
|
i0.ɵɵelementStart(1, "div", 1);
|
|
124
122
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -185,8 +183,8 @@ function HeaderBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
185
183
|
i0.ɵɵadvance(3);
|
|
186
184
|
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
187
185
|
} }
|
|
188
|
-
const _c0$
|
|
189
|
-
const _c1$
|
|
186
|
+
const _c0$O = [[["", "headerNavigation", ""]]];
|
|
187
|
+
const _c1$m = ["[headerNavigation]"];
|
|
190
188
|
class HeaderBarComponent {
|
|
191
189
|
constructor() {
|
|
192
190
|
this.signOutRequest = new EventEmitter();
|
|
@@ -196,8 +194,8 @@ class HeaderBarComponent {
|
|
|
196
194
|
}
|
|
197
195
|
}
|
|
198
196
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
199
|
-
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
200
|
-
i0.ɵɵprojectionDef(_c0$
|
|
197
|
+
HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$m, 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) {
|
|
198
|
+
i0.ɵɵprojectionDef(_c0$O);
|
|
201
199
|
i0.ɵɵelementStart(0, "header", 0);
|
|
202
200
|
i0.ɵɵelementStart(1, "div", 1);
|
|
203
201
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -254,13 +252,13 @@ HeaderBarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: HeaderBarComponent, se
|
|
|
254
252
|
type: Output
|
|
255
253
|
}] }); })();
|
|
256
254
|
|
|
257
|
-
const _c0$
|
|
258
|
-
const _c1$
|
|
255
|
+
const _c0$N = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
256
|
+
const _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
259
257
|
class NavigationComponent {
|
|
260
258
|
}
|
|
261
259
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
262
|
-
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
263
|
-
i0.ɵɵprojectionDef(_c0$
|
|
260
|
+
NavigationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$l, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
261
|
+
i0.ɵɵprojectionDef(_c0$N);
|
|
264
262
|
i0.ɵɵelementStart(0, "div");
|
|
265
263
|
i0.ɵɵelementStart(1, "nav", 0);
|
|
266
264
|
i0.ɵɵprojection(2);
|
|
@@ -377,13 +375,13 @@ HeadersModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule, RouterMod
|
|
|
377
375
|
}]
|
|
378
376
|
}], null, null); })();
|
|
379
377
|
|
|
380
|
-
const _c0$
|
|
381
|
-
const _c1$
|
|
378
|
+
const _c0$M = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
379
|
+
const _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
382
380
|
class BodyComponent {
|
|
383
381
|
}
|
|
384
382
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
385
|
-
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
386
|
-
i0.ɵɵprojectionDef(_c0$
|
|
383
|
+
BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$k, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
384
|
+
i0.ɵɵprojectionDef(_c0$M);
|
|
387
385
|
i0.ɵɵelementStart(0, "div", 0);
|
|
388
386
|
i0.ɵɵprojection(1);
|
|
389
387
|
i0.ɵɵprojection(2, 1);
|
|
@@ -400,7 +398,7 @@ BodyComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [
|
|
|
400
398
|
}]
|
|
401
399
|
}], null, null); })();
|
|
402
400
|
|
|
403
|
-
const _c0$
|
|
401
|
+
const _c0$L = function (a0) { return { "govuk-input--error": a0 }; };
|
|
404
402
|
function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
405
403
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
406
404
|
i0.ɵɵelementStart(0, "div", 12);
|
|
@@ -416,7 +414,7 @@ function DateInputComponent_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
|
416
414
|
i0.ɵɵadvance(1);
|
|
417
415
|
i0.ɵɵproperty("for", ctx_r3.hourId());
|
|
418
416
|
i0.ɵɵadvance(2);
|
|
419
|
-
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
417
|
+
i0.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r3.isInvalid));
|
|
420
418
|
} }
|
|
421
419
|
function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
422
420
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
@@ -433,7 +431,7 @@ function DateInputComponent_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
433
431
|
i0.ɵɵadvance(1);
|
|
434
432
|
i0.ɵɵproperty("for", ctx_r4.minuteId());
|
|
435
433
|
i0.ɵɵadvance(2);
|
|
436
|
-
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
434
|
+
i0.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r4.isInvalid));
|
|
437
435
|
} }
|
|
438
436
|
function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
439
437
|
const _r18 = i0.ɵɵgetCurrentView();
|
|
@@ -450,7 +448,7 @@ function DateInputComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
450
448
|
i0.ɵɵadvance(1);
|
|
451
449
|
i0.ɵɵproperty("for", ctx_r5.secondId());
|
|
452
450
|
i0.ɵɵadvance(2);
|
|
453
|
-
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$
|
|
451
|
+
i0.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0.ɵɵpureFunction1(5, _c0$L, ctx_r5.isInvalid));
|
|
454
452
|
} }
|
|
455
453
|
class DateInputComponent {
|
|
456
454
|
constructor() {
|
|
@@ -679,15 +677,15 @@ DateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DateInputComponent, se
|
|
|
679
677
|
i0.ɵɵadvance(2);
|
|
680
678
|
i0.ɵɵproperty("for", ctx.dayId());
|
|
681
679
|
i0.ɵɵadvance(2);
|
|
682
|
-
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$
|
|
680
|
+
i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(18, _c0$L, ctx.isInvalid));
|
|
683
681
|
i0.ɵɵadvance(3);
|
|
684
682
|
i0.ɵɵproperty("for", ctx.monthId());
|
|
685
683
|
i0.ɵɵadvance(2);
|
|
686
|
-
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$
|
|
684
|
+
i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(20, _c0$L, ctx.isInvalid));
|
|
687
685
|
i0.ɵɵadvance(3);
|
|
688
686
|
i0.ɵɵproperty("for", ctx.yearId());
|
|
689
687
|
i0.ɵɵadvance(2);
|
|
690
|
-
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$
|
|
688
|
+
i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(22, _c0$L, ctx.isInvalid));
|
|
691
689
|
i0.ɵɵadvance(2);
|
|
692
690
|
i0.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
693
691
|
i0.ɵɵadvance(1);
|
|
@@ -757,7 +755,7 @@ function AlertComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
757
755
|
i0.ɵɵelementEnd();
|
|
758
756
|
i0.ɵɵelementContainerEnd();
|
|
759
757
|
} }
|
|
760
|
-
const _c0$
|
|
758
|
+
const _c0$K = ["*"];
|
|
761
759
|
var AlertMessageType;
|
|
762
760
|
(function (AlertMessageType) {
|
|
763
761
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -777,7 +775,7 @@ AlertComponent.TYPE_SUCCESS = 'success';
|
|
|
777
775
|
AlertComponent.TYPE_ERROR = 'error';
|
|
778
776
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
779
777
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
780
|
-
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
778
|
+
AlertComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$K, 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) {
|
|
781
779
|
i0.ɵɵprojectionDef();
|
|
782
780
|
i0.ɵɵelementStart(0, "div", 0);
|
|
783
781
|
i0.ɵɵelementContainerStart(1, 1);
|
|
@@ -866,18 +864,18 @@ AlertModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
|
|
|
866
864
|
}]
|
|
867
865
|
}], null, null); })();
|
|
868
866
|
|
|
869
|
-
const _c0$
|
|
870
|
-
const _c1$
|
|
867
|
+
const _c0$J = function (a0) { return { "js-hidden": a0 }; };
|
|
868
|
+
const _c1$j = ["*"];
|
|
871
869
|
class TabComponent {
|
|
872
870
|
}
|
|
873
871
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
874
|
-
TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
872
|
+
TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$j, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
|
|
875
873
|
i0.ɵɵprojectionDef();
|
|
876
874
|
i0.ɵɵelementStart(0, "div", 0);
|
|
877
875
|
i0.ɵɵprojection(1);
|
|
878
876
|
i0.ɵɵelementEnd();
|
|
879
877
|
} if (rf & 2) {
|
|
880
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$
|
|
878
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c0$J, !ctx.selected));
|
|
881
879
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
882
880
|
} }, 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}}"] });
|
|
883
881
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TabComponent, [{
|
|
@@ -897,8 +895,8 @@ TabComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["
|
|
|
897
895
|
type: Input
|
|
898
896
|
}] }); })();
|
|
899
897
|
|
|
900
|
-
const _c0$
|
|
901
|
-
const _c1$
|
|
898
|
+
const _c0$I = ["tab"];
|
|
899
|
+
const _c1$i = function () { return ["."]; };
|
|
902
900
|
const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
903
901
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
904
902
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
@@ -911,7 +909,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
911
909
|
} if (rf & 2) {
|
|
912
910
|
const panel_r1 = ctx.$implicit;
|
|
913
911
|
i0.ɵɵadvance(1);
|
|
914
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$
|
|
912
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(6, _c1$i))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
915
913
|
i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
916
914
|
i0.ɵɵadvance(2);
|
|
917
915
|
i0.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -942,7 +940,7 @@ TabsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: TabsComponent, selectors: [
|
|
|
942
940
|
let _t;
|
|
943
941
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
|
|
944
942
|
} }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
945
|
-
i0.ɵɵviewQuery(_c0$
|
|
943
|
+
i0.ɵɵviewQuery(_c0$I, 1);
|
|
946
944
|
} if (rf & 2) {
|
|
947
945
|
let _t;
|
|
948
946
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
@@ -1007,7 +1005,7 @@ TabsModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
|
|
|
1007
1005
|
}]
|
|
1008
1006
|
}], null, null); })();
|
|
1009
1007
|
|
|
1010
|
-
const _c0$
|
|
1008
|
+
const _c0$H = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1011
1009
|
class ActivityBannerComponent {
|
|
1012
1010
|
constructor() { }
|
|
1013
1011
|
ngOnInit() {
|
|
@@ -1024,7 +1022,7 @@ ActivityBannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ActivityBannerCom
|
|
|
1024
1022
|
i0.ɵɵelementEnd();
|
|
1025
1023
|
i0.ɵɵelementEnd();
|
|
1026
1024
|
} if (rf & 2) {
|
|
1027
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$
|
|
1025
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c0$H, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1028
1026
|
i0.ɵɵadvance(2);
|
|
1029
1027
|
i0.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1030
1028
|
i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
|
|
@@ -7825,13 +7823,13 @@ FieldLabelPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLa
|
|
|
7825
7823
|
}]
|
|
7826
7824
|
}], null, null); })();
|
|
7827
7825
|
|
|
7828
|
-
const _c0$
|
|
7826
|
+
const _c0$G = ["writeComplexFieldComponent"];
|
|
7829
7827
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
7830
7828
|
i0.ɵɵelementStart(0, "span", 14);
|
|
7831
7829
|
i0.ɵɵtext(1, "Enter the Postcode");
|
|
7832
7830
|
i0.ɵɵelementEnd();
|
|
7833
7831
|
} }
|
|
7834
|
-
const _c1$
|
|
7832
|
+
const _c1$h = function (a0) { return { "form-group-error": a0 }; };
|
|
7835
7833
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
7836
7834
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
7837
7835
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
@@ -7850,7 +7848,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
7850
7848
|
i0.ɵɵelementEnd();
|
|
7851
7849
|
} if (rf & 2) {
|
|
7852
7850
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
7853
|
-
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
7851
|
+
i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(7, _c1$h, ctx_r2.missingPostcode));
|
|
7854
7852
|
i0.ɵɵadvance(1);
|
|
7855
7853
|
i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
7856
7854
|
i0.ɵɵadvance(3);
|
|
@@ -8018,7 +8016,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
8018
8016
|
}
|
|
8019
8017
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
8020
8018
|
WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
8021
|
-
i0.ɵɵviewQuery(_c0$
|
|
8019
|
+
i0.ɵɵviewQuery(_c0$G, 1);
|
|
8022
8020
|
i0.ɵɵviewQuery(FocusElementDirective, 1);
|
|
8023
8021
|
} if (rf & 2) {
|
|
8024
8022
|
let _t;
|
|
@@ -8081,71 +8079,6 @@ class DocumentTreeNode {
|
|
|
8081
8079
|
};
|
|
8082
8080
|
return countChildren(this.children);
|
|
8083
8081
|
}
|
|
8084
|
-
sortChildrenAscending() {
|
|
8085
|
-
var _a, _b;
|
|
8086
|
-
const sortAscending = () => {
|
|
8087
|
-
return (a, b) => {
|
|
8088
|
-
const nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
8089
|
-
const nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
8090
|
-
if (a.type === 'category' || b.type === 'category') {
|
|
8091
|
-
return 0;
|
|
8092
|
-
}
|
|
8093
|
-
if (nameA < nameB) {
|
|
8094
|
-
return -1;
|
|
8095
|
-
}
|
|
8096
|
-
if (nameA > nameB) {
|
|
8097
|
-
return 1;
|
|
8098
|
-
}
|
|
8099
|
-
};
|
|
8100
|
-
};
|
|
8101
|
-
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
8102
|
-
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
8103
|
-
childNodes.sortChildrenAscending();
|
|
8104
|
-
});
|
|
8105
|
-
}
|
|
8106
|
-
sortChildrenDescending() {
|
|
8107
|
-
var _a, _b;
|
|
8108
|
-
const sortDescending = () => {
|
|
8109
|
-
return (a, b) => {
|
|
8110
|
-
const nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
8111
|
-
const nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
8112
|
-
if (a.type === 'category' || b.type === 'category') {
|
|
8113
|
-
return 0;
|
|
8114
|
-
}
|
|
8115
|
-
if (nameA > nameB) {
|
|
8116
|
-
return -1;
|
|
8117
|
-
}
|
|
8118
|
-
if (nameA < nameB) {
|
|
8119
|
-
return 1;
|
|
8120
|
-
}
|
|
8121
|
-
};
|
|
8122
|
-
};
|
|
8123
|
-
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
8124
|
-
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
8125
|
-
childNodes.sortChildrenDescending();
|
|
8126
|
-
});
|
|
8127
|
-
}
|
|
8128
|
-
get flattenedAll() {
|
|
8129
|
-
var _a;
|
|
8130
|
-
const flattenChildren = (nodeChild) => {
|
|
8131
|
-
var _a;
|
|
8132
|
-
const flattenedNodes = [];
|
|
8133
|
-
flattenedNodes.push(nodeChild);
|
|
8134
|
-
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
8135
|
-
// flattenedNodes.push(nodeChild);
|
|
8136
|
-
nodeChild.children.forEach((child) => {
|
|
8137
|
-
flattenedNodes.push(flattenChildren(child));
|
|
8138
|
-
});
|
|
8139
|
-
}
|
|
8140
|
-
return flattenedNodes.flat();
|
|
8141
|
-
};
|
|
8142
|
-
return [
|
|
8143
|
-
this,
|
|
8144
|
-
...(_a = this.children) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
8145
|
-
return flattenChildren(item);
|
|
8146
|
-
}).flat()
|
|
8147
|
-
];
|
|
8148
|
-
}
|
|
8149
8082
|
}
|
|
8150
8083
|
__decorate([
|
|
8151
8084
|
Type(() => DocumentTreeNode),
|
|
@@ -8157,231 +8090,50 @@ __decorate([
|
|
|
8157
8090
|
__metadata("design:paramtypes", [])
|
|
8158
8091
|
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
8159
8092
|
|
|
8160
|
-
function
|
|
8161
|
-
i0.ɵɵ
|
|
8162
|
-
i0.ɵɵelementStart(1, "div",
|
|
8163
|
-
i0.ɵɵ
|
|
8164
|
-
i0.ɵɵ
|
|
8165
|
-
i0.ɵɵelementContainerEnd();
|
|
8166
|
-
} if (rf & 2) {
|
|
8167
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8168
|
-
i0.ɵɵadvance(2);
|
|
8169
|
-
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
8170
|
-
} }
|
|
8171
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
8172
|
-
i0.ɵɵelement(0, "img", 10);
|
|
8173
|
-
} if (rf & 2) {
|
|
8174
|
-
const item_r4 = i0.ɵɵnextContext().$implicit;
|
|
8175
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
8176
|
-
i0.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
8177
|
-
i0.ɵɵproperty("src", item_r4.iconSrc, i0.ɵɵsanitizeUrl);
|
|
8178
|
-
} }
|
|
8179
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
8180
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
8181
|
-
i0.ɵɵelementContainerStart(0);
|
|
8182
|
-
i0.ɵɵelementStart(1, "div", 7);
|
|
8183
|
-
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(); });
|
|
8184
|
-
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
8185
|
-
i0.ɵɵelementStart(3, "div", 9);
|
|
8186
|
-
i0.ɵɵtext(4);
|
|
8187
|
-
i0.ɵɵelementEnd();
|
|
8188
|
-
i0.ɵɵelementEnd();
|
|
8189
|
-
i0.ɵɵelementContainerEnd();
|
|
8190
|
-
} if (rf & 2) {
|
|
8191
|
-
const item_r4 = ctx.$implicit;
|
|
8192
|
-
i0.ɵɵadvance(2);
|
|
8193
|
-
i0.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
8194
|
-
i0.ɵɵadvance(2);
|
|
8195
|
-
i0.ɵɵtextInterpolate(item_r4.actionText);
|
|
8196
|
-
} }
|
|
8197
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
8198
|
-
i0.ɵɵelementStart(0, "div", 3);
|
|
8199
|
-
i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
8200
|
-
i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
8201
|
-
i0.ɵɵelementEnd();
|
|
8202
|
-
} if (rf & 2) {
|
|
8203
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
8204
|
-
i0.ɵɵadvance(1);
|
|
8205
|
-
i0.ɵɵproperty("ngIf", ctx_r1.title);
|
|
8206
|
-
i0.ɵɵadvance(1);
|
|
8207
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
8208
|
-
} }
|
|
8209
|
-
const _c0$H = [[["", "trigger", ""]]];
|
|
8210
|
-
const _c1$h = ["[trigger]"];
|
|
8211
|
-
class CaseFileViewOverlayMenuComponent {
|
|
8212
|
-
constructor() {
|
|
8213
|
-
this.title = '';
|
|
8214
|
-
this.isOpen = false;
|
|
8215
|
-
this.isOpenChange = new EventEmitter();
|
|
8216
|
-
}
|
|
8217
|
-
closeOverlay() {
|
|
8218
|
-
const isOpen = false;
|
|
8219
|
-
this.isOpen = isOpen;
|
|
8220
|
-
this.isOpenChange.emit(isOpen);
|
|
8221
|
-
}
|
|
8222
|
-
}
|
|
8223
|
-
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
8224
|
-
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$h, 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) {
|
|
8225
|
-
i0.ɵɵprojectionDef(_c0$H);
|
|
8226
|
-
i0.ɵɵelementStart(0, "div");
|
|
8227
|
-
i0.ɵɵelementStart(1, "button", 0, 1);
|
|
8228
|
-
i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener() { return ctx.isOpen = !ctx.isOpen; });
|
|
8229
|
-
i0.ɵɵprojection(3);
|
|
8230
|
-
i0.ɵɵelementEnd();
|
|
8231
|
-
i0.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
8232
|
-
i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
8233
|
-
i0.ɵɵelementEnd();
|
|
8234
|
-
} if (rf & 2) {
|
|
8235
|
-
const _r0 = i0.ɵɵreference(2);
|
|
8236
|
-
i0.ɵɵadvance(4);
|
|
8237
|
-
i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
8238
|
-
} }, directives: [i1$5.CdkOverlayOrigin, i1$5.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}"] });
|
|
8239
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
8240
|
-
type: Component,
|
|
8241
|
-
args: [{
|
|
8242
|
-
selector: 'ccd-case-file-view-overlay-menu',
|
|
8243
|
-
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
8244
|
-
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
8245
|
-
}]
|
|
8246
|
-
}], null, { title: [{
|
|
8247
|
-
type: Input
|
|
8248
|
-
}], menuItems: [{
|
|
8249
|
-
type: Input
|
|
8250
|
-
}], isOpen: [{
|
|
8251
|
-
type: Input
|
|
8252
|
-
}], isOpenChange: [{
|
|
8253
|
-
type: Output
|
|
8254
|
-
}] }); })();
|
|
8255
|
-
|
|
8256
|
-
class CaseFileViewFolderSortComponent {
|
|
8257
|
-
constructor() {
|
|
8258
|
-
this.isOpen = false;
|
|
8259
|
-
this.sortAscending = new EventEmitter();
|
|
8260
|
-
this.sortDescending = new EventEmitter();
|
|
8261
|
-
this.overlayMenuItems = [
|
|
8262
|
-
{ actionText: 'A to Z descending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
|
|
8263
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
|
|
8264
|
-
];
|
|
8265
|
-
}
|
|
8266
|
-
}
|
|
8267
|
-
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
8268
|
-
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) {
|
|
8269
|
-
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
8270
|
-
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
8271
|
-
i0.ɵɵelementContainerStart(1, 1);
|
|
8272
|
-
i0.ɵɵelement(2, "img", 2);
|
|
8273
|
-
i0.ɵɵelementContainerEnd();
|
|
8274
|
-
i0.ɵɵelementEnd();
|
|
8275
|
-
} if (rf & 2) {
|
|
8276
|
-
i0.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
8277
|
-
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
|
|
8278
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
8279
|
-
type: Component,
|
|
8280
|
-
args: [{
|
|
8281
|
-
selector: 'ccd-case-file-view-folder-sort',
|
|
8282
|
-
templateUrl: './case-file-view-folder-sort.component.html',
|
|
8283
|
-
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
8284
|
-
}]
|
|
8285
|
-
}], function () { return []; }, { sortAscending: [{
|
|
8286
|
-
type: Output
|
|
8287
|
-
}], sortDescending: [{
|
|
8288
|
-
type: Output
|
|
8289
|
-
}] }); })();
|
|
8290
|
-
|
|
8291
|
-
class CaseFileViewFolderDocumentActionsComponent {
|
|
8292
|
-
constructor() {
|
|
8293
|
-
this.isOpen = false;
|
|
8294
|
-
this.changeFolderAction = new EventEmitter();
|
|
8295
|
-
this.openInANewTabAction = new EventEmitter();
|
|
8296
|
-
this.downloadAction = new EventEmitter();
|
|
8297
|
-
this.printAction = new EventEmitter();
|
|
8298
|
-
this.overlayMenuItems = [
|
|
8299
|
-
{ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: () => this.changeFolderAction.emit() },
|
|
8300
|
-
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: () => this.openInANewTabAction.emit() },
|
|
8301
|
-
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: () => this.downloadAction.emit() },
|
|
8302
|
-
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: () => this.printAction.emit() },
|
|
8303
|
-
];
|
|
8304
|
-
}
|
|
8305
|
-
}
|
|
8306
|
-
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
8307
|
-
CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], 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) {
|
|
8308
|
-
i0.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
8309
|
-
i0.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
8310
|
-
i0.ɵɵelementContainerStart(1, 1);
|
|
8311
|
-
i0.ɵɵelement(2, "img", 2);
|
|
8312
|
-
i0.ɵɵelementContainerEnd();
|
|
8313
|
-
i0.ɵɵelementEnd();
|
|
8314
|
-
} if (rf & 2) {
|
|
8315
|
-
i0.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
8316
|
-
} }, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-5px}"] });
|
|
8317
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
8318
|
-
type: Component,
|
|
8319
|
-
args: [{
|
|
8320
|
-
selector: 'ccd-case-file-view-folder-document-actions',
|
|
8321
|
-
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
8322
|
-
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
8323
|
-
}]
|
|
8324
|
-
}], function () { return []; }, { changeFolderAction: [{
|
|
8325
|
-
type: Output
|
|
8326
|
-
}], openInANewTabAction: [{
|
|
8327
|
-
type: Output
|
|
8328
|
-
}], downloadAction: [{
|
|
8329
|
-
type: Output
|
|
8330
|
-
}], printAction: [{
|
|
8331
|
-
type: Output
|
|
8332
|
-
}] }); })();
|
|
8333
|
-
|
|
8334
|
-
const _c0$G = ["tree"];
|
|
8335
|
-
function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) { if (rf & 1) {
|
|
8336
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
8337
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
|
|
8338
|
-
i0.ɵɵelementStart(1, "button", 9);
|
|
8339
|
-
i0.ɵɵelementStart(2, "div", 10);
|
|
8340
|
-
i0.ɵɵelement(3, "img", 11);
|
|
8093
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template(rf, ctx) { if (rf & 1) {
|
|
8094
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
8095
|
+
i0.ɵɵelementStart(1, "div", 8);
|
|
8096
|
+
i0.ɵɵelementStart(2, "button", 9);
|
|
8097
|
+
i0.ɵɵelement(3, "img", 10);
|
|
8341
8098
|
i0.ɵɵelementEnd();
|
|
8342
|
-
i0.ɵɵelementStart(4, "span",
|
|
8099
|
+
i0.ɵɵelementStart(4, "span", 11);
|
|
8343
8100
|
i0.ɵɵtext(5);
|
|
8344
8101
|
i0.ɵɵelementEnd();
|
|
8345
|
-
i0.ɵɵelementStart(6, "div", 13);
|
|
8346
|
-
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 14);
|
|
8347
|
-
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.triggerDocumentAction("changeFolder"); })("openInANewTabAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.triggerDocumentAction("openInANewTab"); })("downloadAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.triggerDocumentAction("download"); })("printAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.triggerDocumentAction("print"); });
|
|
8348
|
-
i0.ɵɵelementEnd();
|
|
8349
|
-
i0.ɵɵelementEnd();
|
|
8350
8102
|
i0.ɵɵelementEnd();
|
|
8351
8103
|
i0.ɵɵelementEnd();
|
|
8352
8104
|
} if (rf & 2) {
|
|
8353
|
-
const
|
|
8105
|
+
const node_r2 = ctx.$implicit;
|
|
8354
8106
|
i0.ɵɵadvance(5);
|
|
8355
|
-
i0.ɵɵtextInterpolate(
|
|
8356
|
-
} }
|
|
8357
|
-
function
|
|
8358
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
8359
|
-
i0.ɵɵelementStart(1, "
|
|
8360
|
-
i0.ɵɵelementStart(2, "
|
|
8361
|
-
i0.ɵɵelement(3, "img",
|
|
8362
|
-
i0.ɵɵelementStart(4, "span",
|
|
8107
|
+
i0.ɵɵtextInterpolate(node_r2.name);
|
|
8108
|
+
} }
|
|
8109
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) { if (rf & 1) {
|
|
8110
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
8111
|
+
i0.ɵɵelementStart(1, "div", 12);
|
|
8112
|
+
i0.ɵɵelementStart(2, "button", 13);
|
|
8113
|
+
i0.ɵɵelement(3, "img", 14);
|
|
8114
|
+
i0.ɵɵelementStart(4, "span", 15);
|
|
8363
8115
|
i0.ɵɵtext(5);
|
|
8364
8116
|
i0.ɵɵelementEnd();
|
|
8365
8117
|
i0.ɵɵelementEnd();
|
|
8366
|
-
i0.ɵɵelementStart(6, "span",
|
|
8118
|
+
i0.ɵɵelementStart(6, "span", 16);
|
|
8367
8119
|
i0.ɵɵtext(7);
|
|
8368
8120
|
i0.ɵɵelementEnd();
|
|
8369
8121
|
i0.ɵɵelementEnd();
|
|
8370
8122
|
i0.ɵɵelementStart(8, "div");
|
|
8371
|
-
i0.ɵɵelementContainer(9,
|
|
8123
|
+
i0.ɵɵelementContainer(9, 17);
|
|
8372
8124
|
i0.ɵɵelementEnd();
|
|
8373
8125
|
i0.ɵɵelementEnd();
|
|
8374
8126
|
} if (rf & 2) {
|
|
8375
|
-
const
|
|
8376
|
-
const
|
|
8127
|
+
const node_r3 = ctx.$implicit;
|
|
8128
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
8377
8129
|
i0.ɵɵadvance(2);
|
|
8378
|
-
i0.ɵɵattribute("aria-label", "toggle " +
|
|
8130
|
+
i0.ɵɵattribute("aria-label", "toggle " + node_r3.name);
|
|
8379
8131
|
i0.ɵɵadvance(3);
|
|
8380
|
-
i0.ɵɵtextInterpolate(
|
|
8132
|
+
i0.ɵɵtextInterpolate(node_r3.childDocumentCount);
|
|
8381
8133
|
i0.ɵɵadvance(2);
|
|
8382
|
-
i0.ɵɵtextInterpolate(
|
|
8134
|
+
i0.ɵɵtextInterpolate(node_r3.name);
|
|
8383
8135
|
i0.ɵɵadvance(1);
|
|
8384
|
-
i0.ɵɵclassProp("document-tree-invisible", !
|
|
8136
|
+
i0.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r3));
|
|
8385
8137
|
} }
|
|
8386
8138
|
class CaseFileViewFolderComponent {
|
|
8387
8139
|
constructor() {
|
|
@@ -8390,6 +8142,17 @@ class CaseFileViewFolderComponent {
|
|
|
8390
8142
|
this.nestedChildren = (_, nodeData) => nodeData.children;
|
|
8391
8143
|
this.nestedTreeControl = new NestedTreeControl(this.getChildren);
|
|
8392
8144
|
}
|
|
8145
|
+
get documentCount() {
|
|
8146
|
+
var _a;
|
|
8147
|
+
if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
|
|
8148
|
+
return this.nestedDataSource.reduce((acc, item) => {
|
|
8149
|
+
return acc + item.childDocumentCount;
|
|
8150
|
+
}, 0);
|
|
8151
|
+
}
|
|
8152
|
+
else {
|
|
8153
|
+
return 0;
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8393
8156
|
ngOnInit() {
|
|
8394
8157
|
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(categoriesAndDocuments => {
|
|
8395
8158
|
// Using the mock data for now as we have to display the documents as well for demo purpose
|
|
@@ -8441,67 +8204,11 @@ class CaseFileViewFolderComponent {
|
|
|
8441
8204
|
uncategorisedNode.children = documents;
|
|
8442
8205
|
return uncategorisedNode;
|
|
8443
8206
|
}
|
|
8444
|
-
sortDataSourceAscAlphabetically() {
|
|
8445
|
-
const sortedData = this.nestedDataSource.map(item => {
|
|
8446
|
-
item.sortChildrenAscending();
|
|
8447
|
-
const newDocumentTreeNode = new DocumentTreeNode();
|
|
8448
|
-
newDocumentTreeNode.name = item.name;
|
|
8449
|
-
newDocumentTreeNode.type = item.type;
|
|
8450
|
-
newDocumentTreeNode.children = item.children;
|
|
8451
|
-
return newDocumentTreeNode;
|
|
8452
|
-
});
|
|
8453
|
-
this.updateNodeData(sortedData);
|
|
8454
|
-
}
|
|
8455
|
-
sortDataSourceDescAlphabetically() {
|
|
8456
|
-
const sortedData = this.nestedDataSource.map(item => {
|
|
8457
|
-
item.sortChildrenDescending();
|
|
8458
|
-
return item;
|
|
8459
|
-
});
|
|
8460
|
-
this.updateNodeData(sortedData);
|
|
8461
|
-
}
|
|
8462
|
-
triggerDocumentAction(actionType) {
|
|
8463
|
-
switch (actionType) {
|
|
8464
|
-
case ('changeFolder'):
|
|
8465
|
-
console.log('changeFolder!');
|
|
8466
|
-
break;
|
|
8467
|
-
case ('openInANewTab'):
|
|
8468
|
-
console.log('openInANewTab!');
|
|
8469
|
-
break;
|
|
8470
|
-
case ('download'):
|
|
8471
|
-
console.log('download!');
|
|
8472
|
-
break;
|
|
8473
|
-
case ('print'):
|
|
8474
|
-
console.log('print!');
|
|
8475
|
-
break;
|
|
8476
|
-
default:
|
|
8477
|
-
return;
|
|
8478
|
-
}
|
|
8479
|
-
}
|
|
8480
8207
|
ngOnDestroy() {
|
|
8481
8208
|
if (this.categoriesAndDocumentsSubscription) {
|
|
8482
8209
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
8483
8210
|
}
|
|
8484
8211
|
}
|
|
8485
|
-
updateNodeData(data) {
|
|
8486
|
-
const prevSelected = this.nestedTreeControl.expansionModel.selected.map((item) => {
|
|
8487
|
-
return item.name;
|
|
8488
|
-
});
|
|
8489
|
-
this.nestedTreeControl.collapseAll();
|
|
8490
|
-
this.nestedDataSource = data.map((item) => {
|
|
8491
|
-
const newDocumentTreeNode = new DocumentTreeNode();
|
|
8492
|
-
newDocumentTreeNode.name = item.name;
|
|
8493
|
-
newDocumentTreeNode.type = item.type;
|
|
8494
|
-
newDocumentTreeNode.children = item.children;
|
|
8495
|
-
return newDocumentTreeNode;
|
|
8496
|
-
});
|
|
8497
|
-
const flattenedArray = this.nestedDataSource.map((item) => {
|
|
8498
|
-
return item.flattenedAll;
|
|
8499
|
-
}).flat();
|
|
8500
|
-
const newObjects = flattenedArray.filter((item) => {
|
|
8501
|
-
return prevSelected.includes(item.name);
|
|
8502
|
-
});
|
|
8503
|
-
newObjects.forEach(object => this.nestedTreeControl.expand(object));
|
|
8504
|
-
}
|
|
8505
8212
|
loadCategories() {
|
|
8506
8213
|
return [
|
|
8507
8214
|
{
|
|
@@ -8509,26 +8216,12 @@ class CaseFileViewFolderComponent {
|
|
|
8509
8216
|
category_name: 'Beers',
|
|
8510
8217
|
category_order: 1,
|
|
8511
8218
|
documents: [
|
|
8512
|
-
{
|
|
8513
|
-
document_url: '/test',
|
|
8514
|
-
document_filename: 'Lager encyclopedia',
|
|
8515
|
-
document_binary_url: '/test/binary',
|
|
8516
|
-
attribute_path: '',
|
|
8517
|
-
upload_timestamp: ''
|
|
8518
|
-
},
|
|
8519
8219
|
{
|
|
8520
8220
|
document_url: '/test',
|
|
8521
8221
|
document_filename: 'Beers encyclopedia',
|
|
8522
8222
|
document_binary_url: '/test/binary',
|
|
8523
8223
|
attribute_path: '',
|
|
8524
8224
|
upload_timestamp: ''
|
|
8525
|
-
},
|
|
8526
|
-
{
|
|
8527
|
-
document_url: '/test',
|
|
8528
|
-
document_filename: 'Ale encyclopedia',
|
|
8529
|
-
document_binary_url: '/test/binary',
|
|
8530
|
-
attribute_path: '',
|
|
8531
|
-
upload_timestamp: ''
|
|
8532
8225
|
}
|
|
8533
8226
|
],
|
|
8534
8227
|
sub_categories: [
|
|
@@ -8679,46 +8372,36 @@ class CaseFileViewFolderComponent {
|
|
|
8679
8372
|
}
|
|
8680
8373
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
8681
8374
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
8682
|
-
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]],
|
|
8683
|
-
i0.ɵɵviewQuery(_c0$G, 3);
|
|
8684
|
-
} if (rf & 2) {
|
|
8685
|
-
let _t;
|
|
8686
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tree = _t.first);
|
|
8687
|
-
} }, inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 10, vars: 3, consts: [[1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["tree", ""], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 1, "node__icon"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "node__iconImg"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8375
|
+
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 8, vars: 4, consts: [[1, "document-filter-container"], [1, "document-filter"], [1, "documents-title"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node-name", "node-name-document"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 1, "node__icon"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "node__iconImg"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8688
8376
|
i0.ɵɵelementStart(0, "div", 0);
|
|
8689
|
-
i0.ɵɵ
|
|
8690
|
-
i0.ɵɵ
|
|
8691
|
-
i0.ɵɵ
|
|
8692
|
-
i0.ɵɵelementStart(3, "div");
|
|
8693
|
-
i0.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
|
|
8694
|
-
i0.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_4_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_4_listener() { return ctx.sortDataSourceDescAlphabetically(); });
|
|
8695
|
-
i0.ɵɵelementEnd();
|
|
8377
|
+
i0.ɵɵelement(1, "div", 1);
|
|
8378
|
+
i0.ɵɵelementStart(2, "div", 2);
|
|
8379
|
+
i0.ɵɵtext(3);
|
|
8696
8380
|
i0.ɵɵelementEnd();
|
|
8697
8381
|
i0.ɵɵelementEnd();
|
|
8698
|
-
i0.ɵɵelementStart(
|
|
8699
|
-
i0.ɵɵelementStart(
|
|
8700
|
-
i0.ɵɵtemplate(
|
|
8701
|
-
i0.ɵɵtemplate(
|
|
8382
|
+
i0.ɵɵelementStart(4, "div", 3);
|
|
8383
|
+
i0.ɵɵelementStart(5, "cdk-tree", 4);
|
|
8384
|
+
i0.ɵɵtemplate(6, CaseFileViewFolderComponent_cdk_nested_tree_node_6_Template, 6, 1, "cdk-nested-tree-node", 5);
|
|
8385
|
+
i0.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 10, 5, "cdk-nested-tree-node", 6);
|
|
8702
8386
|
i0.ɵɵelementEnd();
|
|
8703
8387
|
i0.ɵɵelementEnd();
|
|
8704
8388
|
} if (rf & 2) {
|
|
8705
|
-
i0.ɵɵadvance(6);
|
|
8706
|
-
i0.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
8707
8389
|
i0.ɵɵadvance(3);
|
|
8390
|
+
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
8391
|
+
i0.ɵɵadvance(2);
|
|
8392
|
+
i0.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
8393
|
+
i0.ɵɵadvance(2);
|
|
8708
8394
|
i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
8709
|
-
} }, directives: [
|
|
8395
|
+
} }, directives: [i1$5.CdkTree, i1$5.CdkTreeNodeDef, i1$5.CdkNestedTreeNode, i1$5.CdkTreeNodeToggle, i1$5.CdkTreeNodeOutlet], styles: [".document-filter-container[_ngcontent-%COMP%]{height:60px;border-bottom:2px solid #c9c9c9;padding-bottom:4px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{height:70%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.node[_ngcontent-%COMP%]{display:flex;align-items:center;padding:6px 0}.node__icon[_ngcontent-%COMP%]{position:relative;background:none;border:0}.node__iconImg[_ngcontent-%COMP%]{height:24px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff}.node__name[_ngcontent-%COMP%]{margin-left:6px}"] });
|
|
8710
8396
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
8711
8397
|
type: Component,
|
|
8712
8398
|
args: [{
|
|
8713
8399
|
selector: 'ccd-case-file-view-folder',
|
|
8714
|
-
templateUrl: './case-file-view-folder.component.html',
|
|
8715
8400
|
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
8401
|
+
templateUrl: './case-file-view-folder.component.html'
|
|
8716
8402
|
}]
|
|
8717
8403
|
}], function () { return []; }, { categoriesAndDocuments: [{
|
|
8718
8404
|
type: Input
|
|
8719
|
-
}], tree: [{
|
|
8720
|
-
type: ViewChild,
|
|
8721
|
-
args: ['tree', { static: true }]
|
|
8722
8405
|
}] }); })();
|
|
8723
8406
|
|
|
8724
8407
|
class CaseFileViewFieldComponent {
|
|
@@ -9517,7 +9200,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
9517
9200
|
return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
|
|
9518
9201
|
}
|
|
9519
9202
|
}
|
|
9520
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(i2
|
|
9203
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$6.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
9521
9204
|
WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9522
9205
|
i0.ɵɵviewQuery(_c0$D, 1);
|
|
9523
9206
|
} if (rf & 2) {
|
|
@@ -9559,7 +9242,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
|
|
|
9559
9242
|
templateUrl: './write-collection-field.html',
|
|
9560
9243
|
styleUrls: ['./collection-field.scss']
|
|
9561
9244
|
}]
|
|
9562
|
-
}], function () { return [{ type: i1$6.MatDialog }, { type: i2
|
|
9245
|
+
}], function () { return [{ type: i1$6.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
9563
9246
|
type: Input
|
|
9564
9247
|
}], formGroup: [{
|
|
9565
9248
|
type: Input
|
|
@@ -17183,10 +16866,7 @@ const PALETTE_COMPONENTS = [
|
|
|
17183
16866
|
WriteCollectionFieldComponent,
|
|
17184
16867
|
// ComponentLauncher web components
|
|
17185
16868
|
CaseFileViewFieldComponent,
|
|
17186
|
-
CaseFileViewFolderComponent
|
|
17187
|
-
CaseFileViewFolderSortComponent,
|
|
17188
|
-
CaseFileViewOverlayMenuComponent,
|
|
17189
|
-
CaseFileViewFolderDocumentActionsComponent,
|
|
16869
|
+
CaseFileViewFolderComponent
|
|
17190
16870
|
];
|
|
17191
16871
|
class PaletteModule {
|
|
17192
16872
|
}
|
|
@@ -17224,7 +16904,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17224
16904
|
MatDatepickerModule,
|
|
17225
16905
|
MatAutocompleteModule,
|
|
17226
16906
|
CdkTreeModule,
|
|
17227
|
-
OverlayModule,
|
|
17228
16907
|
PaymentLibModule,
|
|
17229
16908
|
ScrollToModule.forRoot()
|
|
17230
16909
|
], NgxMatDatetimePickerModule,
|
|
@@ -17308,10 +16987,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17308
16987
|
WriteCollectionFieldComponent,
|
|
17309
16988
|
// ComponentLauncher web components
|
|
17310
16989
|
CaseFileViewFieldComponent,
|
|
17311
|
-
CaseFileViewFolderComponent,
|
|
17312
|
-
CaseFileViewFolderSortComponent,
|
|
17313
|
-
CaseFileViewOverlayMenuComponent,
|
|
17314
|
-
CaseFileViewFolderDocumentActionsComponent], imports: [CommonModule,
|
|
16990
|
+
CaseFileViewFolderComponent], imports: [CommonModule,
|
|
17315
16991
|
RouterModule,
|
|
17316
16992
|
FormsModule,
|
|
17317
16993
|
ReactiveFormsModule,
|
|
@@ -17333,8 +17009,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17333
17009
|
MatDatepickerModule,
|
|
17334
17010
|
MatAutocompleteModule,
|
|
17335
17011
|
CdkTreeModule,
|
|
17336
|
-
|
|
17337
|
-
PaymentLibModule, i2$1.ScrollToModule], exports: [NgxMatDatetimePickerModule,
|
|
17012
|
+
PaymentLibModule, i2.ScrollToModule], exports: [NgxMatDatetimePickerModule,
|
|
17338
17013
|
NgxMatNativeDateModule,
|
|
17339
17014
|
NgxMatTimepickerModule,
|
|
17340
17015
|
TabsModule,
|
|
@@ -17410,10 +17085,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17410
17085
|
WriteCollectionFieldComponent,
|
|
17411
17086
|
// ComponentLauncher web components
|
|
17412
17087
|
CaseFileViewFieldComponent,
|
|
17413
|
-
CaseFileViewFolderComponent
|
|
17414
|
-
CaseFileViewFolderSortComponent,
|
|
17415
|
-
CaseFileViewOverlayMenuComponent,
|
|
17416
|
-
CaseFileViewFolderDocumentActionsComponent] }); })();
|
|
17088
|
+
CaseFileViewFolderComponent] }); })();
|
|
17417
17089
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
|
|
17418
17090
|
type: NgModule,
|
|
17419
17091
|
args: [{
|
|
@@ -17440,7 +17112,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
17440
17112
|
MatDatepickerModule,
|
|
17441
17113
|
MatAutocompleteModule,
|
|
17442
17114
|
CdkTreeModule,
|
|
17443
|
-
OverlayModule,
|
|
17444
17115
|
PaymentLibModule,
|
|
17445
17116
|
ScrollToModule.forRoot()
|
|
17446
17117
|
],
|
|
@@ -25062,5 +24733,5 @@ class TestRouteSnapshotBuilder {
|
|
|
25062
24733
|
* Generated bundle index. Do not edit.
|
|
25063
24734
|
*/
|
|
25064
24735
|
|
|
25065
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent,
|
|
24736
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
25066
24737
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|