@shival99/z-ui 2.0.79 → 2.0.80

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": "2.0.79",
3
+ "version": "2.0.80",
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",
@@ -1315,12 +1315,19 @@ declare class ZTableComponent<T> implements AfterViewInit {
1315
1315
  protected readonly showBulkBar: _angular_core.Signal<boolean>;
1316
1316
  protected readonly bulkBarPositions: ConnectedPosition[];
1317
1317
  private readonly _bulkBarExitDuration;
1318
- /** Stable identity key per virtual index (group/row id, not array index) so cached measured
1319
- * heights follow row identity — tránh co giật chiều cao khi scroll nhanh do index slot bị tái dùng. */
1318
+ /** Stable identity key per virtual index (row/group id, not array index) so cached measured
1319
+ * heights follow row identity — prevents height jitter when scrolling fast. */
1320
1320
  private readonly _virtualItemKeys;
1321
+ /** Estimate height learned from real rendered rows (dynamicSize); `virtual.size` is the fallback
1322
+ * until a row is measured. Lets not-yet-measured rows estimate close to reality, reducing layout
1323
+ * shift. Plain field (non-reactive) so updating it won't rebuild the virtualizer. */
1324
+ private _dynamicEstimateHeight;
1321
1325
  /** Virtualizer instance — operates on groups rather than individual rows */
1322
1326
  protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
1323
1327
  private readonly _measureVirtualItems;
1328
+ /** Learn estimate height from rendered rows. Locks ONCE so the estimate doesn't jump every scroll
1329
+ * frame (each row is still measured exactly on render). Re-flows via virtualizer.measure(). */
1330
+ private _learnDynamicEstimate;
1324
1331
  private readonly _rowDragAutoScroll;
1325
1332
  private readonly _rowDragCellSelectionCleanup;
1326
1333
  constructor();