@hmcts/ccd-case-ui-toolkit 7.1.71 → 7.1.72-exui-2703-rc1

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.
@@ -32464,8 +32464,8 @@ class CaseListModule {
32464
32464
  NgxPaginationModule,
32465
32465
  PaginationModule, i1.RpxTranslationModule], exports: [CaseListComponent] }); })();
32466
32466
 
32467
- function WorkbasketFiltersComponent_option_9_Template(rf, ctx) { if (rf & 1) {
32468
- i0.ɵɵelementStart(0, "option", 11);
32467
+ function WorkbasketFiltersComponent_option_21_Template(rf, ctx) { if (rf & 1) {
32468
+ i0.ɵɵelementStart(0, "option", 14);
32469
32469
  i0.ɵɵtext(1);
32470
32470
  i0.ɵɵpipe(2, "rpxTranslate");
32471
32471
  i0.ɵɵelementEnd();
@@ -32474,8 +32474,8 @@ function WorkbasketFiltersComponent_option_9_Template(rf, ctx) { if (rf & 1) {
32474
32474
  i0.ɵɵadvance();
32475
32475
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Select a value"));
32476
32476
  } }
32477
- function WorkbasketFiltersComponent_option_10_Template(rf, ctx) { if (rf & 1) {
32478
- i0.ɵɵelementStart(0, "option", 11);
32477
+ function WorkbasketFiltersComponent_option_22_Template(rf, ctx) { if (rf & 1) {
32478
+ i0.ɵɵelementStart(0, "option", 14);
32479
32479
  i0.ɵɵtext(1);
32480
32480
  i0.ɵɵpipe(2, "rpxTranslate");
32481
32481
  i0.ɵɵelementEnd();
@@ -32485,8 +32485,8 @@ function WorkbasketFiltersComponent_option_10_Template(rf, ctx) { if (rf & 1) {
32485
32485
  i0.ɵɵadvance();
32486
32486
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, j_r1.name));
32487
32487
  } }
32488
- function WorkbasketFiltersComponent_option_16_Template(rf, ctx) { if (rf & 1) {
32489
- i0.ɵɵelementStart(0, "option", 11);
32488
+ function WorkbasketFiltersComponent_option_28_Template(rf, ctx) { if (rf & 1) {
32489
+ i0.ɵɵelementStart(0, "option", 14);
32490
32490
  i0.ɵɵtext(1);
32491
32491
  i0.ɵɵpipe(2, "rpxTranslate");
32492
32492
  i0.ɵɵelementEnd();
@@ -32495,8 +32495,8 @@ function WorkbasketFiltersComponent_option_16_Template(rf, ctx) { if (rf & 1) {
32495
32495
  i0.ɵɵadvance();
32496
32496
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Select a value"));
32497
32497
  } }
32498
- function WorkbasketFiltersComponent_option_17_Template(rf, ctx) { if (rf & 1) {
32499
- i0.ɵɵelementStart(0, "option", 11);
32498
+ function WorkbasketFiltersComponent_option_29_Template(rf, ctx) { if (rf & 1) {
32499
+ i0.ɵɵelementStart(0, "option", 14);
32500
32500
  i0.ɵɵtext(1);
32501
32501
  i0.ɵɵpipe(2, "rpxTranslate");
32502
32502
  i0.ɵɵelementEnd();
@@ -32506,8 +32506,8 @@ function WorkbasketFiltersComponent_option_17_Template(rf, ctx) { if (rf & 1) {
32506
32506
  i0.ɵɵadvance();
32507
32507
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ct_r2.name));
32508
32508
  } }
32509
- function WorkbasketFiltersComponent_option_26_Template(rf, ctx) { if (rf & 1) {
32510
- i0.ɵɵelementStart(0, "option", 11);
32509
+ function WorkbasketFiltersComponent_option_38_Template(rf, ctx) { if (rf & 1) {
32510
+ i0.ɵɵelementStart(0, "option", 14);
32511
32511
  i0.ɵɵtext(1);
32512
32512
  i0.ɵɵpipe(2, "rpxTranslate");
32513
32513
  i0.ɵɵelementEnd();
@@ -32517,10 +32517,10 @@ function WorkbasketFiltersComponent_option_26_Template(rf, ctx) { if (rf & 1) {
32517
32517
  i0.ɵɵadvance();
32518
32518
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, cs_r3.name));
32519
32519
  } }
32520
- function WorkbasketFiltersComponent_ng_container_27_div_2_Template(rf, ctx) { if (rf & 1) {
32520
+ function WorkbasketFiltersComponent_ng_container_39_div_2_Template(rf, ctx) { if (rf & 1) {
32521
32521
  const _r4 = i0.ɵɵgetCurrentView();
32522
- i0.ɵɵelementStart(0, "div", 2)(1, "ccd-field-write", 18);
32523
- i0.ɵɵlistener("keyup.enter", function WorkbasketFiltersComponent_ng_container_27_div_2_Template_ccd_field_write_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.apply(null)); });
32522
+ i0.ɵɵelementStart(0, "div", 5)(1, "ccd-field-write", 20);
32523
+ i0.ɵɵlistener("keyup.enter", function WorkbasketFiltersComponent_ng_container_39_div_2_Template_ccd_field_write_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.apply(null)); });
32524
32524
  i0.ɵɵelementEnd()();
32525
32525
  } if (rf & 2) {
32526
32526
  const workbasketInput_r6 = ctx.$implicit;
@@ -32528,10 +32528,10 @@ function WorkbasketFiltersComponent_ng_container_27_div_2_Template(rf, ctx) { if
32528
32528
  i0.ɵɵadvance();
32529
32529
  i0.ɵɵproperty("caseField", workbasketInput_r6.field)("formGroup", ctx_r4.formGroup)("isExpanded", true)("isInSearchBlock", true);
32530
32530
  } }
32531
- function WorkbasketFiltersComponent_ng_container_27_Template(rf, ctx) { if (rf & 1) {
32532
- i0.ɵɵelementContainerStart(0, 15);
32533
- i0.ɵɵelementStart(1, "div", 16);
32534
- i0.ɵɵtemplate(2, WorkbasketFiltersComponent_ng_container_27_div_2_Template, 2, 4, "div", 17);
32531
+ function WorkbasketFiltersComponent_ng_container_39_Template(rf, ctx) { if (rf & 1) {
32532
+ i0.ɵɵelementContainerStart(0, 17);
32533
+ i0.ɵɵelementStart(1, "div", 18);
32534
+ i0.ɵɵtemplate(2, WorkbasketFiltersComponent_ng_container_39_div_2_Template, 2, 4, "div", 19);
32535
32535
  i0.ɵɵelementEnd();
32536
32536
  i0.ɵɵelementContainerEnd();
32537
32537
  } if (rf & 2) {
@@ -32574,6 +32574,15 @@ class WorkbasketFiltersComponent {
32574
32574
  this.alertService = alertService;
32575
32575
  this.windowService = windowService;
32576
32576
  }
32577
+ scrollToTop() {
32578
+ (function smoothscroll() {
32579
+ const currentScroll = document.documentElement.scrollTop || document.body.scrollTop;
32580
+ if (currentScroll > 0) {
32581
+ window.requestAnimationFrame(smoothscroll);
32582
+ window.scrollTo(0, currentScroll - (currentScroll / 8));
32583
+ }
32584
+ })();
32585
+ }
32577
32586
  ngOnInit() {
32578
32587
  this.selected = {};
32579
32588
  this.route.queryParams.subscribe(params => {
@@ -32834,62 +32843,79 @@ class WorkbasketFiltersComponent {
32834
32843
  }
32835
32844
  }
32836
32845
  static ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(WorkbasketInputFilterService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(WindowService)); };
32837
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 39, vars: 46, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel", "disabled"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "ngModel", "disabled"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", 1, "button", "workbasket-filters-apply", 3, "click", "disabled", "title"], ["type", "button", 1, "button", "button-secondary", 3, "click", "title"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "keyup.enter", "caseField", "formGroup", "isExpanded", "isInSearchBlock"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) { if (rf & 1) {
32838
- i0.ɵɵelementStart(0, "h2", 0);
32839
- i0.ɵɵtext(1);
32840
- i0.ɵɵpipe(2, "rpxTranslate");
32846
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 45, vars: 55, consts: [["id", "filters", 1, "global-display"], [1, "form-group", "flex"], ["aria-label", "Filters", 1, "heading-h2"], ["type", "button", 1, "button", "workbasket-filters-apply", 3, "click", "disabled", "title"], ["type", "button", 1, "button", "button-secondary", 3, "click", "title"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel", "disabled"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModelChange", "ngModel", "disabled"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", 1, "button", 3, "click", "title"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "keyup.enter", "caseField", "formGroup", "isExpanded", "isInSearchBlock"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) { if (rf & 1) {
32847
+ i0.ɵɵelementStart(0, "form", 0)(1, "div", 1)(2, "fieldset", 2);
32848
+ i0.ɵɵtext(3);
32849
+ i0.ɵɵpipe(4, "rpxTranslate");
32841
32850
  i0.ɵɵelementEnd();
32842
- i0.ɵɵelementStart(3, "form", 1)(4, "div", 2)(5, "label", 3);
32843
- i0.ɵɵtext(6);
32851
+ i0.ɵɵelementStart(5, "button", 3);
32852
+ i0.ɵɵpipe(6, "rpxTranslate");
32844
32853
  i0.ɵɵpipe(7, "rpxTranslate");
32854
+ i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_5_listener() { return ctx.apply(true); });
32855
+ i0.ɵɵtext(8);
32856
+ i0.ɵɵpipe(9, "rpxTranslate");
32845
32857
  i0.ɵɵelementEnd();
32846
- i0.ɵɵelementStart(8, "select", 4);
32847
- i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_8_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.jurisdiction, $event) || (ctx.selected.jurisdiction = $event); return $event; });
32848
- i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_8_listener() { return ctx.onJurisdictionIdChange(); });
32849
- i0.ɵɵtemplate(9, WorkbasketFiltersComponent_option_9_Template, 3, 4, "option", 5)(10, WorkbasketFiltersComponent_option_10_Template, 3, 4, "option", 6);
32858
+ i0.ɵɵtext(10, "\u00A0\u00A0\u00A0 ");
32859
+ i0.ɵɵelementStart(11, "button", 4);
32860
+ i0.ɵɵpipe(12, "rpxTranslate");
32861
+ i0.ɵɵpipe(13, "rpxTranslate");
32862
+ i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_11_listener() { return ctx.reset(); });
32863
+ i0.ɵɵtext(14);
32864
+ i0.ɵɵpipe(15, "rpxTranslate");
32850
32865
  i0.ɵɵelementEnd()();
32851
- i0.ɵɵelementStart(11, "div", 2)(12, "label", 7);
32852
- i0.ɵɵtext(13);
32853
- i0.ɵɵpipe(14, "rpxTranslate");
32866
+ i0.ɵɵelementStart(16, "div", 5)(17, "label", 6);
32867
+ i0.ɵɵtext(18);
32868
+ i0.ɵɵpipe(19, "rpxTranslate");
32854
32869
  i0.ɵɵelementEnd();
32855
- i0.ɵɵelementStart(15, "select", 8);
32856
- i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_15_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseType, $event) || (ctx.selected.caseType = $event); return $event; });
32857
- i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_15_listener() { return ctx.onCaseTypeIdChange(); });
32858
- i0.ɵɵtemplate(16, WorkbasketFiltersComponent_option_16_Template, 3, 4, "option", 5)(17, WorkbasketFiltersComponent_option_17_Template, 3, 4, "option", 6);
32870
+ i0.ɵɵelementStart(20, "select", 7);
32871
+ i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_20_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.jurisdiction, $event) || (ctx.selected.jurisdiction = $event); return $event; });
32872
+ i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_20_listener() { return ctx.onJurisdictionIdChange(); });
32873
+ i0.ɵɵtemplate(21, WorkbasketFiltersComponent_option_21_Template, 3, 4, "option", 8)(22, WorkbasketFiltersComponent_option_22_Template, 3, 4, "option", 9);
32859
32874
  i0.ɵɵelementEnd()();
32860
- i0.ɵɵelementStart(18, "div", 2)(19, "label", 9);
32861
- i0.ɵɵtext(20);
32862
- i0.ɵɵpipe(21, "rpxTranslate");
32863
- i0.ɵɵelementEnd();
32864
- i0.ɵɵelementStart(22, "select", 10);
32865
- i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_22_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseState, $event) || (ctx.selected.caseState = $event); return $event; });
32866
- i0.ɵɵelementStart(23, "option", 11);
32867
- i0.ɵɵtext(24);
32868
- i0.ɵɵpipe(25, "rpxTranslate");
32875
+ i0.ɵɵelementStart(23, "div", 5)(24, "label", 10);
32876
+ i0.ɵɵtext(25);
32877
+ i0.ɵɵpipe(26, "rpxTranslate");
32869
32878
  i0.ɵɵelementEnd();
32870
- i0.ɵɵtemplate(26, WorkbasketFiltersComponent_option_26_Template, 3, 4, "option", 6);
32879
+ i0.ɵɵelementStart(27, "select", 11);
32880
+ i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_27_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseType, $event) || (ctx.selected.caseType = $event); return $event; });
32881
+ i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_27_listener() { return ctx.onCaseTypeIdChange(); });
32882
+ i0.ɵɵtemplate(28, WorkbasketFiltersComponent_option_28_Template, 3, 4, "option", 8)(29, WorkbasketFiltersComponent_option_29_Template, 3, 4, "option", 9);
32871
32883
  i0.ɵɵelementEnd()();
