@hmcts/ccd-case-ui-toolkit 5.0.25-case-file-view-document-in-a-new-tab → 5.0.25-case-file-view-document-count-v2
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 +1105 -1020
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +3 -2
- 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 +1 -1
- 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 +12 -9
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +250 -160
- package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
- package/esm2015/lib/shared/components/palette/palette.module.js +4 -7
- package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +3 -9
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +7526 -7435
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +3 -17
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +1 -7
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/package.json +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('ngx-md'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.
|
|
5
|
-
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i1$5, i2, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('ngx-md'), require('@angular/cdk/tree'), require('@angular/cdk/overlay'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/portal'), require('@angular/material/input'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', 'ngx-md', '@angular/cdk/tree', '@angular/cdk/overlay', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/portal', '@angular/material/input', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global["ngx-md"], global.ng.cdk.tree, global.ng.cdk.overlay, global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.portal, global.ng.material.input, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i2, i1$5, i1$6, i2$1, i4, momentAdapter, i5, i6, i5$1, i6$1, i3, i6$2, input, i1$7, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
34
34
|
var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
|
|
35
35
|
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
36
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
37
36
|
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
37
|
+
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
38
|
+
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
39
|
+
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
38
40
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
39
41
|
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
40
42
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
41
43
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
42
44
|
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
43
45
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
44
|
-
var i6__namespace$3 = /*#__PURE__*/_interopNamespace(i6$3);
|
|
45
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
46
46
|
var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
|
|
47
47
|
var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
|
|
48
48
|
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
@@ -563,7 +563,7 @@
|
|
|
563
563
|
function step(op) {
|
|
564
564
|
if (f)
|
|
565
565
|
throw new TypeError("Generator is already executing.");
|
|
566
|
-
while (_)
|
|
566
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
567
567
|
try {
|
|
568
568
|
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)
|
|
569
569
|
return t;
|
|
@@ -8859,7 +8859,7 @@
|
|
|
8859
8859
|
return IsCompoundPipe;
|
|
8860
8860
|
}());
|
|
8861
8861
|
IsCompoundPipe.COMPOUND_TYPES = [
|
|
8862
|
-
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
8862
|
+
'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
|
|
8863
8863
|
];
|
|
8864
8864
|
IsCompoundPipe.EXCLUDE = [
|
|
8865
8865
|
'CaseLink', 'JudicialUser'
|
|
@@ -9459,351 +9459,1076 @@
|
|
|
9459
9459
|
}] });
|
|
9460
9460
|
})();
|
|
9461
9461
|
|
|
9462
|
-
var
|
|
9463
|
-
function
|
|
9464
|
-
this.elementRef = elementRef;
|
|
9465
|
-
this.route = route;
|
|
9466
|
-
this.caseFileViewService = caseFileViewService;
|
|
9462
|
+
var CaseFileViewCategory = /** @class */ (function () {
|
|
9463
|
+
function CaseFileViewCategory() {
|
|
9467
9464
|
}
|
|
9468
|
-
|
|
9469
|
-
|
|
9470
|
-
|
|
9465
|
+
return CaseFileViewCategory;
|
|
9466
|
+
}());
|
|
9467
|
+
|
|
9468
|
+
var CaseFileViewDocument = /** @class */ (function () {
|
|
9469
|
+
function CaseFileViewDocument() {
|
|
9470
|
+
}
|
|
9471
|
+
return CaseFileViewDocument;
|
|
9472
|
+
}());
|
|
9473
|
+
|
|
9474
|
+
/**
|
|
9475
|
+
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
9476
|
+
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
9477
|
+
*/
|
|
9478
|
+
var CategoriesAndDocuments = /** @class */ (function () {
|
|
9479
|
+
function CategoriesAndDocuments() {
|
|
9480
|
+
}
|
|
9481
|
+
return CategoriesAndDocuments;
|
|
9482
|
+
}());
|
|
9483
|
+
|
|
9484
|
+
var DocumentTreeNode = /** @class */ (function () {
|
|
9485
|
+
function DocumentTreeNode() {
|
|
9486
|
+
}
|
|
9487
|
+
Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
|
|
9488
|
+
get: function () {
|
|
9489
|
+
var countChildren = function (childNodes) {
|
|
9490
|
+
var count = 0;
|
|
9491
|
+
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
9492
|
+
var documents = childNodes.filter(function (item) { return item.type === 'document'; });
|
|
9493
|
+
count += documents.length;
|
|
9494
|
+
childNodes.forEach(function (children) {
|
|
9495
|
+
count += countChildren(children.children);
|
|
9496
|
+
});
|
|
9497
|
+
}
|
|
9498
|
+
return count;
|
|
9499
|
+
};
|
|
9500
|
+
return countChildren(this.children);
|
|
9501
|
+
},
|
|
9502
|
+
enumerable: false,
|
|
9503
|
+
configurable: true
|
|
9504
|
+
});
|
|
9505
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
9506
|
+
var _a, _b;
|
|
9507
|
+
var sortAscending = function () {
|
|
9508
|
+
return function (a, b) {
|
|
9509
|
+
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
9510
|
+
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
9511
|
+
if (a.type === 'category' || b.type === 'category') {
|
|
9512
|
+
return 0;
|
|
9513
|
+
}
|
|
9514
|
+
if (nameA < nameB) {
|
|
9515
|
+
return -1;
|
|
9516
|
+
}
|
|
9517
|
+
if (nameA > nameB) {
|
|
9518
|
+
return 1;
|
|
9519
|
+
}
|
|
9520
|
+
};
|
|
9521
|
+
};
|
|
9522
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
9523
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
9524
|
+
childNodes.sortChildrenAscending();
|
|
9525
|
+
});
|
|
9471
9526
|
};
|
|
9472
|
-
|
|
9473
|
-
var
|
|
9474
|
-
var
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
}
|
|
9487
|
-
}
|
|
9488
|
-
}
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9527
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
9528
|
+
var _a, _b;
|
|
9529
|
+
var sortDescending = function () {
|
|
9530
|
+
return function (a, b) {
|
|
9531
|
+
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
9532
|
+
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
9533
|
+
if (a.type === 'category' || b.type === 'category') {
|
|
9534
|
+
return 0;
|
|
9535
|
+
}
|
|
9536
|
+
if (nameA > nameB) {
|
|
9537
|
+
return -1;
|
|
9538
|
+
}
|
|
9539
|
+
if (nameA < nameB) {
|
|
9540
|
+
return 1;
|
|
9541
|
+
}
|
|
9542
|
+
};
|
|
9543
|
+
};
|
|
9544
|
+
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
9545
|
+
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
9546
|
+
childNodes.sortChildrenDescending();
|
|
9492
9547
|
});
|
|
9493
9548
|
};
|
|
9494
|
-
|
|
9549
|
+
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
9550
|
+
get: function () {
|
|
9551
|
+
var _a;
|
|
9552
|
+
var flattenChildren = function (nodeChild) {
|
|
9553
|
+
var _a;
|
|
9554
|
+
var flattenedNodes = [];
|
|
9555
|
+
flattenedNodes.push(nodeChild);
|
|
9556
|
+
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
9557
|
+
nodeChild.children.forEach(function (child) {
|
|
9558
|
+
flattenedNodes.push.apply(flattenedNodes, __spread(flattenChildren(child)));
|
|
9559
|
+
});
|
|
9560
|
+
}
|
|
9561
|
+
return flattenedNodes;
|
|
9562
|
+
};
|
|
9563
|
+
return __spread([
|
|
9564
|
+
this
|
|
9565
|
+
], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
9566
|
+
return flattenChildren(item);
|
|
9567
|
+
}).flat());
|
|
9568
|
+
},
|
|
9569
|
+
enumerable: false,
|
|
9570
|
+
configurable: true
|
|
9571
|
+
});
|
|
9572
|
+
return DocumentTreeNode;
|
|
9495
9573
|
}());
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
9506
|
-
i0__namespace.ɵɵelementEnd();
|
|
9507
|
-
i0__namespace.ɵɵelement(5, "div", 4);
|
|
9508
|
-
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
9509
|
-
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
9510
|
-
i0__namespace.ɵɵelementEnd();
|
|
9511
|
-
i0__namespace.ɵɵelementEnd();
|
|
9512
|
-
}
|
|
9513
|
-
if (rf & 2) {
|
|
9514
|
-
i0__namespace.ɵɵadvance(4);
|
|
9515
|
-
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
9516
|
-
}
|
|
9517
|
-
}, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
|
|
9518
|
-
(function () {
|
|
9519
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
9520
|
-
type: i0.Component,
|
|
9521
|
-
args: [{
|
|
9522
|
-
selector: 'ccd-case-file-view-field',
|
|
9523
|
-
templateUrl: './case-file-view-field.component.html',
|
|
9524
|
-
styleUrls: ['./case-file-view-field.component.scss'],
|
|
9525
|
-
}]
|
|
9526
|
-
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
|
|
9527
|
-
})();
|
|
9574
|
+
__decorate([
|
|
9575
|
+
classTransformer.Type(function () { return DocumentTreeNode; }),
|
|
9576
|
+
__metadata("design:type", Array)
|
|
9577
|
+
], DocumentTreeNode.prototype, "children", void 0);
|
|
9578
|
+
__decorate([
|
|
9579
|
+
classTransformer.Expose(),
|
|
9580
|
+
__metadata("design:type", Object),
|
|
9581
|
+
__metadata("design:paramtypes", [])
|
|
9582
|
+
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
9528
9583
|
|
|
9529
|
-
function
|
|
9584
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) {
|
|
9530
9585
|
if (rf & 1) {
|
|
9531
|
-
i0__namespace.ɵɵ
|
|
9532
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
9586
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
9587
|
+
i0__namespace.ɵɵelementStart(1, "div", 6);
|
|
9533
9588
|
i0__namespace.ɵɵtext(2);
|
|
9534
|
-
i0__namespace.ɵɵ
|
|
9589
|
+
i0__namespace.ɵɵelementEnd();
|
|
9590
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
9591
|
+
}
|
|
9592
|
+
if (rf & 2) {
|
|
9593
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
9594
|
+
i0__namespace.ɵɵadvance(2);
|
|
9595
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
9596
|
+
}
|
|
9597
|
+
}
|
|
9598
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) {
|
|
9599
|
+
if (rf & 1) {
|
|
9600
|
+
i0__namespace.ɵɵelement(0, "img", 10);
|
|
9601
|
+
}
|
|
9602
|
+
if (rf & 2) {
|
|
9603
|
+
var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
|
|
9604
|
+
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
9605
|
+
i0__namespace.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
9606
|
+
i0__namespace.ɵɵproperty("src", item_r4.iconSrc, i0__namespace.ɵɵsanitizeUrl);
|
|
9607
|
+
}
|
|
9608
|
+
}
|
|
9609
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) {
|
|
9610
|
+
if (rf & 1) {
|
|
9611
|
+
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
9612
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
9613
|
+
i0__namespace.ɵɵelementStart(1, "div", 7);
|
|
9614
|
+
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(); });
|
|
9615
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
9616
|
+
i0__namespace.ɵɵelementStart(3, "div", 9);
|
|
9617
|
+
i0__namespace.ɵɵtext(4);
|
|
9535
9618
|
i0__namespace.ɵɵelementEnd();
|
|
9536
9619
|
i0__namespace.ɵɵelementEnd();
|
|
9620
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
9537
9621
|
}
|
|
9538
9622
|
if (rf & 2) {
|
|
9539
|
-
var
|
|
9540
|
-
i0__namespace.ɵɵpropertyInterpolate1("href", "/v2/case/", ctx_r0.caseField.value.CaseReference, "", i0__namespace.ɵɵsanitizeUrl);
|
|
9623
|
+
var item_r4 = ctx.$implicit;
|
|
9541
9624
|
i0__namespace.ɵɵadvance(2);
|
|
9542
|
-
i0__namespace.ɵɵ
|
|
9625
|
+
i0__namespace.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
9626
|
+
i0__namespace.ɵɵadvance(2);
|
|
9627
|
+
i0__namespace.ɵɵtextInterpolate(item_r4.actionText);
|
|
9543
9628
|
}
|
|
9544
9629
|
}
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
|
|
9630
|
+
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
|
|
9631
|
+
if (rf & 1) {
|
|
9632
|
+
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
9633
|
+
i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
9634
|
+
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
9635
|
+
i0__namespace.ɵɵelementEnd();
|
|
9549
9636
|
}
|
|
9550
|
-
|
|
9551
|
-
|
|
9637
|
+
if (rf & 2) {
|
|
9638
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
9639
|
+
i0__namespace.ɵɵadvance(1);
|
|
9640
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.title);
|
|
9641
|
+
i0__namespace.ɵɵadvance(1);
|
|
9642
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
9643
|
+
}
|
|
9644
|
+
}
|
|
9645
|
+
var _c0$G = [[["", "trigger", ""]]];
|
|
9646
|
+
var _c1$h = ["[trigger]"];
|
|
9647
|
+
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
9648
|
+
function CaseFileViewOverlayMenuComponent() {
|
|
9649
|
+
this.title = '';
|
|
9650
|
+
this.isOpen = false;
|
|
9651
|
+
this.isOpenChange = new i0.EventEmitter();
|
|
9652
|
+
}
|
|
9653
|
+
CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
|
|
9654
|
+
var isOpen = false;
|
|
9655
|
+
this.isOpen = isOpen;
|
|
9656
|
+
this.isOpenChange.emit(isOpen);
|
|
9552
9657
|
};
|
|
9553
|
-
return
|
|
9554
|
-
}(
|
|
9555
|
-
|
|
9556
|
-
|
|
9658
|
+
return CaseFileViewOverlayMenuComponent;
|
|
9659
|
+
}());
|
|
9660
|
+
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
9661
|
+
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$h, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
|
|
9557
9662
|
if (rf & 1) {
|
|
9558
|
-
i0__namespace.ɵɵ
|
|
9663
|
+
i0__namespace.ɵɵprojectionDef(_c0$G);
|
|
9664
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
9665
|
+
i0__namespace.ɵɵelementStart(1, "button", 0, 1);
|
|
9666
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener() { return ctx.isOpen = !ctx.isOpen; });
|
|
9667
|
+
i0__namespace.ɵɵprojection(3);
|
|
9668
|
+
i0__namespace.ɵɵelementEnd();
|
|
9669
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
9670
|
+
i0__namespace.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
9671
|
+
i0__namespace.ɵɵelementEnd();
|
|
9559
9672
|
}
|
|
9560
9673
|
if (rf & 2) {
|
|
9561
|
-
i0__namespace.ɵɵ
|
|
9674
|
+
var _r0 = i0__namespace.ɵɵreference(2);
|
|
9675
|
+
i0__namespace.ɵɵadvance(4);
|
|
9676
|
+
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
9562
9677
|
}
|
|
9563
|
-
}, directives: [i1__namespace.NgIf],
|
|
9564
|
-
var ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadCaseLinkFieldComponent);
|
|
9678
|
+
}, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.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}"] });
|
|
9565
9679
|
(function () {
|
|
9566
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
9680
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
9567
9681
|
type: i0.Component,
|
|
9568
9682
|
args: [{
|
|
9569
|
-
selector: 'ccd-
|
|
9570
|
-
templateUrl: '
|
|
9683
|
+
selector: 'ccd-case-file-view-overlay-menu',
|
|
9684
|
+
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
9685
|
+
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
9571
9686
|
}]
|
|
9572
|
-
}], null,
|
|
9687
|
+
}], null, { title: [{
|
|
9688
|
+
type: i0.Input
|
|
9689
|
+
}], menuItems: [{
|
|
9690
|
+
type: i0.Input
|
|
9691
|
+
}], isOpen: [{
|
|
9692
|
+
type: i0.Input
|
|
9693
|
+
}], isOpenChange: [{
|
|
9694
|
+
type: i0.Output
|
|
9695
|
+
}] });
|
|
9573
9696
|
})();
|
|
9574
9697
|
|
|
9575
|
-
var
|
|
9576
|
-
function
|
|
9698
|
+
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
9699
|
+
function CaseFileViewFolderSortComponent() {
|
|
9700
|
+
var _this = this;
|
|
9701
|
+
this.isOpen = false;
|
|
9702
|
+
this.sortAscending = new i0.EventEmitter();
|
|
9703
|
+
this.sortDescending = new i0.EventEmitter();
|
|
9704
|
+
this.overlayMenuItems = [
|
|
9705
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
9706
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
9707
|
+
];
|
|
9577
9708
|
}
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
if (
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
return args + " is required";
|
|
9591
|
-
}
|
|
9592
|
-
else if (keys[0] === 'pattern') {
|
|
9593
|
-
return "The data entered is not valid for " + args;
|
|
9709
|
+
return CaseFileViewFolderSortComponent;
|
|
9710
|
+
}());
|
|
9711
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
9712
|
+
CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 4, vars: 3, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "sort-button", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button__arrows"], [3, "title", "menuItems", "isOpen", "isOpenChange"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
|
|
9713
|
+
if (rf & 1) {
|
|
9714
|
+
i0__namespace.ɵɵelementStart(0, "button", 0, 1);
|
|
9715
|
+
i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSortComponent_Template_button_click_0_listener() { return ctx.isOpen = !ctx.isOpen; });
|
|
9716
|
+
i0__namespace.ɵɵelement(2, "img", 2);
|
|
9717
|
+
i0__namespace.ɵɵelementEnd();
|
|
9718
|
+
i0__namespace.ɵɵelementStart(3, "ccd-case-file-view-overlay-menu", 3);
|
|
9719
|
+
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_3_listener($event) { return ctx.isOpen = $event; });
|
|
9720
|
+
i0__namespace.ɵɵelementEnd();
|
|
9594
9721
|
}
|
|
9595
|
-
|
|
9596
|
-
|
|
9722
|
+
if (rf & 2) {
|
|
9723
|
+
i0__namespace.ɵɵadvance(3);
|
|
9724
|
+
i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
9597
9725
|
}
|
|
9598
|
-
|
|
9599
|
-
|
|
9726
|
+
}, directives: [i1__namespace$5.CdkOverlayOrigin, CaseFileViewOverlayMenuComponent], styles: [".sort-button[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.sort-button__arrows[_ngcontent-%COMP%]{display:block;height:20px}"] });
|
|
9727
|
+
(function () {
|
|
9728
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
9729
|
+
type: i0.Component,
|
|
9730
|
+
args: [{
|
|
9731
|
+
selector: 'ccd-case-file-view-folder-sort',
|
|
9732
|
+
templateUrl: './case-file-view-folder-sort.component.html',
|
|
9733
|
+
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
9734
|
+
}]
|
|
9735
|
+
}], function () { return []; }, { sortAscending: [{
|
|
9736
|
+
type: i0.Output
|
|
9737
|
+
}], sortDescending: [{
|
|
9738
|
+
type: i0.Output
|
|
9739
|
+
}] });
|
|
9740
|
+
})();
|
|
9741
|
+
|
|
9742
|
+
var CaseFileViewFolderDocumentActionsComponent = /** @class */ (function () {
|
|
9743
|
+
function CaseFileViewFolderDocumentActionsComponent() {
|
|
9744
|
+
var _this = this;
|
|
9745
|
+
this.isOpen = false;
|
|
9746
|
+
this.changeFolderAction = new i0.EventEmitter();
|
|
9747
|
+
this.openInANewTabAction = new i0.EventEmitter();
|
|
9748
|
+
this.downloadAction = new i0.EventEmitter();
|
|
9749
|
+
this.printAction = new i0.EventEmitter();
|
|
9750
|
+
this.overlayMenuItems = [
|
|
9751
|
+
{ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: function () { return _this.changeFolderAction.emit(); } },
|
|
9752
|
+
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: function () { return _this.openInANewTabAction.emit(); } },
|
|
9753
|
+
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: function () { return _this.downloadAction.emit(); } },
|
|
9754
|
+
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: function () { return _this.printAction.emit(); } },
|
|
9755
|
+
];
|
|
9756
|
+
}
|
|
9757
|
+
return CaseFileViewFolderDocumentActionsComponent;
|
|
9758
|
+
}());
|
|
9759
|
+
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
9760
|
+
CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) {
|
|
9761
|
+
if (rf & 1) {
|
|
9762
|
+
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
9763
|
+
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
9764
|
+
i0__namespace.ɵɵelementContainerStart(1, 1);
|
|
9765
|
+
i0__namespace.ɵɵelement(2, "img", 2);
|
|
9766
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
9767
|
+
i0__namespace.ɵɵelementEnd();
|
|
9600
9768
|
}
|
|
9601
|
-
|
|
9602
|
-
|
|
9769
|
+
if (rf & 2) {
|
|
9770
|
+
i0__namespace.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
9603
9771
|
}
|
|
9604
|
-
|
|
9605
|
-
};
|
|
9606
|
-
return FirstErrorPipe;
|
|
9607
|
-
}());
|
|
9608
|
-
FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(); };
|
|
9609
|
-
FirstErrorPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: true });
|
|
9772
|
+
}, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-5px}"] });
|
|
9610
9773
|
(function () {
|
|
9611
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
9612
|
-
type: i0.
|
|
9774
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
9775
|
+
type: i0.Component,
|
|
9613
9776
|
args: [{
|
|
9614
|
-
|
|
9777
|
+
selector: 'ccd-case-file-view-folder-document-actions',
|
|
9778
|
+
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
9779
|
+
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
9615
9780
|
}]
|
|
9616
|
-
}],
|
|
9781
|
+
}], function () { return []; }, { changeFolderAction: [{
|
|
9782
|
+
type: i0.Output
|
|
9783
|
+
}], openInANewTabAction: [{
|
|
9784
|
+
type: i0.Output
|
|
9785
|
+
}], downloadAction: [{
|
|
9786
|
+
type: i0.Output
|
|
9787
|
+
}], printAction: [{
|
|
9788
|
+
type: i0.Output
|
|
9789
|
+
}] });
|
|
9617
9790
|
})();
|
|
9618
9791
|
|
|
9619
|
-
|
|
9620
|
-
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
9792
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template(rf, ctx) {
|
|
9621
9793
|
if (rf & 1) {
|
|
9622
|
-
i0__namespace.ɵɵ
|
|
9623
|
-
i0__namespace.ɵɵ
|
|
9624
|
-
i0__namespace.ɵɵ
|
|
9794
|
+
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
9795
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
9796
|
+
i0__namespace.ɵɵelementStart(1, "button", 8);
|
|
9797
|
+
i0__namespace.ɵɵelementStart(2, "div", 9);
|
|
9798
|
+
i0__namespace.ɵɵelement(3, "img", 10);
|
|
9799
|
+
i0__namespace.ɵɵelementEnd();
|
|
9800
|
+
i0__namespace.ɵɵelementStart(4, "span", 11);
|
|
9801
|
+
i0__namespace.ɵɵtext(5);
|
|
9802
|
+
i0__namespace.ɵɵelementEnd();
|
|
9803
|
+
i0__namespace.ɵɵelementStart(6, "div", 12);
|
|
9804
|
+
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 13);
|
|
9805
|
+
i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.triggerDocumentAction("changeFolder"); })("openInANewTabAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.triggerDocumentAction("openInANewTab"); })("downloadAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.triggerDocumentAction("download"); })("printAction", function CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.triggerDocumentAction("print"); });
|
|
9806
|
+
i0__namespace.ɵɵelementEnd();
|
|
9807
|
+
i0__namespace.ɵɵelementEnd();
|
|
9625
9808
|
i0__namespace.ɵɵelementEnd();
|
|
9626
|
-
}
|
|
9627
|
-
if (rf & 2) {
|
|
9628
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
9629
|
-
i0__namespace.ɵɵadvance(1);
|
|
9630
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
9631
|
-
}
|
|
9632
|
-
}
|
|
9633
|
-
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) {
|
|
9634
|
-
if (rf & 1) {
|
|
9635
|
-
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
9636
|
-
i0__namespace.ɵɵtext(1);
|
|
9637
9809
|
i0__namespace.ɵɵelementEnd();
|
|
9638
9810
|
}
|
|
9639
9811
|
if (rf & 2) {
|
|
9640
|
-
var
|
|
9641
|
-
i0__namespace.ɵɵadvance(
|
|
9642
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
9812
|
+
var node_r2 = ctx.$implicit;
|
|
9813
|
+
i0__namespace.ɵɵadvance(5);
|
|
9814
|
+
i0__namespace.ɵɵtextInterpolate(node_r2.name);
|
|
9643
9815
|
}
|
|
9644
9816
|
}
|
|
9645
|
-
function
|
|
9817
|
+
function CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template(rf, ctx) {
|
|
9646
9818
|
if (rf & 1) {
|
|
9647
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
9648
|
-
i0__namespace.ɵɵ
|
|
9649
|
-
i0__namespace.ɵɵ
|
|
9819
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 7);
|
|
9820
|
+
i0__namespace.ɵɵelementStart(1, "button", 14);
|
|
9821
|
+
i0__namespace.ɵɵelementStart(2, "div", 15);
|
|
9822
|
+
i0__namespace.ɵɵelement(3, "img", 16);
|
|
9823
|
+
i0__namespace.ɵɵelementStart(4, "span", 17);
|
|
9824
|
+
i0__namespace.ɵɵtext(5);
|
|
9825
|
+
i0__namespace.ɵɵelementEnd();
|
|
9826
|
+
i0__namespace.ɵɵelementEnd();
|
|
9827
|
+
i0__namespace.ɵɵelementStart(6, "span", 18);
|
|
9828
|
+
i0__namespace.ɵɵtext(7);
|
|
9829
|
+
i0__namespace.ɵɵelementEnd();
|
|
9830
|
+
i0__namespace.ɵɵelementEnd();
|
|
9831
|
+
i0__namespace.ɵɵelementStart(8, "div");
|
|
9832
|
+
i0__namespace.ɵɵelementContainer(9, 19);
|
|
9833
|
+
i0__namespace.ɵɵelementEnd();
|
|
9650
9834
|
i0__namespace.ɵɵelementEnd();
|
|
9651
9835
|
}
|
|
9652
9836
|
if (rf & 2) {
|
|
9653
|
-
var
|
|
9837
|
+
var node_r8 = ctx.$implicit;
|
|
9838
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
9839
|
+
i0__namespace.ɵɵadvance(2);
|
|
9840
|
+
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r8.name);
|
|
9841
|
+
i0__namespace.ɵɵadvance(3);
|
|
9842
|
+
i0__namespace.ɵɵtextInterpolate(node_r8.childDocumentCount);
|
|
9843
|
+
i0__namespace.ɵɵadvance(2);
|
|
9844
|
+
i0__namespace.ɵɵtextInterpolate(node_r8.name);
|
|
9654
9845
|
i0__namespace.ɵɵadvance(1);
|
|
9655
|
-
i0__namespace.ɵɵ
|
|
9846
|
+
i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r1.nestedTreeControl.isExpanded(node_r8));
|
|
9656
9847
|
}
|
|
9657
9848
|
}
|
|
9658
|
-
var
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9849
|
+
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
9850
|
+
function CaseFileViewFolderComponent() {
|
|
9851
|
+
this.categories = [];
|
|
9852
|
+
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
9853
|
+
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
9854
|
+
this.nestedTreeControl = new i2.NestedTreeControl(this.getChildren);
|
|
9663
9855
|
}
|
|
9664
|
-
|
|
9665
|
-
var
|
|
9666
|
-
|
|
9667
|
-
|
|
9668
|
-
|
|
9669
|
-
|
|
9670
|
-
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
}
|
|
9676
|
-
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
9677
|
-
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
9678
|
-
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
9679
|
-
// field uses the Complex type, it is meant to be treated as one field
|
|
9680
|
-
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
9681
|
-
try {
|
|
9682
|
-
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9683
|
-
var caseLinkSubField = _c.value;
|
|
9684
|
-
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
9685
|
-
}
|
|
9686
|
-
}
|
|
9687
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9688
|
-
finally {
|
|
9689
|
-
try {
|
|
9690
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9691
|
-
}
|
|
9692
|
-
finally { if (e_1) throw e_1.error; }
|
|
9856
|
+
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
9857
|
+
var _this = this;
|
|
9858
|
+
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
|
|
9859
|
+
// Using the mock data for now as we have to display the documents as well for demo purpose
|
|
9860
|
+
var categories = _this.loadCategories(); // categoriesAndDocuments.categories;
|
|
9861
|
+
// Generate document tree data from categories
|
|
9862
|
+
var treeData = _this.generateTreeData(categories);
|
|
9863
|
+
// Append uncategorised documents
|
|
9864
|
+
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
9865
|
+
var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
9866
|
+
treeData.push(uncategorisedDocuments);
|
|
9693
9867
|
}
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
if (!valueString) {
|
|
9698
|
-
return false;
|
|
9699
|
-
}
|
|
9700
|
-
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
9868
|
+
// Initialise cdk tree with generated data
|
|
9869
|
+
_this.nestedDataSource = treeData;
|
|
9870
|
+
});
|
|
9701
9871
|
};
|
|
9702
|
-
|
|
9872
|
+
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
9703
9873
|
var _this = this;
|
|
9704
|
-
return function (
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
9714
|
-
}
|
|
9715
|
-
}
|
|
9716
|
-
return null;
|
|
9717
|
-
};
|
|
9874
|
+
return categories.reduce(function (tree, node) {
|
|
9875
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9876
|
+
newDocumentTreeNode.name = node.category_name;
|
|
9877
|
+
newDocumentTreeNode.type = 'category';
|
|
9878
|
+
newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
|
|
9879
|
+
return __spread(tree, [
|
|
9880
|
+
newDocumentTreeNode,
|
|
9881
|
+
]);
|
|
9882
|
+
}, []);
|
|
9718
9883
|
};
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9884
|
+
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
9885
|
+
var documentsToReturn = [];
|
|
9886
|
+
documents.forEach(function (document) {
|
|
9887
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
9888
|
+
documentTreeNode.name = document.document_filename;
|
|
9889
|
+
documentTreeNode.type = 'document';
|
|
9890
|
+
documentsToReturn.push(documentTreeNode);
|
|
9891
|
+
});
|
|
9892
|
+
return documentsToReturn;
|
|
9893
|
+
};
|
|
9894
|
+
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
9895
|
+
var documents = [];
|
|
9896
|
+
uncategorisedDocuments.forEach(function (document) {
|
|
9897
|
+
var documentTreeNode = new DocumentTreeNode();
|
|
9898
|
+
documentTreeNode.name = document.document_filename;
|
|
9899
|
+
documentTreeNode.type = 'document';
|
|
9900
|
+
documents.push(documentTreeNode);
|
|
9901
|
+
});
|
|
9902
|
+
var uncategorisedNode = new DocumentTreeNode();
|
|
9903
|
+
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
9904
|
+
uncategorisedNode.type = 'category';
|
|
9905
|
+
uncategorisedNode.children = documents;
|
|
9906
|
+
return uncategorisedNode;
|
|
9907
|
+
};
|
|
9908
|
+
CaseFileViewFolderComponent.prototype.triggerDocumentAction = function (actionType) {
|
|
9909
|
+
switch (actionType) {
|
|
9910
|
+
case ('changeFolder'):
|
|
9911
|
+
console.log('changeFolder!');
|
|
9912
|
+
break;
|
|
9913
|
+
case ('openInANewTab'):
|
|
9914
|
+
console.log('openInANewTab!');
|
|
9915
|
+
break;
|
|
9916
|
+
case ('download'):
|
|
9917
|
+
console.log('download!');
|
|
9918
|
+
break;
|
|
9919
|
+
case ('print'):
|
|
9920
|
+
console.log('print!');
|
|
9921
|
+
break;
|
|
9922
|
+
default:
|
|
9923
|
+
return;
|
|
9725
9924
|
}
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9925
|
+
};
|
|
9926
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
|
|
9927
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
9928
|
+
item.sortChildrenAscending();
|
|
9929
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9930
|
+
newDocumentTreeNode.name = item.name;
|
|
9931
|
+
newDocumentTreeNode.type = item.type;
|
|
9932
|
+
newDocumentTreeNode.children = item.children;
|
|
9933
|
+
return newDocumentTreeNode;
|
|
9934
|
+
});
|
|
9935
|
+
this.updateNodeData(sortedData);
|
|
9936
|
+
};
|
|
9937
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
|
|
9938
|
+
var sortedData = this.nestedDataSource.map(function (item) {
|
|
9939
|
+
item.sortChildrenDescending();
|
|
9940
|
+
return item;
|
|
9941
|
+
});
|
|
9942
|
+
this.updateNodeData(sortedData);
|
|
9943
|
+
};
|
|
9944
|
+
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
9945
|
+
if (this.categoriesAndDocumentsSubscription) {
|
|
9946
|
+
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
9729
9947
|
}
|
|
9730
|
-
}
|
|
9948
|
+
};
|
|
9949
|
+
CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
|
|
9950
|
+
var _this = this;
|
|
9951
|
+
var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
|
|
9952
|
+
return item.name;
|
|
9953
|
+
});
|
|
9954
|
+
this.nestedTreeControl.collapseAll();
|
|
9955
|
+
this.nestedDataSource = data.map(function (item) {
|
|
9956
|
+
var newDocumentTreeNode = new DocumentTreeNode();
|
|
9957
|
+
newDocumentTreeNode.name = item.name;
|
|
9958
|
+
newDocumentTreeNode.type = item.type;
|
|
9959
|
+
newDocumentTreeNode.children = item.children;
|
|
9960
|
+
return newDocumentTreeNode;
|
|
9961
|
+
});
|
|
9962
|
+
var flattenedArray = this.nestedDataSource.map(function (item) {
|
|
9963
|
+
return item.flattenedAll;
|
|
9964
|
+
}).flat();
|
|
9965
|
+
var newObjects = flattenedArray.filter(function (item) {
|
|
9966
|
+
return prevSelected.includes(item.name);
|
|
9967
|
+
});
|
|
9968
|
+
newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
|
|
9969
|
+
};
|
|
9970
|
+
CaseFileViewFolderComponent.prototype.loadCategories = function () {
|
|
9971
|
+
return [
|
|
9972
|
+
{
|
|
9973
|
+
category_id: 'Beers',
|
|
9974
|
+
category_name: 'Beers',
|
|
9975
|
+
category_order: 1,
|
|
9976
|
+
documents: [
|
|
9977
|
+
{
|
|
9978
|
+
document_url: '/test',
|
|
9979
|
+
document_filename: 'Lager encyclopedia',
|
|
9980
|
+
document_binary_url: '/test/binary',
|
|
9981
|
+
attribute_path: '',
|
|
9982
|
+
upload_timestamp: ''
|
|
9983
|
+
},
|
|
9984
|
+
{
|
|
9985
|
+
document_url: '/test',
|
|
9986
|
+
document_filename: 'Beers encyclopedia',
|
|
9987
|
+
document_binary_url: '/test/binary',
|
|
9988
|
+
attribute_path: '',
|
|
9989
|
+
upload_timestamp: ''
|
|
9990
|
+
},
|
|
9991
|
+
{
|
|
9992
|
+
document_url: '/test',
|
|
9993
|
+
document_filename: 'Ale encyclopedia',
|
|
9994
|
+
document_binary_url: '/test/binary',
|
|
9995
|
+
attribute_path: '',
|
|
9996
|
+
upload_timestamp: ''
|
|
9997
|
+
}
|
|
9998
|
+
],
|
|
9999
|
+
sub_categories: [
|
|
10000
|
+
{
|
|
10001
|
+
category_id: 'BeersBitters',
|
|
10002
|
+
category_name: 'Bitters',
|
|
10003
|
+
category_order: 1,
|
|
10004
|
+
documents: [],
|
|
10005
|
+
sub_categories: []
|
|
10006
|
+
},
|
|
10007
|
+
{
|
|
10008
|
+
category_id: 'BeersAmerican',
|
|
10009
|
+
category_name: 'American',
|
|
10010
|
+
category_order: 2,
|
|
10011
|
+
documents: [],
|
|
10012
|
+
sub_categories: []
|
|
10013
|
+
},
|
|
10014
|
+
{
|
|
10015
|
+
category_id: 'BeersAsian',
|
|
10016
|
+
category_name: 'Asian',
|
|
10017
|
+
category_order: 3,
|
|
10018
|
+
documents: [],
|
|
10019
|
+
sub_categories: []
|
|
10020
|
+
}
|
|
10021
|
+
]
|
|
10022
|
+
},
|
|
10023
|
+
{
|
|
10024
|
+
category_id: 'Wines',
|
|
10025
|
+
category_name: 'Wines',
|
|
10026
|
+
category_order: 2,
|
|
10027
|
+
documents: [],
|
|
10028
|
+
sub_categories: [
|
|
10029
|
+
{
|
|
10030
|
+
category_id: 'WinesFrench',
|
|
10031
|
+
category_name: 'French',
|
|
10032
|
+
category_order: 1,
|
|
10033
|
+
documents: [],
|
|
10034
|
+
sub_categories: []
|
|
10035
|
+
},
|
|
10036
|
+
{
|
|
10037
|
+
category_id: 'WinesItalian',
|
|
10038
|
+
category_name: 'Italian',
|
|
10039
|
+
category_order: 2,
|
|
10040
|
+
documents: [],
|
|
10041
|
+
sub_categories: []
|
|
10042
|
+
}
|
|
10043
|
+
]
|
|
10044
|
+
},
|
|
10045
|
+
{
|
|
10046
|
+
category_id: 'Spirits',
|
|
10047
|
+
category_name: 'Spirits',
|
|
10048
|
+
category_order: 3,
|
|
10049
|
+
documents: [],
|
|
10050
|
+
sub_categories: [
|
|
10051
|
+
{
|
|
10052
|
+
category_id: 'SpiritsWhisky',
|
|
10053
|
+
category_name: 'Scotch whisky',
|
|
10054
|
+
category_order: 1,
|
|
10055
|
+
documents: [],
|
|
10056
|
+
sub_categories: [
|
|
10057
|
+
{
|
|
10058
|
+
category_id: 'WhiskyHighland',
|
|
10059
|
+
category_name: 'Highland',
|
|
10060
|
+
category_order: 1,
|
|
10061
|
+
documents: [],
|
|
10062
|
+
sub_categories: [
|
|
10063
|
+
{
|
|
10064
|
+
category_id: 'WhiskyHighland1',
|
|
10065
|
+
category_name: 'Highland 1',
|
|
10066
|
+
category_order: 1,
|
|
10067
|
+
documents: [],
|
|
10068
|
+
sub_categories: []
|
|
10069
|
+
}
|
|
10070
|
+
]
|
|
10071
|
+
},
|
|
10072
|
+
{
|
|
10073
|
+
category_id: 'WhiskyLowland',
|
|
10074
|
+
category_name: 'Lowland',
|
|
10075
|
+
category_order: 2,
|
|
10076
|
+
documents: [],
|
|
10077
|
+
sub_categories: [
|
|
10078
|
+
{
|
|
10079
|
+
category_id: 'WhiskyLowland1',
|
|
10080
|
+
category_name: 'Lowland 1',
|
|
10081
|
+
category_order: 1,
|
|
10082
|
+
documents: [
|
|
10083
|
+
{
|
|
10084
|
+
document_url: '/test',
|
|
10085
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
10086
|
+
document_binary_url: '/test/binary',
|
|
10087
|
+
attribute_path: '',
|
|
10088
|
+
upload_timestamp: ''
|
|
10089
|
+
}
|
|
10090
|
+
],
|
|
10091
|
+
sub_categories: []
|
|
10092
|
+
},
|
|
10093
|
+
{
|
|
10094
|
+
category_id: 'WhiskyLowland2',
|
|
10095
|
+
category_name: 'Lowland 2',
|
|
10096
|
+
category_order: 2,
|
|
10097
|
+
documents: [],
|
|
10098
|
+
sub_categories: []
|
|
10099
|
+
}
|
|
10100
|
+
]
|
|
10101
|
+
},
|
|
10102
|
+
{
|
|
10103
|
+
category_id: 'WhiskyIslay',
|
|
10104
|
+
category_name: 'Islay',
|
|
10105
|
+
category_order: 3,
|
|
10106
|
+
documents: [
|
|
10107
|
+
{
|
|
10108
|
+
document_url: '/test',
|
|
10109
|
+
document_filename: 'Details about Whisky Islay',
|
|
10110
|
+
document_binary_url: '/test/binary',
|
|
10111
|
+
attribute_path: '',
|
|
10112
|
+
upload_timestamp: ''
|
|
10113
|
+
},
|
|
10114
|
+
{
|
|
10115
|
+
document_url: '/test',
|
|
10116
|
+
document_filename: 'More information about Whisky Islay',
|
|
10117
|
+
document_binary_url: '/test/binary',
|
|
10118
|
+
attribute_path: '',
|
|
10119
|
+
upload_timestamp: ''
|
|
10120
|
+
}
|
|
10121
|
+
],
|
|
10122
|
+
sub_categories: []
|
|
10123
|
+
},
|
|
10124
|
+
{
|
|
10125
|
+
category_id: 'WhiskySpeyside',
|
|
10126
|
+
category_name: 'Speyside',
|
|
10127
|
+
category_order: 4,
|
|
10128
|
+
documents: [],
|
|
10129
|
+
sub_categories: []
|
|
10130
|
+
},
|
|
10131
|
+
{
|
|
10132
|
+
category_id: 'WhiskyCampbeltown',
|
|
10133
|
+
category_name: 'Campbeltown',
|
|
10134
|
+
category_order: 5,
|
|
10135
|
+
documents: [],
|
|
10136
|
+
sub_categories: []
|
|
10137
|
+
}
|
|
10138
|
+
]
|
|
10139
|
+
}
|
|
10140
|
+
]
|
|
10141
|
+
}
|
|
10142
|
+
];
|
|
10143
|
+
};
|
|
10144
|
+
return CaseFileViewFolderComponent;
|
|
10145
|
+
}());
|
|
10146
|
+
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
10147
|
+
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(); };
|
|
10148
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 9, vars: 3, consts: [[1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], [1, "document-tree-container"], [3, "dataSource", "treeControl"], ["class", "document-tree-node", 4, "cdkTreeNodeDef"], ["class", "document-tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 1, "node__icon"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "node__iconImg"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
9731
10149
|
if (rf & 1) {
|
|
9732
10150
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
9733
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
9734
|
-
i0__namespace.ɵɵ
|
|
10151
|
+
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
10152
|
+
i0__namespace.ɵɵtext(2, "Documents");
|
|
10153
|
+
i0__namespace.ɵɵelementEnd();
|
|
10154
|
+
i0__namespace.ɵɵelementStart(3, "div");
|
|
10155
|
+
i0__namespace.ɵɵelementStart(4, "ccd-case-file-view-folder-sort", 2);
|
|
10156
|
+
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_4_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_4_listener() { return ctx.sortDataSourceDescAlphabetically(); });
|
|
10157
|
+
i0__namespace.ɵɵelementEnd();
|
|
10158
|
+
i0__namespace.ɵɵelementEnd();
|
|
10159
|
+
i0__namespace.ɵɵelementEnd();
|
|
10160
|
+
i0__namespace.ɵɵelementStart(5, "div", 3);
|
|
10161
|
+
i0__namespace.ɵɵelementStart(6, "cdk-tree", 4);
|
|
10162
|
+
i0__namespace.ɵɵtemplate(7, CaseFileViewFolderComponent_cdk_nested_tree_node_7_Template, 8, 1, "cdk-nested-tree-node", 5);
|
|
10163
|
+
i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_cdk_nested_tree_node_8_Template, 10, 5, "cdk-nested-tree-node", 6);
|
|
9735
10164
|
i0__namespace.ɵɵelementEnd();
|
|
9736
|
-
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 2, 1, "span", 3);
|
|
9737
|
-
i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
9738
|
-
i0__namespace.ɵɵelement(5, "input", 5);
|
|
9739
10165
|
i0__namespace.ɵɵelementEnd();
|
|
9740
10166
|
}
|
|
9741
10167
|
if (rf & 2) {
|
|
9742
|
-
i0__namespace.ɵɵ
|
|
9743
|
-
i0__namespace.ɵɵ
|
|
9744
|
-
i0__namespace.ɵɵ
|
|
9745
|
-
i0__namespace.ɵɵ
|
|
9746
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
9747
|
-
i0__namespace.ɵɵadvance(1);
|
|
9748
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
9749
|
-
i0__namespace.ɵɵadvance(1);
|
|
9750
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
|
|
9751
|
-
i0__namespace.ɵɵadvance(1);
|
|
9752
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
10168
|
+
i0__namespace.ɵɵadvance(6);
|
|
10169
|
+
i0__namespace.ɵɵproperty("dataSource", ctx.nestedDataSource)("treeControl", ctx.nestedTreeControl);
|
|
10170
|
+
i0__namespace.ɵɵadvance(2);
|
|
10171
|
+
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx.nestedChildren);
|
|
9753
10172
|
}
|
|
9754
|
-
}, directives: [
|
|
9755
|
-
var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
10173
|
+
}, directives: [CaseFileViewFolderSortComponent, i2__namespace.CdkTree, i2__namespace.CdkTreeNodeDef, i2__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i2__namespace.CdkTreeNodeToggle, i2__namespace.CdkTreeNodeOutlet], styles: [".document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.document-tree-container[_ngcontent-%COMP%]{margin:4px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .document-tree-container[_ngcontent-%COMP%] .document-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{display:block}.document-tree-container[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%] .document-tree-node[_ngcontent-%COMP%]{padding-left:40px}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__iconImg[_ngcontent-%COMP%]{display:block;height:24px;width:24px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;padding-top:4px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
|
|
9756
10174
|
(function () {
|
|
9757
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
10175
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
9758
10176
|
type: i0.Component,
|
|
9759
10177
|
args: [{
|
|
9760
|
-
selector: 'ccd-
|
|
9761
|
-
templateUrl: '
|
|
10178
|
+
selector: 'ccd-case-file-view-folder',
|
|
10179
|
+
templateUrl: './case-file-view-folder.component.html',
|
|
10180
|
+
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
9762
10181
|
}]
|
|
9763
|
-
}],
|
|
9764
|
-
type: i0.
|
|
9765
|
-
args: ['writeComplexFieldComponent', /* TODO: add static flag */ {}]
|
|
10182
|
+
}], function () { return []; }, { categoriesAndDocuments: [{
|
|
10183
|
+
type: i0.Input
|
|
9766
10184
|
}] });
|
|
9767
10185
|
})();
|
|
9768
10186
|
|
|
9769
|
-
var
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
i0__namespace.ɵɵelement(2, "th", 4);
|
|
9775
|
-
i0__namespace.ɵɵelementStart(3, "td");
|
|
9776
|
-
i0__namespace.ɵɵelement(4, "ccd-field-read", 5);
|
|
9777
|
-
i0__namespace.ɵɵelementEnd();
|
|
9778
|
-
i0__namespace.ɵɵelementEnd();
|
|
9779
|
-
i0__namespace.ɵɵelementEnd();
|
|
9780
|
-
}
|
|
9781
|
-
if (rf & 2) {
|
|
9782
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
9783
|
-
i0__namespace.ɵɵadvance(4);
|
|
9784
|
-
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$F, 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);
|
|
10187
|
+
var CaseFileViewFieldComponent = /** @class */ (function () {
|
|
10188
|
+
function CaseFileViewFieldComponent(elementRef, route, caseFileViewService) {
|
|
10189
|
+
this.elementRef = elementRef;
|
|
10190
|
+
this.route = route;
|
|
10191
|
+
this.caseFileViewService = caseFileViewService;
|
|
9785
10192
|
}
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
10193
|
+
CaseFileViewFieldComponent.prototype.ngOnInit = function () {
|
|
10194
|
+
var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
|
|
10195
|
+
this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
|
|
10196
|
+
};
|
|
10197
|
+
CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
|
|
10198
|
+
var slider = this.elementRef.nativeElement.querySelector('.slider');
|
|
10199
|
+
var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
|
|
10200
|
+
var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
|
|
10201
|
+
var mousemove$ = rxjs.fromEvent(document, 'mousemove');
|
|
10202
|
+
var mouseup$ = rxjs.fromEvent(document, 'mouseup');
|
|
10203
|
+
var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
|
|
10204
|
+
var x = start.clientX;
|
|
10205
|
+
var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
|
|
10206
|
+
return mousemove$.pipe(operators.map(function (move) {
|
|
10207
|
+
move.preventDefault();
|
|
10208
|
+
return {
|
|
10209
|
+
dx: move.clientX - x,
|
|
10210
|
+
documentTreeContainerWidth: documentTreeContainerWidth
|
|
10211
|
+
};
|
|
10212
|
+
}), operators.takeUntil(mouseup$));
|
|
10213
|
+
}));
|
|
10214
|
+
drag$.subscribe(function (pos) {
|
|
10215
|
+
var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
|
|
10216
|
+
documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
|
|
10217
|
+
});
|
|
10218
|
+
};
|
|
10219
|
+
return CaseFileViewFieldComponent;
|
|
10220
|
+
}());
|
|
10221
|
+
CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
|
|
10222
|
+
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)); };
|
|
10223
|
+
CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 1, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [3, "categoriesAndDocuments"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
|
|
10224
|
+
if (rf & 1) {
|
|
10225
|
+
i0__namespace.ɵɵelementStart(0, "h2", 0);
|
|
10226
|
+
i0__namespace.ɵɵtext(1, "Case file");
|
|
10227
|
+
i0__namespace.ɵɵelementEnd();
|
|
10228
|
+
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
10229
|
+
i0__namespace.ɵɵelementStart(3, "div", 2);
|
|
10230
|
+
i0__namespace.ɵɵelement(4, "ccd-case-file-view-folder", 3);
|
|
10231
|
+
i0__namespace.ɵɵelementEnd();
|
|
10232
|
+
i0__namespace.ɵɵelement(5, "div", 4);
|
|
10233
|
+
i0__namespace.ɵɵelementStart(6, "div", 5);
|
|
10234
|
+
i0__namespace.ɵɵtext(7, " Media viewer ");
|
|
10235
|
+
i0__namespace.ɵɵelementEnd();
|
|
10236
|
+
i0__namespace.ɵɵelementEnd();
|
|
10237
|
+
}
|
|
10238
|
+
if (rf & 2) {
|
|
10239
|
+
i0__namespace.ɵɵadvance(4);
|
|
10240
|
+
i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx.categoriesAndDocuments$);
|
|
10241
|
+
}
|
|
10242
|
+
}, directives: [CaseFileViewFolderComponent], styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{flex:1 1 0%}"] });
|
|
10243
|
+
(function () {
|
|
10244
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
|
|
10245
|
+
type: i0.Component,
|
|
10246
|
+
args: [{
|
|
10247
|
+
selector: 'ccd-case-file-view-field',
|
|
10248
|
+
templateUrl: './case-file-view-field.component.html',
|
|
10249
|
+
styleUrls: ['./case-file-view-field.component.scss'],
|
|
10250
|
+
}]
|
|
10251
|
+
}], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }]; }, null);
|
|
10252
|
+
})();
|
|
10253
|
+
|
|
10254
|
+
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
9789
10255
|
if (rf & 1) {
|
|
9790
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
9791
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
9792
|
-
i0__namespace.ɵɵ
|
|
10256
|
+
i0__namespace.ɵɵelementStart(0, "a", 1);
|
|
10257
|
+
i0__namespace.ɵɵelementStart(1, "span", 2);
|
|
10258
|
+
i0__namespace.ɵɵtext(2);
|
|
10259
|
+
i0__namespace.ɵɵpipe(3, "ccdCaseReference");
|
|
9793
10260
|
i0__namespace.ɵɵelementEnd();
|
|
9794
10261
|
i0__namespace.ɵɵelementEnd();
|
|
9795
10262
|
}
|
|
9796
10263
|
if (rf & 2) {
|
|
9797
|
-
var
|
|
9798
|
-
|
|
9799
|
-
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
10264
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
10265
|
+
i0__namespace.ɵɵpropertyInterpolate1("href", "/v2/case/", ctx_r0.caseField.value.CaseReference, "", i0__namespace.ɵɵsanitizeUrl);
|
|
9800
10266
|
i0__namespace.ɵɵadvance(2);
|
|
9801
|
-
i0__namespace.ɵɵ
|
|
10267
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r0.caseField.value.CaseReference ? i0__namespace.ɵɵpipeBind1(3, 2, ctx_r0.caseField.value.CaseReference) : "");
|
|
9802
10268
|
}
|
|
9803
10269
|
}
|
|
9804
|
-
function
|
|
9805
|
-
|
|
9806
|
-
|
|
10270
|
+
var ReadCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
10271
|
+
__extends(ReadCaseLinkFieldComponent, _super);
|
|
10272
|
+
function ReadCaseLinkFieldComponent() {
|
|
10273
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10274
|
+
}
|
|
10275
|
+
ReadCaseLinkFieldComponent.prototype.hasReference = function () {
|
|
10276
|
+
return this.caseField.value && this.caseField.value.CaseReference;
|
|
10277
|
+
};
|
|
10278
|
+
return ReadCaseLinkFieldComponent;
|
|
10279
|
+
}(AbstractFieldReadComponent));
|
|
10280
|
+
ReadCaseLinkFieldComponent.ɵfac = function ReadCaseLinkFieldComponent_Factory(t) { return ɵReadCaseLinkFieldComponent_BaseFactory(t || ReadCaseLinkFieldComponent); };
|
|
10281
|
+
ReadCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseLinkFieldComponent, selectors: [["ccd-read-case-link-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["target", "_blank", 3, "href", 4, "ngIf"], ["target", "_blank", 3, "href"], [1, "text-16"]], template: function ReadCaseLinkFieldComponent_Template(rf, ctx) {
|
|
10282
|
+
if (rf & 1) {
|
|
10283
|
+
i0__namespace.ɵɵtemplate(0, ReadCaseLinkFieldComponent_a_0_Template, 4, 4, "a", 0);
|
|
10284
|
+
}
|
|
10285
|
+
if (rf & 2) {
|
|
10286
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.hasReference());
|
|
10287
|
+
}
|
|
10288
|
+
}, directives: [i1__namespace.NgIf], pipes: [CaseReferencePipe], encapsulation: 2 });
|
|
10289
|
+
var ɵReadCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadCaseLinkFieldComponent);
|
|
10290
|
+
(function () {
|
|
10291
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadCaseLinkFieldComponent, [{
|
|
10292
|
+
type: i0.Component,
|
|
10293
|
+
args: [{
|
|
10294
|
+
selector: 'ccd-read-case-link-field',
|
|
10295
|
+
templateUrl: 'read-case-link-field.html'
|
|
10296
|
+
}]
|
|
10297
|
+
}], null, null);
|
|
10298
|
+
})();
|
|
10299
|
+
|
|
10300
|
+
var FirstErrorPipe = /** @class */ (function () {
|
|
10301
|
+
function FirstErrorPipe() {
|
|
10302
|
+
}
|
|
10303
|
+
FirstErrorPipe.prototype.transform = function (value, args) {
|
|
10304
|
+
if (!value) {
|
|
10305
|
+
return '';
|
|
10306
|
+
}
|
|
10307
|
+
if (!args) {
|
|
10308
|
+
args = 'Field';
|
|
10309
|
+
}
|
|
10310
|
+
var keys = Object.keys(value);
|
|
10311
|
+
if (!keys.length) {
|
|
10312
|
+
return '';
|
|
10313
|
+
}
|
|
10314
|
+
if (keys[0] === 'required') {
|
|
10315
|
+
return args + " is required";
|
|
10316
|
+
}
|
|
10317
|
+
else if (keys[0] === 'pattern') {
|
|
10318
|
+
return "The data entered is not valid for " + args;
|
|
10319
|
+
}
|
|
10320
|
+
else if (keys[0] === 'minlength') {
|
|
10321
|
+
return args + " is below the minimum length";
|
|
10322
|
+
}
|
|
10323
|
+
else if (keys[0] === 'maxlength') {
|
|
10324
|
+
return args + " exceeds the maximum length";
|
|
10325
|
+
}
|
|
10326
|
+
else if (value.hasOwnProperty('matDatetimePickerParse')) {
|
|
10327
|
+
return 'The date entered is not valid. Please provide a valid date';
|
|
10328
|
+
}
|
|
10329
|
+
return value[keys[0]];
|
|
10330
|
+
};
|
|
10331
|
+
return FirstErrorPipe;
|
|
10332
|
+
}());
|
|
10333
|
+
FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(); };
|
|
10334
|
+
FirstErrorPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: true });
|
|
10335
|
+
(function () {
|
|
10336
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FirstErrorPipe, [{
|
|
10337
|
+
type: i0.Pipe,
|
|
10338
|
+
args: [{
|
|
10339
|
+
name: 'ccdFirstError'
|
|
10340
|
+
}]
|
|
10341
|
+
}], null, null);
|
|
10342
|
+
})();
|
|
10343
|
+
|
|
10344
|
+
var _c0$F = ["writeComplexFieldComponent"];
|
|
10345
|
+
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
10346
|
+
if (rf & 1) {
|
|
10347
|
+
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
10348
|
+
i0__namespace.ɵɵtext(1);
|
|
10349
|
+
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
10350
|
+
i0__namespace.ɵɵelementEnd();
|
|
10351
|
+
}
|
|
10352
|
+
if (rf & 2) {
|
|
10353
|
+
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
10354
|
+
i0__namespace.ɵɵadvance(1);
|
|
10355
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
10356
|
+
}
|
|
10357
|
+
}
|
|
10358
|
+
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) {
|
|
10359
|
+
if (rf & 1) {
|
|
10360
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
10361
|
+
i0__namespace.ɵɵtext(1);
|
|
10362
|
+
i0__namespace.ɵɵelementEnd();
|
|
10363
|
+
}
|
|
10364
|
+
if (rf & 2) {
|
|
10365
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
10366
|
+
i0__namespace.ɵɵadvance(1);
|
|
10367
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
|
|
10368
|
+
}
|
|
10369
|
+
}
|
|
10370
|
+
function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) {
|
|
10371
|
+
if (rf & 1) {
|
|
10372
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
10373
|
+
i0__namespace.ɵɵtext(1);
|
|
10374
|
+
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
10375
|
+
i0__namespace.ɵɵelementEnd();
|
|
10376
|
+
}
|
|
10377
|
+
if (rf & 2) {
|
|
10378
|
+
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
10379
|
+
i0__namespace.ɵɵadvance(1);
|
|
10380
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label));
|
|
10381
|
+
}
|
|
10382
|
+
}
|
|
10383
|
+
var _c1$g = function (a0) { return { "form-group-error": a0 }; };
|
|
10384
|
+
var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
10385
|
+
__extends(WriteCaseLinkFieldComponent, _super);
|
|
10386
|
+
function WriteCaseLinkFieldComponent() {
|
|
10387
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
10388
|
+
}
|
|
10389
|
+
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
10390
|
+
var e_1, _a;
|
|
10391
|
+
if (this.caseField.value) {
|
|
10392
|
+
this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
|
|
10393
|
+
CaseReference: new i1$2.FormControl(this.caseField.value.CaseReference, i1$2.Validators.required),
|
|
10394
|
+
}), true);
|
|
10395
|
+
}
|
|
10396
|
+
else {
|
|
10397
|
+
this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
|
|
10398
|
+
CaseReference: new i1$2.FormControl(null, i1$2.Validators.required),
|
|
10399
|
+
}), true);
|
|
10400
|
+
}
|
|
10401
|
+
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
10402
|
+
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
10403
|
+
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
10404
|
+
// field uses the Complex type, it is meant to be treated as one field
|
|
10405
|
+
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
10406
|
+
try {
|
|
10407
|
+
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
10408
|
+
var caseLinkSubField = _c.value;
|
|
10409
|
+
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
10410
|
+
}
|
|
10411
|
+
}
|
|
10412
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
10413
|
+
finally {
|
|
10414
|
+
try {
|
|
10415
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
10416
|
+
}
|
|
10417
|
+
finally { if (e_1) throw e_1.error; }
|
|
10418
|
+
}
|
|
10419
|
+
}
|
|
10420
|
+
};
|
|
10421
|
+
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
10422
|
+
if (!valueString) {
|
|
10423
|
+
return false;
|
|
10424
|
+
}
|
|
10425
|
+
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
10426
|
+
};
|
|
10427
|
+
WriteCaseLinkFieldComponent.prototype.caseReferenceValidator = function () {
|
|
10428
|
+
var _this = this;
|
|
10429
|
+
return function (control) {
|
|
10430
|
+
if (control.value) {
|
|
10431
|
+
if (_this.validCaseReference(control.value)) {
|
|
10432
|
+
return null;
|
|
10433
|
+
}
|
|
10434
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
10435
|
+
}
|
|
10436
|
+
else {
|
|
10437
|
+
if (control.touched) {
|
|
10438
|
+
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
10439
|
+
}
|
|
10440
|
+
}
|
|
10441
|
+
return null;
|
|
10442
|
+
};
|
|
10443
|
+
};
|
|
10444
|
+
return WriteCaseLinkFieldComponent;
|
|
10445
|
+
}(AbstractFieldWriteComponent));
|
|
10446
|
+
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
|
|
10447
|
+
WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
|
|
10448
|
+
if (rf & 1) {
|
|
10449
|
+
i0__namespace.ɵɵviewQuery(_c0$F, 1);
|
|
10450
|
+
}
|
|
10451
|
+
if (rf & 2) {
|
|
10452
|
+
var _t = void 0;
|
|
10453
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
10454
|
+
}
|
|
10455
|
+
}, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 6, vars: 9, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
10456
|
+
if (rf & 1) {
|
|
10457
|
+
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
10458
|
+
i0__namespace.ɵɵelementStart(1, "label", 1);
|
|
10459
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
10460
|
+
i0__namespace.ɵɵelementEnd();
|
|
10461
|
+
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 2, 1, "span", 3);
|
|
10462
|
+
i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
10463
|
+
i0__namespace.ɵɵelement(5, "input", 5);
|
|
10464
|
+
i0__namespace.ɵɵelementEnd();
|
|
10465
|
+
}
|
|
10466
|
+
if (rf & 2) {
|
|
10467
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
10468
|
+
i0__namespace.ɵɵadvance(1);
|
|
10469
|
+
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
10470
|
+
i0__namespace.ɵɵadvance(1);
|
|
10471
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
10472
|
+
i0__namespace.ɵɵadvance(1);
|
|
10473
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
10474
|
+
i0__namespace.ɵɵadvance(1);
|
|
10475
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
|
|
10476
|
+
i0__namespace.ɵɵadvance(1);
|
|
10477
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
|
|
10478
|
+
}
|
|
10479
|
+
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
10480
|
+
var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
|
|
10481
|
+
(function () {
|
|
10482
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
10483
|
+
type: i0.Component,
|
|
10484
|
+
args: [{
|
|
10485
|
+
selector: 'ccd-write-case-link-field',
|
|
10486
|
+
templateUrl: 'write-case-link-field.html'
|
|
10487
|
+
}]
|
|
10488
|
+
}], null, { writeComplexFieldComponent: [{
|
|
10489
|
+
type: i0.ViewChild,
|
|
10490
|
+
args: ['writeComplexFieldComponent', /* TODO: add static flag */ {}]
|
|
10491
|
+
}] });
|
|
10492
|
+
})();
|
|
10493
|
+
|
|
10494
|
+
var _c0$E = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
|
|
10495
|
+
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
|
|
10496
|
+
if (rf & 1) {
|
|
10497
|
+
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
10498
|
+
i0__namespace.ɵɵelementStart(1, "tr");
|
|
10499
|
+
i0__namespace.ɵɵelement(2, "th", 4);
|
|
10500
|
+
i0__namespace.ɵɵelementStart(3, "td");
|
|
10501
|
+
i0__namespace.ɵɵelement(4, "ccd-field-read", 5);
|
|
10502
|
+
i0__namespace.ɵɵelementEnd();
|
|
10503
|
+
i0__namespace.ɵɵelementEnd();
|
|
10504
|
+
i0__namespace.ɵɵelementEnd();
|
|
10505
|
+
}
|
|
10506
|
+
if (rf & 2) {
|
|
10507
|
+
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
10508
|
+
i0__namespace.ɵɵadvance(4);
|
|
10509
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$E, 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);
|
|
10510
|
+
}
|
|
10511
|
+
}
|
|
10512
|
+
var _c1$f = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
|
|
10513
|
+
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
|
|
10514
|
+
if (rf & 1) {
|
|
10515
|
+
i0__namespace.ɵɵelementStart(0, "tr");
|
|
10516
|
+
i0__namespace.ɵɵelementStart(1, "td");
|
|
10517
|
+
i0__namespace.ɵɵelement(2, "ccd-field-read", 7);
|
|
10518
|
+
i0__namespace.ɵɵelementEnd();
|
|
10519
|
+
i0__namespace.ɵɵelementEnd();
|
|
10520
|
+
}
|
|
10521
|
+
if (rf & 2) {
|
|
10522
|
+
var item_r4 = ctx.$implicit;
|
|
10523
|
+
var i_r5 = ctx.index;
|
|
10524
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext(3);
|
|
10525
|
+
i0__namespace.ɵɵadvance(2);
|
|
10526
|
+
i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$f, 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));
|
|
10527
|
+
}
|
|
10528
|
+
}
|
|
10529
|
+
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
|
|
10530
|
+
if (rf & 1) {
|
|
10531
|
+
i0__namespace.ɵɵelementStart(0, "tbody");
|
|
9807
10532
|
i0__namespace.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 3, 10, "tr", 6);
|
|
9808
10533
|
i0__namespace.ɵɵelementEnd();
|
|
9809
10534
|
}
|
|
@@ -9888,7 +10613,7 @@
|
|
|
9888
10613
|
};
|
|
9889
10614
|
return RemoveDialogComponent;
|
|
9890
10615
|
}());
|
|
9891
|
-
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
10616
|
+
RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
9892
10617
|
RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
|
|
9893
10618
|
if (rf & 1) {
|
|
9894
10619
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -9929,10 +10654,10 @@
|
|
|
9929
10654
|
templateUrl: './remove-dialog.component.html',
|
|
9930
10655
|
styleUrls: ['../action-dialog.component.scss']
|
|
9931
10656
|
}]
|
|
9932
|
-
}], function () { return [{ type: i1__namespace$
|
|
10657
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
9933
10658
|
})();
|
|
9934
10659
|
|
|
9935
|
-
var _c0$
|
|
10660
|
+
var _c0$D = ["collectionItem"];
|
|
9936
10661
|
function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
|
|
9937
10662
|
if (rf & 1) {
|
|
9938
10663
|
i0__namespace.ɵɵelementStart(0, "span", 9);
|
|
@@ -10308,7 +11033,7 @@
|
|
|
10308
11033
|
};
|
|
10309
11034
|
WriteCollectionFieldComponent.prototype.openModal = function (i) {
|
|
10310
11035
|
var _this = this;
|
|
10311
|
-
var dialogConfig = new i1$
|
|
11036
|
+
var dialogConfig = new i1$6.MatDialogConfig();
|
|
10312
11037
|
dialogConfig.disableClose = true;
|
|
10313
11038
|
dialogConfig.autoFocus = true;
|
|
10314
11039
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -10342,10 +11067,10 @@
|
|
|
10342
11067
|
};
|
|
10343
11068
|
return WriteCollectionFieldComponent;
|
|
10344
11069
|
}(AbstractFieldWriteComponent));
|
|
10345
|
-
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
11070
|
+
WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
|
|
10346
11071
|
WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
|
|
10347
11072
|
if (rf & 1) {
|
|
10348
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
11073
|
+
i0__namespace.ɵɵviewQuery(_c0$D, 1);
|
|
10349
11074
|
}
|
|
10350
11075
|
if (rf & 2) {
|
|
10351
11076
|
var _t = void 0;
|
|
@@ -10391,7 +11116,7 @@
|
|
|
10391
11116
|
templateUrl: './write-collection-field.html',
|
|
10392
11117
|
styleUrls: ['./collection-field.scss']
|
|
10393
11118
|
}]
|
|
10394
|
-
}], function () { return [{ type: i1__namespace$
|
|
11119
|
+
}], function () { return [{ type: i1__namespace$6.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
|
|
10395
11120
|
type: i0.Input
|
|
10396
11121
|
}], formGroup: [{
|
|
10397
11122
|
type: i0.Input
|
|
@@ -10427,7 +11152,7 @@
|
|
|
10427
11152
|
i0__namespace.ɵɵproperty("caseField", field_r1)("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.idPrefix);
|
|
10428
11153
|
}
|
|
10429
11154
|
}
|
|
10430
|
-
var _c0$
|
|
11155
|
+
var _c0$C = function (a0, a4, a5) { return [a0, false, undefined, true, a4, a5]; };
|
|
10431
11156
|
/**
|
|
10432
11157
|
* Display a complex type fields as a list of values without labels.
|
|
10433
11158
|
* This is intended for rendering of Check Your Answer page.
|
|
@@ -10451,7 +11176,7 @@
|
|
|
10451
11176
|
}
|
|
10452
11177
|
if (rf & 2) {
|
|
10453
11178
|
i0__namespace.ɵɵadvance(1);
|
|
10454
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$
|
|
11179
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(2, 1, i0__namespace.ɵɵpureFunction3(8, _c0$C, ctx.caseField, ctx.topLevelFormGroup, ctx.id())));
|
|
10455
11180
|
}
|
|
10456
11181
|
}, styles: ["dl.complex-raw[_ngcontent-%COMP%]{list-style-type:none;margin:5px 0 10px}dl.complex-raw[_ngcontent-%COMP%] dl.complex-raw[_ngcontent-%COMP%]{padding-left:2ch}dl.complex-raw[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{font-weight:700}"] });
|
|
10457
11182
|
var ɵReadComplexFieldRawComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadComplexFieldRawComponent);
|
|
@@ -11216,8 +11941,8 @@
|
|
|
11216
11941
|
},
|
|
11217
11942
|
};
|
|
11218
11943
|
|
|
11219
|
-
var _c0$
|
|
11220
|
-
var _c1$
|
|
11944
|
+
var _c0$B = ["picker"];
|
|
11945
|
+
var _c1$e = ["input"];
|
|
11221
11946
|
function DatetimePickerComponent_span_3_Template(rf, ctx) {
|
|
11222
11947
|
if (rf & 1) {
|
|
11223
11948
|
i0__namespace.ɵɵelementStart(0, "span", 10);
|
|
@@ -11439,8 +12164,8 @@
|
|
|
11439
12164
|
DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
|
|
11440
12165
|
DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
|
|
11441
12166
|
if (rf & 1) {
|
|
11442
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
11443
|
-
i0__namespace.ɵɵviewQuery(_c1$
|
|
12167
|
+
i0__namespace.ɵɵviewQuery(_c0$B, 1);
|
|
12168
|
+
i0__namespace.ɵɵviewQuery(_c1$e, 1);
|
|
11444
12169
|
}
|
|
11445
12170
|
if (rf & 2) {
|
|
11446
12171
|
var _t = void 0;
|
|
@@ -11584,7 +12309,7 @@
|
|
|
11584
12309
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label));
|
|
11585
12310
|
}
|
|
11586
12311
|
}
|
|
11587
|
-
var _c0$
|
|
12312
|
+
var _c0$A = function (a0) { return { "form-group-error": a0 }; };
|
|
11588
12313
|
var WriteDateFieldComponent = /** @class */ (function (_super) {
|
|
11589
12314
|
__extends(WriteDateFieldComponent, _super);
|
|
11590
12315
|
function WriteDateFieldComponent() {
|
|
@@ -11614,7 +12339,7 @@
|
|
|
11614
12339
|
i0__namespace.ɵɵelementEnd();
|
|
11615
12340
|
}
|
|
11616
12341
|
if (rf & 2) {
|
|
11617
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$
|
|
12342
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$A, ctx.dateControl && !ctx.dateControl.valid && (ctx.dateControl.dirty || ctx.dateControl.touched)));
|
|
11618
12343
|
i0__namespace.ɵɵadvance(3);
|
|
11619
12344
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
11620
12345
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -11782,7 +12507,7 @@
|
|
|
11782
12507
|
};
|
|
11783
12508
|
return DocumentDialogComponent;
|
|
11784
12509
|
}());
|
|
11785
|
-
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
12510
|
+
DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
11786
12511
|
DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
|
|
11787
12512
|
if (rf & 1) {
|
|
11788
12513
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -11823,11 +12548,11 @@
|
|
|
11823
12548
|
templateUrl: './document-dialog.component.html',
|
|
11824
12549
|
styleUrls: ['../action-dialog.component.scss']
|
|
11825
12550
|
}]
|
|
11826
|
-
}], function () { return [{ type: i1__namespace$
|
|
12551
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
11827
12552
|
})();
|
|
11828
12553
|
|
|
11829
12554
|
function initDialog() {
|
|
11830
|
-
var dialogConfig = new i1$
|
|
12555
|
+
var dialogConfig = new i1$6.MatDialogConfig();
|
|
11831
12556
|
dialogConfig.disableClose = true;
|
|
11832
12557
|
dialogConfig.autoFocus = true;
|
|
11833
12558
|
dialogConfig.ariaLabel = 'Label';
|
|
@@ -11860,7 +12585,7 @@
|
|
|
11860
12585
|
}], null, null);
|
|
11861
12586
|
})();
|
|
11862
12587
|
|
|
11863
|
-
var _c0$
|
|
12588
|
+
var _c0$z = ["fileInput"];
|
|
11864
12589
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
|
|
11865
12590
|
if (rf & 1) {
|
|
11866
12591
|
i0__namespace.ɵɵelementStart(0, "span", 12);
|
|
@@ -11894,7 +12619,7 @@
|
|
|
11894
12619
|
i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
|
|
11895
12620
|
}
|
|
11896
12621
|
}
|
|
11897
|
-
var _c1$
|
|
12622
|
+
var _c1$d = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
11898
12623
|
var WriteDocumentFieldComponent = /** @class */ (function (_super) {
|
|
11899
12624
|
__extends(WriteDocumentFieldComponent, _super);
|
|
11900
12625
|
function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
@@ -12151,10 +12876,10 @@
|
|
|
12151
12876
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
12152
12877
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
12153
12878
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
12154
|
-
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$
|
|
12879
|
+
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$6.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
12155
12880
|
WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
|
|
12156
12881
|
if (rf & 1) {
|
|
12157
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
12882
|
+
i0__namespace.ɵɵviewQuery(_c0$z, 1);
|
|
12158
12883
|
}
|
|
12159
12884
|
if (rf & 2) {
|
|
12160
12885
|
var _t = void 0;
|
|
@@ -12196,7 +12921,7 @@
|
|
|
12196
12921
|
i0__namespace.ɵɵelementEnd();
|
|
12197
12922
|
}
|
|
12198
12923
|
if (rf & 2) {
|
|
12199
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$
|
|
12924
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$d, !ctx.valid));
|
|
12200
12925
|
i0__namespace.ɵɵadvance(1);
|
|
12201
12926
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12202
12927
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12225,7 +12950,7 @@
|
|
|
12225
12950
|
selector: 'ccd-write-document-field',
|
|
12226
12951
|
templateUrl: './write-document-field.html'
|
|
12227
12952
|
}]
|
|
12228
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$
|
|
12953
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$6.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
12229
12954
|
type: i0.ViewChild,
|
|
12230
12955
|
args: ['fileInput', { static: false }]
|
|
12231
12956
|
}], clickout: [{
|
|
@@ -12354,7 +13079,7 @@
|
|
|
12354
13079
|
i0__namespace.ɵɵtextInterpolate(type_r5.label);
|
|
12355
13080
|
}
|
|
12356
13081
|
}
|
|
12357
|
-
var _c0$
|
|
13082
|
+
var _c0$y = function (a0) { return { "form-group-error": a0 }; };
|
|
12358
13083
|
var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
|
|
12359
13084
|
__extends(WriteDynamicListFieldComponent, _super);
|
|
12360
13085
|
function WriteDynamicListFieldComponent() {
|
|
@@ -12403,7 +13128,7 @@
|
|
|
12403
13128
|
i0__namespace.ɵɵelementEnd();
|
|
12404
13129
|
}
|
|
12405
13130
|
if (rf & 2) {
|
|
12406
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$
|
|
13131
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$y, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
|
|
12407
13132
|
i0__namespace.ɵɵadvance(1);
|
|
12408
13133
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12409
13134
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12553,7 +13278,7 @@
|
|
|
12553
13278
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
|
|
12554
13279
|
}
|
|
12555
13280
|
}
|
|
12556
|
-
var _c0$
|
|
13281
|
+
var _c0$x = function (a0) { return { selected: a0 }; };
|
|
12557
13282
|
function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
|
|
12558
13283
|
if (rf & 1) {
|
|
12559
13284
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -12566,7 +13291,7 @@
|
|
|
12566
13291
|
if (rf & 2) {
|
|
12567
13292
|
var radioButton_r5 = ctx.$implicit;
|
|
12568
13293
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
12569
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
13294
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$x, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
|
|
12570
13295
|
i0__namespace.ɵɵadvance(1);
|
|
12571
13296
|
i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
|
|
12572
13297
|
i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
|
|
@@ -12576,7 +13301,7 @@
|
|
|
12576
13301
|
i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
|
|
12577
13302
|
}
|
|
12578
13303
|
}
|
|
12579
|
-
var _c1$
|
|
13304
|
+
var _c1$c = function (a0) { return { "form-group-error": a0 }; };
|
|
12580
13305
|
var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
|
|
12581
13306
|
__extends(WriteDynamicRadioListFieldComponent, _super);
|
|
12582
13307
|
function WriteDynamicRadioListFieldComponent() {
|
|
@@ -12624,7 +13349,7 @@
|
|
|
12624
13349
|
i0__namespace.ɵɵelementEnd();
|
|
12625
13350
|
}
|
|
12626
13351
|
if (rf & 2) {
|
|
12627
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$
|
|
13352
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$c, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
|
|
12628
13353
|
i0__namespace.ɵɵadvance(3);
|
|
12629
13354
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12630
13355
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12731,8 +13456,8 @@
|
|
|
12731
13456
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
|
|
12732
13457
|
}
|
|
12733
13458
|
}
|
|
12734
|
-
var _c0$
|
|
12735
|
-
var _c1$
|
|
13459
|
+
var _c0$w = function (a0) { return { "form-group-error": a0 }; };
|
|
13460
|
+
var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
|
|
12736
13461
|
var WriteEmailFieldComponent = /** @class */ (function (_super) {
|
|
12737
13462
|
__extends(WriteEmailFieldComponent, _super);
|
|
12738
13463
|
function WriteEmailFieldComponent() {
|
|
@@ -12756,7 +13481,7 @@
|
|
|
12756
13481
|
i0__namespace.ɵɵelementEnd();
|
|
12757
13482
|
}
|
|
12758
13483
|
if (rf & 2) {
|
|
12759
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
13484
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$w, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
|
|
12760
13485
|
i0__namespace.ɵɵadvance(1);
|
|
12761
13486
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12762
13487
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -12766,7 +13491,7 @@
|
|
|
12766
13491
|
i0__namespace.ɵɵadvance(1);
|
|
12767
13492
|
i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
12768
13493
|
i0__namespace.ɵɵadvance(1);
|
|
12769
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
13494
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
12770
13495
|
}
|
|
12771
13496
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
12772
13497
|
var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
|
|
@@ -12888,7 +13613,7 @@
|
|
|
12888
13613
|
i0__namespace.ɵɵtextInterpolate(type_r4.label);
|
|
12889
13614
|
}
|
|
12890
13615
|
}
|
|
12891
|
-
var _c0$
|
|
13616
|
+
var _c0$v = function (a0) { return { "form-group-error": a0 }; };
|
|
12892
13617
|
var WriteFixedListFieldComponent = /** @class */ (function (_super) {
|
|
12893
13618
|
__extends(WriteFixedListFieldComponent, _super);
|
|
12894
13619
|
function WriteFixedListFieldComponent() {
|
|
@@ -12937,7 +13662,7 @@
|
|
|
12937
13662
|
i0__namespace.ɵɵelementEnd();
|
|
12938
13663
|
}
|
|
12939
13664
|
if (rf & 2) {
|
|
12940
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$
|
|
13665
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$v, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
12941
13666
|
i0__namespace.ɵɵadvance(1);
|
|
12942
13667
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
12943
13668
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13055,7 +13780,7 @@
|
|
|
13055
13780
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
|
|
13056
13781
|
}
|
|
13057
13782
|
}
|
|
13058
|
-
var _c0$
|
|
13783
|
+
var _c0$u = function (a0) { return { selected: a0 }; };
|
|
13059
13784
|
function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
|
|
13060
13785
|
if (rf & 1) {
|
|
13061
13786
|
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
@@ -13068,7 +13793,7 @@
|
|
|
13068
13793
|
if (rf & 2) {
|
|
13069
13794
|
var radioButton_r4 = ctx.$implicit;
|
|
13070
13795
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
13071
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$
|
|
13796
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$u, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
|
|
13072
13797
|
i0__namespace.ɵɵadvance(1);
|
|
13073
13798
|
i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
|
|
13074
13799
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13077,7 +13802,7 @@
|
|
|
13077
13802
|
i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
|
|
13078
13803
|
}
|
|
13079
13804
|
}
|
|
13080
|
-
var _c1$
|
|
13805
|
+
var _c1$a = function (a0) { return { "form-group-error": a0 }; };
|
|
13081
13806
|
var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
|
|
13082
13807
|
__extends(WriteFixedRadioListFieldComponent, _super);
|
|
13083
13808
|
function WriteFixedRadioListFieldComponent() {
|
|
@@ -13108,7 +13833,7 @@
|
|
|
13108
13833
|
i0__namespace.ɵɵelementEnd();
|
|
13109
13834
|
}
|
|
13110
13835
|
if (rf & 2) {
|
|
13111
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
13836
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
|
|
13112
13837
|
i0__namespace.ɵɵadvance(3);
|
|
13113
13838
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
13114
13839
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13160,7 +13885,7 @@
|
|
|
13160
13885
|
i0__namespace.ɵɵproperty("ngIf", event_r1.state_id !== "Draft");
|
|
13161
13886
|
}
|
|
13162
13887
|
}
|
|
13163
|
-
var _c0$
|
|
13888
|
+
var _c0$t = function (a2) { return ["./", "event", a2, "history"]; };
|
|
13164
13889
|
function EventLogTableComponent_tr_16_div_4_a_1_Template(rf, ctx) {
|
|
13165
13890
|
if (rf & 1) {
|
|
13166
13891
|
i0__namespace.ɵɵelementStart(0, "a", 18);
|
|
@@ -13170,7 +13895,7 @@
|
|
|
13170
13895
|
if (rf & 2) {
|
|
13171
13896
|
var event_r1 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
13172
13897
|
var ctx_r12 = i0__namespace.ɵɵnextContext();
|
|
13173
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
13898
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(4, _c0$t, event_r1.id))("target", "_blank");
|
|
13174
13899
|
i0__namespace.ɵɵattribute("aria-label", ctx_r12.getAriaLabelforLink(event_r1));
|
|
13175
13900
|
i0__namespace.ɵɵadvance(1);
|
|
13176
13901
|
i0__namespace.ɵɵtextInterpolate(event_r1.event_name);
|
|
@@ -13221,7 +13946,7 @@
|
|
|
13221
13946
|
i0__namespace.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
|
|
13222
13947
|
}
|
|
13223
13948
|
}
|
|
13224
|
-
var _c1$
|
|
13949
|
+
var _c1$9 = function (a0) { return { "EventLogTable-Selected": a0 }; };
|
|
13225
13950
|
function EventLogTableComponent_tr_16_Template(rf, ctx) {
|
|
13226
13951
|
if (rf & 1) {
|
|
13227
13952
|
var _r18_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -13258,7 +13983,7 @@
|
|
|
13258
13983
|
if (rf & 2) {
|
|
13259
13984
|
var event_r1 = ctx.$implicit;
|
|
13260
13985
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13261
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(22, _c1$
|
|
13986
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(22, _c1$9, ctx_r0.selected === event_r1));
|
|
13262
13987
|
i0__namespace.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
|
|
13263
13988
|
i0__namespace.ɵɵadvance(2);
|
|
13264
13989
|
i0__namespace.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
|
|
@@ -13647,7 +14372,7 @@
|
|
|
13647
14372
|
}], null, null);
|
|
13648
14373
|
})();
|
|
13649
14374
|
|
|
13650
|
-
var _c0$
|
|
14375
|
+
var _c0$s = ["fieldContainer"];
|
|
13651
14376
|
var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
|
|
13652
14377
|
var FieldWriteComponent = /** @class */ (function (_super) {
|
|
13653
14378
|
__extends(FieldWriteComponent, _super);
|
|
@@ -13701,7 +14426,7 @@
|
|
|
13701
14426
|
FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
13702
14427
|
FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
|
|
13703
14428
|
if (rf & 1) {
|
|
13704
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
14429
|
+
i0__namespace.ɵɵviewQuery(_c0$s, 3, i0.ViewContainerRef);
|
|
13705
14430
|
}
|
|
13706
14431
|
if (rf & 2) {
|
|
13707
14432
|
var _t = void 0;
|
|
@@ -13764,7 +14489,7 @@
|
|
|
13764
14489
|
i0__namespace.ɵɵprojection(0);
|
|
13765
14490
|
}
|
|
13766
14491
|
}
|
|
13767
|
-
var _c0$
|
|
14492
|
+
var _c0$r = ["*"];
|
|
13768
14493
|
var FieldReadLabelComponent = /** @class */ (function (_super) {
|
|
13769
14494
|
__extends(FieldReadLabelComponent, _super);
|
|
13770
14495
|
function FieldReadLabelComponent() {
|
|
@@ -13802,7 +14527,7 @@
|
|
|
13802
14527
|
return FieldReadLabelComponent;
|
|
13803
14528
|
}(AbstractFieldReadComponent));
|
|
13804
14529
|
FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
|
|
13805
|
-
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$
|
|
14530
|
+
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$r, 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) {
|
|
13806
14531
|
if (rf & 1) {
|
|
13807
14532
|
i0__namespace.ɵɵprojectionDef();
|
|
13808
14533
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -13949,7 +14674,7 @@
|
|
|
13949
14674
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
|
|
13950
14675
|
}
|
|
13951
14676
|
}
|
|
13952
|
-
var _c0$
|
|
14677
|
+
var _c0$q = function (a0) { return { "hide-autocomplete": a0 }; };
|
|
13953
14678
|
function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
|
|
13954
14679
|
if (rf & 1) {
|
|
13955
14680
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -13961,7 +14686,7 @@
|
|
|
13961
14686
|
if (rf & 2) {
|
|
13962
14687
|
var judicialUser_r5 = ctx.$implicit;
|
|
13963
14688
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
13964
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$
|
|
14689
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$q, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
|
|
13965
14690
|
i0__namespace.ɵɵadvance(1);
|
|
13966
14691
|
i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
|
|
13967
14692
|
}
|
|
@@ -14308,7 +15033,7 @@
|
|
|
14308
15033
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
|
|
14309
15034
|
}
|
|
14310
15035
|
}
|
|
14311
|
-
var _c0$
|
|
15036
|
+
var _c0$p = function (a0) { return { "form-group-error": a0 }; };
|
|
14312
15037
|
var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
|
|
14313
15038
|
__extends(WriteMoneyGbpFieldComponent, _super);
|
|
14314
15039
|
function WriteMoneyGbpFieldComponent() {
|
|
@@ -14338,7 +15063,7 @@
|
|
|
14338
15063
|
i0__namespace.ɵɵelementEnd();
|
|
14339
15064
|
}
|
|
14340
15065
|
if (rf & 2) {
|
|
14341
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
15066
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$p, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
|
|
14342
15067
|
i0__namespace.ɵɵadvance(1);
|
|
14343
15068
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14344
15069
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14486,7 +15211,7 @@
|
|
|
14486
15211
|
i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
|
|
14487
15212
|
}
|
|
14488
15213
|
}
|
|
14489
|
-
var _c0$
|
|
15214
|
+
var _c0$o = function (a0) { return { "error": a0 }; };
|
|
14490
15215
|
var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
|
|
14491
15216
|
__extends(WriteMultiSelectListFieldComponent, _super);
|
|
14492
15217
|
function WriteMultiSelectListFieldComponent() {
|
|
@@ -14550,7 +15275,7 @@
|
|
|
14550
15275
|
i0__namespace.ɵɵelementEnd();
|
|
14551
15276
|
}
|
|
14552
15277
|
if (rf & 2) {
|
|
14553
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$
|
|
15278
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$o, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
|
|
14554
15279
|
i0__namespace.ɵɵadvance(3);
|
|
14555
15280
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
14556
15281
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14641,8 +15366,8 @@
|
|
|
14641
15366
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
|
|
14642
15367
|
}
|
|
14643
15368
|
}
|
|
14644
|
-
var _c0$
|
|
14645
|
-
var _c1$
|
|
15369
|
+
var _c0$n = function (a0) { return { "form-group-error": a0 }; };
|
|
15370
|
+
var _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
14646
15371
|
var WriteNumberFieldComponent = /** @class */ (function (_super) {
|
|
14647
15372
|
__extends(WriteNumberFieldComponent, _super);
|
|
14648
15373
|
function WriteNumberFieldComponent() {
|
|
@@ -14666,7 +15391,7 @@
|
|
|
14666
15391
|
i0__namespace.ɵɵelementEnd();
|
|
14667
15392
|
}
|
|
14668
15393
|
if (rf & 2) {
|
|
14669
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
15394
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$n, !ctx.numberControl.valid && ctx.numberControl.dirty));
|
|
14670
15395
|
i0__namespace.ɵɵadvance(1);
|
|
14671
15396
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
14672
15397
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -14676,7 +15401,7 @@
|
|
|
14676
15401
|
i0__namespace.ɵɵadvance(1);
|
|
14677
15402
|
i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
14678
15403
|
i0__namespace.ɵɵadvance(1);
|
|
14679
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
15404
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$8, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
14680
15405
|
}
|
|
14681
15406
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.NumberValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
14682
15407
|
var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
|
|
@@ -14690,7 +15415,7 @@
|
|
|
14690
15415
|
}], null, null);
|
|
14691
15416
|
})();
|
|
14692
15417
|
|
|
14693
|
-
var _c0$
|
|
15418
|
+
var _c0$m = ["ccdReadOrderSummaryRow", ""];
|
|
14694
15419
|
var ReadOrderSummaryRowComponent = /** @class */ (function (_super) {
|
|
14695
15420
|
__extends(ReadOrderSummaryRowComponent, _super);
|
|
14696
15421
|
function ReadOrderSummaryRowComponent() {
|
|
@@ -14708,7 +15433,7 @@
|
|
|
14708
15433
|
return ReadOrderSummaryRowComponent;
|
|
14709
15434
|
}(AbstractFieldReadComponent));
|
|
14710
15435
|
ReadOrderSummaryRowComponent.ɵfac = function ReadOrderSummaryRowComponent_Factory(t) { return ɵReadOrderSummaryRowComponent_BaseFactory(t || ReadOrderSummaryRowComponent); };
|
|
14711
|
-
ReadOrderSummaryRowComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadOrderSummaryRowComponent, selectors: [["", "ccdReadOrderSummaryRow", ""]], inputs: { feeValue: "feeValue" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$
|
|
15436
|
+
ReadOrderSummaryRowComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadOrderSummaryRowComponent, selectors: [["", "ccdReadOrderSummaryRow", ""]], inputs: { feeValue: "feeValue" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$m, decls: 6, vars: 3, consts: [[3, "amount"]], template: function ReadOrderSummaryRowComponent_Template(rf, ctx) {
|
|
14712
15437
|
if (rf & 1) {
|
|
14713
15438
|
i0__namespace.ɵɵelementStart(0, "td");
|
|
14714
15439
|
i0__namespace.ɵɵtext(1);
|
|
@@ -15254,7 +15979,7 @@
|
|
|
15254
15979
|
i0__namespace.ɵɵelementEnd();
|
|
15255
15980
|
}
|
|
15256
15981
|
}
|
|
15257
|
-
var _c0$
|
|
15982
|
+
var _c0$l = function (a0) { return { "scroll-container ": a0 }; };
|
|
15258
15983
|
function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
|
|
15259
15984
|
if (rf & 1) {
|
|
15260
15985
|
i0__namespace.ɵɵelementStart(0, "div", 26);
|
|
@@ -15270,7 +15995,7 @@
|
|
|
15270
15995
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
15271
15996
|
var tmp_0_0 = null;
|
|
15272
15997
|
var tmp_2_0 = null;
|
|
15273
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$
|
|
15998
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$l, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
|
|
15274
15999
|
i0__namespace.ɵɵadvance(2);
|
|
15275
16000
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
|
|
15276
16001
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -15708,8 +16433,8 @@
|
|
|
15708
16433
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
|
|
15709
16434
|
}
|
|
15710
16435
|
}
|
|
15711
|
-
var _c0$
|
|
15712
|
-
var _c1$
|
|
16436
|
+
var _c0$k = function (a0) { return { "form-group-error": a0 }; };
|
|
16437
|
+
var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15713
16438
|
var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
|
|
15714
16439
|
__extends(WritePhoneUKFieldComponent, _super);
|
|
15715
16440
|
function WritePhoneUKFieldComponent() {
|
|
@@ -15733,7 +16458,7 @@
|
|
|
15733
16458
|
i0__namespace.ɵɵelementEnd();
|
|
15734
16459
|
}
|
|
15735
16460
|
if (rf & 2) {
|
|
15736
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16461
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$k, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
|
|
15737
16462
|
i0__namespace.ɵɵadvance(1);
|
|
15738
16463
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15739
16464
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15743,7 +16468,7 @@
|
|
|
15743
16468
|
i0__namespace.ɵɵadvance(1);
|
|
15744
16469
|
i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
15745
16470
|
i0__namespace.ɵɵadvance(1);
|
|
15746
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16471
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$7, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
15747
16472
|
}
|
|
15748
16473
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15749
16474
|
var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
|
|
@@ -15825,8 +16550,8 @@
|
|
|
15825
16550
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
|
|
15826
16551
|
}
|
|
15827
16552
|
}
|
|
15828
|
-
var _c0$
|
|
15829
|
-
var _c1$
|
|
16553
|
+
var _c0$j = function (a0) { return { "form-group-error": a0 }; };
|
|
16554
|
+
var _c1$6 = function (a0) { return { "govuk-textarea--error": a0 }; };
|
|
15830
16555
|
var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
|
|
15831
16556
|
__extends(WriteTextAreaFieldComponent, _super);
|
|
15832
16557
|
function WriteTextAreaFieldComponent(browserService) {
|
|
@@ -15861,7 +16586,7 @@
|
|
|
15861
16586
|
i0__namespace.ɵɵelementEnd();
|
|
15862
16587
|
}
|
|
15863
16588
|
if (rf & 2) {
|
|
15864
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16589
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$j, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
|
|
15865
16590
|
i0__namespace.ɵɵadvance(1);
|
|
15866
16591
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15867
16592
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15871,7 +16596,7 @@
|
|
|
15871
16596
|
i0__namespace.ɵɵadvance(1);
|
|
15872
16597
|
i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
|
|
15873
16598
|
i0__namespace.ɵɵadvance(1);
|
|
15874
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16599
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$6, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
|
|
15875
16600
|
}
|
|
15876
16601
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15877
16602
|
(function () {
|
|
@@ -15953,8 +16678,8 @@
|
|
|
15953
16678
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
|
|
15954
16679
|
}
|
|
15955
16680
|
}
|
|
15956
|
-
var _c0$
|
|
15957
|
-
var _c1$
|
|
16681
|
+
var _c0$i = function (a0) { return { "form-group-error": a0 }; };
|
|
16682
|
+
var _c1$5 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
15958
16683
|
var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
15959
16684
|
__extends(WriteTextFieldComponent, _super);
|
|
15960
16685
|
function WriteTextFieldComponent() {
|
|
@@ -15983,7 +16708,7 @@
|
|
|
15983
16708
|
i0__namespace.ɵɵelementEnd();
|
|
15984
16709
|
}
|
|
15985
16710
|
if (rf & 2) {
|
|
15986
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16711
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$i, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
15987
16712
|
i0__namespace.ɵɵadvance(1);
|
|
15988
16713
|
i0__namespace.ɵɵproperty("for", ctx.id());
|
|
15989
16714
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -15993,7 +16718,7 @@
|
|
|
15993
16718
|
i0__namespace.ɵɵadvance(1);
|
|
15994
16719
|
i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
15995
16720
|
i0__namespace.ɵɵadvance(1);
|
|
15996
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$
|
|
16721
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$5, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
|
|
15997
16722
|
}
|
|
15998
16723
|
}, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
|
|
15999
16724
|
var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
|
|
@@ -16191,7 +16916,7 @@
|
|
|
16191
16916
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
|
|
16192
16917
|
}
|
|
16193
16918
|
}
|
|
16194
|
-
var _c0$
|
|
16919
|
+
var _c0$h = function (a0) { return { selected: a0 }; };
|
|
16195
16920
|
function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
|
|
16196
16921
|
if (rf & 1) {
|
|
16197
16922
|
i0__namespace.ɵɵelementStart(0, "div", 10);
|
|
@@ -16204,7 +16929,7 @@
|
|
|
16204
16929
|
if (rf & 2) {
|
|
16205
16930
|
var value_r4 = ctx.$implicit;
|
|
16206
16931
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
16207
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$
|
|
16932
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$h, ctx_r3.yesNoControl.value === value_r4));
|
|
16208
16933
|
i0__namespace.ɵɵadvance(1);
|
|
16209
16934
|
i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
|
|
16210
16935
|
i0__namespace.ɵɵattribute("name", ctx_r3.id());
|
|
@@ -16214,7 +16939,7 @@
|
|
|
16214
16939
|
i0__namespace.ɵɵtextInterpolate(value_r4);
|
|
16215
16940
|
}
|
|
16216
16941
|
}
|
|
16217
|
-
var _c1$
|
|
16942
|
+
var _c1$4 = function (a0) { return { "form-group-error": a0 }; };
|
|
16218
16943
|
var WriteYesNoFieldComponent = /** @class */ (function (_super) {
|
|
16219
16944
|
__extends(WriteYesNoFieldComponent, _super);
|
|
16220
16945
|
function WriteYesNoFieldComponent(yesNoService) {
|
|
@@ -16245,7 +16970,7 @@
|
|
|
16245
16970
|
i0__namespace.ɵɵelementEnd();
|
|
16246
16971
|
}
|
|
16247
16972
|
if (rf & 2) {
|
|
16248
|
-
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
16973
|
+
i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$4, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
16249
16974
|
i0__namespace.ɵɵadvance(3);
|
|
16250
16975
|
i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
|
|
16251
16976
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -16357,7 +17082,7 @@
|
|
|
16357
17082
|
}], null, null);
|
|
16358
17083
|
})();
|
|
16359
17084
|
|
|
16360
|
-
var _c0$
|
|
17085
|
+
var _c0$g = ["fieldContainer"];
|
|
16361
17086
|
var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
|
|
16362
17087
|
var FieldReadComponent = /** @class */ (function (_super) {
|
|
16363
17088
|
__extends(FieldReadComponent, _super);
|
|
@@ -16406,7 +17131,7 @@
|
|
|
16406
17131
|
FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
|
|
16407
17132
|
FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
|
|
16408
17133
|
if (rf & 1) {
|
|
16409
|
-
i0__namespace.ɵɵviewQuery(_c0$
|
|
17134
|
+
i0__namespace.ɵɵviewQuery(_c0$g, 1, i0.ViewContainerRef);
|
|
16410
17135
|
}
|
|
16411
17136
|
if (rf & 2) {
|
|
16412
17137
|
var _t = void 0;
|
|
@@ -16649,7 +17374,7 @@
|
|
|
16649
17374
|
};
|
|
16650
17375
|
return SaveOrDiscardDialogComponent;
|
|
16651
17376
|
}());
|
|
16652
|
-
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
17377
|
+
SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
16653
17378
|
SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
|
|
16654
17379
|
if (rf & 1) {
|
|
16655
17380
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -16690,7 +17415,7 @@
|
|
|
16690
17415
|
templateUrl: './save-or-discard-dialog.component.html',
|
|
16691
17416
|
styleUrls: ['../action-dialog.component.scss']
|
|
16692
17417
|
}]
|
|
16693
|
-
}], function () { return [{ type: i1__namespace$
|
|
17418
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
16694
17419
|
})();
|
|
16695
17420
|
|
|
16696
17421
|
var CaseEditPageText;
|
|
@@ -16896,7 +17621,7 @@
|
|
|
16896
17621
|
i0__namespace.ɵɵadvance(3);
|
|
16897
17622
|
i0__namespace.ɵɵtextInterpolate(ctx.loadingText);
|
|
16898
17623
|
}
|
|
16899
|
-
}, 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
|
|
17624
|
+
}, 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 });
|
|
16900
17625
|
(function () {
|
|
16901
17626
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
16902
17627
|
type: i0.Component,
|
|
@@ -17561,7 +18286,7 @@
|
|
|
17561
18286
|
};
|
|
17562
18287
|
return CaseEditPageComponent;
|
|
17563
18288
|
}());
|
|
17564
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
18289
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService)); };
|
|
17565
18290
|
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "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-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) {
|
|
17566
18291
|
if (rf & 1) {
|
|
17567
18292
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
|
|
@@ -17607,7 +18332,7 @@
|
|
|
17607
18332
|
templateUrl: 'case-edit-page.html',
|
|
17608
18333
|
styleUrls: ['./case-edit-page.scss']
|
|
17609
18334
|
}]
|
|
17610
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$
|
|
18335
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$6.MatDialog }, { type: CaseFieldService }]; }, null);
|
|
17611
18336
|
})();
|
|
17612
18337
|
|
|
17613
18338
|
var Confirmation = /** @class */ (function () {
|
|
@@ -17805,7 +18530,7 @@
|
|
|
17805
18530
|
i0__namespace.ɵɵproperty("ngIf", ctx_r19.canShowFieldInCYA(field_r20));
|
|
17806
18531
|
}
|
|
17807
18532
|
}
|
|
17808
|
-
var _c0$
|
|
18533
|
+
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
17809
18534
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_Template(rf, ctx) {
|
|
17810
18535
|
if (rf & 1) {
|
|
17811
18536
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -17819,7 +18544,7 @@
|
|
|
17819
18544
|
var page_r17 = i0__namespace.ɵɵnextContext().$implicit;
|
|
17820
18545
|
var ctx_r18 = i0__namespace.ɵɵnextContext(3);
|
|
17821
18546
|
i0__namespace.ɵɵadvance(1);
|
|
17822
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$
|
|
18547
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r17, ctx_r18.editForm), ctx_r18.editForm.controls["data"]))));
|
|
17823
18548
|
}
|
|
17824
18549
|
}
|
|
17825
18550
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_Template(rf, ctx) {
|
|
@@ -19058,642 +19783,6 @@
|
|
|
19058
19783
|
}], null, null);
|
|
19059
19784
|
})();
|
|
19060
19785
|
|
|
19061
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) {
|
|
19062
|
-
if (rf & 1) {
|
|
19063
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
19064
|
-
i0__namespace.ɵɵelementStart(1, "div", 6);
|
|
19065
|
-
i0__namespace.ɵɵtext(2);
|
|
19066
|
-
i0__namespace.ɵɵelementEnd();
|
|
19067
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19068
|
-
}
|
|
19069
|
-
if (rf & 2) {
|
|
19070
|
-
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
19071
|
-
i0__namespace.ɵɵadvance(2);
|
|
19072
|
-
i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
|
|
19073
|
-
}
|
|
19074
|
-
}
|
|
19075
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) {
|
|
19076
|
-
if (rf & 1) {
|
|
19077
|
-
i0__namespace.ɵɵelement(0, "img", 10);
|
|
19078
|
-
}
|
|
19079
|
-
if (rf & 2) {
|
|
19080
|
-
var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
|
|
19081
|
-
var ctx_r5 = i0__namespace.ɵɵnextContext(2);
|
|
19082
|
-
i0__namespace.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
|
|
19083
|
-
i0__namespace.ɵɵproperty("src", item_r4.iconSrc, i0__namespace.ɵɵsanitizeUrl);
|
|
19084
|
-
}
|
|
19085
|
-
}
|
|
19086
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) {
|
|
19087
|
-
if (rf & 1) {
|
|
19088
|
-
var _r8_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19089
|
-
i0__namespace.ɵɵelementContainerStart(0);
|
|
19090
|
-
i0__namespace.ɵɵelementStart(1, "div", 7);
|
|
19091
|
-
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(); });
|
|
19092
|
-
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
|
|
19093
|
-
i0__namespace.ɵɵelementStart(3, "div", 9);
|
|
19094
|
-
i0__namespace.ɵɵtext(4);
|
|
19095
|
-
i0__namespace.ɵɵelementEnd();
|
|
19096
|
-
i0__namespace.ɵɵelementEnd();
|
|
19097
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19098
|
-
}
|
|
19099
|
-
if (rf & 2) {
|
|
19100
|
-
var item_r4 = ctx.$implicit;
|
|
19101
|
-
i0__namespace.ɵɵadvance(2);
|
|
19102
|
-
i0__namespace.ɵɵproperty("ngIf", item_r4.iconSrc);
|
|
19103
|
-
i0__namespace.ɵɵadvance(2);
|
|
19104
|
-
i0__namespace.ɵɵtextInterpolate(item_r4.actionText);
|
|
19105
|
-
}
|
|
19106
|
-
}
|
|
19107
|
-
function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
|
|
19108
|
-
if (rf & 1) {
|
|
19109
|
-
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
19110
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
|
|
19111
|
-
i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
|
|
19112
|
-
i0__namespace.ɵɵelementEnd();
|
|
19113
|
-
}
|
|
19114
|
-
if (rf & 2) {
|
|
19115
|
-
var ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
19116
|
-
i0__namespace.ɵɵadvance(1);
|
|
19117
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.title);
|
|
19118
|
-
i0__namespace.ɵɵadvance(1);
|
|
19119
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
|
|
19120
|
-
}
|
|
19121
|
-
}
|
|
19122
|
-
var _c0$f = [[["", "trigger", ""]]];
|
|
19123
|
-
var _c1$4 = ["[trigger]"];
|
|
19124
|
-
var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
|
|
19125
|
-
function CaseFileViewOverlayMenuComponent() {
|
|
19126
|
-
this.title = '';
|
|
19127
|
-
this.isOpen = false;
|
|
19128
|
-
this.isOpenChange = new i0.EventEmitter();
|
|
19129
|
-
}
|
|
19130
|
-
CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
|
|
19131
|
-
var isOpen = false;
|
|
19132
|
-
this.isOpen = isOpen;
|
|
19133
|
-
this.isOpenChange.emit(isOpen);
|
|
19134
|
-
};
|
|
19135
|
-
return CaseFileViewOverlayMenuComponent;
|
|
19136
|
-
}());
|
|
19137
|
-
CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
|
|
19138
|
-
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$4, 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) {
|
|
19139
|
-
if (rf & 1) {
|
|
19140
|
-
i0__namespace.ɵɵprojectionDef(_c0$f);
|
|
19141
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
19142
|
-
i0__namespace.ɵɵelementStart(1, "button", 0, 1);
|
|
19143
|
-
i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener() { return ctx.isOpen = !ctx.isOpen; });
|
|
19144
|
-
i0__namespace.ɵɵprojection(3);
|
|
19145
|
-
i0__namespace.ɵɵelementEnd();
|
|
19146
|
-
i0__namespace.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
|
|
19147
|
-
i0__namespace.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
|
|
19148
|
-
i0__namespace.ɵɵelementEnd();
|
|
19149
|
-
}
|
|
19150
|
-
if (rf & 2) {
|
|
19151
|
-
var _r0 = i0__namespace.ɵɵreference(2);
|
|
19152
|
-
i0__namespace.ɵɵadvance(4);
|
|
19153
|
-
i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
19154
|
-
}
|
|
19155
|
-
}, directives: [i1__namespace$6.CdkOverlayOrigin, i1__namespace$6.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}"] });
|
|
19156
|
-
(function () {
|
|
19157
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
19158
|
-
type: i0.Component,
|
|
19159
|
-
args: [{
|
|
19160
|
-
selector: 'ccd-case-file-view-overlay-menu',
|
|
19161
|
-
templateUrl: './case-file-view-overlay-menu.component.html',
|
|
19162
|
-
styleUrls: ['./case-file-view-overlay-menu.component.scss']
|
|
19163
|
-
}]
|
|
19164
|
-
}], null, { title: [{
|
|
19165
|
-
type: i0.Input
|
|
19166
|
-
}], menuItems: [{
|
|
19167
|
-
type: i0.Input
|
|
19168
|
-
}], isOpen: [{
|
|
19169
|
-
type: i0.Input
|
|
19170
|
-
}], isOpenChange: [{
|
|
19171
|
-
type: i0.Output
|
|
19172
|
-
}] });
|
|
19173
|
-
})();
|
|
19174
|
-
|
|
19175
|
-
var CaseFileViewFolderDocumentActionsComponent = /** @class */ (function () {
|
|
19176
|
-
function CaseFileViewFolderDocumentActionsComponent() {
|
|
19177
|
-
var _this = this;
|
|
19178
|
-
this.isOpen = false;
|
|
19179
|
-
this.changeFolderAction = new i0.EventEmitter();
|
|
19180
|
-
this.openInANewTabAction = new i0.EventEmitter();
|
|
19181
|
-
this.downloadAction = new i0.EventEmitter();
|
|
19182
|
-
this.printAction = new i0.EventEmitter();
|
|
19183
|
-
this.overlayMenuItems = [
|
|
19184
|
-
{ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: function () { return _this.changeFolderAction.emit(); } },
|
|
19185
|
-
{ actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: function () { return _this.openInANewTabAction.emit(); } },
|
|
19186
|
-
{ actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: function () { return _this.downloadAction.emit(); } },
|
|
19187
|
-
{ actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: function () { return _this.printAction.emit(); } },
|
|
19188
|
-
];
|
|
19189
|
-
}
|
|
19190
|
-
return CaseFileViewFolderDocumentActionsComponent;
|
|
19191
|
-
}());
|
|
19192
|
-
CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
|
|
19193
|
-
CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) {
|
|
19194
|
-
if (rf & 1) {
|
|
19195
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
19196
|
-
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
19197
|
-
i0__namespace.ɵɵelementContainerStart(1, 1);
|
|
19198
|
-
i0__namespace.ɵɵelement(2, "img", 2);
|
|
19199
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19200
|
-
i0__namespace.ɵɵelementEnd();
|
|
19201
|
-
}
|
|
19202
|
-
if (rf & 2) {
|
|
19203
|
-
i0__namespace.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
19204
|
-
}
|
|
19205
|
-
}, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-4px}"] });
|
|
19206
|
-
(function () {
|
|
19207
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
|
|
19208
|
-
type: i0.Component,
|
|
19209
|
-
args: [{
|
|
19210
|
-
selector: 'ccd-case-file-view-folder-document-actions',
|
|
19211
|
-
templateUrl: './case-file-view-folder-document-actions.component.html',
|
|
19212
|
-
styleUrls: ['./case-file-view-folder-document-actions.component.scss']
|
|
19213
|
-
}]
|
|
19214
|
-
}], function () { return []; }, { changeFolderAction: [{
|
|
19215
|
-
type: i0.Output
|
|
19216
|
-
}], openInANewTabAction: [{
|
|
19217
|
-
type: i0.Output
|
|
19218
|
-
}], downloadAction: [{
|
|
19219
|
-
type: i0.Output
|
|
19220
|
-
}], printAction: [{
|
|
19221
|
-
type: i0.Output
|
|
19222
|
-
}] });
|
|
19223
|
-
})();
|
|
19224
|
-
|
|
19225
|
-
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
19226
|
-
function CaseFileViewFolderSortComponent() {
|
|
19227
|
-
var _this = this;
|
|
19228
|
-
this.isOpen = false;
|
|
19229
|
-
this.sortAscending = new i0.EventEmitter();
|
|
19230
|
-
this.sortDescending = new i0.EventEmitter();
|
|
19231
|
-
this.overlayMenuItems = [
|
|
19232
|
-
{ actionText: 'A to Z descending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
19233
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
19234
|
-
];
|
|
19235
|
-
}
|
|
19236
|
-
return CaseFileViewFolderSortComponent;
|
|
19237
|
-
}());
|
|
19238
|
-
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
19239
|
-
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) {
|
|
19240
|
-
if (rf & 1) {
|
|
19241
|
-
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
19242
|
-
i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
|
|
19243
|
-
i0__namespace.ɵɵelementContainerStart(1, 1);
|
|
19244
|
-
i0__namespace.ɵɵelement(2, "img", 2);
|
|
19245
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
19246
|
-
i0__namespace.ɵɵelementEnd();
|
|
19247
|
-
}
|
|
19248
|
-
if (rf & 2) {
|
|
19249
|
-
i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
|
|
19250
|
-
}
|
|
19251
|
-
}, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
|
|
19252
|
-
(function () {
|
|
19253
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
|
|
19254
|
-
type: i0.Component,
|
|
19255
|
-
args: [{
|
|
19256
|
-
selector: 'ccd-case-file-view-folder-sort',
|
|
19257
|
-
templateUrl: './case-file-view-folder-sort.component.html',
|
|
19258
|
-
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
19259
|
-
}]
|
|
19260
|
-
}], function () { return []; }, { sortAscending: [{
|
|
19261
|
-
type: i0.Output
|
|
19262
|
-
}], sortDescending: [{
|
|
19263
|
-
type: i0.Output
|
|
19264
|
-
}] });
|
|
19265
|
-
})();
|
|
19266
|
-
|
|
19267
|
-
var CaseFileViewCategory = /** @class */ (function () {
|
|
19268
|
-
function CaseFileViewCategory() {
|
|
19269
|
-
}
|
|
19270
|
-
return CaseFileViewCategory;
|
|
19271
|
-
}());
|
|
19272
|
-
|
|
19273
|
-
var CaseFileViewDocument = /** @class */ (function () {
|
|
19274
|
-
function CaseFileViewDocument() {
|
|
19275
|
-
}
|
|
19276
|
-
return CaseFileViewDocument;
|
|
19277
|
-
}());
|
|
19278
|
-
|
|
19279
|
-
/**
|
|
19280
|
-
* DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
|
|
19281
|
-
* @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
|
|
19282
|
-
*/
|
|
19283
|
-
var CategoriesAndDocuments = /** @class */ (function () {
|
|
19284
|
-
function CategoriesAndDocuments() {
|
|
19285
|
-
}
|
|
19286
|
-
return CategoriesAndDocuments;
|
|
19287
|
-
}());
|
|
19288
|
-
|
|
19289
|
-
var DocumentTreeNode = /** @class */ (function () {
|
|
19290
|
-
function DocumentTreeNode() {
|
|
19291
|
-
}
|
|
19292
|
-
Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
|
|
19293
|
-
get: function () {
|
|
19294
|
-
var countChildren = function (childNodes) {
|
|
19295
|
-
var count = 0;
|
|
19296
|
-
if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
|
|
19297
|
-
var documents = childNodes.filter(function (item) { return item.type === 'document'; });
|
|
19298
|
-
count += documents.length;
|
|
19299
|
-
childNodes.forEach(function (children) {
|
|
19300
|
-
count += countChildren(children.children);
|
|
19301
|
-
});
|
|
19302
|
-
}
|
|
19303
|
-
return count;
|
|
19304
|
-
};
|
|
19305
|
-
return countChildren(this.children);
|
|
19306
|
-
},
|
|
19307
|
-
enumerable: false,
|
|
19308
|
-
configurable: true
|
|
19309
|
-
});
|
|
19310
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
19311
|
-
var _a, _b;
|
|
19312
|
-
var sortAscending = function () {
|
|
19313
|
-
return function (a, b) {
|
|
19314
|
-
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
19315
|
-
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
19316
|
-
if (a.type === 'category' || b.type === 'category') {
|
|
19317
|
-
return 0;
|
|
19318
|
-
}
|
|
19319
|
-
if (nameA < nameB) {
|
|
19320
|
-
return -1;
|
|
19321
|
-
}
|
|
19322
|
-
if (nameA > nameB) {
|
|
19323
|
-
return 1;
|
|
19324
|
-
}
|
|
19325
|
-
};
|
|
19326
|
-
};
|
|
19327
|
-
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
19328
|
-
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
19329
|
-
childNodes.sortChildrenAscending();
|
|
19330
|
-
});
|
|
19331
|
-
};
|
|
19332
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
19333
|
-
var _a, _b;
|
|
19334
|
-
var sortDescending = function () {
|
|
19335
|
-
return function (a, b) {
|
|
19336
|
-
var nameA = a.name.toUpperCase(); // ignore upper and lowercase
|
|
19337
|
-
var nameB = b.name.toUpperCase(); // ignore upper and lowercase
|
|
19338
|
-
if (a.type === 'category' || b.type === 'category') {
|
|
19339
|
-
return 0;
|
|
19340
|
-
}
|
|
19341
|
-
if (nameA > nameB) {
|
|
19342
|
-
return -1;
|
|
19343
|
-
}
|
|
19344
|
-
if (nameA < nameB) {
|
|
19345
|
-
return 1;
|
|
19346
|
-
}
|
|
19347
|
-
};
|
|
19348
|
-
};
|
|
19349
|
-
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
19350
|
-
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
19351
|
-
childNodes.sortChildrenDescending();
|
|
19352
|
-
});
|
|
19353
|
-
};
|
|
19354
|
-
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
19355
|
-
get: function () {
|
|
19356
|
-
var _a;
|
|
19357
|
-
var flattenChildren = function (nodeChild) {
|
|
19358
|
-
var _a;
|
|
19359
|
-
var flattenedNodes = [];
|
|
19360
|
-
flattenedNodes.push(nodeChild);
|
|
19361
|
-
if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
19362
|
-
// flattenedNodes.push(nodeChild);
|
|
19363
|
-
nodeChild.children.forEach(function (child) {
|
|
19364
|
-
flattenedNodes.push(flattenChildren(child));
|
|
19365
|
-
});
|
|
19366
|
-
}
|
|
19367
|
-
return flattenedNodes.flat();
|
|
19368
|
-
};
|
|
19369
|
-
return __spread([
|
|
19370
|
-
this
|
|
19371
|
-
], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
19372
|
-
return flattenChildren(item);
|
|
19373
|
-
}).flat());
|
|
19374
|
-
},
|
|
19375
|
-
enumerable: false,
|
|
19376
|
-
configurable: true
|
|
19377
|
-
});
|
|
19378
|
-
return DocumentTreeNode;
|
|
19379
|
-
}());
|
|
19380
|
-
__decorate([
|
|
19381
|
-
classTransformer.Type(function () { return DocumentTreeNode; }),
|
|
19382
|
-
__metadata("design:type", Array)
|
|
19383
|
-
], DocumentTreeNode.prototype, "children", void 0);
|
|
19384
|
-
__decorate([
|
|
19385
|
-
classTransformer.Expose(),
|
|
19386
|
-
__metadata("design:type", Object),
|
|
19387
|
-
__metadata("design:paramtypes", [])
|
|
19388
|
-
], DocumentTreeNode.prototype, "childDocumentCount", null);
|
|
19389
|
-
var DocumentTreeNodeType;
|
|
19390
|
-
(function (DocumentTreeNodeType) {
|
|
19391
|
-
DocumentTreeNodeType["FOLDER"] = "folder";
|
|
19392
|
-
DocumentTreeNodeType["DOCUMENT"] = "document";
|
|
19393
|
-
})(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
|
|
19394
|
-
|
|
19395
|
-
function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) {
|
|
19396
|
-
if (rf & 1) {
|
|
19397
|
-
i0__namespace.ɵɵelementStart(0, "div");
|
|
19398
|
-
i0__namespace.ɵɵtext(1, " No results found ");
|
|
19399
|
-
i0__namespace.ɵɵelementEnd();
|
|
19400
|
-
}
|
|
19401
|
-
}
|
|
19402
|
-
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) {
|
|
19403
|
-
if (rf & 1) {
|
|
19404
|
-
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
19405
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
|
|
19406
|
-
i0__namespace.ɵɵelementStart(1, "button", 13);
|
|
19407
|
-
i0__namespace.ɵɵelementStart(2, "div", 14);
|
|
19408
|
-
i0__namespace.ɵɵelement(3, "img", 15);
|
|
19409
|
-
i0__namespace.ɵɵelementEnd();
|
|
19410
|
-
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
19411
|
-
i0__namespace.ɵɵtext(5);
|
|
19412
|
-
i0__namespace.ɵɵelementEnd();
|
|
19413
|
-
i0__namespace.ɵɵelementStart(6, "div", 17);
|
|
19414
|
-
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
|
|
19415
|
-
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_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.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_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.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_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.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_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("print", node_r4); });
|
|
19416
|
-
i0__namespace.ɵɵelementEnd();
|
|
19417
|
-
i0__namespace.ɵɵelementEnd();
|
|
19418
|
-
i0__namespace.ɵɵelementEnd();
|
|
19419
|
-
i0__namespace.ɵɵelementEnd();
|
|
19420
|
-
}
|
|
19421
|
-
if (rf & 2) {
|
|
19422
|
-
var node_r4 = ctx.$implicit;
|
|
19423
|
-
i0__namespace.ɵɵadvance(5);
|
|
19424
|
-
i0__namespace.ɵɵtextInterpolate(node_r4.name);
|
|
19425
|
-
}
|
|
19426
|
-
}
|
|
19427
|
-
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
19428
|
-
if (rf & 1) {
|
|
19429
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
|
|
19430
|
-
i0__namespace.ɵɵelementStart(1, "button", 19);
|
|
19431
|
-
i0__namespace.ɵɵelementStart(2, "div", 20);
|
|
19432
|
-
i0__namespace.ɵɵelement(3, "img", 21);
|
|
19433
|
-
i0__namespace.ɵɵelementStart(4, "span", 22);
|
|
19434
|
-
i0__namespace.ɵɵtext(5);
|
|
19435
|
-
i0__namespace.ɵɵelementEnd();
|
|
19436
|
-
i0__namespace.ɵɵelementEnd();
|
|
19437
|
-
i0__namespace.ɵɵelementStart(6, "span", 23);
|
|
19438
|
-
i0__namespace.ɵɵtext(7);
|
|
19439
|
-
i0__namespace.ɵɵelementEnd();
|
|
19440
|
-
i0__namespace.ɵɵelementEnd();
|
|
19441
|
-
i0__namespace.ɵɵelementStart(8, "div");
|
|
19442
|
-
i0__namespace.ɵɵelementContainer(9, 24);
|
|
19443
|
-
i0__namespace.ɵɵelementEnd();
|
|
19444
|
-
i0__namespace.ɵɵelementEnd();
|
|
19445
|
-
}
|
|
19446
|
-
if (rf & 2) {
|
|
19447
|
-
var node_r10 = ctx.$implicit;
|
|
19448
|
-
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
19449
|
-
i0__namespace.ɵɵadvance(2);
|
|
19450
|
-
i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r10.name);
|
|
19451
|
-
i0__namespace.ɵɵadvance(1);
|
|
19452
|
-
i0__namespace.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r10) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0__namespace.ɵɵsanitizeUrl);
|
|
19453
|
-
i0__namespace.ɵɵadvance(2);
|
|
19454
|
-
i0__namespace.ɵɵtextInterpolate(node_r10.childDocumentCount);
|
|
19455
|
-
i0__namespace.ɵɵadvance(2);
|
|
19456
|
-
i0__namespace.ɵɵtextInterpolate(node_r10.name);
|
|
19457
|
-
i0__namespace.ɵɵadvance(1);
|
|
19458
|
-
i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r10));
|
|
19459
|
-
}
|
|
19460
|
-
}
|
|
19461
|
-
function CaseFileViewFolderComponent_div_8_Template(rf, ctx) {
|
|
19462
|
-
if (rf & 1) {
|
|
19463
|
-
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
19464
|
-
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
19465
|
-
i0__namespace.ɵɵelementStart(2, "div");
|
|
19466
|
-
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
19467
|
-
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 1, "cdk-nested-tree-node", 10);
|
|
19468
|
-
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
19469
|
-
i0__namespace.ɵɵelementEnd();
|
|
19470
|
-
i0__namespace.ɵɵelementEnd();
|
|
19471
|
-
i0__namespace.ɵɵelementEnd();
|
|
19472
|
-
}
|
|
19473
|
-
if (rf & 2) {
|
|
19474
|
-
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
19475
|
-
i0__namespace.ɵɵadvance(1);
|
|
19476
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
|
|
19477
|
-
i0__namespace.ɵɵadvance(2);
|
|
19478
|
-
i0__namespace.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
|
|
19479
|
-
i0__namespace.ɵɵadvance(2);
|
|
19480
|
-
i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
|
|
19481
|
-
}
|
|
19482
|
-
}
|
|
19483
|
-
var MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
19484
|
-
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
19485
|
-
function CaseFileViewFolderComponent(windowService, router, documentManagementService) {
|
|
19486
|
-
this.windowService = windowService;
|
|
19487
|
-
this.router = router;
|
|
19488
|
-
this.documentManagementService = documentManagementService;
|
|
19489
|
-
this.categories = [];
|
|
19490
|
-
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
19491
|
-
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
19492
|
-
this.nestedTreeControl = new i6$2.NestedTreeControl(this.getChildren);
|
|
19493
|
-
}
|
|
19494
|
-
CaseFileViewFolderComponent.prototype.ngOnInit = function () {
|
|
19495
|
-
var _this = this;
|
|
19496
|
-
this.documentFilterFormGroup = new i1$2.FormGroup({});
|
|
19497
|
-
this.documentSearchFormControl = new i1$2.FormControl('');
|
|
19498
|
-
this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
|
|
19499
|
-
// Listen to search input and initiate filter documents if at least three characters entered
|
|
19500
|
-
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) {
|
|
19501
|
-
_this.nestedDataSource = documentTreeData;
|
|
19502
|
-
_this.nestedTreeControl.dataNodes = documentTreeData;
|
|
19503
|
-
_this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
|
|
19504
|
-
? _this.nestedTreeControl.expandAll()
|
|
19505
|
-
: _this.nestedTreeControl.collapseAll();
|
|
19506
|
-
});
|
|
19507
|
-
// Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
|
|
19508
|
-
this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
|
|
19509
|
-
var categories = categoriesAndDocuments.categories;
|
|
19510
|
-
// Generate document tree data from categories
|
|
19511
|
-
_this.documentTreeData = _this.generateTreeData(categories);
|
|
19512
|
-
// Append uncategorised documents
|
|
19513
|
-
if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
|
|
19514
|
-
var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
|
|
19515
|
-
_this.documentTreeData.push(uncategorisedDocuments);
|
|
19516
|
-
}
|
|
19517
|
-
// Initialise cdk tree with generated data
|
|
19518
|
-
_this.nestedDataSource = _this.documentTreeData;
|
|
19519
|
-
// this.nestedTreeControl.dataNodes = this.documentTreeData;
|
|
19520
|
-
});
|
|
19521
|
-
};
|
|
19522
|
-
CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
|
|
19523
|
-
var _this = this;
|
|
19524
|
-
return categories.reduce(function (tree, node) {
|
|
19525
|
-
var newDocumentTreeNode = new DocumentTreeNode();
|
|
19526
|
-
newDocumentTreeNode.name = node.category_name;
|
|
19527
|
-
newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
|
|
19528
|
-
newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
|
|
19529
|
-
return __spread(tree, [
|
|
19530
|
-
newDocumentTreeNode,
|
|
19531
|
-
]);
|
|
19532
|
-
}, []);
|
|
19533
|
-
};
|
|
19534
|
-
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
19535
|
-
var documentsToReturn = [];
|
|
19536
|
-
documents.forEach(function (document) {
|
|
19537
|
-
var documentTreeNode = new DocumentTreeNode();
|
|
19538
|
-
documentTreeNode.name = document.document_filename;
|
|
19539
|
-
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
19540
|
-
documentTreeNode.document_filename = document.document_filename;
|
|
19541
|
-
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19542
|
-
documentsToReturn.push(documentTreeNode);
|
|
19543
|
-
});
|
|
19544
|
-
return documentsToReturn;
|
|
19545
|
-
};
|
|
19546
|
-
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
19547
|
-
var documents = [];
|
|
19548
|
-
uncategorisedDocuments.forEach(function (document) {
|
|
19549
|
-
var documentTreeNode = new DocumentTreeNode();
|
|
19550
|
-
documentTreeNode.name = document.document_filename;
|
|
19551
|
-
documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
|
|
19552
|
-
documentTreeNode.document_filename = document.document_filename;
|
|
19553
|
-
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19554
|
-
documents.push(documentTreeNode);
|
|
19555
|
-
});
|
|
19556
|
-
var uncategorisedNode = new DocumentTreeNode();
|
|
19557
|
-
uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
|
|
19558
|
-
uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
|
|
19559
|
-
uncategorisedNode.children = documents;
|
|
19560
|
-
return uncategorisedNode;
|
|
19561
|
-
};
|
|
19562
|
-
CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
|
|
19563
|
-
var sortedData = this.nestedDataSource.map(function (item) {
|
|
19564
|
-
item.sortChildrenAscending();
|
|
19565
|
-
var newDocumentTreeNode = new DocumentTreeNode();
|
|
19566
|
-
newDocumentTreeNode.name = item.name;
|
|
19567
|
-
newDocumentTreeNode.type = item.type;
|
|
19568
|
-
newDocumentTreeNode.children = item.children;
|
|
19569
|
-
return newDocumentTreeNode;
|
|
19570
|
-
});
|
|
19571
|
-
this.updateNodeData(sortedData);
|
|
19572
|
-
};
|
|
19573
|
-
CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
|
|
19574
|
-
var sortedData = this.nestedDataSource.map(function (item) {
|
|
19575
|
-
item.sortChildrenDescending();
|
|
19576
|
-
return item;
|
|
19577
|
-
});
|
|
19578
|
-
this.updateNodeData(sortedData);
|
|
19579
|
-
};
|
|
19580
|
-
CaseFileViewFolderComponent.prototype.filter = function (searchTerm) {
|
|
19581
|
-
// Make a copy of the data so we do not mutate the original
|
|
19582
|
-
function copy(node) {
|
|
19583
|
-
var documentTree = new DocumentTreeNode();
|
|
19584
|
-
return Object.assign(documentTree, node);
|
|
19585
|
-
}
|
|
19586
|
-
var filteredData = this.documentTreeData;
|
|
19587
|
-
if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
|
|
19588
|
-
filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
|
|
19589
|
-
if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
|
|
19590
|
-
return true;
|
|
19591
|
-
}
|
|
19592
|
-
// Call recursively if node has children
|
|
19593
|
-
if (node.children) {
|
|
19594
|
-
return (node.children = node.children.map(copy).filter(filterTreeData)).length;
|
|
19595
|
-
}
|
|
19596
|
-
});
|
|
19597
|
-
}
|
|
19598
|
-
return rxjs.of(filteredData);
|
|
19599
|
-
};
|
|
19600
|
-
CaseFileViewFolderComponent.prototype.triggerDocumentAction = function (actionType, documentTreeNode) {
|
|
19601
|
-
var _a;
|
|
19602
|
-
switch (actionType) {
|
|
19603
|
-
case ('changeFolder'):
|
|
19604
|
-
console.log('changeFolder!');
|
|
19605
|
-
break;
|
|
19606
|
-
case ('openInANewTab'):
|
|
19607
|
-
this.windowService.setLocalStorage(MEDIA_VIEWER_LOCALSTORAGE_KEY, this.documentManagementService.getMediaViewerInfo({
|
|
19608
|
-
document_binary_url: documentTreeNode.document_binary_url,
|
|
19609
|
-
document_filename: documentTreeNode.document_filename
|
|
19610
|
-
}));
|
|
19611
|
-
this.windowService.openOnNewTab((_a = this.router.createUrlTree(['/media-viewer'])) === null || _a === void 0 ? void 0 : _a.toString());
|
|
19612
|
-
break;
|
|
19613
|
-
case ('download'):
|
|
19614
|
-
console.log('download!');
|
|
19615
|
-
break;
|
|
19616
|
-
case ('print'):
|
|
19617
|
-
console.log('print!');
|
|
19618
|
-
break;
|
|
19619
|
-
default:
|
|
19620
|
-
return;
|
|
19621
|
-
}
|
|
19622
|
-
};
|
|
19623
|
-
CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
|
|
19624
|
-
if (this.categoriesAndDocumentsSubscription) {
|
|
19625
|
-
this.categoriesAndDocumentsSubscription.unsubscribe();
|
|
19626
|
-
}
|
|
19627
|
-
if (this.documentFilterSubscription) {
|
|
19628
|
-
this.documentFilterSubscription.unsubscribe();
|
|
19629
|
-
}
|
|
19630
|
-
};
|
|
19631
|
-
CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
|
|
19632
|
-
var _this = this;
|
|
19633
|
-
var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
|
|
19634
|
-
return item.name;
|
|
19635
|
-
});
|
|
19636
|
-
this.nestedTreeControl.collapseAll();
|
|
19637
|
-
this.nestedDataSource = data.map(function (item) {
|
|
19638
|
-
var newDocumentTreeNode = new DocumentTreeNode();
|
|
19639
|
-
newDocumentTreeNode.name = item.name;
|
|
19640
|
-
newDocumentTreeNode.type = item.type;
|
|
19641
|
-
newDocumentTreeNode.children = item.children;
|
|
19642
|
-
return newDocumentTreeNode;
|
|
19643
|
-
});
|
|
19644
|
-
var flattenedArray = this.nestedDataSource.map(function (item) {
|
|
19645
|
-
return item.flattenedAll;
|
|
19646
|
-
}).flat();
|
|
19647
|
-
var newObjects = flattenedArray.filter(function (item) {
|
|
19648
|
-
return prevSelected.includes(item.name);
|
|
19649
|
-
});
|
|
19650
|
-
newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
|
|
19651
|
-
};
|
|
19652
|
-
return CaseFileViewFolderComponent;
|
|
19653
|
-
}());
|
|
19654
|
-
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
19655
|
-
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19656
|
-
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
|
|
19657
|
-
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)); };
|
|
19658
|
-
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments" }, decls: 9, vars: 2, 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", 4, "ngIf"], [1, "document-tree"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree__node", 4, "cdkTreeNodeDef"], ["class", "document-tree__node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree__node"], [1, "node"], ["mat-icon-button", "", "disabled", "", 1, "node__icon"], ["src", "/assets/images/document.png", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], ["cdkTreeNodeToggle", "", 1, "node"], ["mat-icon-button", "", 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) {
|
|
19659
|
-
if (rf & 1) {
|
|
19660
|
-
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
19661
|
-
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
19662
|
-
i0__namespace.ɵɵelement(2, "input", 2);
|
|
19663
|
-
i0__namespace.ɵɵelementEnd();
|
|
19664
|
-
i0__namespace.ɵɵelementEnd();
|
|
19665
|
-
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
19666
|
-
i0__namespace.ɵɵelementStart(4, "div", 4);
|
|
19667
|
-
i0__namespace.ɵɵtext(5, "Documents");
|
|
19668
|
-
i0__namespace.ɵɵelementEnd();
|
|
19669
|
-
i0__namespace.ɵɵelementStart(6, "div");
|
|
19670
|
-
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
19671
|
-
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(); });
|
|
19672
|
-
i0__namespace.ɵɵelementEnd();
|
|
19673
|
-
i0__namespace.ɵɵelementEnd();
|
|
19674
|
-
i0__namespace.ɵɵelementEnd();
|
|
19675
|
-
i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 6, 4, "div", 6);
|
|
19676
|
-
}
|
|
19677
|
-
if (rf & 2) {
|
|
19678
|
-
i0__namespace.ɵɵadvance(1);
|
|
19679
|
-
i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
|
|
19680
|
-
i0__namespace.ɵɵadvance(7);
|
|
19681
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
19682
|
-
}
|
|
19683
|
-
}, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i6__namespace$2.CdkTree, i6__namespace$2.CdkTreeNodeDef, i6__namespace$2.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i6__namespace$2.CdkTreeNodeToggle, i6__namespace$2.CdkTreeNodeOutlet], styles: [".document-tree[_ngcontent-%COMP%]{padding:4px 6px;overflow-x:hidden;overflow-y:scroll;height:400px}.document-tree__node[_ngcontent-%COMP%]{display:block}.document-tree__node[_ngcontent-%COMP%] .document-tree__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree[_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 4px;background:none;border:0;cursor:pointer;white-space:nowrap}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__count[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:.875rem;padding-top:4px}.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}"] });
|
|
19684
|
-
(function () {
|
|
19685
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
19686
|
-
type: i0.Component,
|
|
19687
|
-
args: [{
|
|
19688
|
-
selector: 'ccd-case-file-view-folder',
|
|
19689
|
-
templateUrl: './case-file-view-folder.component.html',
|
|
19690
|
-
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
19691
|
-
}]
|
|
19692
|
-
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }]; }, { categoriesAndDocuments: [{
|
|
19693
|
-
type: i0.Input
|
|
19694
|
-
}] });
|
|
19695
|
-
})();
|
|
19696
|
-
|
|
19697
19786
|
var CollectionCreateCheckerService = /** @class */ (function () {
|
|
19698
19787
|
function CollectionCreateCheckerService() {
|
|
19699
19788
|
}
|
|
@@ -19965,7 +20054,7 @@
|
|
|
19965
20054
|
CaseFileViewFolderComponent,
|
|
19966
20055
|
CaseFileViewFolderSortComponent,
|
|
19967
20056
|
CaseFileViewOverlayMenuComponent,
|
|
19968
|
-
CaseFileViewFolderDocumentActionsComponent
|
|
20057
|
+
CaseFileViewFolderDocumentActionsComponent
|
|
19969
20058
|
];
|
|
19970
20059
|
var PaletteModule = /** @class */ (function () {
|
|
19971
20060
|
function PaletteModule() {
|
|
@@ -20005,10 +20094,10 @@
|
|
|
20005
20094
|
input.MatInputModule,
|
|
20006
20095
|
i5.MatDatepickerModule,
|
|
20007
20096
|
i5$1.MatAutocompleteModule,
|
|
20008
|
-
|
|
20009
|
-
i1$
|
|
20097
|
+
i2.CdkTreeModule,
|
|
20098
|
+
i1$5.OverlayModule,
|
|
20010
20099
|
i3.PaymentLibModule,
|
|
20011
|
-
i2.ScrollToModule.forRoot()
|
|
20100
|
+
i2$1.ScrollToModule.forRoot()
|
|
20012
20101
|
], i4.NgxMatDatetimePickerModule,
|
|
20013
20102
|
i4.NgxMatNativeDateModule,
|
|
20014
20103
|
i4.NgxMatTimepickerModule,
|
|
@@ -20115,9 +20204,9 @@
|
|
|
20115
20204
|
input.MatInputModule,
|
|
20116
20205
|
i5.MatDatepickerModule,
|
|
20117
20206
|
i5$1.MatAutocompleteModule,
|
|
20118
|
-
|
|
20119
|
-
i1$
|
|
20120
|
-
i3.PaymentLibModule, i2__namespace.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
20207
|
+
i2.CdkTreeModule,
|
|
20208
|
+
i1$5.OverlayModule,
|
|
20209
|
+
i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
|
|
20121
20210
|
i4.NgxMatNativeDateModule,
|
|
20122
20211
|
i4.NgxMatTimepickerModule,
|
|
20123
20212
|
TabsModule,
|
|
@@ -20224,10 +20313,10 @@
|
|
|
20224
20313
|
input.MatInputModule,
|
|
20225
20314
|
i5.MatDatepickerModule,
|
|
20226
20315
|
i5$1.MatAutocompleteModule,
|
|
20227
|
-
|
|
20228
|
-
i1$
|
|
20316
|
+
i2.CdkTreeModule,
|
|
20317
|
+
i1$5.OverlayModule,
|
|
20229
20318
|
i3.PaymentLibModule,
|
|
20230
|
-
i2.ScrollToModule.forRoot()
|
|
20319
|
+
i2$1.ScrollToModule.forRoot()
|
|
20231
20320
|
],
|
|
20232
20321
|
declarations: __spread([
|
|
20233
20322
|
FixedListPipe,
|
|
@@ -20264,9 +20353,6 @@
|
|
|
20264
20353
|
ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
|
|
20265
20354
|
i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
|
|
20266
20355
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
20267
|
-
i0__namespace.ɵɵsetComponentScope(
|
|
20268
|
-
// ComponentLauncher web components
|
|
20269
|
-
CaseFileViewFieldComponent, [CaseFileViewFolderComponent], []);
|
|
20270
20356
|
|
|
20271
20357
|
var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
|
|
20272
20358
|
var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
|
|
@@ -20541,10 +20627,10 @@
|
|
|
20541
20627
|
});
|
|
20542
20628
|
switch (portalType) {
|
|
20543
20629
|
case EventCompletionPortalTypes.TaskCancelled:
|
|
20544
|
-
this.selectedComponentPortal = new i6$
|
|
20630
|
+
this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
|
|
20545
20631
|
break;
|
|
20546
20632
|
case EventCompletionPortalTypes.TaskReassigned:
|
|
20547
|
-
this.selectedComponentPortal = new i6$
|
|
20633
|
+
this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
|
|
20548
20634
|
break;
|
|
20549
20635
|
}
|
|
20550
20636
|
};
|
|
@@ -20558,7 +20644,7 @@
|
|
|
20558
20644
|
if (rf & 2) {
|
|
20559
20645
|
i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
|
|
20560
20646
|
}
|
|
20561
|
-
}, directives: [i6__namespace$
|
|
20647
|
+
}, directives: [i6__namespace$2.CdkPortalOutlet], encapsulation: 2 });
|
|
20562
20648
|
(function () {
|
|
20563
20649
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
|
|
20564
20650
|
type: i0.Component,
|
|
@@ -20615,7 +20701,7 @@
|
|
|
20615
20701
|
LabelSubstitutorModule,
|
|
20616
20702
|
ConditionalShowModule,
|
|
20617
20703
|
ErrorsModule,
|
|
20618
|
-
i6$
|
|
20704
|
+
i6$2.PortalModule
|
|
20619
20705
|
]] });
|
|
20620
20706
|
(function () {
|
|
20621
20707
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseEditorModule, { declarations: [CaseEditConfirmComponent,
|
|
@@ -20636,7 +20722,7 @@
|
|
|
20636
20722
|
LabelSubstitutorModule,
|
|
20637
20723
|
ConditionalShowModule,
|
|
20638
20724
|
ErrorsModule,
|
|
20639
|
-
i6$
|
|
20725
|
+
i6$2.PortalModule], exports: [CaseEditConfirmComponent,
|
|
20640
20726
|
CaseEditComponent,
|
|
20641
20727
|
CaseEditPageComponent,
|
|
20642
20728
|
CaseEditFormComponent,
|
|
@@ -20659,7 +20745,7 @@
|
|
|
20659
20745
|
LabelSubstitutorModule,
|
|
20660
20746
|
ConditionalShowModule,
|
|
20661
20747
|
ErrorsModule,
|
|
20662
|
-
i6$
|
|
20748
|
+
i6$2.PortalModule
|
|
20663
20749
|
],
|
|
20664
20750
|
declarations: [
|
|
20665
20751
|
CaseEditConfirmComponent,
|
|
@@ -23407,7 +23493,7 @@
|
|
|
23407
23493
|
};
|
|
23408
23494
|
return DeleteOrCancelDialogComponent;
|
|
23409
23495
|
}());
|
|
23410
|
-
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
23496
|
+
DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialogRef)); };
|
|
23411
23497
|
DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
|
|
23412
23498
|
if (rf & 1) {
|
|
23413
23499
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -23448,7 +23534,7 @@
|
|
|
23448
23534
|
templateUrl: './delete-or-cancel-dialog.component.html',
|
|
23449
23535
|
styleUrls: ['../action-dialog.component.scss']
|
|
23450
23536
|
}]
|
|
23451
|
-
}], function () { return [{ type: i1__namespace$
|
|
23537
|
+
}], function () { return [{ type: i1__namespace$6.MatDialogRef }]; }, null);
|
|
23452
23538
|
})();
|
|
23453
23539
|
|
|
23454
23540
|
function EventTriggerComponent_form_0_option_5_Template(rf, ctx) {
|
|
@@ -24077,7 +24163,7 @@
|
|
|
24077
24163
|
CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
|
|
24078
24164
|
CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
|
|
24079
24165
|
CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
|
|
24080
|
-
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$
|
|
24166
|
+
CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$6.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
24081
24167
|
CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
|
|
24082
24168
|
if (rf & 1) {
|
|
24083
24169
|
i0__namespace.ɵɵviewQuery(_c0$a, 1);
|
|
@@ -24133,7 +24219,7 @@
|
|
|
24133
24219
|
templateUrl: './case-full-access-view.component.html',
|
|
24134
24220
|
styleUrls: ['./case-full-access-view.component.scss']
|
|
24135
24221
|
}]
|
|
24136
|
-
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$
|
|
24222
|
+
}], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$6.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: SessionStorageService }]; }, { hasPrint: [{
|
|
24137
24223
|
type: i0.Input
|
|
24138
24224
|
}], hasEventSelector: [{
|
|
24139
24225
|
type: i0.Input
|
|
@@ -28874,7 +28960,6 @@
|
|
|
28874
28960
|
exports.LoadingModule = LoadingModule;
|
|
28875
28961
|
exports.LoadingService = LoadingService;
|
|
28876
28962
|
exports.LoadingSpinnerComponent = LoadingSpinnerComponent;
|
|
28877
|
-
exports.MEDIA_VIEWER_LOCALSTORAGE_KEY = MEDIA_VIEWER_LOCALSTORAGE_KEY;
|
|
28878
28963
|
exports.MULTIPLE_TASKS_FOUND = MULTIPLE_TASKS_FOUND;
|
|
28879
28964
|
exports.MarkdownComponent = MarkdownComponent;
|
|
28880
28965
|
exports.MoneyGbpInputComponent = MoneyGbpInputComponent;
|