@shival99/z-ui 1.7.13 → 1.7.15

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.13",
3
+ "version": "1.7.15",
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;