32872
- i0.ɵɵtemplate(27, WorkbasketFiltersComponent_ng_container_27_Template, 3, 3, "ng-container", 12);
32873
- i0.ɵɵelementStart(28, "button", 13);
32874
- i0.ɵɵpipe(29, "rpxTranslate");
32875
- i0.ɵɵpipe(30, "rpxTranslate");
32876
- i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_28_listener() { return ctx.apply(true); });
32877
- i0.ɵɵtext(31);
32878
- i0.ɵɵpipe(32, "rpxTranslate");
32884
+ i0.ɵɵelementStart(30, "div", 5)(31, "label", 12);
32885
+ i0.ɵɵtext(32);
32886
+ i0.ɵɵpipe(33, "rpxTranslate");
32879
32887
  i0.ɵɵelementEnd();
32880
- i0.ɵɵtext(33, " \u00A0\u00A0\u00A0 ");
32881
- i0.ɵɵelementStart(34, "button", 14);
32882
- i0.ɵɵpipe(35, "rpxTranslate");
32883
- i0.ɵɵpipe(36, "rpxTranslate");
32884
- i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_34_listener() { return ctx.reset(); });
32885
- i0.ɵɵtext(37);
32886
- i0.ɵɵpipe(38, "rpxTranslate");
32888
+ i0.ɵɵelementStart(34, "select", 13);
32889
+ i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_34_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseState, $event) || (ctx.selected.caseState = $event); return $event; });
32890
+ i0.ɵɵelementStart(35, "option", 14);
32891
+ i0.ɵɵtext(36);
32892
+ i0.ɵɵpipe(37, "rpxTranslate");
32893
+ i0.ɵɵelementEnd();
32894
+ i0.ɵɵtemplate(38, WorkbasketFiltersComponent_option_38_Template, 3, 4, "option", 9);
32895
+ i0.ɵɵelementEnd()();
32896
+ i0.ɵɵtemplate(39, WorkbasketFiltersComponent_ng_container_39_Template, 3, 3, "ng-container", 15);
32897
+ i0.ɵɵelementStart(40, "button", 16);
32898
+ i0.ɵɵpipe(41, "rpxTranslate");
32899
+ i0.ɵɵpipe(42, "rpxTranslate");
32900
+ i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_40_listener() { return ctx.scrollToTop(); });
32901
+ i0.ɵɵtext(43);
32902
+ i0.ɵɵpipe(44, "rpxTranslate");
32887
32903
  i0.ɵɵelementEnd()();
