@hmcts/ccd-case-ui-toolkit 6.19.5 → 6.19.6-case-file-view-document-upload-date
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 +425 -103
- 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-editor/case-edit/case-edit.component.js +13 -5
- package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +12 -4
- package/esm2015/lib/shared/components/case-editor/case-editor.module.js +6 -3
- package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +27 -0
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +6 -3
- package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +30 -20
- 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/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 +12 -1
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +395 -81
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +4 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +4 -2
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +8 -0
- package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -0
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +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/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/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/package.json +1 -1
- package/esm2015/lib/shared/components/palette/complex/sort-order.js +0 -7
- 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/search/sorting/sort-order.d.ts.map +0 -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() {
|
|
@@ -7275,6 +7275,239 @@
|
|
|
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
|
+
|
|
7278
7511
|
var CaseFileViewService = /** @class */ (function () {
|
|
7279
7512
|
function CaseFileViewService(http, appConfig) {
|
|
7280
7513
|
this.http = http;
|
|
@@ -7287,6 +7520,16 @@
|
|
|
7287
7520
|
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
7288
7521
|
*/
|
|
7289
7522
|
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
|
+
}
|
|
7290
7533
|
var url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
7291
7534
|
if (url) {
|
|
7292
7535
|
url += "/" + caseRef;
|
|
@@ -9884,8 +10127,38 @@
|
|
|
9884
10127
|
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null);
|
|
9885
10128
|
})();
|
|
9886
10129
|
|
|
10130
|
+
var ValidPageListCaseFieldsService = /** @class */ (function () {
|
|
10131
|
+
function ValidPageListCaseFieldsService() {
|
|
10132
|
+
}
|
|
10133
|
+
ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, notFromEventSubmit, fromPreviousPage) {
|
|
10134
|
+
if (fromPreviousPage === void 0) { fromPreviousPage = false; }
|
|
10135
|
+
var validPageListCaseFields = [];
|
|
10136
|
+
validPageList.forEach(function (page) {
|
|
10137
|
+
if (notFromEventSubmit || ShowCondition.getInstance(page.show_condition).match(data)) {
|
|
10138
|
+
page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
|
|
10139
|
+
}
|
|
10140
|
+
});
|
|
10141
|
+
if (!fromPreviousPage && validPageListCaseFields.length > 0) {
|
|
10142
|
+
Object.keys(data).forEach(function (key) {
|
|
10143
|
+
if (validPageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
|
|
10144
|
+
delete data[key];
|
|
10145
|
+
;
|
|
10146
|
+
}
|
|
10147
|
+
});
|
|
10148
|
+
}
|
|
10149
|
+
};
|
|
10150
|
+
return ValidPageListCaseFieldsService;
|
|
10151
|
+
}());
|
|
10152
|
+
ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(); };
|
|
10153
|
+
ValidPageListCaseFieldsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
|
|
10154
|
+
(function () {
|
|
10155
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
|
|
10156
|
+
type: i0.Injectable
|
|
10157
|
+
}], null, null);
|
|
10158
|
+
})();
|
|
10159
|
+
|
|
9887
10160
|
var CaseEditComponent = /** @class */ (function () {
|
|
9888
|
-
function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService) {
|
|
10161
|
+
function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService) {
|
|
9889
10162
|
this.fb = fb;
|
|
9890
10163
|
this.caseNotifier = caseNotifier;
|
|
9891
10164
|
this.router = router;
|
|
@@ -9899,6 +10172,7 @@
|
|
|
9899
10172
|
this.formValueService = formValueService;
|
|
9900
10173
|
this.formErrorService = formErrorService;
|
|
9901
10174
|
this.loadingService = loadingService;
|
|
10175
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
9902
10176
|
this.cancelled = new i0.EventEmitter();
|
|
9903
10177
|
this.submitted = new i0.EventEmitter();
|
|
9904
10178
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -9906,6 +10180,7 @@
|
|
|
9906
10180
|
this.ignoreWarning = false;
|
|
9907
10181
|
this.isLinkedCasesSubmission = false;
|
|
9908
10182
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10183
|
+
this.validPageList = [];
|
|
9909
10184
|
}
|
|
9910
10185
|
CaseEditComponent.prototype.ngOnInit = function () {
|
|
9911
10186
|
var _this = this;
|
|
@@ -10070,6 +10345,8 @@
|
|
|
10070
10345
|
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
10071
10346
|
// Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
|
|
10072
10347
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
10348
|
+
// delete fields which are not part of the case event journey wizard pages case fields
|
|
10349
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, false);
|
|
10073
10350
|
caseEventData.event_token = eventTrigger.event_token;
|
|
10074
10351
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
10075
10352
|
if (this.confirmation) {
|
|
@@ -10171,7 +10448,9 @@
|
|
|
10171
10448
|
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
10172
10449
|
}
|
|
10173
10450
|
else {
|
|
10174
|
-
|
|
10451
|
+
if (!(caseField.hidden && caseField.retain_hidden_value)) {
|
|
10452
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
10453
|
+
}
|
|
10175
10454
|
}
|
|
10176
10455
|
}
|
|
10177
10456
|
}
|
|
@@ -10237,7 +10516,7 @@
|
|
|
10237
10516
|
}());
|
|
10238
10517
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
10239
10518
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
10240
|
-
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
10519
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace$1.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
|
|
10241
10520
|
CaseEditComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
|
|
10242
10521
|
if (rf & 1) {
|
|
10243
10522
|
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
@@ -10252,7 +10531,7 @@
|
|
|
10252
10531
|
styleUrls: ['../case-edit.scss'],
|
|
10253
10532
|
providers: [GreyBarService]
|
|
10254
10533
|
}]
|
|
10255
|
-
}], function () { return [{ type: i2__namespace$1.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }]; }, { eventTrigger: [{
|
|
10534
|
+
}], function () { return [{ type: i2__namespace$1.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, { eventTrigger: [{
|
|
10256
10535
|
type: i0.Input
|
|
10257
10536
|
}], submit: [{
|
|
10258
10537
|
type: i0.Input
|
|
@@ -10948,7 +11227,7 @@
|
|
|
10948
11227
|
}
|
|
10949
11228
|
}
|
|
10950
11229
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
10951
|
-
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService) {
|
|
11230
|
+
function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService) {
|
|
10952
11231
|
this.caseEdit = caseEdit;
|
|
10953
11232
|
this.route = route;
|
|
10954
11233
|
this.formValueService = formValueService;
|
|
@@ -10959,6 +11238,7 @@
|
|
|
10959
11238
|
this.caseFieldService = caseFieldService;
|
|
10960
11239
|
this.caseEditDataService = caseEditDataService;
|
|
10961
11240
|
this.loadingService = loadingService;
|
|
11241
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10962
11242
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10963
11243
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
10964
11244
|
this.formValuesChanged = false;
|
|
@@ -11169,6 +11449,9 @@
|
|
|
11169
11449
|
}
|
|
11170
11450
|
}
|
|
11171
11451
|
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
11452
|
+
if (this.caseEdit.validPageList.findIndex(function (page) { return page.id === _this.currentPage.id; }) === -1) {
|
|
11453
|
+
this.caseEdit.validPageList.push(this.currentPage);
|
|
11454
|
+
}
|
|
11172
11455
|
this.caseEdit.isSubmitting = true;
|
|
11173
11456
|
this.caseEdit.error = null;
|
|
11174
11457
|
var caseEventData = this.buildCaseEventData();
|
|
@@ -11437,6 +11720,8 @@
|
|
|
11437
11720
|
this.formValueService.sanitiseDynamicLists(caseFields, formFields);
|
|
11438
11721
|
// Get hold of the CaseEventData.
|
|
11439
11722
|
var caseEventData = this.formValueService.sanitise(formFields);
|
|
11723
|
+
// delete fields which are not part of the case event journey wizard pages case fields
|
|
11724
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, true, fromPreviousPage);
|
|
11440
11725
|
// Tidy it up before we return it.
|
|
11441
11726
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
|
|
11442
11727
|
return caseEventData;
|
|
@@ -11479,7 +11764,7 @@
|
|
|
11479
11764
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
11480
11765
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
11481
11766
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
11482
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
|
|
11767
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
|
|
11483
11768
|
CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) {
|
|
11484
11769
|
if (rf & 1) {
|
|
11485
11770
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
|
|
@@ -11522,7 +11807,7 @@
|
|
|
11522
11807
|
templateUrl: 'case-edit-page.html',
|
|
11523
11808
|
styleUrls: ['./case-edit-page.scss']
|
|
11524
11809
|
}]
|
|
11525
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
|
|
11810
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, null);
|
|
11526
11811
|
})();
|
|
11527
11812
|
|
|
11528
11813
|
var CallbackErrorsContext = /** @class */ (function () {
|
|
@@ -21917,6 +22202,12 @@
|
|
|
21917
22202
|
}] });
|
|
21918
22203
|
})();
|
|
21919
22204
|
|
|
22205
|
+
var CaseFileViewSortColumns;
|
|
22206
|
+
(function (CaseFileViewSortColumns) {
|
|
22207
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
22208
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
22209
|
+
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
22210
|
+
|
|
21920
22211
|
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
21921
22212
|
function CaseFileViewFolderSortComponent() {
|
|
21922
22213
|
var _this = this;
|
|
@@ -21924,8 +22215,10 @@
|
|
|
21924
22215
|
this.sortAscending = new i0.EventEmitter();
|
|
21925
22216
|
this.sortDescending = new i0.EventEmitter();
|
|
21926
22217
|
this.overlayMenuItems = [
|
|
21927
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
21928
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
|
|
22218
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
22219
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME); } },
|
|
22220
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
22221
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP); } },
|
|
21929
22222
|
];
|
|
21930
22223
|
}
|
|
21931
22224
|
return CaseFileViewFolderSortComponent;
|
|
@@ -22009,48 +22302,56 @@
|
|
|
22009
22302
|
enumerable: false,
|
|
22010
22303
|
configurable: true
|
|
22011
22304
|
});
|
|
22012
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
22305
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function (column, sortOrder) {
|
|
22306
|
+
var _this = this;
|
|
22013
22307
|
var _a, _b;
|
|
22014
22308
|
var sortAscending = function () {
|
|
22015
22309
|
return function (a, b) {
|
|
22016
|
-
var
|
|
22017
|
-
var
|
|
22310
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22311
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22018
22312
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22019
22313
|
return 0;
|
|
22020
22314
|
}
|
|
22021
|
-
if (
|
|
22315
|
+
if (!nodeA || !nodeB) {
|
|
22316
|
+
return 0;
|
|
22317
|
+
}
|
|
22318
|
+
if (nodeA < nodeB) {
|
|
22022
22319
|
return -1;
|
|
22023
22320
|
}
|
|
22024
|
-
if (
|
|
22321
|
+
if (nodeA > nodeB) {
|
|
22025
22322
|
return 1;
|
|
22026
22323
|
}
|
|
22027
22324
|
};
|
|
22028
22325
|
};
|
|
22029
22326
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
22030
22327
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22031
|
-
childNodes.sortChildrenAscending();
|
|
22328
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
22032
22329
|
});
|
|
22033
22330
|
};
|
|
22034
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
22331
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function (column, sortOrder) {
|
|
22332
|
+
var _this = this;
|
|
22035
22333
|
var _a, _b;
|
|
22036
22334
|
var sortDescending = function () {
|
|
22037
22335
|
return function (a, b) {
|
|
22038
|
-
var
|
|
22039
|
-
var
|
|
22336
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22337
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22040
22338
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22041
22339
|
return 0;
|
|
22042
22340
|
}
|
|
22043
|
-
if (
|
|
22341
|
+
if (!nodeA || !nodeB) {
|
|
22342
|
+
return 0;
|
|
22343
|
+
}
|
|
22344
|
+
if (nodeA > nodeB) {
|
|
22044
22345
|
return -1;
|
|
22045
22346
|
}
|
|
22046
|
-
if (
|
|
22347
|
+
if (nodeA < nodeB) {
|
|
22047
22348
|
return 1;
|
|
22048
22349
|
}
|
|
22049
22350
|
};
|
|
22050
22351
|
};
|
|
22051
22352
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
22052
22353
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22053
|
-
childNodes.sortChildrenDescending();
|
|
22354
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
22054
22355
|
});
|
|
22055
22356
|
};
|
|
22056
22357
|
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
@@ -22076,6 +22377,24 @@
|
|
|
22076
22377
|
enumerable: false,
|
|
22077
22378
|
configurable: true
|
|
22078
22379
|
});
|
|
22380
|
+
DocumentTreeNode.prototype.getNodeToSort = function (node, column, sortOrder) {
|
|
22381
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
22382
|
+
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
22383
|
+
: '';
|
|
22384
|
+
}
|
|
22385
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
22386
|
+
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
22387
|
+
return new Date(node.upload_timestamp);
|
|
22388
|
+
}
|
|
22389
|
+
if (sortOrder === exports.SortOrder.ASCENDING) {
|
|
22390
|
+
return new Date(9999, 12, 31);
|
|
22391
|
+
}
|
|
22392
|
+
if (sortOrder === exports.SortOrder.DESCENDING) {
|
|
22393
|
+
return new Date(1111, 1, 1);
|
|
22394
|
+
}
|
|
22395
|
+
}
|
|
22396
|
+
return '';
|
|
22397
|
+
};
|
|
22079
22398
|
return DocumentTreeNode;
|
|
22080
22399
|
}());
|
|
22081
22400
|
__decorate([
|
|
@@ -22106,10 +22425,14 @@
|
|
|
22106
22425
|
i0__namespace.ɵɵelementEnd();
|
|
22107
22426
|
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
22108
22427
|
i0__namespace.ɵɵtext(5);
|
|
22428
|
+
i0__namespace.ɵɵelement(6, "br");
|
|
22429
|
+
i0__namespace.ɵɵelementStart(7, "span", 17);
|
|
22430
|
+
i0__namespace.ɵɵtext(8);
|
|
22109
22431
|
i0__namespace.ɵɵelementEnd();
|
|
22110
|
-
i0__namespace.ɵɵ
|
|
22111
|
-
i0__namespace.ɵɵelementStart(
|
|
22112
|
-
i0__namespace.ɵɵ
|
|
22432
|
+
i0__namespace.ɵɵelementEnd();
|
|
22433
|
+
i0__namespace.ɵɵelementStart(9, "div", 18);
|
|
22434
|
+
i0__namespace.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
|
|
22435
|
+
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); });
|
|
22113
22436
|
i0__namespace.ɵɵelementEnd();
|
|
22114
22437
|
i0__namespace.ɵɵelementEnd();
|
|
22115
22438
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22121,27 +22444,29 @@
|
|
|
22121
22444
|
i0__namespace.ɵɵadvance(1);
|
|
22122
22445
|
i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
22123
22446
|
i0__namespace.ɵɵadvance(4);
|
|
22124
|
-
i0__namespace.ɵɵ
|
|
22447
|
+
i0__namespace.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
22448
|
+
i0__namespace.ɵɵadvance(3);
|
|
22449
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
22125
22450
|
i0__namespace.ɵɵadvance(2);
|
|
22126
22451
|
i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22127
22452
|
}
|
|
22128
22453
|
}
|
|
22129
22454
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
22130
22455
|
if (rf & 1) {
|
|
22131
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
22132
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
22133
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
22134
|
-
i0__namespace.ɵɵelement(3, "img",
|
|
22135
|
-
i0__namespace.ɵɵelementStart(4, "span",
|
|
22456
|
+
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
|
|
22457
|
+
i0__namespace.ɵɵelementStart(1, "button", 21);
|
|
22458
|
+
i0__namespace.ɵɵelementStart(2, "div", 22);
|
|
22459
|
+
i0__namespace.ɵɵelement(3, "img", 23);
|
|
22460
|
+
i0__namespace.ɵɵelementStart(4, "span", 24);
|
|
22136
22461
|
i0__namespace.ɵɵtext(5);
|
|
22137
22462
|
i0__namespace.ɵɵelementEnd();
|
|
22138
22463
|
i0__namespace.ɵɵelementEnd();
|
|
22139
|
-
i0__namespace.ɵɵelementStart(6, "span",
|
|
22464
|
+
i0__namespace.ɵɵelementStart(6, "span", 25);
|
|
22140
22465
|
i0__namespace.ɵɵtext(7);
|
|
22141
22466
|
i0__namespace.ɵɵelementEnd();
|
|
22142
22467
|
i0__namespace.ɵɵelementEnd();
|
|
22143
22468
|
i0__namespace.ɵɵelementStart(8, "div");
|
|
22144
|
-
i0__namespace.ɵɵelementContainer(9,
|
|
22469
|
+
i0__namespace.ɵɵelementContainer(9, 26);
|
|
22145
22470
|
i0__namespace.ɵɵelementEnd();
|
|
22146
22471
|
i0__namespace.ɵɵelementEnd();
|
|
22147
22472
|
}
|
|
@@ -22166,7 +22491,7 @@
|
|
|
22166
22491
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
22167
22492
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22168
22493
|
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
22169
|
-
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
22494
|
+
i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
|
|
22170
22495
|
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
22171
22496
|
i0__namespace.ɵɵelementEnd();
|
|
22172
22497
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22261,6 +22586,7 @@
|
|
|
22261
22586
|
documentTreeNode.document_filename = document.document_filename;
|
|
22262
22587
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22263
22588
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22589
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22264
22590
|
documentsToReturn.push(documentTreeNode);
|
|
22265
22591
|
});
|
|
22266
22592
|
return documentsToReturn;
|
|
@@ -22274,6 +22600,7 @@
|
|
|
22274
22600
|
documentTreeNode.document_filename = document.document_filename;
|
|
22275
22601
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22276
22602
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22603
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22277
22604
|
documents.push(documentTreeNode);
|
|
22278
22605
|
});
|
|
22279
22606
|
var uncategorisedNode = new DocumentTreeNode();
|
|
@@ -22328,16 +22655,16 @@
|
|
|
22328
22655
|
return;
|
|
22329
22656
|
}
|
|
22330
22657
|
};
|
|
22331
|
-
CaseFileViewFolderComponent.prototype.
|
|
22658
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscending = function (column) {
|
|
22332
22659
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22333
|
-
item.sortChildrenAscending();
|
|
22660
|
+
item.sortChildrenAscending(column, exports.SortOrder.ASCENDING);
|
|
22334
22661
|
return item;
|
|
22335
22662
|
});
|
|
22336
22663
|
this.updateNodeData(sortedData);
|
|
22337
22664
|
};
|
|
22338
|
-
CaseFileViewFolderComponent.prototype.
|
|
22665
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescending = function (column) {
|
|
22339
22666
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22340
|
-
item.sortChildrenDescending();
|
|
22667
|
+
item.sortChildrenDescending(column, exports.SortOrder.DESCENDING);
|
|
22341
22668
|
return item;
|
|
22342
22669
|
});
|
|
22343
22670
|
this.updateNodeData(sortedData);
|
|
@@ -22398,7 +22725,7 @@
|
|
|
22398
22725
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
22399
22726
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
22400
22727
|
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)); };
|
|
22401
|
-
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) {
|
|
22728
|
+
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) {
|
|
22402
22729
|
if (rf & 1) {
|
|
22403
22730
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22404
22731
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -22411,7 +22738,7 @@
|
|
|
22411
22738
|
i0__namespace.ɵɵelementEnd();
|
|
22412
22739
|
i0__namespace.ɵɵelementStart(6, "div");
|
|
22413
22740
|
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
22414
|
-
i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.
|
|
22741
|
+
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); });
|
|
22415
22742
|
i0__namespace.ɵɵelementEnd();
|
|
22416
22743
|
i0__namespace.ɵɵelementEnd();
|
|
22417
22744
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22425,7 +22752,7 @@
|
|
|
22425
22752
|
i0__namespace.ɵɵadvance(3);
|
|
22426
22753
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
22427
22754
|
}
|
|
22428
|
-
}, 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:
|
|
22755
|
+
}, 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: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}"] });
|
|
22429
22756
|
(function () {
|
|
22430
22757
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
22431
22758
|
type: i0.Component,
|
|
@@ -24340,13 +24667,6 @@
|
|
|
24340
24667
|
}] });
|
|
24341
24668
|
})();
|
|
24342
24669
|
|
|
24343
|
-
var SortOrder;
|
|
24344
|
-
(function (SortOrder) {
|
|
24345
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
24346
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
24347
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
24348
|
-
})(SortOrder || (SortOrder = {}));
|
|
24349
|
-
|
|
24350
24670
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
|
|
24351
24671
|
if (rf & 1) {
|
|
24352
24672
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -24620,7 +24940,7 @@
|
|
|
24620
24940
|
return _this;
|
|
24621
24941
|
}
|
|
24622
24942
|
ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
|
|
24623
|
-
return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
|
|
24943
|
+
return !(column.sortOrder === exports.SortOrder.UNSORTED || column.sortOrder === exports.SortOrder.DESCENDING);
|
|
24624
24944
|
};
|
|
24625
24945
|
ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
|
|
24626
24946
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -24678,19 +24998,19 @@
|
|
|
24678
24998
|
});
|
|
24679
24999
|
};
|
|
24680
25000
|
ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
|
|
24681
|
-
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
24682
|
-
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
25001
|
+
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.UNSORTED
|
|
25002
|
+
|| this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.DESCENDING;
|
|
24683
25003
|
// tslint:disable-next-line:switch-default
|
|
24684
25004
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
24685
25005
|
case 'Number':
|
|
24686
25006
|
case 'MoneyGBP': {
|
|
24687
25007
|
if (shouldSortInAscendingOrder) {
|
|
24688
25008
|
this.rows.sort(function (a, b) { return a[column] - b[column]; });
|
|
24689
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
25009
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24690
25010
|
}
|
|
24691
25011
|
else {
|
|
24692
25012
|
this.rows.sort(function (a, b) { return b[column] - a[column]; });
|
|
24693
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
25013
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24694
25014
|
}
|
|
24695
25015
|
break;
|
|
24696
25016
|
}
|
|
@@ -24707,11 +25027,11 @@
|
|
|
24707
25027
|
{
|
|
24708
25028
|
if (shouldSortInAscendingOrder) {
|
|
24709
25029
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
|
|
24710
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
25030
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24711
25031
|
}
|
|
24712
25032
|
else {
|
|
24713
25033
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
|
|
24714
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
25034
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24715
25035
|
}
|
|
24716
25036
|
}
|
|
24717
25037
|
break;
|
|
@@ -24727,7 +25047,7 @@
|
|
|
24727
25047
|
var id = _c.value;
|
|
24728
25048
|
var trimmedId = id.trim();
|
|
24729
25049
|
labelsHorizontal[trimmedId] = allLabels[trimmedId];
|
|
24730
|
-
labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
|
|
25050
|
+
labelsHorizontal[trimmedId].sortOrder = exports.SortOrder.UNSORTED;
|
|
24731
25051
|
delete labelsVertical[trimmedId];
|
|
24732
25052
|
}
|
|
24733
25053
|
}
|
|
@@ -26646,7 +26966,7 @@
|
|
|
26646
26966
|
}
|
|
26647
26967
|
return searchResults.sort(function (a, b) {
|
|
26648
26968
|
return sortParameters.comparator.compare(a, b)
|
|
26649
|
-
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
26969
|
+
* (sortParameters.sortOrder === exports.SortOrder.DESCENDING ? 1 : -1);
|
|
26650
26970
|
});
|
|
26651
26971
|
};
|
|
26652
26972
|
return SortSearchResultPipe;
|
|
@@ -28614,7 +28934,8 @@
|
|
|
28614
28934
|
JudicialworkerService,
|
|
28615
28935
|
CaseworkerService,
|
|
28616
28936
|
SessionStorageService,
|
|
28617
|
-
EventCompletionStateMachineService
|
|
28937
|
+
EventCompletionStateMachineService,
|
|
28938
|
+
ValidPageListCaseFieldsService
|
|
28618
28939
|
], imports: [[
|
|
28619
28940
|
i2.CommonModule,
|
|
28620
28941
|
i1$1.RouterModule,
|
|
@@ -28730,7 +29051,8 @@
|
|
|
28730
29051
|
JudicialworkerService,
|
|
28731
29052
|
CaseworkerService,
|
|
28732
29053
|
SessionStorageService,
|
|
28733
|
-
EventCompletionStateMachineService
|
|
29054
|
+
EventCompletionStateMachineService,
|
|
29055
|
+
ValidPageListCaseFieldsService
|
|
28734
29056
|
]
|
|
28735
29057
|
}]
|
|
28736
29058
|
}], null, null);
|