@hmcts/ccd-case-ui-toolkit 5.0.33-angular11-upgrade → 5.0.34-case-file-view-merge-into-angular-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +1693 -442
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +23 -17
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +72 -0
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +134 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.js +52 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +38 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +353 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +159 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +6 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.js +2 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +100 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +2 -0
- package/esm2015/lib/shared/components/palette/case-file-view/index.js +4 -0
- package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +9 -5
- package/esm2015/lib/shared/components/palette/index.js +2 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +71 -15
- package/esm2015/lib/shared/components/palette/palette.service.js +19 -1
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
- package/esm2015/lib/shared/components/search-result/search-result.component.js +53 -46
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
- package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.js +6 -0
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +93 -0
- package/esm2015/lib/shared/domain/case-file-view/index.js +6 -0
- package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +46 -0
- package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
- package/esm2015/lib/shared/services/index.js +2 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1340 -247
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +5 -1
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +2 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +8 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +33 -0
- package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts +17 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +13 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +53 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts +28 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts +6 -0
- package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts +6 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +13 -0
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts +2 -0
- package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts +4 -0
- package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts +5 -1
- package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/index.d.ts +1 -0
- package/lib/shared/components/palette/index.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts +41 -29
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/palette.service.d.ts +2 -0
- package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
- package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
- package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts +5 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +14 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/index.d.ts +6 -0
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
- package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts +21 -0
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
- package/lib/shared/services/case-file-view/index.d.ts +2 -0
- package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
- package/lib/shared/services/index.d.ts +1 -0
- package/lib/shared/services/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/public-api.d.ts.map +1 -1
|
@@ -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('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('
|
|
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', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', '
|
|
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.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i5, i6, i5$1, i6$1, i3$1, i3,
|
|
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('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('@hmcts/media-viewer'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular-material-components/moment-adapter'), require('@angular/cdk/portal'), 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', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', '@hmcts/media-viewer', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular-material-components/moment-adapter', '@angular/cdk/portal', '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.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global.i12, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global["@angular-material-components/moment-adapter"], global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3, i12, i2$1, i1$5, momentAdapter, i6$2, i1$6, i9) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -34,16 +34,19 @@
|
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
35
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
36
36
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
37
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
38
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
37
39
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
38
40
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
39
41
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
40
42
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
41
43
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
42
44
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
43
|
-
var
|
|
45
|
+
var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
|
|
44
46
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
45
|
-
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
46
47
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
48
|
+
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
49
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
47
50
|
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
48
51
|
|
|
49
52
|
function FooterComponent_div_2_Template(rf, ctx) {
|
|
@@ -115,17 +118,17 @@
|
|
|
115
118
|
i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
|
|
116
119
|
}
|
|
117
120
|
}
|
|
118
|
-
var _c0$
|
|
119
|
-
var _c1$
|
|
121
|
+
var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
|
+
var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
120
123
|
var FooterComponent = /** @class */ (function () {
|
|
121
124
|
function FooterComponent() {
|
|
122
125
|
}
|
|
123
126
|
return FooterComponent;
|
|
124
127
|
}());
|
|
125
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
126
|
-
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
129
|
+
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
|
|
127
130
|
if (rf & 1) {
|
|
128
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
131
|
+
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
129
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
130
133
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
131
134
|
i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
|
|
@@ -204,8 +207,8 @@
|
|
|
204
207
|
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
|
-
var _c0$
|
|
208
|
-
var _c1$
|
|
210
|
+
var _c0$Z = [[["", "headerNavigation", ""]]];
|
|
211
|
+
var _c1$q = ["[headerNavigation]"];
|
|
209
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
210
213
|
function HeaderBarComponent() {
|
|
211
214
|
this.signOutRequest = new i0.EventEmitter();
|
|
@@ -216,9 +219,9 @@
|
|
|
216
219
|
return HeaderBarComponent;
|
|
217
220
|
}());
|
|
218
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
219
|
-
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
222
|
+
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
|
|
220
223
|
if (rf & 1) {
|
|
221
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
224
|
+
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
222
225
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
223
226
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
224
227
|
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
@@ -279,17 +282,17 @@
|
|
|
279
282
|
}] });
|
|
280
283
|
})();
|
|
281
284
|
|
|
282
|
-
var _c0$
|
|
283
|
-
var _c1$
|
|
285
|
+
var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
|
+
var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
284
287
|
var NavigationComponent = /** @class */ (function () {
|
|
285
288
|
function NavigationComponent() {
|
|
286
289
|
}
|
|
287
290
|
return NavigationComponent;
|
|
288
291
|
}());
|
|
289
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
290
|
-
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
293
|
+
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
291
294
|
if (rf & 1) {
|
|
292
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
295
|
+
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
293
296
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
294
297
|
i0__namespace.ɵɵelementStart(1, "nav", 0);
|
|
295
298
|
i0__namespace.ɵɵprojection(2);
|
|
@@ -434,17 +437,17 @@
|
|
|
434
437
|
}], null, null);
|
|
435
438
|
})();
|
|
436
439
|
|
|
437
|
-
var _c0$
|
|
438
|
-
var _c1$
|
|
440
|
+
var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
|
+
var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
439
442
|
var BodyComponent = /** @class */ (function () {
|
|
440
443
|
function BodyComponent() {
|
|
441
444
|
}
|
|
442
445
|
return BodyComponent;
|
|
443
446
|
}());
|
|
444
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
445
|
-
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
448
|
+
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
446
449
|
if (rf & 1) {
|
|
447
|
-
i0__namespace.ɵɵprojectionDef(_c0$
|
|
450
|
+
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
448
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
449
452
|
i0__namespace.ɵɵprojection(1);
|
|
450
453
|
i0__namespace.ɵɵprojection(2, 1);
|
|
@@ -562,7 +565,7 @@
|
|
|
562
565
|
function step(op) {
|
|
563
566
|
if (f)
|
|
564
567
|
throw new TypeError("Generator is already executing.");
|
|
565
|
-
while (_)
|
|
568
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
566
569
|
try {
|
|
567
570
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
568
571
|
return t;
|
|
@@ -791,7 +794,7 @@
|
|
|
791
794
|
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
792
795
|
}
|
|
793
796
|
|
|
794
|
-
var _c0$
|
|
797
|
+
var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
|
|
795
798
|
function DateInputComponent_div_16_Template(rf, ctx) {
|
|
796
799
|
if (rf & 1) {
|
|
797
800
|
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -809,7 +812,7 @@
|
|
|
809
812
|
i0__namespace.ɵɵadvance(1);
|
|
810
813
|
i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
|
|
811
814
|
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$
|
|
815
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
|
|
813
816
|
}
|
|
814
817
|
}
|
|
815
818
|
function DateInputComponent_div_17_Template(rf, ctx) {
|
|
@@ -829,7 +832,7 @@
|
|
|
829
832
|
i0__namespace.ɵɵadvance(1);
|
|
830
833
|
i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
|
|
831
834
|
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$
|
|
835
|
+
i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
|
|
833
836
|
}
|
|
834
837
|
}
|
|
835
838
|
function DateInputComponent_div_18_Template(rf, ctx) {
|
|
@@ -849,7 +852,7 @@
|
|
|
849
852
|
i0__namespace.ɵɵadvance(1);
|
|
850
853
|
i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
|
|
851
854
|
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$
|
|
855
|
+
i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
|
|
853
856
|
}
|
|
854
857
|
}
|
|
855
858
|
var DateInputComponent = /** @class */ (function () {
|
|
@@ -1083,15 +1086,15 @@
|
|
|
1083
1086
|
i0__namespace.ɵɵadvance(2);
|
|
1084
1087
|
i0__namespace.ɵɵproperty("for", ctx.dayId());
|
|
1085
1088
|
i0__namespace.ɵɵadvance(2);
|
|
1086
|
-
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$
|
|
1089
|
+
i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
|
|
1087
1090
|
i0__namespace.ɵɵadvance(3);
|
|
1088
1091
|
i0__namespace.ɵɵproperty("for", ctx.monthId());
|
|
1089
1092
|
i0__namespace.ɵɵadvance(2);
|
|
1090
|
-
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$
|
|
1093
|
+
i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
|
|
1091
1094
|
i0__namespace.ɵɵadvance(3);
|
|
1092
1095
|
i0__namespace.ɵɵproperty("for", ctx.yearId());
|
|
1093
1096
|
i0__namespace.ɵɵadvance(2);
|
|
1094
|
-
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$
|
|
1097
|
+
i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
|
|
1095
1098
|
i0__namespace.ɵɵadvance(2);
|
|
1096
1099
|
i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
|
|
1097
1100
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -1172,7 +1175,7 @@
|
|
|
1172
1175
|
i0__namespace.ɵɵelementContainerEnd();
|
|
1173
1176
|
}
|
|
1174
1177
|
}
|
|
1175
|
-
var _c0$
|
|
1178
|
+
var _c0$V = ["*"];
|
|
1176
1179
|
exports.AlertMessageType = void 0;
|
|
1177
1180
|
(function (AlertMessageType) {
|
|
1178
1181
|
AlertMessageType["WARNING"] = "warning";
|
|
@@ -1193,7 +1196,7 @@
|
|
|
1193
1196
|
AlertComponent.TYPE_ERROR = 'error';
|
|
1194
1197
|
AlertComponent.TYPE_INFORMATION = 'information';
|
|
1195
1198
|
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$
|
|
1199
|
+
AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
|
|
1197
1200
|
if (rf & 1) {
|
|
1198
1201
|
i0__namespace.ɵɵprojectionDef();
|
|
1199
1202
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1468,15 +1471,15 @@
|
|
|
1468
1471
|
}] });
|
|
1469
1472
|
})();
|
|
1470
1473
|
|
|
1471
|
-
var _c0$
|
|
1472
|
-
var _c1$
|
|
1474
|
+
var _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1475
|
+
var _c1$n = ["*"];
|
|
1473
1476
|
var TabComponent = /** @class */ (function () {
|
|
1474
1477
|
function TabComponent() {
|
|
1475
1478
|
}
|
|
1476
1479
|
return TabComponent;
|
|
1477
1480
|
}());
|
|
1478
1481
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1479
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1482
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1480
1483
|
if (rf & 1) {
|
|
1481
1484
|
i0__namespace.ɵɵprojectionDef();
|
|
1482
1485
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1484,7 +1487,7 @@
|
|
|
1484
1487
|
i0__namespace.ɵɵelementEnd();
|
|
1485
1488
|
}
|
|
1486
1489
|
if (rf & 2) {
|
|
1487
|
-
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$
|
|
1490
|
+
i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
|
|
1488
1491
|
i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1489
1492
|
}
|
|
1490
1493
|
}, 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}}"] });
|
|
@@ -1507,8 +1510,8 @@
|
|
|
1507
1510
|
}] });
|
|
1508
1511
|
})();
|
|
1509
1512
|
|
|
1510
|
-
var _c0$
|
|
1511
|
-
var _c1$
|
|
1513
|
+
var _c0$T = ["tab"];
|
|
1514
|
+
var _c1$m = function () { return ["."]; };
|
|
1512
1515
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1513
1516
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1514
1517
|
if (rf & 1) {
|
|
@@ -1523,7 +1526,7 @@
|
|
|
1523
1526
|
if (rf & 2) {
|
|
1524
1527
|
var panel_r1 = ctx.$implicit;
|
|
1525
1528
|
i0__namespace.ɵɵadvance(1);
|
|
1526
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$
|
|
1529
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1527
1530
|
i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1528
1531
|
i0__namespace.ɵɵadvance(2);
|
|
1529
1532
|
i0__namespace.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -1561,7 +1564,7 @@
|
|
|
1561
1564
|
}
|
|
1562
1565
|
}, viewQuery: function TabsComponent_Query(rf, ctx) {
|
|
1563
1566
|
if (rf & 1) {
|
|
1564
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
1567
|
+
i0__namespace.ɵɵviewQuery(_c0$T, 1);
|
|
1565
1568
|
}
|
|
1566
1569
|
if (rf & 2) {
|
|
1567
1570
|
var _t = void 0;
|
|
@@ -1640,7 +1643,7 @@
|
|
|
1640
1643
|
}], null, null);
|
|
1641
1644
|
})();
|
|
1642
1645
|
|
|
1643
|
-
var _c0$
|
|
1646
|
+
var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
|
|
1644
1647
|
var ActivityBannerComponent = /** @class */ (function () {
|
|
1645
1648
|
function ActivityBannerComponent() {
|
|
1646
1649
|
}
|
|
@@ -1661,7 +1664,7 @@
|
|
|
1661
1664
|
i0__namespace.ɵɵelementEnd();
|
|
1662
1665
|
}
|
|
1663
1666
|
if (rf & 2) {
|
|
1664
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$
|
|
1667
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
|
|
1665
1668
|
i0__namespace.ɵɵadvance(2);
|
|
1666
1669
|
i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
|
|
1667
1670
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
|
|
@@ -3044,7 +3047,7 @@
|
|
|
3044
3047
|
return IsCompoundPipe;
|
|
3045
3048
|
}());
|
|
3046
3049
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
3047
|
-
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
3050
|
+
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
|
|
3048
3051
|
];
|
|
3049
3052
|
IsCompoundPipe.EXCLUDE = [
|
|
3050
3053
|
'CaseLink', 'JudicialUser'
|
|
@@ -6813,6 +6816,48 @@
|
|
|
6813
6816
|
}], function () { return [{ type: i1__namespace$1.Router }]; }, null);
|
|
6814
6817
|
})();
|
|
6815
6818
|
|
|
6819
|
+
var CaseFileViewService = /** @class */ (function () {
|
|
6820
|
+
function CaseFileViewService(http, appConfig) {
|
|
6821
|
+
this.http = http;
|
|
6822
|
+
this.appConfig = appConfig;
|
|
6823
|
+
}
|
|
6824
|
+
/**
|
|
6825
|
+
* Retrieves the categories and documents for a case.
|
|
6826
|
+
*
|
|
6827
|
+
* @param caseRef 16-digit Case Reference number of the case
|
|
6828
|
+
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
6829
|
+
*/
|
|
6830
|
+
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
6831
|
+
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
6832
|
+
if (url) {
|
|
6833
|
+
url += "/" + caseRef;
|
|
6834
|
+
return this.http.get(url, { observe: 'body' });
|
|
6835
|
+
}
|
|
6836
|
+
return rxjs.of(null);
|
|
6837
|
+
};
|
|
6838
|
+
CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
|
|
6839
|
+
var url = this.appConfig.getDocumentDataUrl();
|
|
6840
|
+
if (url) {
|
|
6841
|
+
url += "/" + caseRef;
|
|
6842
|
+
var body = {
|
|
6843
|
+
case_version: caseVersion,
|
|
6844
|
+
attribute_path: attributePath,
|
|
6845
|
+
category_id: categoryId
|
|
6846
|
+
};
|
|
6847
|
+
return this.http.put(url, body, { observe: 'body' });
|
|
6848
|
+
}
|
|
6849
|
+
return rxjs.of(null);
|
|
6850
|
+
};
|
|
6851
|
+
return CaseFileViewService;
|
|
6852
|
+
}());
|
|
6853
|
+
CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
|
|
6854
|
+
CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
|
|
6855
|
+
(function () {
|
|
6856
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
|
|
6857
|
+
type: i0.Injectable
|
|
6858
|
+
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
|
|
6859
|
+
})();
|
|
6860
|
+
|
|
6816
6861
|
var CaseFlagRefdataService = /** @class */ (function () {
|
|
6817
6862
|
function CaseFlagRefdataService(http, appConfig) {
|
|
6818
6863
|
this.http = http;
|
|
@@ -11054,7 +11099,7 @@
|
|
|
11054
11099
|
'',
|
|
11055
11100
|
{}
|
|
11056
11101
|
];
|
|
11057
|
-
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher'];
|
|
11102
|
+
ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
|
|
11058
11103
|
ReadFieldsFilterPipe.NESTED_TYPES = {
|
|
11059
11104
|
Complex: ReadFieldsFilterPipe.isValidComplex,
|
|
11060
11105
|
Collection: ReadFieldsFilterPipe.isValidCollection
|
|
@@ -11513,6 +11558,307 @@
|
|
|
11513
11558
|
}], null, null);
|
|
11514
11559
|
})();
|
|
11515
11560
|
|
|
11561
|
+
var CommonDataService = /** @class */ (function () {
|
|
11562
|
+
function CommonDataService(http) {
|
|
11563
|
+
this.http = http;
|
|
11564
|
+
}
|
|
11565
|
+
CommonDataService.prototype.getRefData = function (url) {
|
|
11566
|
+
if (url) {
|
|
11567
|
+
return this.http.get(url, { observe: 'body' });
|
|
11568
|
+
}
|
|
11569
|
+
return rxjs.of(null);
|
|
11570
|
+
};
|
|
11571
|
+
return CommonDataService;
|
|
11572
|
+
}());
|
|
11573
|
+
CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
|
|
11574
|
+
CommonDataService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
|
|
11575
|
+
(function () {
|
|
11576
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CommonDataService, [{
|
|
11577
|
+
type: i0.Injectable
|
|
11578
|
+
}], function () { return [{ type: i1__namespace$2.HttpClient }]; }, null);
|
|
11579
|
+
})();
|
|
11580
|
+
|
|
11581
|
+
var AddressOption = /** @class */ (function () {
|
|
11582
|
+
function AddressOption(addressModel, description) {
|
|
11583
|
+
if (description == null) {
|
|
11584
|
+
this.value = addressModel;
|
|
11585
|
+
this.description = this.getDescription();
|
|
11586
|
+
}
|
|
11587
|
+
else {
|
|
11588
|
+
this.description = description;
|
|
11589
|
+
}
|
|
11590
|
+
}
|
|
11591
|
+
AddressOption.prototype.getDescription = function () {
|
|
11592
|
+
return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
|
|
11593
|
+
+ this.prefixWithCommaIfPresent(this.value.AddressLine2)
|
|
11594
|
+
+ this.prefixWithCommaIfPresent(this.value.AddressLine3)
|
|
11595
|
+
+ ', ' + this.value.PostTown);
|
|
11596
|
+
};
|
|
11597
|
+
AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
|
|
11598
|
+
return value ? ', ' + value : value;
|
|
11599
|
+
};
|
|
11600
|
+
AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
|
|
11601
|
+
return value.replace(new RegExp('^,', 'gi'), '');
|
|
11602
|
+
};
|
|
11603
|
+
return AddressOption;
|
|
11604
|
+
}());
|
|
11605
|
+
|
|
11606
|
+
var _c0$R = ["writeComplexFieldComponent"];
|
|
11607
|
+
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
|
|
11608
|
+
if (rf & 1) {
|
|
11609
|
+
i0__namespace.ɵɵelementStart(0, "span", 14);
|
|
11610
|
+
i0__namespace.ɵɵtext(1, "Enter the Postcode");
|
|
11611
|
+
i0__namespace.ɵɵelementEnd();
|
|
11612
|
+
}
|
|
11613
|
+
}
|
|
11614
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11615
|
+
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11616
|
+
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11617
|
+
if (rf & 1) {
|
|
11618
|
+
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11619
|
+
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
11620
|
+
i0__namespace.ɵɵelementStart(1, "label", 9);
|
|
11621
|
+
i0__namespace.ɵɵelementStart(2, "span", 10);
|
|
11622
|
+
i0__namespace.ɵɵtext(3, "Enter a UK postcode");
|
|
11623
|
+
i0__namespace.ɵɵelementEnd();
|
|
11624
|
+
i0__namespace.ɵɵelementEnd();
|
|
11625
|
+
i0__namespace.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_span_4_Template, 2, 0, "span", 11);
|
|
11626
|
+
i0__namespace.ɵɵelement(5, "input", 12);
|
|
11627
|
+
i0__namespace.ɵɵelementStart(6, "button", 13);
|
|
11628
|
+
i0__namespace.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_4_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(2); return ctx_r6.findAddress(); });
|
|
11629
|
+
i0__namespace.ɵɵtext(7, "Find address");
|
|
11630
|
+
i0__namespace.ɵɵelementEnd();
|
|
11631
|
+
i0__namespace.ɵɵelementEnd();
|
|
11632
|
+
}
|
|
11633
|
+
if (rf & 2) {
|
|
11634
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11635
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
11636
|
+
i0__namespace.ɵɵadvance(1);
|
|
11637
|
+
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11638
|
+
i0__namespace.ɵɵadvance(3);
|
|
11639
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
|
|
11640
|
+
i0__namespace.ɵɵadvance(1);
|
|
11641
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
|
|
11642
|
+
}
|
|
11643
|
+
}
|
|
11644
|
+
function WriteAddressFieldComponent_div_1_div_5_option_5_Template(rf, ctx) {
|
|
11645
|
+
if (rf & 1) {
|
|
11646
|
+
i0__namespace.ɵɵelementStart(0, "option", 18);
|
|
11647
|
+
i0__namespace.ɵɵtext(1);
|
|
11648
|
+
i0__namespace.ɵɵelementEnd();
|
|
11649
|
+
}
|
|
11650
|
+
if (rf & 2) {
|
|
11651
|
+
var addressOption_r9 = ctx.$implicit;
|
|
11652
|
+
i0__namespace.ɵɵproperty("ngValue", addressOption_r9.value);
|
|
11653
|
+
i0__namespace.ɵɵadvance(1);
|
|
11654
|
+
i0__namespace.ɵɵtextInterpolate1(" ", addressOption_r9.description, " ");
|
|
11655
|
+
}
|
|
11656
|
+
}
|
|
11657
|
+
function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
11658
|
+
if (rf & 1) {
|
|
11659
|
+
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11660
|
+
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
11661
|
+
i0__namespace.ɵɵelementStart(1, "label", 9);
|
|
11662
|
+
i0__namespace.ɵɵelementStart(2, "span", 10);
|
|
11663
|
+
i0__namespace.ɵɵtext(3, "Select an address");
|
|
11664
|
+
i0__namespace.ɵɵelementEnd();
|
|
11665
|
+
i0__namespace.ɵɵelementEnd();
|
|
11666
|
+
i0__namespace.ɵɵelementStart(4, "select", 16);
|
|
11667
|
+
i0__namespace.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_5_Template_select_change_4_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.addressSelected(); });
|
|
11668
|
+
i0__namespace.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_option_5_Template, 2, 2, "option", 17);
|
|
11669
|
+
i0__namespace.ɵɵelementEnd();
|
|
11670
|
+
i0__namespace.ɵɵelementEnd();
|
|
11671
|
+
}
|
|
11672
|
+
if (rf & 2) {
|
|
11673
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
11674
|
+
i0__namespace.ɵɵadvance(1);
|
|
11675
|
+
i0__namespace.ɵɵproperty("for", ctx_r3.createElementId("addressList"));
|
|
11676
|
+
i0__namespace.ɵɵadvance(3);
|
|
11677
|
+
i0__namespace.ɵɵproperty("id", ctx_r3.createElementId("addressList"))("formControl", ctx_r3.addressList);
|
|
11678
|
+
i0__namespace.ɵɵadvance(1);
|
|
11679
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.addressOptions);
|
|
11680
|
+
}
|
|
11681
|
+
}
|
|
11682
|
+
function WriteAddressFieldComponent_div_1_a_6_Template(rf, ctx) {
|
|
11683
|
+
if (rf & 1) {
|
|
11684
|
+
var _r13_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11685
|
+
i0__namespace.ɵɵelementStart(0, "a", 19);
|
|
11686
|
+
i0__namespace.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.blankAddress(); });
|
|
11687
|
+
i0__namespace.ɵɵtext(1, "I can't enter a UK postcode");
|
|
11688
|
+
i0__namespace.ɵɵelementEnd();
|
|
11689
|
+
}
|
|
11690
|
+
}
|
|
11691
|
+
function WriteAddressFieldComponent_div_1_Template(rf, ctx) {
|
|
11692
|
+
if (rf & 1) {
|
|
11693
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
11694
|
+
i0__namespace.ɵɵelementStart(1, "h2", 4);
|
|
11695
|
+
i0__namespace.ɵɵtext(2);
|
|
11696
|
+
i0__namespace.ɵɵpipe(3, "ccdFieldLabel");
|
|
11697
|
+
i0__namespace.ɵɵelementEnd();
|
|
11698
|
+
i0__namespace.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_Template, 8, 11, "div", 5);
|
|
11699
|
+
i0__namespace.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_Template, 6, 4, "div", 6);
|
|
11700
|
+
i0__namespace.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_a_6_Template, 2, 0, "a", 7);
|
|
11701
|
+
i0__namespace.ɵɵelementEnd();
|
|
11702
|
+
}
|
|
11703
|
+
if (rf & 2) {
|
|
11704
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
11705
|
+
i0__namespace.ɵɵadvance(2);
|
|
11706
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 4, ctx_r0.caseField));
|
|
11707
|
+
i0__namespace.ɵɵadvance(2);
|
|
11708
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
|
|
11709
|
+
i0__namespace.ɵɵadvance(1);
|
|
11710
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.addressOptions);
|
|
11711
|
+
i0__namespace.ɵɵadvance(1);
|
|
11712
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.shouldShowDetailFields());
|
|
11713
|
+
}
|
|
11714
|
+
}
|
|
11715
|
+
var WriteAddressFieldComponent = /** @class */ (function (_super) {
|
|
11716
|
+
__extends(WriteAddressFieldComponent, _super);
|
|
11717
|
+
function WriteAddressFieldComponent(addressesService, isCompoundPipe) {
|
|
11718
|
+
var _this = _super.call(this) || this;
|
|
11719
|
+
_this.isCompoundPipe = isCompoundPipe;
|
|
11720
|
+
_this.addressFormGroup = new i2.FormGroup({});
|
|
11721
|
+
_this.missingPostcode = false;
|
|
11722
|
+
_this.addressesService = addressesService;
|
|
11723
|
+
return _this;
|
|
11724
|
+
}
|
|
11725
|
+
WriteAddressFieldComponent.prototype.ngOnInit = function () {
|
|
11726
|
+
if (!this.isComplexWithHiddenFields()) {
|
|
11727
|
+
this.postcode = new i2.FormControl('');
|
|
11728
|
+
this.addressFormGroup.addControl('postcode', this.postcode);
|
|
11729
|
+
this.addressList = new i2.FormControl('');
|
|
11730
|
+
this.addressFormGroup.addControl('address', this.addressList);
|
|
11731
|
+
}
|
|
11732
|
+
};
|
|
11733
|
+
WriteAddressFieldComponent.prototype.findAddress = function () {
|
|
11734
|
+
var _this = this;
|
|
11735
|
+
if (!this.postcode.value) {
|
|
11736
|
+
this.missingPostcode = true;
|
|
11737
|
+
}
|
|
11738
|
+
else {
|
|
11739
|
+
this.missingPostcode = false;
|
|
11740
|
+
var postcode_1 = this.postcode.value;
|
|
11741
|
+
this.caseField.value = null;
|
|
11742
|
+
this.addressOptions = new Array();
|
|
11743
|
+
this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
|
|
11744
|
+
result.forEach(function (address) {
|
|
11745
|
+
_this.addressOptions.push(new AddressOption(address, null));
|
|
11746
|
+
});
|
|
11747
|
+
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
11748
|
+
}, function (error) {
|
|
11749
|
+
console.log("An error occurred retrieving addresses for postcode " + postcode_1 + ". " + error);
|
|
11750
|
+
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
11751
|
+
});
|
|
11752
|
+
this.addressList.setValue(undefined);
|
|
11753
|
+
this.refocusElement();
|
|
11754
|
+
}
|
|
11755
|
+
};
|
|
11756
|
+
WriteAddressFieldComponent.prototype.refocusElement = function () {
|
|
11757
|
+
if (this.focusElementDirectives && this.focusElementDirectives.length > 0) {
|
|
11758
|
+
this.focusElementDirectives.first.focus();
|
|
11759
|
+
}
|
|
11760
|
+
};
|
|
11761
|
+
WriteAddressFieldComponent.prototype.blankAddress = function () {
|
|
11762
|
+
this.caseField.value = new AddressModel();
|
|
11763
|
+
this.setFormValue();
|
|
11764
|
+
};
|
|
11765
|
+
WriteAddressFieldComponent.prototype.isComplexWithHiddenFields = function () {
|
|
11766
|
+
if (this.caseField.isComplex() && this.caseField.field_type.complex_fields
|
|
11767
|
+
&& this.caseField.field_type.complex_fields.some(function (cf) { return cf.hidden === true; })) {
|
|
11768
|
+
return true;
|
|
11769
|
+
}
|
|
11770
|
+
};
|
|
11771
|
+
WriteAddressFieldComponent.prototype.shouldShowDetailFields = function () {
|
|
11772
|
+
if (this.isComplexWithHiddenFields()) {
|
|
11773
|
+
return true;
|
|
11774
|
+
}
|
|
11775
|
+
if (this.isExpanded) {
|
|
11776
|
+
return true;
|
|
11777
|
+
}
|
|
11778
|
+
if (!this.writeComplexFieldComponent || !this.writeComplexFieldComponent.complexGroup) {
|
|
11779
|
+
return false;
|
|
11780
|
+
}
|
|
11781
|
+
var address = this.writeComplexFieldComponent.complexGroup.value;
|
|
11782
|
+
var hasAddress = false;
|
|
11783
|
+
if (address) {
|
|
11784
|
+
Object.keys(address).forEach(function (key) {
|
|
11785
|
+
if (address[key] != null) {
|
|
11786
|
+
hasAddress = true;
|
|
11787
|
+
}
|
|
11788
|
+
});
|
|
11789
|
+
}
|
|
11790
|
+
return hasAddress;
|
|
11791
|
+
};
|
|
11792
|
+
WriteAddressFieldComponent.prototype.addressSelected = function () {
|
|
11793
|
+
this.caseField.value = this.addressList.value;
|
|
11794
|
+
this.setFormValue();
|
|
11795
|
+
};
|
|
11796
|
+
WriteAddressFieldComponent.prototype.ngOnChanges = function (changes) {
|
|
11797
|
+
_super.prototype.ngOnChanges.call(this, changes);
|
|
11798
|
+
var change = changes['caseField'];
|
|
11799
|
+
if (change) {
|
|
11800
|
+
this.setFormValue();
|
|
11801
|
+
}
|
|
11802
|
+
};
|
|
11803
|
+
WriteAddressFieldComponent.prototype.buildIdPrefix = function (elementId) {
|
|
11804
|
+
return this.idPrefix + "_" + elementId;
|
|
11805
|
+
};
|
|
11806
|
+
WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
|
|
11807
|
+
return numberOfAddresses === 0 ? 'No address found'
|
|
11808
|
+
: numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
|
|
11809
|
+
};
|
|
11810
|
+
WriteAddressFieldComponent.prototype.setFormValue = function () {
|
|
11811
|
+
if (this.writeComplexFieldComponent.complexGroup) {
|
|
11812
|
+
this.writeComplexFieldComponent.complexGroup.setValue(this.caseField.value);
|
|
11813
|
+
}
|
|
11814
|
+
};
|
|
11815
|
+
return WriteAddressFieldComponent;
|
|
11816
|
+
}(AbstractFieldWriteComponent));
|
|
11817
|
+
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
11818
|
+
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
11819
|
+
if (rf & 1) {
|
|
11820
|
+
i0__namespace.ɵɵviewQuery(_c0$R, 1);
|
|
11821
|
+
i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
|
|
11822
|
+
}
|
|
11823
|
+
if (rf & 2) {
|
|
11824
|
+
var _t = void 0;
|
|
11825
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
11826
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.focusElementDirectives = _t);
|
|
11827
|
+
}
|
|
11828
|
+
}, inputs: { formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], ["writeComplexFieldComponent", ""], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click"], [1, "error-message"], ["id", "selectAddress", 1, "form-group"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "id", "formControl", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "javascript:void(0)", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) {
|
|
11829
|
+
if (rf & 1) {
|
|
11830
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
11831
|
+
i0__namespace.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 1);
|
|
11832
|
+
i0__namespace.ɵɵelement(2, "ccd-write-complex-type-field", 2, 3);
|
|
11833
|
+
i0__namespace.ɵɵelementEnd();
|
|
11834
|
+
}
|
|
11835
|
+
if (rf & 2) {
|
|
11836
|
+
i0__namespace.ɵɵproperty("id", ctx.id());
|
|
11837
|
+
i0__namespace.ɵɵadvance(1);
|
|
11838
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.isComplexWithHiddenFields());
|
|
11839
|
+
i0__namespace.ɵɵadvance(1);
|
|
11840
|
+
i0__namespace.ɵɵproperty("hidden", !ctx.shouldShowDetailFields())("caseField", ctx.caseField)("renderLabel", false)("parent", ctx.parent)("formGroup", ctx.formGroup)("ignoreMandatory", true)("idPrefix", ctx.buildIdPrefix("detail"));
|
|
11841
|
+
}
|
|
11842
|
+
}, styles: [".manual-link[_ngcontent-%COMP%]{cursor:pointer;display:block;text-decoration:underline}"] });
|
|
11843
|
+
(function () {
|
|
11844
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
11845
|
+
type: i0.Component,
|
|
11846
|
+
args: [{
|
|
11847
|
+
selector: 'ccd-write-address-field',
|
|
11848
|
+
templateUrl: 'write-address-field.html',
|
|
11849
|
+
styleUrls: ['write-address-field.scss']
|
|
11850
|
+
}]
|
|
11851
|
+
}], function () { return [{ type: AddressesService }, { type: IsCompoundPipe }]; }, { writeComplexFieldComponent: [{
|
|
11852
|
+
type: i0.ViewChild,
|
|
11853
|
+
args: ['writeComplexFieldComponent', { static: false }]
|
|
11854
|
+
}], focusElementDirectives: [{
|
|
11855
|
+
type: i0.ViewChildren,
|
|
11856
|
+
args: [FocusElementDirective]
|
|
11857
|
+
}], formGroup: [{
|
|
11858
|
+
type: i0.Input
|
|
11859
|
+
}] });
|
|
11860
|
+
})();
|
|
11861
|
+
|
|
11516
11862
|
exports.PaletteContext = void 0;
|
|
11517
11863
|
(function (PaletteContext) {
|
|
11518
11864
|
PaletteContext["DEFAULT"] = "DEFAULT";
|
|
@@ -11552,285 +11898,231 @@
|
|
|
11552
11898
|
}] });
|
|
11553
11899
|
})();
|
|
11554
11900
|
|
|
11555
|
-
|
|
11556
|
-
function AddressOption(addressModel, description) {
|
|
11557
|
-
if (description == null) {
|
|
11558
|
-
this.value = addressModel;
|
|
11559
|
-
this.description = this.getDescription();
|
|
11560
|
-
}
|
|
11561
|
-
else {
|
|
11562
|
-
this.description = description;
|
|
11563
|
-
}
|
|
11564
|
-
}
|
|
11565
|
-
AddressOption.prototype.getDescription = function () {
|
|
11566
|
-
return this.removeInitialCommaIfPresent((this.value.AddressLine1 === undefined ? '' : this.value.AddressLine1)
|
|
11567
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine2)
|
|
11568
|
-
+ this.prefixWithCommaIfPresent(this.value.AddressLine3)
|
|
11569
|
-
+ ', ' + this.value.PostTown);
|
|
11570
|
-
};
|
|
11571
|
-
AddressOption.prototype.prefixWithCommaIfPresent = function (value) {
|
|
11572
|
-
return value ? ', ' + value : value;
|
|
11573
|
-
};
|
|
11574
|
-
AddressOption.prototype.removeInitialCommaIfPresent = function (value) {
|
|
11575
|
-
return value.replace(new RegExp('^,', 'gi'), '');
|
|
11576
|
-
};
|
|
11577
|
-
return AddressOption;
|
|
11578
|
-
}());
|
|
11579
|
-
|
|
11580
|
-
var _c0$P = ["writeComplexFieldComponent"];
|
|
11581
|
-
function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
|
|
11901
|
+
function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
|
|
11582
11902
|
if (rf & 1) {
|
|
11583
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
11584
|
-
i0__namespace.ɵɵ
|
|
11585
|
-
i0__namespace.ɵɵ
|
|
11586
|
-
}
|
|
11587
|
-
}
|
|
11588
|
-
var _c1$j = function (a0) { return { "form-group-error": a0 }; };
|
|
11589
|
-
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11590
|
-
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11591
|
-
if (rf & 1) {
|
|
11592
|
-
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11593
|
-
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
11594
|
-
i0__namespace.ɵɵelementStart(1, "label", 9);
|
|
11595
|
-
i0__namespace.ɵɵelementStart(2, "span", 10);
|
|
11596
|
-
i0__namespace.ɵɵtext(3, "Enter a UK postcode");
|
|
11597
|
-
i0__namespace.ɵɵelementEnd();
|
|
11903
|
+
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
11904
|
+
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
11905
|
+
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
11598
11906
|
i0__namespace.ɵɵelementEnd();
|
|
11599
|
-
i0__namespace.ɵɵ
|
|
11600
|
-
i0__namespace.ɵɵ
|
|
11601
|
-
i0__namespace.ɵɵelementStart(6, "button", 13);
|
|
11602
|
-
i0__namespace.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_4_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(2); return ctx_r6.findAddress(); });
|
|
11603
|
-
i0__namespace.ɵɵtext(7, "Find address");
|
|
11907
|
+
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
11908
|
+
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
11604
11909
|
i0__namespace.ɵɵelementEnd();
|
|
11605
11910
|
i0__namespace.ɵɵelementEnd();
|
|
11606
11911
|
}
|
|
11607
|
-
if (rf & 2) {
|
|
11608
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11609
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$j, ctx_r2.missingPostcode));
|
|
11610
|
-
i0__namespace.ɵɵadvance(1);
|
|
11611
|
-
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11612
|
-
i0__namespace.ɵɵadvance(3);
|
|
11613
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
|
|
11614
|
-
i0__namespace.ɵɵadvance(1);
|
|
11615
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
|
|
11616
|
-
}
|
|
11617
11912
|
}
|
|
11618
|
-
function
|
|
11913
|
+
function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
11619
11914
|
if (rf & 1) {
|
|
11620
|
-
i0__namespace.ɵɵ
|
|
11621
|
-
i0__namespace.ɵɵ
|
|
11622
|
-
i0__namespace.ɵɵ
|
|
11915
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
11916
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
|
|
11917
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
11623
11918
|
}
|
|
11624
11919
|
if (rf & 2) {
|
|
11625
|
-
var
|
|
11626
|
-
i0__namespace.ɵɵproperty("ngValue", addressOption_r9.value);
|
|
11920
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11627
11921
|
i0__namespace.ɵɵadvance(1);
|
|
11628
|
-
i0__namespace.ɵɵ
|
|
11922
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
11629
11923
|
}
|
|
11630
11924
|
}
|
|
11631
|
-
function
|
|
11925
|
+
function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
|
|
11632
11926
|
if (rf & 1) {
|
|
11633
|
-
var
|
|
11634
|
-
i0__namespace.ɵɵelementStart(0, "div"
|
|
11635
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
11636
|
-
i0__namespace.ɵɵ
|
|
11637
|
-
i0__namespace.ɵɵtext(3, "Select an address");
|
|
11927
|
+
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11928
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
11929
|
+
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
11930
|
+
i0__namespace.ɵɵtext(2, "Case file");
|
|
11638
11931
|
i0__namespace.ɵɵelementEnd();
|
|
11932
|
+
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
11933
|
+
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
11934
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
11935
|
+
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
11936
|
+
i0__namespace.ɵɵelementEnd();
|
|
11937
|
+
i0__namespace.ɵɵelementEnd();
|
|
11938
|
+
i0__namespace.ɵɵelement(6, "div", 9);
|
|
11939
|
+
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
11940
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
11639
11941
|
i0__namespace.ɵɵelementEnd();
|
|
11640
|
-
i0__namespace.ɵɵelementStart(4, "select", 16);
|
|
11641
|
-
i0__namespace.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_5_Template_select_change_4_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.addressSelected(); });
|
|
11642
|
-
i0__namespace.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_option_5_Template, 2, 2, "option", 17);
|
|
11643
11942
|
i0__namespace.ɵɵelementEnd();
|
|
11644
11943
|
i0__namespace.ɵɵelementEnd();
|
|
11645
11944
|
}
|
|
11646
11945
|
if (rf & 2) {
|
|
11647
|
-
var
|
|
11648
|
-
i0__namespace.ɵɵadvance(
|
|
11649
|
-
i0__namespace.ɵɵproperty("
|
|
11946
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
11947
|
+
i0__namespace.ɵɵadvance(5);
|
|
11948
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
11650
11949
|
i0__namespace.ɵɵadvance(3);
|
|
11651
|
-
i0__namespace.ɵɵproperty("
|
|
11652
|
-
i0__namespace.ɵɵadvance(1);
|
|
11653
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.addressOptions);
|
|
11950
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
11654
11951
|
}
|
|
11655
11952
|
}
|
|
11656
|
-
function
|
|
11953
|
+
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
11954
|
+
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
|
|
11955
|
+
this.elementRef = elementRef;
|
|
11956
|
+
this.route = route;
|
|
11957
|
+
this.caseFileViewService = caseFileViewService;
|
|
11958
|
+
this.documentManagementService = documentManagementService;
|
|
11959
|
+
this.loadingService = loadingService;
|
|
11960
|
+
this.allowMoving = true;
|
|
11961
|
+
this.getCategoriesAndDocumentsError = false;
|
|
11962
|
+
}
|
|
11963
|
+
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
11964
|
+
var _this = this;
|
|
11965
|
+
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
11966
|
+
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
11967
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
|
|
11968
|
+
next: function (data) {
|
|
11969
|
+
_this.caseVersion = data.case_version;
|
|
11970
|
+
},
|
|
11971
|
+
error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
|
|
11972
|
+
});
|
|
11973
|
+
};
|
|
11974
|
+
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
11975
|
+
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
11976
|
+
var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
11977
|
+
var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
|
|
11978
|
+
var mousemove$ = rxjs.fromEvent(document, 'mousemove');
|
|
11979
|
+
var mouseup$ = rxjs.fromEvent(document, 'mouseup');
|
|
11980
|
+
var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
|
|
11981
|
+
var x = start.clientX;
|
|
11982
|
+
var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
11983
|
+
return mousemove$.pipe(operators.map(function (move) {
|
|
11984
|
+
move.preventDefault();
|
|
11985
|
+
return {
|
|
11986
|
+
dx: move.clientX - x,
|
|
11987
|
+
documentTreeContainerWidth: documentTreeContainerWidth
|
|
11988
|
+
};
|
|
11989
|
+
}), operators.takeUntil(mouseup$));
|
|
11990
|
+
}));
|
|
11991
|
+
drag$.subscribe(function (pos) {
|
|
11992
|
+
var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
11993
|
+
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
11994
|
+
});
|
|
11995
|
+
};
|
|
11996
|
+
CaseFileViewFieldComponent.prototype.setMediaViewerFile = function (document) {
|
|
11997
|
+
var mediaViewerInfo = this.documentManagementService.getMediaViewerInfo({
|
|
11998
|
+
document_binary_url: document.document_binary_url,
|
|
11999
|
+
document_filename: document.document_filename
|
|
12000
|
+
});
|
|
12001
|
+
this.currentDocument = JSON.parse(mediaViewerInfo);
|
|
12002
|
+
};
|
|
12003
|
+
CaseFileViewFieldComponent.prototype.moveDocument = function (data) {
|
|
12004
|
+
var _this = this;
|
|
12005
|
+
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
12006
|
+
var loadingToken = this.loadingService.register();
|
|
12007
|
+
this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(function (_) {
|
|
12008
|
+
location.reload();
|
|
12009
|
+
_this.loadingService.unregister(loadingToken);
|
|
12010
|
+
});
|
|
12011
|
+
};
|
|
12012
|
+
CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
|
|
12013
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
12014
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
12015
|
+
}
|
|
12016
|
+
};
|
|
12017
|
+
return CaseFileViewFieldComponent;
|
|
12018
|
+
}());
|
|
12019
|
+
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
12020
|
+
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), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
12021
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
12022
|
+
if (rf & 1) {
|
|
12023
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
|
|
12024
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
|
|
12025
|
+
}
|
|
12026
|
+
if (rf & 2) {
|
|
12027
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
12028
|
+
i0__namespace.ɵɵadvance(1);
|
|
12029
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
12030
|
+
}
|
|
12031
|
+
}, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
12032
|
+
(function () {
|
|
12033
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
12034
|
+
type: i0.Component,
|
|
12035
|
+
args: [{
|
|
12036
|
+
selector: 'ccd-case-file-view-field',
|
|
12037
|
+
templateUrl: './case-file-view-field.component.html',
|
|
12038
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
12039
|
+
}]
|
|
12040
|
+
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
|
|
12041
|
+
})();
|
|
12042
|
+
|
|
12043
|
+
function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
|
|
11657
12044
|
if (rf & 1) {
|
|
11658
|
-
|
|
11659
|
-
i0__namespace.ɵɵelementStart(
|
|
11660
|
-
i0__namespace.ɵɵ
|
|
11661
|
-
i0__namespace.ɵɵ
|
|
12045
|
+
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
12046
|
+
i0__namespace.ɵɵelementStart(1, "h1", 3);
|
|
12047
|
+
i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
|
|
12048
|
+
i0__namespace.ɵɵelementEnd();
|
|
12049
|
+
i0__namespace.ɵɵelementStart(3, "p", 4);
|
|
12050
|
+
i0__namespace.ɵɵtext(4, "Try again later.");
|
|
12051
|
+
i0__namespace.ɵɵelementEnd();
|
|
11662
12052
|
i0__namespace.ɵɵelementEnd();
|
|
11663
12053
|
}
|
|
11664
12054
|
}
|
|
11665
|
-
function
|
|
12055
|
+
function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
|
|
11666
12056
|
if (rf & 1) {
|
|
12057
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
12058
|
+
i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
|
|
12059
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
12060
|
+
}
|
|
12061
|
+
if (rf & 2) {
|
|
12062
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
12063
|
+
i0__namespace.ɵɵadvance(1);
|
|
12064
|
+
i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
|
|
12065
|
+
}
|
|
12066
|
+
}
|
|
12067
|
+
function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
|
|
12068
|
+
if (rf & 1) {
|
|
12069
|
+
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
11667
12070
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
11668
|
-
i0__namespace.ɵɵelementStart(1, "h2",
|
|
11669
|
-
i0__namespace.ɵɵtext(2);
|
|
11670
|
-
i0__namespace.ɵɵ
|
|
12071
|
+
i0__namespace.ɵɵelementStart(1, "h2", 5);
|
|
12072
|
+
i0__namespace.ɵɵtext(2, "Case file");
|
|
12073
|
+
i0__namespace.ɵɵelementEnd();
|
|
12074
|
+
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
12075
|
+
i0__namespace.ɵɵelementStart(4, "div", 7);
|
|
12076
|
+
i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
|
|
12077
|
+
i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldReadComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
|
|
12078
|
+
i0__namespace.ɵɵelementEnd();
|
|
12079
|
+
i0__namespace.ɵɵelementEnd();
|
|
12080
|
+
i0__namespace.ɵɵelement(6, "div", 9);
|
|
12081
|
+
i0__namespace.ɵɵelementStart(7, "div", 10);
|
|
12082
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
|
|
12083
|
+
i0__namespace.ɵɵelementEnd();
|
|
11671
12084
|
i0__namespace.ɵɵelementEnd();
|
|
11672
|
-
i0__namespace.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_Template, 8, 11, "div", 5);
|
|
11673
|
-
i0__namespace.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_Template, 6, 4, "div", 6);
|
|
11674
|
-
i0__namespace.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_a_6_Template, 2, 0, "a", 7);
|
|
11675
12085
|
i0__namespace.ɵɵelementEnd();
|
|
11676
12086
|
}
|
|
11677
12087
|
if (rf & 2) {
|
|
11678
|
-
var
|
|
11679
|
-
i0__namespace.ɵɵadvance(
|
|
11680
|
-
i0__namespace.ɵɵ
|
|
11681
|
-
i0__namespace.ɵɵadvance(
|
|
11682
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
11683
|
-
i0__namespace.ɵɵadvance(1);
|
|
11684
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.addressOptions);
|
|
11685
|
-
i0__namespace.ɵɵadvance(1);
|
|
11686
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.shouldShowDetailFields());
|
|
12088
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
12089
|
+
i0__namespace.ɵɵadvance(5);
|
|
12090
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
|
|
12091
|
+
i0__namespace.ɵɵadvance(3);
|
|
12092
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
|
|
11687
12093
|
}
|
|
11688
12094
|
}
|
|
11689
|
-
var
|
|
11690
|
-
__extends(
|
|
11691
|
-
function
|
|
11692
|
-
var _this = _super.
|
|
11693
|
-
_this.
|
|
11694
|
-
_this.addressFormGroup = new i2.FormGroup({});
|
|
11695
|
-
_this.missingPostcode = false;
|
|
11696
|
-
_this.addressesService = addressesService;
|
|
12095
|
+
var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
|
|
12096
|
+
__extends(CaseFileViewFieldReadComponent, _super);
|
|
12097
|
+
function CaseFileViewFieldReadComponent() {
|
|
12098
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
12099
|
+
_this.allowMoving = true;
|
|
11697
12100
|
return _this;
|
|
11698
12101
|
}
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
this.addressList = new i2.FormControl('');
|
|
11704
|
-
this.addressFormGroup.addControl('address', this.addressList);
|
|
11705
|
-
}
|
|
11706
|
-
};
|
|
11707
|
-
WriteAddressFieldComponent.prototype.findAddress = function () {
|
|
11708
|
-
var _this = this;
|
|
11709
|
-
if (!this.postcode.value) {
|
|
11710
|
-
this.missingPostcode = true;
|
|
11711
|
-
}
|
|
11712
|
-
else {
|
|
11713
|
-
this.missingPostcode = false;
|
|
11714
|
-
var postcode_1 = this.postcode.value;
|
|
11715
|
-
this.caseField.value = null;
|
|
11716
|
-
this.addressOptions = new Array();
|
|
11717
|
-
this.addressesService.getAddressesForPostcode(postcode_1.replace(' ', '').toUpperCase()).subscribe(function (result) {
|
|
11718
|
-
result.forEach(function (address) {
|
|
11719
|
-
_this.addressOptions.push(new AddressOption(address, null));
|
|
11720
|
-
});
|
|
11721
|
-
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
11722
|
-
}, function (error) {
|
|
11723
|
-
console.log("An error occurred retrieving addresses for postcode " + postcode_1 + ". " + error);
|
|
11724
|
-
_this.addressOptions.unshift(new AddressOption(undefined, _this.defaultLabel(_this.addressOptions.length)));
|
|
11725
|
-
});
|
|
11726
|
-
this.addressList.setValue(undefined);
|
|
11727
|
-
this.refocusElement();
|
|
11728
|
-
}
|
|
11729
|
-
};
|
|
11730
|
-
WriteAddressFieldComponent.prototype.refocusElement = function () {
|
|
11731
|
-
if (this.focusElementDirectives && this.focusElementDirectives.length > 0) {
|
|
11732
|
-
this.focusElementDirectives.first.focus();
|
|
11733
|
-
}
|
|
11734
|
-
};
|
|
11735
|
-
WriteAddressFieldComponent.prototype.blankAddress = function () {
|
|
11736
|
-
this.caseField.value = new AddressModel();
|
|
11737
|
-
this.setFormValue();
|
|
11738
|
-
};
|
|
11739
|
-
WriteAddressFieldComponent.prototype.isComplexWithHiddenFields = function () {
|
|
11740
|
-
if (this.caseField.isComplex() && this.caseField.field_type.complex_fields
|
|
11741
|
-
&& this.caseField.field_type.complex_fields.some(function (cf) { return cf.hidden === true; })) {
|
|
11742
|
-
return true;
|
|
11743
|
-
}
|
|
11744
|
-
};
|
|
11745
|
-
WriteAddressFieldComponent.prototype.shouldShowDetailFields = function () {
|
|
11746
|
-
if (this.isComplexWithHiddenFields()) {
|
|
11747
|
-
return true;
|
|
11748
|
-
}
|
|
11749
|
-
if (this.isExpanded) {
|
|
11750
|
-
return true;
|
|
11751
|
-
}
|
|
11752
|
-
if (!this.writeComplexFieldComponent || !this.writeComplexFieldComponent.complexGroup) {
|
|
11753
|
-
return false;
|
|
11754
|
-
}
|
|
11755
|
-
var address = this.writeComplexFieldComponent.complexGroup.value;
|
|
11756
|
-
var hasAddress = false;
|
|
11757
|
-
if (address) {
|
|
11758
|
-
Object.keys(address).forEach(function (key) {
|
|
11759
|
-
if (address[key] != null) {
|
|
11760
|
-
hasAddress = true;
|
|
11761
|
-
}
|
|
11762
|
-
});
|
|
11763
|
-
}
|
|
11764
|
-
return hasAddress;
|
|
11765
|
-
};
|
|
11766
|
-
WriteAddressFieldComponent.prototype.addressSelected = function () {
|
|
11767
|
-
this.caseField.value = this.addressList.value;
|
|
11768
|
-
this.setFormValue();
|
|
11769
|
-
};
|
|
11770
|
-
WriteAddressFieldComponent.prototype.ngOnChanges = function (changes) {
|
|
11771
|
-
_super.prototype.ngOnChanges.call(this, changes);
|
|
11772
|
-
var change = changes['caseField'];
|
|
11773
|
-
if (change) {
|
|
11774
|
-
this.setFormValue();
|
|
11775
|
-
}
|
|
11776
|
-
};
|
|
11777
|
-
WriteAddressFieldComponent.prototype.buildIdPrefix = function (elementId) {
|
|
11778
|
-
return this.idPrefix + "_" + elementId;
|
|
11779
|
-
};
|
|
11780
|
-
WriteAddressFieldComponent.prototype.defaultLabel = function (numberOfAddresses) {
|
|
11781
|
-
return numberOfAddresses === 0 ? 'No address found'
|
|
11782
|
-
: numberOfAddresses + (numberOfAddresses === 1 ? ' address ' : ' addresses ') + 'found';
|
|
11783
|
-
};
|
|
11784
|
-
WriteAddressFieldComponent.prototype.setFormValue = function () {
|
|
11785
|
-
if (this.writeComplexFieldComponent.complexGroup) {
|
|
11786
|
-
this.writeComplexFieldComponent.complexGroup.setValue(this.caseField.value);
|
|
11787
|
-
}
|
|
11788
|
-
};
|
|
11789
|
-
return WriteAddressFieldComponent;
|
|
11790
|
-
}(AbstractFieldWriteComponent));
|
|
11791
|
-
WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
|
|
11792
|
-
WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
|
|
12102
|
+
return CaseFileViewFieldReadComponent;
|
|
12103
|
+
}(CaseFileViewFieldComponent));
|
|
12104
|
+
CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
|
|
12105
|
+
CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
|
|
11793
12106
|
if (rf & 1) {
|
|
11794
|
-
i0__namespace.ɵɵ
|
|
11795
|
-
i0__namespace.ɵɵ
|
|
12107
|
+
i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
|
|
12108
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
|
|
11796
12109
|
}
|
|
11797
12110
|
if (rf & 2) {
|
|
11798
|
-
|
|
11799
|
-
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
11800
|
-
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.focusElementDirectives = _t);
|
|
11801
|
-
}
|
|
11802
|
-
}, inputs: { formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], ["writeComplexFieldComponent", ""], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click"], [1, "error-message"], ["id", "selectAddress", 1, "form-group"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "id", "formControl", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "javascript:void(0)", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) {
|
|
11803
|
-
if (rf & 1) {
|
|
11804
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
11805
|
-
i0__namespace.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 1);
|
|
11806
|
-
i0__namespace.ɵɵelement(2, "ccd-write-complex-type-field", 2, 3);
|
|
11807
|
-
i0__namespace.ɵɵelementEnd();
|
|
11808
|
-
}
|
|
11809
|
-
if (rf & 2) {
|
|
11810
|
-
i0__namespace.ɵɵproperty("id", ctx.id());
|
|
12111
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
|
|
11811
12112
|
i0__namespace.ɵɵadvance(1);
|
|
11812
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx.
|
|
11813
|
-
i0__namespace.ɵɵadvance(1);
|
|
11814
|
-
i0__namespace.ɵɵproperty("hidden", !ctx.shouldShowDetailFields())("caseField", ctx.caseField)("renderLabel", false)("parent", ctx.parent)("formGroup", ctx.formGroup)("ignoreMandatory", true)("idPrefix", ctx.buildIdPrefix("detail"));
|
|
12113
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
|
|
11815
12114
|
}
|
|
11816
|
-
}, styles: [".
|
|
12115
|
+
}, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
|
|
12116
|
+
var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
|
|
11817
12117
|
(function () {
|
|
11818
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
12118
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
|
|
11819
12119
|
type: i0.Component,
|
|
11820
12120
|
args: [{
|
|
11821
|
-
selector: 'ccd-
|
|
11822
|
-
templateUrl: '
|
|
11823
|
-
styleUrls: ['
|
|
12121
|
+
selector: 'ccd-case-file-view-field',
|
|
12122
|
+
templateUrl: './case-file-view-field.component.html',
|
|
12123
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
11824
12124
|
}]
|
|
11825
|
-
}],
|
|
11826
|
-
type: i0.ViewChild,
|
|
11827
|
-
args: ['writeComplexFieldComponent', { static: false }]
|
|
11828
|
-
}], focusElementDirectives: [{
|
|
11829
|
-
type: i0.ViewChildren,
|
|
11830
|
-
args: [FocusElementDirective]
|
|
11831
|
-
}], formGroup: [{
|
|
11832
|
-
type: i0.Input
|
|
11833
|
-
}] });
|
|
12125
|
+
}], null, null);
|
|
11834
12126
|
})();
|
|
11835
12127
|
|
|
11836
12128
|
exports.AddCommentsErrorMessage = void 0;
|
|
@@ -12185,7 +12477,7 @@
|
|
|
12185
12477
|
i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
|
|
12186
12478
|
}
|
|
12187
12479
|
}
|
|
12188
|
-
var _c0$
|
|
12480
|
+
var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
|
|
12189
12481
|
function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
|
|
12190
12482
|
if (rf & 1) {
|
|
12191
12483
|
i0__namespace.ɵɵelementStart(0, "div", 8);
|
|
@@ -12206,7 +12498,7 @@
|
|
|
12206
12498
|
i0__namespace.ɵɵadvance(1);
|
|
12207
12499
|
i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
|
|
12208
12500
|
i0__namespace.ɵɵadvance(1);
|
|
12209
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
12501
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
|
|
12210
12502
|
i0__namespace.ɵɵadvance(1);
|
|
12211
12503
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
|
|
12212
12504
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12650,7 +12942,7 @@
|
|
|
12650
12942
|
}], null, null);
|
|
12651
12943
|
})();
|
|
12652
12944
|
|
|
12653
|
-
var _c0$
|
|
12945
|
+
var _c0$P = ["writeComplexFieldComponent"];
|
|
12654
12946
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
|
|
12655
12947
|
if (rf & 1) {
|
|
12656
12948
|
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
@@ -12776,7 +13068,7 @@
|
|
|
12776
13068
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
12777
13069
|
WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
|
|
12778
13070
|
if (rf & 1) {
|
|
12779
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13071
|
+
i0__namespace.ɵɵviewQuery(_c0$P, 1);
|
|
12780
13072
|
}
|
|
12781
13073
|
if (rf & 2) {
|
|
12782
13074
|
var _t = void 0;
|
|
@@ -12815,7 +13107,7 @@
|
|
|
12815
13107
|
}] });
|
|
12816
13108
|
})();
|
|
12817
13109
|
|
|
12818
|
-
var _c0$
|
|
13110
|
+
var _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
12819
13111
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
12820
13112
|
if (rf & 1) {
|
|
12821
13113
|
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
@@ -12830,10 +13122,10 @@
|
|
|
12830
13122
|
if (rf & 2) {
|
|
12831
13123
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
12832
13124
|
i0__namespace.ɵɵadvance(4);
|
|
12833
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$
|
|
13125
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
|
|
12834
13126
|
}
|
|
12835
13127
|
}
|
|
12836
|
-
var _c1$
|
|
13128
|
+
var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
12837
13129
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
12838
13130
|
if (rf & 1) {
|
|
12839
13131
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
@@ -12847,7 +13139,7 @@
|
|
|
12847
13139
|
var i_r5 = ctx.index;
|
|
12848
13140
|
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
12849
13141
|
i0__namespace.ɵɵadvance(2);
|
|
12850
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$
|
|
13142
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$k, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
|
|
12851
13143
|
}
|
|
12852
13144
|
}
|
|
12853
13145
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
@@ -12981,7 +13273,7 @@
|
|
|
12981
13273
|
}], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
|
|
12982
13274
|
})();
|
|
12983
13275
|
|
|
12984
|
-
var _c0$
|
|
13276
|
+
var _c0$N = ["collectionItem"];
|
|
12985
13277
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
|
|
12986
13278
|
if (rf & 1) {
|
|
12987
13279
|
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
@@ -13394,7 +13686,7 @@
|
|
|
13394
13686
|
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
13395
13687
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
13396
13688
|
if (rf & 1) {
|
|
13397
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
13689
|
+
i0__namespace.ɵɵviewQuery(_c0$N, 1);
|
|
13398
13690
|
}
|
|
13399
13691
|
if (rf & 2) {
|
|
13400
13692
|
var _t = void 0;
|
|
@@ -13982,7 +14274,7 @@
|
|
|
13982
14274
|
}], null, null);
|
|
13983
14275
|
})();
|
|
13984
14276
|
|
|
13985
|
-
var _c0$
|
|
14277
|
+
var _c0$M = ["fileInput"];
|
|
13986
14278
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
|
|
13987
14279
|
if (rf & 1) {
|
|
13988
14280
|
i0__namespace.ɵɵelementStart(0, "span", 12);
|
|
@@ -14016,7 +14308,7 @@
|
|
|
14016
14308
|
i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
14017
14309
|
}
|
|
14018
14310
|
}
|
|
14019
|
-
var _c1$
|
|
14311
|
+
var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
14020
14312
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
14021
14313
|
__extends(WriteDocumentFieldComponent, _super);
|
|
14022
14314
|
function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
@@ -14276,7 +14568,7 @@
|
|
|
14276
14568
|
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
14277
14569
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
14278
14570
|
if (rf & 1) {
|
|
14279
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
14571
|
+
i0__namespace.ɵɵviewQuery(_c0$M, 1);
|
|
14280
14572
|
}
|
|
14281
14573
|
if (rf & 2) {
|
|
14282
14574
|
var _t = void 0;
|
|
@@ -14318,7 +14610,7 @@
|
|
|
14318
14610
|
i0__namespace.ɵɵelementEnd();
|
|
14319
14611
|
}
|
|
14320
14612
|
if (rf & 2) {
|
|
14321
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$
|
|
14613
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
|
|
14322
14614
|
i0__namespace.ɵɵadvance(1);
|
|
14323
14615
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14324
14616
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14476,7 +14768,7 @@
|
|
|
14476
14768
|
i0__namespace.ɵɵtextInterpolate(type_r5.label);
|
|
14477
14769
|
}
|
|
14478
14770
|
}
|
|
14479
|
-
var _c0$
|
|
14771
|
+
var _c0$L = function (a0) { return { "form-group-error": a0 }; };
|
|
14480
14772
|
var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
|
|
14481
14773
|
__extends(WriteDynamicListFieldComponent, _super);
|
|
14482
14774
|
function WriteDynamicListFieldComponent() {
|
|
@@ -14525,7 +14817,7 @@
|
|
|
14525
14817
|
i0__namespace.ɵɵelementEnd();
|
|
14526
14818
|
}
|
|
14527
14819
|
if (rf & 2) {
|
|
14528
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
14820
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
14529
14821
|
i0__namespace.ɵɵadvance(1);
|
|
14530
14822
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14531
14823
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14675,7 +14967,7 @@
|
|
|
14675
14967
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
14676
14968
|
}
|
|
14677
14969
|
}
|
|
14678
|
-
var _c0$
|
|
14970
|
+
var _c0$K = function (a0) { return { selected: a0 }; };
|
|
14679
14971
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
14680
14972
|
if (rf & 1) {
|
|
14681
14973
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -14688,7 +14980,7 @@
|
|
|
14688
14980
|
if (rf & 2) {
|
|
14689
14981
|
var radioButton_r5 = ctx.$implicit;
|
|
14690
14982
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
14691
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
14983
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
14692
14984
|
i0__namespace.ɵɵadvance(1);
|
|
14693
14985
|
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
14694
14986
|
i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -14698,7 +14990,7 @@
|
|
|
14698
14990
|
i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
|
|
14699
14991
|
}
|
|
14700
14992
|
}
|
|
14701
|
-
var _c1$
|
|
14993
|
+
var _c1$i = function (a0) { return { "form-group-error": a0 }; };
|
|
14702
14994
|
var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
14703
14995
|
__extends(WriteDynamicRadioListFieldComponent, _super);
|
|
14704
14996
|
function WriteDynamicRadioListFieldComponent() {
|
|
@@ -14746,7 +15038,7 @@
|
|
|
14746
15038
|
i0__namespace.ɵɵelementEnd();
|
|
14747
15039
|
}
|
|
14748
15040
|
if (rf & 2) {
|
|
14749
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$
|
|
15041
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
14750
15042
|
i0__namespace.ɵɵadvance(3);
|
|
14751
15043
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14752
15044
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14853,8 +15145,8 @@
|
|
|
14853
15145
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
14854
15146
|
}
|
|
14855
15147
|
}
|
|
14856
|
-
var _c0$
|
|
14857
|
-
var _c1$
|
|
15148
|
+
var _c0$J = function (a0) { return { "form-group-error": a0 }; };
|
|
15149
|
+
var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14858
15150
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
14859
15151
|
__extends(WriteEmailFieldComponent, _super);
|
|
14860
15152
|
function WriteEmailFieldComponent() {
|
|
@@ -14878,7 +15170,7 @@
|
|
|
14878
15170
|
i0__namespace.ɵɵelementEnd();
|
|
14879
15171
|
}
|
|
14880
15172
|
if (rf & 2) {
|
|
14881
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
15173
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
14882
15174
|
i0__namespace.ɵɵadvance(1);
|
|
14883
15175
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14884
15176
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14888,7 +15180,7 @@
|
|
|
14888
15180
|
i0__namespace.ɵɵadvance(1);
|
|
14889
15181
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
14890
15182
|
i0__namespace.ɵɵadvance(1);
|
|
14891
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
15183
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
14892
15184
|
}
|
|
14893
15185
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14894
15186
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
@@ -15010,7 +15302,7 @@
|
|
|
15010
15302
|
i0__namespace.ɵɵtextInterpolate(type_r4.label);
|
|
15011
15303
|
}
|
|
15012
15304
|
}
|
|
15013
|
-
var _c0$
|
|
15305
|
+
var _c0$I = function (a0) { return { "form-group-error": a0 }; };
|
|
15014
15306
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
15015
15307
|
__extends(WriteFixedListFieldComponent, _super);
|
|
15016
15308
|
function WriteFixedListFieldComponent() {
|
|
@@ -15059,7 +15351,7 @@
|
|
|
15059
15351
|
i0__namespace.ɵɵelementEnd();
|
|
15060
15352
|
}
|
|
15061
15353
|
if (rf & 2) {
|
|
15062
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
15354
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
15063
15355
|
i0__namespace.ɵɵadvance(1);
|
|
15064
15356
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15065
15357
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15177,7 +15469,7 @@
|
|
|
15177
15469
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
15178
15470
|
}
|
|
15179
15471
|
}
|
|
15180
|
-
var _c0$
|
|
15472
|
+
var _c0$H = function (a0) { return { selected: a0 }; };
|
|
15181
15473
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
15182
15474
|
if (rf & 1) {
|
|
15183
15475
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -15190,7 +15482,7 @@
|
|
|
15190
15482
|
if (rf & 2) {
|
|
15191
15483
|
var radioButton_r4 = ctx.$implicit;
|
|
15192
15484
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15193
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
15485
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
15194
15486
|
i0__namespace.ɵɵadvance(1);
|
|
15195
15487
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
15196
15488
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15199,7 +15491,7 @@
|
|
|
15199
15491
|
i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
|
|
15200
15492
|
}
|
|
15201
15493
|
}
|
|
15202
|
-
var _c1$
|
|
15494
|
+
var _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
15203
15495
|
var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
|
|
15204
15496
|
__extends(WriteFixedRadioListFieldComponent, _super);
|
|
15205
15497
|
function WriteFixedRadioListFieldComponent() {
|
|
@@ -15230,7 +15522,7 @@
|
|
|
15230
15522
|
i0__namespace.ɵɵelementEnd();
|
|
15231
15523
|
}
|
|
15232
15524
|
if (rf & 2) {
|
|
15233
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
15525
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
15234
15526
|
i0__namespace.ɵɵadvance(3);
|
|
15235
15527
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15236
15528
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15360,7 +15652,7 @@
|
|
|
15360
15652
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
15361
15653
|
}
|
|
15362
15654
|
}
|
|
15363
|
-
var _c0$
|
|
15655
|
+
var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
15364
15656
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
|
|
15365
15657
|
if (rf & 1) {
|
|
15366
15658
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -15372,7 +15664,7 @@
|
|
|
15372
15664
|
if (rf & 2) {
|
|
15373
15665
|
var judicialUser_r5 = ctx.$implicit;
|
|
15374
15666
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
15375
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
15667
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
15376
15668
|
i0__namespace.ɵɵadvance(1);
|
|
15377
15669
|
i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
15378
15670
|
}
|
|
@@ -15719,7 +16011,7 @@
|
|
|
15719
16011
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
15720
16012
|
}
|
|
15721
16013
|
}
|
|
15722
|
-
var _c0$
|
|
16014
|
+
var _c0$F = function (a0) { return { "form-group-error": a0 }; };
|
|
15723
16015
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
15724
16016
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
15725
16017
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -15749,7 +16041,7 @@
|
|
|
15749
16041
|
i0__namespace.ɵɵelementEnd();
|
|
15750
16042
|
}
|
|
15751
16043
|
if (rf & 2) {
|
|
15752
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
16044
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$F, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
15753
16045
|
i0__namespace.ɵɵadvance(1);
|
|
15754
16046
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15755
16047
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15897,7 +16189,7 @@
|
|
|
15897
16189
|
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
15898
16190
|
}
|
|
15899
16191
|
}
|
|
15900
|
-
var _c0$
|
|
16192
|
+
var _c0$E = function (a0) { return { "error": a0 }; };
|
|
15901
16193
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
15902
16194
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
15903
16195
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -15961,7 +16253,7 @@
|
|
|
15961
16253
|
i0__namespace.ɵɵelementEnd();
|
|
15962
16254
|
}
|
|
15963
16255
|
if (rf & 2) {
|
|
15964
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
16256
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$E, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
15965
16257
|
i0__namespace.ɵɵadvance(3);
|
|
15966
16258
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
15967
16259
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16052,8 +16344,8 @@
|
|
|
16052
16344
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
16053
16345
|
}
|
|
16054
16346
|
}
|
|
16055
|
-
var _c0$
|
|
16056
|
-
var _c1$
|
|
16347
|
+
var _c0$D = function (a0) { return { "form-group-error": a0 }; };
|
|
16348
|
+
var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16057
16349
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
16058
16350
|
__extends(WriteNumberFieldComponent, _super);
|
|
16059
16351
|
function WriteNumberFieldComponent() {
|
|
@@ -16077,7 +16369,7 @@
|
|
|
16077
16369
|
i0__namespace.ɵɵelementEnd();
|
|
16078
16370
|
}
|
|
16079
16371
|
if (rf & 2) {
|
|
16080
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16372
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$D, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
16081
16373
|
i0__namespace.ɵɵadvance(1);
|
|
16082
16374
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
16083
16375
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16087,7 +16379,7 @@
|
|
|
16087
16379
|
i0__namespace.ɵɵadvance(1);
|
|
16088
16380
|
i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
16089
16381
|
i0__namespace.ɵɵadvance(1);
|
|
16090
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16382
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
16091
16383
|
}
|
|
16092
16384
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16093
16385
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
@@ -16378,7 +16670,7 @@
|
|
|
16378
16670
|
i0__namespace.ɵɵelementEnd();
|
|
16379
16671
|
}
|
|
16380
16672
|
}
|
|
16381
|
-
var _c0$
|
|
16673
|
+
var _c0$C = function (a0) { return { "scroll-container ": a0 }; };
|
|
16382
16674
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
|
|
16383
16675
|
if (rf & 1) {
|
|
16384
16676
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -16394,7 +16686,7 @@
|
|
|
16394
16686
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
16395
16687
|
var tmp_0_0 = null;
|
|
16396
16688
|
var tmp_2_0 = null;
|
|
16397
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
16689
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$C, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
16398
16690
|
i0__namespace.ɵɵadvance(2);
|
|
16399
16691
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
16400
16692
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -16866,8 +17158,8 @@
|
|
|
16866
17158
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
|
|
16867
17159
|
}
|
|
16868
17160
|
}
|
|
16869
|
-
var _c0$
|
|
16870
|
-
var _c1$
|
|
17161
|
+
var _c0$B = function (a0) { return { "form-group-error": a0 }; };
|
|
17162
|
+
var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
|
|
16871
17163
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
16872
17164
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
16873
17165
|
function WritePhoneUKFieldComponent() {
|
|
@@ -16891,7 +17183,7 @@
|
|
|
16891
17183
|
i0__namespace.ɵɵelementEnd();
|
|
16892
17184
|
}
|
|
16893
17185
|
if (rf & 2) {
|
|
16894
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17186
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
16895
17187
|
i0__namespace.ɵɵadvance(1);
|
|
16896
17188
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
16897
17189
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16901,7 +17193,7 @@
|
|
|
16901
17193
|
i0__namespace.ɵɵadvance(1);
|
|
16902
17194
|
i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
16903
17195
|
i0__namespace.ɵɵadvance(1);
|
|
16904
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17196
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
16905
17197
|
}
|
|
16906
17198
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
16907
17199
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
@@ -16983,8 +17275,8 @@
|
|
|
16983
17275
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
16984
17276
|
}
|
|
16985
17277
|
}
|
|
16986
|
-
var _c0$
|
|
16987
|
-
var _c1$
|
|
17278
|
+
var _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
17279
|
+
var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
16988
17280
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
16989
17281
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
16990
17282
|
function WriteTextAreaFieldComponent(browserService) {
|
|
@@ -17019,7 +17311,7 @@
|
|
|
17019
17311
|
i0__namespace.ɵɵelementEnd();
|
|
17020
17312
|
}
|
|
17021
17313
|
if (rf & 2) {
|
|
17022
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17314
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$A, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
17023
17315
|
i0__namespace.ɵɵadvance(1);
|
|
17024
17316
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
17025
17317
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17029,7 +17321,7 @@
|
|
|
17029
17321
|
i0__namespace.ɵɵadvance(1);
|
|
17030
17322
|
i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
17031
17323
|
i0__namespace.ɵɵadvance(1);
|
|
17032
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17324
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
17033
17325
|
}
|
|
17034
17326
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17035
17327
|
(function () {
|
|
@@ -17111,8 +17403,8 @@
|
|
|
17111
17403
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
|
|
17112
17404
|
}
|
|
17113
17405
|
}
|
|
17114
|
-
var _c0$
|
|
17115
|
-
var _c1$
|
|
17406
|
+
var _c0$z = function (a0) { return { "form-group-error": a0 }; };
|
|
17407
|
+
var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
|
|
17116
17408
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
17117
17409
|
__extends(WriteTextFieldComponent, _super);
|
|
17118
17410
|
function WriteTextFieldComponent() {
|
|
@@ -17141,7 +17433,7 @@
|
|
|
17141
17433
|
i0__namespace.ɵɵelementEnd();
|
|
17142
17434
|
}
|
|
17143
17435
|
if (rf & 2) {
|
|
17144
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17436
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
17145
17437
|
i0__namespace.ɵɵadvance(1);
|
|
17146
17438
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
17147
17439
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17151,7 +17443,7 @@
|
|
|
17151
17443
|
i0__namespace.ɵɵadvance(1);
|
|
17152
17444
|
i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
17153
17445
|
i0__namespace.ɵɵadvance(1);
|
|
17154
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
17446
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
17155
17447
|
}
|
|
17156
17448
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
17157
17449
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
@@ -17349,7 +17641,7 @@
|
|
|
17349
17641
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
|
|
17350
17642
|
}
|
|
17351
17643
|
}
|
|
17352
|
-
var _c0$
|
|
17644
|
+
var _c0$y = function (a0) { return { selected: a0 }; };
|
|
17353
17645
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
|
|
17354
17646
|
if (rf & 1) {
|
|
17355
17647
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -17362,7 +17654,7 @@
|
|
|
17362
17654
|
if (rf & 2) {
|
|
17363
17655
|
var value_r4 = ctx.$implicit;
|
|
17364
17656
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
17365
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
17657
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, ctx_r3.yesNoControl.value === value_r4));
|
|
17366
17658
|
i0__namespace.ɵɵadvance(1);
|
|
17367
17659
|
i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
17368
17660
|
i0__namespace.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -17372,7 +17664,7 @@
|
|
|
17372
17664
|
i0__namespace.ɵɵtextInterpolate(value_r4);
|
|
17373
17665
|
}
|
|
17374
17666
|
}
|
|
17375
|
-
var _c1$
|
|
17667
|
+
var _c1$b = function (a0) { return { "form-group-error": a0 }; };
|
|
17376
17668
|
var WriteYesNoFieldComponent = /** @class */ (function (_super) {
|
|
17377
17669
|
__extends(WriteYesNoFieldComponent, _super);
|
|
17378
17670
|
function WriteYesNoFieldComponent(yesNoService) {
|
|
@@ -17403,7 +17695,7 @@
|
|
|
17403
17695
|
i0__namespace.ɵɵelementEnd();
|
|
17404
17696
|
}
|
|
17405
17697
|
if (rf & 2) {
|
|
17406
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
17698
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
17407
17699
|
i0__namespace.ɵɵadvance(3);
|
|
17408
17700
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
17409
17701
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17428,6 +17720,9 @@
|
|
|
17428
17720
|
|
|
17429
17721
|
var PaletteService = /** @class */ (function () {
|
|
17430
17722
|
function PaletteService() {
|
|
17723
|
+
this.componentLauncherRegistry = {
|
|
17724
|
+
CaseFileView: [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent]
|
|
17725
|
+
};
|
|
17431
17726
|
}
|
|
17432
17727
|
PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
|
|
17433
17728
|
switch (caseField.field_type.type) {
|
|
@@ -17493,12 +17788,23 @@
|
|
|
17493
17788
|
return CaseHistoryViewerFieldComponent;
|
|
17494
17789
|
case 'WaysToPay':
|
|
17495
17790
|
return WaysToPayFieldComponent;
|
|
17791
|
+
case 'ComponentLauncher':
|
|
17792
|
+
return this.getComponentLauncherComponent(caseField, write);
|
|
17496
17793
|
case 'FlagLauncher':
|
|
17497
17794
|
return write ? WriteCaseFlagFieldComponent : ReadCaseFlagFieldComponent;
|
|
17498
17795
|
default:
|
|
17499
17796
|
return UnsupportedFieldComponent;
|
|
17500
17797
|
}
|
|
17501
17798
|
};
|
|
17799
|
+
PaletteService.prototype.getComponentLauncherComponent = function (caseField, write) {
|
|
17800
|
+
// Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
|
|
17801
|
+
// component from the componentLauncherRegistry
|
|
17802
|
+
var argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
|
|
17803
|
+
if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
|
|
17804
|
+
return this.componentLauncherRegistry[argumentValue][write ? 0 : 1];
|
|
17805
|
+
}
|
|
17806
|
+
return UnsupportedFieldComponent;
|
|
17807
|
+
};
|
|
17502
17808
|
return PaletteService;
|
|
17503
17809
|
}());
|
|
17504
17810
|
PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
|
|
@@ -17509,7 +17815,7 @@
|
|
|
17509
17815
|
}], null, null);
|
|
17510
17816
|
})();
|
|
17511
17817
|
|
|
17512
|
-
var _c0$
|
|
17818
|
+
var _c0$x = ["fieldContainer"];
|
|
17513
17819
|
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
17514
17820
|
var FieldReadComponent = /** @class */ (function (_super) {
|
|
17515
17821
|
__extends(FieldReadComponent, _super);
|
|
@@ -17558,7 +17864,7 @@
|
|
|
17558
17864
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
17559
17865
|
FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
|
|
17560
17866
|
if (rf & 1) {
|
|
17561
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
17867
|
+
i0__namespace.ɵɵviewQuery(_c0$x, 1, i0.ViewContainerRef);
|
|
17562
17868
|
}
|
|
17563
17869
|
if (rf & 2) {
|
|
17564
17870
|
var _t = void 0;
|
|
@@ -17599,7 +17905,7 @@
|
|
|
17599
17905
|
}] });
|
|
17600
17906
|
})();
|
|
17601
17907
|
|
|
17602
|
-
var _c0$
|
|
17908
|
+
var _c0$w = ["fieldContainer"];
|
|
17603
17909
|
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
17604
17910
|
var FieldWriteComponent = /** @class */ (function (_super) {
|
|
17605
17911
|
__extends(FieldWriteComponent, _super);
|
|
@@ -17647,7 +17953,7 @@
|
|
|
17647
17953
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
17648
17954
|
FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
|
|
17649
17955
|
if (rf & 1) {
|
|
17650
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
17956
|
+
i0__namespace.ɵɵviewQuery(_c0$w, 3, i0.ViewContainerRef);
|
|
17651
17957
|
}
|
|
17652
17958
|
if (rf & 2) {
|
|
17653
17959
|
var _t = void 0;
|
|
@@ -17710,7 +18016,7 @@
|
|
|
17710
18016
|
i0__namespace.ɵɵprojection(0);
|
|
17711
18017
|
}
|
|
17712
18018
|
}
|
|
17713
|
-
var _c0$
|
|
18019
|
+
var _c0$v = ["*"];
|
|
17714
18020
|
var FieldReadLabelComponent = /** @class */ (function (_super) {
|
|
17715
18021
|
__extends(FieldReadLabelComponent, _super);
|
|
17716
18022
|
function FieldReadLabelComponent() {
|
|
@@ -17748,7 +18054,7 @@
|
|
|
17748
18054
|
return FieldReadLabelComponent;
|
|
17749
18055
|
}(AbstractFieldReadComponent));
|
|
17750
18056
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
17751
|
-
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$
|
|
18057
|
+
FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
|
|
17752
18058
|
if (rf & 1) {
|
|
17753
18059
|
i0__namespace.ɵɵprojectionDef();
|
|
17754
18060
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -17782,24 +18088,900 @@
|
|
|
17782
18088
|
}] });
|
|
17783
18089
|
})();
|
|
17784
18090
|
|
|
17785
|
-
|
|
17786
|
-
|
|
17787
|
-
|
|
18091
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
|
|
18092
|
+
if (rf & 1) {
|
|
18093
|
+
i0__namespace.ɵɵelementContainer(0);
|
|
17788
18094
|
}
|
|
17789
|
-
|
|
17790
|
-
|
|
17791
|
-
|
|
18095
|
+
}
|
|
18096
|
+
var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
|
|
18097
|
+
function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
|
|
18098
|
+
if (rf & 1) {
|
|
18099
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18100
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18101
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18102
|
+
}
|
|
18103
|
+
if (rf & 2) {
|
|
18104
|
+
var cat_r3 = ctx.$implicit;
|
|
18105
|
+
i0__namespace.ɵɵnextContext();
|
|
18106
|
+
var _r1 = i0__namespace.ɵɵreference(13);
|
|
18107
|
+
i0__namespace.ɵɵadvance(1);
|
|
18108
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$u, cat_r3));
|
|
18109
|
+
}
|
|
18110
|
+
}
|
|
18111
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
|
|
18112
|
+
if (rf & 1) {
|
|
18113
|
+
i0__namespace.ɵɵelementContainer(0);
|
|
18114
|
+
}
|
|
18115
|
+
}
|
|
18116
|
+
var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
|
|
18117
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
|
|
18118
|
+
if (rf & 1) {
|
|
18119
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18120
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
|
|
18121
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18122
|
+
}
|
|
18123
|
+
if (rf & 2) {
|
|
18124
|
+
var subcat_r8 = ctx.$implicit;
|
|
18125
|
+
var level_r6 = i0__namespace.ɵɵnextContext().level;
|
|
18126
|
+
i0__namespace.ɵɵnextContext();
|
|
18127
|
+
var _r1 = i0__namespace.ɵɵreference(13);
|
|
18128
|
+
i0__namespace.ɵɵadvance(1);
|
|
18129
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
|
|
18130
|
+
}
|
|
18131
|
+
}
|
|
18132
|
+
function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
|
|
18133
|
+
if (rf & 1) {
|
|
18134
|
+
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18135
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
18136
|
+
i0__namespace.ɵɵelementStart(1, "input", 10);
|
|
18137
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.handleChange($event); });
|
|
18138
|
+
i0__namespace.ɵɵelementEnd();
|
|
18139
|
+
i0__namespace.ɵɵelementStart(2, "label", 11);
|
|
18140
|
+
i0__namespace.ɵɵelement(3, "img", 12);
|
|
18141
|
+
i0__namespace.ɵɵtext(4);
|
|
18142
|
+
i0__namespace.ɵɵelementEnd();
|
|
18143
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
|
|
18144
|
+
i0__namespace.ɵɵelementEnd();
|
|
18145
|
+
}
|
|
18146
|
+
if (rf & 2) {
|
|
18147
|
+
var cat_r5 = ctx.cat;
|
|
18148
|
+
var level_r6 = ctx.level;
|
|
18149
|
+
i0__namespace.ɵɵadvance(1);
|
|
18150
|
+
i0__namespace.ɵɵpropertyInterpolate1("name", "level-", level_r6, "");
|
|
18151
|
+
i0__namespace.ɵɵproperty("id", cat_r5.category_id);
|
|
18152
|
+
i0__namespace.ɵɵadvance(1);
|
|
18153
|
+
i0__namespace.ɵɵproperty("for", cat_r5.category_id);
|
|
18154
|
+
i0__namespace.ɵɵadvance(2);
|
|
18155
|
+
i0__namespace.ɵɵtextInterpolate1(" ", cat_r5.category_name, " ");
|
|
18156
|
+
i0__namespace.ɵɵadvance(1);
|
|
18157
|
+
i0__namespace.ɵɵproperty("ngForOf", cat_r5.sub_categories);
|
|
18158
|
+
}
|
|
18159
|
+
}
|
|
18160
|
+
var CaseFileViewFolderSelectorComponent = /** @class */ (function () {
|
|
18161
|
+
function CaseFileViewFolderSelectorComponent(dialogRef, data) {
|
|
18162
|
+
this.dialogRef = dialogRef;
|
|
18163
|
+
this.data = data;
|
|
18164
|
+
this.currentCategories = [];
|
|
18165
|
+
this.selected = '';
|
|
18166
|
+
this.currentCategories = __spread(this.data.categories);
|
|
18167
|
+
}
|
|
18168
|
+
CaseFileViewFolderSelectorComponent.prototype.ngAfterViewInit = function () {
|
|
18169
|
+
var path = this.findPath();
|
|
18170
|
+
path.forEach(function (p) { return document.getElementById(p).checked = true; });
|
|
18171
|
+
};
|
|
18172
|
+
CaseFileViewFolderSelectorComponent.prototype.handleChange = function (evt) {
|
|
18173
|
+
if (evt.target.checked) {
|
|
18174
|
+
this.select(evt.target.id);
|
|
18175
|
+
// get level of this checkbox so we can clear all lower levels
|
|
18176
|
+
var level = parseInt(evt.target.name.split('-')[1], 10) + 1;
|
|
18177
|
+
var nodes = document.getElementsByName("level-" + level);
|
|
18178
|
+
while (nodes.length > 0) {
|
|
18179
|
+
nodes.forEach(function (node) { return node.checked = false; });
|
|
18180
|
+
level += 1;
|
|
18181
|
+
nodes = document.getElementsByName("level-" + level);
|
|
18182
|
+
}
|
|
17792
18183
|
}
|
|
17793
|
-
return rxjs.of(null);
|
|
17794
18184
|
};
|
|
17795
|
-
|
|
18185
|
+
CaseFileViewFolderSelectorComponent.prototype.select = function (categoryId) {
|
|
18186
|
+
this.selected = categoryId;
|
|
18187
|
+
};
|
|
18188
|
+
CaseFileViewFolderSelectorComponent.prototype.cancel = function () {
|
|
18189
|
+
this.dialogRef.close();
|
|
18190
|
+
};
|
|
18191
|
+
CaseFileViewFolderSelectorComponent.prototype.save = function () {
|
|
18192
|
+
this.dialogRef.close(this.selected.length > 0 ? this.selected : null);
|
|
18193
|
+
};
|
|
18194
|
+
CaseFileViewFolderSelectorComponent.prototype.findPath = function () {
|
|
18195
|
+
var e_1, _a;
|
|
18196
|
+
try {
|
|
18197
|
+
for (var _b = __values(this.data.categories), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
18198
|
+
var c = _c.value;
|
|
18199
|
+
var r = this.containsDocument(c, this.data.document);
|
|
18200
|
+
if (r) {
|
|
18201
|
+
return r;
|
|
18202
|
+
}
|
|
18203
|
+
}
|
|
18204
|
+
}
|
|
18205
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
18206
|
+
finally {
|
|
18207
|
+
try {
|
|
18208
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
18209
|
+
}
|
|
18210
|
+
finally { if (e_1) throw e_1.error; }
|
|
18211
|
+
}
|
|
18212
|
+
};
|
|
18213
|
+
CaseFileViewFolderSelectorComponent.prototype.containsDocument = function (cat, document) {
|
|
18214
|
+
var e_2, _a;
|
|
18215
|
+
if (cat.documents.findIndex(function (doc) { return doc.document_binary_url === document.document_binary_url; }) > -1) {
|
|
18216
|
+
return [cat.category_id];
|
|
18217
|
+
}
|
|
18218
|
+
try {
|
|
18219
|
+
for (var _b = __values(cat.sub_categories), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
18220
|
+
var c = _c.value;
|
|
18221
|
+
var r = this.containsDocument(c, document);
|
|
18222
|
+
if (r) {
|
|
18223
|
+
return __spread([cat.category_id], r);
|
|
18224
|
+
}
|
|
18225
|
+
}
|
|
18226
|
+
}
|
|
18227
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
18228
|
+
finally {
|
|
18229
|
+
try {
|
|
18230
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
18231
|
+
}
|
|
18232
|
+
finally { if (e_2) throw e_2.error; }
|
|
18233
|
+
}
|
|
18234
|
+
return null;
|
|
18235
|
+
};
|
|
18236
|
+
return CaseFileViewFolderSelectorComponent;
|
|
17796
18237
|
}());
|
|
17797
|
-
|
|
17798
|
-
|
|
18238
|
+
CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
|
|
18239
|
+
CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [1, "close", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
|
|
18240
|
+
if (rf & 1) {
|
|
18241
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
18242
|
+
i0__namespace.ɵɵtext(1, "Move File");
|
|
18243
|
+
i0__namespace.ɵɵelementEnd();
|
|
18244
|
+
i0__namespace.ɵɵelementStart(2, "p");
|
|
18245
|
+
i0__namespace.ɵɵtext(3);
|
|
18246
|
+
i0__namespace.ɵɵelementEnd();
|
|
18247
|
+
i0__namespace.ɵɵelementStart(4, "div", 1);
|
|
18248
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
|
|
18249
|
+
i0__namespace.ɵɵelementEnd();
|
|
18250
|
+
i0__namespace.ɵɵelementStart(6, "div", 3);
|
|
18251
|
+
i0__namespace.ɵɵelementStart(7, "button", 4);
|
|
18252
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
|
|
18253
|
+
i0__namespace.ɵɵtext(8, "Save");
|
|
18254
|
+
i0__namespace.ɵɵelementEnd();
|
|
18255
|
+
i0__namespace.ɵɵelementStart(9, "a", 5);
|
|
18256
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
|
|
18257
|
+
i0__namespace.ɵɵtext(10, "Cancel");
|
|
18258
|
+
i0__namespace.ɵɵelementEnd();
|
|
18259
|
+
i0__namespace.ɵɵelementEnd();
|
|
18260
|
+
i0__namespace.ɵɵelementStart(11, "div", 6);
|
|
18261
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
|
|
18262
|
+
i0__namespace.ɵɵelementEnd();
|
|
18263
|
+
i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
18264
|
+
}
|
|
18265
|
+
if (rf & 2) {
|
|
18266
|
+
i0__namespace.ɵɵadvance(3);
|
|
18267
|
+
i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
|
|
18268
|
+
i0__namespace.ɵɵadvance(2);
|
|
18269
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
|
|
18270
|
+
}
|
|
18271
|
+
}, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
|
|
17799
18272
|
(function () {
|
|
17800
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
17801
|
-
type: i0.
|
|
17802
|
-
|
|
18273
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
|
|
18274
|
+
type: i0.Component,
|
|
18275
|
+
args: [{
|
|
18276
|
+
selector: 'xui-case-file-view-folder-selector',
|
|
18277
|
+
templateUrl: './case-file-view-folder-selector.component.html',
|
|
18278
|
+
styleUrls: ['./case-file-view-folder-selector.component.scss']
|
|
18279
|
+
}]
|
|
18280
|
+
}], function () {
|
|
18281
|
+
return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
18282
|
+
type: i0.Inject,
|
|
18283
|
+
args: [i1$3.MAT_DIALOG_DATA]
|
|
18284
|
+
}] }];
|
|
18285
|
+
}, null);
|
|
18286
|
+
})();
|
|
18287
|
+
|
|
18288
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) {
|
|
18289
|
+
if (rf & 1) {
|
|
18290
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18291
|
+
i0__namespace.ɵɵelementStart(1, "div", 6);
|
|
18292
|
+
i0__namespace.ɵɵtext(2);
|
|
18293
|
+
i0__namespace.ɵɵelementEnd();
|
|
18294
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18295
|
+
}
|
|
18296
|
+
if (rf & 2) {
|
|
18297
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
18298
|
+
i0__namespace.ɵɵadvance(2);
|
|
18299
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
18300
|
+
}
|
|
18301
|
+
}
|
|
18302
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) {
|
|
18303
|
+
if (rf & 1) {
|
|
18304
|
+
i0__namespace.ɵɵelement(0, "img", 10);
|
|
18305
|
+
}
|
|
18306
|
+
if (rf & 2) {
|
|
18307
|
+
var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
|
|
18308
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
18309
|
+
i0__namespace.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
18310
|
+
i0__namespace.ɵɵproperty("src", item_r4.iconSrc, i0__namespace.ɵɵsanitizeUrl);
|
|
18311
|
+
}
|
|
18312
|
+
}
|
|
18313
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) {
|
|
18314
|
+
if (rf & 1) {
|
|
18315
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18316
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18317
|
+
i0__namespace.ɵɵelementStart(1, "div", 7);
|
|
18318
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var item_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); item_r4.actionFn(); return ctx_r7.closeOverlay(); });
|
|
18319
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
18320
|
+
i0__namespace.ɵɵelementStart(3, "div", 9);
|
|
18321
|
+
i0__namespace.ɵɵtext(4);
|
|
18322
|
+
i0__namespace.ɵɵelementEnd();
|
|
18323
|
+
i0__namespace.ɵɵelementEnd();
|
|
18324
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18325
|
+
}
|
|
18326
|
+
if (rf & 2) {
|
|
18327
|
+
var item_r4 = ctx.$implicit;
|
|
18328
|
+
i0__namespace.ɵɵadvance(2);
|
|
18329
|
+
i0__namespace.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
18330
|
+
i0__namespace.ɵɵadvance(2);
|
|
18331
|
+
i0__namespace.ɵɵtextInterpolate(item_r4.actionText);
|
|
18332
|
+
}
|
|
18333
|
+
}
|
|
18334
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
|
|
18335
|
+
if (rf & 1) {
|
|
18336
|
+
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
18337
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
18338
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
18339
|
+
i0__namespace.ɵɵelementEnd();
|
|
18340
|
+
}
|
|
18341
|
+
if (rf & 2) {
|
|
18342
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
18343
|
+
i0__namespace.ɵɵadvance(1);
|
|
18344
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.title);
|
|
18345
|
+
i0__namespace.ɵɵadvance(1);
|
|
18346
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
18347
|
+
}
|
|
18348
|
+
}
|
|
18349
|
+
var _c0$t = [[["", "trigger", ""]]];
|
|
18350
|
+
var _c1$9 = ["[trigger]"];
|
|
18351
|
+
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
18352
|
+
function CaseFileViewOverlayMenuComponent() {
|
|
18353
|
+
this.title = '';
|
|
18354
|
+
this.isOpen = false;
|
|
18355
|
+
this.isOpenChange = new i0.EventEmitter();
|
|
18356
|
+
}
|
|
18357
|
+
CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
|
|
18358
|
+
var isOpen = false;
|
|
18359
|
+
this.isOpen = isOpen;
|
|
18360
|
+
this.isOpenChange.emit(isOpen);
|
|
18361
|
+
};
|
|
18362
|
+
return CaseFileViewOverlayMenuComponent;
|
|
18363
|
+
}());
|
|
18364
|
+
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
18365
|
+
CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
18366
|
+
if (rf & 1) {
|
|
18367
|
+
i0__namespace.ɵɵprojectionDef(_c0$t);
|
|
18368
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
18369
|
+
i0__namespace.ɵɵelementStart(1, "button", 0, 1);
|
|
18370
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
|
|
18371
|
+
i0__namespace.ɵɵprojection(3);
|
|
18372
|
+
i0__namespace.ɵɵelementEnd();
|
|
18373
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
18374
|
+
i0__namespace.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
18375
|
+
i0__namespace.ɵɵelementEnd();
|
|
18376
|
+
}
|
|
18377
|
+
if (rf & 2) {
|
|
18378
|
+
var _r0 = i0__namespace.ɵɵreference(2);
|
|
18379
|
+
i0__namespace.ɵɵadvance(4);
|
|
18380
|
+
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
18381
|
+
}
|
|
18382
|
+
}, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.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}"] });
|
|
18383
|
+
(function () {
|
|
18384
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
18385
|
+
type: i0.Component,
|
|
18386
|
+
args: [{
|
|
18387
|
+
selector: 'ccd-case-file-view-overlay-menu',
|
|
18388
|
+
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
18389
|
+
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
18390
|
+
}]
|
|
18391
|
+
}], null, { title: [{
|
|
18392
|
+
type: i0.Input
|
|
18393
|
+
}], menuItems: [{
|
|
18394
|
+
type: i0.Input
|
|
18395
|
+
}], isOpen: [{
|
|
18396
|
+
type: i0.Input
|
|
18397
|
+
}], isOpenChange: [{
|
|
18398
|
+
type: i0.Output
|
|
18399
|
+
}] });
|
|
18400
|
+
})();
|
|
18401
|
+
|
|
18402
|
+
var CaseFileViewFolderDocumentActionsComponent = /** @class */ (function () {
|
|
18403
|
+
function CaseFileViewFolderDocumentActionsComponent() {
|
|
18404
|
+
var _this = this;
|
|
18405
|
+
this.isOpen = false;
|
|
18406
|
+
this.changeFolderAction = new i0.EventEmitter();
|
|
18407
|
+
this.openInANewTabAction = new i0.EventEmitter();
|
|
18408
|
+
this.downloadAction = new i0.EventEmitter();
|
|
18409
|
+
this.printAction = new i0.EventEmitter();
|
|
18410
|
+
this.overlayMenuItems = [
|
|
18411
|
+
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: function () { return _this.openInANewTabAction.emit(); } },
|
|
18412
|
+
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: function () { return _this.downloadAction.emit(); } },
|
|
18413
|
+
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: function () { return _this.printAction.emit(); } },
|
|
18414
|
+
];
|
|
18415
|
+
}
|
|
18416
|
+
CaseFileViewFolderDocumentActionsComponent.prototype.ngOnInit = function () {
|
|
18417
|
+
var _this = this;
|
|
18418
|
+
if (this.allowMoving) {
|
|
18419
|
+
this.overlayMenuItems.unshift({ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: function () { return _this.changeFolderAction.emit(); } });
|
|
18420
|
+
}
|
|
18421
|
+
};
|
|
18422
|
+
return CaseFileViewFolderDocumentActionsComponent;
|
|
18423
|
+
}());
|
|
18424
|
+
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
18425
|
+
CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], inputs: { allowMoving: "allowMoving" }, outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) {
|
|
18426
|
+
if (rf & 1) {
|
|
18427
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
18428
|
+
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
18429
|
+
i0__namespace.ɵɵelementContainerStart(1, 1);
|
|
18430
|
+
i0__namespace.ɵɵelement(2, "img", 2);
|
|
18431
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18432
|
+
i0__namespace.ɵɵelementEnd();
|
|
18433
|
+
}
|
|
18434
|
+
if (rf & 2) {
|
|
18435
|
+
i0__namespace.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
18436
|
+
}
|
|
18437
|
+
}, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-4px}"] });
|
|
18438
|
+
(function () {
|
|
18439
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
18440
|
+
type: i0.Component,
|
|
18441
|
+
args: [{
|
|
18442
|
+
selector: 'ccd-case-file-view-folder-document-actions',
|
|
18443
|
+
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
18444
|
+
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
18445
|
+
}]
|
|
18446
|
+
}], function () { return []; }, { allowMoving: [{
|
|
18447
|
+
type: i0.Input
|
|
18448
|
+
}], changeFolderAction: [{
|
|
18449
|
+
type: i0.Output
|
|
18450
|
+
}], openInANewTabAction: [{
|
|
18451
|
+
type: i0.Output
|
|
18452
|
+
}], downloadAction: [{
|
|
18453
|
+
type: i0.Output
|
|
18454
|
+
}], printAction: [{
|
|
18455
|
+
type: i0.Output
|
|
18456
|
+
}] });
|
|
18457
|
+
})();
|
|
18458
|
+
|
|
18459
|
+
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
18460
|
+
function CaseFileViewFolderSortComponent() {
|
|
18461
|
+
var _this = this;
|
|
18462
|
+
this.isOpen = false;
|
|
18463
|
+
this.sortAscending = new i0.EventEmitter();
|
|
18464
|
+
this.sortDescending = new i0.EventEmitter();
|
|
18465
|
+
this.overlayMenuItems = [
|
|
18466
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
18467
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
18468
|
+
];
|
|
18469
|
+
}
|
|
18470
|
+
return CaseFileViewFolderSortComponent;
|
|
18471
|
+
}());
|
|
18472
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
18473
|
+
CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵ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) {
|
|
18474
|
+
if (rf & 1) {
|
|
18475
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
18476
|
+
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
18477
|
+
i0__namespace.ɵɵelementContainerStart(1, 1);
|
|
18478
|
+
i0__namespace.ɵɵelement(2, "img", 2);
|
|
18479
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18480
|
+
i0__namespace.ɵɵelementEnd();
|
|
18481
|
+
}
|
|
18482
|
+
if (rf & 2) {
|
|
18483
|
+
i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
18484
|
+
}
|
|
18485
|
+
}, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
|
|
18486
|
+
(function () {
|
|
18487
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
18488
|
+
type: i0.Component,
|
|
18489
|
+
args: [{
|
|
18490
|
+
selector: 'ccd-case-file-view-folder-sort',
|
|
18491
|
+
templateUrl: './case-file-view-folder-sort.component.html',
|
|
18492
|
+
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
18493
|
+
}]
|
|
18494
|
+
}], function () { return []; }, { sortAscending: [{
|
|
18495
|
+
type: i0.Output
|
|
18496
|
+
}], sortDescending: [{
|
|
18497
|
+
type: i0.Output
|
|
18498
|
+
}] });
|
|
18499
|
+
})();
|
|
18500
|
+
|
|
18501
|
+
var CaseFileViewCategory = /** @class */ (function () {
|
|
18502
|
+
function CaseFileViewCategory() {
|
|
18503
|
+
}
|
|
18504
|
+
return CaseFileViewCategory;
|
|
18505
|
+
}());
|
|
18506
|
+
|
|
18507
|
+
var CaseFileViewDocument = /** @class */ (function () {
|
|
18508
|
+
function CaseFileViewDocument() {
|
|
18509
|
+
}
|
|
18510
|
+
return CaseFileViewDocument;
|
|
18511
|
+
}());
|
|
18512
|
+
|
|
18513
|
+
/**
|
|
18514
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
18515
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
18516
|
+
*/
|
|
18517
|
+
var CategoriesAndDocuments = /** @class */ (function () {
|
|
18518
|
+
function CategoriesAndDocuments() {
|
|
18519
|
+
}
|
|
18520
|
+
return CategoriesAndDocuments;
|
|
18521
|
+
}());
|
|
18522
|
+
|
|
18523
|
+
var DocumentTreeNodeType;
|
|
18524
|
+
(function (DocumentTreeNodeType) {
|
|
18525
|
+
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
18526
|
+
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
18527
|
+
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
18528
|
+
|
|
18529
|
+
var DocumentTreeNode = /** @class */ (function () {
|
|
18530
|
+
function DocumentTreeNode() {
|
|
18531
|
+
}
|
|
18532
|
+
Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
|
|
18533
|
+
get: function () {
|
|
18534
|
+
var countChildren = function (childNodes) {
|
|
18535
|
+
var count = 0;
|
|
18536
|
+
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
18537
|
+
var documents = childNodes.filter(function (item) { return item.type === 'document'; });
|
|
18538
|
+
count += documents.length;
|
|
18539
|
+
childNodes.forEach(function (children) {
|
|
18540
|
+
count += countChildren(children.children);
|
|
18541
|
+
});
|
|
18542
|
+
}
|
|
18543
|
+
return count;
|
|
18544
|
+
};
|
|
18545
|
+
return countChildren(this.children);
|
|
18546
|
+
},
|
|
18547
|
+
enumerable: false,
|
|
18548
|
+
configurable: true
|
|
18549
|
+
});
|
|
18550
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
18551
|
+
var _a, _b;
|
|
18552
|
+
var sortAscending = function () {
|
|
18553
|
+
return function (a, b) {
|
|
18554
|
+
var nameA = a.name.toUpperCase();
|
|
18555
|
+
var nameB = b.name.toUpperCase();
|
|
18556
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
18557
|
+
return 0;
|
|
18558
|
+
}
|
|
18559
|
+
if (nameA < nameB) {
|
|
18560
|
+
return -1;
|
|
18561
|
+
}
|
|
18562
|
+
if (nameA > nameB) {
|
|
18563
|
+
return 1;
|
|
18564
|
+
}
|
|
18565
|
+
};
|
|
18566
|
+
};
|
|
18567
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
18568
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
18569
|
+
childNodes.sortChildrenAscending();
|
|
18570
|
+
});
|
|
18571
|
+
};
|
|
18572
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
18573
|
+
var _a, _b;
|
|
18574
|
+
var sortDescending = function () {
|
|
18575
|
+
return function (a, b) {
|
|
18576
|
+
var nameA = a.name.toUpperCase();
|
|
18577
|
+
var nameB = b.name.toUpperCase();
|
|
18578
|
+
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
18579
|
+
return 0;
|
|
18580
|
+
}
|
|
18581
|
+
if (nameA > nameB) {
|
|
18582
|
+
return -1;
|
|
18583
|
+
}
|
|
18584
|
+
if (nameA < nameB) {
|
|
18585
|
+
return 1;
|
|
18586
|
+
}
|
|
18587
|
+
};
|
|
18588
|
+
};
|
|
18589
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
18590
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
18591
|
+
childNodes.sortChildrenDescending();
|
|
18592
|
+
});
|
|
18593
|
+
};
|
|
18594
|
+
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
18595
|
+
get: function () {
|
|
18596
|
+
var _a;
|
|
18597
|
+
var flattenChildren = function (nodeChild) {
|
|
18598
|
+
var _a;
|
|
18599
|
+
var flattenedNodes = [];
|
|
18600
|
+
flattenedNodes.push(nodeChild);
|
|
18601
|
+
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
18602
|
+
nodeChild.children.forEach(function (child) {
|
|
18603
|
+
flattenedNodes.push.apply(flattenedNodes, __spread(flattenChildren(child)));
|
|
18604
|
+
});
|
|
18605
|
+
}
|
|
18606
|
+
return flattenedNodes;
|
|
18607
|
+
};
|
|
18608
|
+
return __spread([
|
|
18609
|
+
this
|
|
18610
|
+
], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
18611
|
+
return flattenChildren(item);
|
|
18612
|
+
}).flat());
|
|
18613
|
+
},
|
|
18614
|
+
enumerable: false,
|
|
18615
|
+
configurable: true
|
|
18616
|
+
});
|
|
18617
|
+
return DocumentTreeNode;
|
|
18618
|
+
}());
|
|
18619
|
+
__decorate([
|
|
18620
|
+
classTransformer.Type(function () { return DocumentTreeNode; }),
|
|
18621
|
+
__metadata("design:type", Array)
|
|
18622
|
+
], DocumentTreeNode.prototype, "children", void 0);
|
|
18623
|
+
__decorate([
|
|
18624
|
+
classTransformer.Expose(),
|
|
18625
|
+
__metadata("design:type", Object),
|
|
18626
|
+
__metadata("design:paramtypes", [])
|
|
18627
|
+
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
18628
|
+
|
|
18629
|
+
function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) {
|
|
18630
|
+
if (rf & 1) {
|
|
18631
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
18632
|
+
i0__namespace.ɵɵtext(1, " No results found ");
|
|
18633
|
+
i0__namespace.ɵɵelementEnd();
|
|
18634
|
+
}
|
|
18635
|
+
}
|
|
18636
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) {
|
|
18637
|
+
if (rf & 1) {
|
|
18638
|
+
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18639
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
|
|
18640
|
+
i0__namespace.ɵɵelementStart(1, "button", 13);
|
|
18641
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r5 = i0__namespace.ɵɵnextContext(2); ctx_r5.selectedNodeItem = node_r4; return ctx_r5.clickedDocument.emit(node_r4); });
|
|
18642
|
+
i0__namespace.ɵɵelementStart(2, "div", 14);
|
|
18643
|
+
i0__namespace.ɵɵelement(3, "img", 15);
|
|
18644
|
+
i0__namespace.ɵɵelementEnd();
|
|
18645
|
+
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
18646
|
+
i0__namespace.ɵɵtext(5);
|
|
18647
|
+
i0__namespace.ɵɵelementEnd();
|
|
18648
|
+
i0__namespace.ɵɵelementStart(6, "div", 17);
|
|
18649
|
+
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
|
|
18650
|
+
i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
18651
|
+
i0__namespace.ɵɵelementEnd();
|
|
18652
|
+
i0__namespace.ɵɵelementEnd();
|
|
18653
|
+
i0__namespace.ɵɵelementEnd();
|
|
18654
|
+
i0__namespace.ɵɵelementEnd();
|
|
18655
|
+
}
|
|
18656
|
+
if (rf & 2) {
|
|
18657
|
+
var node_r4 = ctx.$implicit;
|
|
18658
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
18659
|
+
i0__namespace.ɵɵadvance(1);
|
|
18660
|
+
i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
18661
|
+
i0__namespace.ɵɵadvance(4);
|
|
18662
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.name);
|
|
18663
|
+
i0__namespace.ɵɵadvance(2);
|
|
18664
|
+
i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
18665
|
+
}
|
|
18666
|
+
}
|
|
18667
|
+
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
18668
|
+
if (rf & 1) {
|
|
18669
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
|
|
18670
|
+
i0__namespace.ɵɵelementStart(1, "button", 20);
|
|
18671
|
+
i0__namespace.ɵɵelementStart(2, "div", 21);
|
|
18672
|
+
i0__namespace.ɵɵelement(3, "img", 22);
|
|
18673
|
+
i0__namespace.ɵɵelementStart(4, "span", 23);
|
|
18674
|
+
i0__namespace.ɵɵtext(5);
|
|
18675
|
+
i0__namespace.ɵɵelementEnd();
|
|
18676
|
+
i0__namespace.ɵɵelementEnd();
|
|
18677
|
+
i0__namespace.ɵɵelementStart(6, "span", 24);
|
|
18678
|
+
i0__namespace.ɵɵtext(7);
|
|
18679
|
+
i0__namespace.ɵɵelementEnd();
|
|
18680
|
+
i0__namespace.ɵɵelementEnd();
|
|
18681
|
+
i0__namespace.ɵɵelementStart(8, "div");
|
|
18682
|
+
i0__namespace.ɵɵelementContainer(9, 25);
|
|
18683
|
+
i0__namespace.ɵɵelementEnd();
|
|
18684
|
+
i0__namespace.ɵɵelementEnd();
|
|
18685
|
+
}
|
|
18686
|
+
if (rf & 2) {
|
|
18687
|
+
var node_r11 = ctx.$implicit;
|
|
18688
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
18689
|
+
i0__namespace.ɵɵadvance(2);
|
|
18690
|
+
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r11.name);
|
|
18691
|
+
i0__namespace.ɵɵadvance(1);
|
|
18692
|
+
i0__namespace.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r11) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0__namespace.ɵɵsanitizeUrl);
|
|
18693
|
+
i0__namespace.ɵɵadvance(2);
|
|
18694
|
+
i0__namespace.ɵɵtextInterpolate(node_r11.childDocumentCount);
|
|
18695
|
+
i0__namespace.ɵɵadvance(2);
|
|
18696
|
+
i0__namespace.ɵɵtextInterpolate(node_r11.name);
|
|
18697
|
+
i0__namespace.ɵɵadvance(1);
|
|
18698
|
+
i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r11));
|
|
18699
|
+
}
|
|
18700
|
+
}
|
|
18701
|
+
function CaseFileViewFolderComponent_div_8_Template(rf, ctx) {
|
|
18702
|
+
if (rf & 1) {
|
|
18703
|
+
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
18704
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
18705
|
+
i0__namespace.ɵɵelementStart(2, "div");
|
|
18706
|
+
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
18707
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
|
|
18708
|
+
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
18709
|
+
i0__namespace.ɵɵelementEnd();
|
|
18710
|
+
i0__namespace.ɵɵelementEnd();
|
|
18711
|
+
i0__namespace.ɵɵelementEnd();
|
|
18712
|
+
}
|
|
18713
|
+
if (rf & 2) {
|
|
18714
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
18715
|
+
i0__namespace.ɵɵadvance(1);
|
|
18716
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
|
|
18717
|
+
i0__namespace.ɵɵadvance(2);
|
|
18718
|
+
i0__namespace.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
|
|
18719
|
+
i0__namespace.ɵɵadvance(2);
|
|
18720
|
+
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
|
|
18721
|
+
}
|
|
18722
|
+
}
|
|
18723
|
+
var MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
18724
|
+
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
18725
|
+
function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog) {
|
|
18726
|
+
this.windowService = windowService;
|
|
18727
|
+
this.router = router;
|
|
18728
|
+
this.documentManagementService = documentManagementService;
|
|
18729
|
+
this.dialog = dialog;
|
|
18730
|
+
this.clickedDocument = new i0.EventEmitter();
|
|
18731
|
+
this.moveDocument = new i0.EventEmitter();
|
|
18732
|
+
this.categories = [];
|
|
18733
|
+
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
18734
|
+
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
18735
|
+
this.nestedTreeControl = new i7.NestedTreeControl(this.getChildren);
|
|
18736
|
+
}
|
|
18737
|
+
Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
|
|
18738
|
+
get: function () {
|
|
18739
|
+
var _a;
|
|
18740
|
+
if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
|
|
18741
|
+
return this.nestedDataSource.reduce(function (acc, item) {
|
|
18742
|
+
return acc + item.childDocumentCount;
|
|
18743
|
+
}, 0);
|
|
18744
|
+
}
|
|
18745
|
+
else {
|
|
18746
|
+
return 0;
|
|
18747
|
+
}
|
|
18748
|
+
},
|
|
18749
|
+
enumerable: false,
|
|
18750
|
+
configurable: true
|
|
18751
|
+
});
|
|
18752
|
+
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
18753
|
+
var _this = this;
|
|
18754
|
+
this.documentFilterFormGroup = new i2.FormGroup({});
|
|
18755
|
+
this.documentSearchFormControl = new i2.FormControl('');
|
|
18756
|
+
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
18757
|
+
// Listen to search input and initiate filter documents if at least three characters entered
|
|
18758
|
+
this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
|
|
18759
|
+
_this.nestedDataSource = documentTreeData;
|
|
18760
|
+
_this.nestedTreeControl.dataNodes = documentTreeData;
|
|
18761
|
+
_this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
|
|
18762
|
+
? _this.nestedTreeControl.expandAll()
|
|
18763
|
+
: _this.nestedTreeControl.collapseAll();
|
|
18764
|
+
});
|
|
18765
|
+
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
18766
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
|
|
18767
|
+
var categories = categoriesAndDocuments.categories;
|
|
18768
|
+
_this.categories = categories;
|
|
18769
|
+
// Generate document tree data from categories
|
|
18770
|
+
_this.documentTreeData = _this.generateTreeData(categories);
|
|
18771
|
+
// Append uncategorised documents
|
|
18772
|
+
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
18773
|
+
var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
18774
|
+
_this.documentTreeData.push(uncategorisedDocuments);
|
|
18775
|
+
}
|
|
18776
|
+
// Initialise cdk tree with generated data
|
|
18777
|
+
_this.nestedDataSource = _this.documentTreeData;
|
|
18778
|
+
_this.nestedTreeControl.dataNodes = _this.documentTreeData;
|
|
18779
|
+
});
|
|
18780
|
+
};
|
|
18781
|
+
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
18782
|
+
var _this = this;
|
|
18783
|
+
return categories.reduce(function (tree, node) {
|
|
18784
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
18785
|
+
newDocumentTreeNode.name = node.category_name;
|
|
18786
|
+
newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
|
|
18787
|
+
newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
|
|
18788
|
+
return __spread(tree, [
|
|
18789
|
+
newDocumentTreeNode,
|
|
18790
|
+
]);
|
|
18791
|
+
}, []);
|
|
18792
|
+
};
|
|
18793
|
+
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
18794
|
+
var documentsToReturn = [];
|
|
18795
|
+
documents.forEach(function (document) {
|
|
18796
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
18797
|
+
documentTreeNode.name = document.document_filename;
|
|
18798
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
18799
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
18800
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
18801
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
18802
|
+
documentsToReturn.push(documentTreeNode);
|
|
18803
|
+
});
|
|
18804
|
+
return documentsToReturn;
|
|
18805
|
+
};
|
|
18806
|
+
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
18807
|
+
var documents = [];
|
|
18808
|
+
uncategorisedDocuments.forEach(function (document) {
|
|
18809
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
18810
|
+
documentTreeNode.name = document.document_filename;
|
|
18811
|
+
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
18812
|
+
documentTreeNode.document_filename = document.document_filename;
|
|
18813
|
+
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
18814
|
+
documentTreeNode.attribute_path = document.attribute_path;
|
|
18815
|
+
documents.push(documentTreeNode);
|
|
18816
|
+
});
|
|
18817
|
+
var uncategorisedNode = new DocumentTreeNode();
|
|
18818
|
+
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
18819
|
+
uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
|
|
18820
|
+
uncategorisedNode.children = documents;
|
|
18821
|
+
return uncategorisedNode;
|
|
18822
|
+
};
|
|
18823
|
+
CaseFileViewFolderComponent.prototype.filter = function (searchTerm) {
|
|
18824
|
+
// Make a copy of the data so we do not mutate the original
|
|
18825
|
+
function copy(node) {
|
|
18826
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
18827
|
+
return Object.assign(documentTreeNode, node);
|
|
18828
|
+
}
|
|
18829
|
+
var filteredData = this.documentTreeData;
|
|
18830
|
+
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
18831
|
+
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
18832
|
+
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
18833
|
+
return true;
|
|
18834
|
+
}
|
|
18835
|
+
// Call recursively if node has children
|
|
18836
|
+
if (node.children) {
|
|
18837
|
+
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
18838
|
+
}
|
|
18839
|
+
});
|
|
18840
|
+
}
|
|
18841
|
+
return rxjs.of(filteredData);
|
|
18842
|
+
};
|
|
18843
|
+
CaseFileViewFolderComponent.prototype.triggerDocumentAction = function (actionType, documentTreeNode) {
|
|
18844
|
+
var _a;
|
|
18845
|
+
switch (actionType) {
|
|
18846
|
+
case ('changeFolder'):
|
|
18847
|
+
this.openMoveDialog(documentTreeNode);
|
|
18848
|
+
break;
|
|
18849
|
+
case ('openInANewTab'):
|
|
18850
|
+
this.windowService.setLocalStorage(MEDIA_VIEWER_LOCALSTORAGE_KEY, this.documentManagementService.getMediaViewerInfo({
|
|
18851
|
+
document_binary_url: documentTreeNode.document_binary_url,
|
|
18852
|
+
document_filename: documentTreeNode.document_filename
|
|
18853
|
+
}));
|
|
18854
|
+
this.windowService.openOnNewTab((_a = this.router.createUrlTree(['/media-viewer'])) === null || _a === void 0 ? void 0 : _a.toString());
|
|
18855
|
+
break;
|
|
18856
|
+
case ('download'):
|
|
18857
|
+
// Create a URL from the document_binary_url property (absolute URL) and use the path portion (relative URL).
|
|
18858
|
+
// This is necessary because the Manage Cases application will automatically apply a proxy to the request, with
|
|
18859
|
+
// the correct remote endpoint
|
|
18860
|
+
this.downloadFile(new URL(documentTreeNode.document_binary_url).pathname, documentTreeNode.document_filename);
|
|
18861
|
+
break;
|
|
18862
|
+
case ('print'):
|
|
18863
|
+
this.printDocument(new URL(documentTreeNode.document_binary_url).pathname);
|
|
18864
|
+
break;
|
|
18865
|
+
default:
|
|
18866
|
+
return;
|
|
18867
|
+
}
|
|
18868
|
+
};
|
|
18869
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
|
|
18870
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
18871
|
+
item.sortChildrenAscending();
|
|
18872
|
+
return item;
|
|
18873
|
+
});
|
|
18874
|
+
this.updateNodeData(sortedData);
|
|
18875
|
+
};
|
|
18876
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
|
|
18877
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
18878
|
+
item.sortChildrenDescending();
|
|
18879
|
+
return item;
|
|
18880
|
+
});
|
|
18881
|
+
this.updateNodeData(sortedData);
|
|
18882
|
+
};
|
|
18883
|
+
CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
|
|
18884
|
+
var _this = this;
|
|
18885
|
+
var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
|
|
18886
|
+
return item.name;
|
|
18887
|
+
});
|
|
18888
|
+
this.nestedTreeControl.collapseAll();
|
|
18889
|
+
this.nestedDataSource = data.map(function (item) {
|
|
18890
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
18891
|
+
newDocumentTreeNode.name = item.name;
|
|
18892
|
+
newDocumentTreeNode.type = item.type;
|
|
18893
|
+
newDocumentTreeNode.children = item.children;
|
|
18894
|
+
return newDocumentTreeNode;
|
|
18895
|
+
});
|
|
18896
|
+
var flattenedArray = this.nestedDataSource.map(function (item) {
|
|
18897
|
+
return item.flattenedAll;
|
|
18898
|
+
}).flat();
|
|
18899
|
+
var newObjects = flattenedArray.filter(function (item) {
|
|
18900
|
+
return prevSelected.includes(item.name);
|
|
18901
|
+
});
|
|
18902
|
+
newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
|
|
18903
|
+
};
|
|
18904
|
+
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
18905
|
+
var _a, _b;
|
|
18906
|
+
(_a = this.categoriesAndDocumentsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
18907
|
+
(_b = this.documentFilterSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
18908
|
+
};
|
|
18909
|
+
CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
|
|
18910
|
+
var _this = this;
|
|
18911
|
+
var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
|
|
18912
|
+
width: '570px',
|
|
18913
|
+
data: { categories: this.categories, document: node }
|
|
18914
|
+
});
|
|
18915
|
+
dialogRef.afterClosed().subscribe(function (newCatId) {
|
|
18916
|
+
if (newCatId) {
|
|
18917
|
+
_this.moveDocument.emit({ newCategory: newCatId, document: node });
|
|
18918
|
+
}
|
|
18919
|
+
});
|
|
18920
|
+
};
|
|
18921
|
+
CaseFileViewFolderComponent.prototype.printDocument = function (url) {
|
|
18922
|
+
var printWindow = window.open(url);
|
|
18923
|
+
printWindow.print();
|
|
18924
|
+
};
|
|
18925
|
+
CaseFileViewFolderComponent.prototype.downloadFile = function (url, downloadFileName) {
|
|
18926
|
+
var a = document.createElement('a');
|
|
18927
|
+
document.body.appendChild(a);
|
|
18928
|
+
a.setAttribute('style', 'display: none');
|
|
18929
|
+
a.href = url;
|
|
18930
|
+
a.download = downloadFileName;
|
|
18931
|
+
a.click();
|
|
18932
|
+
a.remove();
|
|
18933
|
+
};
|
|
18934
|
+
return CaseFileViewFolderComponent;
|
|
18935
|
+
}());
|
|
18936
|
+
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
18937
|
+
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
18938
|
+
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
|
|
18939
|
+
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
18940
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
18941
|
+
if (rf & 1) {
|
|
18942
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18943
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
18944
|
+
i0__namespace.ɵɵelement(2, "input", 2);
|
|
18945
|
+
i0__namespace.ɵɵelementEnd();
|
|
18946
|
+
i0__namespace.ɵɵelementEnd();
|
|
18947
|
+
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
18948
|
+
i0__namespace.ɵɵelementStart(4, "div", 4);
|
|
18949
|
+
i0__namespace.ɵɵtext(5);
|
|
18950
|
+
i0__namespace.ɵɵelementEnd();
|
|
18951
|
+
i0__namespace.ɵɵelementStart(6, "div");
|
|
18952
|
+
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
18953
|
+
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener() { return ctx.sortDataSourceDescAlphabetically(); });
|
|
18954
|
+
i0__namespace.ɵɵelementEnd();
|
|
18955
|
+
i0__namespace.ɵɵelementEnd();
|
|
18956
|
+
i0__namespace.ɵɵelementEnd();
|
|
18957
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 6, 4, "div", 6);
|
|
18958
|
+
}
|
|
18959
|
+
if (rf & 2) {
|
|
18960
|
+
i0__namespace.ɵɵadvance(1);
|
|
18961
|
+
i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
18962
|
+
i0__namespace.ɵɵadvance(4);
|
|
18963
|
+
i0__namespace.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
18964
|
+
i0__namespace.ɵɵadvance(3);
|
|
18965
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
18966
|
+
}
|
|
18967
|
+
}, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
|
|
18968
|
+
(function () {
|
|
18969
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
18970
|
+
type: i0.Component,
|
|
18971
|
+
args: [{
|
|
18972
|
+
selector: 'ccd-case-file-view-folder',
|
|
18973
|
+
templateUrl: './case-file-view-folder.component.html',
|
|
18974
|
+
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
18975
|
+
}]
|
|
18976
|
+
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
18977
|
+
type: i0.Input
|
|
18978
|
+
}], allowMoving: [{
|
|
18979
|
+
type: i0.Input
|
|
18980
|
+
}], clickedDocument: [{
|
|
18981
|
+
type: i0.Output
|
|
18982
|
+
}], moveDocument: [{
|
|
18983
|
+
type: i0.Output
|
|
18984
|
+
}] });
|
|
17803
18985
|
})();
|
|
17804
18986
|
|
|
17805
18987
|
function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) {
|
|
@@ -19987,7 +21169,7 @@
|
|
|
19987
21169
|
i0__namespace.ɵɵadvance(1);
|
|
19988
21170
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
|
|
19989
21171
|
i0__namespace.ɵɵadvance(1);
|
|
19990
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.
|
|
21172
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
|
|
19991
21173
|
i0__namespace.ɵɵadvance(3);
|
|
19992
21174
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
|
|
19993
21175
|
}
|
|
@@ -20098,10 +21280,14 @@
|
|
|
20098
21280
|
this.linkedCasesStateEmitter = new i0.EventEmitter();
|
|
20099
21281
|
this.errorMessages = [];
|
|
20100
21282
|
this.selectedCases = [];
|
|
21283
|
+
this.linkCaseReasons = [];
|
|
20101
21284
|
this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
|
|
20102
21285
|
}
|
|
20103
21286
|
LinkCasesComponent.prototype.ngOnInit = function () {
|
|
20104
21287
|
this.initForm();
|
|
21288
|
+
this.caseId = this.linkedCasesService.caseId;
|
|
21289
|
+
this.caseName = this.linkedCasesService.caseName;
|
|
21290
|
+
this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
|
|
20105
21291
|
if (this.linkedCasesService.editMode) {
|
|
20106
21292
|
// this may have includes the currently added one but yet to be submitted.
|
|
20107
21293
|
this.selectedCases = this.linkedCasesService.linkedCases;
|
|
@@ -20119,7 +21305,7 @@
|
|
|
20119
21305
|
Object.defineProperty(LinkCasesComponent.prototype, "getReasonTypeFormArray", {
|
|
20120
21306
|
get: function () {
|
|
20121
21307
|
var _this = this;
|
|
20122
|
-
return this.fb.array(this.
|
|
21308
|
+
return this.fb.array(this.linkCaseReasons.map(function (val) { return _this.fb.group({
|
|
20123
21309
|
key: [val.key],
|
|
20124
21310
|
value_en: [val.value_en],
|
|
20125
21311
|
value_cy: [val.value_cy],
|
|
@@ -20369,7 +21555,7 @@
|
|
|
20369
21555
|
}
|
|
20370
21556
|
if (rf & 2) {
|
|
20371
21557
|
i0__namespace.ɵɵadvance(4);
|
|
20372
|
-
i0__namespace.ɵɵtextInterpolate2("Link cases to ", ctx.
|
|
21558
|
+
i0__namespace.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0__namespace.ɵɵpipeBind1(5, 7, ctx.caseId), "");
|
|
20373
21559
|
i0__namespace.ɵɵadvance(4);
|
|
20374
21560
|
i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
|
|
20375
21561
|
i0__namespace.ɵɵadvance(4);
|
|
@@ -23429,7 +24615,7 @@
|
|
|
23429
24615
|
i0__namespace.ɵɵadvance(1);
|
|
23430
24616
|
i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
|
|
23431
24617
|
}
|
|
23432
|
-
}, directives: [i1__namespace$
|
|
24618
|
+
}, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
23433
24619
|
(function () {
|
|
23434
24620
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
|
|
23435
24621
|
type: i0.Component,
|
|
@@ -23825,6 +25011,14 @@
|
|
|
23825
25011
|
WriteFixedRadioListFieldComponent,
|
|
23826
25012
|
WriteCaseLinkFieldComponent,
|
|
23827
25013
|
WriteCollectionFieldComponent,
|
|
25014
|
+
// ComponentLauncher web components
|
|
25015
|
+
CaseFileViewFieldComponent,
|
|
25016
|
+
CaseFileViewFieldReadComponent,
|
|
25017
|
+
CaseFileViewFolderComponent,
|
|
25018
|
+
CaseFileViewFolderSortComponent,
|
|
25019
|
+
CaseFileViewOverlayMenuComponent,
|
|
25020
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
25021
|
+
CaseFileViewFolderSelectorComponent,
|
|
23828
25022
|
LinkedCasesToTableComponent,
|
|
23829
25023
|
LinkedCasesFromTableComponent,
|
|
23830
25024
|
BeforeYouStartComponent,
|
|
@@ -23869,7 +25063,7 @@
|
|
|
23869
25063
|
FormModule,
|
|
23870
25064
|
TabsModule,
|
|
23871
25065
|
LabelSubstitutorModule,
|
|
23872
|
-
i1$
|
|
25066
|
+
i1$5.NgxMdModule,
|
|
23873
25067
|
i4.NgxMatDatetimePickerModule,
|
|
23874
25068
|
i4.NgxMatTimepickerModule,
|
|
23875
25069
|
i4.NgxMatNativeDateModule,
|
|
@@ -23877,8 +25071,13 @@
|
|
|
23877
25071
|
i3$1.MatInputModule,
|
|
23878
25072
|
i5$1.MatDatepickerModule,
|
|
23879
25073
|
i5.MatAutocompleteModule,
|
|
25074
|
+
i7.CdkTreeModule,
|
|
25075
|
+
i1$4.OverlayModule,
|
|
23880
25076
|
i3.PaymentLibModule,
|
|
23881
|
-
i2$1.ScrollToModule.forRoot()
|
|
25077
|
+
i2$1.ScrollToModule.forRoot(),
|
|
25078
|
+
i1$3.MatDialogModule,
|
|
25079
|
+
i12.MediaViewerModule,
|
|
25080
|
+
LoadingModule
|
|
23882
25081
|
], i4.NgxMatDatetimePickerModule,
|
|
23883
25082
|
i4.NgxMatNativeDateModule,
|
|
23884
25083
|
i4.NgxMatTimepickerModule,
|
|
@@ -23970,6 +25169,14 @@
|
|
|
23970
25169
|
WriteFixedRadioListFieldComponent,
|
|
23971
25170
|
WriteCaseLinkFieldComponent,
|
|
23972
25171
|
WriteCollectionFieldComponent,
|
|
25172
|
+
// ComponentLauncher web components
|
|
25173
|
+
CaseFileViewFieldComponent,
|
|
25174
|
+
CaseFileViewFieldReadComponent,
|
|
25175
|
+
CaseFileViewFolderComponent,
|
|
25176
|
+
CaseFileViewFolderSortComponent,
|
|
25177
|
+
CaseFileViewOverlayMenuComponent,
|
|
25178
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
25179
|
+
CaseFileViewFolderSelectorComponent,
|
|
23973
25180
|
LinkedCasesToTableComponent,
|
|
23974
25181
|
LinkedCasesFromTableComponent,
|
|
23975
25182
|
BeforeYouStartComponent,
|
|
@@ -23990,7 +25197,7 @@
|
|
|
23990
25197
|
FormModule,
|
|
23991
25198
|
TabsModule,
|
|
23992
25199
|
LabelSubstitutorModule,
|
|
23993
|
-
i1$
|
|
25200
|
+
i1$5.NgxMdModule,
|
|
23994
25201
|
i4.NgxMatDatetimePickerModule,
|
|
23995
25202
|
i4.NgxMatTimepickerModule,
|
|
23996
25203
|
i4.NgxMatNativeDateModule,
|
|
@@ -23998,7 +25205,11 @@
|
|
|
23998
25205
|
i3$1.MatInputModule,
|
|
23999
25206
|
i5$1.MatDatepickerModule,
|
|
24000
25207
|
i5.MatAutocompleteModule,
|
|
24001
|
-
|
|
25208
|
+
i7.CdkTreeModule,
|
|
25209
|
+
i1$4.OverlayModule,
|
|
25210
|
+
i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
|
|
25211
|
+
i12.MediaViewerModule,
|
|
25212
|
+
LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
24002
25213
|
i4.NgxMatNativeDateModule,
|
|
24003
25214
|
i4.NgxMatTimepickerModule,
|
|
24004
25215
|
TabsModule,
|
|
@@ -24075,6 +25286,14 @@
|
|
|
24075
25286
|
WriteFixedRadioListFieldComponent,
|
|
24076
25287
|
WriteCaseLinkFieldComponent,
|
|
24077
25288
|
WriteCollectionFieldComponent,
|
|
25289
|
+
// ComponentLauncher web components
|
|
25290
|
+
CaseFileViewFieldComponent,
|
|
25291
|
+
CaseFileViewFieldReadComponent,
|
|
25292
|
+
CaseFileViewFolderComponent,
|
|
25293
|
+
CaseFileViewFolderSortComponent,
|
|
25294
|
+
CaseFileViewOverlayMenuComponent,
|
|
25295
|
+
CaseFileViewFolderDocumentActionsComponent,
|
|
25296
|
+
CaseFileViewFolderSelectorComponent,
|
|
24078
25297
|
LinkedCasesToTableComponent,
|
|
24079
25298
|
LinkedCasesFromTableComponent,
|
|
24080
25299
|
BeforeYouStartComponent,
|
|
@@ -24102,7 +25321,7 @@
|
|
|
24102
25321
|
FormModule,
|
|
24103
25322
|
TabsModule,
|
|
24104
25323
|
LabelSubstitutorModule,
|
|
24105
|
-
i1$
|
|
25324
|
+
i1$5.NgxMdModule,
|
|
24106
25325
|
i4.NgxMatDatetimePickerModule,
|
|
24107
25326
|
i4.NgxMatTimepickerModule,
|
|
24108
25327
|
i4.NgxMatNativeDateModule,
|
|
@@ -24110,8 +25329,13 @@
|
|
|
24110
25329
|
i3$1.MatInputModule,
|
|
24111
25330
|
i5$1.MatDatepickerModule,
|
|
24112
25331
|
i5.MatAutocompleteModule,
|
|
25332
|
+
i7.CdkTreeModule,
|
|
25333
|
+
i1$4.OverlayModule,
|
|
24113
25334
|
i3.PaymentLibModule,
|
|
24114
|
-
i2$1.ScrollToModule.forRoot()
|
|
25335
|
+
i2$1.ScrollToModule.forRoot(),
|
|
25336
|
+
i1$3.MatDialogModule,
|
|
25337
|
+
i12.MediaViewerModule,
|
|
25338
|
+
LoadingModule
|
|
24115
25339
|
],
|
|
24116
25340
|
declarations: __spread([
|
|
24117
25341
|
FixedListPipe,
|
|
@@ -24150,7 +25374,8 @@
|
|
|
24150
25374
|
CommonDataService,
|
|
24151
25375
|
JurisdictionService$1,
|
|
24152
25376
|
{ provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
|
|
24153
|
-
]
|
|
25377
|
+
],
|
|
25378
|
+
entryComponents: [CaseFileViewFolderSelectorComponent]
|
|
24154
25379
|
}]
|
|
24155
25380
|
}], null, null);
|
|
24156
25381
|
})();
|
|
@@ -24189,6 +25414,10 @@
|
|
|
24189
25414
|
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
24190
25415
|
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, WriteLinkedCasesComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
24191
25416
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
25417
|
+
i0__namespace.ɵɵsetComponentScope(
|
|
25418
|
+
// ComponentLauncher web components
|
|
25419
|
+
CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
25420
|
+
i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
|
|
24192
25421
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
24193
25422
|
i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
24194
25423
|
i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
|
|
@@ -25224,7 +26453,7 @@
|
|
|
25224
26453
|
i0__namespace.ɵɵadvance(3);
|
|
25225
26454
|
i0__namespace.ɵɵtextInterpolate(ctx.loadingText);
|
|
25226
26455
|
}
|
|
25227
|
-
}, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px
|
|
26456
|
+
}, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
|
|
25228
26457
|
(function () {
|
|
25229
26458
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
25230
26459
|
type: i0.Component,
|
|
@@ -26119,7 +27348,7 @@
|
|
|
26119
27348
|
i0__namespace.ɵɵadvance(3);
|
|
26120
27349
|
i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
|
|
26121
27350
|
}
|
|
26122
|
-
}, directives: [i1__namespace$
|
|
27351
|
+
}, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
26123
27352
|
(function () {
|
|
26124
27353
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
|
|
26125
27354
|
type: i0.Component,
|
|
@@ -26526,7 +27755,7 @@
|
|
|
26526
27755
|
i0__namespace.ɵɵadvance(2);
|
|
26527
27756
|
i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
26528
27757
|
}
|
|
26529
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$
|
|
27758
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
|
|
26530
27759
|
(function () {
|
|
26531
27760
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
|
|
26532
27761
|
type: i0.Component,
|
|
@@ -26586,12 +27815,12 @@
|
|
|
26586
27815
|
PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
|
|
26587
27816
|
PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
26588
27817
|
i1.CommonModule,
|
|
26589
|
-
i1$
|
|
27818
|
+
i1$6.NgxPaginationModule
|
|
26590
27819
|
]] });
|
|
26591
27820
|
(function () {
|
|
26592
27821
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
|
|
26593
|
-
i1$
|
|
26594
|
-
i1$
|
|
27822
|
+
i1$6.NgxPaginationModule], exports: [PaginationComponent,
|
|
27823
|
+
i1$6.PaginatePipe] });
|
|
26595
27824
|
})();
|
|
26596
27825
|
(function () {
|
|
26597
27826
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
|
|
@@ -26599,14 +27828,14 @@
|
|
|
26599
27828
|
args: [{
|
|
26600
27829
|
imports: [
|
|
26601
27830
|
i1.CommonModule,
|
|
26602
|
-
i1$
|
|
27831
|
+
i1$6.NgxPaginationModule
|
|
26603
27832
|
],
|
|
26604
27833
|
declarations: [
|
|
26605
27834
|
PaginationComponent
|
|
26606
27835
|
],
|
|
26607
27836
|
exports: [
|
|
26608
27837
|
PaginationComponent,
|
|
26609
|
-
i1$
|
|
27838
|
+
i1$6.PaginatePipe
|
|
26610
27839
|
],
|
|
26611
27840
|
}]
|
|
26612
27841
|
}], null, null);
|
|
@@ -26625,14 +27854,14 @@
|
|
|
26625
27854
|
i1.CommonModule,
|
|
26626
27855
|
i2.FormsModule,
|
|
26627
27856
|
i1$1.RouterModule,
|
|
26628
|
-
i1$
|
|
27857
|
+
i1$6.NgxPaginationModule,
|
|
26629
27858
|
PaginationModule
|
|
26630
27859
|
]] });
|
|
26631
27860
|
(function () {
|
|
26632
27861
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
|
|
26633
27862
|
i2.FormsModule,
|
|
26634
27863
|
i1$1.RouterModule,
|
|
26635
|
-
i1$
|
|
27864
|
+
i1$6.NgxPaginationModule,
|
|
26636
27865
|
PaginationModule], exports: [CaseListComponent] });
|
|
26637
27866
|
})();
|
|
26638
27867
|
(function () {
|
|
@@ -26643,7 +27872,7 @@
|
|
|
26643
27872
|
i1.CommonModule,
|
|
26644
27873
|
i2.FormsModule,
|
|
26645
27874
|
i1$1.RouterModule,
|
|
26646
|
-
i1$
|
|
27875
|
+
i1$6.NgxPaginationModule,
|
|
26647
27876
|
PaginationModule
|
|
26648
27877
|
],
|
|
26649
27878
|
declarations: [CaseListComponent],
|
|
@@ -28713,8 +29942,8 @@
|
|
|
28713
29942
|
}
|
|
28714
29943
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
|
|
28715
29944
|
if (rf & 1) {
|
|
28716
|
-
i0__namespace.ɵɵelementStart(0, "th",
|
|
28717
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
29945
|
+
i0__namespace.ɵɵelementStart(0, "th", 37);
|
|
29946
|
+
i0__namespace.ɵɵelementStart(1, "div", 38);
|
|
28718
29947
|
i0__namespace.ɵɵtext(2);
|
|
28719
29948
|
i0__namespace.ɵɵelementEnd();
|
|
28720
29949
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28729,9 +29958,9 @@
|
|
|
28729
29958
|
if (rf & 1) {
|
|
28730
29959
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
28731
29960
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 33);
|
|
28732
|
-
i0__namespace.ɵɵelementStart(2, "
|
|
28733
|
-
i0__namespace.ɵɵelementStart(3, "span",
|
|
28734
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read",
|
|
29961
|
+
i0__namespace.ɵɵelementStart(2, "th", 34);
|
|
29962
|
+
i0__namespace.ɵɵelementStart(3, "span", 35);
|
|
29963
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 36);
|
|
28735
29964
|
i0__namespace.ɵɵelementEnd();
|
|
28736
29965
|
i0__namespace.ɵɵelementEnd();
|
|
28737
29966
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28741,16 +29970,18 @@
|
|
|
28741
29970
|
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
28742
29971
|
i0__namespace.ɵɵadvance(1);
|
|
28743
29972
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
|
|
28744
|
-
i0__namespace.ɵɵadvance(
|
|
29973
|
+
i0__namespace.ɵɵadvance(1);
|
|
29974
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
29975
|
+
i0__namespace.ɵɵadvance(2);
|
|
28745
29976
|
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
|
|
28746
29977
|
}
|
|
28747
29978
|
}
|
|
28748
29979
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
|
|
28749
29980
|
if (rf & 1) {
|
|
28750
|
-
i0__namespace.ɵɵelementStart(0, "tr",
|
|
28751
|
-
i0__namespace.ɵɵelementStart(1, "th",
|
|
28752
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
28753
|
-
i0__namespace.ɵɵelement(3, "ccd-field-read",
|
|
29981
|
+
i0__namespace.ɵɵelementStart(0, "tr", 39);
|
|
29982
|
+
i0__namespace.ɵɵelementStart(1, "th", 34);
|
|
29983
|
+
i0__namespace.ɵɵelementStart(2, "span", 35);
|
|
29984
|
+
i0__namespace.ɵɵelement(3, "ccd-field-read", 36);
|
|
28754
29985
|
i0__namespace.ɵɵelementEnd();
|
|
28755
29986
|
i0__namespace.ɵɵelementEnd();
|
|
28756
29987
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -28758,7 +29989,9 @@
|
|
|
28758
29989
|
if (rf & 2) {
|
|
28759
29990
|
var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
|
|
28760
29991
|
var ctx_r26 = i0__namespace.ɵɵnextContext(4);
|
|
28761
|
-
i0__namespace.ɵɵadvance(
|
|
29992
|
+
i0__namespace.ɵɵadvance(1);
|
|
29993
|
+
i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
|
|
29994
|
+
i0__namespace.ɵɵadvance(2);
|
|
28762
29995
|
i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
|
|
28763
29996
|
}
|
|
28764
29997
|
}
|
|
@@ -28768,8 +30001,8 @@
|
|
|
28768
30001
|
i0__namespace.ɵɵelementStart(1, "div", 29);
|
|
28769
30002
|
i0__namespace.ɵɵelementContainerStart(2, 30);
|
|
28770
30003
|
i0__namespace.ɵɵpipe(3, "ccdIsCompound");
|
|
28771
|
-
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5,
|
|
28772
|
-
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4,
|
|
30004
|
+
i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 31);
|
|
30005
|
+
i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 32);
|
|
28773
30006
|
i0__namespace.ɵɵelementContainerEnd();
|
|
28774
30007
|
i0__namespace.ɵɵelementEnd();
|
|
28775
30008
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -29125,12 +30358,14 @@
|
|
|
29125
30358
|
return false;
|
|
29126
30359
|
};
|
|
29127
30360
|
/**
|
|
29128
|
-
* Indicates that a CaseField is to be displayed without a label, as is expected for
|
|
30361
|
+
* Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
|
|
30362
|
+
* fields.
|
|
29129
30363
|
* @param caseField The `CaseField` instance to check
|
|
29130
30364
|
* @returns `true` if it should not have a label; `false` otherwise
|
|
29131
30365
|
*/
|
|
29132
30366
|
CaseFullAccessViewComponent.prototype.isFieldToHaveNoLabel = function (caseField) {
|
|
29133
|
-
return
|
|
30367
|
+
return caseField.field_type.type === 'ComponentLauncher'
|
|
30368
|
+
&& caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
|
|
29134
30369
|
};
|
|
29135
30370
|
CaseFullAccessViewComponent.prototype.init = function () {
|
|
29136
30371
|
// Clone and sort tabs array
|
|
@@ -29191,7 +30426,7 @@
|
|
|
29191
30426
|
var _t = void 0;
|
|
29192
30427
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
29193
30428
|
}
|
|
29194
|
-
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]
|
|
30429
|
+
}, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
|
|
29195
30430
|
if (rf & 1) {
|
|
29196
30431
|
i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
|
|
29197
30432
|
i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
|
|
@@ -32697,12 +33932,12 @@
|
|
|
32697
33932
|
i0__namespace.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
|
|
32698
33933
|
}
|
|
32699
33934
|
}
|
|
32700
|
-
function
|
|
33935
|
+
function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) {
|
|
32701
33936
|
if (rf & 1) {
|
|
32702
33937
|
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
32703
33938
|
i0__namespace.ɵɵelementStart(0, "div", 27);
|
|
32704
33939
|
i0__namespace.ɵɵelementStart(1, "a", 28);
|
|
32705
|
-
i0__namespace.ɵɵlistener("click", function
|
|
33940
|
+
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); });
|
|
32706
33941
|
i0__namespace.ɵɵelementEnd();
|
|
32707
33942
|
i0__namespace.ɵɵelementEnd();
|
|
32708
33943
|
}
|
|
@@ -32716,19 +33951,26 @@
|
|
|
32716
33951
|
function SearchResultComponent_table_0_th_10_Template(rf, ctx) {
|
|
32717
33952
|
if (rf & 1) {
|
|
32718
33953
|
var _r22_1 = i0__namespace.ɵɵgetCurrentView();
|
|
32719
|
-
i0__namespace.ɵɵelementStart(0, "th"
|
|
32720
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
32721
|
-
i0__namespace.ɵɵ
|
|
32722
|
-
i0__namespace.ɵɵ
|
|
33954
|
+
i0__namespace.ɵɵelementStart(0, "th");
|
|
33955
|
+
i0__namespace.ɵɵelementStart(1, "table", 24);
|
|
33956
|
+
i0__namespace.ɵɵelementStart(2, "tr");
|
|
33957
|
+
i0__namespace.ɵɵelementStart(3, "th");
|
|
33958
|
+
i0__namespace.ɵɵelementStart(4, "div", 25);
|
|
33959
|
+
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); });
|
|
33960
|
+
i0__namespace.ɵɵtext(5);
|
|
33961
|
+
i0__namespace.ɵɵelementEnd();
|
|
33962
|
+
i0__namespace.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
|
|
33963
|
+
i0__namespace.ɵɵelementEnd();
|
|
33964
|
+
i0__namespace.ɵɵelementEnd();
|
|
32723
33965
|
i0__namespace.ɵɵelementEnd();
|
|
32724
|
-
i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_th_10_div_3_Template, 2, 1, "div", 26);
|
|
32725
33966
|
i0__namespace.ɵɵelementEnd();
|
|
32726
33967
|
}
|
|
32727
33968
|
if (rf & 2) {
|
|
32728
33969
|
var col_r15 = ctx.$implicit;
|
|
32729
33970
|
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
32730
|
-
i0__namespace.ɵɵ
|
|
32731
|
-
i0__namespace.ɵɵ
|
|
33971
|
+
i0__namespace.ɵɵadvance(1);
|
|
33972
|
+
i0__namespace.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
|
|
33973
|
+
i0__namespace.ɵɵadvance(4);
|
|
32732
33974
|
i0__namespace.ɵɵtextInterpolate(col_r15.label);
|
|
32733
33975
|
i0__namespace.ɵɵadvance(1);
|
|
32734
33976
|
i0__namespace.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
|
|
@@ -32744,10 +33986,10 @@
|
|
|
32744
33986
|
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
32745
33987
|
i0__namespace.ɵɵelementStart(0, "td", 20);
|
|
32746
33988
|
i0__namespace.ɵɵelementStart(1, "div", 21);
|
|
32747
|
-
i0__namespace.ɵɵelementStart(2, "input",
|
|
33989
|
+
i0__namespace.ɵɵelementStart(2, "input", 31);
|
|
32748
33990
|
i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var result_r24 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r28 = i0__namespace.ɵɵnextContext(3); return ctx_r28.changeSelection(result_r24); });
|
|
32749
33991
|
i0__namespace.ɵɵelementEnd();
|
|
32750
|
-
i0__namespace.ɵɵelement(3, "label",
|
|
33992
|
+
i0__namespace.ɵɵelement(3, "label", 32);
|
|
32751
33993
|
i0__namespace.ɵɵelementEnd();
|
|
32752
33994
|
i0__namespace.ɵɵelementEnd();
|
|
32753
33995
|
}
|
|
@@ -32765,7 +34007,7 @@
|
|
|
32765
34007
|
var _c0 = function () { return ["value"]; };
|
|
32766
34008
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
|
|
32767
34009
|
if (rf & 1) {
|
|
32768
|
-
i0__namespace.ɵɵelement(0, "ccd-field-read",
|
|
34010
|
+
i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
|
|
32769
34011
|
}
|
|
32770
34012
|
if (rf & 2) {
|
|
32771
34013
|
var col_r32 = i0__namespace.ɵɵnextContext(3).$implicit;
|
|
@@ -32786,9 +34028,9 @@
|
|
|
32786
34028
|
}
|
|
32787
34029
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
|
|
32788
34030
|
if (rf & 1) {
|
|
32789
|
-
i0__namespace.ɵɵelementContainerStart(0,
|
|
32790
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
32791
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
34031
|
+
i0__namespace.ɵɵelementContainerStart(0, 38);
|
|
34032
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
|
|
34033
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
|
|
32792
34034
|
i0__namespace.ɵɵelementContainerEnd();
|
|
32793
34035
|
}
|
|
32794
34036
|
if (rf & 2) {
|
|
@@ -32802,9 +34044,9 @@
|
|
|
32802
34044
|
}
|
|
32803
34045
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) {
|
|
32804
34046
|
if (rf & 1) {
|
|
32805
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
34047
|
+
i0__namespace.ɵɵelementStart(0, "a", 36);
|
|
32806
34048
|
i0__namespace.ɵɵpipe(1, "ccdCaseReference");
|
|
32807
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
34049
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
|
|
32808
34050
|
i0__namespace.ɵɵelementEnd();
|
|
32809
34051
|
}
|
|
32810
34052
|
if (rf & 2) {
|
|
@@ -32818,8 +34060,8 @@
|
|
|
32818
34060
|
}
|
|
32819
34061
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(rf, ctx) {
|
|
32820
34062
|
if (rf & 1) {
|
|
32821
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
32822
|
-
i0__namespace.ɵɵelement(1, "ccd-field-read",
|
|
34063
|
+
i0__namespace.ɵɵelementStart(0, "div", 38);
|
|
34064
|
+
i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
|
|
32823
34065
|
i0__namespace.ɵɵelementEnd();
|
|
32824
34066
|
}
|
|
32825
34067
|
if (rf & 2) {
|
|
@@ -32833,9 +34075,9 @@
|
|
|
32833
34075
|
}
|
|
32834
34076
|
function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ctx) {
|
|
32835
34077
|
if (rf & 1) {
|
|
32836
|
-
i0__namespace.ɵɵelementStart(0, "td",
|
|
32837
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
32838
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
34078
|
+
i0__namespace.ɵɵelementStart(0, "td", 33);
|
|
34079
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
34080
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
32839
34081
|
i0__namespace.ɵɵelementEnd();
|
|
32840
34082
|
}
|
|
32841
34083
|
if (rf & 2) {
|
|
@@ -32850,7 +34092,7 @@
|
|
|
32850
34092
|
if (rf & 1) {
|
|
32851
34093
|
i0__namespace.ɵɵelementStart(0, "td");
|
|
32852
34094
|
i0__namespace.ɵɵelementStart(1, "div");
|
|
32853
|
-
i0__namespace.ɵɵelement(2, "ccd-activity",
|
|
34095
|
+
i0__namespace.ɵɵelement(2, "ccd-activity", 42);
|
|
32854
34096
|
i0__namespace.ɵɵelementEnd();
|
|
32855
34097
|
i0__namespace.ɵɵelementEnd();
|
|
32856
34098
|
}
|
|
@@ -32867,7 +34109,7 @@
|
|
|
32867
34109
|
if (rf & 1) {
|
|
32868
34110
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
32869
34111
|
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template, 4, 5, "td", 8);
|
|
32870
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td",
|
|
34112
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
32871
34113
|
i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
32872
34114
|
i0__namespace.ɵɵelementEnd();
|
|
32873
34115
|
}
|
|
@@ -32885,7 +34127,7 @@
|
|
|
32885
34127
|
function SearchResultComponent_table_0_ng_container_13_Template(rf, ctx) {
|
|
32886
34128
|
if (rf & 1) {
|
|
32887
34129
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
32888
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr",
|
|
34130
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr", 9);
|
|
32889
34131
|
i0__namespace.ɵɵpipe(2, "paginate");
|
|
32890
34132
|
i0__namespace.ɵɵelementContainerEnd();
|
|
32891
34133
|
}
|
|
@@ -32900,10 +34142,10 @@
|
|
|
32900
34142
|
var _r56_1 = i0__namespace.ɵɵgetCurrentView();
|
|
32901
34143
|
i0__namespace.ɵɵelementStart(0, "td", 20);
|
|
32902
34144
|
i0__namespace.ɵɵelementStart(1, "div", 21);
|
|
32903
|
-
i0__namespace.ɵɵelementStart(2, "input",
|
|
34145
|
+
i0__namespace.ɵɵelementStart(2, "input", 43);
|
|
32904
34146
|
i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r54 = i0__namespace.ɵɵnextContext(3); return ctx_r54.changeSelection(result_r50); })("keyup", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_keyup_2_listener($event) { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r57 = i0__namespace.ɵɵnextContext(3); return ctx_r57.onKeyUp($event, result_r50); });
|
|
32905
34147
|
i0__namespace.ɵɵelementEnd();
|
|
32906
|
-
i0__namespace.ɵɵelement(3, "label",
|
|
34148
|
+
i0__namespace.ɵɵelement(3, "label", 32);
|
|
32907
34149
|
i0__namespace.ɵɵelementEnd();
|
|
32908
34150
|
i0__namespace.ɵɵelementEnd();
|
|
32909
34151
|
}
|
|
@@ -32920,7 +34162,7 @@
|
|
|
32920
34162
|
}
|
|
32921
34163
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
|
|
32922
34164
|
if (rf & 1) {
|
|
32923
|
-
i0__namespace.ɵɵelement(0, "ccd-field-read",
|
|
34165
|
+
i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
|
|
32924
34166
|
}
|
|
32925
34167
|
if (rf & 2) {
|
|
32926
34168
|
var col_r60 = i0__namespace.ɵɵnextContext(3).$implicit;
|
|
@@ -32941,9 +34183,9 @@
|
|
|
32941
34183
|
}
|
|
32942
34184
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
|
|
32943
34185
|
if (rf & 1) {
|
|
32944
|
-
i0__namespace.ɵɵelementContainerStart(0,
|
|
32945
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
32946
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null,
|
|
34186
|
+
i0__namespace.ɵɵelementContainerStart(0, 38);
|
|
34187
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
|
|
34188
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
|
|
32947
34189
|
i0__namespace.ɵɵelementContainerEnd();
|
|
32948
34190
|
}
|
|
32949
34191
|
if (rf & 2) {
|
|
@@ -32957,9 +34199,9 @@
|
|
|
32957
34199
|
}
|
|
32958
34200
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) {
|
|
32959
34201
|
if (rf & 1) {
|
|
32960
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
34202
|
+
i0__namespace.ɵɵelementStart(0, "a", 36);
|
|
32961
34203
|
i0__namespace.ɵɵpipe(1, "ccdCaseReference");
|
|
32962
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
34204
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
|
|
32963
34205
|
i0__namespace.ɵɵelementEnd();
|
|
32964
34206
|
}
|
|
32965
34207
|
if (rf & 2) {
|
|
@@ -32973,8 +34215,8 @@
|
|
|
32973
34215
|
}
|
|
32974
34216
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) {
|
|
32975
34217
|
if (rf & 1) {
|
|
32976
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
32977
|
-
i0__namespace.ɵɵelement(1, "ccd-field-read",
|
|
34218
|
+
i0__namespace.ɵɵelementStart(0, "div", 38);
|
|
34219
|
+
i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
|
|
32978
34220
|
i0__namespace.ɵɵelementEnd();
|
|
32979
34221
|
}
|
|
32980
34222
|
if (rf & 2) {
|
|
@@ -32988,9 +34230,9 @@
|
|
|
32988
34230
|
}
|
|
32989
34231
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) {
|
|
32990
34232
|
if (rf & 1) {
|
|
32991
|
-
i0__namespace.ɵɵelementStart(0, "td",
|
|
32992
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a",
|
|
32993
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div",
|
|
34233
|
+
i0__namespace.ɵɵelementStart(0, "td", 33);
|
|
34234
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
|
|
34235
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
|
|
32994
34236
|
i0__namespace.ɵɵelementEnd();
|
|
32995
34237
|
}
|
|
32996
34238
|
if (rf & 2) {
|
|
@@ -33005,7 +34247,7 @@
|
|
|
33005
34247
|
if (rf & 1) {
|
|
33006
34248
|
i0__namespace.ɵɵelementStart(0, "td");
|
|
33007
34249
|
i0__namespace.ɵɵelementStart(1, "div");
|
|
33008
|
-
i0__namespace.ɵɵelement(2, "ccd-activity",
|
|
34250
|
+
i0__namespace.ɵɵelement(2, "ccd-activity", 42);
|
|
33009
34251
|
i0__namespace.ɵɵelementEnd();
|
|
33010
34252
|
i0__namespace.ɵɵelementEnd();
|
|
33011
34253
|
}
|
|
@@ -33022,7 +34264,7 @@
|
|
|
33022
34264
|
if (rf & 1) {
|
|
33023
34265
|
i0__namespace.ɵɵelementStart(0, "tr");
|
|
33024
34266
|
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
|
|
33025
|
-
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td",
|
|
34267
|
+
i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
|
|
33026
34268
|
i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
|
|
33027
34269
|
i0__namespace.ɵɵelementEnd();
|
|
33028
34270
|
}
|
|
@@ -33039,7 +34281,7 @@
|
|
|
33039
34281
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) {
|
|
33040
34282
|
if (rf & 1) {
|
|
33041
34283
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
33042
|
-
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
34284
|
+
i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
|
|
33043
34285
|
i0__namespace.ɵɵpipe(2, "paginate");
|
|
33044
34286
|
i0__namespace.ɵɵpipe(3, "ccdSortSearchResult");
|
|
33045
34287
|
i0__namespace.ɵɵelementContainerEnd();
|
|
@@ -33064,7 +34306,7 @@
|
|
|
33064
34306
|
i0__namespace.ɵɵelementStart(7, "thead");
|
|
33065
34307
|
i0__namespace.ɵɵelementStart(8, "tr", 7);
|
|
33066
34308
|
i0__namespace.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
|
|
33067
|
-
i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
34309
|
+
i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
|
|
33068
34310
|
i0__namespace.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
|
|
33069
34311
|
i0__namespace.ɵɵelementEnd();
|
|
33070
34312
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -33099,7 +34341,7 @@
|
|
|
33099
34341
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
|
|
33100
34342
|
if (rf & 1) {
|
|
33101
34343
|
var _r78_1 = i0__namespace.ɵɵgetCurrentView();
|
|
33102
|
-
i0__namespace.ɵɵelementStart(0, "ccd-pagination",
|
|
34344
|
+
i0__namespace.ɵɵelementStart(0, "ccd-pagination", 44);
|
|
33103
34345
|
i0__namespace.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r78_1); var ctx_r77 = i0__namespace.ɵɵnextContext(); return ctx_r77.goToPage($event); });
|
|
33104
34346
|
i0__namespace.ɵɵelementEnd();
|
|
33105
34347
|
}
|
|
@@ -33110,7 +34352,7 @@
|
|
|
33110
34352
|
}
|
|
33111
34353
|
function SearchResultComponent_div_2_Template(rf, ctx) {
|
|
33112
34354
|
if (rf & 1) {
|
|
33113
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
34355
|
+
i0__namespace.ɵɵelementStart(0, "div", 45);
|
|
33114
34356
|
i0__namespace.ɵɵtext(1, " No cases found. Try using different filters.\n");
|
|
33115
34357
|
i0__namespace.ɵɵelementEnd();
|
|
33116
34358
|
}
|
|
@@ -33472,7 +34714,7 @@
|
|
|
33472
34714
|
SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
|
|
33473
34715
|
SearchResultComponent.PARAM_CASE_STATE = 'case-state';
|
|
33474
34716
|
SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0__namespace.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(ActivityService), i0__namespace.ɵɵdirectiveInject(CaseReferencePipe), i0__namespace.ɵɵdirectiveInject(exports.PlaceholderService), i0__namespace.ɵɵdirectiveInject(BrowserService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
33475
|
-
SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [
|
|
34717
|
+
SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) {
|
|
33476
34718
|
if (rf & 1) {
|
|
33477
34719
|
i0__namespace.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
|
|
33478
34720
|
i0__namespace.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
|
|
@@ -33543,7 +34785,7 @@
|
|
|
33543
34785
|
BrowserService
|
|
33544
34786
|
], imports: [[
|
|
33545
34787
|
i1.CommonModule,
|
|
33546
|
-
i1$
|
|
34788
|
+
i1$6.NgxPaginationModule,
|
|
33547
34789
|
i1$1.RouterModule,
|
|
33548
34790
|
i2.FormsModule,
|
|
33549
34791
|
i2.ReactiveFormsModule,
|
|
@@ -33555,7 +34797,7 @@
|
|
|
33555
34797
|
]] });
|
|
33556
34798
|
(function () {
|
|
33557
34799
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
|
|
33558
|
-
i1$
|
|
34800
|
+
i1$6.NgxPaginationModule,
|
|
33559
34801
|
i1$1.RouterModule,
|
|
33560
34802
|
i2.FormsModule,
|
|
33561
34803
|
i2.ReactiveFormsModule,
|
|
@@ -33571,7 +34813,7 @@
|
|
|
33571
34813
|
args: [{
|
|
33572
34814
|
imports: [
|
|
33573
34815
|
i1.CommonModule,
|
|
33574
|
-
i1$
|
|
34816
|
+
i1$6.NgxPaginationModule,
|
|
33575
34817
|
i1$1.RouterModule,
|
|
33576
34818
|
i2.FormsModule,
|
|
33577
34819
|
i2.ReactiveFormsModule,
|
|
@@ -33594,7 +34836,7 @@
|
|
|
33594
34836
|
}]
|
|
33595
34837
|
}], null, null);
|
|
33596
34838
|
})();
|
|
33597
|
-
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$
|
|
34839
|
+
i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
|
|
33598
34840
|
|
|
33599
34841
|
var ComplexFieldOverride = /** @class */ (function () {
|
|
33600
34842
|
function ComplexFieldOverride() {
|
|
@@ -33903,6 +35145,14 @@
|
|
|
33903
35145
|
exports.CaseEventTriggerComponent = CaseEventTriggerComponent;
|
|
33904
35146
|
exports.CaseField = CaseField;
|
|
33905
35147
|
exports.CaseFieldService = CaseFieldService;
|
|
35148
|
+
exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
|
|
35149
|
+
exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
|
|
35150
|
+
exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
|
|
35151
|
+
exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
|
|
35152
|
+
exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
|
|
35153
|
+
exports.CaseFileViewFolderSortComponent = CaseFileViewFolderSortComponent;
|
|
35154
|
+
exports.CaseFileViewOverlayMenuComponent = CaseFileViewOverlayMenuComponent;
|
|
35155
|
+
exports.CaseFileViewService = CaseFileViewService;
|
|
33906
35156
|
exports.CaseFlagRefdataService = CaseFlagRefdataService;
|
|
33907
35157
|
exports.CaseFlagSummaryListComponent = CaseFlagSummaryListComponent;
|
|
33908
35158
|
exports.CaseFlagTableComponent = CaseFlagTableComponent;
|
|
@@ -34044,6 +35294,7 @@
|
|
|
34044
35294
|
exports.LoadingService = LoadingService;
|
|
34045
35295
|
exports.LoadingSpinnerComponent = LoadingSpinnerComponent;
|
|
34046
35296
|
exports.LoadingSpinnerModule = LoadingSpinnerModule;
|
|
35297
|
+
exports.MEDIA_VIEWER_LOCALSTORAGE_KEY = MEDIA_VIEWER_LOCALSTORAGE_KEY;
|
|
34047
35298
|
exports.MULTIPLE_TASKS_FOUND = MULTIPLE_TASKS_FOUND;
|
|
34048
35299
|
exports.ManageCaseFlagsComponent = ManageCaseFlagsComponent;
|
|
34049
35300
|
exports.MarkdownComponent = MarkdownComponent;
|