@shival99/z-ui 2.0.15 → 2.0.17

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.
@@ -6,7 +6,7 @@ import { NgStyle, NgClass, NgTemplateOutlet } from '@angular/common';
6
6
  import * as i0 from '@angular/core';
7
7
  import { input, output, computed, ChangeDetectionStrategy, Component, inject, DestroyRef, signal, effect, ElementRef, Renderer2, Directive, NgZone, Pipe, TemplateRef, viewChild, viewChildren, untracked, afterNextRender } from '@angular/core';
8
8
  import { TranslatePipe } from '@ngx-translate/core';
9
- import { injectVirtualizer } from '@shival99/angular-virtual';
9
+ import { injectVirtualizer, elementScroll } from '@shival99/angular-virtual';
10
10
  import { ZButtonComponent } from '@shival99/z-ui/components/z-button';
11
11
  import { ZCheckboxComponent } from '@shival99/z-ui/components/z-checkbox';
12
12
  import { ZDrawerComponent } from '@shival99/z-ui/components/z-drawer';
@@ -5060,6 +5060,10 @@ class ZTableComponent {
5060
5060
  }
5061
5061
  return groupSize * rowHeight;
5062
5062
  },
5063
+ scrollToFn: (offset, options, instance) => {
5064
+ instance.scrollOffset = offset;
5065
+ elementScroll(offset, options, instance);
5066
+ },
5063
5067
  measureElement: (element) => element.getBoundingClientRect().height,
5064
5068
  overscan: virtualConfig.overscan ?? Z_DEFAULT_VIRTUAL_OVERSCAN,
5065
5069
  initialOffset: virtualConfig.initialOffset ?? 0,