@hmcts/ccd-case-ui-toolkit 7.0.42-accessibility → 7.0.42-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/search-result/search-result.component.mjs +77 -96
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +76 -95
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.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/package.json +1 -1
|
@@ -36079,43 +36079,45 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
36079
36079
|
} }
|
|
36080
36080
|
function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
36081
36081
|
i0.ɵɵelementStart(0, "div", 16);
|
|
36082
|
-
i0.ɵɵ
|
|
36083
|
-
i0.ɵɵ
|
|
36084
|
-
i0.ɵɵ
|
|
36085
|
-
i0.ɵɵ
|
|
36086
|
-
i0.ɵɵ
|
|
36087
|
-
i0.ɵɵ
|
|
36088
|
-
i0.ɵɵelementEnd();
|
|
36082
|
+
i0.ɵɵelement(1, "output");
|
|
36083
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36084
|
+
i0.ɵɵelementStart(3, "span", 17);
|
|
36085
|
+
i0.ɵɵtext(4);
|
|
36086
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
36087
|
+
i0.ɵɵelementStart(6, "span", 18);
|
|
36089
36088
|
i0.ɵɵtext(7);
|
|
36090
|
-
i0.ɵɵpipe(8, "rpxTranslate");
|
|
36091
|
-
i0.ɵɵelementStart(9, "span", 18);
|
|
36092
|
-
i0.ɵɵtext(10);
|
|
36093
36089
|
i0.ɵɵelementEnd();
|
|
36090
|
+
i0.ɵɵtext(8);
|
|
36091
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
36092
|
+
i0.ɵɵelementStart(10, "span", 18);
|
|
36094
36093
|
i0.ɵɵtext(11);
|
|
36095
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
36096
|
-
i0.ɵɵelementStart(13, "span", 18);
|
|
36097
|
-
i0.ɵɵtext(14);
|
|
36098
36094
|
i0.ɵɵelementEnd();
|
|
36095
|
+
i0.ɵɵtext(12);
|
|
36096
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
36097
|
+
i0.ɵɵelementStart(14, "span", 18);
|
|
36099
36098
|
i0.ɵɵtext(15);
|
|
36100
|
-
i0.ɵɵ
|
|
36099
|
+
i0.ɵɵelementEnd();
|
|
36100
|
+
i0.ɵɵtext(16);
|
|
36101
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
36101
36102
|
i0.ɵɵelementEnd()();
|
|
36102
36103
|
} if (rf & 2) {
|
|
36103
36104
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36104
|
-
i0.ɵɵ
|
|
36105
|
+
i0.ɵɵadvance();
|
|
36106
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r0.getTotalResults() + " results have been found"));
|
|
36105
36107
|
i0.ɵɵadvance(3);
|
|
36106
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
36108
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
|
|
36107
36109
|
i0.ɵɵadvance(3);
|
|
36108
36110
|
i0.ɵɵtextInterpolate(ctx_r0.getFirstResult());
|
|
36109
36111
|
i0.ɵɵadvance();
|
|
36110
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36112
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, "to"), " ");
|
|
36111
36113
|
i0.ɵɵadvance(3);
|
|
36112
36114
|
i0.ɵɵtextInterpolate(ctx_r0.getLastResult());
|
|
36113
36115
|
i0.ɵɵadvance();
|
|
36114
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36116
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 14, "of"), " ");
|
|
36115
36117
|
i0.ɵɵadvance(3);
|
|
36116
36118
|
i0.ɵɵtextInterpolate(ctx_r0.getTotalResults());
|
|
36117
36119
|
i0.ɵɵadvance();
|
|
36118
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
36120
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "results"), "");
|
|
36119
36121
|
} }
|
|
36120
36122
|
function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
36121
36123
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
@@ -36136,18 +36138,17 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
36136
36138
|
i0.ɵɵelementStart(0, "th", 21)(1, "div", 22)(2, "input", 23);
|
|
36137
36139
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_th_10_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.selectAll()); });
|
|
36138
36140
|
i0.ɵɵelementEnd();
|
|
36139
|
-
i0.ɵɵ
|
|
36140
|
-
i0.ɵɵ
|
|
36141
|
-
i0.ɵɵelementEnd()()();
|
|
36141
|
+
i0.ɵɵelement(3, "label", 24);
|
|
36142
|
+
i0.ɵɵelementEnd()();
|
|
36142
36143
|
} if (rf & 2) {
|
|
36143
36144
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36144
36145
|
i0.ɵɵadvance(2);
|
|
36145
36146
|
i0.ɵɵproperty("checked", ctx_r0.allOnPageSelected())("disabled", !ctx_r0.canAnyBeShared());
|
|
36146
36147
|
} }
|
|
36147
|
-
function
|
|
36148
|
+
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
36148
36149
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
36149
36150
|
i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
|
|
36150
|
-
i0.ɵɵlistener("click", function
|
|
36151
|
+
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)); });
|
|
36151
36152
|
i0.ɵɵelementEnd()();
|
|
36152
36153
|
} if (rf & 2) {
|
|
36153
36154
|
const col_r5 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36157,22 +36158,19 @@ function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) { if (rf &
|
|
|
36157
36158
|
} }
|
|
36158
36159
|
function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
|
|
36159
36160
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
36160
|
-
i0.ɵɵelementStart(0, "th")(1, "
|
|
36161
|
-
i0.ɵɵ
|
|
36162
|
-
i0.ɵɵ
|
|
36163
|
-
i0.ɵɵ
|
|
36164
|
-
i0.ɵɵtext(6);
|
|
36165
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
36161
|
+
i0.ɵɵelementStart(0, "th", 25)(1, "div")(2, "div", 26);
|
|
36162
|
+
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()); });
|
|
36163
|
+
i0.ɵɵtext(3);
|
|
36164
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36166
36165
|
i0.ɵɵelementEnd();
|
|
36167
|
-
i0.ɵɵtemplate(
|
|
36168
|
-
i0.ɵɵelementEnd()()
|
|
36166
|
+
i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 27);
|
|
36167
|
+
i0.ɵɵelementEnd()();
|
|
36169
36168
|
} if (rf & 2) {
|
|
36170
36169
|
const col_r5 = ctx.$implicit;
|
|
36171
36170
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
36172
|
-
i0.ɵɵ
|
|
36173
|
-
i0.ɵɵ
|
|
36174
|
-
i0.ɵɵ
|
|
36175
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r5.label), " ");
|
|
36171
|
+
i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
|
|
36172
|
+
i0.ɵɵadvance(3);
|
|
36173
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
|
|
36176
36174
|
i0.ɵɵadvance(2);
|
|
36177
36175
|
i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
|
|
36178
36176
|
} }
|
|
@@ -36181,12 +36179,11 @@ function SearchResultComponent_table_0_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
36181
36179
|
} }
|
|
36182
36180
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36183
36181
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
36184
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36182
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 33);
|
|
36185
36183
|
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)); });
|
|
36186
36184
|
i0.ɵɵelementEnd();
|
|
36187
|
-
i0.ɵɵ
|
|
36188
|
-
i0.ɵɵ
|
|
36189
|
-
i0.ɵɵelementEnd()()();
|
|
36185
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36186
|
+
i0.ɵɵelementEnd()();
|
|
36190
36187
|
} if (rf & 2) {
|
|
36191
36188
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
36192
36189
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36196,11 +36193,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
36196
36193
|
i0.ɵɵproperty("checked", ctx_r0.isSelected(result_r8))("disabled", !ctx_r0.canBeShared(result_r8));
|
|
36197
36194
|
i0.ɵɵadvance();
|
|
36198
36195
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r8.case_id, "");
|
|
36199
|
-
i0.ɵɵadvance();
|
|
36200
|
-
i0.ɵɵtextInterpolate1(" Select case ", result_r8.case_id, " ");
|
|
36201
36196
|
} }
|
|
36202
36197
|
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) {
|
|
36203
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36198
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36204
36199
|
} if (rf & 2) {
|
|
36205
36200
|
const col_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
36206
36201
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36215,8 +36210,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36215
36210
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r8.case_id));
|
|
36216
36211
|
} }
|
|
36217
36212
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36218
|
-
i0.ɵɵelementContainerStart(0,
|
|
36219
|
-
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",
|
|
36213
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36214
|
+
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);
|
|
36220
36215
|
i0.ɵɵelementContainerEnd();
|
|
36221
36216
|
} if (rf & 2) {
|
|
36222
36217
|
const case_reference_r10 = i0.ɵɵreference(3);
|
|
@@ -36227,9 +36222,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
36227
36222
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r9, result_r8))("ngIfElse", case_reference_r10);
|
|
36228
36223
|
} }
|
|
36229
36224
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36230
|
-
i0.ɵɵelementStart(0, "a",
|
|
36225
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36231
36226
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36232
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36227
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36233
36228
|
i0.ɵɵelementEnd();
|
|
36234
36229
|
} if (rf & 2) {
|
|
36235
36230
|
const result_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36240,8 +36235,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
36240
36235
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36241
36236
|
} }
|
|
36242
36237
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36243
|
-
i0.ɵɵelementStart(0, "div",
|
|
36244
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36238
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36239
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36245
36240
|
i0.ɵɵelementEnd();
|
|
36246
36241
|
} if (rf & 2) {
|
|
36247
36242
|
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36252,8 +36247,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
36252
36247
|
i0.ɵɵproperty("caseField", result_r8.columns[col_r9.case_field_id])("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36253
36248
|
} }
|
|
36254
36249
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36255
|
-
i0.ɵɵelementStart(0, "td",
|
|
36256
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36250
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36251
|
+
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);
|
|
36257
36252
|
i0.ɵɵelementEnd();
|
|
36258
36253
|
} if (rf & 2) {
|
|
36259
36254
|
const colIndex_r11 = ctx.index;
|
|
@@ -36264,7 +36259,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
36264
36259
|
} }
|
|
36265
36260
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36266
36261
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36267
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36262
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36268
36263
|
i0.ɵɵelementEnd()();
|
|
36269
36264
|
} if (rf & 2) {
|
|
36270
36265
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36276,7 +36271,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
36276
36271
|
} }
|
|
36277
36272
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36278
36273
|
i0.ɵɵelementStart(0, "tr");
|
|
36279
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template,
|
|
36274
|
+
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);
|
|
36280
36275
|
i0.ɵɵelementEnd();
|
|
36281
36276
|
} if (rf & 2) {
|
|
36282
36277
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36289,7 +36284,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
|
|
|
36289
36284
|
} }
|
|
36290
36285
|
function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
36291
36286
|
i0.ɵɵelementContainerStart(0);
|
|
36292
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr",
|
|
36287
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 31);
|
|
36293
36288
|
i0.ɵɵpipe(2, "paginate");
|
|
36294
36289
|
i0.ɵɵelementContainerEnd();
|
|
36295
36290
|
} if (rf & 2) {
|
|
@@ -36299,12 +36294,11 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
36299
36294
|
} }
|
|
36300
36295
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
36301
36296
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
36302
|
-
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input",
|
|
36297
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 44);
|
|
36303
36298
|
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)); });
|
|
36304
36299
|
i0.ɵɵelementEnd();
|
|
36305
|
-
i0.ɵɵ
|
|
36306
|
-
i0.ɵɵ
|
|
36307
|
-
i0.ɵɵelementEnd()()();
|
|
36300
|
+
i0.ɵɵelement(3, "label", 34);
|
|
36301
|
+
i0.ɵɵelementEnd()();
|
|
36308
36302
|
} if (rf & 2) {
|
|
36309
36303
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
36310
36304
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36314,11 +36308,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ct
|
|
|
36314
36308
|
i0.ɵɵproperty("checked", ctx_r0.isSelected(result_r13))("disabled", !ctx_r0.canBeShared(result_r13));
|
|
36315
36309
|
i0.ɵɵadvance();
|
|
36316
36310
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r13.case_id, "");
|
|
36317
|
-
i0.ɵɵadvance();
|
|
36318
|
-
i0.ɵɵtextInterpolate1(" Select case ", result_r13.case_id, " ");
|
|
36319
36311
|
} }
|
|
36320
36312
|
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) {
|
|
36321
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
36313
|
+
i0.ɵɵelement(0, "ccd-field-read", 42);
|
|
36322
36314
|
} if (rf & 2) {
|
|
36323
36315
|
const col_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
36324
36316
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36333,8 +36325,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36333
36325
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r13.case_id));
|
|
36334
36326
|
} }
|
|
36335
36327
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
36336
|
-
i0.ɵɵelementContainerStart(0,
|
|
36337
|
-
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",
|
|
36328
|
+
i0.ɵɵelementContainerStart(0, 40);
|
|
36329
|
+
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);
|
|
36338
36330
|
i0.ɵɵelementContainerEnd();
|
|
36339
36331
|
} if (rf & 2) {
|
|
36340
36332
|
const case_reference_r15 = i0.ɵɵreference(3);
|
|
@@ -36345,9 +36337,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
36345
36337
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r14, result_r13))("ngIfElse", case_reference_r15);
|
|
36346
36338
|
} }
|
|
36347
36339
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
36348
|
-
i0.ɵɵelementStart(0, "a",
|
|
36340
|
+
i0.ɵɵelementStart(0, "a", 38);
|
|
36349
36341
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
36350
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
36342
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 39);
|
|
36351
36343
|
i0.ɵɵelementEnd();
|
|
36352
36344
|
} if (rf & 2) {
|
|
36353
36345
|
const result_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -36358,8 +36350,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf
|
|
|
36358
36350
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
36359
36351
|
} }
|
|
36360
36352
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36361
|
-
i0.ɵɵelementStart(0, "div",
|
|
36362
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
36353
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
36354
|
+
i0.ɵɵelement(1, "ccd-field-read", 42);
|
|
36363
36355
|
i0.ɵɵelementEnd();
|
|
36364
36356
|
} if (rf & 2) {
|
|
36365
36357
|
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36370,8 +36362,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(
|
|
|
36370
36362
|
i0.ɵɵproperty("caseField", result_r13.columns[col_r14.case_field_id])("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
36371
36363
|
} }
|
|
36372
36364
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
36373
|
-
i0.ɵɵelementStart(0, "td",
|
|
36374
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
36365
|
+
i0.ɵɵelementStart(0, "td", 35);
|
|
36366
|
+
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);
|
|
36375
36367
|
i0.ɵɵelementEnd();
|
|
36376
36368
|
} if (rf & 2) {
|
|
36377
36369
|
const colIndex_r16 = ctx.index;
|
|
@@ -36382,7 +36374,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ct
|
|
|
36382
36374
|
} }
|
|
36383
36375
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
36384
36376
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
36385
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
36377
|
+
i0.ɵɵelement(2, "ccd-activity", 43);
|
|
36386
36378
|
i0.ɵɵelementEnd()();
|
|
36387
36379
|
} if (rf & 2) {
|
|
36388
36380
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -36394,7 +36386,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ct
|
|
|
36394
36386
|
} }
|
|
36395
36387
|
function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
36396
36388
|
i0.ɵɵelementStart(0, "tr");
|
|
36397
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template,
|
|
36389
|
+
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);
|
|
36398
36390
|
i0.ɵɵelementEnd();
|
|
36399
36391
|
} if (rf & 2) {
|
|
36400
36392
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -36407,7 +36399,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
|
|
|
36407
36399
|
} }
|
|
36408
36400
|
function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) { if (rf & 1) {
|
|
36409
36401
|
i0.ɵɵelementContainerStart(0);
|
|
36410
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr",
|
|
36402
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 31);
|
|
36411
36403
|
i0.ɵɵpipe(2, "ccdSortSearchResult");
|
|
36412
36404
|
i0.ɵɵpipe(3, "paginate");
|
|
36413
36405
|
i0.ɵɵelementContainerEnd();
|
|
@@ -36421,10 +36413,10 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36421
36413
|
i0.ɵɵtext(3);
|
|
36422
36414
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
36423
36415
|
i0.ɵɵelementEnd();
|
|
36424
|
-
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template,
|
|
36416
|
+
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);
|
|
36425
36417
|
i0.ɵɵelementEnd();
|
|
36426
36418
|
i0.ɵɵelementStart(8, "thead")(9, "tr", 8);
|
|
36427
|
-
i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template,
|
|
36419
|
+
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, 1, 0, "th", 11);
|
|
36428
36420
|
i0.ɵɵelementEnd()();
|
|
36429
36421
|
i0.ɵɵelementStart(13, "tbody");
|
|
36430
36422
|
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);
|
|
@@ -36452,7 +36444,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
36452
36444
|
} }
|
|
36453
36445
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
36454
36446
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
36455
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
36447
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 45);
|
|
36456
36448
|
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)); });
|
|
36457
36449
|
i0.ɵɵelementEnd();
|
|
36458
36450
|
} if (rf & 2) {
|
|
@@ -36460,7 +36452,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
36460
36452
|
i0.ɵɵproperty("visibilityLabel", ctx_r0.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r0.page)("screenReaderCurrentLabel", "You're on page");
|
|
36461
36453
|
} }
|
|
36462
36454
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
36463
|
-
i0.ɵɵelementStart(0, "div",
|
|
36455
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
36464
36456
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
36465
36457
|
i0.ɵɵtext(2);
|
|
36466
36458
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -36765,24 +36757,11 @@ class SearchResultComponent {
|
|
|
36765
36757
|
return result.case_id.startsWith(DRAFT_PREFIX) ? DRAFT_PREFIX : this.hyphenateIfCaseReferenceOrGet(col, result);
|
|
36766
36758
|
}
|
|
36767
36759
|
isSortAscending(column) {
|
|
36768
|
-
|
|
36769
|
-
|
|
36770
|
-
|
|
36771
|
-
currentSortOrder(column) {
|
|
36772
|
-
let isAscending = true;
|
|
36773
|
-
let isDescending = true;
|
|
36774
|
-
if (this.comparator(column) === undefined) {
|
|
36775
|
-
return SortOrder$1.UNSORTED;
|
|
36776
|
-
}
|
|
36777
|
-
for (let i = 0; i < this.resultView.results.length - 1; i++) {
|
|
36778
|
-
const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
|
|
36779
|
-
isDescending = isDescending && comparison <= 0;
|
|
36780
|
-
isAscending = isAscending && comparison >= 0;
|
|
36781
|
-
if (!isAscending && !isDescending) {
|
|
36782
|
-
break;
|
|
36783
|
-
}
|
|
36760
|
+
// simple way to determine if the column param is sorted and if its asc/desc
|
|
36761
|
+
if (this.consumerSortParameters.column === column.case_field_id) {
|
|
36762
|
+
return this.consumerSortParameters.order === SortOrder$1.ASCENDING;
|
|
36784
36763
|
}
|
|
36785
|
-
return
|
|
36764
|
+
return null;
|
|
36786
36765
|
}
|
|
36787
36766
|
getFirstResult() {
|
|
36788
36767
|
const currentPage = (this.selected.page ? this.selected.page : 1);
|
|
@@ -36821,8 +36800,10 @@ class SearchResultComponent {
|
|
|
36821
36800
|
}
|
|
36822
36801
|
}
|
|
36823
36802
|
}
|
|
36803
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
36804
|
+
noop() { }
|
|
36824
36805
|
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)); };
|
|
36825
|
-
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",
|
|
36806
|
+
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) {
|
|
36826
36807
|
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);
|
|
36827
36808
|
} if (rf & 2) {
|
|
36828
36809
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -36834,7 +36815,7 @@ class SearchResultComponent {
|
|
|
36834
36815
|
}
|
|
36835
36816
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
36836
36817
|
type: Component,
|
|
36837
|
-
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\"
|
|
36818
|
+
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"] }]
|
|
36838
36819
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
36839
36820
|
type: Input
|
|
36840
36821
|
}], jurisdiction: [{
|