@hmcts/ccd-case-ui-toolkit 7.0.37-rc2 → 7.0.38-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.
@@ -34706,43 +34706,45 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) { if (rf & 1) {
34706
34706
  } }
34707
34707
  function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
34708
34708
  i0.ɵɵelementStart(0, "div", 15);
34709
- i0.ɵɵpipe(1, "rpxTranslate");
34710
- i0.ɵɵelementStart(2, "span", 16);
34711
- i0.ɵɵtext(3);
34712
- i0.ɵɵpipe(4, "rpxTranslate");
34713
- i0.ɵɵelementStart(5, "span", 17);
34714
- i0.ɵɵtext(6);
34715
- i0.ɵɵelementEnd();
34709
+ i0.ɵɵelement(1, "output");
34710
+ i0.ɵɵpipe(2, "rpxTranslate");
34711
+ i0.ɵɵelementStart(3, "span", 16);
34712
+ i0.ɵɵtext(4);
34713
+ i0.ɵɵpipe(5, "rpxTranslate");
34714
+ i0.ɵɵelementStart(6, "span", 17);
34716
34715
  i0.ɵɵtext(7);
34717
- i0.ɵɵpipe(8, "rpxTranslate");
34718
- i0.ɵɵelementStart(9, "span", 17);
34719
- i0.ɵɵtext(10);
34720
34716
  i0.ɵɵelementEnd();
34717
+ i0.ɵɵtext(8);
34718
+ i0.ɵɵpipe(9, "rpxTranslate");
34719
+ i0.ɵɵelementStart(10, "span", 17);
34721
34720
  i0.ɵɵtext(11);
34722
- i0.ɵɵpipe(12, "rpxTranslate");
34723
- i0.ɵɵelementStart(13, "span", 17);
34724
- i0.ɵɵtext(14);
34725
34721
  i0.ɵɵelementEnd();
34722
+ i0.ɵɵtext(12);
34723
+ i0.ɵɵpipe(13, "rpxTranslate");
34724
+ i0.ɵɵelementStart(14, "span", 17);
34726
34725
  i0.ɵɵtext(15);
34727
- i0.ɵɵpipe(16, "rpxTranslate");
34726
+ i0.ɵɵelementEnd();
34727
+ i0.ɵɵtext(16);
34728
+ i0.ɵɵpipe(17, "rpxTranslate");
34728
34729
  i0.ɵɵelementEnd()();
34729
34730
  } if (rf & 2) {
34730
34731
  const ctx_r4 = i0.ɵɵnextContext(2);
34731
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 8, ctx_r4.getTotalResults() + " results have been found"));
34732
+ i0.ɵɵadvance(1);
34733
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r4.getTotalResults() + " results have been found"));
34732
34734
  i0.ɵɵadvance(3);
34733
- i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 10, "Showing"), " ");
34735
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
34734
34736
  i0.ɵɵadvance(3);
34735
34737
  i0.ɵɵtextInterpolate(ctx_r4.getFirstResult());
34736
34738
  i0.ɵɵadvance(1);
34737
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 12, "to"), " ");
34739
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, "to"), " ");
34738
34740
  i0.ɵɵadvance(3);
34739
34741
  i0.ɵɵtextInterpolate(ctx_r4.getLastResult());
34740
34742
  i0.ɵɵadvance(1);
34741
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, "of"), " ");
34743
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 14, "of"), " ");
34742
34744
  i0.ɵɵadvance(3);
34743
34745
  i0.ɵɵtextInterpolate(ctx_r4.getTotalResults());
34744
34746
  i0.ɵɵadvance(1);
34745
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "results"), "");
34747
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "results"), "");
34746
34748
  } }
34747
34749
  function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
34748
34750
  const _r12 = i0.ɵɵgetCurrentView();
@@ -34770,10 +34772,10 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
34770
34772
  i0.ɵɵadvance(2);
34771
34773
  i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
34772
34774
  } }
34773
- function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) { if (rf & 1) {
34775
+ function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
34774
34776
  const _r19 = i0.ɵɵgetCurrentView();
34775
34777
  i0.ɵɵelementStart(0, "div", 27)(1, "a", 28);
34776
- i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_8_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.sort(col_r15)); });
34778
+ i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r19); const col_r15 = i0.ɵɵnextContext().$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r17.sort(col_r15)); });
34777
34779
  i0.ɵɵelementEnd()();
34778
34780
  } if (rf & 2) {
34779
34781
  const col_r15 = i0.ɵɵnextContext().$implicit;
@@ -34783,22 +34785,19 @@ function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) { if (rf &
34783
34785
  } }
