@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-error-message-display → 5.0.25-case-file-sort-documents
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 +510 -169
- 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/case-viewer/case-full-access-view/case-full-access-view.component.js +19 -15
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +21 -53
- 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 +44 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +135 -54
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +3 -1
- 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 +90 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +2 -0
- package/esm2015/lib/shared/components/palette/palette.module.js +18 -5
- package/esm2015/lib/shared/components/search-result/search-result.component.js +12 -10
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +92 -0
- package/esm2015/lib/shared/domain/case-file-view/index.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +6 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +453 -158
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +4 -7
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -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 +14 -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 +5 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -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 +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 +15 -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/palette.module.d.ts +25 -22
- 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 +10 -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 +1 -1
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +3 -2
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node.model.js +0 -2
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts +0 -7
- package/lib/shared/domain/case-file-view/document-tree-node.model.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i1$5, i1$6, i2, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/cdk/overlay'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/cdk/overlay', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.cdk.overlay, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i2, i1$5, i1$6, i2$1, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
35
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
36
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
36
37
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
37
38
|
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
38
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
39
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
39
40
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
40
41
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
41
42
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
|
-
var _c0$
|
|
119
|
+
var _c0$Q = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
119
120
|
var _c1$n = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
120
121
|
var FooterComponent = /** @class */ (function () {
|
|
121
122
|
function FooterComponent() {
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
126
127
|
FooterComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
127
128
|
if (rf & 1) {
|
|
128
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
129
|
+
i0__namespace.ɵɵprojectionDef(_c0$Q);
|
|
129
130
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
130
131
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
131
132
|
i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -204,7 +205,7 @@
|
|
|
204
205
|
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
|
-
var _c0$
|
|
208
|
+
var _c0$P = [[["", "headerNavigation", ""]]];
|
|
208
209
|
var _c1$m = ["[headerNavigation]"];
|
|
209
210
|
var HeaderBarComponent = /** @class */ (function () {
|
|
210
211
|
function HeaderBarComponent() {
|
|
@@ -218,7 +219,7 @@
|
|
|
218
219
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
219
220
|
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
220
221
|
if (rf & 1) {
|
|
221
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
222
|
+
i0__namespace.ɵɵprojectionDef(_c0$P);
|
|
222
223
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
223
224
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
224
225
|
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
@@ -279,7 +280,7 @@
|
|
|
279
280
|
}] });
|
|
280
281
|
})();
|
|
281
282
|
|
|
282
|
-
var _c0$
|
|
283
|
+
var _c0$O = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
283
284
|
var _c1$l = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
284
285
|
var NavigationComponent = /** @class */ (function () {
|
|
285
286
|
function NavigationComponent() {
|
|
@@ -289,7 +290,7 @@
|
|
|
289
290
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
290
291
|
NavigationComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
291
292
|
if (rf & 1) {
|
|
292
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
293
|
+
i0__namespace.ɵɵprojectionDef(_c0$O);
|
|
293
294
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
294
295
|
i0__namespace.ɵɵelementStart(1, "nav", 0);
|
|
295
296
|
i0__namespace.ɵɵprojection(2);
|
|
@@ -434,7 +435,7 @@
|
|
|
434
435
|
}], null, null);
|
|
435
436
|
})();
|
|
436
437
|
|
|
437
|
-
var _c0$
|
|
438
|
+
var _c0$N = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
438
439
|
var _c1$k = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
439
440
|
var BodyComponent = /** @class */ (function () {
|
|
440
441
|
function BodyComponent() {
|
|
@@ -444,7 +445,7 @@
|
|
|
444
445
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
445
446
|
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$k, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
446
447
|
if (rf & 1) {
|
|
447
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
448
|
+
i0__namespace.ɵɵprojectionDef(_c0$N);
|
|
448
449
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
449
450
|
i0__namespace.ɵɵprojection(1);
|
|
450
451
|
i0__namespace.ɵɵprojection(2, 1);
|
|
@@ -791,7 +792,7 @@
|
|
|
791
792
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
792
793
|
}
|
|
793
794
|
|
|
794
|
-
var _c0$
|
|
795
|
+
var _c0$M = function (a0) { return { "govuk-input--error": a0 }; };
|
|
795
796
|
function DateInputComponent_div_16_Template(rf, ctx) {
|
|
796
797
|
if (rf & 1) {
|
|
797
798
|
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -809,7 +810,7 @@
|
|
|
809
810
|
i0__namespace.ɵɵadvance(1);
|
|
810
811
|
i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
|
|
811
812
|
i0__namespace.ɵɵadvance(2);
|
|
812
|
-
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
813
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r3.isInvalid));
|
|
813
814
|
}
|
|
814
815
|
}
|
|
815
816
|
function DateInputComponent_div_17_Template(rf, ctx) {
|
|
@@ -829,7 +830,7 @@
|
|
|
829
830
|
i0__namespace.ɵɵadvance(1);
|
|
830
831
|
i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
|
|
831
832
|
i0__namespace.ɵɵadvance(2);
|
|
832
|
-
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
833
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r4.isInvalid));
|
|
833
834
|
}
|
|
834
835
|
}
|
|
835
836
|
function DateInputComponent_div_18_Template(rf, ctx) {
|
|
@@ -849,7 +850,7 @@
|
|
|
849
850
|
i0__namespace.ɵɵadvance(1);
|
|
850
851
|
i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
|
|
851
852
|
i0__namespace.ɵɵadvance(2);
|
|
852
|
-
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$
|
|
853
|
+
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$M, ctx_r5.isInvalid));
|
|
853
854
|
}
|
|
854
855
|
}
|
|
855
856
|
var DateInputComponent = /** @class */ (function () {
|
|
@@ -1083,15 +1084,15 @@
|
|
|
1083
1084
|
i0__namespace.ɵɵadvance(2);
|
|
1084
1085
|
i0__namespace.ɵɵproperty("for", ctx.dayId());
|
|
1085
1086
|
i0__namespace.ɵɵadvance(2);
|
|
1086
|
-
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$
|
|
1087
|
+
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$M, ctx.isInvalid));
|
|
1087
1088
|
i0__namespace.ɵɵadvance(3);
|
|
1088
1089
|
i0__namespace.ɵɵproperty("for", ctx.monthId());
|
|
1089
1090
|
i0__namespace.ɵɵadvance(2);
|
|
1090
|
-
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$
|
|
1091
|
+
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$M, ctx.isInvalid));
|
|
1091
1092
|
i0__namespace.ɵɵadvance(3);
|
|
1092
1093
|
i0__namespace.ɵɵproperty("for", ctx.yearId());
|
|
1093
1094
|
i0__namespace.ɵɵadvance(2);
|
|
1094
|
-
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$
|
|
1095
|
+
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$M, ctx.isInvalid));
|
|
1095
1096
|
i0__namespace.ɵɵadvance(2);
|
|
1096
1097
|
i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
1097
1098
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1172,7 +1173,7 @@
|
|
|
1172
1173
|
i0__namespace.ɵɵelementContainerEnd();
|
|
1173
1174
|
}
|
|
1174
1175
|
}
|
|
1175
|
-
var _c0$
|
|
1176
|
+
var _c0$L = ["*"];
|
|
1176
1177
|
exports.AlertMessageType = void 0;
|
|
1177
1178
|
(function (AlertMessageType) {
|
|
1178
1179
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -1193,7 +1194,7 @@
|
|
|
1193
1194
|
AlertComponent.TYPE_ERROR = 'error';
|
|
1194
1195
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
1195
1196
|
AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
|
|
1196
|
-
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$
|
|
1197
|
+
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$L, 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) {
|
|
1197
1198
|
if (rf & 1) {
|
|
1198
1199
|
i0__namespace.ɵɵprojectionDef();
|
|
1199
1200
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1299,7 +1300,7 @@
|
|
|
1299
1300
|
}], null, null);
|
|
1300
1301
|
})();
|
|
1301
1302
|
|
|
1302
|
-
var _c0$
|
|
1303
|
+
var _c0$K = function (a0) { return { "js-hidden": a0 }; };
|
|
1303
1304
|
var _c1$j = ["*"];
|
|
1304
1305
|
var TabComponent = /** @class */ (function () {
|
|
1305
1306
|
function TabComponent() {
|
|
@@ -1315,7 +1316,7 @@
|
|
|
1315
1316
|
i0__namespace.ɵɵelementEnd();
|
|
1316
1317
|
}
|
|
1317
1318
|
if (rf & 2) {
|
|
1318
|
-
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$
|
|
1319
|
+
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$K, !ctx.selected));
|
|
1319
1320
|
i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1320
1321
|
}
|
|
1321
1322
|
}, directives: [i1__namespace.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}}"] });
|
|
@@ -1338,7 +1339,7 @@
|
|
|
1338
1339
|
}] });
|
|
1339
1340
|
})();
|
|
1340
1341
|
|
|
1341
|
-
var _c0$
|
|
1342
|
+
var _c0$J = ["tab"];
|
|
1342
1343
|
var _c1$i = function () { return ["."]; };
|
|
1343
1344
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1344
1345
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
@@ -1392,7 +1393,7 @@
|
|
|
1392
1393
|
}
|
|
1393
1394
|
}, viewQuery: function TabsComponent_Query(rf, ctx) {
|
|
1394
1395
|
if (rf & 1) {
|
|
1395
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
1396
|
+
i0__namespace.ɵɵviewQuery(_c0$J, 1);
|
|
1396
1397
|
}
|
|
1397
1398
|
if (rf & 2) {
|
|
1398
1399
|
var _t = void 0;
|
|
@@ -1471,7 +1472,7 @@
|
|
|
1471
1472
|
}], null, null);
|
|
1472
1473
|
})();
|
|
1473
1474
|
|
|
1474
|
-
var _c0$
|
|
1475
|
+
var _c0$I = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1475
1476
|
var ActivityBannerComponent = /** @class */ (function () {
|
|
1476
1477
|
function ActivityBannerComponent() {
|
|
1477
1478
|
}
|
|
@@ -1492,7 +1493,7 @@
|
|
|
1492
1493
|
i0__namespace.ɵɵelementEnd();
|
|
1493
1494
|
}
|
|
1494
1495
|
if (rf & 2) {
|
|
1495
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$
|
|
1496
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$I, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1496
1497
|
i0__namespace.ɵɵadvance(2);
|
|
1497
1498
|
i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1498
1499
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
|
|
@@ -6402,9 +6403,10 @@
|
|
|
6402
6403
|
})();
|
|
6403
6404
|
|
|
6404
6405
|
var CaseFileViewService = /** @class */ (function () {
|
|
6405
|
-
function CaseFileViewService(http, appConfig) {
|
|
6406
|
+
function CaseFileViewService(http, appConfig, errorService) {
|
|
6406
6407
|
this.http = http;
|
|
6407
6408
|
this.appConfig = appConfig;
|
|
6409
|
+
this.errorService = errorService;
|
|
6408
6410
|
}
|
|
6409
6411
|
/**
|
|
6410
6412
|
* Retrieves the categories and documents for a case.
|
|
@@ -6435,12 +6437,12 @@
|
|
|
6435
6437
|
};
|
|
6436
6438
|
return CaseFileViewService;
|
|
6437
6439
|
}());
|
|
6438
|
-
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
|
|
6440
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
|
|
6439
6441
|
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
6440
6442
|
(function () {
|
|
6441
6443
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
6442
6444
|
type: i0.Injectable
|
|
6443
|
-
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
|
|
6445
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
|
|
6444
6446
|
})();
|
|
6445
6447
|
|
|
6446
6448
|
var DocumentManagementService = /** @class */ (function () {
|
|
@@ -9201,7 +9203,7 @@
|
|
|
9201
9203
|
}], null, null);
|
|
9202
9204
|
})();
|
|
9203
9205
|
|
|
9204
|
-
var _c0$
|
|
9206
|
+
var _c0$H = ["writeComplexFieldComponent"];
|
|
9205
9207
|
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
|
|
9206
9208
|
if (rf & 1) {
|
|
9207
9209
|
i0__namespace.ɵɵelementStart(0, "span", 14);
|
|
@@ -9415,7 +9417,7 @@
|
|
|
9415
9417
|
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
9416
9418
|
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
9417
9419
|
if (rf & 1) {
|
|
9418
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
9420
|
+
i0__namespace.ɵɵviewQuery(_c0$H, 1);
|
|
9419
9421
|
i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
|
|
9420
9422
|
}
|
|
9421
9423
|
if (rf & 2) {
|
|
@@ -9457,52 +9459,328 @@
|
|
|
9457
9459
|
}] });
|
|
9458
9460
|
})();
|
|
9459
9461
|
|
|
9460
|
-
function
|
|
9462
|
+
var CaseFileViewCategory = /** @class */ (function () {
|
|
9463
|
+
function CaseFileViewCategory() {
|
|
9464
|
+
}
|
|
9465
|
+
return CaseFileViewCategory;
|
|
9466
|
+
}());
|
|
9467
|
+
|
|
9468
|
+
var CaseFileViewDocument = /** @class */ (function () {
|
|
9469
|
+
function CaseFileViewDocument() {
|
|
9470
|
+
}
|
|
9471
|
+
return CaseFileViewDocument;
|
|
9472
|
+
}());
|
|
9473
|
+
|
|
9474
|
+
/**
|
|
9475
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
9476
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
9477
|
+
*/
|
|
9478
|
+
var CategoriesAndDocuments = /** @class */ (function () {
|
|
9479
|
+
function CategoriesAndDocuments() {
|
|
9480
|
+
}
|
|
9481
|
+
return CategoriesAndDocuments;
|
|
9482
|
+
}());
|
|
9483
|
+
|
|
9484
|
+
var DocumentTreeNode = /** @class */ (function () {
|
|
9485
|
+
function DocumentTreeNode() {
|
|
9486
|
+
}
|
|
9487
|
+
Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
|
|
9488
|
+
get: function () {
|
|
9489
|
+
var countChildren = function (childNodes) {
|
|
9490
|
+
var count = 0;
|
|
9491
|
+
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
9492
|
+
var documents = childNodes.filter(function (item) { return item.type === 'document'; });
|
|
9493
|
+
count += documents.length;
|
|
9494
|
+
childNodes.forEach(function (children) {
|
|
9495
|
+
count += countChildren(children.children);
|
|
9496
|
+
});
|
|
9497
|
+
}
|
|
9498
|
+
return count;
|
|
9499
|
+
};
|
|
9500
|
+
return countChildren(this.children);
|
|
9501
|
+
},
|
|
9502
|
+
enumerable: false,
|
|
9503
|
+
configurable: true
|
|
9504
|
+
});
|
|
9505
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
9506
|
+
var _a, _b;
|
|
9507
|
+
var sortAscending = function () {
|
|
9508
|
+
return function (a, b) {
|
|
9509
|
+
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
9510
|
+
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
9511
|
+
if (a.type === 'category' || b.type === 'category') {
|
|
9512
|
+
return 0;
|
|
9513
|
+
}
|
|
9514
|
+
if (nameA < nameB) {
|
|
9515
|
+
return -1;
|
|
9516
|
+
}
|
|
9517
|
+
if (nameA > nameB) {
|
|
9518
|
+
return 1;
|
|
9519
|
+
}
|
|
9520
|
+
};
|
|
9521
|
+
};
|
|
9522
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
9523
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
9524
|
+
childNodes.sortChildrenAscending();
|
|
9525
|
+
});
|
|
9526
|
+
};
|
|
9527
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
9528
|
+
var _a, _b;
|
|
9529
|
+
var sortDescending = function () {
|
|
9530
|
+
return function (a, b) {
|
|
9531
|
+
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
9532
|
+
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
9533
|
+
if (a.type === 'category' || b.type === 'category') {
|
|
9534
|
+
return 0;
|
|
9535
|
+
}
|
|
9536
|
+
if (nameA > nameB) {
|
|
9537
|
+
return -1;
|
|
9538
|
+
}
|
|
9539
|
+
if (nameA < nameB) {
|
|
9540
|
+
return 1;
|
|
9541
|
+
}
|
|
9542
|
+
};
|
|
9543
|
+
};
|
|
9544
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
9545
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
9546
|
+
childNodes.sortChildrenDescending();
|
|
9547
|
+
});
|
|
9548
|
+
};
|
|
9549
|
+
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
9550
|
+
get: function () {
|
|
9551
|
+
var _a;
|
|
9552
|
+
var flattenChildren = function (nodeChild) {
|
|
9553
|
+
var _a;
|
|
9554
|
+
var flattenedNodes = [];
|
|
9555
|
+
flattenedNodes.push(nodeChild);
|
|
9556
|
+
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
9557
|
+
nodeChild.children.forEach(function (child) {
|
|
9558
|
+
flattenedNodes.push.apply(flattenedNodes, __spread(flattenChildren(child)));
|
|
9559
|
+
});
|
|
9560
|
+
}
|
|
9561
|
+
return flattenedNodes;
|
|
9562
|
+
};
|
|
9563
|
+
return __spread([
|
|
9564
|
+
this
|
|
9565
|
+
], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
9566
|
+
return flattenChildren(item);
|
|
9567
|
+
}).flat());
|
|
9568
|
+
},
|
|
9569
|
+
enumerable: false,
|
|
9570
|
+
configurable: true
|
|
9571
|
+
});
|
|
9572
|
+
return DocumentTreeNode;
|
|
9573
|
+
}());
|
|
9574
|
+
__decorate([
|
|
9575
|
+
classTransformer.Type(function () { return DocumentTreeNode; }),
|
|
9576
|
+
__metadata("design:type", Array)
|
|
9577
|
+
], DocumentTreeNode.prototype, "children", void 0);
|
|
9578
|
+
__decorate([
|
|
9579
|
+
classTransformer.Expose(),
|
|
9580
|
+
__metadata("design:type", Object),
|
|
9581
|
+
__metadata("design:paramtypes", [])
|
|
9582
|
+
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
9583
|
+
|
|
9584
|
+
function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template(rf, ctx) {
|
|
9461
9585
|
if (rf & 1) {
|
|
9462
|
-
i0__namespace.ɵɵ
|
|
9463
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
9464
|
-
i0__namespace.ɵɵ
|
|
9465
|
-
i0__namespace.ɵɵ
|
|
9586
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
9587
|
+
i0__namespace.ɵɵelementStart(1, "div", 4);
|
|
9588
|
+
i0__namespace.ɵɵtext(2);
|
|
9589
|
+
i0__namespace.ɵɵelementEnd();
|
|
9590
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
9591
|
+
}
|
|
9592
|
+
if (rf & 2) {
|
|
9593
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
9594
|
+
i0__namespace.ɵɵadvance(2);
|
|
9595
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.title);
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9598
|
+
function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template(rf, ctx) {
|
|
9599
|
+
if (rf & 1) {
|
|
9600
|
+
i0__namespace.ɵɵelement(0, "img", 8);
|
|
9601
|
+
}
|
|
9602
|
+
if (rf & 2) {
|
|
9603
|
+
var item_r3 = i0__namespace.ɵɵnextContext().$implicit;
|
|
9604
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
9605
|
+
i0__namespace.ɵɵproperty("src", item_r3.iconSrc, i0__namespace.ɵɵsanitizeUrl)("alt", ctx_r4.title);
|
|
9606
|
+
}
|
|
9607
|
+
}
|
|
9608
|
+
function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template(rf, ctx) {
|
|
9609
|
+
if (rf & 1) {
|
|
9610
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
9611
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
9612
|
+
i0__namespace.ɵɵelementStart(1, "div", 5);
|
|
9613
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var item_r3 = ctx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(2); item_r3.actionFn(); return ctx_r6.closeOverlay(); });
|
|
9614
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_img_2_Template, 1, 2, "img", 6);
|
|
9615
|
+
i0__namespace.ɵɵelementStart(3, "div", 7);
|
|
9466
9616
|
i0__namespace.ɵɵtext(4);
|
|
9467
9617
|
i0__namespace.ɵɵelementEnd();
|
|
9468
9618
|
i0__namespace.ɵɵelementEnd();
|
|
9619
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
9620
|
+
}
|
|
9621
|
+
if (rf & 2) {
|
|
9622
|
+
var item_r3 = ctx.$implicit;
|
|
9623
|
+
i0__namespace.ɵɵadvance(2);
|
|
9624
|
+
i0__namespace.ɵɵproperty("ngIf", item_r3.iconSrc);
|
|
9625
|
+
i0__namespace.ɵɵadvance(2);
|
|
9626
|
+
i0__namespace.ɵɵtextInterpolate(item_r3.actionText);
|
|
9627
|
+
}
|
|
9628
|
+
}
|
|
9629
|
+
function CaseFileViewOverlayMenuComponent_ng_template_0_Template(rf, ctx) {
|
|
9630
|
+
if (rf & 1) {
|
|
9631
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
9632
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_1_Template, 3, 1, "ng-container", 2);
|
|
9633
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_0_ng_container_2_Template, 5, 2, "ng-container", 3);
|
|
9469
9634
|
i0__namespace.ɵɵelementEnd();
|
|
9470
9635
|
}
|
|
9471
9636
|
if (rf & 2) {
|
|
9472
|
-
var
|
|
9473
|
-
i0__namespace.ɵɵadvance(
|
|
9474
|
-
i0__namespace.ɵɵ
|
|
9637
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
9638
|
+
i0__namespace.ɵɵadvance(1);
|
|
9639
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
|
|
9640
|
+
i0__namespace.ɵɵadvance(1);
|
|
9641
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.menuItems);
|
|
9475
9642
|
}
|
|
9476
9643
|
}
|
|
9477
|
-
function
|
|
9644
|
+
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
9645
|
+
function CaseFileViewOverlayMenuComponent() {
|
|
9646
|
+
this.title = '';
|
|
9647
|
+
this.isOpen = false;
|
|
9648
|
+
this.isOpenChange = new i0.EventEmitter();
|
|
9649
|
+
}
|
|
9650
|
+
CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
|
|
9651
|
+
var isOpen = false;
|
|
9652
|
+
this.isOpen = isOpen;
|
|
9653
|
+
this.isOpenChange.emit(isOpen);
|
|
9654
|
+
};
|
|
9655
|
+
return CaseFileViewOverlayMenuComponent;
|
|
9656
|
+
}());
|
|
9657
|
+
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
9658
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", cdkOverlayOrigin: "cdkOverlayOrigin", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, decls: 1, vars: 2, consts: [["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen"], [1, "overlayMenu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlayMenu__title"], [1, "overlayMenu__item", 3, "click"], ["class", "overlayMenu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlayMenu__actionText"], [1, "overlayMenu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
9659
|
+
if (rf & 1) {
|
|
9660
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewOverlayMenuComponent_ng_template_0_Template, 3, 2, "ng-template", 0);
|
|
9661
|
+
}
|
|
9662
|
+
if (rf & 2) {
|
|
9663
|
+
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", ctx.cdkOverlayOrigin)("cdkConnectedOverlayOpen", ctx.isOpen);
|
|
9664
|
+
}
|
|
9665
|
+
}, directives: [i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlayMenu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlayMenu__item[_ngcontent-%COMP%], .overlayMenu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlayMenu__item[_ngcontent-%COMP%]:last-child, .overlayMenu__title[_ngcontent-%COMP%]:last-child{border:none}.overlayMenu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlayMenu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlayMenu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlayMenu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
9666
|
+
(function () {
|
|
9667
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
9668
|
+
type: i0.Component,
|
|
9669
|
+
args: [{
|
|
9670
|
+
selector: 'ccd-case-file-view-overlay-menu',
|
|
9671
|
+
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
9672
|
+
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
9673
|
+
}]
|
|
9674
|
+
}], null, { title: [{
|
|
9675
|
+
type: i0.Input
|
|
9676
|
+
}], menuItems: [{
|
|
9677
|
+
type: i0.Input
|
|
9678
|
+
}], cdkOverlayOrigin: [{
|
|
9679
|
+
type: i0.Input
|
|
9680
|
+
}], isOpen: [{
|
|
9681
|
+
type: i0.Input
|
|
9682
|
+
}], isOpenChange: [{
|
|
9683
|
+
type: i0.Output
|
|
9684
|
+
}] });
|
|
9685
|
+
})();
|
|
9686
|
+
|
|
9687
|
+
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
9688
|
+
function CaseFileViewFolderSortComponent() {
|
|
9689
|
+
var _this = this;
|
|
9690
|
+
this.isOpen = false;
|
|
9691
|
+
this.sortAscending = new i0.EventEmitter();
|
|
9692
|
+
this.sortDescending = new i0.EventEmitter();
|
|
9693
|
+
this.overlayMenuItems = [
|
|
9694
|
+
{ actionText: 'A to Z descending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
9695
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
9696
|
+
];
|
|
9697
|
+
}
|
|
9698
|
+
CaseFileViewFolderSortComponent.prototype.ngOnInit = function () {
|
|
9699
|
+
};
|
|
9700
|
+
return CaseFileViewFolderSortComponent;
|
|
9701
|
+
}());
|
|
9702
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
9703
|
+
CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 4, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "sort-button", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button__arrows"], [3, "title", "menuItems", "cdkOverlayOrigin", "isOpen", "isOpenChange"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
|
|
9704
|
+
if (rf & 1) {
|
|
9705
|
+
i0__namespace.ɵɵelementStart(0, "button", 0, 1);
|
|
9706
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSortComponent_Template_button_click_0_listener() { return ctx.isOpen = !ctx.isOpen; });
|
|
9707
|
+
i0__namespace.ɵɵelement(2, "img", 2);
|
|
9708
|
+
i0__namespace.ɵɵelementEnd();
|
|
9709
|
+
i0__namespace.ɵɵelementStart(3, "ccd-case-file-view-overlay-menu", 3);
|
|
9710
|
+
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_3_listener($event) { return ctx.isOpen = $event; });
|
|
9711
|
+
i0__namespace.ɵɵelementEnd();
|
|
9712
|
+
}
|
|
9713
|
+
if (rf & 2) {
|
|
9714
|
+
var _r0 = i0__namespace.ɵɵreference(1);
|
|
9715
|
+
i0__namespace.ɵɵadvance(3);
|
|
9716
|
+
i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("cdkOverlayOrigin", _r0)("isOpen", ctx.isOpen);
|
|
9717
|
+
}
|
|
9718
|
+
}, directives: [i1__namespace$5.CdkOverlayOrigin, CaseFileViewOverlayMenuComponent], styles: [".sort-button[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.sort-button__arrows[_ngcontent-%COMP%]{display:block;height:20px}"] });
|
|
9719
|
+
(function () {
|
|
9720
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
9721
|
+
type: i0.Component,
|
|
9722
|
+
args: [{
|
|
9723
|
+
selector: 'ccd-case-file-view-folder-sort',
|
|
9724
|
+
templateUrl: './case-file-view-folder-sort.component.html',
|
|
9725
|
+
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
9726
|
+
}]
|
|
9727
|
+
}], function () { return []; }, { sortAscending: [{
|
|
9728
|
+
type: i0.Output
|
|
9729
|
+
}], sortDescending: [{
|
|
9730
|
+
type: i0.Output
|
|
9731
|
+
}] });
|
|
9732
|
+
})();
|
|
9733
|
+
|
|
9734
|
+
var _c0$G = ["tree"];
|
|
9735
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
|
|
9478
9736
|
if (rf & 1) {
|
|
9479
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
9480
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
9481
|
-
i0__namespace.ɵɵelementStart(2, "button",
|
|
9482
|
-
i0__namespace.ɵɵ
|
|
9483
|
-
i0__namespace.ɵɵtext(4);
|
|
9737
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
|
|
9738
|
+
i0__namespace.ɵɵelementStart(1, "div", 9);
|
|
9739
|
+
i0__namespace.ɵɵelementStart(2, "button", 10);
|
|
9740
|
+
i0__namespace.ɵɵelement(3, "img", 11);
|
|
9484
9741
|
i0__namespace.ɵɵelementEnd();
|
|
9742
|
+
i0__namespace.ɵɵelementStart(4, "span", 12);
|
|
9743
|
+
i0__namespace.ɵɵtext(5);
|
|
9744
|
+
i0__namespace.ɵɵelementEnd();
|
|
9745
|
+
i0__namespace.ɵɵelementEnd();
|
|
9746
|
+
i0__namespace.ɵɵelementEnd();
|
|
9747
|
+
}
|
|
9748
|
+
if (rf & 2) {
|
|
9749
|
+
var node_r3 = ctx.$implicit;
|
|
9750
|
+
i0__namespace.ɵɵadvance(5);
|
|
9751
|
+
i0__namespace.ɵɵtextInterpolate(node_r3.name);
|
|
9752
|
+
}
|
|
9753
|
+
}
|
|
9754
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template(rf, ctx) {
|
|
9755
|
+
if (rf & 1) {
|
|
9756
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 8);
|
|
9757
|
+
i0__namespace.ɵɵelementStart(1, "div", 13);
|
|
9758
|
+
i0__namespace.ɵɵelementStart(2, "button", 14);
|
|
9759
|
+
i0__namespace.ɵɵelement(3, "img", 15);
|
|
9760
|
+
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
9761
|
+
i0__namespace.ɵɵtext(5);
|
|
9485
9762
|
i0__namespace.ɵɵelementEnd();
|
|
9486
|
-
i0__namespace.ɵɵelementStart(5, "span", 13);
|
|
9487
|
-
i0__namespace.ɵɵtext(6);
|
|
9488
9763
|
i0__namespace.ɵɵelementEnd();
|
|
9764
|
+
i0__namespace.ɵɵelementStart(6, "span", 17);
|
|
9765
|
+
i0__namespace.ɵɵtext(7);
|
|
9489
9766
|
i0__namespace.ɵɵelementEnd();
|
|
9490
|
-
i0__namespace.ɵɵ
|
|
9491
|
-
i0__namespace.ɵɵ
|
|
9767
|
+
i0__namespace.ɵɵelementEnd();
|
|
9768
|
+
i0__namespace.ɵɵelementStart(8, "div");
|
|
9769
|
+
i0__namespace.ɵɵelementContainer(9, 18);
|
|
9492
9770
|
i0__namespace.ɵɵelementEnd();
|
|
9493
9771
|
i0__namespace.ɵɵelementEnd();
|
|
9494
9772
|
}
|
|
9495
9773
|
if (rf & 2) {
|
|
9496
|
-
var
|
|
9497
|
-
var
|
|
9498
|
-
i0__namespace.ɵɵadvance(2);
|
|
9499
|
-
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r3.name);
|
|
9774
|
+
var node_r4 = ctx.$implicit;
|
|
9775
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
9500
9776
|
i0__namespace.ɵɵadvance(2);
|
|
9501
|
-
i0__namespace.ɵɵ
|
|
9777
|
+
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r4.name);
|
|
9778
|
+
i0__namespace.ɵɵadvance(3);
|
|
9779
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.childDocumentCount);
|
|
9502
9780
|
i0__namespace.ɵɵadvance(2);
|
|
9503
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
9781
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.name);
|
|
9504
9782
|
i0__namespace.ɵɵadvance(1);
|
|
9505
|
-
i0__namespace.ɵɵclassProp("document-tree-invisible", !
|
|
9783
|
+
i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r2.nestedTreeControl.isExpanded(node_r4));
|
|
9506
9784
|
}
|
|
9507
9785
|
}
|
|
9508
9786
|
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
@@ -9510,7 +9788,7 @@
|
|
|
9510
9788
|
this.categories = [];
|
|
9511
9789
|
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
9512
9790
|
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
9513
|
-
this.nestedTreeControl = new
|
|
9791
|
+
this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
|
|
9514
9792
|
}
|
|
9515
9793
|
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
9516
9794
|
var _this = this;
|
|
@@ -9530,32 +9808,84 @@
|
|
|
9530
9808
|
};
|
|
9531
9809
|
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
9532
9810
|
var _this = this;
|
|
9533
|
-
return categories.reduce(function (tree, node) {
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9537
|
-
|
|
9538
|
-
|
|
9811
|
+
return categories.reduce(function (tree, node) {
|
|
9812
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9813
|
+
newDocumentTreeNode.name = node.category_name;
|
|
9814
|
+
newDocumentTreeNode.type = 'category';
|
|
9815
|
+
newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
|
|
9816
|
+
return __spread(tree, [
|
|
9817
|
+
newDocumentTreeNode,
|
|
9818
|
+
]);
|
|
9819
|
+
}, []);
|
|
9539
9820
|
};
|
|
9540
9821
|
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
9541
9822
|
var documentsToReturn = [];
|
|
9542
9823
|
documents.forEach(function (document) {
|
|
9543
|
-
|
|
9824
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
9825
|
+
documentTreeNode.name = document.document_filename;
|
|
9826
|
+
documentTreeNode.type = 'document';
|
|
9827
|
+
documentsToReturn.push(documentTreeNode);
|
|
9544
9828
|
});
|
|
9545
9829
|
return documentsToReturn;
|
|
9546
9830
|
};
|
|
9547
9831
|
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
9548
9832
|
var documents = [];
|
|
9549
9833
|
uncategorisedDocuments.forEach(function (document) {
|
|
9550
|
-
|
|
9834
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
9835
|
+
documentTreeNode.name = document.document_filename;
|
|
9836
|
+
documentTreeNode.type = 'document';
|
|
9837
|
+
documents.push(documentTreeNode);
|
|
9838
|
+
});
|
|
9839
|
+
var uncategorisedNode = new DocumentTreeNode();
|
|
9840
|
+
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
9841
|
+
uncategorisedNode.type = 'category';
|
|
9842
|
+
uncategorisedNode.children = documents;
|
|
9843
|
+
return uncategorisedNode;
|
|
9844
|
+
};
|
|
9845
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
|
|
9846
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
9847
|
+
item.sortChildrenAscending();
|
|
9848
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9849
|
+
newDocumentTreeNode.name = item.name;
|
|
9850
|
+
newDocumentTreeNode.type = item.type;
|
|
9851
|
+
newDocumentTreeNode.children = item.children;
|
|
9852
|
+
return newDocumentTreeNode;
|
|
9853
|
+
});
|
|
9854
|
+
this.updateNodeData(sortedData);
|
|
9855
|
+
};
|
|
9856
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
|
|
9857
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
9858
|
+
item.sortChildrenDescending();
|
|
9859
|
+
return item;
|
|
9551
9860
|
});
|
|
9552
|
-
|
|
9861
|
+
this.updateNodeData(sortedData);
|
|
9553
9862
|
};
|
|
9554
9863
|
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
9555
9864
|
if (this.categoriesAndDocumentsSubscription) {
|
|
9556
9865
|
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
9557
9866
|
}
|
|
9558
9867
|
};
|
|
9868
|
+
CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
|
|
9869
|
+
var _this = this;
|
|
9870
|
+
var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
|
|
9871
|
+
return item.name;
|
|
9872
|
+
});
|
|
9873
|
+
this.nestedTreeControl.collapseAll();
|
|
9874
|
+
this.nestedDataSource = data.map(function (item) {
|
|
9875
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9876
|
+
newDocumentTreeNode.name = item.name;
|
|
9877
|
+
newDocumentTreeNode.type = item.type;
|
|
9878
|
+
newDocumentTreeNode.children = item.children;
|
|
9879
|
+
return newDocumentTreeNode;
|
|
9880
|
+
});
|
|
9881
|
+
var flattenedArray = this.nestedDataSource.map(function (item) {
|
|
9882
|
+
return item.flattenedAll;
|
|
9883
|
+
}).flat();
|
|
9884
|
+
var newObjects = flattenedArray.filter(function (item) {
|
|
9885
|
+
return prevSelected.includes(item.name);
|
|
9886
|
+
});
|
|
9887
|
+
newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
|
|
9888
|
+
};
|
|
9559
9889
|
CaseFileViewFolderComponent.prototype.loadCategories = function () {
|
|
9560
9890
|
return [
|
|
9561
9891
|
{
|
|
@@ -9563,12 +9893,26 @@
|
|
|
9563
9893
|
category_name: 'Beers',
|
|
9564
9894
|
category_order: 1,
|
|
9565
9895
|
documents: [
|
|
9896
|
+
{
|
|
9897
|
+
document_url: '/test',
|
|
9898
|
+
document_filename: 'Lager encyclopedia',
|
|
9899
|
+
document_binary_url: '/test/binary',
|
|
9900
|
+
attribute_path: '',
|
|
9901
|
+
upload_timestamp: ''
|
|
9902
|
+
},
|
|
9566
9903
|
{
|
|
9567
9904
|
document_url: '/test',
|
|
9568
9905
|
document_filename: 'Beers encyclopedia',
|
|
9569
9906
|
document_binary_url: '/test/binary',
|
|
9570
9907
|
attribute_path: '',
|
|
9571
9908
|
upload_timestamp: ''
|
|
9909
|
+
},
|
|
9910
|
+
{
|
|
9911
|
+
document_url: '/test',
|
|
9912
|
+
document_filename: 'Ale encyclopedia',
|
|
9913
|
+
document_binary_url: '/test/binary',
|
|
9914
|
+
attribute_path: '',
|
|
9915
|
+
upload_timestamp: ''
|
|
9572
9916
|
}
|
|
9573
9917
|
],
|
|
9574
9918
|
sub_categories: [
|
|
@@ -9720,91 +10064,65 @@
|
|
|
9720
10064
|
}());
|
|
9721
10065
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
9722
10066
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
9723
|
-
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]],
|
|
10067
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], viewQuery: function CaseFileViewFolderComponent_Query(rf, ctx) {
|
|
10068
|
+
if (rf & 1) {
|
|
10069
|
+
i0__namespace.ɵɵviewQuery(_c0$G, 3);
|
|
10070
|
+
}
|
|
10071
|
+
if (rf & 2) {
|
|
10072
|
+
var _t = void 0;
|
|
10073
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tree = _t.first);
|
|
10074
|
+
}
|
|
10075
|
+
}, 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"], ["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) {
|
|
9724
10076
|
if (rf & 1) {
|
|
9725
10077
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
9726
|
-
i0__namespace.ɵɵ
|
|
9727
|
-
i0__namespace.ɵɵ
|
|
9728
|
-
i0__namespace.ɵɵ
|
|
10078
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
10079
|
+
i0__namespace.ɵɵtext(2, "Documents");
|
|
10080
|
+
i0__namespace.ɵɵelementEnd();
|
|
10081
|
+
i0__namespace.ɵɵelementStart(3, "div");
|
|
10082
|
+
i0__namespace.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
|
|
10083
|
+
i0__namespace.ɵɵ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(); });
|
|
9729
10084
|
i0__namespace.ɵɵelementEnd();
|
|
9730
10085
|
i0__namespace.ɵɵelementEnd();
|
|
9731
|
-
i0__namespace.ɵɵ
|
|
9732
|
-
i0__namespace.ɵɵelementStart(5, "
|
|
9733
|
-
i0__namespace.ɵɵ
|
|
9734
|
-
i0__namespace.ɵɵtemplate(
|
|
10086
|
+
i0__namespace.ɵɵelementEnd();
|
|
10087
|
+
i0__namespace.ɵɵelementStart(5, "div", 3);
|
|
10088
|
+
i0__namespace.ɵɵelementStart(6, "cdk-tree", 4, 5);
|
|
10089
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 6, 1, "cdk-nested-tree-node", 6);
|
|
10090
|
+
i0__namespace.ɵɵtemplate(9, CaseFileViewFolderComponent_cdk_nested_tree_node_9_Template, 10, 5, "cdk-nested-tree-node", 7);
|
|
9735
10091
|
i0__namespace.ɵɵelementEnd();
|
|
9736
10092
|
i0__namespace.ɵɵelementEnd();
|
|
9737
10093
|
}
|
|
9738
10094
|
if (rf & 2) {
|
|
9739
|
-
i0__namespace.ɵɵadvance(
|
|
10095
|
+
i0__namespace.ɵɵadvance(6);
|
|
9740
10096
|
i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
9741
|
-
i0__namespace.ɵɵadvance(
|
|
10097
|
+
i0__namespace.ɵɵadvance(3);
|
|
9742
10098
|
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
9743
10099
|
}
|
|
9744
|
-
}, directives: [
|
|
10100
|
+
}, directives: [CaseFileViewFolderSortComponent, i2__namespace.CdkTree, i2__namespace.CdkTreeNodeDef, i2__namespace.CdkNestedTreeNode, i2__namespace.CdkTreeNodeToggle, i2__namespace.CdkTreeNodeOutlet], styles: [".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}.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;padding:6px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:24px;width:24px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;padding-top:4px}.node__name[_ngcontent-%COMP%]{margin-left:4px}"] });
|
|
9745
10101
|
(function () {
|
|
9746
10102
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
9747
10103
|
type: i0.Component,
|
|
9748
10104
|
args: [{
|
|
9749
10105
|
selector: 'ccd-case-file-view-folder',
|
|
10106
|
+
templateUrl: './case-file-view-folder.component.html',
|
|
9750
10107
|
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
9751
|
-
templateUrl: './case-file-view-folder.component.html'
|
|
9752
10108
|
}]
|
|
9753
10109
|
}], function () { return []; }, { categoriesAndDocuments: [{
|
|
9754
10110
|
type: i0.Input
|
|
10111
|
+
}], tree: [{
|
|
10112
|
+
type: i0.ViewChild,
|
|
10113
|
+
args: ['tree', { static: true }]
|
|
9755
10114
|
}] });
|
|
9756
10115
|
})();
|
|
9757
10116
|
|
|
9758
|
-
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
9759
|
-
if (rf & 1) {
|
|
9760
|
-
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
9761
|
-
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
9762
|
-
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
9763
|
-
i0__namespace.ɵɵelementEnd();
|
|
9764
|
-
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
9765
|
-
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
9766
|
-
i0__namespace.ɵɵelementEnd();
|
|
9767
|
-
i0__namespace.ɵɵelementEnd();
|
|
9768
|
-
}
|
|
9769
|
-
}
|
|
9770
|
-
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
9771
|
-
if (rf & 1) {
|
|
9772
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
9773
|
-
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
9774
|
-
i0__namespace.ɵɵtext(2, "Case file");
|
|
9775
|
-
i0__namespace.ɵɵelementEnd();
|
|
9776
|
-
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
9777
|
-
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
9778
|
-
i0__namespace.ɵɵelement(5, "ccd-case-file-view-folder", 8);
|
|
9779
|
-
i0__namespace.ɵɵelementEnd();
|
|
9780
|
-
i0__namespace.ɵɵelement(6, "div", 9);
|
|
9781
|
-
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
9782
|
-
i0__namespace.ɵɵtext(8, " Media viewer ");
|
|
9783
|
-
i0__namespace.ɵɵelementEnd();
|
|
9784
|
-
i0__namespace.ɵɵelementEnd();
|
|
9785
|
-
i0__namespace.ɵɵelementEnd();
|
|
9786
|
-
}
|
|
9787
|
-
if (rf & 2) {
|
|
9788
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
9789
|
-
i0__namespace.ɵɵadvance(5);
|
|
9790
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$);
|
|
9791
|
-
}
|
|
9792
|
-
}
|
|
9793
10117
|
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
9794
10118
|
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
|
|
9795
10119
|
this.elementRef = elementRef;
|
|
9796
10120
|
this.route = route;
|
|
9797
10121
|
this.caseFileViewService = caseFileViewService;
|
|
9798
|
-
this.getCategoriesAndDocumentsError = false;
|
|
9799
10122
|
}
|
|
9800
10123
|
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
9801
|
-
var _this = this;
|
|
9802
10124
|
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
9803
10125
|
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
9804
|
-
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
9805
|
-
next: function (_) { },
|
|
9806
|
-
error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
|
|
9807
|
-
});
|
|
9808
10126
|
};
|
|
9809
10127
|
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
9810
10128
|
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
@@ -9828,33 +10146,37 @@
|
|
|
9828
10146
|
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
9829
10147
|
});
|
|
9830
10148
|
};
|
|
9831
|
-
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
9832
|
-
if (this.categoriesAndDocumentsSubscription) {
|
|
9833
|
-
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
9834
|
-
}
|
|
9835
|
-
};
|
|
9836
10149
|
return CaseFileViewFieldComponent;
|
|
9837
10150
|
}());
|
|
9838
10151
|
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
9839
10152
|
CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService)); };
|
|
9840
|
-
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls:
|
|
10153
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
9841
10154
|
if (rf & 1) {
|
|
9842
|
-
i0__namespace.ɵɵ
|
|
9843
|
-
i0__namespace.ɵɵ
|
|
10155
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
10156
|
+
i0__namespace.ɵɵtext(1, "Case file");
|
|
10157
|
+
i0__namespace.ɵɵelementEnd();
|
|
10158
|
+
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
10159
|
+
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
10160
|
+
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
10161
|
+
i0__namespace.ɵɵelementEnd();
|
|
10162
|
+
i0__namespace.ɵɵelement(5, "div", 4);
|
|
10163
|
+
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
10164
|
+
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
10165
|
+
i0__namespace.ɵɵelementEnd();
|
|
10166
|
+
i0__namespace.ɵɵelementEnd();
|
|
9844
10167
|
}
|
|
9845
10168
|
if (rf & 2) {
|
|
9846
|
-
i0__namespace.ɵɵ
|
|
9847
|
-
i0__namespace.ɵɵ
|
|
9848
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
10169
|
+
i0__namespace.ɵɵadvance(4);
|
|
10170
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
9849
10171
|
}
|
|
9850
|
-
}, directives: [
|
|
10172
|
+
}, directives: [CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#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%]{flex:1 1 0%}"] });
|
|
9851
10173
|
(function () {
|
|
9852
10174
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
9853
10175
|
type: i0.Component,
|
|
9854
10176
|
args: [{
|
|
9855
10177
|
selector: 'ccd-case-file-view-field',
|
|
9856
10178
|
templateUrl: './case-file-view-field.component.html',
|
|
9857
|
-
styleUrls: ['./case-file-view-field.component.scss']
|
|
10179
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
9858
10180
|
}]
|
|
9859
10181
|
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
|
|
9860
10182
|
})();
|
|
@@ -10675,7 +10997,7 @@
|
|
|
10675
10997
|
};
|
|
10676
10998
|
return WriteCollectionFieldComponent;
|
|
10677
10999
|
}(AbstractFieldWriteComponent));
|
|
10678
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
11000
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
10679
11001
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
10680
11002
|
if (rf & 1) {
|
|
10681
11003
|
i0__namespace.ɵɵviewQuery(_c0$D, 1);
|
|
@@ -10724,7 +11046,7 @@
|
|
|
10724
11046
|
templateUrl: './write-collection-field.html',
|
|
10725
11047
|
styleUrls: ['./collection-field.scss']
|
|
10726
11048
|
}]
|
|
10727
|
-
}], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
11049
|
+
}], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
10728
11050
|
type: i0.Input
|
|
10729
11051
|
}], formGroup: [{
|
|
10730
11052
|
type: i0.Input
|
|
@@ -19659,7 +19981,9 @@
|
|
|
19659
19981
|
WriteCollectionFieldComponent,
|
|
19660
19982
|
// ComponentLauncher web components
|
|
19661
19983
|
CaseFileViewFieldComponent,
|
|
19662
|
-
CaseFileViewFolderComponent
|
|
19984
|
+
CaseFileViewFolderComponent,
|
|
19985
|
+
CaseFileViewFolderSortComponent,
|
|
19986
|
+
CaseFileViewOverlayMenuComponent
|
|
19663
19987
|
];
|
|
19664
19988
|
var PaletteModule = /** @class */ (function () {
|
|
19665
19989
|
function PaletteModule() {
|
|
@@ -19699,9 +20023,10 @@
|
|
|
19699
20023
|
input.MatInputModule,
|
|
19700
20024
|
i5.MatDatepickerModule,
|
|
19701
20025
|
i5$1.MatAutocompleteModule,
|
|
19702
|
-
|
|
20026
|
+
i2.CdkTreeModule,
|
|
20027
|
+
i1$5.OverlayModule,
|
|
19703
20028
|
i3.PaymentLibModule,
|
|
19704
|
-
i2.ScrollToModule.forRoot()
|
|
20029
|
+
i2$1.ScrollToModule.forRoot()
|
|
19705
20030
|
], i4.NgxMatDatetimePickerModule,
|
|
19706
20031
|
i4.NgxMatNativeDateModule,
|
|
19707
20032
|
i4.NgxMatTimepickerModule,
|
|
@@ -19784,7 +20109,9 @@
|
|
|
19784
20109
|
WriteCollectionFieldComponent,
|
|
19785
20110
|
// ComponentLauncher web components
|
|
19786
20111
|
CaseFileViewFieldComponent,
|
|
19787
|
-
CaseFileViewFolderComponent
|
|
20112
|
+
CaseFileViewFolderComponent,
|
|
20113
|
+
CaseFileViewFolderSortComponent,
|
|
20114
|
+
CaseFileViewOverlayMenuComponent, CaseFileViewOverlayMenuComponent], imports: [i1.CommonModule,
|
|
19788
20115
|
i1$1.RouterModule,
|
|
19789
20116
|
i1$2.FormsModule,
|
|
19790
20117
|
i1$2.ReactiveFormsModule,
|
|
@@ -19805,8 +20132,9 @@
|
|
|
19805
20132
|
input.MatInputModule,
|
|
19806
20133
|
i5.MatDatepickerModule,
|
|
19807
20134
|
i5$1.MatAutocompleteModule,
|
|
19808
|
-
|
|
19809
|
-
|
|
20135
|
+
i2.CdkTreeModule,
|
|
20136
|
+
i1$5.OverlayModule,
|
|
20137
|
+
i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
19810
20138
|
i4.NgxMatNativeDateModule,
|
|
19811
20139
|
i4.NgxMatTimepickerModule,
|
|
19812
20140
|
TabsModule,
|
|
@@ -19882,7 +20210,9 @@
|
|
|
19882
20210
|
WriteCollectionFieldComponent,
|
|
19883
20211
|
// ComponentLauncher web components
|
|
19884
20212
|
CaseFileViewFieldComponent,
|
|
19885
|
-
CaseFileViewFolderComponent
|
|
20213
|
+
CaseFileViewFolderComponent,
|
|
20214
|
+
CaseFileViewFolderSortComponent,
|
|
20215
|
+
CaseFileViewOverlayMenuComponent] });
|
|
19886
20216
|
})();
|
|
19887
20217
|
(function () {
|
|
19888
20218
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
|
|
@@ -19910,9 +20240,10 @@
|
|
|
19910
20240
|
input.MatInputModule,
|
|
19911
20241
|
i5.MatDatepickerModule,
|
|
19912
20242
|
i5$1.MatAutocompleteModule,
|
|
19913
|
-
|
|
20243
|
+
i2.CdkTreeModule,
|
|
20244
|
+
i1$5.OverlayModule,
|
|
19914
20245
|
i3.PaymentLibModule,
|
|
19915
|
-
i2.ScrollToModule.forRoot()
|
|
20246
|
+
i2$1.ScrollToModule.forRoot()
|
|
19916
20247
|
],
|
|
19917
20248
|
declarations: __spread([
|
|
19918
20249
|
FixedListPipe,
|
|
@@ -19920,7 +20251,9 @@
|
|
|
19920
20251
|
DynamicListPipe,
|
|
19921
20252
|
DynamicRadioListPipe,
|
|
19922
20253
|
DocumentUrlPipe
|
|
19923
|
-
], PALETTE_COMPONENTS
|
|
20254
|
+
], PALETTE_COMPONENTS, [
|
|
20255
|
+
CaseFileViewOverlayMenuComponent,
|
|
20256
|
+
]),
|
|
19924
20257
|
exports: __spread([
|
|
19925
20258
|
i4.NgxMatDatetimePickerModule,
|
|
19926
20259
|
i4.NgxMatNativeDateModule,
|
|
@@ -23348,8 +23681,8 @@
|
|
|
23348
23681
|
}
|
|
23349
23682
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
|
|
23350
23683
|
if (rf & 1) {
|
|
23351
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
23352
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
23684
|
+
i0__namespace.ɵɵelementStart(0, "th", 35);
|
|
23685
|
+
i0__namespace.ɵɵelementStart(1, "div", 36);
|
|
23353
23686
|
i0__namespace.ɵɵtext(2);
|
|
23354
23687
|
i0__namespace.ɵɵelementEnd();
|
|
23355
23688
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23364,9 +23697,9 @@
|
|
|
23364
23697
|
if (rf & 1) {
|
|
23365
23698
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
23366
23699
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
|
|
23367
|
-
i0__namespace.ɵɵelementStart(2, "th");
|
|
23368
|
-
i0__namespace.ɵɵelementStart(3, "span",
|
|
23369
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
23700
|
+
i0__namespace.ɵɵelementStart(2, "th", 32);
|
|
23701
|
+
i0__namespace.ɵɵelementStart(3, "span", 33);
|
|
23702
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 34);
|
|
23370
23703
|
i0__namespace.ɵɵelementEnd();
|
|
23371
23704
|
i0__namespace.ɵɵelementEnd();
|
|
23372
23705
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23376,16 +23709,18 @@
|
|
|
23376
23709
|
var ctx_r22 = i0__namespace.ɵɵnextContext(4);
|
|
23377
23710
|
i0__namespace.ɵɵadvance(1);
|
|
23378
23711
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
|
|
23379
|
-
i0__namespace.ɵɵadvance(
|
|
23712
|
+
i0__namespace.ɵɵadvance(1);
|
|
23713
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
|
|
23714
|
+
i0__namespace.ɵɵadvance(2);
|
|
23380
23715
|
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
|
|
23381
23716
|
}
|
|
23382
23717
|
}
|
|
23383
23718
|
function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
23384
23719
|
if (rf & 1) {
|
|
23385
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
23386
|
-
i0__namespace.ɵɵelementStart(1, "th");
|
|
23387
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
23388
|
-
i0__namespace.ɵɵelement(3, "ccd-field-read",
|
|
23720
|
+
i0__namespace.ɵɵelementStart(0, "tr", 37);
|
|
23721
|
+
i0__namespace.ɵɵelementStart(1, "th", 32);
|
|
23722
|
+
i0__namespace.ɵɵelementStart(2, "span", 33);
|
|
23723
|
+
i0__namespace.ɵɵelement(3, "ccd-field-read", 34);
|
|
23389
23724
|
i0__namespace.ɵɵelementEnd();
|
|
23390
23725
|
i0__namespace.ɵɵelementEnd();
|
|
23391
23726
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23393,7 +23728,9 @@
|
|
|
23393
23728
|
if (rf & 2) {
|
|
23394
23729
|
var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
|
|
23395
23730
|
var ctx_r23 = i0__namespace.ɵɵnextContext(4);
|
|
23396
|
-
i0__namespace.ɵɵadvance(
|
|
23731
|
+
i0__namespace.ɵɵadvance(1);
|
|
23732
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r21.id);
|
|
23733
|
+
i0__namespace.ɵɵadvance(2);
|
|
23397
23734
|
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r23.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r23.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r23.markdownUseHrefAsRouterLink);
|
|
23398
23735
|
}
|
|
23399
23736
|
}
|
|
@@ -23403,8 +23740,8 @@
|
|
|
23403
23740
|
i0__namespace.ɵɵelementStart(1, "div", 27);
|
|
23404
23741
|
i0__namespace.ɵɵelementContainerStart(2, 28);
|
|
23405
23742
|
i0__namespace.ɵɵpipe(3, "ccdIsCompound");
|
|
23406
|
-
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5,
|
|
23407
|
-
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4,
|
|
23743
|
+
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 29);
|
|
23744
|
+
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 30);
|
|
23408
23745
|
i0__namespace.ɵɵelementContainerEnd();
|
|
23409
23746
|
i0__namespace.ɵɵelementEnd();
|
|
23410
23747
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -23764,7 +24101,7 @@
|
|
|
23764
24101
|
var _t = void 0;
|
|
23765
24102
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
23766
24103
|
}
|
|
23767
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, 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"], [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"], ["animationDuration", "0ms", 3, "disableRipple", "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"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
24104
|
+
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, 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"], [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"], ["animationDuration", "0ms", 3, "disableRipple", "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"], [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) {
|
|
23768
24105
|
if (rf & 1) {
|
|
23769
24106
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
23770
24107
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
@@ -27212,12 +27549,12 @@
|
|
|
27212
27549
|
i0__namespace.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
|
|
27213
27550
|
}
|
|
27214
27551
|
}
|
|
27215
|
-
function
|
|
27552
|
+
function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) {
|
|
27216
27553
|
if (rf & 1) {
|
|
27217
27554
|
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27218
27555
|
i0__namespace.ɵɵelementStart(0, "div", 27);
|
|
27219
27556
|
i0__namespace.ɵɵelementStart(1, "a", 28);
|
|
27220
|
-
i0__namespace.ɵɵlistener("click", function
|
|
27557
|
+
i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var col_r15 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
|
|
27221
27558
|
i0__namespace.ɵɵelementEnd();
|
|
27222
27559
|
i0__namespace.ɵɵelementEnd();
|
|
27223
27560
|
}
|
|
@@ -27234,11 +27571,13 @@
|
|
|
27234
27571
|
i0__namespace.ɵɵelementStart(0, "th");
|
|
27235
27572
|
i0__namespace.ɵɵelementStart(1, "table", 24);
|
|
27236
27573
|
i0__namespace.ɵɵelementStart(2, "tr");
|
|
27237
|
-
i0__namespace.ɵɵelementStart(3, "
|
|
27238
|
-
i0__namespace.ɵɵ
|
|
27239
|
-
i0__namespace.ɵɵ
|
|
27574
|
+
i0__namespace.ɵɵelementStart(3, "th");
|
|
27575
|
+
i0__namespace.ɵɵelementStart(4, "div", 25);
|
|
27576
|
+
i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var col_r15 = ctx.$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
|
|
27577
|
+
i0__namespace.ɵɵtext(5);
|
|
27578
|
+
i0__namespace.ɵɵelementEnd();
|
|
27579
|
+
i0__namespace.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
|
|
27240
27580
|
i0__namespace.ɵɵelementEnd();
|
|
27241
|
-
i0__namespace.ɵɵtemplate(5, SearchResultComponent_table_0_th_10_div_5_Template, 2, 1, "div", 26);
|
|
27242
27581
|
i0__namespace.ɵɵelementEnd();
|
|
27243
27582
|
i0__namespace.ɵɵelementEnd();
|
|
27244
27583
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -27247,8 +27586,8 @@
|
|
|
27247
27586
|
var col_r15 = ctx.$implicit;
|
|
27248
27587
|
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
27249
27588
|
i0__namespace.ɵɵadvance(1);
|
|
27250
|
-
i0__namespace.ɵɵ
|
|
27251
|
-
i0__namespace.ɵɵadvance(
|
|
27589
|
+
i0__namespace.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
|
|
27590
|
+
i0__namespace.ɵɵadvance(4);
|
|
27252
27591
|
i0__namespace.ɵɵtextInterpolate(col_r15.label);
|
|
27253
27592
|
i0__namespace.ɵɵadvance(1);
|
|
27254
27593
|
i0__namespace.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
|
|
@@ -27584,7 +27923,7 @@
|
|
|
27584
27923
|
i0__namespace.ɵɵelementStart(7, "thead");
|
|
27585
27924
|
i0__namespace.ɵɵelementStart(8, "tr", 7);
|
|
27586
27925
|
i0__namespace.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
|
|
27587
|
-
i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
27926
|
+
i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
|
|
27588
27927
|
i0__namespace.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
|
|
27589
27928
|
i0__namespace.ɵɵelementEnd();
|
|
27590
27929
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28421,6 +28760,8 @@
|
|
|
28421
28760
|
exports.CaseFieldService = CaseFieldService;
|
|
28422
28761
|
exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
|
|
28423
28762
|
exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
|
|
28763
|
+
exports.CaseFileViewFolderSortComponent = CaseFileViewFolderSortComponent;
|
|
28764
|
+
exports.CaseFileViewOverlayMenuComponent = CaseFileViewOverlayMenuComponent;
|
|
28424
28765
|
exports.CaseFileViewService = CaseFileViewService;
|
|
28425
28766
|
exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
|
|
28426
28767
|
exports.CaseHeaderComponent = CaseHeaderComponent;
|