@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.
@@ -37589,44 +37589,46 @@ function SearchResultComponent_table_0_div_5_Template(rf, ctx) {
37589
37589
  function SearchResultComponent_table_0_div_6_Template(rf, ctx) {
37590
37590
  if (rf & 1) {
37591
37591
  i0.ɵɵelementStart(0, "div", 15);
37592
- i0.ɵɵpipe(1, "rpxTranslate");
37593
- i0.ɵɵelementStart(2, "span", 16);
37594
- i0.ɵɵtext(3);
37595
- i0.ɵɵpipe(4, "rpxTranslate");
37596
- i0.ɵɵelementStart(5, "span", 17);
37597
- i0.ɵɵtext(6);
37598
- i0.ɵɵelementEnd();
37592
+ i0.ɵɵelement(1, "output");
37593
+ i0.ɵɵpipe(2, "rpxTranslate");
37594
+ i0.ɵɵelementStart(3, "span", 16);
37595
+ i0.ɵɵtext(4);
37596
+ i0.ɵɵpipe(5, "rpxTranslate");
37597
+ i0.ɵɵelementStart(6, "span", 17);
37599
37598
  i0.ɵɵtext(7);
37600
- i0.ɵɵpipe(8, "rpxTranslate");
37601
- i0.ɵɵelementStart(9, "span", 17);
37602
- i0.ɵɵtext(10);
37603
37599
  i0.ɵɵelementEnd();
37600
+ i0.ɵɵtext(8);
37601
+ i0.ɵɵpipe(9, "rpxTranslate");
37602
+ i0.ɵɵelementStart(10, "span", 17);
37604
37603
  i0.ɵɵtext(11);
37605
- i0.ɵɵpipe(12, "rpxTranslate");
37606
- i0.ɵɵelementStart(13, "span", 17);
37607
- i0.ɵɵtext(14);
37608
37604
  i0.ɵɵelementEnd();
37605
+ i0.ɵɵtext(12);
37606
+ i0.ɵɵpipe(13, "rpxTranslate");
37607
+ i0.ɵɵelementStart(14, "span", 17);
37609
37608
  i0.ɵɵtext(15);
37610
- i0.ɵɵpipe(16, "rpxTranslate");
37609
+ i0.ɵɵelementEnd();
37610
+ i0.ɵɵtext(16);
37611
+ i0.ɵɵpipe(17, "rpxTranslate");
37611
37612
  i0.ɵɵelementEnd()();
37612
37613
  }
37613
37614
  if (rf & 2) {
37614
37615
  const ctx_r4 = i0.ɵɵnextContext(2);
37615
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 8, ctx_r4.getTotalResults() + " results have been found"));
37616
+ i0.ɵɵadvance(1);
37617
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r4.getTotalResults() + " results have been found"));
37616
37618
  i0.ɵɵadvance(3);
37617
- i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 10, "Showing"), " ");
37619
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
37618
37620
  i0.ɵɵadvance(3);
37619
37621
  i0.ɵɵtextInterpolate(ctx_r4.getFirstResult());
37620
37622
  i0.ɵɵadvance(1);
37621
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 12, "to"), " ");
37623
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, "to"), " ");
37622
37624
  i0.ɵɵadvance(3);
37623
37625
  i0.ɵɵtextInterpolate(ctx_r4.getLastResult());
37624
37626
  i0.ɵɵadvance(1);
37625
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, "of"), " ");
37627
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 14, "of"), " ");
37626
37628
  i0.ɵɵadvance(3);
37627
37629
  i0.ɵɵtextInterpolate(ctx_r4.getTotalResults());
37628
37630
  i0.ɵɵadvance(1);
37629
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 16, "results"), "");
37631
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 16, "results"), "");
37630
37632
  }
37631
37633
  }
37632
37634
  function SearchResultComponent_table_0_div_7_Template(rf, ctx) {
@@ -37661,11 +37663,11 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) {
37661
37663
  i0.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
37662
37664
  }
37663
37665
  }
37664
- function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) {
37666
+ function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) {
37665
37667
  if (rf & 1) {
37666
37668
  const _r19 = i0.ɵɵgetCurrentView();
37667
37669
  i0.ɵɵelementStart(0, "div", 27)(1, "a", 28);
37668
- 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)); });
37670
+ 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)); });
37669
37671
  i0.ɵɵelementEnd()();
37670
37672
  }