34784
34786
  function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
34785
34787
  const _r22 = i0.ɵɵgetCurrentView();
34786
- i0.ɵɵelementStart(0, "th")(1, "table", 24);
34787
- i0.ɵɵpipe(2, "rpxTranslate");
34788
- i0.ɵɵelementStart(3, "tr")(4, "th")(5, "div", 25);
34789
- i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r22); const col_r15 = restoredCtx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.sort(col_r15)); });
34790
- i0.ɵɵtext(6);
34791
- i0.ɵɵpipe(7, "rpxTranslate");
34788
+ i0.ɵɵelementStart(0, "th", 24)(1, "div")(2, "div", 25);
34789
+ i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_Template_div_click_2_listener() { const restoredCtx = i0.ɵɵrestoreView(_r22); const col_r15 = restoredCtx.$implicit; const ctx_r21 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r21.sort(col_r15)); })("keyup", function SearchResultComponent_table_0_th_11_Template_div_keyup_2_listener() { i0.ɵɵrestoreView(_r22); const ctx_r23 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r23.noop()); });
34790
+ i0.ɵɵtext(3);
34791
+ i0.ɵɵpipe(4, "rpxTranslate");
34792
34792
  i0.ɵɵelementEnd();
34793
- i0.ɵɵtemplate(8, SearchResultComponent_table_0_th_11_div_8_Template, 2, 1, "div", 26);
34794
- i0.ɵɵelementEnd()()()();
34793
+ i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 26);
34794
+ i0.ɵɵelementEnd()();
34795
34795
  } if (rf & 2) {
34796
34796
  const col_r15 = ctx.$implicit;
34797
34797
  const ctx_r7 = i0.ɵɵnextContext(2);
34798
- i0.ɵɵadvance(1);
34799
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 3, "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending"));
34800
- i0.ɵɵadvance(5);
34801
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r15.label), " ");
34798
+ i0.ɵɵattribute("aria-sort", ctx_r7.isSortAscending(col_r15) === null ? null : ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
34799
+ i0.ɵɵadvance(3);
34800
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r15.label), " ");
34802
34801
  i0.ɵɵadvance(2);
34803
34802
  i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
34804
34803
  } }
@@ -34806,118 +34805,118 @@ function SearchResultComponent_table_0_th_12_Template(rf, ctx) { if (rf & 1) {
34806
34805
  i0.ɵɵelement(0, "th", 29);
34807
34806
  } }
34808
34807
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
34809
- const _r30 = i0.ɵɵgetCurrentView();
34810
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 31);
34811
- i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r30); const result_r24 = i0.ɵɵnextContext().$implicit; const ctx_r28 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r28.changeSelection(result_r24)); });
34808
+ const _r31 = i0.ɵɵgetCurrentView();
34809
+ i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 32);
34810
+ i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r31); const result_r25 = i0.ɵɵnextContext().$implicit; const ctx_r29 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r29.changeSelection(result_r25)); });
34812
34811
  i0.ɵɵelementEnd();
34813
- i0.ɵɵelement(3, "label", 32);
34812
+ i0.ɵɵelement(3, "label", 33);
34814
34813
  i0.ɵɵelementEnd()();
34815
34814
  } if (rf & 2) {
34816
- const result_r24 = i0.ɵɵnextContext().$implicit;
34817
- const ctx_r25 = i0.ɵɵnextContext(3);
34815
+ const result_r25 = i0.ɵɵnextContext().$implicit;
34816
+ const ctx_r26 = i0.ɵɵnextContext(3);
34818
34817
  i0.ɵɵadvance(2);
34819
- i0.ɵɵpropertyInterpolate1("id", "select-", result_r24.case_id, "")("name", "select-", result_r24.case_id, "");
34820
- i0.ɵɵproperty("checked", ctx_r25.isSelected(result_r24))("disabled", !ctx_r25.canBeShared(result_r24));
34818
+ i0.ɵɵpropertyInterpolate1("id", "select-", result_r25.case_id, "")("name", "select-", result_r25.case_id, "");
34819
+ i0.ɵɵproperty("checked", ctx_r26.isSelected(result_r25))("disabled", !ctx_r26.canBeShared(result_r25));
34821
34820
  i0.ɵɵadvance(1);
34822
- i0.ɵɵpropertyInterpolate1("for", "select-", result_r24.case_id, "");
34821
+ i0.ɵɵpropertyInterpolate1("for", "select-", result_r25.case_id, "");
34823
34822
  } }
34824
34823
  const _c0 = function () { return ["value"]; };
