@hmcts/ccd-case-ui-toolkit 6.19.5-case-file-view-document-upload-date → 6.19.5-restricted-case-access
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 +103 -377
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +10 -6
- 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 +3 -6
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +20 -30
- package/esm2015/lib/shared/components/palette/complex/read-complex-field-collection-table.component.js +2 -2
- package/esm2015/lib/shared/components/palette/complex/sort-order.js +7 -0
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
- package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +13 -39
- package/esm2015/lib/shared/domain/case-file-view/index.js +2 -3
- package/esm2015/lib/shared/domain/index.js +10 -10
- package/esm2015/lib/shared/domain/search/sorting/sort-order.js +7 -0
- package/esm2015/lib/shared/domain/search/sorting/sort-parameters.js +1 -1
- 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 -12
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +81 -353
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-viewer/services/case.resolver.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 +2 -2
- 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 +2 -2
- 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/complex/read-complex-field-collection-table.component.d.ts.map +1 -1
- package/lib/shared/{domain/sort-order.enum.d.ts → components/palette/complex/sort-order.d.ts} +1 -1
- package/lib/shared/components/palette/complex/sort-order.d.ts.map +1 -0
- 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/document-tree-node/document-tree-node.model.d.ts +2 -4
- 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 +1 -2
- 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-order.d.ts +6 -0
- package/lib/shared/domain/search/sorting/sort-order.d.ts.map +1 -0
- 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/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.js +0 -233
- package/esm2015/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.js +0 -6
- package/esm2015/lib/shared/domain/sort-order.enum.js +0 -7
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts +0 -3
- package/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.d.ts.map +0 -1
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts +0 -5
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts.map +0 -1
- package/lib/shared/domain/sort-order.enum.d.ts.map +0 -1
|
@@ -3501,20 +3501,6 @@
|
|
|
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
|
-
|
|
3518
3504
|
var WizardPageField = /** @class */ (function () {
|
|
3519
3505
|
function WizardPageField() {
|
|
3520
3506
|
}
|
|
@@ -3934,20 +3920,6 @@
|
|
|
3934
3920
|
return FormDocument;
|
|
3935
3921
|
}());
|
|
3936
3922
|
|
|
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
|
-
|
|
3951
3923
|
var OrganisationConverter = /** @class */ (function () {
|
|
3952
3924
|
function OrganisationConverter() {
|
|
3953
3925
|
}
|
|
@@ -3993,12 +3965,6 @@
|
|
|
3993
3965
|
}], null, null);
|
|
3994
3966
|
})();
|
|
3995
3967
|
|
|
3996
|
-
var PaginationMetadata = /** @class */ (function () {
|
|
3997
|
-
function PaginationMetadata() {
|
|
3998
|
-
}
|
|
3999
|
-
return PaginationMetadata;
|
|
4000
|
-
}());
|
|
4001
|
-
|
|
4002
3968
|
function hasRoles(profile) {
|
|
4003
3969
|
if (profile.user && profile.user.idam && Array.isArray(profile.user.idam.roles)) {
|
|
4004
3970
|
return profile.user.idam.roles.length > 0;
|
|
@@ -4057,6 +4023,20 @@
|
|
|
4057
4023
|
__metadata("design:type", Array)
|
|
4058
4024
|
], SearchResultViewItem.prototype, "hydrated_case_fields", void 0);
|
|
4059
4025
|
|
|
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
|
+
|
|
4060
4040
|
// @dynamic
|
|
4061
4041
|
var SearchResultView = /** @class */ (function () {
|
|
4062
4042
|
function SearchResultView() {
|
|
@@ -4077,20 +4057,19 @@
|
|
|
4077
4057
|
__metadata("design:type", Array)
|
|
4078
4058
|
], SearchResultView.prototype, "results", void 0);
|
|
4079
4059
|
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
this.sortOrder = sortOrder;
|
|
4060
|
+
// tslint:disable:variable-name
|
|
4061
|
+
var CaseDetails = /** @class */ (function () {
|
|
4062
|
+
function CaseDetails() {
|
|
4084
4063
|
}
|
|
4085
|
-
return
|
|
4064
|
+
return CaseDetails;
|
|
4086
4065
|
}());
|
|
4087
4066
|
|
|
4088
|
-
|
|
4089
|
-
(function (
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
}
|
|
4067
|
+
// tslint:disable:variable-name
|
|
4068
|
+
var CaseEventData = /** @class */ (function () {
|
|
4069
|
+
function CaseEventData() {
|
|
4070
|
+
}
|
|
4071
|
+
return CaseEventData;
|
|
4072
|
+
}());
|
|
4094
4073
|
|
|
4095
4074
|
var WorkbasketInputModel = /** @class */ (function () {
|
|
4096
4075
|
function WorkbasketInputModel() {
|
|
@@ -4103,6 +4082,27 @@
|
|
|
4103
4082
|
return WorkbasketInput;
|
|
4104
4083
|
}());
|
|
4105
4084
|
|
|
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() {
|
|
@@ -7275,239 +7275,6 @@
|
|
|
7275
7275
|
}], function () { return [{ type: i1__namespace$1.Router }, { type: i1__namespace.RpxTranslationService }]; }, null);
|
|
7276
7276
|
})();
|
|
7277
7277
|
|
|
7278
|
-
var categoriesAndDocumentsTestData = {
|
|
7279
|
-
case_version: 1,
|
|
7280
|
-
categories: [
|
|
7281
|
-
{
|
|
7282
|
-
category_id: 'Beers',
|
|
7283
|
-
category_name: 'Beers',
|
|
7284
|
-
category_order: 1,
|
|
7285
|
-
documents: [
|
|
7286
|
-
{
|
|
7287
|
-
document_url: '/test',
|
|
7288
|
-
document_filename: 'Lager encyclopedia',
|
|
7289
|
-
document_binary_url: '/test/binary',
|
|
7290
|
-
attribute_path: '',
|
|
7291
|
-
upload_timestamp: new Date(2023, 4, 11),
|
|
7292
|
-
content_type: ''
|
|
7293
|
-
},
|
|
7294
|
-
{
|
|
7295
|
-
document_url: '/test',
|
|
7296
|
-
document_filename: 'Beers encyclopedia',
|
|
7297
|
-
document_binary_url: '/test/binary',
|
|
7298
|
-
attribute_path: '',
|
|
7299
|
-
upload_timestamp: new Date(2023, 3, 14),
|
|
7300
|
-
content_type: ''
|
|
7301
|
-
},
|
|
7302
|
-
{
|
|
7303
|
-
document_url: '/test',
|
|
7304
|
-
document_filename: 'Ale encyclopedia',
|
|
7305
|
-
document_binary_url: '/test/binary',
|
|
7306
|
-
attribute_path: '',
|
|
7307
|
-
upload_timestamp: new Date(2023, 2, 12),
|
|
7308
|
-
content_type: ''
|
|
7309
|
-
}
|
|
7310
|
-
],
|
|
7311
|
-
sub_categories: [
|
|
7312
|
-
{
|
|
7313
|
-
category_id: 'BeersBitters',
|
|
7314
|
-
category_name: 'Bitters',
|
|
7315
|
-
category_order: 1,
|
|
7316
|
-
documents: [],
|
|
7317
|
-
sub_categories: []
|
|
7318
|
-
},
|
|
7319
|
-
{
|
|
7320
|
-
category_id: 'BeersAmerican',
|
|
7321
|
-
category_name: 'American',
|
|
7322
|
-
category_order: 2,
|
|
7323
|
-
documents: [],
|
|
7324
|
-
sub_categories: []
|
|
7325
|
-
},
|
|
7326
|
-
{
|
|
7327
|
-
category_id: 'BeersAsian',
|
|
7328
|
-
category_name: 'Asian',
|
|
7329
|
-
category_order: 3,
|
|
7330
|
-
documents: [],
|
|
7331
|
-
sub_categories: []
|
|
7332
|
-
}
|
|
7333
|
-
]
|
|
7334
|
-
},
|
|
7335
|
-
{
|
|
7336
|
-
category_id: 'Wines',
|
|
7337
|
-
category_name: 'Wines',
|
|
7338
|
-
category_order: 2,
|
|
7339
|
-
documents: [],
|
|
7340
|
-
sub_categories: [
|
|
7341
|
-
{
|
|
7342
|
-
category_id: 'WinesFrench',
|
|
7343
|
-
category_name: 'French',
|
|
7344
|
-
category_order: 1,
|
|
7345
|
-
documents: [],
|
|
7346
|
-
sub_categories: []
|
|
7347
|
-
},
|
|
7348
|
-
{
|
|
7349
|
-
category_id: 'WinesItalian',
|
|
7350
|
-
category_name: 'Italian',
|
|
7351
|
-
category_order: 2,
|
|
7352
|
-
documents: [
|
|
7353
|
-
{
|
|
7354
|
-
document_url: '/red-wine',
|
|
7355
|
-
document_filename: 'Details about red wine',
|
|
7356
|
-
document_binary_url: '/test/binary',
|
|
7357
|
-
attribute_path: '',
|
|
7358
|
-
upload_timestamp: null,
|
|
7359
|
-
content_type: ''
|
|
7360
|
-
},
|
|
7361
|
-
{
|
|
7362
|
-
document_url: '/white-wine',
|
|
7363
|
-
document_filename: 'Details about white wine',
|
|
7364
|
-
document_binary_url: '/test/binary',
|
|
7365
|
-
attribute_path: '',
|
|
7366
|
-
upload_timestamp: new Date(2023, 1, 10),
|
|
7367
|
-
content_type: ''
|
|
7368
|
-
},
|
|
7369
|
-
{
|
|
7370
|
-
document_url: '/prosecco',
|
|
7371
|
-
document_filename: 'Details about Prosecco',
|
|
7372
|
-
document_binary_url: '/test/binary',
|
|
7373
|
-
attribute_path: '',
|
|
7374
|
-
upload_timestamp: new Date(2023, 3, 12),
|
|
7375
|
-
content_type: ''
|
|
7376
|
-
},
|
|
7377
|
-
{
|
|
7378
|
-
document_url: '/pinot-grigio',
|
|
7379
|
-
document_filename: 'Details about Pinot Grigio',
|
|
7380
|
-
document_binary_url: '/test/binary',
|
|
7381
|
-
attribute_path: '',
|
|
7382
|
-
upload_timestamp: new Date(2023, 2, 16),
|
|
7383
|
-
content_type: ''
|
|
7384
|
-
}
|
|
7385
|
-
],
|
|
7386
|
-
sub_categories: []
|
|
7387
|
-
}
|
|
7388
|
-
]
|
|
7389
|
-
},
|
|
7390
|
-
{
|
|
7391
|
-
category_id: 'Spirits',
|
|
7392
|
-
category_name: 'Spirits',
|
|
7393
|
-
category_order: 3,
|
|
7394
|
-
documents: [],
|
|
7395
|
-
sub_categories: [
|
|
7396
|
-
{
|
|
7397
|
-
category_id: 'SpiritsWhisky',
|
|
7398
|
-
category_name: 'Scotch whisky',
|
|
7399
|
-
category_order: 1,
|
|
7400
|
-
documents: [],
|
|
7401
|
-
sub_categories: [
|
|
7402
|
-
{
|
|
7403
|
-
category_id: 'WhiskyHighland',
|
|
7404
|
-
category_name: 'Highland',
|
|
7405
|
-
category_order: 1,
|
|
7406
|
-
documents: [],
|
|
7407
|
-
sub_categories: [
|
|
7408
|
-
{
|
|
7409
|
-
category_id: 'WhiskyHighland1',
|
|
7410
|
-
category_name: 'Highland 1',
|
|
7411
|
-
category_order: 1,
|
|
7412
|
-
documents: [],
|
|
7413
|
-
sub_categories: []
|
|
7414
|
-
}
|
|
7415
|
-
]
|
|
7416
|
-
},
|
|
7417
|
-
{
|
|
7418
|
-
category_id: 'WhiskyLowland',
|
|
7419
|
-
category_name: 'Lowland',
|
|
7420
|
-
category_order: 2,
|
|
7421
|
-
documents: [],
|
|
7422
|
-
sub_categories: [
|
|
7423
|
-
{
|
|
7424
|
-
category_id: 'WhiskyLowland1',
|
|
7425
|
-
category_name: 'Lowland 1',
|
|
7426
|
-
category_order: 1,
|
|
7427
|
-
documents: [
|
|
7428
|
-
{
|
|
7429
|
-
document_url: '/test',
|
|
7430
|
-
document_filename: 'Details about Whisky Lowland 1',
|
|
7431
|
-
document_binary_url: '/test/binary',
|
|
7432
|
-
attribute_path: '',
|
|
7433
|
-
upload_timestamp: new Date(2022, 5, 21),
|
|
7434
|
-
content_type: ''
|
|
7435
|
-
}
|
|
7436
|
-
],
|
|
7437
|
-
sub_categories: []
|
|
7438
|
-
},
|
|
7439
|
-
{
|
|
7440
|
-
category_id: 'WhiskyLowland2',
|
|
7441
|
-
category_name: 'Lowland 2',
|
|
7442
|
-
category_order: 2,
|
|
7443
|
-
documents: [],
|
|
7444
|
-
sub_categories: []
|
|
7445
|
-
}
|
|
7446
|
-
]
|
|
7447
|
-
},
|
|
7448
|
-
{
|
|
7449
|
-
category_id: 'WhiskyIslay',
|
|
7450
|
-
category_name: 'Islay',
|
|
7451
|
-
category_order: 3,
|
|
7452
|
-
documents: [
|
|
7453
|
-
{
|
|
7454
|
-
document_url: '/test',
|
|
7455
|
-
document_filename: 'Details about Whisky Islay',
|
|
7456
|
-
document_binary_url: '/test/binary',
|
|
7457
|
-
attribute_path: '',
|
|
7458
|
-
upload_timestamp: new Date(2022, 10, 4),
|
|
7459
|
-
content_type: ''
|
|
7460
|
-
},
|
|
7461
|
-
{
|
|
7462
|
-
document_url: '/test',
|
|
7463
|
-
document_filename: 'More information about Whisky Islay',
|
|
7464
|
-
document_binary_url: '/test/binary',
|
|
7465
|
-
attribute_path: '',
|
|
7466
|
-
upload_timestamp: new Date(2022, 11, 28),
|
|
7467
|
-
content_type: ''
|
|
7468
|
-
}
|
|
7469
|
-
],
|
|
7470
|
-
sub_categories: []
|
|
7471
|
-
},
|
|
7472
|
-
{
|
|
7473
|
-
category_id: 'WhiskySpeyside',
|
|
7474
|
-
category_name: 'Speyside',
|
|
7475
|
-
category_order: 4,
|
|
7476
|
-
documents: [],
|
|
7477
|
-
sub_categories: []
|
|
7478
|
-
},
|
|
7479
|
-
{
|
|
7480
|
-
category_id: 'WhiskyCampbeltown',
|
|
7481
|
-
category_name: 'Campbeltown',
|
|
7482
|
-
category_order: 5,
|
|
7483
|
-
documents: [],
|
|
7484
|
-
sub_categories: []
|
|
7485
|
-
}
|
|
7486
|
-
]
|
|
7487
|
-
}
|
|
7488
|
-
]
|
|
7489
|
-
}
|
|
7490
|
-
],
|
|
7491
|
-
uncategorised_documents: [
|
|
7492
|
-
{
|
|
7493
|
-
document_url: '/uncategorised-document-1',
|
|
7494
|
-
document_filename: 'Uncategorised document 1',
|
|
7495
|
-
document_binary_url: '/test/binary',
|
|
7496
|
-
attribute_path: '',
|
|
7497
|
-
upload_timestamp: new Date(2022, 10, 17),
|
|
7498
|
-
content_type: ''
|
|
7499
|
-
},
|
|
7500
|
-
{
|
|
7501
|
-
document_url: '/uncategorised-document-2',
|
|
7502
|
-
document_filename: 'Uncategorised document 2',
|
|
7503
|
-
document_binary_url: '/test/binary',
|
|
7504
|
-
attribute_path: '',
|
|
7505
|
-
upload_timestamp: new Date(2023, 1, 23),
|
|
7506
|
-
content_type: ''
|
|
7507
|
-
}
|
|
7508
|
-
]
|
|
7509
|
-
};
|
|
7510
|
-
|
|
7511
7278
|
var CaseFileViewService = /** @class */ (function () {
|
|
7512
7279
|
function CaseFileViewService(http, appConfig) {
|
|
7513
7280
|
this.http = http;
|
|
@@ -7520,16 +7287,6 @@
|
|
|
7520
7287
|
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
7521
7288
|
*/
|
|
7522
7289
|
CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
|
|
7523
|
-
// Case file view v1.1 epic - https://tools.hmcts.net/jira/browse/EUI-7807
|
|
7524
|
-
// Display upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7819
|
|
7525
|
-
// Sort by upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7812
|
|
7526
|
-
// The property upload_timestamp is not available as it is not yet implemented by CCD
|
|
7527
|
-
// Using this case reference '1666863124102280' to return the mock data with upload_timestamp
|
|
7528
|
-
// The below 'if' statement should be removed once the upload_timestamp property is made available by CCD
|
|
7529
|
-
// https://tools.hmcts.net/jira/browse/EUI-8129
|
|
7530
|
-
if (caseRef === '1666863124102280') {
|
|
7531
|
-
return rxjs.of(categoriesAndDocumentsTestData);
|
|
7532
|
-
}
|
|
7533
7290
|
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
7534
7291
|
if (url) {
|
|
7535
7292
|
url += "/" + caseRef;
|
|
@@ -22150,12 +21907,6 @@
|
|
|
22150
21907
|
}] });
|
|
22151
21908
|
})();
|
|
22152
21909
|
|
|
22153
|
-
var CaseFileViewSortColumns;
|
|
22154
|
-
(function (CaseFileViewSortColumns) {
|
|
22155
|
-
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
22156
|
-
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
22157
|
-
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
22158
|
-
|
|
22159
21910
|
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
22160
21911
|
function CaseFileViewFolderSortComponent() {
|
|
22161
21912
|
var _this = this;
|
|
@@ -22163,10 +21914,8 @@
|
|
|
22163
21914
|
this.sortAscending = new i0.EventEmitter();
|
|
22164
21915
|
this.sortDescending = new i0.EventEmitter();
|
|
22165
21916
|
this.overlayMenuItems = [
|
|
22166
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(
|
|
22167
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(
|
|
22168
|
-
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
22169
|
-
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
21917
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
21918
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
22170
21919
|
];
|
|
22171
21920
|
}
|
|
22172
21921
|
return CaseFileViewFolderSortComponent;
|
|
@@ -22250,56 +21999,48 @@
|
|
|
22250
21999
|
enumerable: false,
|
|
22251
22000
|
configurable: true
|
|
22252
22001
|
});
|
|
22253
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function (
|
|
22254
|
-
var _this = this;
|
|
22002
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
22255
22003
|
var _a, _b;
|
|
22256
22004
|
var sortAscending = function () {
|
|
22257
22005
|
return function (a, b) {
|
|
22258
|
-
var
|
|
22259
|
-
var
|
|
22006
|
+
var nameA = a.name.toUpperCase();
|
|
22007
|
+
var nameB = b.name.toUpperCase();
|
|
22260
22008
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22261
22009
|
return 0;
|
|
22262
22010
|
}
|
|
22263
|
-
if (
|
|
22264
|
-
return 0;
|
|
22265
|
-
}
|
|
22266
|
-
if (nodeA < nodeB) {
|
|
22011
|
+
if (nameA < nameB) {
|
|
22267
22012
|
return -1;
|
|
22268
22013
|
}
|
|
22269
|
-
if (
|
|
22014
|
+
if (nameA > nameB) {
|
|
22270
22015
|
return 1;
|
|
22271
22016
|
}
|
|
22272
22017
|
};
|
|
22273
22018
|
};
|
|
22274
22019
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
22275
22020
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22276
|
-
childNodes.sortChildrenAscending(
|
|
22021
|
+
childNodes.sortChildrenAscending();
|
|
22277
22022
|
});
|
|
22278
22023
|
};
|
|
22279
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function (
|
|
22280
|
-
var _this = this;
|
|
22024
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
22281
22025
|
var _a, _b;
|
|
22282
22026
|
var sortDescending = function () {
|
|
22283
22027
|
return function (a, b) {
|
|
22284
|
-
var
|
|
22285
|
-
var
|
|
22028
|
+
var nameA = a.name.toUpperCase();
|
|
22029
|
+
var nameB = b.name.toUpperCase();
|
|
22286
22030
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22287
22031
|
return 0;
|
|
22288
22032
|
}
|
|
22289
|
-
if (
|
|
22290
|
-
return 0;
|
|
22291
|
-
}
|
|
22292
|
-
if (nodeA > nodeB) {
|
|
22033
|
+
if (nameA > nameB) {
|
|
22293
22034
|
return -1;
|
|
22294
22035
|
}
|
|
22295
|
-
if (
|
|
22036
|
+
if (nameA < nameB) {
|
|
22296
22037
|
return 1;
|
|
22297
22038
|
}
|
|
22298
22039
|
};
|
|
22299
22040
|
};
|
|
22300
22041
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
22301
22042
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22302
|
-
childNodes.sortChildrenDescending(
|
|
22043
|
+
childNodes.sortChildrenDescending();
|
|
22303
22044
|
});
|
|
22304
22045
|
};
|
|
22305
22046
|
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
@@ -22325,24 +22066,6 @@
|
|
|
22325
22066
|
enumerable: false,
|
|
22326
22067
|
configurable: true
|
|
22327
22068
|
});
|
|
22328
|
-
DocumentTreeNode.prototype.getNodeToSort = function (node, column, sortOrder) {
|
|
22329
|
-
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
22330
|
-
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
22331
|
-
: '';
|
|
22332
|
-
}
|
|
22333
|
-
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
22334
|
-
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
22335
|
-
return new Date(node.upload_timestamp);
|
|
22336
|
-
}
|
|
22337
|
-
if (sortOrder === exports.SortOrder.ASCENDING) {
|
|
22338
|
-
return new Date(9999, 12, 31);
|
|
22339
|
-
}
|
|
22340
|
-
if (sortOrder === exports.SortOrder.DESCENDING) {
|
|
22341
|
-
return new Date(1111, 1, 1);
|
|
22342
|
-
}
|
|
22343
|
-
}
|
|
22344
|
-
return '';
|
|
22345
|
-
};
|
|
22346
22069
|
return DocumentTreeNode;
|
|
22347
22070
|
}());
|
|
22348
22071
|
__decorate([
|
|
@@ -22373,14 +22096,10 @@
|
|
|
22373
22096
|
i0__namespace.ɵɵelementEnd();
|
|
22374
22097
|
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
22375
22098
|
i0__namespace.ɵɵtext(5);
|
|
22376
|
-
i0__namespace.ɵɵelement(6, "br");
|
|
22377
|
-
i0__namespace.ɵɵelementStart(7, "span", 17);
|
|
22378
|
-
i0__namespace.ɵɵtext(8);
|
|
22379
22099
|
i0__namespace.ɵɵelementEnd();
|
|
22380
|
-
i0__namespace.ɵɵ
|
|
22381
|
-
i0__namespace.ɵɵelementStart(
|
|
22382
|
-
i0__namespace.ɵɵ
|
|
22383
|
-
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); });
|
|
22100
|
+
i0__namespace.ɵɵelementStart(6, "div", 17);
|
|
22101
|
+
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
|
|
22102
|
+
i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
22384
22103
|
i0__namespace.ɵɵelementEnd();
|
|
22385
22104
|
i0__namespace.ɵɵelementEnd();
|
|
22386
22105
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22392,29 +22111,27 @@
|
|
|
22392
22111
|
i0__namespace.ɵɵadvance(1);
|
|
22393
22112
|
i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
22394
22113
|
i0__namespace.ɵɵadvance(4);
|
|
22395
|
-
i0__namespace.ɵɵ
|
|
22396
|
-
i0__namespace.ɵɵadvance(3);
|
|
22397
|
-
i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
22114
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.name);
|
|
22398
22115
|
i0__namespace.ɵɵadvance(2);
|
|
22399
22116
|
i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22400
22117
|
}
|
|
22401
22118
|
}
|
|
22402
22119
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
22403
22120
|
if (rf & 1) {
|
|
22404
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
22405
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
22406
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
22407
|
-
i0__namespace.ɵɵelement(3, "img",
|
|
22408
|
-
i0__namespace.ɵɵelementStart(4, "span",
|
|
22121
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
|
|
22122
|
+
i0__namespace.ɵɵelementStart(1, "button", 20);
|
|
22123
|
+
i0__namespace.ɵɵelementStart(2, "div", 21);
|
|
22124
|
+
i0__namespace.ɵɵelement(3, "img", 22);
|
|
22125
|
+
i0__namespace.ɵɵelementStart(4, "span", 23);
|
|
22409
22126
|
i0__namespace.ɵɵtext(5);
|
|
22410
22127
|
i0__namespace.ɵɵelementEnd();
|
|
22411
22128
|
i0__namespace.ɵɵelementEnd();
|
|
22412
|
-
i0__namespace.ɵɵelementStart(6, "span",
|
|
22129
|
+
i0__namespace.ɵɵelementStart(6, "span", 24);
|
|
22413
22130
|
i0__namespace.ɵɵtext(7);
|
|
22414
22131
|
i0__namespace.ɵɵelementEnd();
|
|
22415
22132
|
i0__namespace.ɵɵelementEnd();
|
|
22416
22133
|
i0__namespace.ɵɵelementStart(8, "div");
|
|
22417
|
-
i0__namespace.ɵɵelementContainer(9,
|
|
22134
|
+
i0__namespace.ɵɵelementContainer(9, 25);
|
|
22418
22135
|
i0__namespace.ɵɵelementEnd();
|
|
22419
22136
|
i0__namespace.ɵɵelementEnd();
|
|
22420
22137
|
}
|
|
@@ -22439,7 +22156,7 @@
|
|
|
22439
22156
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
22440
22157
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22441
22158
|
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
22442
|
-
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
22159
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
|
|
22443
22160
|
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
22444
22161
|
i0__namespace.ɵɵelementEnd();
|
|
22445
22162
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22534,7 +22251,6 @@
|
|
|
22534
22251
|
documentTreeNode.document_filename = document.document_filename;
|
|
22535
22252
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22536
22253
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22537
|
-
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22538
22254
|
documentsToReturn.push(documentTreeNode);
|
|
22539
22255
|
});
|
|
22540
22256
|
return documentsToReturn;
|
|
@@ -22548,7 +22264,6 @@
|
|
|
22548
22264
|
documentTreeNode.document_filename = document.document_filename;
|
|
22549
22265
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22550
22266
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22551
|
-
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22552
22267
|
documents.push(documentTreeNode);
|
|
22553
22268
|
});
|
|
22554
22269
|
var uncategorisedNode = new DocumentTreeNode();
|
|
@@ -22603,16 +22318,16 @@
|
|
|
22603
22318
|
return;
|
|
22604
22319
|
}
|
|
22605
22320
|
};
|
|
22606
|
-
CaseFileViewFolderComponent.prototype.
|
|
22321
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
|
|
22607
22322
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22608
|
-
item.sortChildrenAscending(
|
|
22323
|
+
item.sortChildrenAscending();
|
|
22609
22324
|
return item;
|
|
22610
22325
|
});
|
|
22611
22326
|
this.updateNodeData(sortedData);
|
|
22612
22327
|
};
|
|
22613
|
-
CaseFileViewFolderComponent.prototype.
|
|
22328
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
|
|
22614
22329
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22615
|
-
item.sortChildrenDescending(
|
|
22330
|
+
item.sortChildrenDescending();
|
|
22616
22331
|
return item;
|
|
22617
22332
|
});
|
|
22618
22333
|
this.updateNodeData(sortedData);
|
|
@@ -22673,7 +22388,7 @@
|
|
|
22673
22388
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
22674
22389
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
22675
22390
|
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)); };
|
|
22676
|
-
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-
|
|
22391
|
+
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) {
|
|
22677
22392
|
if (rf & 1) {
|
|
22678
22393
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22679
22394
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -22686,7 +22401,7 @@
|
|
|
22686
22401
|
i0__namespace.ɵɵelementEnd();
|
|
22687
22402
|
i0__namespace.ɵɵelementStart(6, "div");
|
|
22688
22403
|
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
22689
|
-
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener(
|
|
22404
|
+
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(); });
|
|
22690
22405
|
i0__namespace.ɵɵelementEnd();
|
|
22691
22406
|
i0__namespace.ɵɵelementEnd();
|
|
22692
22407
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22700,7 +22415,7 @@
|
|
|
22700
22415
|
i0__namespace.ɵɵadvance(3);
|
|
22701
22416
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
22702
22417
|
}
|
|
22703
|
-
}, 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, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:
|
|
22418
|
+
}, 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, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
|
|
22704
22419
|
(function () {
|
|
22705
22420
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
22706
22421
|
type: i0.Component,
|
|
@@ -24615,6 +24330,13 @@
|
|
|
24615
24330
|
}] });
|
|
24616
24331
|
})();
|
|
24617
24332
|
|
|
24333
|
+
var SortOrder;
|
|
24334
|
+
(function (SortOrder) {
|
|
24335
|
+
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
24336
|
+
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
24337
|
+
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
24338
|
+
})(SortOrder || (SortOrder = {}));
|
|
24339
|
+
|
|
24618
24340
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
|
|
24619
24341
|
if (rf & 1) {
|
|
24620
24342
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -24888,7 +24610,7 @@
|
|
|
24888
24610
|
return _this;
|
|
24889
24611
|
}
|
|
24890
24612
|
ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
|
|
24891
|
-
return !(column.sortOrder ===
|
|
24613
|
+
return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
|
|
24892
24614
|
};
|
|
24893
24615
|
ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
|
|
24894
24616
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -24946,19 +24668,19 @@
|
|
|
24946
24668
|
});
|
|
24947
24669
|
};
|
|
24948
24670
|
ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
|
|
24949
|
-
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder ===
|
|
24950
|
-
|| this.columnsHorizontalLabel[column].sortOrder ===
|
|
24671
|
+
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
24672
|
+
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
24951
24673
|
// tslint:disable-next-line:switch-default
|
|
24952
24674
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
24953
24675
|
case 'Number':
|
|
24954
24676
|
case 'MoneyGBP': {
|
|
24955
24677
|
if (shouldSortInAscendingOrder) {
|
|
24956
24678
|
this.rows.sort(function (a, b) { return a[column] - b[column]; });
|
|
24957
|
-
this.columnsHorizontalLabel[column].sortOrder =
|
|
24679
|
+
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
24958
24680
|
}
|
|
24959
24681
|
else {
|
|
24960
24682
|
this.rows.sort(function (a, b) { return b[column] - a[column]; });
|
|
24961
|
-
this.columnsHorizontalLabel[column].sortOrder =
|
|
24683
|
+
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
24962
24684
|
}
|
|
24963
24685
|
break;
|
|
24964
24686
|
}
|
|
@@ -24975,11 +24697,11 @@
|
|
|
24975
24697
|
{
|
|
24976
24698
|
if (shouldSortInAscendingOrder) {
|
|
24977
24699
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
|
|
24978
|
-
this.columnsHorizontalLabel[column].sortOrder =
|
|
24700
|
+
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
24979
24701
|
}
|
|
24980
24702
|
else {
|
|
24981
24703
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
|
|
24982
|
-
this.columnsHorizontalLabel[column].sortOrder =
|
|
24704
|
+
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
24983
24705
|
}
|
|
24984
24706
|
}
|
|
24985
24707
|
break;
|
|
@@ -24995,7 +24717,7 @@
|
|
|
24995
24717
|
var id = _c.value;
|
|
24996
24718
|
var trimmedId = id.trim();
|
|
24997
24719
|
labelsHorizontal[trimmedId] = allLabels[trimmedId];
|
|
24998
|
-
labelsHorizontal[trimmedId].sortOrder =
|
|
24720
|
+
labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
|
|
24999
24721
|
delete labelsVertical[trimmedId];
|
|
25000
24722
|
}
|
|
25001
24723
|
}
|
|
@@ -26914,7 +26636,7 @@
|
|
|
26914
26636
|
}
|
|
26915
26637
|
return searchResults.sort(function (a, b) {
|
|
26916
26638
|
return sortParameters.comparator.compare(a, b)
|
|
26917
|
-
* (sortParameters.sortOrder ===
|
|
26639
|
+
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
26918
26640
|
});
|
|
26919
26641
|
};
|
|
26920
26642
|
return SortSearchResultPipe;
|
|
@@ -31288,7 +31010,7 @@
|
|
|
31288
31010
|
else {
|
|
31289
31011
|
console.info('getAndCacheCaseView - Path B.');
|
|
31290
31012
|
return this.caseNotifier.fetchAndRefresh(cid)
|
|
31291
|
-
.pipe(operators.catchError(function (error) { return _this.processErrorInCaseFetch(error); }))
|
|
31013
|
+
.pipe(operators.catchError(function (error) { return _this.processErrorInCaseFetch(error, cid); }))
|
|
31292
31014
|
.toPromise();
|
|
31293
31015
|
}
|
|
31294
31016
|
}
|
|
@@ -31301,9 +31023,9 @@
|
|
|
31301
31023
|
_this.caseNotifier.cachedCaseView = classTransformer.plainToClassFromExist(new CaseView(), caseView);
|
|
31302
31024
|
_this.caseNotifier.announceCase(_this.caseNotifier.cachedCaseView);
|
|
31303
31025
|
return _this.caseNotifier.cachedCaseView;
|
|
31304
|
-
}), operators.catchError(function (error) { return _this.processErrorInCaseFetch(error); })).toPromise();
|
|
31026
|
+
}), operators.catchError(function (error) { return _this.processErrorInCaseFetch(error, cid); })).toPromise();
|
|
31305
31027
|
};
|
|
31306
|
-
CaseResolver.prototype.processErrorInCaseFetch = function (error) {
|
|
31028
|
+
CaseResolver.prototype.processErrorInCaseFetch = function (error, caseReference) {
|
|
31307
31029
|
console.error('!!! processErrorInCaseFetch !!!');
|
|
31308
31030
|
console.error(error);
|
|
31309
31031
|
// TODO Should be logged to remote logging infrastructure
|
|
@@ -31311,12 +31033,16 @@
|
|
|
31311
31033
|
this.router.navigate(['/search/noresults']);
|
|
31312
31034
|
return rxjs.of(null);
|
|
31313
31035
|
}
|
|
31314
|
-
console.error(error);
|
|
31315
31036
|
if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
|
|
31316
31037
|
this.router.navigate(['/list/case']);
|
|
31317
31038
|
return rxjs.of(null);
|
|
31318
31039
|
}
|
|
31319
|
-
|
|
31040
|
+
// Error 403, navigate to restricted case access page
|
|
31041
|
+
if (error.status === 403) {
|
|
31042
|
+
this.router.navigate(["/cases/restricted-case-access/" + caseReference]);
|
|
31043
|
+
return rxjs.of(null);
|
|
31044
|
+
}
|
|
31045
|
+
if (error.status !== 401) {
|
|
31320
31046
|
this.router.navigate(['/error']);
|
|
31321
31047
|
}
|
|
31322
31048
|
this.goToDefaultPage();
|