37671
37673
  if (rf & 2) {
@@ -37678,23 +37680,20 @@ function SearchResultComponent_table_0_th_11_div_8_Template(rf, ctx) {
37678
37680
  function SearchResultComponent_table_0_th_11_Template(rf, ctx) {
37679
37681
  if (rf & 1) {
37680
37682
  const _r22 = i0.ɵɵgetCurrentView();
37681
- i0.ɵɵelementStart(0, "th")(1, "table", 24);
37682
- i0.ɵɵpipe(2, "rpxTranslate");
37683
- i0.ɵɵelementStart(3, "tr")(4, "th")(5, "div", 25);
37684
- 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)); });
37685
- i0.ɵɵtext(6);
37686
- i0.ɵɵpipe(7, "rpxTranslate");
37683
+ i0.ɵɵelementStart(0, "th", 24)(1, "div")(2, "div", 25);
37684
+ 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()); });
37685
+ i0.ɵɵtext(3);
37686
+ i0.ɵɵpipe(4, "rpxTranslate");
37687
37687
  i0.ɵɵelementEnd();
37688
- i0.ɵɵtemplate(8, SearchResultComponent_table_0_th_11_div_8_Template, 2, 1, "div", 26);
37689
- i0.ɵɵelementEnd()()()();
37688
+ i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 26);
37689
+ i0.ɵɵelementEnd()();
37690
37690
  }
37691
37691
  if (rf & 2) {
37692
37692
  const col_r15 = ctx.$implicit;
37693
37693
  const ctx_r7 = i0.ɵɵnextContext(2);
37694
- i0.ɵɵadvance(1);
37695
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 3, "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending"));
37696
- i0.ɵɵadvance(5);
37697
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 5, col_r15.label), " ");
37694
+ i0.ɵɵattribute("aria-sort", ctx_r7.isSortAscending(col_r15) === null ? null : ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
37695
+ i0.ɵɵadvance(3);
37696
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r15.label), " ");
37698
37697
  i0.ɵɵadvance(2);
37699
37698
  i0.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
37700
37699
  }
@@ -37706,33 +37705,33 @@ function SearchResultComponent_table_0_th_12_Template(rf, ctx) {
37706
37705
  }
37707
37706
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) {
37708
37707
  if (rf & 1) {
37709
- const _r30 = i0.ɵɵgetCurrentView();
37710
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 31);
37711
- 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)); });
37708
+ const _r31 = i0.ɵɵgetCurrentView();
37709
+ i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 32);
37710
+ 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)); });
37712
37711
  i0.ɵɵelementEnd();
37713
- i0.ɵɵelement(3, "label", 32);
37712
+ i0.ɵɵelement(3, "label", 33);
37714
37713
  i0.ɵɵelementEnd()();
37715
37714
  }
37716
37715
  if (rf & 2) {
37717
- const result_r24 = i0.ɵɵnextContext().$implicit;
37718
- const ctx_r25 = i0.ɵɵnextContext(3);
37716
+ const result_r25 = i0.ɵɵnextContext().$implicit;
37717
+ const ctx_r26 = i0.ɵɵnextContext(3);
37719
37718
  i0.ɵɵadvance(2);
37720
- i0.ɵɵpropertyInterpolate1("id", "select-", result_r24.case_id, "")("name", "select-", result_r24.case_id, "");
37721
- i0.ɵɵproperty("checked", ctx_r25.isSelected(result_r24))("disabled", !ctx_r25.canBeShared(result_r24));
37719
+ i0.ɵɵpropertyInterpolate1("id", "select-", result_r25.case_id, "")("name", "select-", result_r25.case_id, "");
37720
+ i0.ɵɵproperty("checked", ctx_r26.isSelected(result_r25))("disabled", !ctx_r26.canBeShared(result_r25));
37722
37721
  i0.ɵɵadvance(1);
37723
- i0.ɵɵpropertyInterpolate1("for", "select-", result_r24.case_id, "");
37722
+ i0.ɵɵpropertyInterpolate1("for", "select-", result_r25.case_id, "");
37724
37723
  }
37725
37724
  }
37726
37725
  const _c0 = function () { return ["value"]; };
37727
37726
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
37728
37727
  if (rf & 1) {
37729
- i0.ɵɵelement(0, "ccd-field-read", 41);
37728
+ i0.ɵɵelement(0, "ccd-field-read", 42);
37730
37729
  }