34825
34824
  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) {
34826
- i0.ɵɵelement(0, "ccd-field-read", 41);
34825
+ i0.ɵɵelement(0, "ccd-field-read", 42);
34827
34826
  } if (rf & 2) {
34828
- const col_r32 = i0.ɵɵnextContext(3).$implicit;
34829
- const result_r24 = i0.ɵɵnextContext().$implicit;
34830
- const ctx_r37 = i0.ɵɵnextContext(3);
34831
- i0.ɵɵproperty("caseField", ctx_r37.getColumnsWithPrefix(result_r24.columns[col_r32.case_field_id], result_r24))("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
34827
+ const col_r33 = i0.ɵɵnextContext(3).$implicit;
34828
+ const result_r25 = i0.ɵɵnextContext().$implicit;
34829
+ const ctx_r38 = i0.ɵɵnextContext(3);
34830
+ i0.ɵɵproperty("caseField", ctx_r38.getColumnsWithPrefix(result_r25.columns[col_r33.case_field_id], result_r25))("contextFields", result_r25.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
34832
34831
  } }
34833
34832
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
34834
34833
  i0.ɵɵtext(0);
34835
34834
  i0.ɵɵpipe(1, "ccdCaseReference");
34836
34835
  } if (rf & 2) {
34837
- const result_r24 = i0.ɵɵnextContext(4).$implicit;
34838
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r24.case_id));
34836
+ const result_r25 = i0.ɵɵnextContext(4).$implicit;
34837
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r25.case_id));
34839
34838
  } }
34840
34839
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
34841
- i0.ɵɵelementContainerStart(0, 38);
34842
- 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", 39);
34843
- i0.ɵɵtemplate(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, 40, i0.ɵɵtemplateRefExtractor);
34840
+ i0.ɵɵelementContainerStart(0, 39);
34841
+ 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", 40);
34842
+ i0.ɵɵtemplate(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, 41, i0.ɵɵtemplateRefExtractor);
34844
34843
  i0.ɵɵelementContainerEnd();
34845
34844
  } if (rf & 2) {
34846
- const _r38 = i0.ɵɵreference(3);
34847
- const col_r32 = i0.ɵɵnextContext(2).$implicit;
34848
- const result_r24 = i0.ɵɵnextContext().$implicit;
34849
- const ctx_r36 = i0.ɵɵnextContext(3);
34845
+ const _r39 = i0.ɵɵreference(3);
34846
+ const col_r33 = i0.ɵɵnextContext(2).$implicit;
34847
+ const result_r25 = i0.ɵɵnextContext().$implicit;
34848
+ const ctx_r37 = i0.ɵɵnextContext(3);
34850
34849
  i0.ɵɵadvance(1);
34851
- i0.ɵɵproperty("ngIf", ctx_r36.draftPrefixOrGet(col_r32, result_r24))("ngIfElse", _r38);
34850
+ i0.ɵɵproperty("ngIf", ctx_r37.draftPrefixOrGet(col_r33, result_r25))("ngIfElse", _r39);
34852
34851
  } }
34853
34852
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
34854
- i0.ɵɵelementStart(0, "a", 36);
34853
+ i0.ɵɵelementStart(0, "a", 37);
34855
34854
  i0.ɵɵpipe(1, "ccdCaseReference");
34856
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
34855
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
34857
34856
  i0.ɵɵelementEnd();
34858
34857
  } if (rf & 2) {
34859
- const result_r24 = i0.ɵɵnextContext(2).$implicit;
34860
- const ctx_r34 = i0.ɵɵnextContext(3);
34861
- i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r24.case_id), "");
34862
- i0.ɵɵproperty("routerLink", ctx_r34.prepareCaseLinkUrl(result_r24.case_id));
34858
+ const result_r25 = i0.ɵɵnextContext(2).$implicit;
34859
+ const ctx_r35 = i0.ɵɵnextContext(3);
34860
+ i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r25.case_id), "");
34861
+ i0.ɵɵproperty("routerLink", ctx_r35.prepareCaseLinkUrl(result_r25.case_id));
34863
34862
  i0.ɵɵadvance(2);
34864
- i0.ɵɵproperty("ngIf", !ctx_r34.hideRows);
34863
+ i0.ɵɵproperty("ngIf", !ctx_r35.hideRows);
34865
34864
  } }
34866
34865
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
34867
- i0.ɵɵelementStart(0, "div", 38);
34868
- i0.ɵɵelement(1, "ccd-field-read", 41);
34866
+ i0.ɵɵelementStart(0, "div", 39);
34867
+ i0.ɵɵelement(1, "ccd-field-read", 42);
34869
34868
  i0.ɵɵelementEnd();