32888
32904
  } if (rf & 2) {
32889
- i0.ɵɵadvance();
32890
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 24, "Filters"));
32891
- i0.ɵɵadvance(5);
32892
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 26, "Jurisdiction"));
32905
+ i0.ɵɵadvance(3);
32906
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 27, "Filters"));
32907
+ i0.ɵɵadvance(2);
32908
+ i0.ɵɵproperty("disabled", ctx.isApplyButtonDisabled())("title", i0.ɵɵpipeBind1(6, 29, "Apply filter"));
32909
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(7, 31, "Apply filter"));
32910
+ i0.ɵɵadvance(3);
32911
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 33, "Apply"), " ");
32912
+ i0.ɵɵadvance(3);
32913
+ i0.ɵɵproperty("title", i0.ɵɵpipeBind1(12, 35, "Reset filter"));
32914
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(13, 37, "Reset filter"));
32915
+ i0.ɵɵadvance(3);
32916
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 39, "Reset"), " ");
32917
+ i0.ɵɵadvance(4);
32918
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 41, "Jurisdiction"));
32893
32919
  i0.ɵɵadvance(2);
32894
32920
  i0.ɵɵtwoWayProperty("ngModel", ctx.selected.jurisdiction);
32895
32921
  i0.ɵɵadvance();