37731
37730
  if (rf & 2) {
37732
- const col_r32 = i0.ɵɵnextContext(3).$implicit;
37733
- const result_r24 = i0.ɵɵnextContext().$implicit;
37734
- const ctx_r37 = i0.ɵɵnextContext(3);
37735
- 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));
37731
+ const col_r33 = i0.ɵɵnextContext(3).$implicit;
37732
+ const result_r25 = i0.ɵɵnextContext().$implicit;
37733
+ const ctx_r38 = i0.ɵɵnextContext(3);
37734
+ 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));
37736
37735
  }
37737
37736
  }
37738
37737
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) {
@@ -37741,110 +37740,110 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
37741
37740
  i0.ɵɵpipe(1, "ccdCaseReference");
37742
37741
  }
37743
37742
  if (rf & 2) {
37744
- const result_r24 = i0.ɵɵnextContext(4).$implicit;
37745
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r24.case_id));
37743
+ const result_r25 = i0.ɵɵnextContext(4).$implicit;
37744
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r25.case_id));
37746
37745
  }
37747
37746
  }
37748
37747
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
37749
37748
  if (rf & 1) {
37750
- i0.ɵɵelementContainerStart(0, 38);
37751
- 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);
37752
- 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);
37749
+ i0.ɵɵelementContainerStart(0, 39);
37750
+ 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);
37751
+ 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);
37753
37752
  i0.ɵɵelementContainerEnd();
37754
37753
  }
37755
37754
  if (rf & 2) {
37756
- const _r38 = i0.ɵɵreference(3);
37757
- const col_r32 = i0.ɵɵnextContext(2).$implicit;
37758
- const result_r24 = i0.ɵɵnextContext().$implicit;
37759
- const ctx_r36 = i0.ɵɵnextContext(3);
37755
+ const _r39 = i0.ɵɵreference(3);
37756
+ const col_r33 = i0.ɵɵnextContext(2).$implicit;
37757
+ const result_r25 = i0.ɵɵnextContext().$implicit;
37758
+ const ctx_r37 = i0.ɵɵnextContext(3);
37760
37759
  i0.ɵɵadvance(1);
37761
- i0.ɵɵproperty("ngIf", ctx_r36.draftPrefixOrGet(col_r32, result_r24))("ngIfElse", _r38);
37760
+ i0.ɵɵproperty("ngIf", ctx_r37.draftPrefixOrGet(col_r33, result_r25))("ngIfElse", _r39);
37762
37761
  }
37763
37762
  }
37764
37763
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) {
37765
37764
  if (rf & 1) {
37766
- i0.ɵɵelementStart(0, "a", 36);
37765
+ i0.ɵɵelementStart(0, "a", 37);
37767
37766
  i0.ɵɵpipe(1, "ccdCaseReference");
37768
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
37767
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
37769
37768
  i0.ɵɵelementEnd();
37770
37769
  }
37771
37770
  if (rf & 2) {
37772
- const result_r24 = i0.ɵɵnextContext(2).$implicit;
37773
- const ctx_r34 = i0.ɵɵnextContext(3);
37774
- i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r24.case_id), "");
37775
- i0.ɵɵproperty("routerLink", ctx_r34.prepareCaseLinkUrl(result_r24.case_id));
37771
+ const result_r25 = i0.ɵɵnextContext(2).$implicit;
37772
+ const ctx_r35 = i0.ɵɵnextContext(3);
37773
+ i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r25.case_id), "");
37774
+ i0.ɵɵproperty("routerLink", ctx_r35.prepareCaseLinkUrl(result_r25.case_id));
37776
37775
  i0.ɵɵadvance(2);
37777
- i0.ɵɵproperty("ngIf", !ctx_r34.hideRows);
37776
+ i0.ɵɵproperty("ngIf", !ctx_r35.hideRows);
37778
37777
  }
37779
37778
  }