34870
34869
  } if (rf & 2) {
34871
- const col_r32 = i0.ɵɵnextContext().$implicit;
34872
- const result_r24 = i0.ɵɵnextContext().$implicit;
34873
- const ctx_r35 = i0.ɵɵnextContext(3);
34874
- i0.ɵɵstyleProp("visibility", ctx_r35.hideRows ? "hidden" : "visible");
34870
+ const col_r33 = i0.ɵɵnextContext().$implicit;
34871
+ const result_r25 = i0.ɵɵnextContext().$implicit;
34872
+ const ctx_r36 = i0.ɵɵnextContext(3);
34873
+ i0.ɵɵstyleProp("visibility", ctx_r36.hideRows ? "hidden" : "visible");
34875
34874
  i0.ɵɵadvance(1);
34876
- i0.ɵɵproperty("caseField", result_r24.columns[col_r32.case_field_id])("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
34875
+ i0.ɵɵproperty("caseField", result_r25.columns[col_r33.case_field_id])("contextFields", result_r25.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
34877
34876
  } }
34878
34877
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
34879
- i0.ɵɵelementStart(0, "td", 33);
34880
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
34881
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
34878
+ i0.ɵɵelementStart(0, "td", 34);
34879
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
34880
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
34882
34881
  i0.ɵɵelementEnd();
34883
34882
  } if (rf & 2) {
34884
- const colIndex_r33 = ctx.index;
34883
+ const colIndex_r34 = ctx.index;
34885
34884
  i0.ɵɵadvance(1);
34886
- i0.ɵɵproperty("ngIf", colIndex_r33 == 0);
34885
+ i0.ɵɵproperty("ngIf", colIndex_r34 == 0);
34887
34886
  i0.ɵɵadvance(1);
34888
- i0.ɵɵproperty("ngIf", colIndex_r33 != 0);
34887
+ i0.ɵɵproperty("ngIf", colIndex_r34 != 0);
34889
34888
  } }
34890
34889
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
34891
34890
  i0.ɵɵelementStart(0, "td")(1, "div");
34892
- i0.ɵɵelement(2, "ccd-activity", 42);
34891
+ i0.ɵɵelement(2, "ccd-activity", 43);
34893
34892
  i0.ɵɵelementEnd()();
34894
34893
  } if (rf & 2) {
34895
- const result_r24 = i0.ɵɵnextContext().$implicit;
34896
- const ctx_r27 = i0.ɵɵnextContext(3);
34894
+ const result_r25 = i0.ɵɵnextContext().$implicit;
34895
+ const ctx_r28 = i0.ɵɵnextContext(3);
34897
34896
  i0.ɵɵadvance(1);
34898
- i0.ɵɵstyleProp("visibility", ctx_r27.hideRows ? "hidden" : "visible");
34897
+ i0.ɵɵstyleProp("visibility", ctx_r28.hideRows ? "hidden" : "visible");
34899
34898
  i0.ɵɵadvance(1);
34900
- i0.ɵɵproperty("caseId", result_r24.case_id)("displayMode", ctx_r27.ICON);
34899
+ i0.ɵɵproperty("caseId", result_r25.case_id)("displayMode", ctx_r28.ICON);
34901
34900
  } }
34902
34901
  function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
34903
34902
  i0.ɵɵelementStart(0, "tr");
34904
34903
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
34905
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
34904
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
34906
34905
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
34907
34906
  i0.ɵɵelementEnd();
34908
34907
  } if (rf & 2) {
34909
- const ctx_r23 = i0.ɵɵnextContext(3);
34908
+ const ctx_r24 = i0.ɵɵnextContext(3);
34910
34909
  i0.ɵɵadvance(1);
34911
- i0.ɵɵproperty("ngIf", ctx_r23.selectionEnabled);
34910
+ i0.ɵɵproperty("ngIf", ctx_r24.selectionEnabled);
34912
34911
  i0.ɵɵadvance(1);
34913
- i0.ɵɵproperty("ngForOf", ctx_r23.resultView.columns);
34912
+ i0.ɵɵproperty("ngForOf", ctx_r24.resultView.columns);
34914
34913
  i0.ɵɵadvance(1);
34915
- i0.ɵɵproperty("ngIf", ctx_r23.activityEnabled());
34914
+ i0.ɵɵproperty("ngIf", ctx_r24.activityEnabled());
34916
34915
  } }
34917
34916
  const _c1 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
34918
34917
  function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
34919
34918
  i0.ɵɵelementContainerStart(0);
34920
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
34919
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 30);
34921
34920
  i0.ɵɵpipe(2, "paginate");
