@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
|
@@ -2912,6 +2912,14 @@ class AddressModel {
|
|
|
2912
2912
|
class Alert {
|
|
2913
2913
|
}
|
|
2914
2914
|
|
|
2915
|
+
// tslint:disable:variable-name
|
|
2916
|
+
class CaseDetails {
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
// tslint:disable:variable-name
|
|
2920
|
+
class CaseEventData {
|
|
2921
|
+
}
|
|
2922
|
+
|
|
2915
2923
|
class WizardPageField {
|
|
2916
2924
|
}
|
|
2917
2925
|
|
|
@@ -3282,6 +3290,9 @@ OrganisationConverter.ɵprov = i0.ɵɵdefineInjectable({ token: OrganisationConv
|
|
|
3282
3290
|
type: Injectable
|
|
3283
3291
|
}], null, null); })();
|
|
3284
3292
|
|
|
3293
|
+
class PaginationMetadata {
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3285
3296
|
function hasRoles(profile) {
|
|
3286
3297
|
if (profile.user && profile.user.idam && Array.isArray(profile.user.idam.roles)) {
|
|
3287
3298
|
return profile.user.idam.roles.length > 0;
|
|
@@ -3347,34 +3358,23 @@ __decorate([
|
|
|
3347
3358
|
__metadata("design:type", Array)
|
|
3348
3359
|
], SearchResultView.prototype, "results", void 0);
|
|
3349
3360
|
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
class CaseEventData {
|
|
3356
|
-
}
|
|
3357
|
-
|
|
3358
|
-
class WorkbasketInputModel {
|
|
3359
|
-
}
|
|
3360
|
-
class WorkbasketInput {
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
class PaginationMetadata {
|
|
3361
|
+
class SortParameters {
|
|
3362
|
+
constructor(comparator, sortOrder) {
|
|
3363
|
+
this.comparator = comparator;
|
|
3364
|
+
this.sortOrder = sortOrder;
|
|
3365
|
+
}
|
|
3364
3366
|
}
|
|
3365
3367
|
|
|
3366
|
-
var SortOrder
|
|
3368
|
+
var SortOrder;
|
|
3367
3369
|
(function (SortOrder) {
|
|
3368
3370
|
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
3369
3371
|
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
3370
3372
|
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
3371
|
-
})(SortOrder
|
|
3373
|
+
})(SortOrder || (SortOrder = {}));
|
|
3372
3374
|
|
|
3373
|
-
class
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
this.sortOrder = sortOrder;
|
|
3377
|
-
}
|
|
3375
|
+
class WorkbasketInputModel {
|
|
3376
|
+
}
|
|
3377
|
+
class WorkbasketInput {
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
3380
|
// @dynamic
|
|
@@ -6202,6 +6202,239 @@ AddressesService.ɵprov = i0.ɵɵdefineInjectable({ token: AddressesService, fac
|
|
|
6202
6202
|
type: Injectable
|
|
6203
6203
|
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null); })();
|
|
6204
6204
|
|
|
6205
|
+
const categoriesAndDocumentsTestData = {
|
|
6206
|
+
case_version: 1,
|
|
6207
|
+
categories: [
|
|
6208
|
+
{
|
|
6209
|
+
category_id: 'Beers',
|
|
6210
|
+
category_name: 'Beers',
|
|
6211
|
+
category_order: 1,
|
|
6212
|
+
documents: [
|
|
6213
|
+
{
|
|
6214
|
+
document_url: '/test',
|
|
6215
|
+
document_filename: 'Lager encyclopedia',
|
|
6216
|
+
document_binary_url: '/test/binary',
|
|
6217
|
+
attribute_path: '',
|
|
6218
|
+
upload_timestamp: new Date(2023, 4, 11),
|
|
6219
|
+
content_type: ''
|
|
6220
|
+
},
|
|
6221
|
+
{
|
|
6222
|
+
document_url: '/test',
|
|
6223
|
+
document_filename: 'Beers encyclopedia',
|
|
6224
|
+
document_binary_url: '/test/binary',
|
|
6225
|
+
attribute_path: '',
|
|
6226
|
+
upload_timestamp: new Date(2023, 3, 14),
|
|
6227
|
+
content_type: ''
|
|
6228
|
+
},
|
|
6229
|
+
{
|
|
6230
|
+
document_url: '/test',
|
|
6231
|
+
document_filename: 'Ale encyclopedia',
|
|
6232
|
+
document_binary_url: '/test/binary',
|
|
6233
|
+
attribute_path: '',
|
|
6234
|
+
upload_timestamp: new Date(2023, 2, 12),
|
|
6235
|
+
content_type: ''
|
|
6236
|
+
}
|
|
6237
|
+
],
|
|
6238
|
+
sub_categories: [
|
|
6239
|
+
{
|
|
6240
|
+
category_id: 'BeersBitters',
|
|
6241
|
+
category_name: 'Bitters',
|
|
6242
|
+
category_order: 1,
|
|
6243
|
+
documents: [],
|
|
6244
|
+
sub_categories: []
|
|
6245
|
+
},
|
|
6246
|
+
{
|
|
6247
|
+
category_id: 'BeersAmerican',
|
|
6248
|
+
category_name: 'American',
|
|
6249
|
+
category_order: 2,
|
|
6250
|
+
documents: [],
|
|
6251
|
+
sub_categories: []
|
|
6252
|
+
},
|
|
6253
|
+
{
|
|
6254
|
+
category_id: 'BeersAsian',
|
|
6255
|
+
category_name: 'Asian',
|
|
6256
|
+
category_order: 3,
|
|
6257
|
+
documents: [],
|
|
6258
|
+
sub_categories: []
|
|
6259
|
+
}
|
|
6260
|
+
]
|
|
6261
|
+
},
|
|
6262
|
+
{
|
|
6263
|
+
category_id: 'Wines',
|
|
6264
|
+
category_name: 'Wines',
|
|
6265
|
+
category_order: 2,
|
|
6266
|
+
documents: [],
|
|
6267
|
+
sub_categories: [
|
|
6268
|
+
{
|
|
6269
|
+
category_id: 'WinesFrench',
|
|
6270
|
+
category_name: 'French',
|
|
6271
|
+
category_order: 1,
|
|
6272
|
+
documents: [],
|
|
6273
|
+
sub_categories: []
|
|
6274
|
+
},
|
|
6275
|
+
{
|
|
6276
|
+
category_id: 'WinesItalian',
|
|
6277
|
+
category_name: 'Italian',
|
|
6278
|
+
category_order: 2,
|
|
6279
|
+
documents: [
|
|
6280
|
+
{
|
|
6281
|
+
document_url: '/red-wine',
|
|
6282
|
+
document_filename: 'Details about red wine',
|
|
6283
|
+
document_binary_url: '/test/binary',
|
|
6284
|
+
attribute_path: '',
|
|
6285
|
+
upload_timestamp: null,
|
|
6286
|
+
content_type: ''
|
|
6287
|
+
},
|
|
6288
|
+
{
|
|
6289
|
+
document_url: '/white-wine',
|
|
6290
|
+
document_filename: 'Details about white wine',
|
|
6291
|
+
document_binary_url: '/test/binary',
|
|
6292
|
+
attribute_path: '',
|
|
6293
|
+
upload_timestamp: new Date(2023, 1, 10),
|
|
6294
|
+
content_type: ''
|
|
6295
|
+
},
|
|
6296
|
+
{
|
|
6297
|
+
document_url: '/prosecco',
|
|
6298
|
+
document_filename: 'Details about Prosecco',
|
|
6299
|
+
document_binary_url: '/test/binary',
|
|
6300
|
+
attribute_path: '',
|
|
6301
|
+
upload_timestamp: new Date(2023, 3, 12),
|
|
6302
|
+
content_type: ''
|
|
6303
|
+
},
|
|
6304
|
+
{
|
|
6305
|
+
document_url: '/pinot-grigio',
|
|
6306
|
+
document_filename: 'Details about Pinot Grigio',
|
|
6307
|
+
document_binary_url: '/test/binary',
|
|
6308
|
+
attribute_path: '',
|
|
6309
|
+
upload_timestamp: new Date(2023, 2, 16),
|
|
6310
|
+
content_type: ''
|
|
6311
|
+
}
|
|
6312
|
+
],
|
|
6313
|
+
sub_categories: []
|
|
6314
|
+
}
|
|
6315
|
+
]
|
|
6316
|
+
},
|
|
6317
|
+
{
|
|
6318
|
+
category_id: 'Spirits',
|
|
6319
|
+
category_name: 'Spirits',
|
|
6320
|
+
category_order: 3,
|
|
6321
|
+
documents: [],
|
|
6322
|
+
sub_categories: [
|
|
6323
|
+
{
|
|
6324
|
+
category_id: 'SpiritsWhisky',
|
|
6325
|
+
category_name: 'Scotch whisky',
|
|
6326
|
+
category_order: 1,
|
|
6327
|
+
documents: [],
|
|
6328
|
+
sub_categories: [
|
|
6329
|
+
{
|
|
6330
|
+
category_id: 'WhiskyHighland',
|
|
6331
|
+
category_name: 'Highland',
|
|
6332
|
+
category_order: 1,
|
|
6333
|
+
documents: [],
|
|
6334
|
+
sub_categories: [
|
|
6335
|
+
{
|
|
6336
|
+
category_id: 'WhiskyHighland1',
|
|
6337
|
+
category_name: 'Highland 1',
|
|
6338
|
+
category_order: 1,
|
|
6339
|
+
documents: [],
|
|
6340
|
+
sub_categories: []
|
|
6341
|
+
}
|
|
6342
|
+
]
|
|
6343
|
+
},
|
|
6344
|
+
{
|
|
6345
|
+
category_id: 'WhiskyLowland',
|
|
6346
|
+
category_name: 'Lowland',
|
|
6347
|
+
category_order: 2,
|
|
6348
|
+
documents: [],
|
|
6349
|
+
sub_categories: [
|
|
6350
|
+
{
|
|
6351
|
+
category_id: 'WhiskyLowland1',
|
|
6352
|
+
category_name: 'Lowland 1',
|
|
6353
|
+
category_order: 1,
|
|
6354
|
+
documents: [
|
|
6355
|
+
{
|
|
6356
|
+
document_url: '/test',
|
|
6357
|
+
document_filename: 'Details about Whisky Lowland 1',
|
|
6358
|
+
document_binary_url: '/test/binary',
|
|
6359
|
+
attribute_path: '',
|
|
6360
|
+
upload_timestamp: new Date(2022, 5, 21),
|
|
6361
|
+
content_type: ''
|
|
6362
|
+
}
|
|
6363
|
+
],
|
|
6364
|
+
sub_categories: []
|
|
6365
|
+
},
|
|
6366
|
+
{
|
|
6367
|
+
category_id: 'WhiskyLowland2',
|
|
6368
|
+
category_name: 'Lowland 2',
|
|
6369
|
+
category_order: 2,
|
|
6370
|
+
documents: [],
|
|
6371
|
+
sub_categories: []
|
|
6372
|
+
}
|
|
6373
|
+
]
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
category_id: 'WhiskyIslay',
|
|
6377
|
+
category_name: 'Islay',
|
|
6378
|
+
category_order: 3,
|
|
6379
|
+
documents: [
|
|
6380
|
+
{
|
|
6381
|
+
document_url: '/test',
|
|
6382
|
+
document_filename: 'Details about Whisky Islay',
|
|
6383
|
+
document_binary_url: '/test/binary',
|
|
6384
|
+
attribute_path: '',
|
|
6385
|
+
upload_timestamp: new Date(2022, 10, 4),
|
|
6386
|
+
content_type: ''
|
|
6387
|
+
},
|
|
6388
|
+
{
|
|
6389
|
+
document_url: '/test',
|
|
6390
|
+
document_filename: 'More information about Whisky Islay',
|
|
6391
|
+
document_binary_url: '/test/binary',
|
|
6392
|
+
attribute_path: '',
|
|
6393
|
+
upload_timestamp: new Date(2022, 11, 28),
|
|
6394
|
+
content_type: ''
|
|
6395
|
+
}
|
|
6396
|
+
],
|
|
6397
|
+
sub_categories: []
|
|
6398
|
+
},
|
|
6399
|
+
{
|
|
6400
|
+
category_id: 'WhiskySpeyside',
|
|
6401
|
+
category_name: 'Speyside',
|
|
6402
|
+
category_order: 4,
|
|
6403
|
+
documents: [],
|
|
6404
|
+
sub_categories: []
|
|
6405
|
+
},
|
|
6406
|
+
{
|
|
6407
|
+
category_id: 'WhiskyCampbeltown',
|
|
6408
|
+
category_name: 'Campbeltown',
|
|
6409
|
+
category_order: 5,
|
|
6410
|
+
documents: [],
|
|
6411
|
+
sub_categories: []
|
|
6412
|
+
}
|
|
6413
|
+
]
|
|
6414
|
+
}
|
|
6415
|
+
]
|
|
6416
|
+
}
|
|
6417
|
+
],
|
|
6418
|
+
uncategorised_documents: [
|
|
6419
|
+
{
|
|
6420
|
+
document_url: '/uncategorised-document-1',
|
|
6421
|
+
document_filename: 'Uncategorised document 1',
|
|
6422
|
+
document_binary_url: '/test/binary',
|
|
6423
|
+
attribute_path: '',
|
|
6424
|
+
upload_timestamp: new Date(2022, 10, 17),
|
|
6425
|
+
content_type: ''
|
|
6426
|
+
},
|
|
6427
|
+
{
|
|
6428
|
+
document_url: '/uncategorised-document-2',
|
|
6429
|
+
document_filename: 'Uncategorised document 2',
|
|
6430
|
+
document_binary_url: '/test/binary',
|
|
6431
|
+
attribute_path: '',
|
|
6432
|
+
upload_timestamp: new Date(2023, 1, 23),
|
|
6433
|
+
content_type: ''
|
|
6434
|
+
}
|
|
6435
|
+
]
|
|
6436
|
+
};
|
|
6437
|
+
|
|
6205
6438
|
class CaseFileViewService {
|
|
6206
6439
|
constructor(http, appConfig) {
|
|
6207
6440
|
this.http = http;
|
|
@@ -6214,6 +6447,16 @@ class CaseFileViewService {
|
|
|
6214
6447
|
* @returns An `Observable` of the `CategoriesAndDocuments` for the case
|
|
6215
6448
|
*/
|
|
6216
6449
|
getCategoriesAndDocuments(caseRef) {
|
|
6450
|
+
// Case file view v1.1 epic - https://tools.hmcts.net/jira/browse/EUI-7807
|
|
6451
|
+
// Display upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7819
|
|
6452
|
+
// Sort by upload_timestamp - https://tools.hmcts.net/jira/browse/EUI-7812
|
|
6453
|
+
// The property upload_timestamp is not available as it is not yet implemented by CCD
|
|
6454
|
+
// Using this case reference '1666863124102280' to return the mock data with upload_timestamp
|
|
6455
|
+
// The below 'if' statement should be removed once the upload_timestamp property is made available by CCD
|
|
6456
|
+
// https://tools.hmcts.net/jira/browse/EUI-8129
|
|
6457
|
+
if (caseRef === '1666863124102280') {
|
|
6458
|
+
return of(categoriesAndDocumentsTestData);
|
|
6459
|
+
}
|
|
6217
6460
|
let url = this.appConfig.getCategoriesAndDocumentsUrl();
|
|
6218
6461
|
if (url) {
|
|
6219
6462
|
url += `/${caseRef}`;
|
|
@@ -8510,8 +8753,32 @@ WorkAllocationService.ɵprov = i0.ɵɵdefineInjectable({ token: WorkAllocationSe
|
|
|
8510
8753
|
type: Injectable
|
|
8511
8754
|
}], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }, { type: AlertService }, { type: SessionStorageService }]; }, null); })();
|
|
8512
8755
|
|
|
8756
|
+
class ValidPageListCaseFieldsService {
|
|
8757
|
+
deleteNonValidatedFields(validPageList, data, notFromEventSubmit, fromPreviousPage = false) {
|
|
8758
|
+
const validPageListCaseFields = [];
|
|
8759
|
+
validPageList.forEach(page => {
|
|
8760
|
+
if (notFromEventSubmit || ShowCondition.getInstance(page.show_condition).match(data)) {
|
|
8761
|
+
page.case_fields.forEach(field => validPageListCaseFields.push(field));
|
|
8762
|
+
}
|
|
8763
|
+
});
|
|
8764
|
+
if (!fromPreviousPage && validPageListCaseFields.length > 0) {
|
|
8765
|
+
Object.keys(data).forEach(key => {
|
|
8766
|
+
if (validPageListCaseFields.findIndex((element) => element.id === key) < 0) {
|
|
8767
|
+
delete data[key];
|
|
8768
|
+
;
|
|
8769
|
+
}
|
|
8770
|
+
});
|
|
8771
|
+
}
|
|
8772
|
+
}
|
|
8773
|
+
}
|
|
8774
|
+
ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(); };
|
|
8775
|
+
ValidPageListCaseFieldsService.ɵprov = i0.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
|
|
8776
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
|
|
8777
|
+
type: Injectable
|
|
8778
|
+
}], null, null); })();
|
|
8779
|
+
|
|
8513
8780
|
class CaseEditComponent {
|
|
8514
|
-
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService) {
|
|
8781
|
+
constructor(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService, validPageListCaseFieldsService) {
|
|
8515
8782
|
this.fb = fb;
|
|
8516
8783
|
this.caseNotifier = caseNotifier;
|
|
8517
8784
|
this.router = router;
|
|
@@ -8525,6 +8792,7 @@ class CaseEditComponent {
|
|
|
8525
8792
|
this.formValueService = formValueService;
|
|
8526
8793
|
this.formErrorService = formErrorService;
|
|
8527
8794
|
this.loadingService = loadingService;
|
|
8795
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
8528
8796
|
this.cancelled = new EventEmitter();
|
|
8529
8797
|
this.submitted = new EventEmitter();
|
|
8530
8798
|
this.isEventCompletionChecksRequired = false;
|
|
@@ -8532,6 +8800,7 @@ class CaseEditComponent {
|
|
|
8532
8800
|
this.ignoreWarning = false;
|
|
8533
8801
|
this.isLinkedCasesSubmission = false;
|
|
8534
8802
|
this.callbackErrorsSubject = new Subject();
|
|
8803
|
+
this.validPageList = [];
|
|
8535
8804
|
}
|
|
8536
8805
|
ngOnInit() {
|
|
8537
8806
|
this.wizard = this.wizardFactory.create(this.eventTrigger);
|
|
@@ -8692,6 +8961,8 @@ class CaseEditComponent {
|
|
|
8692
8961
|
this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
|
|
8693
8962
|
// Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
|
|
8694
8963
|
this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
|
|
8964
|
+
// delete fields which are not part of the case event journey wizard pages case fields
|
|
8965
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, false);
|
|
8695
8966
|
caseEventData.event_token = eventTrigger.event_token;
|
|
8696
8967
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
8697
8968
|
if (this.confirmation) {
|
|
@@ -8792,7 +9063,9 @@ class CaseEditComponent {
|
|
|
8792
9063
|
rawFormValueData[key] = parentField.formatted_value[caseField.id];
|
|
8793
9064
|
}
|
|
8794
9065
|
else {
|
|
8795
|
-
|
|
9066
|
+
if (!(caseField.hidden && caseField.retain_hidden_value)) {
|
|
9067
|
+
rawFormValueData[key] = caseField.formatted_value;
|
|
9068
|
+
}
|
|
8796
9069
|
}
|
|
8797
9070
|
}
|
|
8798
9071
|
}
|
|
@@ -8854,7 +9127,7 @@ class CaseEditComponent {
|
|
|
8854
9127
|
}
|
|
8855
9128
|
CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
|
|
8856
9129
|
CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
|
|
8857
|
-
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i2$1.FormBuilder), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
9130
|
+
CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i2$1.FormBuilder), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
|
|
8858
9131
|
CaseEditComponent.ɵcmp = i0.ɵɵ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.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8859
9132
|
i0.ɵɵelement(0, "router-outlet");
|
|
8860
9133
|
} }, directives: [i1$1.RouterOutlet], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
|
|
@@ -8866,7 +9139,7 @@ CaseEditComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditComponent, sele
|
|
|
8866
9139
|
styleUrls: ['../case-edit.scss'],
|
|
8867
9140
|
providers: [GreyBarService]
|
|
8868
9141
|
}]
|
|
8869
|
-
}], function () { return [{ type: i2$1.FormBuilder }, { type: CaseNotifier }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }]; }, { eventTrigger: [{
|
|
9142
|
+
}], function () { return [{ type: i2$1.FormBuilder }, { type: CaseNotifier }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, { eventTrigger: [{
|
|
8870
9143
|
type: Input
|
|
8871
9144
|
}], submit: [{
|
|
8872
9145
|
type: Input
|
|
@@ -9465,7 +9738,7 @@ function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) {
|
|
|
9465
9738
|
i0.ɵɵproperty("eventCompletionParams", ctx_r8.caseEdit.eventCompletionParams);
|
|
9466
9739
|
} }
|
|
9467
9740
|
class CaseEditPageComponent {
|
|
9468
|
-
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService) {
|
|
9741
|
+
constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService) {
|
|
9469
9742
|
this.caseEdit = caseEdit;
|
|
9470
9743
|
this.route = route;
|
|
9471
9744
|
this.formValueService = formValueService;
|
|
@@ -9476,6 +9749,7 @@ class CaseEditPageComponent {
|
|
|
9476
9749
|
this.caseFieldService = caseFieldService;
|
|
9477
9750
|
this.caseEditDataService = caseEditDataService;
|
|
9478
9751
|
this.loadingService = loadingService;
|
|
9752
|
+
this.validPageListCaseFieldsService = validPageListCaseFieldsService;
|
|
9479
9753
|
this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
|
|
9480
9754
|
this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
|
|
9481
9755
|
this.formValuesChanged = false;
|
|
@@ -9683,6 +9957,9 @@ class CaseEditPageComponent {
|
|
|
9683
9957
|
}
|
|
9684
9958
|
}
|
|
9685
9959
|
if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
|
|
9960
|
+
if (this.caseEdit.validPageList.findIndex(page => page.id === this.currentPage.id) === -1) {
|
|
9961
|
+
this.caseEdit.validPageList.push(this.currentPage);
|
|
9962
|
+
}
|
|
9686
9963
|
this.caseEdit.isSubmitting = true;
|
|
9687
9964
|
this.caseEdit.error = null;
|
|
9688
9965
|
const caseEventData = this.buildCaseEventData();
|
|
@@ -9931,6 +10208,8 @@ class CaseEditPageComponent {
|
|
|
9931
10208
|
this.formValueService.sanitiseDynamicLists(caseFields, formFields);
|
|
9932
10209
|
// Get hold of the CaseEventData.
|
|
9933
10210
|
const caseEventData = this.formValueService.sanitise(formFields);
|
|
10211
|
+
// delete fields which are not part of the case event journey wizard pages case fields
|
|
10212
|
+
this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, true, fromPreviousPage);
|
|
9934
10213
|
// Tidy it up before we return it.
|
|
9935
10214
|
this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
|
|
9936
10215
|
return caseEventData;
|
|
@@ -9971,7 +10250,7 @@ CaseEditPageComponent.RESUMED_FORM_SAVE = 'RESUMED_FORM_SAVE';
|
|
|
9971
10250
|
CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
|
|
9972
10251
|
CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
|
|
9973
10252
|
CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
|
|
9974
|
-
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService)); };
|
|
10253
|
+
CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService)); };
|
|
9975
10254
|
CaseEditPageComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
9976
10255
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
|
|
9977
10256
|
i0.ɵɵtemplate(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 1);
|
|
@@ -10010,7 +10289,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
|
|
|
10010
10289
|
templateUrl: 'case-edit-page.html',
|
|
10011
10290
|
styleUrls: ['./case-edit-page.scss']
|
|
10012
10291
|
}]
|
|
10013
|
-
}], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null); })();
|
|
10292
|
+
}], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }]; }, null); })();
|
|
10014
10293
|
|
|
10015
10294
|
class CallbackErrorsContext {
|
|
10016
10295
|
}
|
|
@@ -18972,14 +19251,22 @@ CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0.ɵɵdefineComponent({ type
|
|
|
18972
19251
|
type: Output
|
|
18973
19252
|
}] }); })();
|
|
18974
19253
|
|
|
19254
|
+
var CaseFileViewSortColumns;
|
|
19255
|
+
(function (CaseFileViewSortColumns) {
|
|
19256
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
19257
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
19258
|
+
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
19259
|
+
|
|
18975
19260
|
class CaseFileViewFolderSortComponent {
|
|
18976
19261
|
constructor() {
|
|
18977
19262
|
this.isOpen = false;
|
|
18978
19263
|
this.sortAscending = new EventEmitter();
|
|
18979
19264
|
this.sortDescending = new EventEmitter();
|
|
18980
19265
|
this.overlayMenuItems = [
|
|
18981
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
|
|
18982
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
|
|
19266
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
19267
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
19268
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) },
|
|
19269
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) },
|
|
18983
19270
|
];
|
|
18984
19271
|
}
|
|
18985
19272
|
}
|
|
@@ -19042,48 +19329,54 @@ class DocumentTreeNode {
|
|
|
19042
19329
|
};
|
|
19043
19330
|
return countChildren(this.children);
|
|
19044
19331
|
}
|
|
19045
|
-
sortChildrenAscending() {
|
|
19332
|
+
sortChildrenAscending(column, sortOrder) {
|
|
19046
19333
|
var _a, _b;
|
|
19047
19334
|
const sortAscending = () => {
|
|
19048
19335
|
return (a, b) => {
|
|
19049
|
-
const
|
|
19050
|
-
const
|
|
19336
|
+
const nodeA = this.getNodeToSort(a, column, sortOrder);
|
|
19337
|
+
const nodeB = this.getNodeToSort(b, column, sortOrder);
|
|
19051
19338
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
19052
19339
|
return 0;
|
|
19053
19340
|
}
|
|
19054
|
-
if (
|
|
19341
|
+
if (!nodeA || !nodeB) {
|
|
19342
|
+
return 0;
|
|
19343
|
+
}
|
|
19344
|
+
if (nodeA < nodeB) {
|
|
19055
19345
|
return -1;
|
|
19056
19346
|
}
|
|
19057
|
-
if (
|
|
19347
|
+
if (nodeA > nodeB) {
|
|
19058
19348
|
return 1;
|
|
19059
19349
|
}
|
|
19060
19350
|
};
|
|
19061
19351
|
};
|
|
19062
19352
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
19063
19353
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
19064
|
-
childNodes.sortChildrenAscending();
|
|
19354
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
19065
19355
|
});
|
|
19066
19356
|
}
|
|
19067
|
-
sortChildrenDescending() {
|
|
19357
|
+
sortChildrenDescending(column, sortOrder) {
|
|
19068
19358
|
var _a, _b;
|
|
19069
19359
|
const sortDescending = () => {
|
|
19070
19360
|
return (a, b) => {
|
|
19071
|
-
const
|
|
19072
|
-
const
|
|
19361
|
+
const nodeA = this.getNodeToSort(a, column, sortOrder);
|
|
19362
|
+
const nodeB = this.getNodeToSort(b, column, sortOrder);
|
|
19073
19363
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
19074
19364
|
return 0;
|
|
19075
19365
|
}
|
|
19076
|
-
if (
|
|
19366
|
+
if (!nodeA || !nodeB) {
|
|
19367
|
+
return 0;
|
|
19368
|
+
}
|
|
19369
|
+
if (nodeA > nodeB) {
|
|
19077
19370
|
return -1;
|
|
19078
19371
|
}
|
|
19079
|
-
if (
|
|
19372
|
+
if (nodeA < nodeB) {
|
|
19080
19373
|
return 1;
|
|
19081
19374
|
}
|
|
19082
19375
|
};
|
|
19083
19376
|
};
|
|
19084
19377
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
19085
19378
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
19086
|
-
childNodes.sortChildrenDescending();
|
|
19379
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
19087
19380
|
});
|
|
19088
19381
|
}
|
|
19089
19382
|
get flattenedAll() {
|
|
@@ -19106,6 +19399,24 @@ class DocumentTreeNode {
|
|
|
19106
19399
|
}).flat()
|
|
19107
19400
|
];
|
|
19108
19401
|
}
|
|
19402
|
+
getNodeToSort(node, column, sortOrder) {
|
|
19403
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
19404
|
+
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
19405
|
+
: '';
|
|
19406
|
+
}
|
|
19407
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
19408
|
+
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
19409
|
+
return new Date(node.upload_timestamp);
|
|
19410
|
+
}
|
|
19411
|
+
if (sortOrder === SortOrder.ASCENDING) {
|
|
19412
|
+
return new Date(9999, 12, 31);
|
|
19413
|
+
}
|
|
19414
|
+
if (sortOrder === SortOrder.DESCENDING) {
|
|
19415
|
+
return new Date(1111, 1, 1);
|
|
19416
|
+
}
|
|
19417
|
+
}
|
|
19418
|
+
return '';
|
|
19419
|
+
}
|
|
19109
19420
|
}
|
|
19110
19421
|
__decorate([
|
|
19111
19422
|
Type(() => DocumentTreeNode),
|
|
@@ -19132,10 +19443,14 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
19132
19443
|
i0.ɵɵelementEnd();
|
|
19133
19444
|
i0.ɵɵelementStart(4, "span", 16);
|
|
19134
19445
|
i0.ɵɵtext(5);
|
|
19446
|
+
i0.ɵɵelement(6, "br");
|
|
19447
|
+
i0.ɵɵelementStart(7, "span", 17);
|
|
19448
|
+
i0.ɵɵtext(8);
|
|
19449
|
+
i0.ɵɵelementEnd();
|
|
19135
19450
|
i0.ɵɵelementEnd();
|
|
19136
|
-
i0.ɵɵelementStart(
|
|
19137
|
-
i0.ɵɵelementStart(
|
|
19138
|
-
i0.ɵɵlistener("changeFolderAction", function
|
|
19451
|
+
i0.ɵɵelementStart(9, "div", 18);
|
|
19452
|
+
i0.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
|
|
19453
|
+
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_10_listener() { i0.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r7 = i0.ɵɵ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.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r8 = i0.ɵɵ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.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r9 = i0.ɵɵ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.ɵɵrestoreView(_r6); const node_r4 = ctx.$implicit; const ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
|
|
19139
19454
|
i0.ɵɵelementEnd();
|
|
19140
19455
|
i0.ɵɵelementEnd();
|
|
19141
19456
|
i0.ɵɵelementEnd();
|
|
@@ -19146,25 +19461,27 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
19146
19461
|
i0.ɵɵadvance(1);
|
|
19147
19462
|
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
19148
19463
|
i0.ɵɵadvance(4);
|
|
19149
|
-
i0.ɵɵ
|
|
19464
|
+
i0.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
19465
|
+
i0.ɵɵadvance(3);
|
|
19466
|
+
i0.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
19150
19467
|
i0.ɵɵadvance(2);
|
|
19151
19468
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
19152
19469
|
} }
|
|
19153
19470
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
19154
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
19155
|
-
i0.ɵɵelementStart(1, "button",
|
|
19156
|
-
i0.ɵɵelementStart(2, "div",
|
|
19157
|
-
i0.ɵɵelement(3, "img",
|
|
19158
|
-
i0.ɵɵelementStart(4, "span",
|
|
19471
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
|
|
19472
|
+
i0.ɵɵelementStart(1, "button", 21);
|
|
19473
|
+
i0.ɵɵelementStart(2, "div", 22);
|
|
19474
|
+
i0.ɵɵelement(3, "img", 23);
|
|
19475
|
+
i0.ɵɵelementStart(4, "span", 24);
|
|
19159
19476
|
i0.ɵɵtext(5);
|
|
19160
19477
|
i0.ɵɵelementEnd();
|
|
19161
19478
|
i0.ɵɵelementEnd();
|
|
19162
|
-
i0.ɵɵelementStart(6, "span",
|
|
19479
|
+
i0.ɵɵelementStart(6, "span", 25);
|
|
19163
19480
|
i0.ɵɵtext(7);
|
|
19164
19481
|
i0.ɵɵelementEnd();
|
|
19165
19482
|
i0.ɵɵelementEnd();
|
|
19166
19483
|
i0.ɵɵelementStart(8, "div");
|
|
19167
|
-
i0.ɵɵelementContainer(9,
|
|
19484
|
+
i0.ɵɵelementContainer(9, 26);
|
|
19168
19485
|
i0.ɵɵelementEnd();
|
|
19169
19486
|
i0.ɵɵelementEnd();
|
|
19170
19487
|
} if (rf & 2) {
|
|
@@ -19186,7 +19503,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
19186
19503
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
19187
19504
|
i0.ɵɵelementStart(2, "div");
|
|
19188
19505
|
i0.ɵɵelementStart(3, "cdk-tree", 9);
|
|
19189
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
19506
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
|
|
19190
19507
|
i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
19191
19508
|
i0.ɵɵelementEnd();
|
|
19192
19509
|
i0.ɵɵelementEnd();
|
|
@@ -19274,6 +19591,7 @@ class CaseFileViewFolderComponent {
|
|
|
19274
19591
|
documentTreeNode.document_filename = document.document_filename;
|
|
19275
19592
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19276
19593
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
19594
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
19277
19595
|
documentsToReturn.push(documentTreeNode);
|
|
19278
19596
|
});
|
|
19279
19597
|
return documentsToReturn;
|
|
@@ -19287,6 +19605,7 @@ class CaseFileViewFolderComponent {
|
|
|
19287
19605
|
documentTreeNode.document_filename = document.document_filename;
|
|
19288
19606
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19289
19607
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
19608
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
19290
19609
|
documents.push(documentTreeNode);
|
|
19291
19610
|
});
|
|
19292
19611
|
const uncategorisedNode = new DocumentTreeNode();
|
|
@@ -19341,16 +19660,16 @@ class CaseFileViewFolderComponent {
|
|
|
19341
19660
|
return;
|
|
19342
19661
|
}
|
|
19343
19662
|
}
|
|
19344
|
-
|
|
19663
|
+
sortDataSourceAscending(column) {
|
|
19345
19664
|
const sortedData = this.nestedDataSource.map(item => {
|
|
19346
|
-
item.sortChildrenAscending();
|
|
19665
|
+
item.sortChildrenAscending(column, SortOrder.ASCENDING);
|
|
19347
19666
|
return item;
|
|
19348
19667
|
});
|
|
19349
19668
|
this.updateNodeData(sortedData);
|
|
19350
19669
|
}
|
|
19351
|
-
|
|
19670
|
+
sortDataSourceDescending(column) {
|
|
19352
19671
|
const sortedData = this.nestedDataSource.map(item => {
|
|
19353
|
-
item.sortChildrenDescending();
|
|
19672
|
+
item.sortChildrenDescending(column, SortOrder.DESCENDING);
|
|
19354
19673
|
return item;
|
|
19355
19674
|
});
|
|
19356
19675
|
this.updateNodeData(sortedData);
|
|
@@ -19408,7 +19727,7 @@ CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised docum
|
|
|
19408
19727
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19409
19728
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19410
19729
|
CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
19411
|
-
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
19730
|
+
CaseFileViewFolderComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
|
|
19412
19731
|
i0.ɵɵelementStart(0, "div", 0);
|
|
19413
19732
|
i0.ɵɵelementStart(1, "div", 1);
|
|
19414
19733
|
i0.ɵɵelement(2, "input", 2);
|
|
@@ -19420,7 +19739,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
19420
19739
|
i0.ɵɵelementEnd();
|
|
19421
19740
|
i0.ɵɵelementStart(6, "div");
|
|
19422
19741
|
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
19423
|
-
i0.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.
|
|
19742
|
+
i0.ɵɵ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); });
|
|
19424
19743
|
i0.ɵɵelementEnd();
|
|
19425
19744
|
i0.ɵɵelementEnd();
|
|
19426
19745
|
i0.ɵɵelementEnd();
|
|
@@ -19432,7 +19751,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
19432
19751
|
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
19433
19752
|
i0.ɵɵadvance(3);
|
|
19434
19753
|
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
19435
|
-
} }, directives: [i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlName, CaseFileViewFolderSortComponent, i2.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.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:
|
|
19754
|
+
} }, directives: [i2$1.NgControlStatusGroup, i2$1.FormGroupDirective, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.FormControlName, CaseFileViewFolderSortComponent, i2.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.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}"] });
|
|
19436
19755
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
19437
19756
|
type: Component,
|
|
19438
19757
|
args: [{
|
|
@@ -21153,13 +21472,6 @@ const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
|
|
|
21153
21472
|
type: Input
|
|
21154
21473
|
}] }); })();
|
|
21155
21474
|
|
|
21156
|
-
var SortOrder;
|
|
21157
|
-
(function (SortOrder) {
|
|
21158
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
21159
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
21160
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
21161
|
-
})(SortOrder || (SortOrder = {}));
|
|
21162
|
-
|
|
21163
21475
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
21164
21476
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21165
21477
|
i0.ɵɵelementStart(0, "th", 6);
|
|
@@ -24934,7 +25246,8 @@ CaseEditorModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
24934
25246
|
JudicialworkerService,
|
|
24935
25247
|
CaseworkerService,
|
|
24936
25248
|
SessionStorageService,
|
|
24937
|
-
EventCompletionStateMachineService
|
|
25249
|
+
EventCompletionStateMachineService,
|
|
25250
|
+
ValidPageListCaseFieldsService
|
|
24938
25251
|
], imports: [[
|
|
24939
25252
|
CommonModule,
|
|
24940
25253
|
RouterModule,
|
|
@@ -25047,7 +25360,8 @@ CaseEditorModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
25047
25360
|
JudicialworkerService,
|
|
25048
25361
|
CaseworkerService,
|
|
25049
25362
|
SessionStorageService,
|
|
25050
|
-
EventCompletionStateMachineService
|
|
25363
|
+
EventCompletionStateMachineService,
|
|
25364
|
+
ValidPageListCaseFieldsService
|
|
25051
25365
|
]
|
|
25052
25366
|
}]
|
|
25053
25367
|
}], null, null); })();
|
|
@@ -32497,12 +32811,12 @@ class SearchResultComponent {
|
|
|
32497
32811
|
sort(column) {
|
|
32498
32812
|
if (this.consumerSortingEnabled) {
|
|
32499
32813
|
if (column.case_field_id !== this.consumerSortParameters.column) {
|
|
32500
|
-
this.consumerSortParameters.order = SortOrder
|
|
32814
|
+
this.consumerSortParameters.order = SortOrder.DESCENDING;
|
|
32501
32815
|
}
|
|
32502
32816
|
else {
|
|
32503
|
-
this.consumerSortParameters.order = this.consumerSortParameters.order === SortOrder
|
|
32504
|
-
SortOrder
|
|
32505
|
-
SortOrder
|
|
32817
|
+
this.consumerSortParameters.order = this.consumerSortParameters.order === SortOrder.DESCENDING ?
|
|
32818
|
+
SortOrder.ASCENDING :
|
|
32819
|
+
SortOrder.DESCENDING;
|
|
32506
32820
|
}
|
|
32507
32821
|
this.consumerSortParameters.column = column.case_field_id;
|
|
32508
32822
|
this.consumerSortParameters.type = column.case_field_type.type;
|
|
@@ -32513,10 +32827,10 @@ class SearchResultComponent {
|
|
|
32513
32827
|
return;
|
|
32514
32828
|
}
|
|
32515
32829
|
else if (this.isSortAscending(column)) {
|
|
32516
|
-
this.sortParameters = new SortParameters(this.comparator(column), SortOrder
|
|
32830
|
+
this.sortParameters = new SortParameters(this.comparator(column), SortOrder.ASCENDING);
|
|
32517
32831
|
}
|
|
32518
32832
|
else {
|
|
32519
|
-
this.sortParameters = new SortParameters(this.comparator(column), SortOrder
|
|
32833
|
+
this.sortParameters = new SortParameters(this.comparator(column), SortOrder.DESCENDING);
|
|
32520
32834
|
}
|
|
32521
32835
|
}
|
|
32522
32836
|
}
|
|
@@ -32524,7 +32838,7 @@ class SearchResultComponent {
|
|
|
32524
32838
|
let condition = false;
|
|
32525
32839
|
if (this.consumerSortingEnabled) {
|
|
32526
32840
|
const isColumn = column.case_field_id === this.consumerSortParameters.column;
|
|
32527
|
-
const isAscending = this.consumerSortParameters.order === SortOrder
|
|
32841
|
+
const isAscending = this.consumerSortParameters.order === SortOrder.ASCENDING;
|
|
32528
32842
|
condition = !isColumn || (isColumn && isAscending);
|
|
32529
32843
|
}
|
|
32530
32844
|
else {
|
|
@@ -32558,13 +32872,13 @@ class SearchResultComponent {
|
|
|
32558
32872
|
}
|
|
32559
32873
|
isSortAscending(column) {
|
|
32560
32874
|
const currentSortOrder = this.currentSortOrder(column);
|
|
32561
|
-
return currentSortOrder === SortOrder
|
|
32875
|
+
return currentSortOrder === SortOrder.UNSORTED || currentSortOrder === SortOrder.DESCENDING;
|
|
32562
32876
|
}
|
|
32563
32877
|
currentSortOrder(column) {
|
|
32564
32878
|
let isAscending = true;
|
|
32565
32879
|
let isDescending = true;
|
|
32566
32880
|
if (this.comparator(column) === undefined) {
|
|
32567
|
-
return SortOrder
|
|
32881
|
+
return SortOrder.UNSORTED;
|
|
32568
32882
|
}
|
|
32569
32883
|
for (let i = 0; i < this.resultView.results.length - 1; i++) {
|
|
32570
32884
|
const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
|
|
@@ -32574,7 +32888,7 @@ class SearchResultComponent {
|
|
|
32574
32888
|
break;
|
|
32575
32889
|
}
|
|
32576
32890
|
}
|
|
32577
|
-
return isAscending ? SortOrder
|
|
32891
|
+
return isAscending ? SortOrder.ASCENDING : isDescending ? SortOrder.DESCENDING : SortOrder.UNSORTED;
|
|
32578
32892
|
}
|
|
32579
32893
|
getFirstResult() {
|
|
32580
32894
|
const currentPage = (this.selected.page ? this.selected.page : 1);
|
|
@@ -32970,5 +33284,5 @@ class TestRouteSnapshotBuilder {
|
|
|
32970
33284
|
* Generated bundle index. Do not edit.
|
|
32971
33285
|
*/
|
|
32972
33286
|
|
|
32973
|
-
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RetryUtil, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder
|
|
33287
|
+
export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagFieldState, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RetryUtil, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
|
|
32974
33288
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|