37780
37779
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) {
37781
37780
  if (rf & 1) {
37782
- i0.ɵɵelementStart(0, "div", 38);
37783
- i0.ɵɵelement(1, "ccd-field-read", 41);
37781
+ i0.ɵɵelementStart(0, "div", 39);
37782
+ i0.ɵɵelement(1, "ccd-field-read", 42);
37784
37783
  i0.ɵɵelementEnd();
37785
37784
  }
37786
37785
  if (rf & 2) {
37787
- const col_r32 = i0.ɵɵnextContext().$implicit;
37788
- const result_r24 = i0.ɵɵnextContext().$implicit;
37789
- const ctx_r35 = i0.ɵɵnextContext(3);
37790
- i0.ɵɵstyleProp("visibility", ctx_r35.hideRows ? "hidden" : "visible");
37786
+ const col_r33 = i0.ɵɵnextContext().$implicit;
37787
+ const result_r25 = i0.ɵɵnextContext().$implicit;
37788
+ const ctx_r36 = i0.ɵɵnextContext(3);
37789
+ i0.ɵɵstyleProp("visibility", ctx_r36.hideRows ? "hidden" : "visible");
37791
37790
  i0.ɵɵadvance(1);
37792
- i0.ɵɵproperty("caseField", result_r24.columns[col_r32.case_field_id])("contextFields", result_r24.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
37791
+ i0.ɵɵproperty("caseField", result_r25.columns[col_r33.case_field_id])("contextFields", result_r25.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
37793
37792
  }
37794
37793
  }
37795
37794
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) {
37796
37795
  if (rf & 1) {
37797
- i0.ɵɵelementStart(0, "td", 33);
37798
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
37799
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
37796
+ i0.ɵɵelementStart(0, "td", 34);
37797
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
37798
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
37800
37799
  i0.ɵɵelementEnd();
37801
37800
  }
37802
37801
  if (rf & 2) {
37803
- const colIndex_r33 = ctx.index;
37802
+ const colIndex_r34 = ctx.index;
37804
37803
  i0.ɵɵadvance(1);
37805
- i0.ɵɵproperty("ngIf", colIndex_r33 == 0);
37804
+ i0.ɵɵproperty("ngIf", colIndex_r34 == 0);
37806
37805
  i0.ɵɵadvance(1);
37807
- i0.ɵɵproperty("ngIf", colIndex_r33 != 0);
37806
+ i0.ɵɵproperty("ngIf", colIndex_r34 != 0);
37808
37807
  }
37809
37808
  }
37810
37809
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) {
37811
37810
  if (rf & 1) {
37812
37811
  i0.ɵɵelementStart(0, "td")(1, "div");
37813
- i0.ɵɵelement(2, "ccd-activity", 42);
37812
+ i0.ɵɵelement(2, "ccd-activity", 43);
37814
37813
  i0.ɵɵelementEnd()();
37815
37814
  }
37816
37815
  if (rf & 2) {
37817
- const result_r24 = i0.ɵɵnextContext().$implicit;
37818
- const ctx_r27 = i0.ɵɵnextContext(3);
37816
+ const result_r25 = i0.ɵɵnextContext().$implicit;
37817
+ const ctx_r28 = i0.ɵɵnextContext(3);
37819
37818
  i0.ɵɵadvance(1);
37820
- i0.ɵɵstyleProp("visibility", ctx_r27.hideRows ? "hidden" : "visible");
37819
+ i0.ɵɵstyleProp("visibility", ctx_r28.hideRows ? "hidden" : "visible");
37821
37820
  i0.ɵɵadvance(1);
37822
- i0.ɵɵproperty("caseId", result_r24.case_id)("displayMode", ctx_r27.ICON);
37821
+ i0.ɵɵproperty("caseId", result_r25.case_id)("displayMode", ctx_r28.ICON);
37823
37822
  }
37824
37823
  }
37825
37824
  function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) {
37826
37825
  if (rf & 1) {
37827
37826
  i0.ɵɵelementStart(0, "tr");
37828
37827
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
37829
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
37828
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
37830
37829
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
37831
37830
  i0.ɵɵelementEnd();
37832
37831
  }
37833
37832
  if (rf & 2) {
37834
- const ctx_r23 = i0.ɵɵnextContext(3);
37833
+ const ctx_r24 = i0.ɵɵnextContext(3);
37835
37834
  i0.ɵɵadvance(1);
37836
- i0.ɵɵproperty("ngIf", ctx_r23.selectionEnabled);
37835
+ i0.ɵɵproperty("ngIf", ctx_r24.selectionEnabled);
37837
37836
  i0.ɵɵadvance(1);
37838
- i0.ɵɵproperty("ngForOf", ctx_r23.resultView.columns);
37837
+ i0.ɵɵproperty("ngForOf", ctx_r24.resultView.columns);
37839
37838
  i0.ɵɵadvance(1);
37840
- i0.ɵɵproperty("ngIf", ctx_r23.activityEnabled());
37839
+ i0.ɵɵproperty("ngIf", ctx_r24.activityEnabled());
37841
37840
  }
37842
37841
  }