34922
34921
  i0.ɵɵelementContainerEnd();
34923
34922
  } if (rf & 2) {
@@ -34926,116 +34925,116 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
34926
34925
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(2, 1, ctx_r9.resultView.results, i0.ɵɵpureFunction3(4, _c1, ctx_r9.paginationPageSize, ctx_r9.selected.page, ctx_r9.resultTotal)));
34927
34926
  } }
34928
34927
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
34929
- const _r56 = i0.ɵɵgetCurrentView();
34930
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 43);
34931
- i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r54 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r54.changeSelection(result_r50)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r56); const result_r50 = i0.ɵɵnextContext().$implicit; const ctx_r57 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r57.onKeyUp($event, result_r50)); });
34928
+ const _r57 = i0.ɵɵgetCurrentView();
34929
+ i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 44);
34930
+ i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r57); const result_r51 = i0.ɵɵnextContext().$implicit; const ctx_r55 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r55.changeSelection(result_r51)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r57); const result_r51 = i0.ɵɵnextContext().$implicit; const ctx_r58 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r58.onKeyUp($event, result_r51)); });
34932
34931
  i0.ɵɵelementEnd();
34933
- i0.ɵɵelement(3, "label", 32);
34932
+ i0.ɵɵelement(3, "label", 33);
34934
34933
  i0.ɵɵelementEnd()();
34935
34934
  } if (rf & 2) {
34936
- const result_r50 = i0.ɵɵnextContext().$implicit;
34937
- const ctx_r51 = i0.ɵɵnextContext(3);
34935
+ const result_r51 = i0.ɵɵnextContext().$implicit;
34936
+ const ctx_r52 = i0.ɵɵnextContext(3);
34938
34937
  i0.ɵɵadvance(2);
34939
- i0.ɵɵpropertyInterpolate1("id", "select-", result_r50.case_id, "")("name", "select-", result_r50.case_id, "");
34940
- i0.ɵɵproperty("checked", ctx_r51.isSelected(result_r50))("disabled", !ctx_r51.canBeShared(result_r50));
34938
+ i0.ɵɵpropertyInterpolate1("id", "select-", result_r51.case_id, "")("name", "select-", result_r51.case_id, "");
34939
+ i0.ɵɵproperty("checked", ctx_r52.isSelected(result_r51))("disabled", !ctx_r52.canBeShared(result_r51));
34941
34940
  i0.ɵɵadvance(1);
34942
- i0.ɵɵpropertyInterpolate1("for", "select-", result_r50.case_id, "");
34941
+ i0.ɵɵpropertyInterpolate1("for", "select-", result_r51.case_id, "");
34943
34942
  } }
34944
34943
  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) {
34945
- i0.ɵɵelement(0, "ccd-field-read", 41);
34944
+ i0.ɵɵelement(0, "ccd-field-read", 42);
34946
34945
  } if (rf & 2) {
34947
- const col_r60 = i0.ɵɵnextContext(3).$implicit;
34948
- const result_r50 = i0.ɵɵnextContext().$implicit;
34949
- const ctx_r65 = i0.ɵɵnextContext(3);
34950
- i0.ɵɵproperty("caseField", ctx_r65.getColumnsWithPrefix(result_r50.columns[col_r60.case_field_id], result_r50))("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
34946
+ const col_r61 = i0.ɵɵnextContext(3).$implicit;
34947
+ const result_r51 = i0.ɵɵnextContext().$implicit;
34948
+ const ctx_r66 = i0.ɵɵnextContext(3);
34949
+ i0.ɵɵproperty("caseField", ctx_r66.getColumnsWithPrefix(result_r51.columns[col_r61.case_field_id], result_r51))("contextFields", result_r51.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(3, _c0));
34951
34950
  } }
34952
34951
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
34953
34952
  i0.ɵɵtext(0);
34954
34953
  i0.ɵɵpipe(1, "ccdCaseReference");
34955
34954
  } if (rf & 2) {
34956
- const result_r50 = i0.ɵɵnextContext(4).$implicit;
34957
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r50.case_id));
34955
+ const result_r51 = i0.ɵɵnextContext(4).$implicit;
34956
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r51.case_id));
34958
34957
  } }
34959
34958
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
34960
- i0.ɵɵelementContainerStart(0, 38);
34961
- 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", 39);
34962
- i0.ɵɵtemplate(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, 40, i0.ɵɵtemplateRefExtractor);
34959
+ i0.ɵɵelementContainerStart(0, 39);
34960
+ 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", 40);
34961
+ i0.ɵɵtemplate(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, 41, i0.ɵɵtemplateRefExtractor);
34963
34962
  i0.ɵɵelementContainerEnd();
