@hmcts/ccd-case-ui-toolkit 6.19.13-prerelease-service-id-params → 6.19.13-rc1
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 +177 -161
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +4 -2
- 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 +22 -8
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +43 -28
- package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +233 -0
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +2 -16
- package/esm2015/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.js +12 -26
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.js +6 -0
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +39 -13
- package/esm2015/lib/shared/domain/case-file-view/index.js +3 -2
- package/esm2015/lib/shared/domain/index.js +10 -10
- package/esm2015/lib/shared/domain/search/sorting/sort-parameters.js +1 -1
- package/esm2015/lib/shared/domain/sort-order.enum.js +7 -0
- package/esm2015/lib/shared/pipes/search-result/sorting/sort-search-result.pipe.js +2 -2
- package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +1 -1
- package/esm2015/lib/shared/services/common-data-service/common-data-service.js +1 -7
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +139 -125
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +8 -5
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +5 -3
- 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/test-data/categories-and-documents-test-data.d.ts +3 -0
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +1 -0
- package/lib/shared/components/palette/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +0 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +3 -6
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts +5 -0
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +4 -2
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/index.d.ts +2 -1
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +9 -9
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts.map +1 -1
- package/lib/shared/domain/{search/sorting/sort-order.d.ts → sort-order.enum.d.ts} +1 -1
- package/lib/shared/domain/sort-order.enum.d.ts.map +1 -0
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/lib/shared/services/common-data-service/common-data-service.d.ts +0 -2
- package/lib/shared/services/common-data-service/common-data-service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/complex/sort-order.js +0 -7
- package/esm2015/lib/shared/domain/case-view/service-org-response.model.js +0 -2
- package/esm2015/lib/shared/domain/search/sorting/sort-order.js +0 -7
- package/lib/shared/components/palette/complex/sort-order.d.ts +0 -6
- package/lib/shared/components/palette/complex/sort-order.d.ts.map +0 -1
- package/lib/shared/domain/case-view/service-org-response.model.d.ts +0 -14
- package/lib/shared/domain/case-view/service-org-response.model.d.ts.map +0 -1
- package/lib/shared/domain/search/sorting/sort-order.d.ts.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rpx-xui-translation'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', 'rpx-xui-translation', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
|
|
4
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.i1, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.i12, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
|
|
5
|
-
})(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$2, i1$4, i5, i6, i3, i1$5,
|
|
5
|
+
})(this, (function (exports, i0, i2, i1, i1$1, i2$1, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$2, i1$4, i5, i6, i3, i1$5, i8, i3$1, i4, momentAdapter, i5$1, i6$1, i12, i6$2, i1$6, i10) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
41
41
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
42
42
|
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
43
|
-
var
|
|
43
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
44
44
|
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
45
45
|
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
46
46
|
var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
|
|
@@ -3501,6 +3501,20 @@
|
|
|
3501
3501
|
return Alert;
|
|
3502
3502
|
}());
|
|
3503
3503
|
|
|
3504
|
+
// tslint:disable:variable-name
|
|
3505
|
+
var CaseDetails = /** @class */ (function () {
|
|
3506
|
+
function CaseDetails() {
|
|
3507
|
+
}
|
|
3508
|
+
return CaseDetails;
|
|
3509
|
+
}());
|
|
3510
|
+
|
|
3511
|
+
// tslint:disable:variable-name
|
|
3512
|
+
var CaseEventData = /** @class */ (function () {
|
|
3513
|
+
function CaseEventData() {
|
|
3514
|
+
}
|
|
3515
|
+
return CaseEventData;
|
|
3516
|
+
}());
|
|
3517
|
+
|
|
3504
3518
|
var WizardPageField = /** @class */ (function () {
|
|
3505
3519
|
function WizardPageField() {
|
|
3506
3520
|
}
|
|
@@ -3920,6 +3934,20 @@
|
|
|
3920
3934
|
return FormDocument;
|
|
3921
3935
|
}());
|
|
3922
3936
|
|
|
3937
|
+
var DRAFT_PREFIX = 'DRAFT';
|
|
3938
|
+
var DRAFT_QUERY_PARAM = 'draft';
|
|
3939
|
+
var Draft = /** @class */ (function () {
|
|
3940
|
+
function Draft() {
|
|
3941
|
+
}
|
|
3942
|
+
Draft.stripDraftId = function (draftId) {
|
|
3943
|
+
return draftId.slice(DRAFT_PREFIX.length);
|
|
3944
|
+
};
|
|
3945
|
+
Draft.isDraft = function (id) {
|
|
3946
|
+
return String(id).startsWith(DRAFT_PREFIX);
|
|
3947
|
+
};
|
|
3948
|
+
return Draft;
|
|
3949
|
+
}());
|
|
3950
|
+
|
|
3923
3951
|
var OrganisationConverter = /** @class */ (function () {
|
|
3924
3952
|
function OrganisationConverter() {
|
|
3925
3953
|
}
|
|
@@ -3965,6 +3993,12 @@
|
|
|
3965
3993
|
}], null, null);
|
|
3966
3994
|
})();
|
|
3967
3995
|
|
|
3996
|
+
var PaginationMetadata = /** @class */ (function () {
|
|
3997
|
+
function PaginationMetadata() {
|
|
3998
|
+
}
|
|
3999
|
+
return PaginationMetadata;
|
|
4000
|
+
}());
|
|
4001
|
+
|
|
3968
4002
|
function hasRoles(profile) {
|
|
3969
4003
|
if (profile.user && profile.user.idam && Array.isArray(profile.user.idam.roles)) {
|
|
3970
4004
|
return profile.user.idam.roles.length > 0;
|
|
@@ -4023,20 +4057,6 @@
|
|
|
4023
4057
|
__metadata("design:type", Array)
|
|
4024
4058
|
], SearchResultViewItem.prototype, "hydrated_case_fields", void 0);
|
|
4025
4059
|
|
|
4026
|
-
var DRAFT_PREFIX = 'DRAFT';
|
|
4027
|
-
var DRAFT_QUERY_PARAM = 'draft';
|
|
4028
|
-
var Draft = /** @class */ (function () {
|
|
4029
|
-
function Draft() {
|
|
4030
|
-
}
|
|
4031
|
-
Draft.stripDraftId = function (draftId) {
|
|
4032
|
-
return draftId.slice(DRAFT_PREFIX.length);
|
|
4033
|
-
};
|
|
4034
|
-
Draft.isDraft = function (id) {
|
|
4035
|
-
return String(id).startsWith(DRAFT_PREFIX);
|
|
4036
|
-
};
|
|
4037
|
-
return Draft;
|
|
4038
|
-
}());
|
|
4039
|
-
|
|
4040
4060
|
// @dynamic
|
|
4041
4061
|
var SearchResultView = /** @class */ (function () {
|
|
4042
4062
|
function SearchResultView() {
|
|
@@ -4057,19 +4077,20 @@
|
|
|
4057
4077
|
__metadata("design:type", Array)
|
|
4058
4078
|
], SearchResultView.prototype, "results", void 0);
|
|
4059
4079
|
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4080
|
+
var SortParameters = /** @class */ (function () {
|
|
4081
|
+
function SortParameters(comparator, sortOrder) {
|
|
4082
|
+
this.comparator = comparator;
|
|
4083
|
+
this.sortOrder = sortOrder;
|
|
4063
4084
|
}
|
|
4064
|
-
return
|
|
4085
|
+
return SortParameters;
|
|
4065
4086
|
}());
|
|
4066
4087
|
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
}());
|
|
4088
|
+
exports.SortOrder = void 0;
|
|
4089
|
+
(function (SortOrder) {
|
|
4090
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
4091
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
4092
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
4093
|
+
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
4073
4094
|
|
|
4074
4095
|
var WorkbasketInputModel = /** @class */ (function () {
|
|
4075
4096
|
function WorkbasketInputModel() {
|
|
@@ -4082,27 +4103,6 @@
|
|
|
4082
4103
|
return WorkbasketInput;
|
|
4083
4104
|
}());
|
|
4084
4105
|
|
|
4085
|
-
var PaginationMetadata = /** @class */ (function () {
|
|
4086
|
-
function PaginationMetadata() {
|
|
4087
|
-
}
|
|
4088
|
-
return PaginationMetadata;
|
|
4089
|
-
}());
|
|
4090
|
-
|
|
4091
|
-
exports.SortOrder = void 0;
|
|
4092
|
-
(function (SortOrder) {
|
|
4093
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
4094
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
4095
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
4096
|
-
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
4097
|
-
|
|
4098
|
-
var SortParameters = /** @class */ (function () {
|
|
4099
|
-
function SortParameters(comparator, sortOrder) {
|
|
4100
|
-
this.comparator = comparator;
|
|
4101
|
-
this.sortOrder = sortOrder;
|
|
4102
|
-
}
|
|
4103
|
-
return SortParameters;
|
|
4104
|
-
}());
|
|
4105
|
-
|
|
4106
4106
|
// @dynamic
|
|
4107
4107
|
var FieldsUtils = /** @class */ (function () {
|
|
4108
4108
|
function FieldsUtils() {
|
|
@@ -14696,15 +14696,6 @@
|
|
|
14696
14696
|
_this.valid = true;
|
|
14697
14697
|
return _this;
|
|
14698
14698
|
}
|
|
14699
|
-
WriteDocumentFieldComponent.prototype.clickout = function (event) {
|
|
14700
|
-
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
14701
|
-
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
14702
|
-
this.clickInsideTheDocument = true;
|
|
14703
|
-
}
|
|
14704
|
-
else {
|
|
14705
|
-
this.fileValidations();
|
|
14706
|
-
}
|
|
14707
|
-
};
|
|
14708
14699
|
WriteDocumentFieldComponent.prototype.ngOnInit = function () {
|
|
14709
14700
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
14710
14701
|
if (this.secureModeOn) {
|
|
@@ -14966,10 +14957,6 @@
|
|
|
14966
14957
|
var _t = void 0;
|
|
14967
14958
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14968
14959
|
}
|
|
14969
|
-
}, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) {
|
|
14970
|
-
if (rf & 1) {
|
|
14971
|
-
i0__namespace.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0__namespace.ɵɵresolveDocument);
|
|
14972
|
-
}
|
|
14973
14960
|
}, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) {
|
|
14974
14961
|
if (rf & 1) {
|
|
14975
14962
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -15038,9 +15025,6 @@
|
|
|
15038
15025
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
15039
15026
|
type: i0.ViewChild,
|
|
15040
15027
|
args: ['fileInput', { static: false }]
|
|
15041
|
-
}], clickout: [{
|
|
15042
|
-
type: i0.HostListener,
|
|
15043
|
-
args: ['document:click', ['$event']]
|
|
15044
15028
|
}] });
|
|
15045
15029
|
})();
|
|
15046
15030
|
|
|
@@ -18781,12 +18765,6 @@
|
|
|
18781
18765
|
}
|
|
18782
18766
|
return rxjs.of(null);
|
|
18783
18767
|
};
|
|
18784
|
-
CommonDataService.prototype.getServiceOrgData = function (url) {
|
|
18785
|
-
if (url) {
|
|
18786
|
-
return this.http.get(url, { observe: 'body' });
|
|
18787
|
-
}
|
|
18788
|
-
return rxjs.of(null);
|
|
18789
|
-
};
|
|
18790
18768
|
return CommonDataService;
|
|
18791
18769
|
}());
|
|
18792
18770
|
CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
|
|
@@ -19051,7 +19029,6 @@
|
|
|
19051
19029
|
_this.linkedCasesPages = exports.LinkedCasesPages;
|
|
19052
19030
|
_this.linkedCasesEventTriggers = exports.LinkedCasesEventTriggers;
|
|
19053
19031
|
_this.linkedCases = [];
|
|
19054
|
-
_this.subscriptions = new rxjs.Subscription();
|
|
19055
19032
|
return _this;
|
|
19056
19033
|
}
|
|
19057
19034
|
WriteLinkedCasesFieldComponent.prototype.ngOnInit = function () {
|
|
@@ -19062,17 +19039,17 @@
|
|
|
19062
19039
|
// Clear validation errors
|
|
19063
19040
|
this.caseEditDataService.clearFormValidationErrors();
|
|
19064
19041
|
// Get linked case reasons from ref data
|
|
19042
|
+
this.getLinkedCaseReasons();
|
|
19065
19043
|
this.linkedCasesService.editMode = false;
|
|
19066
|
-
this.
|
|
19067
|
-
next: function (caseDetails) { _this.initialiseCaseDetails(caseDetails); }
|
|
19068
|
-
})
|
|
19069
|
-
this.
|
|
19070
|
-
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
19044
|
+
this.caseEditDataService.caseDetails$.subscribe({
|
|
19045
|
+
next: function (caseDetails) { return _this.initialiseCaseDetails(caseDetails); }
|
|
19046
|
+
});
|
|
19047
|
+
this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
19071
19048
|
next: function (name) { return _this.linkedCasesService.isLinkedCasesEventTrigger = (name === exports.LinkedCasesEventTriggers.LINK_CASES); }
|
|
19072
|
-
})
|
|
19073
|
-
this.
|
|
19049
|
+
});
|
|
19050
|
+
this.caseEditDataService.caseEditForm$.subscribe({
|
|
19074
19051
|
next: function (editForm) { return _this.caseEditForm = editForm; }
|
|
19075
|
-
})
|
|
19052
|
+
});
|
|
19076
19053
|
};
|
|
19077
19054
|
WriteLinkedCasesFieldComponent.prototype.initialiseCaseDetails = function (caseDetails) {
|
|
19078
19055
|
if (caseDetails) {
|
|
@@ -19109,29 +19086,19 @@
|
|
|
19109
19086
|
}
|
|
19110
19087
|
}
|
|
19111
19088
|
};
|
|
19112
|
-
WriteLinkedCasesFieldComponent.prototype.getLinkedCaseReasons = function (
|
|
19089
|
+
WriteLinkedCasesFieldComponent.prototype.getLinkedCaseReasons = function () {
|
|
19113
19090
|
var _this = this;
|
|
19114
|
-
var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode
|
|
19091
|
+
var reasonCodeAPIurl = this.appConfig.getRDCommonDataApiUrl() + "/lov/categories/CaseLinkingReasonCode";
|
|
19115
19092
|
this.commonDataService.getRefData(reasonCodeAPIurl).subscribe({
|
|
19116
19093
|
next: function (reasons) {
|
|
19117
19094
|
// Sort in ascending order
|
|
19118
19095
|
var linkCaseReasons = reasons.list_of_values.sort(function (a, b) { return (a.value_en > b.value_en) ? 1 : -1; });
|
|
19119
|
-
_this.linkedCasesService.linkCaseReasons = linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.filter(function (reason) { return reason.value_en !== 'Other'; });
|
|
19120
19096
|
// Move Other option to the end of the list
|
|
19097
|
+
_this.linkedCasesService.linkCaseReasons = linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.filter(function (reason) { return reason.value_en !== 'Other'; });
|
|
19121
19098
|
_this.linkedCasesService.linkCaseReasons.push(linkCaseReasons === null || linkCaseReasons === void 0 ? void 0 : linkCaseReasons.find(function (reason) { return reason.value_en === 'Other'; }));
|
|
19122
19099
|
}
|
|
19123
19100
|
});
|
|
19124
19101
|
};
|
|
19125
|
-
WriteLinkedCasesFieldComponent.prototype.getOrgService = function () {
|
|
19126
|
-
var _this = this;
|
|
19127
|
-
var _a, _b;
|
|
19128
|
-
var servicesApiUrl = "refdata/location/orgServices?ccdCaseType=" + ((_b = (_a = this.caseDetails) === null || _a === void 0 ? void 0 : _a.case_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
19129
|
-
this.commonDataService.getServiceOrgData(servicesApiUrl).subscribe(function (result) {
|
|
19130
|
-
result.forEach(function (ids) {
|
|
19131
|
-
_this.getLinkedCaseReasons(ids.service_id);
|
|
19132
|
-
});
|
|
19133
|
-
});
|
|
19134
|
-
};
|
|
19135
19102
|
WriteLinkedCasesFieldComponent.prototype.proceedToNextPage = function () {
|
|
19136
19103
|
if (this.isAtFinalPage()) {
|
|
19137
19104
|
// Continue button event must be allowed in final page
|
|
@@ -19172,8 +19139,8 @@
|
|
|
19172
19139
|
var _this = this;
|
|
19173
19140
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe(function (caseView) {
|
|
19174
19141
|
var caseViewFiltered = caseView.tabs.filter(function (tab) {
|
|
19175
|
-
return tab.fields.some(function (
|
|
19176
|
-
var field_type =
|
|
19142
|
+
return tab.fields.some(function (_b) {
|
|
19143
|
+
var field_type = _b.field_type;
|
|
19177
19144
|
return field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink';
|
|
19178
19145
|
});
|
|
19179
19146
|
});
|
|
@@ -19190,9 +19157,6 @@
|
|
|
19190
19157
|
: exports.LinkedCasesPages.NO_LINKED_CASES;
|
|
19191
19158
|
});
|
|
19192
19159
|
};
|
|
19193
|
-
WriteLinkedCasesFieldComponent.prototype.ngOnDestroy = function () {
|
|
19194
|
-
this.subscriptions.unsubscribe();
|
|
19195
|
-
};
|
|
19196
19160
|
return WriteLinkedCasesFieldComponent;
|
|
19197
19161
|
}(AbstractFieldWriteComponent));
|
|
19198
19162
|
WriteLinkedCasesFieldComponent.ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CommonDataService), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(LinkedCasesService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
|
|
@@ -21995,20 +21959,38 @@
|
|
|
21995
21959
|
}] });
|
|
21996
21960
|
})();
|
|
21997
21961
|
|
|
21962
|
+
var CaseFileViewSortColumns;
|
|
21963
|
+
(function (CaseFileViewSortColumns) {
|
|
21964
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
21965
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
21966
|
+
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
21967
|
+
|
|
21998
21968
|
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
21999
|
-
function CaseFileViewFolderSortComponent() {
|
|
21969
|
+
function CaseFileViewFolderSortComponent(appConfig) {
|
|
22000
21970
|
var _this = this;
|
|
21971
|
+
this.appConfig = appConfig;
|
|
22001
21972
|
this.isOpen = false;
|
|
22002
21973
|
this.sortAscending = new i0.EventEmitter();
|
|
22003
21974
|
this.sortDescending = new i0.EventEmitter();
|
|
22004
21975
|
this.overlayMenuItems = [
|
|
22005
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
22006
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
21976
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
21977
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
22007
21978
|
];
|
|
22008
21979
|
}
|
|
21980
|
+
CaseFileViewFolderSortComponent.prototype.ngOnInit = function () {
|
|
21981
|
+
var _this = this;
|
|
21982
|
+
if (this.appConfig.getEnableCaseFileViewVersion1_1()) {
|
|
21983
|
+
this.overlayMenuItems = [
|
|
21984
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
21985
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
21986
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
21987
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
21988
|
+
];
|
|
21989
|
+
}
|
|
21990
|
+
};
|
|
22009
21991
|
return CaseFileViewFolderSortComponent;
|
|
22010
21992
|
}());
|
|
22011
|
-
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
|
|
21993
|
+
CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
22012
21994
|
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) {
|
|
22013
21995
|
if (rf & 1) {
|
|
22014
21996
|
i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
|
|
@@ -22030,7 +22012,7 @@
|
|
|
22030
22012
|
templateUrl: './case-file-view-folder-sort.component.html',
|
|
22031
22013
|
styleUrls: ['./case-file-view-folder-sort.component.scss']
|
|
22032
22014
|
}]
|
|
22033
|
-
}], function () { return []; }, { sortAscending: [{
|
|
22015
|
+
}], function () { return [{ type: AbstractAppConfig }]; }, { sortAscending: [{
|
|
22034
22016
|
type: i0.Output
|
|
22035
22017
|
}], sortDescending: [{
|
|
22036
22018
|
type: i0.Output
|
|
@@ -22087,48 +22069,56 @@
|
|
|
22087
22069
|
enumerable: false,
|
|
22088
22070
|
configurable: true
|
|
22089
22071
|
});
|
|
22090
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
22072
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function (column, sortOrder) {
|
|
22073
|
+
var _this = this;
|
|
22091
22074
|
var _a, _b;
|
|
22092
22075
|
var sortAscending = function () {
|
|
22093
22076
|
return function (a, b) {
|
|
22094
|
-
var
|
|
22095
|
-
var
|
|
22077
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22078
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22096
22079
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22097
22080
|
return 0;
|
|
22098
22081
|
}
|
|
22099
|
-
if (
|
|
22082
|
+
if (!nodeA || !nodeB) {
|
|
22083
|
+
return 0;
|
|
22084
|
+
}
|
|
22085
|
+
if (nodeA < nodeB) {
|
|
22100
22086
|
return -1;
|
|
22101
22087
|
}
|
|
22102
|
-
if (
|
|
22088
|
+
if (nodeA > nodeB) {
|
|
22103
22089
|
return 1;
|
|
22104
22090
|
}
|
|
22105
22091
|
};
|
|
22106
22092
|
};
|
|
22107
22093
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
22108
22094
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22109
|
-
childNodes.sortChildrenAscending();
|
|
22095
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
22110
22096
|
});
|
|
22111
22097
|
};
|
|
22112
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
22098
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function (column, sortOrder) {
|
|
22099
|
+
var _this = this;
|
|
22113
22100
|
var _a, _b;
|
|
22114
22101
|
var sortDescending = function () {
|
|
22115
22102
|
return function (a, b) {
|
|
22116
|
-
var
|
|
22117
|
-
var
|
|
22103
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22104
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22118
22105
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22119
22106
|
return 0;
|
|
22120
22107
|
}
|
|
22121
|
-
if (
|
|
22108
|
+
if (!nodeA || !nodeB) {
|
|
22109
|
+
return 0;
|
|
22110
|
+
}
|
|
22111
|
+
if (nodeA > nodeB) {
|
|
22122
22112
|
return -1;
|
|
22123
22113
|
}
|
|
22124
|
-
if (
|
|
22114
|
+
if (nodeA < nodeB) {
|
|
22125
22115
|
return 1;
|
|
22126
22116
|
}
|
|
22127
22117
|
};
|
|
22128
22118
|
};
|
|
22129
22119
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
22130
22120
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22131
|
-
childNodes.sortChildrenDescending();
|
|
22121
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
22132
22122
|
});
|
|
22133
22123
|
};
|
|
22134
22124
|
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
@@ -22154,6 +22144,24 @@
|
|
|
22154
22144
|
enumerable: false,
|
|
22155
22145
|
configurable: true
|
|
22156
22146
|
});
|
|
22147
|
+
DocumentTreeNode.prototype.getNodeToSort = function (node, column, sortOrder) {
|
|
22148
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
22149
|
+
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
22150
|
+
: '';
|
|
22151
|
+
}
|
|
22152
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
22153
|
+
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
22154
|
+
return new Date(node.upload_timestamp);
|
|
22155
|
+
}
|
|
22156
|
+
if (sortOrder === exports.SortOrder.ASCENDING) {
|
|
22157
|
+
return new Date(9999, 12, 31);
|
|
22158
|
+
}
|
|
22159
|
+
if (sortOrder === exports.SortOrder.DESCENDING) {
|
|
22160
|
+
return new Date(1111, 1, 1);
|
|
22161
|
+
}
|
|
22162
|
+
}
|
|
22163
|
+
return '';
|
|
22164
|
+
};
|
|
22157
22165
|
return DocumentTreeNode;
|
|
22158
22166
|
}());
|
|
22159
22167
|
__decorate([
|
|
@@ -22184,10 +22192,14 @@
|
|
|
22184
22192
|
i0__namespace.ɵɵelementEnd();
|
|
22185
22193
|
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
22186
22194
|
i0__namespace.ɵɵtext(5);
|
|
22195
|
+
i0__namespace.ɵɵelement(6, "br");
|
|
22196
|
+
i0__namespace.ɵɵelementStart(7, "span", 17);
|
|
22197
|
+
i0__namespace.ɵɵtext(8);
|
|
22187
22198
|
i0__namespace.ɵɵelementEnd();
|
|
22188
|
-
i0__namespace.ɵɵ
|
|
22189
|
-
i0__namespace.ɵɵelementStart(
|
|
22190
|
-
i0__namespace.ɵɵ
|
|
22199
|
+
i0__namespace.ɵɵelementEnd();
|
|
22200
|
+
i0__namespace.ɵɵelementStart(9, "div", 18);
|
|
22201
|
+
i0__namespace.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
|
|
22202
|
+
i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_10_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
22191
22203
|
i0__namespace.ɵɵelementEnd();
|
|
22192
22204
|
i0__namespace.ɵɵelementEnd();
|
|
22193
22205
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22199,27 +22211,29 @@
|
|
|
22199
22211
|
i0__namespace.ɵɵadvance(1);
|
|
22200
22212
|
i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
22201
22213
|
i0__namespace.ɵɵadvance(4);
|
|
22202
|
-
i0__namespace.ɵɵ
|
|
22214
|
+
i0__namespace.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
22215
|
+
i0__namespace.ɵɵadvance(3);
|
|
22216
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
22203
22217
|
i0__namespace.ɵɵadvance(2);
|
|
22204
22218
|
i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22205
22219
|
}
|
|
22206
22220
|
}
|
|
22207
22221
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
22208
22222
|
if (rf & 1) {
|
|
22209
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
22210
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
22211
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
22212
|
-
i0__namespace.ɵɵelement(3, "img",
|
|
22213
|
-
i0__namespace.ɵɵelementStart(4, "span",
|
|
22223
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
|
|
22224
|
+
i0__namespace.ɵɵelementStart(1, "button", 21);
|
|
22225
|
+
i0__namespace.ɵɵelementStart(2, "div", 22);
|
|
22226
|
+
i0__namespace.ɵɵelement(3, "img", 23);
|
|
22227
|
+
i0__namespace.ɵɵelementStart(4, "span", 24);
|
|
22214
22228
|
i0__namespace.ɵɵtext(5);
|
|
22215
22229
|
i0__namespace.ɵɵelementEnd();
|
|
22216
22230
|
i0__namespace.ɵɵelementEnd();
|
|
22217
|
-
i0__namespace.ɵɵelementStart(6, "span",
|
|
22231
|
+
i0__namespace.ɵɵelementStart(6, "span", 25);
|
|
22218
22232
|
i0__namespace.ɵɵtext(7);
|
|
22219
22233
|
i0__namespace.ɵɵelementEnd();
|
|
22220
22234
|
i0__namespace.ɵɵelementEnd();
|
|
22221
22235
|
i0__namespace.ɵɵelementStart(8, "div");
|
|
22222
|
-
i0__namespace.ɵɵelementContainer(9,
|
|
22236
|
+
i0__namespace.ɵɵelementContainer(9, 26);
|
|
22223
22237
|
i0__namespace.ɵɵelementEnd();
|
|
22224
22238
|
i0__namespace.ɵɵelementEnd();
|
|
22225
22239
|
}
|
|
@@ -22244,7 +22258,7 @@
|
|
|
22244
22258
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
22245
22259
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22246
22260
|
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
22247
|
-
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
22261
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
|
|
22248
22262
|
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
22249
22263
|
i0__namespace.ɵɵelementEnd();
|
|
22250
22264
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22262,17 +22276,18 @@
|
|
|
22262
22276
|
}
|
|
22263
22277
|
var MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
|
|
22264
22278
|
var CaseFileViewFolderComponent = /** @class */ (function () {
|
|
22265
|
-
function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog) {
|
|
22279
|
+
function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog, appConfig) {
|
|
22266
22280
|
this.windowService = windowService;
|
|
22267
22281
|
this.router = router;
|
|
22268
22282
|
this.documentManagementService = documentManagementService;
|
|
22269
22283
|
this.dialog = dialog;
|
|
22284
|
+
this.appConfig = appConfig;
|
|
22270
22285
|
this.clickedDocument = new i0.EventEmitter();
|
|
22271
22286
|
this.moveDocument = new i0.EventEmitter();
|
|
22272
22287
|
this.categories = [];
|
|
22273
22288
|
this.getChildren = function (node) { return rxjs.of(node.children); };
|
|
22274
22289
|
this.nestedChildren = function (_, nodeData) { return nodeData.children; };
|
|
22275
|
-
this.nestedTreeControl = new
|
|
22290
|
+
this.nestedTreeControl = new i8.NestedTreeControl(this.getChildren);
|
|
22276
22291
|
}
|
|
22277
22292
|
Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
|
|
22278
22293
|
get: function () {
|
|
@@ -22331,6 +22346,7 @@
|
|
|
22331
22346
|
}, []);
|
|
22332
22347
|
};
|
|
22333
22348
|
CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
|
|
22349
|
+
var _this = this;
|
|
22334
22350
|
var documentsToReturn = [];
|
|
22335
22351
|
documents.forEach(function (document) {
|
|
22336
22352
|
var documentTreeNode = new DocumentTreeNode();
|
|
@@ -22339,11 +22355,14 @@
|
|
|
22339
22355
|
documentTreeNode.document_filename = document.document_filename;
|
|
22340
22356
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22341
22357
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22358
|
+
documentTreeNode.upload_timestamp = _this.appConfig.getEnableCaseFileViewVersion1_1()
|
|
22359
|
+
&& document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22342
22360
|
documentsToReturn.push(documentTreeNode);
|
|
22343
22361
|
});
|
|
22344
22362
|
return documentsToReturn;
|
|
22345
22363
|
};
|
|
22346
22364
|
CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
|
|
22365
|
+
var _this = this;
|
|
22347
22366
|
var documents = [];
|
|
22348
22367
|
uncategorisedDocuments.forEach(function (document) {
|
|
22349
22368
|
var documentTreeNode = new DocumentTreeNode();
|
|
@@ -22352,6 +22371,8 @@
|
|
|
22352
22371
|
documentTreeNode.document_filename = document.document_filename;
|
|
22353
22372
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22354
22373
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22374
|
+
documentTreeNode.upload_timestamp = _this.appConfig.getEnableCaseFileViewVersion1_1()
|
|
22375
|
+
&& document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22355
22376
|
documents.push(documentTreeNode);
|
|
22356
22377
|
});
|
|
22357
22378
|
var uncategorisedNode = new DocumentTreeNode();
|
|
@@ -22406,16 +22427,16 @@
|
|
|
22406
22427
|
return;
|
|
22407
22428
|
}
|
|
22408
22429
|
};
|
|
22409
|
-
CaseFileViewFolderComponent.prototype.
|
|
22430
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscending = function (column) {
|
|
22410
22431
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22411
|
-
item.sortChildrenAscending();
|
|
22432
|
+
item.sortChildrenAscending(column, exports.SortOrder.ASCENDING);
|
|
22412
22433
|
return item;
|
|
22413
22434
|
});
|
|
22414
22435
|
this.updateNodeData(sortedData);
|
|
22415
22436
|
};
|
|
22416
|
-
CaseFileViewFolderComponent.prototype.
|
|
22437
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescending = function (column) {
|
|
22417
22438
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22418
|
-
item.sortChildrenDescending();
|
|
22439
|
+
item.sortChildrenDescending(column, exports.SortOrder.DESCENDING);
|
|
22419
22440
|
return item;
|
|
22420
22441
|
});
|
|
22421
22442
|
this.updateNodeData(sortedData);
|
|
@@ -22475,8 +22496,8 @@
|
|
|
22475
22496
|
CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
|
|
22476
22497
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
22477
22498
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
22478
|
-
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
|
|
22479
|
-
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
22499
|
+
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
|
|
22500
|
+
CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
|
|
22480
22501
|
if (rf & 1) {
|
|
22481
22502
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22482
22503
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -22489,7 +22510,7 @@
|
|
|
22489
22510
|
i0__namespace.ɵɵelementEnd();
|
|
22490
22511
|
i0__namespace.ɵɵelementStart(6, "div");
|
|
22491
22512
|
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
22492
|
-
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.
|
|
22513
|
+
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener($event) { return ctx.sortDataSourceAscending($event); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener($event) { return ctx.sortDataSourceDescending($event); });
|
|
22493
22514
|
i0__namespace.ɵɵelementEnd();
|
|
22494
22515
|
i0__namespace.ɵɵelementEnd();
|
|
22495
22516
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22503,7 +22524,7 @@
|
|
|
22503
22524
|
i0__namespace.ɵɵadvance(3);
|
|
22504
22525
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
22505
22526
|
}
|
|
22506
|
-
}, directives: [i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, CaseFileViewFolderSortComponent, i2__namespace.NgIf,
|
|
22527
|
+
}, directives: [i2__namespace$1.NgControlStatusGroup, i2__namespace$1.FormGroupDirective, i2__namespace$1.DefaultValueAccessor, i2__namespace$1.NgControlStatus, i2__namespace$1.FormControlName, CaseFileViewFolderSortComponent, i2__namespace.NgIf, i8__namespace.CdkTree, i8__namespace.CdkTreeNodeDef, i8__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i8__namespace.CdkTreeNodeToggle, i8__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
|
|
22507
22528
|
(function () {
|
|
22508
22529
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
22509
22530
|
type: i0.Component,
|
|
@@ -22512,7 +22533,7 @@
|
|
|
22512
22533
|
templateUrl: './case-file-view-folder.component.html',
|
|
22513
22534
|
styleUrls: ['./case-file-view-folder.component.scss'],
|
|
22514
22535
|
}]
|
|
22515
|
-
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
|
|
22536
|
+
}], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: AbstractAppConfig }]; }, { categoriesAndDocuments: [{
|
|
22516
22537
|
type: i0.Input
|
|
22517
22538
|
}], allowMoving: [{
|
|
22518
22539
|
type: i0.Input
|
|
@@ -24419,13 +24440,6 @@
|
|
|
24419
24440
|
}] });
|
|
24420
24441
|
})();
|
|
24421
24442
|
|
|
24422
|
-
var SortOrder;
|
|
24423
|
-
(function (SortOrder) {
|
|
24424
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
24425
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
24426
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
24427
|
-
})(SortOrder || (SortOrder = {}));
|
|
24428
|
-
|
|
24429
24443
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
|
|
24430
24444
|
if (rf & 1) {
|
|
24431
24445
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -24699,7 +24713,7 @@
|
|
|
24699
24713
|
return _this;
|
|
24700
24714
|
}
|
|
24701
24715
|
ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
|
|
24702
|
-
return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
|
|
24716
|
+
return !(column.sortOrder === exports.SortOrder.UNSORTED || column.sortOrder === exports.SortOrder.DESCENDING);
|
|
24703
24717
|
};
|
|
24704
24718
|
ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
|
|
24705
24719
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -24757,19 +24771,19 @@
|
|
|
24757
24771
|
});
|
|
24758
24772
|
};
|
|
24759
24773
|
ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
|
|
24760
|
-
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
24761
|
-
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
24774
|
+
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.UNSORTED
|
|
24775
|
+
|| this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.DESCENDING;
|
|
24762
24776
|
// tslint:disable-next-line:switch-default
|
|
24763
24777
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
24764
24778
|
case 'Number':
|
|
24765
24779
|
case 'MoneyGBP': {
|
|
24766
24780
|
if (shouldSortInAscendingOrder) {
|
|
24767
24781
|
this.rows.sort(function (a, b) { return a[column] - b[column]; });
|
|
24768
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
24782
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24769
24783
|
}
|
|
24770
24784
|
else {
|
|
24771
24785
|
this.rows.sort(function (a, b) { return b[column] - a[column]; });
|
|
24772
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
24786
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24773
24787
|
}
|
|
24774
24788
|
break;
|
|
24775
24789
|
}
|
|
@@ -24786,11 +24800,11 @@
|
|
|
24786
24800
|
{
|
|
24787
24801
|
if (shouldSortInAscendingOrder) {
|
|
24788
24802
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
|
|
24789
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
24803
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24790
24804
|
}
|
|
24791
24805
|
else {
|
|
24792
24806
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
|
|
24793
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
24807
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24794
24808
|
}
|
|
24795
24809
|
}
|
|
24796
24810
|
break;
|
|
@@ -24806,7 +24820,7 @@
|
|
|
24806
24820
|
var id = _c.value;
|
|
24807
24821
|
var trimmedId = id.trim();
|
|
24808
24822
|
labelsHorizontal[trimmedId] = allLabels[trimmedId];
|
|
24809
|
-
labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
|
|
24823
|
+
labelsHorizontal[trimmedId].sortOrder = exports.SortOrder.UNSORTED;
|
|
24810
24824
|
delete labelsVertical[trimmedId];
|
|
24811
24825
|
}
|
|
24812
24826
|
}
|
|
@@ -26738,7 +26752,7 @@
|
|
|
26738
26752
|
}
|
|
26739
26753
|
return searchResults.sort(function (a, b) {
|
|
26740
26754
|
return sortParameters.comparator.compare(a, b)
|
|
26741
|
-
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
26755
|
+
* (sortParameters.sortOrder === exports.SortOrder.DESCENDING ? 1 : -1);
|
|
26742
26756
|
});
|
|
26743
26757
|
};
|
|
26744
26758
|
return SortSearchResultPipe;
|
|
@@ -27034,12 +27048,12 @@
|
|
|
27034
27048
|
i3$1.MatInputModule,
|
|
27035
27049
|
i5$1.MatDatepickerModule,
|
|
27036
27050
|
i5.MatAutocompleteModule,
|
|
27037
|
-
|
|
27051
|
+
i8.CdkTreeModule,
|
|
27038
27052
|
i1$5.OverlayModule,
|
|
27039
27053
|
i3.PaymentLibModule,
|
|
27040
27054
|
i2$2.ScrollToModule.forRoot(),
|
|
27041
27055
|
i1.RpxTranslationModule.forChild(),
|
|
27042
|
-
|
|
27056
|
+
i8.CdkTreeModule,
|
|
27043
27057
|
i1$5.OverlayModule,
|
|
27044
27058
|
i1$3.MatDialogModule,
|
|
27045
27059
|
i12.MediaViewerModule,
|
|
@@ -27182,9 +27196,9 @@
|
|
|
27182
27196
|
i3$1.MatInputModule,
|
|
27183
27197
|
i5$1.MatDatepickerModule,
|
|
27184
27198
|
i5.MatAutocompleteModule,
|
|
27185
|
-
|
|
27199
|
+
i8.CdkTreeModule,
|
|
27186
27200
|
i1$5.OverlayModule,
|
|
27187
|
-
i3.PaymentLibModule, i2__namespace$2.ScrollToModule, i1__namespace.RpxTranslationModule,
|
|
27201
|
+
i3.PaymentLibModule, i2__namespace$2.ScrollToModule, i1__namespace.RpxTranslationModule, i8.CdkTreeModule,
|
|
27188
27202
|
i1$5.OverlayModule,
|
|
27189
27203
|
i1$3.MatDialogModule,
|
|
27190
27204
|
i12.MediaViewerModule,
|
|
@@ -27327,12 +27341,12 @@
|
|
|
27327
27341
|
i3$1.MatInputModule,
|
|
27328
27342
|
i5$1.MatDatepickerModule,
|
|
27329
27343
|
i5.MatAutocompleteModule,
|
|
27330
|
-
|
|
27344
|
+
i8.CdkTreeModule,
|
|
27331
27345
|
i1$5.OverlayModule,
|
|
27332
27346
|
i3.PaymentLibModule,
|
|
27333
27347
|
i2$2.ScrollToModule.forRoot(),
|
|
27334
27348
|
i1.RpxTranslationModule.forChild(),
|
|
27335
|
-
|
|
27349
|
+
i8.CdkTreeModule,
|
|
27336
27350
|
i1$5.OverlayModule,
|
|
27337
27351
|
i1$3.MatDialogModule,
|
|
27338
27352
|
i12.MediaViewerModule,
|
|
@@ -32421,12 +32435,13 @@
|
|
|
32421
32435
|
};
|
|
32422
32436
|
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
32423
32437
|
CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
|
|
32438
|
+
var _a;
|
|
32424
32439
|
var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
|
|
32425
32440
|
var tabLabel = matTab.textLabel;
|
|
32426
32441
|
// sortedTabs are fragments
|
|
32427
32442
|
// appended/prepepended tabs use router navigation
|
|
32428
32443
|
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
32429
|
-
(this.appendedTabs
|
|
32444
|
+
(((_a = this.appendedTabs) === null || _a === void 0 ? void 0 : _a.length) && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
32430
32445
|
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
32431
32446
|
var tab = matTab['_viewContainerRef'];
|
|
32432
32447
|
var id = tab.element.nativeElement.id;
|
|
@@ -32446,6 +32461,7 @@
|
|
|
32446
32461
|
var targetTabIndex = this.tabGroup._tabs.toArray().findIndex(function (tab) { return tab.textLabel === triggerOutputEventText; });
|
|
32447
32462
|
if (targetTabIndex > -1) {
|
|
32448
32463
|
this.selectedTabIndex = targetTabIndex;
|
|
32464
|
+
this.tabGroup.selectedIndex = targetTabIndex;
|
|
32449
32465
|
}
|
|
32450
32466
|
};
|
|
32451
32467
|
CaseFullAccessViewComponent.prototype.hasActiveCaseFlags = function () {
|
|
@@ -32524,8 +32540,8 @@
|
|
|
32524
32540
|
var value = {};
|
|
32525
32541
|
if (caseFields) {
|
|
32526
32542
|
caseFields.forEach(function (caseField) {
|
|
32527
|
-
var
|
|
32528
|
-
value = Object.assign(Object.assign({}, value), (
|
|
32543
|
+
var _b;
|
|
32544
|
+
value = Object.assign(Object.assign({}, value), (_b = {}, _b[caseField.id] = caseField.value, _b));
|
|
32529
32545
|
});
|
|
32530
32546
|
}
|
|
32531
32547
|
return new i2$1.FormGroup({ data: new i2$1.FormControl(value) });
|