@@ -32897,7 +32923,7 @@ class WorkbasketFiltersComponent {
32897
32923
  i0.ɵɵadvance();
32898
32924
  i0.ɵɵproperty("ngForOf", ctx.jurisdictions);
32899
32925
  i0.ɵɵadvance(3);
32900
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 28, "Case type"));
32926
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 43, "Case type"));
32901
32927
  i0.ɵɵadvance(2);
32902
32928
  i0.ɵɵtwoWayProperty("ngModel", ctx.selected.caseType);
32903
32929
  i0.ɵɵproperty("disabled", ctx.isCaseTypesDropdownDisabled());
@@ -32906,33 +32932,28 @@ class WorkbasketFiltersComponent {
32906
32932
  i0.ɵɵadvance();
32907
32933
  i0.ɵɵproperty("ngForOf", ctx.selectedJurisdictionCaseTypes);
32908
32934
  i0.ɵɵadvance(3);
32909
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 30, "State"));
32935
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 45, "State"));
32910
32936
  i0.ɵɵadvance(2);
32911
32937
  i0.ɵɵtwoWayProperty("ngModel", ctx.selected.caseState);
32912
32938
  i0.ɵɵproperty("disabled", ctx.isCaseStatesDropdownDisabled());
32913
32939
  i0.ɵɵadvance();
