@hmcts/ccd-case-ui-toolkit 7.0.42-submitting-false-task-completion → 7.0.43-accessibility-table-fixed
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/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +6 -38
- package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +4 -3
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +76 -86
- package/esm2022/lib/shared/domain/work-allocation/Task.mjs +1 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +82 -123
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +0 -1
- package/lib/shared/components/case-editor/case-edit/case-edit.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.map +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
- package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
- package/lib/shared/domain/work-allocation/Task.d.ts +0 -4
- package/lib/shared/domain/work-allocation/Task.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -18,4 +18,4 @@ export var TaskState;
|
|
|
18
18
|
TaskState["Terminated"] = "TERMINATED";
|
|
19
19
|
TaskState["PendingReConfiguration"] = "PENDING_RECONFIGURATION";
|
|
20
20
|
})(TaskState || (TaskState = {}));
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVGFzay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NjZC1jYXNlLXVpLXRvb2xraXQvc3JjL2xpYi9zaGFyZWQvZG9tYWluL3dvcmstYWxsb2NhdGlvbi9UYXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTRCQSxNQUFNLENBQU4sSUFBWSxXQU1YO0FBTkQsV0FBWSxXQUFXO0lBQ3JCLDBCQUFVLENBQUE7SUFDVixrQ0FBa0IsQ0FBQTtJQUNsQiw0QkFBWSxDQUFBO0lBQ1osZ0NBQWdCLENBQUE7SUFDaEIsZ0NBQWdCLENBQUE7QUFDbEIsQ0FBQyxFQU5XLFdBQVcsS0FBWCxXQUFXLFFBTXRCO0FBRUQsTUFBTSxDQUFOLElBQVksU0FVWDtBQVZELFdBQVksU0FBUztJQUNuQiwwQ0FBNkIsQ0FBQTtJQUM3QixzREFBeUMsQ0FBQTtJQUN6QyxrQ0FBcUIsQ0FBQTtJQUNyQixzQ0FBeUIsQ0FBQTtJQUN6QixzQ0FBeUIsQ0FBQTtJQUN6QixvQ0FBdUIsQ0FBQTtJQUN2QixvQ0FBdUIsQ0FBQTtJQUN2QixzQ0FBeUIsQ0FBQTtJQUN6QiwrREFBa0QsQ0FBQTtBQUNwRCxDQUFDLEVBVlcsU0FBUyxLQUFULFNBQVMsUUFVcEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFRhc2sge1xuICBhc3NpZ25lZT86IHN0cmluZztcbiAgYXV0b19hc3NpZ25lZD86IGJvb2xlYW47XG4gIGNhc2VfY2F0ZWdvcnk6IHN0cmluZztcbiAgY2FzZV9pZDogc3RyaW5nO1xuICBjYXNlX21hbmFnZW1lbnRfY2F0ZWdvcnk/OiBzdHJpbmc7XG4gIGNhc2VfbmFtZT86IHN0cmluZztcbiAgY2FzZV90eXBlX2lkPzogc3RyaW5nO1xuICBjcmVhdGVkX2RhdGU6IHN0cmluZztcbiAgZHVlX2RhdGU/OiBzdHJpbmc7XG4gIGV4ZWN1dGlvbl90eXBlPzogc3RyaW5nO1xuICBpZDogc3RyaW5nO1xuICBqdXJpc2RpY3Rpb246IHN0cmluZztcbiAgbG9jYXRpb24/OiBzdHJpbmc7XG4gIGxvY2F0aW9uX25hbWU/OiBzdHJpbmc7XG4gIG5hbWU/OiBzdHJpbmc7XG4gIHBlcm1pc3Npb25zOiB7IHZhbHVlczogUGVybWlzc2lvbnNbXX07XG4gIHJlZ2lvbj86IHN0cmluZztcbiAgc2VjdXJpdHlfY2xhc3NpZmljYXRpb24/OiBzdHJpbmc7XG4gIHRhc2tfc3RhdGU/OiBzdHJpbmc7XG4gIHRhc2tfc3lzdGVtPzogc3RyaW5nO1xuICB0YXNrX3RpdGxlPzogc3RyaW5nO1xuICB0eXBlPzogc3RyaW5nO1xuICB3YXJuaW5nX2xpc3Q/OiB7IHZhbHVlczogc3RyaW5nW119O1xuICB3YXJuaW5ncz86IHRydWU7XG4gIHdvcmtfdHlwZV9pZD86IHN0cmluZztcbn1cblxuZXhwb3J0IGVudW0gUGVybWlzc2lvbnMge1xuICBPd249ICdPV04nLFxuICBFeGVjdXRlPSAnRVhFQ1VURScsXG4gIFJlYWQ9ICdSRUFEJyxcbiAgTWFuYWdlPSAnTUFOQUdFJyxcbiAgQ2FuY2VsPSAnQ0FOQ0VMJyxcbn1cblxuZXhwb3J0IGVudW0gVGFza1N0YXRlIHtcbiAgVW5Db25maWd1cmVkID0gJ1VOQ09ORklHVVJFRCcsXG4gIFBlbmRpbmdBdXRvQXNzaWduID0gJ1BFTkRJTkdfQVVUT19BU1NJR04nLFxuICBBc3NpZ25lZCA9ICdBU1NJR05FRCcsXG4gIENvbmZpZ3VyZWQgPSAnQ09ORklHVVJFRCcsXG4gIFVuYXNzaWduZWQgPSAnVU5BU1NJR05FRCcsXG4gIENvbXBsZXRlZCA9ICdDT01QTEVURUQnLFxuICBDYW5jZWxsZWQgPSAnQ0FOQ0VMTEVEJyxcbiAgVGVybWluYXRlZCA9ICdURVJNSU5BVEVEJyxcbiAgUGVuZGluZ1JlQ29uZmlndXJhdGlvbiA9ICdQRU5ESU5HX1JFQ09ORklHVVJBVElPTidcbn1cbiJdfQ==
|
|
@@ -9326,27 +9326,17 @@ class CaseEditComponent {
|
|
|
9326
9326
|
// We have to run the event completion checks if task in session storage
|
|
9327
9327
|
// and if the task is in session storage, then is it associated to the case
|
|
9328
9328
|
let taskInSessionStorage;
|
|
9329
|
-
let taskEventInSessionStorage;
|
|
9330
9329
|
const taskStr = this.sessionStorageService.getItem('taskToComplete');
|
|
9331
|
-
const taskEventStr = this.sessionStorageService.getItem('taskEvent');
|
|
9332
9330
|
if (taskStr) {
|
|
9333
9331
|
taskInSessionStorage = JSON.parse(taskStr);
|
|
9334
9332
|
}
|
|
9335
|
-
if (
|
|
9336
|
-
taskEventInSessionStorage = JSON.parse(taskEventStr);
|
|
9337
|
-
}
|
|
9338
|
-
const eventId = this.getEventId(form);
|
|
9339
|
-
const caseId = this.getCaseId(caseDetails);
|
|
9340
|
-
if (this.taskExistsForThisEventAndCase(taskInSessionStorage, taskEventInSessionStorage, eventId, caseId)) {
|
|
9333
|
+
if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId(caseDetails)) {
|
|
9341
9334
|
// Show event completion component to perform event completion checks
|
|
9342
9335
|
this.eventCompletionParams = ({
|
|
9343
|
-
caseId,
|
|
9344
|
-
eventId,
|
|
9336
|
+
caseId: this.getCaseId(caseDetails),
|
|
9337
|
+
eventId: this.getEventId(form),
|
|
9345
9338
|
task: taskInSessionStorage
|
|
9346
9339
|
});
|
|
9347
|
-
// add taskEvent to link current event with task id
|
|
9348
|
-
const taskEvent = { eventId, taskId: taskInSessionStorage.id };
|
|
9349
|
-
this.sessionStorageService.setItem('taskEvent', JSON.stringify(taskEvent));
|
|
9350
9340
|
this.isEventCompletionChecksRequired = true;
|
|
9351
9341
|
}
|
|
9352
9342
|
else {
|
|
@@ -9511,10 +9501,6 @@ class CaseEditComponent {
|
|
|
9511
9501
|
return this.postCompleteTaskIfRequired();
|
|
9512
9502
|
}), finalize(() => {
|
|
9513
9503
|
this.loadingService.unregister(loadingSpinnerToken);
|
|
9514
|
-
// on event completion ensure the previous event taskToComplete/taskEvent removed
|
|
9515
|
-
this.sessionStorageService.removeItem('taskToComplete');
|
|
9516
|
-
this.sessionStorageService.removeItem('taskEvent');
|
|
9517
|
-
this.isSubmitting = false;
|
|
9518
9504
|
}))
|
|
9519
9505
|
.subscribe(() => {
|
|
9520
9506
|
this.finishEventCompletionLogic(eventResponse);
|
|
@@ -9528,6 +9514,7 @@ class CaseEditComponent {
|
|
|
9528
9514
|
this.formErrorService
|
|
9529
9515
|
.mapFieldErrors(this.error.details.field_errors, form.controls['data'], 'validation');
|
|
9530
9516
|
}
|
|
9517
|
+
this.isSubmitting = false;
|
|
9531
9518
|
}
|
|
9532
9519
|
else {
|
|
9533
9520
|
this.sessionStorageService.setItem('taskCompletionError', 'true');
|
|
@@ -9572,25 +9559,6 @@ class CaseEditComponent {
|
|
|
9572
9559
|
return null;
|
|
9573
9560
|
}
|
|
9574
9561
|
}
|
|
9575
|
-
// checks whether current taskToComplete relevant for the event
|
|
9576
|
-
taskExistsForThisEventAndCase(taskInSessionStorage, taskEvent, eventId, caseId) {
|
|
9577
|
-
if (!taskInSessionStorage || taskInSessionStorage.case_id !== caseId) {
|
|
9578
|
-
return false;
|
|
9579
|
-
}
|
|
9580
|
-
if (!taskEvent) {
|
|
9581
|
-
// if no task event present then there is no task to complete from previous event present
|
|
9582
|
-
return true;
|
|
9583
|
-
}
|
|
9584
|
-
else {
|
|
9585
|
-
if (taskEvent.taskId === taskInSessionStorage.id && taskEvent.eventId !== eventId) {
|
|
9586
|
-
// if the session storage not related to event, ignore it and remove
|
|
9587
|
-
this.sessionStorageService.removeItem('taskToComplete');
|
|
9588
|
-
this.sessionStorageService.removeItem('taskEvent');
|
|
9589
|
-
return false;
|
|
9590
|
-
}
|
|
9591
|
-
return true;
|
|
9592
|
-
}
|
|
9593
|
-
}
|
|
9594
9562
|
onEventCanBeCompleted({ eventTrigger, eventCanBeCompleted, caseDetails, form, submit }) {
|
|
9595
9563
|
if (eventCanBeCompleted) {
|
|
9596
9564
|
// Submit
|
|
@@ -10457,6 +10425,7 @@ class CaseEditPageComponent {
|
|
|
10457
10425
|
}
|
|
10458
10426
|
submit() {
|
|
10459
10427
|
this.caseEditDataService.clearFormValidationErrors();
|
|
10428
|
+
console.log('Page submit event fired!');
|
|
10460
10429
|
if (this.currentPageIsNotValid()) {
|
|
10461
10430
|
// The generateErrorMessage method filters out the hidden fields.
|
|
10462
10431
|
// The error message for LinkedCases journey will never get displayed because the
|
|
@@ -10482,7 +10451,6 @@ class CaseEditPageComponent {
|
|
|
10482
10451
|
this.validateSub = this.caseEdit.validate(caseEventData, this.currentPage.id)
|
|
10483
10452
|
.pipe(finalize(() => {
|
|
10484
10453
|
this.loadingService.unregister(loadingSpinnerToken);
|
|
10485
|
-
this.caseEdit.isSubmitting = false;
|
|
10486
10454
|
}))
|
|
10487
10455
|
.subscribe((jsonData) => {
|
|
10488
10456
|
/* istanbul ignore else */
|
|
@@ -22505,6 +22473,7 @@ class CaseFileViewFolderComponent {
|
|
|
22505
22473
|
// Initialise cdk tree with generated data
|
|
22506
22474
|
this.nestedDataSource = this.documentTreeData;
|
|
22507
22475
|
this.nestedTreeControl.dataNodes = this.documentTreeData;
|
|
22476
|
+
this.sortDataSourceDescending(CaseFileViewSortColumns.DOCUMENT_UPLOAD_TIMESTAMP);
|
|
22508
22477
|
});
|
|
22509
22478
|
}
|
|
22510
22479
|
generateTreeData(categories) {
|
|
@@ -22693,7 +22662,7 @@ class CaseFileViewFolderComponent {
|
|
|
22693
22662
|
}], moveDocument: [{
|
|
22694
22663
|
type: Output
|
|
22695
22664
|
}] }); })();
|
|
22696
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber:
|
|
22665
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
|
|
22697
22666
|
|
|
22698
22667
|
const _c0$s = a0 => ({ "form-group-error": a0 });
|
|
22699
22668
|
function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -36111,43 +36080,45 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
36111
36080
|
} }
|
|
36112
36081
|
function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
36113
36082
|
i0.ɵɵelementStart(0, "div", 16);
|
|
36114
|
-
i0.ɵɵ
|
|
36115
|
-
i0.ɵɵ
|
|
36116
|
-
i0.ɵɵ
|
|
36117
|
-
i0.ɵɵ
|
|
36118
|
-
i0.ɵɵ
|
|
36119
|
-
i0.ɵɵ
|
|
36120
|
-
i0.ɵɵelementEnd();
|
|
36083
|
+
i0.ɵɵelement(1, "output");
|
|
36084
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36085
|
+
i0.ɵɵelementStart(3, "span", 17);
|
|
36086
|
+
i0.ɵɵtext(4);
|
|
36087
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
36088
|
+
i0.ɵɵelementStart(6, "span", 18);
|
|
36121
36089
|
i0.ɵɵtext(7);
|
|
36122
|
-
i0.ɵɵpipe(8, "rpxTranslate");
|
|
36123
|
-
i0.ɵɵelementStart(9, "span", 18);
|
|
36124
|
-
i0.ɵɵtext(10);
|
|
36125
36090
|
i0.ɵɵelementEnd();
|
|
36091
|
+
i0.ɵɵtext(8);
|
|
36092
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
36093
|
+
i0.ɵɵelementStart(10, "span", 18);
|
|
36126
36094
|
i0.ɵɵtext(11);
|
|
36127
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
36128
|
-
i0.ɵɵelementStart(13, "span", 18);
|
|
36129
|
-
i0.ɵɵtext(14);
|
|
36130
36095
|
i0.ɵɵelementEnd();
|
|
36096
|
+
i0.ɵɵtext(12);
|
|
36097
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
36098
|
+
i0.ɵɵelementStart(14, "span", 18);
|
|
36131
36099
|
i0.ɵɵtext(15);
|
|
36132
|
-
i0.ɵɵ
|
|
36100
|
+
i0.ɵɵelementEnd();
|
|
36101
|
+
i0.ɵɵtext(16);
|
|
36102
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
36133
36103
|
i0.ɵɵelementEnd()();
|
|
36134
36104
|
} if (rf & 2) {
|
|
36135
36105
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36136
|
-
i0.ɵɵ
|
|
36106
|
+
i0.ɵɵadvance();
|
|
36107
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r0.getTotalResults() + " results have been found"));
|
|
36137
36108
|
i0.ɵɵadvance(3);
|
|
36138
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
36109
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
36139
36110
|
i0.ɵɵadvance(3);
|
|
36140
36111
|
i0.ɵɵtextInterpolate(ctx_r0.getFirstResult());
|
|
36141
36112
|
i0.ɵɵadvance();
|
|
36142
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36113
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, "to"), " ");
|
|
36143
36114
|
i0.ɵɵadvance(3);
|
|
36144
36115
|
i0.ɵɵtextInterpolate(ctx_r0.getLastResult());
|
|
36145
36116
|
i0.ɵɵadvance();
|
|
36146
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36117
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 14, "of"), " ");
|
|
36147
36118
|
i0.ɵɵadvance(3);
|
|
36148
36119
|
i0.ɵɵtextInterpolate(ctx_r0.getTotalResults());
|
|
36149
36120
|
i0.ɵɵadvance();
|
|
36150
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36121
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "results"), "");
|
|
36151
36122
|
} }
|
|
36152
36123
|
function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
36153
36124
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -36175,10 +36146,10 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
36175
36146
|
i0.ɵɵadvance(2);
|
|
36176
36147
|
i0.ɵɵproperty("checked", ctx_r0.allOnPageSelected())("disabled", !ctx_r0.canAnyBeShared());
|
|
36177
36148
|
} }
|
|
36178
|
-
function
|
|
36149
|
+
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
36179
36150
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
36180
36151
|
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
36181
|
-
i0.ɵɵlistener("click", function
|
|
36152
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
|
|
36182
36153
|
i0.ɵɵelementEnd()();
|
|
36183
36154
|
} if (rf & 2) {
|
|
36184
36155
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36188,34 +36159,33 @@ function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) { if (rf &
|
|
|
36188
36159
|
} }
|
|
36189
36160
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
36190
36161
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
36191
|
-
i0.ɵɵelementStart(0, "th")(1, "
|
|
36192
|
-
i0.ɵɵ
|
|
36193
|
-
i0.ɵɵ
|
|
36194
|
-
i0.ɵɵ
|
|
36195
|
-
i0.ɵɵtext(6);
|
|
36196
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
36162
|
+
i0.ɵɵelementStart(0, "th", 25)(1, "div")(2, "div", 26);
|
|
36163
|
+
i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_2_listener() { const col_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); })("keyup", function SearchResultComponent_table_0_th_11_Template_div_keyup_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.noop()); });
|
|
36164
|
+
i0.ɵɵtext(3);
|
|
36165
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36197
36166
|
i0.ɵɵelementEnd();
|
|
36198
|
-
i0.ɵɵtemplate(
|
|
36199
|
-
i0.ɵɵelementEnd()()
|
|
36167
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 27);
|
|
36168
|
+
i0.ɵɵelementEnd()();
|
|
36200
36169
|
} if (rf & 2) {
|
|
36201
36170
|
const col_r5 = ctx.$implicit;
|
|
36202
36171
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36203
|
-
i0.ɵɵ
|
|
36204
|
-
i0.ɵɵ
|
|
36205
|
-
i0.ɵɵ
|
|
36206
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r5.label), " ");
|
|
36172
|
+
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
36173
|
+
i0.ɵɵadvance(3);
|
|
36174
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
36207
36175
|
i0.ɵɵadvance(2);
|
|
36208
36176
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
36209
36177
|
} }
|
|
36210
36178
|
function SearchResultComponent_table_0_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
36211
|
-
i0.ɵɵ
|
|
36179
|
+
i0.ɵɵelementStart(0, "th", 30);
|
|
36180
|
+
i0.ɵɵtext(1, "\u200B");
|
|
36181
|
+
i0.ɵɵelementEnd();
|
|
36212
36182
|
} }
|
|
36213
36183
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36214
36184
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
36215
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36185
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 33);
|
|
36216
36186
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r7); const result_r8 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r8)); });
|
|
36217
36187
|
i0.ɵɵelementEnd();
|
|
36218
|
-
i0.ɵɵelement(3, "label",
|
|
36188
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36219
36189
|
i0.ɵɵelementEnd()();
|
|
36220
36190
|
} if (rf & 2) {
|
|
36221
36191
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36228,7 +36198,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
36228
36198
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r8.case_id, "");
|
|
36229
36199
|
} }
|
|
36230
36200
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
36231
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36201
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36232
36202
|
} if (rf & 2) {
|
|
36233
36203
|
const col_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
36234
36204
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36243,8 +36213,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36243
36213
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r8.case_id));
|
|
36244
36214
|
} }
|
|
36245
36215
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36246
|
-
i0.ɵɵelementContainerStart(0,
|
|
36247
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
36216
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36217
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 41)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
36248
36218
|
i0.ɵɵelementContainerEnd();
|
|
36249
36219
|
} if (rf & 2) {
|
|
36250
36220
|
const case_reference_r10 = i0.ɵɵreference(3);
|
|
@@ -36255,9 +36225,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36255
36225
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r9, result_r8))("ngIfElse", case_reference_r10);
|
|
36256
36226
|
} }
|
|
36257
36227
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36258
|
-
i0.ɵɵelementStart(0, "a",
|
|
36228
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36259
36229
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36260
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36230
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36261
36231
|
i0.ɵɵelementEnd();
|
|
36262
36232
|
} if (rf & 2) {
|
|
36263
36233
|
const result_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36268,8 +36238,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
36268
36238
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36269
36239
|
} }
|
|
36270
36240
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36271
|
-
i0.ɵɵelementStart(0, "div",
|
|
36272
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36241
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36242
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36273
36243
|
i0.ɵɵelementEnd();
|
|
36274
36244
|
} if (rf & 2) {
|
|
36275
36245
|
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36280,8 +36250,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
36280
36250
|
i0.ɵɵproperty("caseField", result_r8.columns[col_r9.case_field_id])("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36281
36251
|
} }
|
|
36282
36252
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36283
|
-
i0.ɵɵelementStart(0, "td",
|
|
36284
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36253
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36254
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a", 36)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 37);
|
|
36285
36255
|
i0.ɵɵelementEnd();
|
|
36286
36256
|
} if (rf & 2) {
|
|
36287
36257
|
const colIndex_r11 = ctx.index;
|
|
@@ -36292,7 +36262,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
36292
36262
|
} }
|
|
36293
36263
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36294
36264
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36295
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36265
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36296
36266
|
i0.ɵɵelementEnd()();
|
|
36297
36267
|
} if (rf & 2) {
|
|
36298
36268
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36304,7 +36274,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
36304
36274
|
} }
|
|
36305
36275
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36306
36276
|
i0.ɵɵelementStart(0, "tr");
|
|
36307
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td",
|
|
36277
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 32)(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
36308
36278
|
i0.ɵɵelementEnd();
|
|
36309
36279
|
} if (rf & 2) {
|
|
36310
36280
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36317,7 +36287,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
36317
36287
|
} }
|
|
36318
36288
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
36319
36289
|
i0.ɵɵelementContainerStart(0);
|
|
36320
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
36290
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 31);
|
|
36321
36291
|
i0.ɵɵpipe(2, "paginate");
|
|
36322
36292
|
i0.ɵɵelementContainerEnd();
|
|
36323
36293
|
} if (rf & 2) {
|
|
@@ -36327,10 +36297,10 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
36327
36297
|
} }
|
|
36328
36298
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36329
36299
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
36330
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36300
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 44);
|
|
36331
36301
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r13)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onKeyUp($event, result_r13)); });
|
|
36332
36302
|
i0.ɵɵelementEnd();
|
|
36333
|
-
i0.ɵɵelement(3, "label",
|
|
36303
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36334
36304
|
i0.ɵɵelementEnd()();
|
|
36335
36305
|
} if (rf & 2) {
|
|
36336
36306
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36343,7 +36313,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ct
|
|
|
36343
36313
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r13.case_id, "");
|
|
36344
36314
|
} }
|
|
36345
36315
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
36346
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36316
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36347
36317
|
} if (rf & 2) {
|
|
36348
36318
|
const col_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
36349
36319
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36358,8 +36328,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36358
36328
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r13.case_id));
|
|
36359
36329
|
} }
|
|
36360
36330
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36361
|
-
i0.ɵɵelementContainerStart(0,
|
|
36362
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
36331
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36332
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 41)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
36363
36333
|
i0.ɵɵelementContainerEnd();
|
|
36364
36334
|
} if (rf & 2) {
|
|
36365
36335
|
const case_reference_r15 = i0.ɵɵreference(3);
|
|
@@ -36370,9 +36340,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36370
36340
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r14, result_r13))("ngIfElse", case_reference_r15);
|
|
36371
36341
|
} }
|
|
36372
36342
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36373
|
-
i0.ɵɵelementStart(0, "a",
|
|
36343
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36374
36344
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36375
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36345
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36376
36346
|
i0.ɵɵelementEnd();
|
|
36377
36347
|
} if (rf & 2) {
|
|
36378
36348
|
const result_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36383,8 +36353,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf
|
|
|
36383
36353
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36384
36354
|
} }
|
|
36385
36355
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36386
|
-
i0.ɵɵelementStart(0, "div",
|
|
36387
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36356
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36357
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36388
36358
|
i0.ɵɵelementEnd();
|
|
36389
36359
|
} if (rf & 2) {
|
|
36390
36360
|
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36395,8 +36365,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(
|
|
|
36395
36365
|
i0.ɵɵproperty("caseField", result_r13.columns[col_r14.case_field_id])("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36396
36366
|
} }
|
|
36397
36367
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36398
|
-
i0.ɵɵelementStart(0, "td",
|
|
36399
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36368
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36369
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a", 36)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 37);
|
|
36400
36370
|
i0.ɵɵelementEnd();
|
|
36401
36371
|
} if (rf & 2) {
|
|
36402
36372
|
const colIndex_r16 = ctx.index;
|
|
@@ -36407,7 +36377,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ct
|
|
|
36407
36377
|
} }
|
|
36408
36378
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36409
36379
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36410
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36380
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36411
36381
|
i0.ɵɵelementEnd()();
|
|
36412
36382
|
} if (rf & 2) {
|
|
36413
36383
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36419,7 +36389,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ct
|
|
|
36419
36389
|
} }
|
|
36420
36390
|
function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36421
36391
|
i0.ɵɵelementStart(0, "tr");
|
|
36422
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td",
|
|
36392
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 8, "td", 9)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 32)(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
36423
36393
|
i0.ɵɵelementEnd();
|
|
36424
36394
|
} if (rf & 2) {
|
|
36425
36395
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36432,7 +36402,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
|
|
|
36432
36402
|
} }
|
|
36433
36403
|
function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
36434
36404
|
i0.ɵɵelementContainerStart(0);
|
|
36435
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr",
|
|
36405
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 31);
|
|
36436
36406
|
i0.ɵɵpipe(2, "ccdSortSearchResult");
|
|
36437
36407
|
i0.ɵɵpipe(3, "paginate");
|
|
36438
36408
|
i0.ɵɵelementContainerEnd();
|
|
@@ -36446,10 +36416,10 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36446
36416
|
i0.ɵɵtext(3);
|
|
36447
36417
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36448
36418
|
i0.ɵɵelementEnd();
|
|
36449
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template,
|
|
36419
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template, 18, 18, "div", 6)(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 7);
|
|
36450
36420
|
i0.ɵɵelementEnd();
|
|
36451
36421
|
i0.ɵɵelementStart(8, "thead")(9, "tr", 8);
|
|
36452
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 9)(11, SearchResultComponent_table_0_th_11_Template,
|
|
36422
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 9)(11, SearchResultComponent_table_0_th_11_Template, 6, 5, "th", 10)(12, SearchResultComponent_table_0_th_12_Template, 2, 0, "th", 11);
|
|
36453
36423
|
i0.ɵɵelementEnd()();
|
|
36454
36424
|
i0.ɵɵelementStart(13, "tbody");
|
|
36455
36425
|
i0.ɵɵtemplate(14, SearchResultComponent_table_0_ng_container_14_Template, 3, 8, "ng-container", 1)(15, SearchResultComponent_table_0_ng_container_15_Template, 4, 11, "ng-container", 1);
|
|
@@ -36477,7 +36447,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36477
36447
|
} }
|
|
36478
36448
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
36479
36449
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
36480
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
36450
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 45);
|
|
36481
36451
|
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.goToPage($event)); });
|
|
36482
36452
|
i0.ɵɵelementEnd();
|
|
36483
36453
|
} if (rf & 2) {
|
|
@@ -36485,7 +36455,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
36485
36455
|
i0.ɵɵproperty("visibilityLabel", ctx_r0.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r0.page)("screenReaderCurrentLabel", "You're on page");
|
|
36486
36456
|
} }
|
|
36487
36457
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36488
|
-
i0.ɵɵelementStart(0, "div",
|
|
36458
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
36489
36459
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
36490
36460
|
i0.ɵɵtext(2);
|
|
36491
36461
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -36790,24 +36760,11 @@ class SearchResultComponent {
|
|
|
36790
36760
|
return result.case_id.startsWith(DRAFT_PREFIX) ? DRAFT_PREFIX : this.hyphenateIfCaseReferenceOrGet(col, result);
|
|
36791
36761
|
}
|
|
36792
36762
|
isSortAscending(column) {
|
|
36793
|
-
|
|
36794
|
-
|
|
36795
|
-
|
|
36796
|
-
currentSortOrder(column) {
|
|
36797
|
-
let isAscending = true;
|
|
36798
|
-
let isDescending = true;
|
|
36799
|
-
if (this.comparator(column) === undefined) {
|
|
36800
|
-
return SortOrder$1.UNSORTED;
|
|
36801
|
-
}
|
|
36802
|
-
for (let i = 0; i < this.resultView.results.length - 1; i++) {
|
|
36803
|
-
const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
|
|
36804
|
-
isDescending = isDescending && comparison <= 0;
|
|
36805
|
-
isAscending = isAscending && comparison >= 0;
|
|
36806
|
-
if (!isAscending && !isDescending) {
|
|
36807
|
-
break;
|
|
36808
|
-
}
|
|
36763
|
+
// simple way to determine if the column param is sorted and if its asc/desc
|
|
36764
|
+
if (this.consumerSortParameters.column === column.case_field_id) {
|
|
36765
|
+
return this.consumerSortParameters.order === SortOrder$1.ASCENDING;
|
|
36809
36766
|
}
|
|
36810
|
-
return
|
|
36767
|
+
return null;
|
|
36811
36768
|
}
|
|
36812
36769
|
getFirstResult() {
|
|
36813
36770
|
const currentPage = (this.selected.page ? this.selected.page : 1);
|
|
@@ -36846,8 +36803,10 @@ class SearchResultComponent {
|
|
|
36846
36803
|
}
|
|
36847
36804
|
}
|
|
36848
36805
|
}
|
|
36806
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
36807
|
+
noop() { }
|
|
36849
36808
|
static ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
36850
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top",
|
|
36809
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-header", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], [2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36851
36810
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
|
|
36852
36811
|
} if (rf & 2) {
|
|
36853
36812
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -36859,7 +36818,7 @@ class SearchResultComponent {
|
|
|
36859
36818
|
}
|
|
36860
36819
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
36861
36820
|
type: Component,
|
|
36862
|
-
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"
|
|
36821
|
+
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\">​</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
36863
36822
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
36864
36823
|
type: Input
|
|
36865
36824
|
}], jurisdiction: [{
|