@hmcts/ccd-case-ui-toolkit 6.19.5-secure-doc-case-creation.1 → 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 +453 -114
- 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/case.notifier.js +1 -8
- package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +27 -0
- package/esm2015/lib/shared/components/create-case-filters/create-case-filters.component.js +3 -3
- 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/components/palette/document/write-document-field.component.js +1 -4
- package/esm2015/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.js +16 -1
- package/esm2015/lib/shared/components/workbasket-filters/workbasket-filters.component.js +12 -1
- 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/esm2015/lib/shared/services/jurisdiction/jurisdiction.service.js +1 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +421 -92
- 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/case.notifier.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/create-case-filters/create-case-filters.component.d.ts +1 -1
- package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +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/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +5 -3
- package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts.map +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts +1 -1
- package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts +5 -0
- package/lib/shared/domain/case-file-view/case-file-view-sort-columns.enum.d.ts.map +1 -0
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +4 -2
- package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -1
- package/lib/shared/domain/case-file-view/index.d.ts +2 -1
- package/lib/shared/domain/case-file-view/index.d.ts.map +1 -1
- package/lib/shared/domain/index.d.ts +9 -9
- package/lib/shared/domain/index.d.ts.map +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts +1 -1
- package/lib/shared/domain/search/sorting/sort-parameters.d.ts.map +1 -1
- package/lib/shared/domain/{search/sorting/sort-order.d.ts → sort-order.enum.d.ts} +1 -1
- package/lib/shared/domain/sort-order.enum.d.ts.map +1 -0
- package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -1
- package/lib/shared/services/jurisdiction/jurisdiction.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;
|
|
@@ -7708,7 +7951,6 @@
|
|
|
7708
7951
|
return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
|
|
7709
7952
|
};
|
|
7710
7953
|
JurisdictionService.prototype.announceSelectedJurisdiction = function (jurisdiction) {
|
|
7711
|
-
console.info('Announcing selected jurisdiction = ' + (jurisdiction === null || jurisdiction === void 0 ? void 0 : jurisdiction.id));
|
|
7712
7954
|
this.selectedJurisdictionSource.next(jurisdiction);
|
|
7713
7955
|
this.selectedJurisdictionBS.next(jurisdiction);
|
|
7714
7956
|
};
|
|
@@ -9374,23 +9616,16 @@
|
|
|
9374
9616
|
this.cachedCaseView = null;
|
|
9375
9617
|
};
|
|
9376
9618
|
CaseNotifier.prototype.announceCase = function (c) {
|
|
9377
|
-
console.info('announceCase started.');
|
|
9378
9619
|
this.caseViewSource.next(c);
|
|
9379
|
-
console.info('announceCase finished.');
|
|
9380
9620
|
};
|
|
9381
9621
|
CaseNotifier.prototype.fetchAndRefresh = function (cid) {
|
|
9382
9622
|
var _this = this;
|
|
9383
|
-
console.info('fetchAndRefresh started.');
|
|
9384
9623
|
return this.casesService
|
|
9385
9624
|
.getCaseViewV2(cid)
|
|
9386
9625
|
.pipe(operators.map(function (caseView) {
|
|
9387
|
-
console.info('mapping caseView started.');
|
|
9388
|
-
// this.casesService.syncWait(10);
|
|
9389
|
-
// throw new Error('******************************************************');
|
|
9390
9626
|
_this.cachedCaseView = classTransformer.plainToClassFromExist(new CaseView(), caseView);
|
|
9391
9627
|
_this.setBasicFields(_this.cachedCaseView.tabs);
|
|
9392
9628
|
_this.announceCase(_this.cachedCaseView);
|
|
9393
|
-
console.info('mapping caseView finished. Returning it.');
|
|
9394
9629
|
return _this.cachedCaseView;
|
|
9395
9630
|
}));
|
|
9396
9631
|
};
|
|
@@ -9892,8 +10127,38 @@
|
|
|
9892
10127
|
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null);
|
|
9893
10128
|
})();
|
|
9894
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
|
+
|
|
9895
10160
|
var CaseEditComponent = /** @class */ (function () {
|
|
9896
|
-
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) {
|
|
9897
10162
|
this.fb = fb;
|
|
9898
10163
|
this.caseNotifier = caseNotifier;
|
|
9899
10164
|
this.router = router;
|
|
@@ -9907,6 +10172,7 @@
|
|
|
9907
10172
|
this.formValueService = formValueService;
|
|
9908
10173
|
this.formErrorService = formErrorService;
|
|
9909
10174
|
this.loadingService = loadingService;
|
|
10175
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
9910
10176
|
this.cancelled = new i0.EventEmitter();
|
|
9911
10177
|
this.submitted = new i0.EventEmitter();
|
|
9912
10178
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -9914,6 +10180,7 @@
|
|
|
9914
10180
|
this.ignoreWarning = false;
|
|
9915
10181
|
this.isLinkedCasesSubmission = false;
|
|
9916
10182
|
this.callbackErrorsSubject = new rxjs.Subject();
|
|
10183
|
+
this.validPageList = [];
|
|
9917
10184
|
}
|
|
9918
10185
|
CaseEditComponent.prototype.ngOnInit = function () {
|
|
9919
10186
|
var _this = this;
|
|
@@ -10078,6 +10345,8 @@
|
|
|
10078
10345
|
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
10079
10346
|
// Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
|
|
10080
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);
|
|
10081
10350
|
caseEventData.event_token = eventTrigger.event_token;
|
|
10082
10351
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
10083
10352
|
if (this.confirmation) {
|
|
@@ -10179,7 +10448,9 @@
|
|
|
10179
10448
|
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
10180
10449
|
}
|
|
10181
10450
|
else {
|
|
10182
|
-
|
|
10451
|
+
if (!(caseField.hidden && caseField.retain_hidden_value)) {
|
|
10452
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
10453
|
+
}
|
|
10183
10454
|
}
|
|
10184
10455
|
}
|
|
10185
10456
|
}
|
|
@@ -10245,7 +10516,7 @@
|
|
|
10245
10516
|
}());
|
|
10246
10517
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
10247
10518
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
10248
|
-
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)); };
|
|
10249
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) {
|
|
10250
10521
|
if (rf & 1) {
|
|
10251
10522
|
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
@@ -10260,7 +10531,7 @@
|
|
|
10260
10531
|
styleUrls: ['../case-edit.scss'],
|
|
10261
10532
|
providers: [GreyBarService]
|
|
10262
10533
|
}]
|
|
10263
|
-
}], 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: [{
|
|
10264
10535
|
type: i0.Input
|
|
10265
10536
|
}], submit: [{
|
|
10266
10537
|
type: i0.Input
|
|
@@ -10956,7 +11227,7 @@
|
|
|
10956
11227
|
}
|
|
10957
11228
|
}
|
|
10958
11229
|
var CaseEditPageComponent = /** @class */ (function () {
|
|
10959
|
-
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) {
|
|
10960
11231
|
this.caseEdit = caseEdit;
|
|
10961
11232
|
this.route = route;
|
|
10962
11233
|
this.formValueService = formValueService;
|
|
@@ -10967,6 +11238,7 @@
|
|
|
10967
11238
|
this.caseFieldService = caseFieldService;
|
|
10968
11239
|
this.caseEditDataService = caseEditDataService;
|
|
10969
11240
|
this.loadingService = loadingService;
|
|
11241
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
10970
11242
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
10971
11243
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
10972
11244
|
this.formValuesChanged = false;
|
|
@@ -11177,6 +11449,9 @@
|
|
|
11177
11449
|
}
|
|
11178
11450
|
}
|
|
11179
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
|
+
}
|
|
11180
11455
|
this.caseEdit.isSubmitting = true;
|
|
11181
11456
|
this.caseEdit.error = null;
|
|
11182
11457
|
var caseEventData = this.buildCaseEventData();
|
|
@@ -11445,6 +11720,8 @@
|
|
|
11445
11720
|
this.formValueService.sanitiseDynamicLists(caseFields, formFields);
|
|
11446
11721
|
// Get hold of the CaseEventData.
|
|
11447
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);
|
|
11448
11725
|
// Tidy it up before we return it.
|
|
11449
11726
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
|
|
11450
11727
|
return caseEventData;
|
|
@@ -11487,7 +11764,7 @@
|
|
|
11487
11764
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
11488
11765
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
11489
11766
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
11490
|
-
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)); };
|
|
11491
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) {
|
|
11492
11769
|
if (rf & 1) {
|
|
11493
11770
|
i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
|
|
@@ -11530,7 +11807,7 @@
|
|
|
11530
11807
|
templateUrl: 'case-edit-page.html',
|
|
11531
11808
|
styleUrls: ['./case-edit-page.scss']
|
|
11532
11809
|
}]
|
|
11533
|
-
}], 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);
|
|
11534
11811
|
})();
|
|
11535
11812
|
|
|
11536
11813
|
var CallbackErrorsContext = /** @class */ (function () {
|
|
@@ -14657,7 +14934,6 @@
|
|
|
14657
14934
|
};
|
|
14658
14935
|
WriteDocumentFieldComponent.prototype.ngOnInit = function () {
|
|
14659
14936
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
14660
|
-
console.info('writeDocumentField.ngInit: secure mode = ' + this.secureModeOn);
|
|
14661
14937
|
if (this.secureModeOn) {
|
|
14662
14938
|
this.subscribeToCaseDetails();
|
|
14663
14939
|
}
|
|
@@ -14786,7 +15062,6 @@
|
|
|
14786
15062
|
var _a, _b;
|
|
14787
15063
|
_this.caseTypeId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.case_id;
|
|
14788
15064
|
_this.jurisdictionId = (_b = (_a = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.case_type) === null || _a === void 0 ? void 0 : _a.jurisdiction) === null || _b === void 0 ? void 0 : _b.id;
|
|
14789
|
-
console.info("caseNotifier.next: caseType=" + _this.caseTypeId + " juris=" + _this.jurisdictionId);
|
|
14790
15065
|
}
|
|
14791
15066
|
});
|
|
14792
15067
|
this.jurisdictionSubs = this.jurisdictionService.selectedJurisdictionBS.subscribe({
|
|
@@ -14797,7 +15072,6 @@
|
|
|
14797
15072
|
_this.caseTypeId = jurisdiction.currentCaseType.id;
|
|
14798
15073
|
}
|
|
14799
15074
|
}
|
|
14800
|
-
console.info("selectedJurisdiction.next: caseType=" + _this.caseTypeId + " juris=" + _this.jurisdictionId);
|
|
14801
15075
|
}
|
|
14802
15076
|
});
|
|
14803
15077
|
};
|
|
@@ -16425,12 +16699,24 @@
|
|
|
16425
16699
|
}
|
|
16426
16700
|
};
|
|
16427
16701
|
WriteJudicialUserFieldComponent.prototype.setJurisdictionAndCaseType = function () {
|
|
16702
|
+
var _this = this;
|
|
16428
16703
|
var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
|
|
16429
16704
|
if (caseInfoStr) {
|
|
16430
16705
|
var caseInfo = JSON.parse(caseInfoStr);
|
|
16431
16706
|
this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
|
|
16432
16707
|
this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
|
|
16433
16708
|
}
|
|
16709
|
+
else {
|
|
16710
|
+
// If there is no case info, attempt to get the current jurisdiction and case type via the JurisdictionService
|
|
16711
|
+
this.jurisdictionSubscription = this.jurisdictionService.selectedJurisdictionBS.subscribe(function (jurisdiction) {
|
|
16712
|
+
if (jurisdiction) {
|
|
16713
|
+
_this.jurisdiction = jurisdiction.id;
|
|
16714
|
+
if (jurisdiction.currentCaseType) {
|
|
16715
|
+
_this.caseType = jurisdiction.currentCaseType.id;
|
|
16716
|
+
}
|
|
16717
|
+
}
|
|
16718
|
+
});
|
|
16719
|
+
}
|
|
16434
16720
|
};
|
|
16435
16721
|
WriteJudicialUserFieldComponent.prototype.displayJudicialUser = function (judicialUser) {
|
|
16436
16722
|
return judicialUser
|
|
@@ -16476,6 +16762,10 @@
|
|
|
16476
16762
|
this.judicialUserControl.setValidators(i2$1.Validators.required);
|
|
16477
16763
|
}
|
|
16478
16764
|
};
|
|
16765
|
+
WriteJudicialUserFieldComponent.prototype.ngOnDestroy = function () {
|
|
16766
|
+
var _a;
|
|
16767
|
+
(_a = this.jurisdictionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
16768
|
+
};
|
|
16479
16769
|
return WriteJudicialUserFieldComponent;
|
|
16480
16770
|
}(WriteComplexFieldComponent));
|
|
16481
16771
|
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe), i0__namespace.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
@@ -21912,6 +22202,12 @@
|
|
|
21912
22202
|
}] });
|
|
21913
22203
|
})();
|
|
21914
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
|
+
|
|
21915
22211
|
var CaseFileViewFolderSortComponent = /** @class */ (function () {
|
|
21916
22212
|
function CaseFileViewFolderSortComponent() {
|
|
21917
22213
|
var _this = this;
|
|
@@ -21919,8 +22215,10 @@
|
|
|
21919
22215
|
this.sortAscending = new i0.EventEmitter();
|
|
21920
22216
|
this.sortDescending = new i0.EventEmitter();
|
|
21921
22217
|
this.overlayMenuItems = [
|
|
21922
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
|
|
21923
|
-
{ 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); } },
|
|
21924
22222
|
];
|
|
21925
22223
|
}
|
|
21926
22224
|
return CaseFileViewFolderSortComponent;
|
|
@@ -22004,48 +22302,56 @@
|
|
|
22004
22302
|
enumerable: false,
|
|
22005
22303
|
configurable: true
|
|
22006
22304
|
});
|
|
22007
|
-
DocumentTreeNode.prototype.sortChildrenAscending = function () {
|
|
22305
|
+
DocumentTreeNode.prototype.sortChildrenAscending = function (column, sortOrder) {
|
|
22306
|
+
var _this = this;
|
|
22008
22307
|
var _a, _b;
|
|
22009
22308
|
var sortAscending = function () {
|
|
22010
22309
|
return function (a, b) {
|
|
22011
|
-
var
|
|
22012
|
-
var
|
|
22310
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22311
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22013
22312
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22014
22313
|
return 0;
|
|
22015
22314
|
}
|
|
22016
|
-
if (
|
|
22315
|
+
if (!nodeA || !nodeB) {
|
|
22316
|
+
return 0;
|
|
22317
|
+
}
|
|
22318
|
+
if (nodeA < nodeB) {
|
|
22017
22319
|
return -1;
|
|
22018
22320
|
}
|
|
22019
|
-
if (
|
|
22321
|
+
if (nodeA > nodeB) {
|
|
22020
22322
|
return 1;
|
|
22021
22323
|
}
|
|
22022
22324
|
};
|
|
22023
22325
|
};
|
|
22024
22326
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
22025
22327
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22026
|
-
childNodes.sortChildrenAscending();
|
|
22328
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
22027
22329
|
});
|
|
22028
22330
|
};
|
|
22029
|
-
DocumentTreeNode.prototype.sortChildrenDescending = function () {
|
|
22331
|
+
DocumentTreeNode.prototype.sortChildrenDescending = function (column, sortOrder) {
|
|
22332
|
+
var _this = this;
|
|
22030
22333
|
var _a, _b;
|
|
22031
22334
|
var sortDescending = function () {
|
|
22032
22335
|
return function (a, b) {
|
|
22033
|
-
var
|
|
22034
|
-
var
|
|
22336
|
+
var nodeA = _this.getNodeToSort(a, column, sortOrder);
|
|
22337
|
+
var nodeB = _this.getNodeToSort(b, column, sortOrder);
|
|
22035
22338
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
22036
22339
|
return 0;
|
|
22037
22340
|
}
|
|
22038
|
-
if (
|
|
22341
|
+
if (!nodeA || !nodeB) {
|
|
22342
|
+
return 0;
|
|
22343
|
+
}
|
|
22344
|
+
if (nodeA > nodeB) {
|
|
22039
22345
|
return -1;
|
|
22040
22346
|
}
|
|
22041
|
-
if (
|
|
22347
|
+
if (nodeA < nodeB) {
|
|
22042
22348
|
return 1;
|
|
22043
22349
|
}
|
|
22044
22350
|
};
|
|
22045
22351
|
};
|
|
22046
22352
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
22047
22353
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
|
|
22048
|
-
childNodes.sortChildrenDescending();
|
|
22354
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
22049
22355
|
});
|
|
22050
22356
|
};
|
|
22051
22357
|
Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
|
|
@@ -22071,6 +22377,24 @@
|
|
|
22071
22377
|
enumerable: false,
|
|
22072
22378
|
configurable: true
|
|
22073
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
|
+
};
|
|
22074
22398
|
return DocumentTreeNode;
|
|
22075
22399
|
}());
|
|
22076
22400
|
__decorate([
|
|
@@ -22101,10 +22425,14 @@
|
|
|
22101
22425
|
i0__namespace.ɵɵelementEnd();
|
|
22102
22426
|
i0__namespace.ɵɵelementStart(4, "span", 16);
|
|
22103
22427
|
i0__namespace.ɵɵtext(5);
|
|
22428
|
+
i0__namespace.ɵɵelement(6, "br");
|
|
22429
|
+
i0__namespace.ɵɵelementStart(7, "span", 17);
|
|
22430
|
+
i0__namespace.ɵɵtext(8);
|
|
22104
22431
|
i0__namespace.ɵɵelementEnd();
|
|
22105
|
-
i0__namespace.ɵɵ
|
|
22106
|
-
i0__namespace.ɵɵelementStart(
|
|
22107
|
-
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); });
|
|
22108
22436
|
i0__namespace.ɵɵelementEnd();
|
|
22109
22437
|
i0__namespace.ɵɵelementEnd();
|
|
22110
22438
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22116,27 +22444,29 @@
|
|
|
22116
22444
|
i0__namespace.ɵɵadvance(1);
|
|
22117
22445
|
i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
22118
22446
|
i0__namespace.ɵɵadvance(4);
|
|
22119
|
-
i0__namespace.ɵɵ
|
|
22447
|
+
i0__namespace.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
22448
|
+
i0__namespace.ɵɵadvance(3);
|
|
22449
|
+
i0__namespace.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
22120
22450
|
i0__namespace.ɵɵadvance(2);
|
|
22121
22451
|
i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22122
22452
|
}
|
|
22123
22453
|
}
|
|
22124
22454
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
|
|
22125
22455
|
if (rf & 1) {
|
|
22126
|
-
i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
22127
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
22128
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
22129
|
-
i0__namespace.ɵɵelement(3, "img",
|
|
22130
|
-
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);
|
|
22131
22461
|
i0__namespace.ɵɵtext(5);
|
|
22132
22462
|
i0__namespace.ɵɵelementEnd();
|
|
22133
22463
|
i0__namespace.ɵɵelementEnd();
|
|
22134
|
-
i0__namespace.ɵɵelementStart(6, "span",
|
|
22464
|
+
i0__namespace.ɵɵelementStart(6, "span", 25);
|
|
22135
22465
|
i0__namespace.ɵɵtext(7);
|
|
22136
22466
|
i0__namespace.ɵɵelementEnd();
|
|
22137
22467
|
i0__namespace.ɵɵelementEnd();
|
|
22138
22468
|
i0__namespace.ɵɵelementStart(8, "div");
|
|
22139
|
-
i0__namespace.ɵɵelementContainer(9,
|
|
22469
|
+
i0__namespace.ɵɵelementContainer(9, 26);
|
|
22140
22470
|
i0__namespace.ɵɵelementEnd();
|
|
22141
22471
|
i0__namespace.ɵɵelementEnd();
|
|
22142
22472
|
}
|
|
@@ -22161,7 +22491,7 @@
|
|
|
22161
22491
|
i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
22162
22492
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22163
22493
|
i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
|
|
22164
|
-
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);
|
|
22165
22495
|
i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
22166
22496
|
i0__namespace.ɵɵelementEnd();
|
|
22167
22497
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22256,6 +22586,7 @@
|
|
|
22256
22586
|
documentTreeNode.document_filename = document.document_filename;
|
|
22257
22587
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22258
22588
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22589
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22259
22590
|
documentsToReturn.push(documentTreeNode);
|
|
22260
22591
|
});
|
|
22261
22592
|
return documentsToReturn;
|
|
@@ -22269,6 +22600,7 @@
|
|
|
22269
22600
|
documentTreeNode.document_filename = document.document_filename;
|
|
22270
22601
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22271
22602
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22603
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment__namespace(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
22272
22604
|
documents.push(documentTreeNode);
|
|
22273
22605
|
});
|
|
22274
22606
|
var uncategorisedNode = new DocumentTreeNode();
|
|
@@ -22323,16 +22655,16 @@
|
|
|
22323
22655
|
return;
|
|
22324
22656
|
}
|
|
22325
22657
|
};
|
|
22326
|
-
CaseFileViewFolderComponent.prototype.
|
|
22658
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceAscending = function (column) {
|
|
22327
22659
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22328
|
-
item.sortChildrenAscending();
|
|
22660
|
+
item.sortChildrenAscending(column, exports.SortOrder.ASCENDING);
|
|
22329
22661
|
return item;
|
|
22330
22662
|
});
|
|
22331
22663
|
this.updateNodeData(sortedData);
|
|
22332
22664
|
};
|
|
22333
|
-
CaseFileViewFolderComponent.prototype.
|
|
22665
|
+
CaseFileViewFolderComponent.prototype.sortDataSourceDescending = function (column) {
|
|
22334
22666
|
var sortedData = this.nestedDataSource.map(function (item) {
|
|
22335
|
-
item.sortChildrenDescending();
|
|
22667
|
+
item.sortChildrenDescending(column, exports.SortOrder.DESCENDING);
|
|
22336
22668
|
return item;
|
|
22337
22669
|
});
|
|
22338
22670
|
this.updateNodeData(sortedData);
|
|
@@ -22393,7 +22725,7 @@
|
|
|
22393
22725
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
22394
22726
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
22395
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)); };
|
|
22396
|
-
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) {
|
|
22397
22729
|
if (rf & 1) {
|
|
22398
22730
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22399
22731
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -22406,7 +22738,7 @@
|
|
|
22406
22738
|
i0__namespace.ɵɵelementEnd();
|
|
22407
22739
|
i0__namespace.ɵɵelementStart(6, "div");
|
|
22408
22740
|
i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
22409
|
-
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); });
|
|
22410
22742
|
i0__namespace.ɵɵelementEnd();
|
|
22411
22743
|
i0__namespace.ɵɵelementEnd();
|
|
22412
22744
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22420,7 +22752,7 @@
|
|
|
22420
22752
|
i0__namespace.ɵɵadvance(3);
|
|
22421
22753
|
i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
22422
22754
|
}
|
|
22423
|
-
}, 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}"] });
|
|
22424
22756
|
(function () {
|
|
22425
22757
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
22426
22758
|
type: i0.Component,
|
|
@@ -24335,13 +24667,6 @@
|
|
|
24335
24667
|
}] });
|
|
24336
24668
|
})();
|
|
24337
24669
|
|
|
24338
|
-
var SortOrder;
|
|
24339
|
-
(function (SortOrder) {
|
|
24340
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
24341
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
24342
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
24343
|
-
})(SortOrder || (SortOrder = {}));
|
|
24344
|
-
|
|
24345
24670
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) {
|
|
24346
24671
|
if (rf & 1) {
|
|
24347
24672
|
var _r4_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -24615,7 +24940,7 @@
|
|
|
24615
24940
|
return _this;
|
|
24616
24941
|
}
|
|
24617
24942
|
ReadComplexFieldCollectionTableComponent.isSortAscending = function (column) {
|
|
24618
|
-
return !(column.sortOrder === SortOrder.UNSORTED || column.sortOrder === SortOrder.DESCENDING);
|
|
24943
|
+
return !(column.sortOrder === exports.SortOrder.UNSORTED || column.sortOrder === exports.SortOrder.DESCENDING);
|
|
24619
24944
|
};
|
|
24620
24945
|
ReadComplexFieldCollectionTableComponent.prototype.ngOnInit = function () {
|
|
24621
24946
|
_super.prototype.ngOnInit.call(this);
|
|
@@ -24673,19 +24998,19 @@
|
|
|
24673
24998
|
});
|
|
24674
24999
|
};
|
|
24675
25000
|
ReadComplexFieldCollectionTableComponent.prototype.sortRowsByColumns = function (column) {
|
|
24676
|
-
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === SortOrder.UNSORTED
|
|
24677
|
-
|| this.columnsHorizontalLabel[column].sortOrder === SortOrder.DESCENDING;
|
|
25001
|
+
var shouldSortInAscendingOrder = this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.UNSORTED
|
|
25002
|
+
|| this.columnsHorizontalLabel[column].sortOrder === exports.SortOrder.DESCENDING;
|
|
24678
25003
|
// tslint:disable-next-line:switch-default
|
|
24679
25004
|
switch (this.columnsHorizontalLabel[column].type.type) {
|
|
24680
25005
|
case 'Number':
|
|
24681
25006
|
case 'MoneyGBP': {
|
|
24682
25007
|
if (shouldSortInAscendingOrder) {
|
|
24683
25008
|
this.rows.sort(function (a, b) { return a[column] - b[column]; });
|
|
24684
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
25009
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24685
25010
|
}
|
|
24686
25011
|
else {
|
|
24687
25012
|
this.rows.sort(function (a, b) { return b[column] - a[column]; });
|
|
24688
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
25013
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24689
25014
|
}
|
|
24690
25015
|
break;
|
|
24691
25016
|
}
|
|
@@ -24702,11 +25027,11 @@
|
|
|
24702
25027
|
{
|
|
24703
25028
|
if (shouldSortInAscendingOrder) {
|
|
24704
25029
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? -1 : a[column] > b[column] ? 1 : 0; });
|
|
24705
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.ASCENDING;
|
|
25030
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.ASCENDING;
|
|
24706
25031
|
}
|
|
24707
25032
|
else {
|
|
24708
25033
|
this.rows.sort(function (a, b) { return a[column] < b[column] ? 1 : a[column] > b[column] ? -1 : 0; });
|
|
24709
|
-
this.columnsHorizontalLabel[column].sortOrder = SortOrder.DESCENDING;
|
|
25034
|
+
this.columnsHorizontalLabel[column].sortOrder = exports.SortOrder.DESCENDING;
|
|
24710
25035
|
}
|
|
24711
25036
|
}
|
|
24712
25037
|
break;
|
|
@@ -24722,7 +25047,7 @@
|
|
|
24722
25047
|
var id = _c.value;
|
|
24723
25048
|
var trimmedId = id.trim();
|
|
24724
25049
|
labelsHorizontal[trimmedId] = allLabels[trimmedId];
|
|
24725
|
-
labelsHorizontal[trimmedId].sortOrder = SortOrder.UNSORTED;
|
|
25050
|
+
labelsHorizontal[trimmedId].sortOrder = exports.SortOrder.UNSORTED;
|
|
24726
25051
|
delete labelsVertical[trimmedId];
|
|
24727
25052
|
}
|
|
24728
25053
|
}
|
|
@@ -26641,7 +26966,7 @@
|
|
|
26641
26966
|
}
|
|
26642
26967
|
return searchResults.sort(function (a, b) {
|
|
26643
26968
|
return sortParameters.comparator.compare(a, b)
|
|
26644
|
-
* (sortParameters.sortOrder === SortOrder.DESCENDING ? 1 : -1);
|
|
26969
|
+
* (sortParameters.sortOrder === exports.SortOrder.DESCENDING ? 1 : -1);
|
|
26645
26970
|
});
|
|
26646
26971
|
};
|
|
26647
26972
|
return SortSearchResultPipe;
|
|
@@ -28609,7 +28934,8 @@
|
|
|
28609
28934
|
JudicialworkerService,
|
|
28610
28935
|
CaseworkerService,
|
|
28611
28936
|
SessionStorageService,
|
|
28612
|
-
EventCompletionStateMachineService
|
|
28937
|
+
EventCompletionStateMachineService,
|
|
28938
|
+
ValidPageListCaseFieldsService
|
|
28613
28939
|
], imports: [[
|
|
28614
28940
|
i2.CommonModule,
|
|
28615
28941
|
i1$1.RouterModule,
|
|
@@ -28725,7 +29051,8 @@
|
|
|
28725
29051
|
JudicialworkerService,
|
|
28726
29052
|
CaseworkerService,
|
|
28727
29053
|
SessionStorageService,
|
|
28728
|
-
EventCompletionStateMachineService
|
|
29054
|
+
EventCompletionStateMachineService,
|
|
29055
|
+
ValidPageListCaseFieldsService
|
|
28729
29056
|
]
|
|
28730
29057
|
}]
|
|
28731
29058
|
}], null, null);
|
|
@@ -29820,6 +30147,7 @@
|
|
|
29820
30147
|
});
|
|
29821
30148
|
};
|
|
29822
30149
|
WorkbasketFiltersComponent.prototype.apply = function (init) {
|
|
30150
|
+
var _this = this;
|
|
29823
30151
|
// Save filters as query parameters for current route
|
|
29824
30152
|
var queryParams = {};
|
|
29825
30153
|
if (this.selected.jurisdiction) {
|
|
@@ -29851,9 +30179,20 @@
|
|
|
29851
30179
|
if (init) {
|
|
29852
30180
|
this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
|
|
29853
30181
|
if (Object.keys(this.formGroup.controls).length > 0) {
|
|
30182
|
+
// Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
|
|
30183
|
+
// FormGroup value because these values are not intended to be stored and subsequently passed as query string
|
|
30184
|
+
// parameters when calling searchCases API endpoint
|
|
30185
|
+
var judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter(function (key) { return key.endsWith('_judicialUserControl'); });
|
|
30186
|
+
judicialUserControlValuesToRemove.forEach(function (controlKey) { return delete _this.formGroup.value[controlKey]; });
|
|
29854
30187
|
this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
|
|
29855
30188
|
}
|
|
29856
30189
|
}
|
|
30190
|
+
// Announce selected jurisdiction via JurisdictionService
|
|
30191
|
+
if (this.selected.jurisdiction) {
|
|
30192
|
+
// Set the selected case type as the current case type of the selected jurisdiction
|
|
30193
|
+
this.selected.jurisdiction.currentCaseType = this.selected.caseType;
|
|
30194
|
+
this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
|
|
30195
|
+
}
|
|
29857
30196
|
// Apply filters
|
|
29858
30197
|
this.onApply.emit({ selected: this.selected, queryParams: queryParams });
|
|
29859
30198
|
this.setFocusToTop();
|