32914
32940
  i0.ɵɵproperty("ngValue", null);
32915
32941
  i0.ɵɵadvance();
32916
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(25, 32, "Any"));
32942
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(37, 47, "Any"));
32917
32943
  i0.ɵɵadvance(2);
32918
32944
  i0.ɵɵproperty("ngForOf", ctx.selectedCaseTypeStates);
32919
32945
  i0.ɵɵadvance();
32920
32946
  i0.ɵɵproperty("ngIf", ctx.isSearchableAndWorkbasketInputsReady());
32921
32947
  i0.ɵɵadvance();
32922
- i0.ɵɵproperty("disabled", ctx.isApplyButtonDisabled())("title", i0.ɵɵpipeBind1(29, 34, "Apply filter"));
32923
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(30, 36, "Apply filter"));
32948
+ i0.ɵɵproperty("title", i0.ɵɵpipeBind1(41, 49, "Back to top"));
32949
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(42, 51, "Back to top"));
32924
32950
  i0.ɵɵadvance(3);
32925
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(32, 38, "Apply"), " ");
32926
- i0.ɵɵadvance(3);
32927
- i0.ɵɵproperty("title", i0.ɵɵpipeBind1(35, 40, "Reset filter"));
32928
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(36, 42, "Reset filter"));
32929
- i0.ɵɵadvance(3);
32930
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 44, "Reset"), " ");
32931
- } }, styles: ["div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media (min-width: 641px){div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:12pt;line-height:1.3333333333}}.form-group[_ngcontent-%COMP%]{margin-bottom:7px}.ccd-dropdown[_ngcontent-%COMP%]{width:100%}span.heading-medium[_ngcontent-%COMP%]{margin-top:0}"] });
32951
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(44, 53, "Back to top"), " ");
32952
+ } }, styles: ["div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media (min-width: 641px){div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:12pt;line-height:1.3333333333}}.form-group[_ngcontent-%COMP%]{margin-bottom:7px}.form-group.flex[_ngcontent-%COMP%]{display:flex}.form-group.flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:1rem .25rem .25rem;height:2rem}.ccd-dropdown[_ngcontent-%COMP%]{width:100%}span.heading-medium[_ngcontent-%COMP%]{margin-top:0}"] });
32932
32953
  }