37843
37842
  const _c1 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
37844
37843
  function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) {
37845
37844
  if (rf & 1) {
37846
37845
  i0.ɵɵelementContainerStart(0);
37847
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
37846
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 30);
37848
37847
  i0.ɵɵpipe(2, "paginate");
37849
37848
  i0.ɵɵelementContainerEnd();
37850
37849
  }
@@ -37856,32 +37855,32 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) {
37856
37855
  }
37857
37856
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) {
37858
37857
  if (rf & 1) {
37859
- const _r56 = i0.ɵɵgetCurrentView();
37860
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 43);
37861
- 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)); });
37858
+ const _r57 = i0.ɵɵgetCurrentView();
37859
+ i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "input", 44);
37860
+ 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)); });
37862
37861
  i0.ɵɵelementEnd();
37863
- i0.ɵɵelement(3, "label", 32);
37862
+ i0.ɵɵelement(3, "label", 33);
37864
37863
  i0.ɵɵelementEnd()();
37865
37864
  }
37866
37865
  if (rf & 2) {
37867
- const result_r50 = i0.ɵɵnextContext().$implicit;
37868
- const ctx_r51 = i0.ɵɵnextContext(3);
37866
+ const result_r51 = i0.ɵɵnextContext().$implicit;
37867
+ const ctx_r52 = i0.ɵɵnextContext(3);
37869
37868
  i0.ɵɵadvance(2);
37870
- i0.ɵɵpropertyInterpolate1("id", "select-", result_r50.case_id, "")("name", "select-", result_r50.case_id, "");
37871
- i0.ɵɵproperty("checked", ctx_r51.isSelected(result_r50))("disabled", !ctx_r51.canBeShared(result_r50));
37869
+ i0.ɵɵpropertyInterpolate1("id", "select-", result_r51.case_id, "")("name", "select-", result_r51.case_id, "");
37870
+ i0.ɵɵproperty("checked", ctx_r52.isSelected(result_r51))("disabled", !ctx_r52.canBeShared(result_r51));
37872
37871
  i0.ɵɵadvance(1);
37873
- i0.ɵɵpropertyInterpolate1("for", "select-", result_r50.case_id, "");
37872
+ i0.ɵɵpropertyInterpolate1("for", "select-", result_r51.case_id, "");
37874
37873
  }
37875
37874
  }
37876
37875
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
37877
37876
  if (rf & 1) {
37878
- i0.ɵɵelement(0, "ccd-field-read", 41);
37877
+ i0.ɵɵelement(0, "ccd-field-read", 42);
37879
37878
  }
37880
37879
  if (rf & 2) {
37881
- const col_r60 = i0.ɵɵnextContext(3).$implicit;
37882
- const result_r50 = i0.ɵɵnextContext().$implicit;
37883
- const ctx_r65 = i0.ɵɵnextContext(3);
37884
- 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));
37880
+ const col_r61 = i0.ɵɵnextContext(3).$implicit;
37881
+ const result_r51 = i0.ɵɵnextContext().$implicit;
37882
+ const ctx_r66 = i0.ɵɵnextContext(3);
37883
+ 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));
37885
37884
  }
37886
37885
  }
37887
37886
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template(rf, ctx) {
@@ -37890,109 +37889,109 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
37890
37889
  i0.ɵɵpipe(1, "ccdCaseReference");
37891
37890
  }
37892
37891
  if (rf & 2) {
37893
- const result_r50 = i0.ɵɵnextContext(4).$implicit;
37894
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r50.case_id));
37892
+ const result_r51 = i0.ɵɵnextContext(4).$implicit;
37893
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r51.case_id));
37895
37894
  }
37896
37895
  }
37897
37896
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
37898
37897
  if (rf & 1) {
37899
- i0.ɵɵelementContainerStart(0, 38);
37900
- 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);
37901
- 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);
37898
+ i0.ɵɵelementContainerStart(0, 39);
37899
+ 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);
37900
+ 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);
37902
37901
  i0.ɵɵelementContainerEnd();
37903
37902
  }
