@meshmakers/shared-ui 3.4.440 → 3.4.460
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
|
@@ -260,6 +260,17 @@ declare class ListViewComponent extends CommandBaseService implements OnDestroy,
|
|
|
260
260
|
private resizeObserver?;
|
|
261
261
|
/** Never auto-page below this many rows, even in a tiny viewport. */
|
|
262
262
|
private static readonly MIN_AUTO_PAGE_SIZE;
|
|
263
|
+
/**
|
|
264
|
+
* Minimum change (in rows) before an already-measured `autoPageSize` is
|
|
265
|
+
* re-applied. Rows can vary in height (component cells such as sparklines,
|
|
266
|
+
* wrapping text) so the derived fit-to-height count jitters by ±1 as the user
|
|
267
|
+
* pages through content. Without this dead-band every page change would
|
|
268
|
+
* re-derive the page size and fire an extra fetch with a realigned `skip`,
|
|
269
|
+
* overlapping the page the user actually navigated to. The very first
|
|
270
|
+
* measurement always applies (it converts the initial default into the fitted
|
|
271
|
+
* size); genuine resizes/density changes move by more than this threshold.
|
|
272
|
+
*/
|
|
273
|
+
private static readonly AUTO_PAGE_SIZE_HYSTERESIS;
|
|
263
274
|
/** Measured fit-to-height page size (`autoPageSize`); null until the first measurement. */
|
|
264
275
|
private readonly autoPageSizeValue;
|
|
265
276
|
/** Last measured row height — reused while a page renders no rows (e.g. empty filter result). */
|