@shival99/z-ui 1.7.14 → 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.
|
@@ -3166,14 +3166,6 @@ class ZTableComponent {
|
|
|
3166
3166
|
overscan: virtual.overscan ?? Z_DEFAULT_VIRTUAL_OVERSCAN,
|
|
3167
3167
|
groupSize: virtual.groupSize ?? Z_DEFAULT_GROUP_SIZE,
|
|
3168
3168
|
dynamicSize: virtual.dynamicSize ?? false,
|
|
3169
|
-
// TanStack Virtual options
|
|
3170
|
-
initialOffset: virtual.initialOffset,
|
|
3171
|
-
scrollMargin: virtual.scrollMargin,
|
|
3172
|
-
gap: virtual.gap,
|
|
3173
|
-
isScrollingResetDelay: virtual.isScrollingResetDelay,
|
|
3174
|
-
useScrollendEvent: virtual.useScrollendEvent,
|
|
3175
|
-
getItemKey: virtual.getItemKey,
|
|
3176
|
-
rangeExtractor: virtual.rangeExtractor,
|
|
3177
3169
|
};
|
|
3178
3170
|
}, ...(ngDevMode ? [{ debugName: "_virtualConfig" }] : []));
|
|
3179
3171
|
virtualRowHeight = computed(() => this._virtualConfig().size ?? Z_DEFAULT_ROW_HEIGHT, ...(ngDevMode ? [{ debugName: "virtualRowHeight" }] : []));
|
|
@@ -3557,12 +3549,12 @@ class ZTableComponent {
|
|
|
3557
3549
|
}, ...(ngDevMode ? [{ debugName: "_virtualGroupCount" }] : []));
|
|
3558
3550
|
_virtualResetVersion = signal(0, ...(ngDevMode ? [{ debugName: "_virtualResetVersion" }] : []));
|
|
3559
3551
|
virtualizer = injectVirtualizer(() => {
|
|
3552
|
+
// Track reset version to force virtualizer re-initialization
|
|
3560
3553
|
this._virtualResetVersion();
|
|
3561
3554
|
const groups = this.dynamicGroups();
|
|
3562
3555
|
const rowHeight = this.virtualRowHeight();
|
|
3563
3556
|
const groupSize = this.groupSize();
|
|
3564
3557
|
const scrollElement = this.tbodyWrapper()?.nativeElement;
|
|
3565
|
-
const virtualConfig = this._virtualConfig();
|
|
3566
3558
|
return {
|
|
3567
3559
|
scrollElement,
|
|
3568
3560
|
count: groups.length > 0 ? groups.length : this._virtualGroupCount(),
|
|
@@ -3577,16 +3569,8 @@ class ZTableComponent {
|
|
|
3577
3569
|
return groupSize * rowHeight;
|
|
3578
3570
|
},
|
|
3579
3571
|
measureElement: (element) => element.getBoundingClientRect().height,
|
|
3580
|
-
overscan:
|
|
3581
|
-
initialOffset:
|
|
3582
|
-
...(virtualConfig.scrollMargin !== undefined && { scrollMargin: virtualConfig.scrollMargin }),
|
|
3583
|
-
...(virtualConfig.gap !== undefined && { gap: virtualConfig.gap }),
|
|
3584
|
-
...(virtualConfig.isScrollingResetDelay !== undefined && {
|
|
3585
|
-
isScrollingResetDelay: virtualConfig.isScrollingResetDelay,
|
|
3586
|
-
}),
|
|
3587
|
-
...(virtualConfig.useScrollendEvent !== undefined && { useScrollendEvent: virtualConfig.useScrollendEvent }),
|
|
3588
|
-
...(virtualConfig.getItemKey !== undefined && { getItemKey: virtualConfig.getItemKey }),
|
|
3589
|
-
...(virtualConfig.rangeExtractor !== undefined && { rangeExtractor: virtualConfig.rangeExtractor }),
|
|
3572
|
+
overscan: this._virtualConfig().overscan ?? Z_DEFAULT_VIRTUAL_OVERSCAN,
|
|
3573
|
+
initialOffset: 0,
|
|
3590
3574
|
};
|
|
3591
3575
|
});
|
|
3592
3576
|
_measureVirtualItems = effect(() => {
|