32933
32954
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkbasketFiltersComponent, [{
32934
32955
  type: Component,
32935
- args: [{ selector: 'ccd-workbasket-filters', template: "<h2 class=\"heading-h2\" aria-label=\"Filters\">{{'Filters' | rpxTranslate }}</h2>\n\n<form class=\"global-display\">\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-jurisdiction\"\n name=\"jurisdiction\" [(ngModel)]=\"selected.jurisdiction\" aria-controls=\"search-result\"\n (change)=\"onJurisdictionIdChange()\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let j of jurisdictions\" [ngValue]=\"j\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-case-type\">{{'Case type' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-case-type\"\n name=\"case-type\" [(ngModel)]=\"selected.caseType\" [disabled]=\"isCaseTypesDropdownDisabled()\"\n (change)=\"onCaseTypeIdChange()\" aria-controls=\"search-result\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [ngValue]=\"ct\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-case-state\">{{'State' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-case-state\"\n name=\"state\" [(ngModel)]=\"selected.caseState\" [disabled]=\"isCaseStatesDropdownDisabled()\"\n aria-controls=\"search-result\">\n <option [ngValue]=\"null\">{{'Any' | rpxTranslate}}</option>\n <option *ngFor=\"let cs of selectedCaseTypeStates\" [ngValue]=\"cs\">{{cs.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <ng-container ccdConditionalShowForm *ngIf=\"isSearchableAndWorkbasketInputsReady()\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <div id=\"dynamicFilters\">\n <div class=\"form-group\" *ngFor=\"let workbasketInput of workbasketInputs\">\n <ccd-field-write [caseField]=\"workbasketInput.field\" [formGroup]=\"formGroup\" [isExpanded]=\"true\" [isInSearchBlock]=\"true\" (keyup.enter)=\"apply(null)\">\n </ccd-field-write>\n </div>\n </div>\n </ng-container>\n\n <button type=\"button\" class=\"button workbasket-filters-apply\" (click)=\"apply(true)\" [disabled]=\"isApplyButtonDisabled()\"\n [title]=\"'Apply filter' | rpxTranslate\" [attr.aria-label]=\"'Apply filter' | rpxTranslate\">\n {{'Apply' | rpxTranslate}}\n </button> &nbsp;&nbsp;&nbsp;\n <button type=\"button\" (click)=\"reset()\" class=\"button button-secondary\"\n [title]=\"'Reset filter' | rpxTranslate\" [attr.aria-label]=\"'Reset filter' | rpxTranslate\">\n {{'Reset' | rpxTranslate}}\n </button>\n</form>\n", styles: ["div select{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media (min-width: 641px){div select{font-size:12pt;line-height:1.3333333333}}.form-group{margin-bottom:7px}.ccd-dropdown{width:100%}span.heading-medium{margin-top:0}\n"] }]
32956
+ args: [{ selector: 'ccd-workbasket-filters', template: "<form id=\"filters\" class=\"global-display\">\n <div class=\"form-group flex\">\n <fieldset class=\"heading-h2\" aria-label=\"Filters\">{{'Filters' | rpxTranslate }}</fieldset>\n <button type=\"button\" class=\"button workbasket-filters-apply\" (click)=\"apply(true)\" [disabled]=\"isApplyButtonDisabled()\"\n [title]=\"'Apply filter' | rpxTranslate\" [attr.aria-label]=\"'Apply filter' | rpxTranslate\">\n {{'Apply' | rpxTranslate}}\n </button>&nbsp;&nbsp;&nbsp;\n <button type=\"button\" (click)=\"reset()\" class=\"button button-secondary\"\n [title]=\"'Reset filter' | rpxTranslate\" [attr.aria-label]=\"'Reset filter' | rpxTranslate\">\n {{'Reset' | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-jurisdiction\"\n name=\"jurisdiction\" [(ngModel)]=\"selected.jurisdiction\" aria-controls=\"search-result\"\n (change)=\"onJurisdictionIdChange()\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let j of jurisdictions\" [ngValue]=\"j\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-case-type\">{{'Case type' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-case-type\"\n name=\"case-type\" [(ngModel)]=\"selected.caseType\" [disabled]=\"isCaseTypesDropdownDisabled()\"\n (change)=\"onCaseTypeIdChange()\" aria-controls=\"search-result\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [ngValue]=\"ct\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"wb-case-state\">{{'State' | rpxTranslate}}</label>\n <select class=\"form-control form-control-3-4 ccd-dropdown\" id=\"wb-case-state\"\n name=\"state\" [(ngModel)]=\"selected.caseState\" [disabled]=\"isCaseStatesDropdownDisabled()\"\n aria-controls=\"search-result\">\n <option [ngValue]=\"null\">{{'Any' | rpxTranslate}}</option>\n <option *ngFor=\"let cs of selectedCaseTypeStates\" [ngValue]=\"cs\">{{cs.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <ng-container ccdConditionalShowForm *ngIf=\"isSearchableAndWorkbasketInputsReady()\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <div id=\"dynamicFilters\">\n <div class=\"form-group\" *ngFor=\"let workbasketInput of workbasketInputs\">\n <ccd-field-write [caseField]=\"workbasketInput.field\" [formGroup]=\"formGroup\" [isExpanded]=\"true\" [isInSearchBlock]=\"true\" (keyup.enter)=\"apply(null)\">\n </ccd-field-write>\n </div>\n </div>\n </ng-container>\n\n <button type=\"button\" class=\"button\" (click)=\"scrollToTop()\"\n [title]=\"'Back to top' | rpxTranslate\" [attr.aria-label]=\"'Back to top' | rpxTranslate\">{{'Back to top' | rpxTranslate}}\n </button>\n</form>\n", styles: ["div select{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media (min-width: 641px){div select{font-size:12pt;line-height:1.3333333333}}.form-group{margin-bottom:7px}.form-group.flex{display:flex}.form-group.flex button{margin:1rem .25rem .25rem;height:2rem}.ccd-dropdown{width:100%}span.heading-medium{margin-top:0}\n"] }]
32936
32957
  }], () => [{ type: i1$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService }, { type: AlertService }, { type: WindowService }], { jurisdictions: [{
32937
32958
  type: Input
32938
32959
  }], defaults: [{
@@ -33347,7 +33368,9 @@ class CaseHistoryComponent {
33347
33368
  this.caseHistoryService = caseHistoryService;
33348
33369
  }
33349
33370
  ngOnInit() {
33350
- this.caseSubscription = this.caseNotifier.caseView.subscribe(caseDetails => {
33371
+ this.caseSubscription = this.caseNotifier.caseView
33372
+ .pipe(take(1))
33373
+ .subscribe((caseDetails) => {
33351
33374
  this.caseDetails = caseDetails;
33352
33375
  const eventId = this.route.snapshot.paramMap.get(CaseHistoryComponent.PARAM_EVENT_ID) || this.event;
33353
33376
  this.caseHistoryService