@rozie-ui/data-table-solid 0.2.5 → 0.3.1
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/README.md +3 -2
- package/dist/index.cjs +594 -235
- package/dist/index.d.cts +7 -3
- package/dist/index.d.mts +7 -3
- package/dist/index.mjs +594 -235
- package/package.json +3 -3
- package/src/DataTable.tsx +1119 -385
- package/src/helpers/columnDefUtils.ts +35 -0
- package/src/helpers/indexMath.ts +25 -0
- package/src/helpers/rowValueUtils.ts +62 -0
- package/src/helpers/tsvGrid.ts +115 -0
package/dist/index.d.cts
CHANGED
|
@@ -175,13 +175,17 @@ interface DataTableProps {
|
|
|
175
175
|
*/
|
|
176
176
|
undoLimit?: number;
|
|
177
177
|
/**
|
|
178
|
-
* Opt-in vertical
|
|
178
|
+
* Opt-in windowing grammar: `false` (default, off — byte-identical to a non-virtual table) | `true` or `'rows'` (vertical row windowing; `true` is byte-behavior-identical to every existing consumer, zero churn) | `'columns'` (horizontal column windowing) | `'both'` (both axes windowed). Row windowing renders only the visible slice of rows inside a bounded `rdt-scroll` container (with leading/trailing spacer rows preserving total scroll height), windowing over the full filtered + sorted (pre-pagination) model and suppressing the client pagination chrome. Column windowing renders only the visible slice of leaf columns inside the same `rdt-scroll` container. An unrecognised string behaves as `false`.
|
|
179
179
|
*/
|
|
180
|
-
virtual?: boolean;
|
|
180
|
+
virtual?: boolean | string;
|
|
181
181
|
/**
|
|
182
|
-
* Estimated row height (px)
|
|
182
|
+
* Estimated row height (px) — the first-paint seed for the windowing engine before any row has been measured. Only consulted when rows are windowed. When `autoMeasure` is `true`, later renders progressively refine the estimate from measured content; when `autoMeasure` is `false` this remains the explicit override for every render.
|
|
183
183
|
*/
|
|
184
184
|
estimateRowHeight?: number;
|
|
185
|
+
/**
|
|
186
|
+
* Opt-in content-driven row-size estimation. When `true`, the windowing engine feeds `estimateSize()` a running mean of measured row heights instead of the fixed `estimateRowHeight` seed, so `getTotalSize()` converges to the true content total on a large table with variable-height rows. Falls back to `estimateRowHeight` before any row has been measured. Default `false` keeps the estimate fixed at `estimateRowHeight` for every render (today's behavior).
|
|
187
|
+
*/
|
|
188
|
+
autoMeasure?: boolean;
|
|
185
189
|
/**
|
|
186
190
|
* A CSS length string bounding the `rdt-scroll` container when `virtual` is on (e.g. `'400px'`). Mirrored to the `--rozie-data-table-max-height` custom property; the prop wins, the token is the fallback.
|
|
187
191
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -175,13 +175,17 @@ interface DataTableProps {
|
|
|
175
175
|
*/
|
|
176
176
|
undoLimit?: number;
|
|
177
177
|
/**
|
|
178
|
-
* Opt-in vertical
|
|
178
|
+
* Opt-in windowing grammar: `false` (default, off — byte-identical to a non-virtual table) | `true` or `'rows'` (vertical row windowing; `true` is byte-behavior-identical to every existing consumer, zero churn) | `'columns'` (horizontal column windowing) | `'both'` (both axes windowed). Row windowing renders only the visible slice of rows inside a bounded `rdt-scroll` container (with leading/trailing spacer rows preserving total scroll height), windowing over the full filtered + sorted (pre-pagination) model and suppressing the client pagination chrome. Column windowing renders only the visible slice of leaf columns inside the same `rdt-scroll` container. An unrecognised string behaves as `false`.
|
|
179
179
|
*/
|
|
180
|
-
virtual?: boolean;
|
|
180
|
+
virtual?: boolean | string;
|
|
181
181
|
/**
|
|
182
|
-
* Estimated row height (px)
|
|
182
|
+
* Estimated row height (px) — the first-paint seed for the windowing engine before any row has been measured. Only consulted when rows are windowed. When `autoMeasure` is `true`, later renders progressively refine the estimate from measured content; when `autoMeasure` is `false` this remains the explicit override for every render.
|
|
183
183
|
*/
|
|
184
184
|
estimateRowHeight?: number;
|
|
185
|
+
/**
|
|
186
|
+
* Opt-in content-driven row-size estimation. When `true`, the windowing engine feeds `estimateSize()` a running mean of measured row heights instead of the fixed `estimateRowHeight` seed, so `getTotalSize()` converges to the true content total on a large table with variable-height rows. Falls back to `estimateRowHeight` before any row has been measured. Default `false` keeps the estimate fixed at `estimateRowHeight` for every render (today's behavior).
|
|
187
|
+
*/
|
|
188
|
+
autoMeasure?: boolean;
|
|
185
189
|
/**
|
|
186
190
|
* A CSS length string bounding the `rdt-scroll` container when `virtual` is on (e.g. `'400px'`). Mirrored to the `--rozie-data-table-max-height` custom property; the prop wins, the token is the fallback.
|
|
187
191
|
*/
|