37904
37903
  if (rf & 2) {
37905
- const _r66 = i0.ɵɵreference(3);
37906
- const col_r60 = i0.ɵɵnextContext(2).$implicit;
37907
- const result_r50 = i0.ɵɵnextContext().$implicit;
37908
- const ctx_r64 = i0.ɵɵnextContext(3);
37904
+ const _r67 = i0.ɵɵreference(3);
37905
+ const col_r61 = i0.ɵɵnextContext(2).$implicit;
37906
+ const result_r51 = i0.ɵɵnextContext().$implicit;
37907
+ const ctx_r65 = i0.ɵɵnextContext(3);
37909
37908
  i0.ɵɵadvance(1);
37910
- i0.ɵɵproperty("ngIf", ctx_r64.draftPrefixOrGet(col_r60, result_r50))("ngIfElse", _r66);
37909
+ i0.ɵɵproperty("ngIf", ctx_r65.draftPrefixOrGet(col_r61, result_r51))("ngIfElse", _r67);
37911
37910
  }
37912
37911
  }
37913
37912
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) {
37914
37913
  if (rf & 1) {
37915
- i0.ɵɵelementStart(0, "a", 36);
37914
+ i0.ɵɵelementStart(0, "a", 37);
37916
37915
  i0.ɵɵpipe(1, "ccdCaseReference");
37917
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
37916
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
37918
37917
  i0.ɵɵelementEnd();
37919
37918
  }
37920
37919
  if (rf & 2) {
37921
- const result_r50 = i0.ɵɵnextContext(2).$implicit;
37922
- const ctx_r62 = i0.ɵɵnextContext(3);
37923
- i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r50.case_id), "");
37924
- i0.ɵɵproperty("routerLink", ctx_r62.prepareCaseLinkUrl(result_r50.case_id));
37920
+ const result_r51 = i0.ɵɵnextContext(2).$implicit;
37921
+ const ctx_r63 = i0.ɵɵnextContext(3);
37922
+ i0.ɵɵattributeInterpolate1("aria-label", "go to case with Case reference:", i0.ɵɵpipeBind1(1, 3, result_r51.case_id), "");
37923
+ i0.ɵɵproperty("routerLink", ctx_r63.prepareCaseLinkUrl(result_r51.case_id));
37925
37924
  i0.ɵɵadvance(2);
37926
- i0.ɵɵproperty("ngIf", !ctx_r62.hideRows);
37925
+ i0.ɵɵproperty("ngIf", !ctx_r63.hideRows);
37927
37926
  }
37928
37927
  }
37929
37928
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) {
37930
37929
  if (rf & 1) {
37931
- i0.ɵɵelementStart(0, "div", 38);
37932
- i0.ɵɵelement(1, "ccd-field-read", 41);
37930
+ i0.ɵɵelementStart(0, "div", 39);
37931
+ i0.ɵɵelement(1, "ccd-field-read", 42);
37933
37932
  i0.ɵɵelementEnd();
37934
37933
  }
37935
37934
  if (rf & 2) {
37936
- const col_r60 = i0.ɵɵnextContext().$implicit;
37937
- const result_r50 = i0.ɵɵnextContext().$implicit;
37938
- const ctx_r63 = i0.ɵɵnextContext(3);
37939
- i0.ɵɵstyleProp("visibility", ctx_r63.hideRows ? "hidden" : "visible");
37935
+ const col_r61 = i0.ɵɵnextContext().$implicit;
37936
+ const result_r51 = i0.ɵɵnextContext().$implicit;
37937
+ const ctx_r64 = i0.ɵɵnextContext(3);
37938
+ i0.ɵɵstyleProp("visibility", ctx_r64.hideRows ? "hidden" : "visible");
37940
37939
  i0.ɵɵadvance(1);
37941
- i0.ɵɵproperty("caseField", result_r50.columns[col_r60.case_field_id])("contextFields", result_r50.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
37940
+ i0.ɵɵproperty("caseField", result_r51.columns[col_r61.case_field_id])("contextFields", result_r51.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c0));
37942
37941
  }
37943
37942
  }
