@hmcts/ccd-case-ui-toolkit 6.19.4 → 6.19.5-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 +418 -133
- 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-editor.module.js +2 -2
- 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 +20 -43
- 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/fesm2015/hmcts-ccd-case-ui-toolkit.js +392 -111
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- 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 +4 -8
- 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/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}`;
|
|
@@ -12734,18 +12977,17 @@ function WriteDocumentFieldComponent_ccd_read_document_field_10_Template(rf, ctx
|
|
|
12734
12977
|
} }
|
|
12735
12978
|
const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
|
|
12736
12979
|
class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
12737
|
-
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService
|
|
12980
|
+
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
|
|
12738
12981
|
super();
|
|
12739
12982
|
this.appConfig = appConfig;
|
|
12740
12983
|
this.caseNotifier = caseNotifier;
|
|
12741
12984
|
this.documentManagement = documentManagement;
|
|
12742
12985
|
this.dialog = dialog;
|
|
12743
12986
|
this.fileUploadStateService = fileUploadStateService;
|
|
12744
|
-
this.jurisdictionService = jurisdictionService;
|
|
12745
12987
|
this.valid = true;
|
|
12746
12988
|
}
|
|
12747
12989
|
clickout(event) {
|
|
12748
|
-
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
12990
|
+
// Capturing the event of of the associated ElementRef <input type="file" #fileInpu
|
|
12749
12991
|
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
12750
12992
|
this.clickInsideTheDocument = true;
|
|
12751
12993
|
}
|
|
@@ -12755,10 +12997,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12755
12997
|
}
|
|
12756
12998
|
ngOnInit() {
|
|
12757
12999
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
12758
|
-
console.info('writeDocumentField.ngInit: secure mode = ' + this.secureModeOn);
|
|
12759
|
-
if (this.secureModeOn) {
|
|
12760
|
-
this.subscribeToCaseDetails();
|
|
12761
|
-
}
|
|
12762
13000
|
this.dialogConfig = initDialog();
|
|
12763
13001
|
// EUI-3403. The field was not being registered when there was no value and the field
|
|
12764
13002
|
// itself was not mandatory, which meant that show_conditions would not be evaluated.
|
|
@@ -12771,6 +13009,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12771
13009
|
else {
|
|
12772
13010
|
this.createDocumentForm(document);
|
|
12773
13011
|
}
|
|
13012
|
+
if (this.appConfig.getDocumentSecureMode()) {
|
|
13013
|
+
this.subscribeToCaseDetails();
|
|
13014
|
+
}
|
|
12774
13015
|
}
|
|
12775
13016
|
ngOnDestroy() {
|
|
12776
13017
|
if (this.fileUploadSubscription) {
|
|
@@ -12779,11 +13020,8 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12779
13020
|
if (this.dialogSubscription) {
|
|
12780
13021
|
this.dialogSubscription.unsubscribe();
|
|
12781
13022
|
}
|
|
12782
|
-
if (this.
|
|
12783
|
-
this.
|
|
12784
|
-
}
|
|
12785
|
-
if (this.jurisdictionSubs) {
|
|
12786
|
-
this.jurisdictionSubs.unsubscribe();
|
|
13023
|
+
if (this.caseEventSubscription) {
|
|
13024
|
+
this.caseEventSubscription.unsubscribe();
|
|
12787
13025
|
}
|
|
12788
13026
|
}
|
|
12789
13027
|
isUploadInProgress() {
|
|
@@ -12834,9 +13072,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12834
13072
|
triggerReplace() {
|
|
12835
13073
|
if (this.confirmReplaceResult === 'Replace') {
|
|
12836
13074
|
this.openFileDialog();
|
|
12837
|
-
return true;
|
|
12838
13075
|
}
|
|
12839
|
-
return false;
|
|
12840
13076
|
}
|
|
12841
13077
|
getUploadedFileName() {
|
|
12842
13078
|
if (this.uploadedDocument) {
|
|
@@ -12870,29 +13106,10 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12870
13106
|
this.triggerReplace();
|
|
12871
13107
|
});
|
|
12872
13108
|
}
|
|
12873
|
-
// Depending on the context, we can get the case type and jurisdiction from different sources
|
|
12874
|
-
// If we are running an event, the caseNotifier will have the current case
|
|
12875
|
-
// If we are creating a case, the case doesn't exist yet, so the caseNotifier can't help
|
|
12876
|
-
// Instead we can use the eventTrigger to get the case type, and the jurisdiction service to
|
|
12877
|
-
// get the currently selected jurisdiction
|
|
12878
13109
|
subscribeToCaseDetails() {
|
|
12879
|
-
this.
|
|
13110
|
+
this.caseEventSubscription = this.caseNotifier.caseView.subscribe({
|
|
12880
13111
|
next: (caseDetails) => {
|
|
12881
|
-
|
|
12882
|
-
this.caseTypeId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.case_id;
|
|
12883
|
-
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;
|
|
12884
|
-
console.info(`caseNotifier.next: caseType=${this.caseTypeId} juris=${this.jurisdictionId}`);
|
|
12885
|
-
}
|
|
12886
|
-
});
|
|
12887
|
-
this.jurisdictionSubs = this.jurisdictionService.selectedJurisdictionBS.subscribe({
|
|
12888
|
-
next: (jurisdiction) => {
|
|
12889
|
-
if (jurisdiction) {
|
|
12890
|
-
this.jurisdictionId = jurisdiction.id;
|
|
12891
|
-
if (jurisdiction.currentCaseType) {
|
|
12892
|
-
this.caseTypeId = jurisdiction.currentCaseType.id;
|
|
12893
|
-
}
|
|
12894
|
-
}
|
|
12895
|
-
console.info(`selectedJurisdiction.next: caseType=${this.caseTypeId} juris=${this.jurisdictionId}`);
|
|
13112
|
+
this.caseDetails = caseDetails;
|
|
12896
13113
|
}
|
|
12897
13114
|
});
|
|
12898
13115
|
}
|
|
@@ -12956,8 +13173,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
12956
13173
|
documentUpload.append('files', selectedFile, selectedFile.name);
|
|
12957
13174
|
documentUpload.append('classification', 'PUBLIC');
|
|
12958
13175
|
if (this.appConfig.getDocumentSecureMode()) {
|
|
12959
|
-
const caseTypeId = this.
|
|
12960
|
-
|
|
13176
|
+
const caseTypeId = this.caseDetails &&
|
|
13177
|
+
this.caseDetails.case_type &&
|
|
13178
|
+
this.caseDetails.case_type.id ? this.caseDetails.case_type.id : null;
|
|
13179
|
+
const caseTypeJurisdictionId = this.caseDetails &&
|
|
13180
|
+
this.caseDetails.case_type &&
|
|
13181
|
+
this.caseDetails.case_type.jurisdiction &&
|
|
13182
|
+
this.caseDetails.case_type.jurisdiction.id ? this.caseDetails.case_type.jurisdiction.id : null;
|
|
12961
13183
|
documentUpload.append('caseTypeId', caseTypeId);
|
|
12962
13184
|
documentUpload.append('jurisdictionId', caseTypeJurisdictionId);
|
|
12963
13185
|
}
|
|
@@ -13004,7 +13226,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
|
|
|
13004
13226
|
WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
13005
13227
|
WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
13006
13228
|
WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
13007
|
-
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)
|
|
13229
|
+
WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
|
|
13008
13230
|
WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13009
13231
|
i0.ɵɵviewQuery(_c0$N, 1);
|
|
13010
13232
|
} if (rf & 2) {
|
|
@@ -13073,7 +13295,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
|
|
|
13073
13295
|
selector: 'ccd-write-document-field',
|
|
13074
13296
|
templateUrl: './write-document-field.html'
|
|
13075
13297
|
}]
|
|
13076
|
-
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatDialog }, { type: FileUploadStateService }
|
|
13298
|
+
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
|
|
13077
13299
|
type: ViewChild,
|
|
13078
13300
|
args: ['fileInput', { static: false }]
|
|
13079
13301
|
}], clickout: [{
|
|
@@ -14238,6 +14460,17 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
14238
14460
|
this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
|
|
14239
14461
|
this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
|
|
14240
14462
|
}
|
|
14463
|
+
else {
|
|
14464
|
+
// If there is no case info, attempt to get the current jurisdiction and case type via the JurisdictionService
|
|
14465
|
+
this.jurisdictionSubscription = this.jurisdictionService.selectedJurisdictionBS.subscribe((jurisdiction) => {
|
|
14466
|
+
if (jurisdiction) {
|
|
14467
|
+
this.jurisdiction = jurisdiction.id;
|
|
14468
|
+
if (jurisdiction.currentCaseType) {
|
|
14469
|
+
this.caseType = jurisdiction.currentCaseType.id;
|
|
14470
|
+
}
|
|
14471
|
+
}
|
|
14472
|
+
});
|
|
14473
|
+
}
|
|
14241
14474
|
}
|
|
14242
14475
|
displayJudicialUser(judicialUser) {
|
|
14243
14476
|
return judicialUser
|
|
@@ -14283,6 +14516,10 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
|
|
|
14283
14516
|
this.judicialUserControl.setValidators(Validators.required);
|
|
14284
14517
|
}
|
|
14285
14518
|
}
|
|
14519
|
+
ngOnDestroy() {
|
|
14520
|
+
var _a;
|
|
14521
|
+
(_a = this.jurisdictionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
14522
|
+
}
|
|
14286
14523
|
}
|
|
14287
14524
|
WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
14288
14525
|
WriteJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 17, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete", "blur"], ["autoActiveFirstOption", "", 3, "displayWith"], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", "disabled", "", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], ["disabled", "", 1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -18968,14 +19205,22 @@ CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0.ɵɵdefineComponent({ type
|
|
|
18968
19205
|
type: Output
|
|
18969
19206
|
}] }); })();
|
|
18970
19207
|
|
|
19208
|
+
var CaseFileViewSortColumns;
|
|
19209
|
+
(function (CaseFileViewSortColumns) {
|
|
19210
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_NAME"] = 0] = "DOCUMENT_NAME";
|
|
19211
|
+
CaseFileViewSortColumns[CaseFileViewSortColumns["DOCUMENT_UPLOAD_TIMESTAMP"] = 1] = "DOCUMENT_UPLOAD_TIMESTAMP";
|
|
19212
|
+
})(CaseFileViewSortColumns || (CaseFileViewSortColumns = {}));
|
|
19213
|
+
|
|
18971
19214
|
class CaseFileViewFolderSortComponent {
|
|
18972
19215
|
constructor() {
|
|
18973
19216
|
this.isOpen = false;
|
|
18974
19217
|
this.sortAscending = new EventEmitter();
|
|
18975
19218
|
this.sortDescending = new EventEmitter();
|
|
18976
19219
|
this.overlayMenuItems = [
|
|
18977
|
-
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit() },
|
|
18978
|
-
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit() },
|
|
19220
|
+
{ actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
19221
|
+
{ actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_NAME) },
|
|
19222
|
+
{ actionText: 'Recent first', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: () => this.sortDescending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) },
|
|
19223
|
+
{ actionText: 'Oldest first', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: () => this.sortAscending.emit(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) },
|
|
18979
19224
|
];
|
|
18980
19225
|
}
|
|
18981
19226
|
}
|
|
@@ -19038,48 +19283,54 @@ class DocumentTreeNode {
|
|
|
19038
19283
|
};
|
|
19039
19284
|
return countChildren(this.children);
|
|
19040
19285
|
}
|
|
19041
|
-
sortChildrenAscending() {
|
|
19286
|
+
sortChildrenAscending(column, sortOrder) {
|
|
19042
19287
|
var _a, _b;
|
|
19043
19288
|
const sortAscending = () => {
|
|
19044
19289
|
return (a, b) => {
|
|
19045
|
-
const
|
|
19046
|
-
const
|
|
19290
|
+
const nodeA = this.getNodeToSort(a, column, sortOrder);
|
|
19291
|
+
const nodeB = this.getNodeToSort(b, column, sortOrder);
|
|
19047
19292
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
19048
19293
|
return 0;
|
|
19049
19294
|
}
|
|
19050
|
-
if (
|
|
19295
|
+
if (!nodeA || !nodeB) {
|
|
19296
|
+
return 0;
|
|
19297
|
+
}
|
|
19298
|
+
if (nodeA < nodeB) {
|
|
19051
19299
|
return -1;
|
|
19052
19300
|
}
|
|
19053
|
-
if (
|
|
19301
|
+
if (nodeA > nodeB) {
|
|
19054
19302
|
return 1;
|
|
19055
19303
|
}
|
|
19056
19304
|
};
|
|
19057
19305
|
};
|
|
19058
19306
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
|
|
19059
19307
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
19060
|
-
childNodes.sortChildrenAscending();
|
|
19308
|
+
childNodes.sortChildrenAscending(column, sortOrder);
|
|
19061
19309
|
});
|
|
19062
19310
|
}
|
|
19063
|
-
sortChildrenDescending() {
|
|
19311
|
+
sortChildrenDescending(column, sortOrder) {
|
|
19064
19312
|
var _a, _b;
|
|
19065
19313
|
const sortDescending = () => {
|
|
19066
19314
|
return (a, b) => {
|
|
19067
|
-
const
|
|
19068
|
-
const
|
|
19315
|
+
const nodeA = this.getNodeToSort(a, column, sortOrder);
|
|
19316
|
+
const nodeB = this.getNodeToSort(b, column, sortOrder);
|
|
19069
19317
|
if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
|
|
19070
19318
|
return 0;
|
|
19071
19319
|
}
|
|
19072
|
-
if (
|
|
19320
|
+
if (!nodeA || !nodeB) {
|
|
19321
|
+
return 0;
|
|
19322
|
+
}
|
|
19323
|
+
if (nodeA > nodeB) {
|
|
19073
19324
|
return -1;
|
|
19074
19325
|
}
|
|
19075
|
-
if (
|
|
19326
|
+
if (nodeA < nodeB) {
|
|
19076
19327
|
return 1;
|
|
19077
19328
|
}
|
|
19078
19329
|
};
|
|
19079
19330
|
};
|
|
19080
19331
|
(_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
|
|
19081
19332
|
(_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach((childNodes) => {
|
|
19082
|
-
childNodes.sortChildrenDescending();
|
|
19333
|
+
childNodes.sortChildrenDescending(column, sortOrder);
|
|
19083
19334
|
});
|
|
19084
19335
|
}
|
|
19085
19336
|
get flattenedAll() {
|
|
@@ -19102,6 +19353,24 @@ class DocumentTreeNode {
|
|
|
19102
19353
|
}).flat()
|
|
19103
19354
|
];
|
|
19104
19355
|
}
|
|
19356
|
+
getNodeToSort(node, column, sortOrder) {
|
|
19357
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_NAME) {
|
|
19358
|
+
return (node === null || node === void 0 ? void 0 : node.name) ? node.name.toUpperCase()
|
|
19359
|
+
: '';
|
|
19360
|
+
}
|
|
19361
|
+
if (column === CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP) {
|
|
19362
|
+
if (node === null || node === void 0 ? void 0 : node.upload_timestamp) {
|
|
19363
|
+
return new Date(node.upload_timestamp);
|
|
19364
|
+
}
|
|
19365
|
+
if (sortOrder === SortOrder.ASCENDING) {
|
|
19366
|
+
return new Date(9999, 12, 31);
|
|
19367
|
+
}
|
|
19368
|
+
if (sortOrder === SortOrder.DESCENDING) {
|
|
19369
|
+
return new Date(1111, 1, 1);
|
|
19370
|
+
}
|
|
19371
|
+
}
|
|
19372
|
+
return '';
|
|
19373
|
+
}
|
|
19105
19374
|
}
|
|
19106
19375
|
__decorate([
|
|
19107
19376
|
Type(() => DocumentTreeNode),
|
|
@@ -19128,10 +19397,14 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
19128
19397
|
i0.ɵɵelementEnd();
|
|
19129
19398
|
i0.ɵɵelementStart(4, "span", 16);
|
|
19130
19399
|
i0.ɵɵtext(5);
|
|
19400
|
+
i0.ɵɵelement(6, "br");
|
|
19401
|
+
i0.ɵɵelementStart(7, "span", 17);
|
|
19402
|
+
i0.ɵɵtext(8);
|
|
19403
|
+
i0.ɵɵelementEnd();
|
|
19131
19404
|
i0.ɵɵelementEnd();
|
|
19132
|
-
i0.ɵɵelementStart(
|
|
19133
|
-
i0.ɵɵelementStart(
|
|
19134
|
-
i0.ɵɵlistener("changeFolderAction", function
|
|
19405
|
+
i0.ɵɵelementStart(9, "div", 18);
|
|
19406
|
+
i0.ɵɵelementStart(10, "ccd-case-file-view-folder-document-actions", 19);
|
|
19407
|
+
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); });
|
|
19135
19408
|
i0.ɵɵelementEnd();
|
|
19136
19409
|
i0.ɵɵelementEnd();
|
|
19137
19410
|
i0.ɵɵelementEnd();
|
|
@@ -19142,25 +19415,27 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
19142
19415
|
i0.ɵɵadvance(1);
|
|
19143
19416
|
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
|
|
19144
19417
|
i0.ɵɵadvance(4);
|
|
19145
|
-
i0.ɵɵ
|
|
19418
|
+
i0.ɵɵtextInterpolate1(" ", node_r4.name, " ");
|
|
19419
|
+
i0.ɵɵadvance(3);
|
|
19420
|
+
i0.ɵɵtextInterpolate(node_r4.upload_timestamp);
|
|
19146
19421
|
i0.ɵɵadvance(2);
|
|
19147
19422
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
19148
19423
|
} }
|
|
19149
19424
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
19150
|
-
i0.ɵɵelementStart(0, "cdk-nested-tree-node",
|
|
19151
|
-
i0.ɵɵelementStart(1, "button",
|
|
19152
|
-
i0.ɵɵelementStart(2, "div",
|
|
19153
|
-
i0.ɵɵelement(3, "img",
|
|
19154
|
-
i0.ɵɵelementStart(4, "span",
|
|
19425
|
+
i0.ɵɵelementStart(0, "cdk-nested-tree-node", 20);
|
|
19426
|
+
i0.ɵɵelementStart(1, "button", 21);
|
|
19427
|
+
i0.ɵɵelementStart(2, "div", 22);
|
|
19428
|
+
i0.ɵɵelement(3, "img", 23);
|
|
19429
|
+
i0.ɵɵelementStart(4, "span", 24);
|
|
19155
19430
|
i0.ɵɵtext(5);
|
|
19156
19431
|
i0.ɵɵelementEnd();
|
|
19157
19432
|
i0.ɵɵelementEnd();
|
|
19158
|
-
i0.ɵɵelementStart(6, "span",
|
|
19433
|
+
i0.ɵɵelementStart(6, "span", 25);
|
|
19159
19434
|
i0.ɵɵtext(7);
|
|
19160
19435
|
i0.ɵɵelementEnd();
|
|
19161
19436
|
i0.ɵɵelementEnd();
|
|
19162
19437
|
i0.ɵɵelementStart(8, "div");
|
|
19163
|
-
i0.ɵɵelementContainer(9,
|
|
19438
|
+
i0.ɵɵelementContainer(9, 26);
|
|
19164
19439
|
i0.ɵɵelementEnd();
|
|
19165
19440
|
i0.ɵɵelementEnd();
|
|
19166
19441
|
} if (rf & 2) {
|
|
@@ -19182,7 +19457,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
19182
19457
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
19183
19458
|
i0.ɵɵelementStart(2, "div");
|
|
19184
19459
|
i0.ɵɵelementStart(3, "cdk-tree", 9);
|
|
19185
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
19460
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 11, 5, "cdk-nested-tree-node", 10);
|
|
19186
19461
|
i0.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
19187
19462
|
i0.ɵɵelementEnd();
|
|
19188
19463
|
i0.ɵɵelementEnd();
|
|
@@ -19270,6 +19545,7 @@ class CaseFileViewFolderComponent {
|
|
|
19270
19545
|
documentTreeNode.document_filename = document.document_filename;
|
|
19271
19546
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19272
19547
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
19548
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
19273
19549
|
documentsToReturn.push(documentTreeNode);
|
|
19274
19550
|
});
|
|
19275
19551
|
return documentsToReturn;
|
|
@@ -19283,6 +19559,7 @@ class CaseFileViewFolderComponent {
|
|
|
19283
19559
|
documentTreeNode.document_filename = document.document_filename;
|
|
19284
19560
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
19285
19561
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
19562
|
+
documentTreeNode.upload_timestamp = document.upload_timestamp ? moment(document.upload_timestamp).format('DD MMM YYYY') : '';
|
|
19286
19563
|
documents.push(documentTreeNode);
|
|
19287
19564
|
});
|
|
19288
19565
|
const uncategorisedNode = new DocumentTreeNode();
|
|
@@ -19337,16 +19614,16 @@ class CaseFileViewFolderComponent {
|
|
|
19337
19614
|
return;
|
|
19338
19615
|
}
|
|
19339
19616
|
}
|
|
19340
|
-
|
|
19617
|
+
sortDataSourceAscending(column) {
|
|
19341
19618
|
const sortedData = this.nestedDataSource.map(item => {
|
|
19342
|
-
item.sortChildrenAscending();
|
|
19619
|
+
item.sortChildrenAscending(column, SortOrder.ASCENDING);
|
|
19343
19620
|
return item;
|
|
19344
19621
|
});
|
|
19345
19622
|
this.updateNodeData(sortedData);
|
|
19346
19623
|
}
|
|
19347
|
-
|
|
19624
|
+
sortDataSourceDescending(column) {
|
|
19348
19625
|
const sortedData = this.nestedDataSource.map(item => {
|
|
19349
|
-
item.sortChildrenDescending();
|
|
19626
|
+
item.sortChildrenDescending(column, SortOrder.DESCENDING);
|
|
19350
19627
|
return item;
|
|
19351
19628
|
});
|
|
19352
19629
|
this.updateNodeData(sortedData);
|
|
@@ -19404,7 +19681,7 @@ CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised docum
|
|
|
19404
19681
|
CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
|
|
19405
19682
|
CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
|
|
19406
19683
|
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)); };
|
|
19407
|
-
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) {
|
|
19684
|
+
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) {
|
|
19408
19685
|
i0.ɵɵelementStart(0, "div", 0);
|
|
19409
19686
|
i0.ɵɵelementStart(1, "div", 1);
|
|
19410
19687
|
i0.ɵɵelement(2, "input", 2);
|
|
@@ -19416,7 +19693,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
19416
19693
|
i0.ɵɵelementEnd();
|
|
19417
19694
|
i0.ɵɵelementStart(6, "div");
|
|
19418
19695
|
i0.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
|
|
19419
|
-
i0.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.
|
|
19696
|
+
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); });
|
|
19420
19697
|
i0.ɵɵelementEnd();
|
|
19421
19698
|
i0.ɵɵelementEnd();
|
|
19422
19699
|
i0.ɵɵelementEnd();
|
|
@@ -19428,7 +19705,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
|
|
|
19428
19705
|
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
19429
19706
|
i0.ɵɵadvance(3);
|
|
19430
19707
|
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
19431
|
-
} }, 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:
|
|
19708
|
+
} }, 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}"] });
|
|
19432
19709
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
19433
19710
|
type: Component,
|
|
19434
19711
|
args: [{
|
|
@@ -21149,13 +21426,6 @@ const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
|
|
|
21149
21426
|
type: Input
|
|
21150
21427
|
}] }); })();
|
|
21151
21428
|
|
|
21152
|
-
var SortOrder;
|
|
21153
|
-
(function (SortOrder) {
|
|
21154
|
-
SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
|
|
21155
|
-
SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
|
|
21156
|
-
SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
|
|
21157
|
-
})(SortOrder || (SortOrder = {}));
|
|
21158
|
-
|
|
21159
21429
|
function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
21160
21430
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21161
21431
|
i0.ɵɵelementStart(0, "th", 6);
|
|
@@ -26004,9 +26274,20 @@ class WorkbasketFiltersComponent {
|
|
|
26004
26274
|
if (init) {
|
|
26005
26275
|
this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
|
|
26006
26276
|
if (Object.keys(this.formGroup.controls).length > 0) {
|
|
26277
|
+
// Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
|
|
26278
|
+
// FormGroup value because these values are not intended to be stored and subsequently passed as query string
|
|
26279
|
+
// parameters when calling searchCases API endpoint
|
|
26280
|
+
const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
|
|
26281
|
+
judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
|
|
26007
26282
|
this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
|
|
26008
26283
|
}
|
|
26009
26284
|
}
|
|
26285
|
+
// Announce selected jurisdiction via JurisdictionService
|
|
26286
|
+
if (this.selected.jurisdiction) {
|
|
26287
|
+
// Set the selected case type as the current case type of the selected jurisdiction
|
|
26288
|
+
this.selected.jurisdiction.currentCaseType = this.selected.caseType;
|
|
26289
|
+
this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
|
|
26290
|
+
}
|
|
26010
26291
|
// Apply filters
|
|
26011
26292
|
this.onApply.emit({ selected: this.selected, queryParams });
|
|
26012
26293
|
this.setFocusToTop();
|
|
@@ -32482,12 +32763,12 @@ class SearchResultComponent {
|
|
|
32482
32763
|
sort(column) {
|
|
32483
32764
|
if (this.consumerSortingEnabled) {
|
|
32484
32765
|
if (column.case_field_id !== this.consumerSortParameters.column) {
|
|
32485
|
-
this.consumerSortParameters.order = SortOrder
|
|
32766
|
+
this.consumerSortParameters.order = SortOrder.DESCENDING;
|
|
32486
32767
|
}
|
|
32487
32768
|
else {
|
|
32488
|
-
this.consumerSortParameters.order = this.consumerSortParameters.order === SortOrder
|
|
32489
|
-
SortOrder
|
|
32490
|
-
SortOrder
|
|
32769
|
+
this.consumerSortParameters.order = this.consumerSortParameters.order === SortOrder.DESCENDING ?
|
|
32770
|
+
SortOrder.ASCENDING :
|
|
32771
|
+
SortOrder.DESCENDING;
|
|
32491
32772
|
}
|
|
32492
32773
|
this.consumerSortParameters.column = column.case_field_id;
|
|
32493
32774
|
this.consumerSortParameters.type = column.case_field_type.type;
|
|
@@ -32498,10 +32779,10 @@ class SearchResultComponent {
|
|
|
32498
32779
|
return;
|
|
32499
32780
|
}
|
|
32500
32781
|
else if (this.isSortAscending(column)) {
|
|
32501
|
-
this.sortParameters = new SortParameters(this.comparator(column), SortOrder
|
|
32782
|
+
this.sortParameters = new SortParameters(this.comparator(column), SortOrder.ASCENDING);
|
|
32502
32783
|
}
|
|
32503
32784
|
else {
|
|
32504
|
-
this.sortParameters = new SortParameters(this.comparator(column), SortOrder
|
|
32785
|
+
this.sortParameters = new SortParameters(this.comparator(column), SortOrder.DESCENDING);
|
|
32505
32786
|
}
|
|
32506
32787
|
}
|
|
32507
32788
|
}
|
|
@@ -32509,7 +32790,7 @@ class SearchResultComponent {
|
|
|
32509
32790
|
let condition = false;
|
|
32510
32791
|
if (this.consumerSortingEnabled) {
|
|
32511
32792
|
const isColumn = column.case_field_id === this.consumerSortParameters.column;
|
|
32512
|
-
const isAscending = this.consumerSortParameters.order === SortOrder
|
|
32793
|
+
const isAscending = this.consumerSortParameters.order === SortOrder.ASCENDING;
|
|
32513
32794
|
condition = !isColumn || (isColumn && isAscending);
|
|
32514
32795
|
}
|
|
32515
32796
|
else {
|
|
@@ -32543,13 +32824,13 @@ class SearchResultComponent {
|
|
|
32543
32824
|
}
|
|
32544
32825
|
isSortAscending(column) {
|
|
32545
32826
|
const currentSortOrder = this.currentSortOrder(column);
|
|
32546
|
-
return currentSortOrder === SortOrder
|
|
32827
|
+
return currentSortOrder === SortOrder.UNSORTED || currentSortOrder === SortOrder.DESCENDING;
|
|
32547
32828
|
}
|
|
32548
32829
|
currentSortOrder(column) {
|
|
32549
32830
|
let isAscending = true;
|
|
32550
32831
|
let isDescending = true;
|
|
32551
32832
|
if (this.comparator(column) === undefined) {
|
|
32552
|
-
return SortOrder
|
|
32833
|
+
return SortOrder.UNSORTED;
|
|
32553
32834
|
}
|
|
32554
32835
|
for (let i = 0; i < this.resultView.results.length - 1; i++) {
|
|
32555
32836
|
const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
|
|
@@ -32559,7 +32840,7 @@ class SearchResultComponent {
|
|
|
32559
32840
|
break;
|
|
32560
32841
|
}
|
|
32561
32842
|
}
|
|
32562
|
-
return isAscending ? SortOrder
|
|
32843
|
+
return isAscending ? SortOrder.ASCENDING : isDescending ? SortOrder.DESCENDING : SortOrder.UNSORTED;
|
|
32563
32844
|
}
|
|
32564
32845
|
getFirstResult() {
|
|
32565
32846
|
const currentPage = (this.selected.page ? this.selected.page : 1);
|
|
@@ -32955,5 +33236,5 @@ class TestRouteSnapshotBuilder {
|
|
|
32955
33236
|
* Generated bundle index. Do not edit.
|
|
32956
33237
|
*/
|
|
32957
33238
|
|
|
32958
|
-
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
|
|
33239
|
+
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 };
|
|
32959
33240
|
//# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map
|