34964
34963
  } if (rf & 2) {
34965
- const _r66 = i0.ɵɵreference(3);
34966
- const col_r60 = i0.ɵɵnextContext(2).$implicit;
34967
- const result_r50 = i0.ɵɵnextContext().$implicit;
34968
- const ctx_r64 = i0.ɵɵnextContext(3);
34964
+ const _r67 = i0.ɵɵreference(3);
34965
+ const col_r61 = i0.ɵɵnextContext(2).$implicit;
34966
+ const result_r51 = i0.ɵɵnextContext().$implicit;
34967
+ const ctx_r65 = i0.ɵɵnextContext(3);
34969
34968
  i0.ɵɵadvance(1);
34970
- i0.ɵɵproperty("ngIf", ctx_r64.draftPrefixOrGet(col_r60, result_r50))("ngIfElse", _r66);
34969
+ i0.ɵɵproperty("ngIf", ctx_r65.draftPrefixOrGet(col_r61, result_r51))("ngIfElse", _r67);
34971
34970
  } }
34972
34971
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
34973
- i0.ɵɵelementStart(0, "a", 36);
34972
+ i0.ɵɵelementStart(0, "a", 37);
34974
34973
  i0.ɵɵpipe(1, "ccdCaseReference");
34975
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
34974
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
34976
34975
  i0.ɵɵelementEnd();
34977
34976
  } if (rf & 2) {
34978
- const result_r50 = i0.ɵɵnextContext(2).$implicit;
34979
- const ctx_r62 = i0.ɵɵnextContext(3);
34980
- i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r50.case_id), "");
34981
- i0.ɵɵproperty("routerLink", ctx_r62.prepareCaseLinkUrl(result_r50.case_id));
34977
+ const result_r51 = i0.ɵɵnextContext(2).$implicit;
34978
+ const ctx_r63 = i0.ɵɵnextContext(3);
34979
+ i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r51.case_id), "");
34980
+ i0.ɵɵproperty("routerLink", ctx_r63.prepareCaseLinkUrl(result_r51.case_id));
34982
34981
  i0.ɵɵadvance(2);
34983
- i0.ɵɵproperty("ngIf", !ctx_r62.hideRows);
34982
+ i0.ɵɵproperty("ngIf", !ctx_r63.hideRows);
34984
34983
  } }
34985
34984
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
34986
- i0.ɵɵelementStart(0, "div", 38);
34987
- i0.ɵɵelement(1, "ccd-field-read", 41);
34985
+ i0.ɵɵelementStart(0, "div", 39);
34986
+ i0.ɵɵelement(1, "ccd-field-read", 42);
34988
34987
  i0.ɵɵelementEnd();
34989
34988
  } if (rf & 2) {
34990
- const col_r60 = i0.ɵɵnextContext().$implicit;
34991
- const result_r50 = i0.ɵɵnextContext().$implicit;
34992
- const ctx_r63 = i0.ɵɵnextContext(3);
34993
- i0.ɵɵstyleProp("visibility", ctx_r63.hideRows ? "hidden" : "visible");
34989
+ const col_r61 = i0.ɵɵnextContext().$implicit;
34990
+ const result_r51 = i0.ɵɵnextContext().$implicit;
34991
+ const ctx_r64 = i0.ɵɵnextContext(3);
34992
+ i0.ɵɵstyleProp("visibility", ctx_r64.hideRows ? "hidden" : "visible");
34994
34993
  i0.ɵɵadvance(1);
34995
- i0.ɵɵproperty("caseField", result_r50.columns[col_r60.case_field_id])("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
34994
+ i0.ɵɵproperty("caseField", result_r51.columns[col_r61.case_field_id])("contextFields", result_r51.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
34996
34995
  } }
34997
34996
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
34998
- i0.ɵɵelementStart(0, "td", 33);
34999
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
35000
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
34997
+ i0.ɵɵelementStart(0, "td", 34);
34998
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
34999
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
35001
35000
  i0.ɵɵelementEnd();
35002
35001
  } if (rf & 2) {
35003
- const colIndex_r61 = ctx.index;
35002
+ const colIndex_r62 = ctx.index;
35004
35003
  i0.ɵɵadvance(1);
35005
- i0.ɵɵproperty("ngIf", colIndex_r61 == 0);
35004
+ i0.ɵɵproperty("ngIf", colIndex_r62 == 0);
35006
35005
  i0.ɵɵadvance(1);
35007
- i0.ɵɵproperty("ngIf", colIndex_r61 != 0);
35006
+ i0.ɵɵproperty("ngIf", colIndex_r62 != 0);
35008
35007
  } }