37944
37943
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) {
37945
37944
  if (rf & 1) {
37946
- i0.ɵɵelementStart(0, "td", 33);
37947
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
37948
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
37945
+ i0.ɵɵelementStart(0, "td", 34);
37946
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
37947
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
37949
37948
  i0.ɵɵelementEnd();
37950
37949
  }
37951
37950
  if (rf & 2) {
37952
- const colIndex_r61 = ctx.index;
37951
+ const colIndex_r62 = ctx.index;
37953
37952
  i0.ɵɵadvance(1);
37954
- i0.ɵɵproperty("ngIf", colIndex_r61 == 0);
37953
+ i0.ɵɵproperty("ngIf", colIndex_r62 == 0);
37955
37954
  i0.ɵɵadvance(1);
37956
- i0.ɵɵproperty("ngIf", colIndex_r61 != 0);
37955
+ i0.ɵɵproperty("ngIf", colIndex_r62 != 0);
37957
37956
  }
37958
37957
  }
37959
37958
  function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) {
37960
37959
  if (rf & 1) {
37961
37960
  i0.ɵɵelementStart(0, "td")(1, "div");
37962
- i0.ɵɵelement(2, "ccd-activity", 42);
37961
+ i0.ɵɵelement(2, "ccd-activity", 43);
37963
37962
  i0.ɵɵelementEnd()();
37964
37963
  }
37965
37964
  if (rf & 2) {
37966
- const result_r50 = i0.ɵɵnextContext().$implicit;
37967
- const ctx_r53 = i0.ɵɵnextContext(3);
37965
+ const result_r51 = i0.ɵɵnextContext().$implicit;
37966
+ const ctx_r54 = i0.ɵɵnextContext(3);
37968
37967
  i0.ɵɵadvance(1);
37969
- i0.ɵɵstyleProp("visibility", ctx_r53.hideRows ? "hidden" : "visible");
37968
+ i0.ɵɵstyleProp("visibility", ctx_r54.hideRows ? "hidden" : "visible");
37970
37969
  i0.ɵɵadvance(1);
37971
- i0.ɵɵproperty("caseId", result_r50.case_id)("displayMode", ctx_r53.ICON);
37970
+ i0.ɵɵproperty("caseId", result_r51.case_id)("displayMode", ctx_r54.ICON);
37972
37971
  }
37973
37972
  }
37974
37973
  function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) {
37975
37974
  if (rf & 1) {
37976
37975
  i0.ɵɵelementStart(0, "tr");
37977
37976
  i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 5, "td", 8);
37978
- i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 30);
37977
+ i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 31);
37979
37978
  i0.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 0);
37980
37979
  i0.ɵɵelementEnd();
37981
37980
  }
37982
37981
  if (rf & 2) {
37983
- const ctx_r49 = i0.ɵɵnextContext(3);
37982
+ const ctx_r50 = i0.ɵɵnextContext(3);
37984
37983
  i0.ɵɵadvance(1);
37985
- i0.ɵɵproperty("ngIf", ctx_r49.selectionEnabled);
37984
+ i0.ɵɵproperty("ngIf", ctx_r50.selectionEnabled);
37986
37985
  i0.ɵɵadvance(1);
37987
- i0.ɵɵproperty("ngForOf", ctx_r49.resultView.columns);
37986
+ i0.ɵɵproperty("ngForOf", ctx_r50.resultView.columns);
37988
37987
  i0.ɵɵadvance(1);
37989
- i0.ɵɵproperty("ngIf", ctx_r49.activityEnabled());
37988
+ i0.ɵɵproperty("ngIf", ctx_r50.activityEnabled());
37990
37989
  }
37991
37990
  }
37992
37991
  function SearchResultComponent_table_0_ng_container_15_Template(rf, ctx) {
37993
37992
  if (rf & 1) {
37994
37993
  i0.ɵɵelementContainerStart(0);
37995
- i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 9);
37994
+ i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_Template, 4, 3, "tr", 30);
37996
37995
  i0.ɵɵpipe(2, "paginate");
37997
37996
  i0.ɵɵpipe(3, "ccdSortSearchResult");
37998
37997
  i0.ɵɵelementContainerEnd();
@@ -38010,12 +38009,12 @@ function SearchResultComponent_table_0_Template(rf, ctx) {
38010
38009
  i0.ɵɵpipe(4, "rpxTranslate");
38011
38010
  i0.ɵɵelementEnd();
38012
38011
  i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 4);
38013
- i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 17, 18, "div", 5);
38012
+ i0.ɵɵtemplate(6, SearchResultComponent_table_0_div_6_Template, 18, 18, "div", 5);
38014
38013
  i0.ɵɵtemplate(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 6);
38015
38014
  i0.ɵɵelementEnd();
