@hmcts/ccd-case-ui-toolkit 7.0.0-rc4 → 7.0.0-rc6

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.
@@ -12486,15 +12486,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
12486
12486
  this.jurisdictionService = jurisdictionService;
12487
12487
  this.valid = true;
12488
12488
  }
12489
- clickout(event) {
12490
- // Capturing the event of the associated ElementRef <input type="file" #fileInpu
12491
- if (this.fileInput.nativeElement.contains(event.target)) {
12492
- this.clickInsideTheDocument = true;
12493
- }
12494
- else {
12495
- this.fileValidations();
12496
- }
12497
- }
12498
12489
  ngOnInit() {
12499
12490
  this.secureModeOn = this.appConfig.getDocumentSecureMode();
12500
12491
  if (this.secureModeOn) {
@@ -12754,8 +12745,6 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
12754
12745
  } if (rf & 2) {
12755
12746
  let _t;
12756
12747
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
12757
- } }, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) { if (rf & 1) {
12758
- i0.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0.ɵɵresolveDocument);
12759
12748
  } }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
12760
12749
  i0.ɵɵelementStart(0, "div", 0)(1, "label", 1)(2, "span", 2);
12761
12750
  i0.ɵɵpipe(3, "ccdFieldLabel");
@@ -12809,9 +12798,6 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
12809
12798
  }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
12810
12799
  type: ViewChild,
12811
12800
  args: ['fileInput', { static: false }]
12812
- }], clickout: [{
12813
- type: HostListener,
12814
- args: ['document:click', ['$event']]
12815
12801
  }] }); })();
12816
12802
 
12817
12803
  class DynamicListPipe {
@@ -18071,7 +18057,7 @@ class CaseFileViewFolderSelectorComponent {
18071
18057
  }
18072
18058
  ngAfterViewInit() {
18073
18059
  const path = this.findPath();
18074
- path.forEach(p => document.getElementById(p).checked = true);
18060
+ path.forEach((p) => document.getElementById(p).checked = true);
18075
18061
  }
18076
18062
  handleChange(evt) {
18077
18063
  if (evt.target.checked) {
@@ -18102,9 +18088,10 @@ class CaseFileViewFolderSelectorComponent {
18102
18088
  return r;
18103
18089
  }
18104
18090
  }
18091
+ return [];
18105
18092
  }
18106
18093
  containsDocument(cat, document) {
18107
- if (cat.documents.findIndex(doc => doc.document_binary_url === document.document_binary_url) > -1) {
18094
+ if (cat.documents.findIndex((doc) => doc.document_binary_url === document.document_binary_url) > -1) {
18108
18095
  return [cat.category_id];
18109
18096
  }
18110
18097
  for (const c of cat.sub_categories) {
@@ -26958,7 +26945,7 @@ class CaseFullAccessViewComponent {
26958
26945
  // sortedTabs are fragments
26959
26946
  // appended/prepepended tabs use router navigation
26960
26947
  if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
26961
- (this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
26948
+ (this.appendedTabs?.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
26962
26949
  // Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
26963
26950
  const tab = matTab['_viewContainerRef'];
26964
26951
  const id = tab.element.nativeElement.id;
@@ -26978,6 +26965,7 @@ class CaseFullAccessViewComponent {
26978
26965
  const targetTabIndex = this.tabGroup._tabs.toArray().findIndex(tab => tab.textLabel === triggerOutputEventText);
26979
26966
  if (targetTabIndex > -1) {
26980
26967
  this.selectedTabIndex = targetTabIndex;
26968
+ this.tabGroup.selectedIndex = targetTabIndex;
26981
26969
  }
26982
26970
  }
26983
26971
  hasActiveCaseFlags() {