35009
35008
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
35010
35009
  i0.ɵɵelementStart(0, "td")(1, "div");
35011
- i0.ɵɵelement(2, "ccd-activity", 42);
35010
+ i0.ɵɵelement(2, "ccd-activity", 43);
35012
35011
  i0.ɵɵelementEnd()();
35013
35012
  } if (rf & 2) {
35014
- const result_r50 = i0.ɵɵnextContext().$implicit;
35015
- const ctx_r53 = i0.ɵɵnextContext(3);
35013
+ const result_r51 = i0.ɵɵnextContext().$implicit;
35014
+ const ctx_r54 = i0.ɵɵnextContext(3);
35016
35015
  i0.ɵɵadvance(1);
35017
- i0.ɵɵstyleProp("visibility", ctx_r53.hideRows ? "hidden" : "visible");
35016
+ i0.ɵɵstyleProp("visibility", ctx_r54.hideRows ? "hidden" : "visible");
35018
35017
  i0.ɵɵadvance(1);
35019
- i0.ɵɵproperty("caseId", result_r50.case_id)("displayMode", ctx_r53.ICON);
35018
+ i0.ɵɵproperty("caseId", result_r51.case_id)("displayMode", ctx_r54.ICON);
35020
35019
  } }
35021
35020
  function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
35022
35021
  i0.ɵɵelementStart(0, "tr");
35023
35022
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 5, "td", 8);
35024
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 30);
35023
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 31);
35025
35024
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 0);
35026
35025
  i0.ɵɵelementEnd();
35027
35026
  } if (rf & 2) {
35028
- const ctx_r49 = i0.ɵɵnextContext(3);
35027
+ const ctx_r50 = i0.ɵɵnextContext(3);
35029
35028
  i0.ɵɵadvance(1);
35030
- i0.ɵɵproperty("ngIf", ctx_r49.selectionEnabled);
35029
+ i0.ɵɵproperty("ngIf", ctx_r50.selectionEnabled);
35031
35030
  i0.ɵɵadvance(1);
35032
- i0.ɵɵproperty("ngForOf", ctx_r49.resultView.columns);
35031
+ i0.ɵɵproperty("ngForOf", ctx_r50.resultView.columns);
35033
35032
  i0.ɵɵadvance(1);
35034
- i0.ɵɵproperty("ngIf", ctx_r49.activityEnabled());
35033
+ i0.ɵɵproperty("ngIf", ctx_r50.activityEnabled());
35035
35034
  } }
35036
35035
  function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) { if (rf & 1) {
35037
35036
  i0.ɵɵelementContainerStart(0);
35038
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 9);
35037
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 30);
35039
35038
  i0.ɵɵpipe(2, "paginate");
35040
35039
  i0.ɵɵpipe(3, "ccdSortSearchResult");
35041
35040
  i0.ɵɵelementContainerEnd();
@@ -35050,12 +35049,12 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
35050
35049
  i0.ɵɵpipe(4, "rpxTranslate");
35051
35050
  i0.ɵɵelementEnd();
35052
35051
  i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 4);
35053
- i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 17, 18, "div", 5);
35052
+ i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 18, 18, "div", 5);
35054
35053
  i0.ɵɵtemplate(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 6);
35055
35054
  i0.ɵɵelementEnd();
35056
35055
  i0.ɵɵelementStart(8, "thead")(9, "tr", 7);
35057
35056
  i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 8);
35058
- i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 9, 7, "th", 9);
35057
+ i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 6, 5, "th", 9);
35059
35058
  i0.ɵɵtemplate(12, SearchResultComponent_table_0_th_12_Template, 1, 0, "th", 10);
35060
35059
  i0.ɵɵelementEnd()();
35061
35060
  i0.ɵɵelementStart(13, "tbody");
@@ -35084,16 +35083,16 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
35084
35083
  i0.ɵɵproperty("ngIf", !ctx_r0.consumerSortingEnabled);
35085
35084
  } }
35086
35085
  function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
35087
- const _r78 = i0.ɵɵgetCurrentView();
35088
- i0.ɵɵelementStart(0, "ccd-pagination", 44);
35089
- i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r78); const ctx_r77 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r77.goToPage($event)); });
35086
+ const _r79 = i0.ɵɵgetCurrentView();
35087
+ i0.ɵɵelementStart(0, "ccd-pagination", 45);
35088
+ i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r79); const ctx_r78 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r78.goToPage($event)); });
35090
35089
  i0.ɵɵelementEnd();