38016
38015
  i0.ɵɵelementStart(8, "thead")(9, "tr", 7);
38017
38016
  i0.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 2, "th", 8);
38018
- i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 9, 7, "th", 9);
38017
+ i0.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 6, 5, "th", 9);
38019
38018
  i0.ɵɵtemplate(12, SearchResultComponent_table_0_th_12_Template, 1, 0, "th", 10);
38020
38019
  i0.ɵɵelementEnd()();
38021
38020
  i0.ɵɵelementStart(13, "tbody");
@@ -38047,9 +38046,9 @@ function SearchResultComponent_table_0_Template(rf, ctx) {
38047
38046
  }
38048
38047
  function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
38049
38048
  if (rf & 1) {
38050
- const _r78 = i0.ɵɵgetCurrentView();
38051
- i0.ɵɵelementStart(0, "ccd-pagination", 44);
38052
- 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)); });
38049
+ const _r79 = i0.ɵɵgetCurrentView();
38050
+ i0.ɵɵelementStart(0, "ccd-pagination", 45);
38051
+ 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)); });
38053
38052
  i0.ɵɵelementEnd();
38054
38053
  }
38055
38054
  if (rf & 2) {
@@ -38059,7 +38058,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
38059
38058
  }
38060
38059
  function SearchResultComponent_div_2_Template(rf, ctx) {
38061
38060
  if (rf & 1) {
38062
- i0.ɵɵelementStart(0, "div", 45);
38061
+ i0.ɵɵelementStart(0, "div", 46);
38063
38062
  i0.ɵɵpipe(1, "rpxTranslate");
38064
38063
  i0.ɵɵtext(2);
38065
38064
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -38344,24 +38343,11 @@ class SearchResultComponent {
38344
38343
  return result.case_id.startsWith(DRAFT_PREFIX) ? DRAFT_PREFIX : this.hyphenateIfCaseReferenceOrGet(col, result);
38345
38344
  }
38346
38345
  isSortAscending(column) {
38347
- const currentSortOrder = this.currentSortOrder(column);
38348
- return currentSortOrder === SortOrder$1.UNSORTED || currentSortOrder === SortOrder$1.DESCENDING;
38349
- }
38350
- currentSortOrder(column) {
38351
- let isAscending = true;
38352
- let isDescending = true;
38353
- if (this.comparator(column) === undefined) {
38354
- return SortOrder$1.UNSORTED;
38355
- }
38356
- for (let i = 0; i < this.resultView.results.length - 1; i++) {
38357
- const comparison = this.comparator(column).compare(this.resultView.results[i], this.resultView.results[i + 1]);
38358
- isDescending = isDescending && comparison <= 0;
38359
- isAscending = isAscending && comparison >= 0;
38360
- if (!isAscending && !isDescending) {
38361
- break;
38362
- }
38346
+ // simple way to determine if the column param is sorted and if its asc/desc
38347
+ if (this.consumerSortParameters.column === column.case_field_id) {
38348
+ return this.consumerSortParameters.order === SortOrder$1.ASCENDING;
38363
38349
  }
38364
- return isAscending ? SortOrder$1.ASCENDING : isDescending ? SortOrder$1.DESCENDING : SortOrder$1.UNSORTED;
38350
+ return null;
38365
38351
  }
38366
38352
  getFirstResult() {
38367
38353
  const currentPage = (this.selected.page ? this.selected.page : 1);
@@ -38400,12 +38386,14 @@ class SearchResultComponent {
38400
38386
  }
38401
38387
  }
38402
38388
  }
38389
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
38390
+ noop() { }
38403
38391
  }
38404
38392
  SearchResultComponent.PARAM_JURISDICTION = 'jurisdiction';
38405
38393
  SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
38406
38394
  SearchResultComponent.PARAM_CASE_STATE = 'case-state';
38407
38395
  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)); };
38408
- 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) {
38396
+ 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) {
38409
38397
  if (rf & 1) {
38410
38398
  i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 0);
38411
38399
  i0.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
@@ -38422,7 +38410,7 @@ SearchResultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Searc
38422
38410
  (function () {
38423
38411
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
38424
38412
  type: Component,
38425
- 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"] }]
38413
+ 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"] }]
38426
38414
  }], function () { return [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }]; }, { caseLinkUrlTemplate: [{
38427
38415
  type: Input
38428
38416
  }], jurisdiction: [{