@shival99/z-ui 1.7.12 → 1.7.14

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shival99/z-ui",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 20+, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
5
5
  "keywords": [
6
6
  "angular",
@@ -364,6 +364,48 @@ interface ZTableVirtualConfig {
364
364
  * The `size` property is used as an initial estimate before measurement.
365
365
  */
366
366
  dynamicSize?: boolean;
367
+ /**
368
+ * Initial scroll offset in pixels.
369
+ * Useful for restoring scroll position or starting at a specific offset.
370
+ * @default 0
371
+ */
372
+ initialOffset?: number | (() => number);
373
+ /**
374
+ * The margin (in pixels) to apply to the start of the virtualizer.
375
+ * Useful when the virtualizer is not at the top of the scroll container.
376
+ * @default 0
377
+ */
378
+ scrollMargin?: number;
379
+ /**
380
+ * Gap between items in pixels.
381
+ * Use this instead of CSS gap for proper virtual scroll calculations.
382
+ * @default 0
383
+ */
384
+ gap?: number;
385
+ /**
386
+ * Delay in milliseconds before resetting isScrolling state.
387
+ * @default 150
388
+ */
389
+ isScrollingResetDelay?: number;
390
+ /**
391
+ * Use native scrollend event instead of debounced scroll detection.
392
+ * Better performance on browsers that support it.
393
+ * @default true (if browser supports it)
394
+ */
395
+ useScrollendEvent?: boolean;
396
+ /**
397
+ * Custom function to generate unique keys for each item.
398
+ * Useful for stable item identity across data updates.
399
+ */
400
+ getItemKey?: (index: number) => string | number;
401
+ /**
402
+ * Custom range extractor function.
403
+ * Use to customize which items are rendered (e.g., for sticky headers).
404
+ */
405
+ rangeExtractor?: (range: {
406
+ startIndex: number;
407
+ endIndex: number;
408
+ }) => number[];
367
409
  }
368
410
  interface ZTableSearchConfig {
369
411
  enabled?: boolean;
@@ -551,6 +593,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
551
593
  protected readonly columnSizeVars: _angular_core.Signal<Record<string, number>>;
552
594
  protected readonly table: ReturnType<typeof createAngularTable<T>>;
553
595
  private readonly _virtualGroupCount;
596
+ private readonly _virtualResetVersion;
554
597
  protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
555
598
  private readonly _measureVirtualItems;
556
599
  constructor();
@@ -653,7 +696,7 @@ declare class ZTableActionsComponent<T = unknown> {
653
696
  readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
654
697
  readonly zRow: _angular_core.InputSignal<T>;
655
698
  readonly zRowId: _angular_core.InputSignal<string>;
656
- readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
699
+ readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "xs" | "lg" | "xl" | null | undefined>;
657
700
  readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
658
701
  protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
659
702
  protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;