35091
35090
  } if (rf & 2) {
35092
35091
  const ctx_r1 = i0.ɵɵnextContext();
35093
35092
  i0.ɵɵproperty("visibilityLabel", ctx_r1.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r1.page)("screenReaderCurrentLabel", "You're on page");
35094
35093
  } }
35095
35094
  function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
35096
- i0.ɵɵelementStart(0, "div", 45);
35095
+ i0.ɵɵelementStart(0, "div", 46);
35097
35096
  i0.ɵɵpipe(1, "rpxTranslate");
35098
35097
  i0.ɵɵtext(2);
35099
35098
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -35376,24 +35375,11 @@ class SearchResultComponent {
35376
35375
  return result.case_id.startsWith(DRAFT_PREFIX) ? DRAFT_PREFIX : this.hyphenateIfCaseReferenceOrGet(col, result);
35377
35376
  }
35378
35377
  isSortAscending(column) {
35379
- const currentSortOrder = this.currentSortOrder(column);
35380
- return currentSortOrder === SortOrder$1.UNSORTED || currentSortOrder === SortOrder$1.DESCENDING;
35381
- }
35382
- currentSortOrder(column) {
35383
- let isAscending = true;
35384
- let isDescending = true;
35385
- if (this.comparator(column) === undefined) {
35386
- return SortOrder$1.UNSORTED;
35387
- }
35388
- for (let i = 0; i < this.resultView.results.length - 1; i++) {
35389
- const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
35390
- isDescending = isDescending && comparison <= 0;
35391
- isAscending = isAscending && comparison >= 0;
35392
- if (!isAscending && !isDescending) {
35393
- break;
35394
- }
35378
+ // simple way to determine if the column param is sorted and if its asc/desc
35379
+ if (this.consumerSortParameters.column === column.case_field_id) {
35380
+ return this.consumerSortParameters.order === SortOrder$1.ASCENDING;
35395
35381
  }
35396
- return isAscending ? SortOrder$1.ASCENDING : isDescending ? SortOrder$1.DESCENDING : SortOrder$1.UNSORTED;
35382
+ return null;
35397
35383
  }
35398
35384
  getFirstResult() {
35399
35385
  const currentPage = (this.selected.page ? this.selected.page : 1);
@@ -35432,12 +35418,14 @@ class SearchResultComponent {
35432
35418
  }
35433
35419
  }
35434
35420
  }
35421
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
35422
+ noop() { }
35435
35423
  }
35436
35424
  SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
35437
35425
  SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
35438
35426
  SearchResultComponent.PARAM_CASE_STATE = 'case-state';
35439
35427
  SearchResultComponent.ɵ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)); };
35440
- SearchResultComponent.ɵ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: [[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", "role", "status", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [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"], ["role", "status", 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, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [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"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
35428
+ SearchResultComponent.ɵ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: [[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, "checked", "disabled", "change"], ["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, "innerHTML", "click"], [2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [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"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
35441
35429
  i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 0);
35442
35430
  i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
35443
35431
  i0.ɵɵtemplate(2, SearchResultComponent_div_2_Template, 4, 6, "div", 2);
@@ -35450,7 +35438,7 @@ SearchResultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Searc
35450
35438
  } }, styles: ["table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:top}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:16px;word-wrap:break-word}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{float:left}table[_ngcontent-%COMP%] .caseid-col[_ngcontent-%COMP%]{white-space:nowrap}.notification[_ngcontent-%COMP%]{text-align:center;padding:30px 0;margin-top:75px}a[_ngcontent-%COMP%]:hover{color:#005ea5}.search-result-reset-link[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px}.search-result-column-header[_ngcontent-%COMP%]{width:unset;table-layout:normal}.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:block;float:right}}.search-result-column-label[_ngcontent-%COMP%]{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort[_ngcontent-%COMP%]{font-size:16px}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium[_ngcontent-%COMP%]{margin-top:-20px}.govuk-table__checkbox[_ngcontent-%COMP%]{vertical-align:middle;padding-left:3px}#search-result-heading__text[_ngcontent-%COMP%]:focus{outline:none}"] });
35451
35439
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
35452
35440
  type: Component,
35453
- 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 [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\" role=\"status\">\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\">\n <table class=\"search-result-column-header\"\n [attr.aria-label]=\"('Sort by ' + col.label + ' ' + isSortAscending(col)? 'ascending' : 'descending') | rpxTranslate\">\n <tr>\n <th>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\">\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 </th>\n </tr>\n </table>\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"] }]
35441
+ 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"] }]
35454
35442
  }], function () { return [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }]; }, { caseLinkUrlTemplate: [{
35455
35443
  type: Input
35456
35444
  }], jurisdiction: [{