@ai-matrx/design-system 0.86.369 → 0.86.370
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/CHANGELOG.md +4 -0
- package/dist/data-table/index.cjs +2 -1
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.d.cts +0 -22
- package/dist/data-table/index.d.ts +0 -22
- package/dist/data-table/index.js +2 -1
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/virtual-window.cjs +2 -1
- package/dist/data-table/virtual-window.cjs.map +1 -1
- package/dist/data-table/virtual-window.d.cts +0 -22
- package/dist/data-table/virtual-window.d.ts +0 -22
- package/dist/data-table/virtual-window.js +2 -1
- package/dist/data-table/virtual-window.js.map +1 -1
- package/dist/desktop.d.cts +1 -1
- package/dist/desktop.d.ts +1 -1
- package/package.json +2 -2
|
@@ -5798,28 +5798,6 @@ declare function resolveFrozenColumns(ids: readonly string[], isFrozen: (id: str
|
|
|
5798
5798
|
/** The numeric pixel width of a declared column width, when there is one. */
|
|
5799
5799
|
declare function pixelWidth(width: string | number | undefined): number | undefined;
|
|
5800
5800
|
|
|
5801
|
-
/**
|
|
5802
|
-
* Row / column windowing math for the canonical data table.
|
|
5803
|
-
*
|
|
5804
|
-
* Pure arithmetic: no React, no DOM, no measurement. The table hands in what it
|
|
5805
|
-
* knows (how many items, how big they are, how much of them the viewport shows,
|
|
5806
|
-
* where the scroller is) and gets back the slice it should actually render plus
|
|
5807
|
-
* the two spacers that keep the scrollbar honest.
|
|
5808
|
-
*
|
|
5809
|
-
* THE INVARIANT this module exists to hold:
|
|
5810
|
-
*
|
|
5811
|
-
* padStart + (end - start) * itemSize + padEnd === total
|
|
5812
|
-
*
|
|
5813
|
-
* exactly, for every input. A scrollbar whose thumb size disagrees with the
|
|
5814
|
-
* content it can reach is a lie on screen, so `padEnd` is computed as the
|
|
5815
|
-
* residual of `total` rather than as an independent multiplication, and the
|
|
5816
|
-
* sum is re-checked and corrected once against floating-point drift.
|
|
5817
|
-
*
|
|
5818
|
-
* PINNED ITEMS (frozen columns) live OUTSIDE the scrollable length. They are
|
|
5819
|
-
* always rendered, they are never counted in `padStart`, and the scrollable
|
|
5820
|
-
* `total` covers only the items after them. `offset` is therefore measured
|
|
5821
|
-
* inside the scrollable region: offset 0 shows item index `pinnedStart`.
|
|
5822
|
-
*/
|
|
5823
5801
|
/** Items rendered outside the viewport on each side when the caller says nothing. */
|
|
5824
5802
|
declare const DEFAULT_OVERSCAN = 6;
|
|
5825
5803
|
interface WindowInput {
|
|
@@ -5798,28 +5798,6 @@ declare function resolveFrozenColumns(ids: readonly string[], isFrozen: (id: str
|
|
|
5798
5798
|
/** The numeric pixel width of a declared column width, when there is one. */
|
|
5799
5799
|
declare function pixelWidth(width: string | number | undefined): number | undefined;
|
|
5800
5800
|
|
|
5801
|
-
/**
|
|
5802
|
-
* Row / column windowing math for the canonical data table.
|
|
5803
|
-
*
|
|
5804
|
-
* Pure arithmetic: no React, no DOM, no measurement. The table hands in what it
|
|
5805
|
-
* knows (how many items, how big they are, how much of them the viewport shows,
|
|
5806
|
-
* where the scroller is) and gets back the slice it should actually render plus
|
|
5807
|
-
* the two spacers that keep the scrollbar honest.
|
|
5808
|
-
*
|
|
5809
|
-
* THE INVARIANT this module exists to hold:
|
|
5810
|
-
*
|
|
5811
|
-
* padStart + (end - start) * itemSize + padEnd === total
|
|
5812
|
-
*
|
|
5813
|
-
* exactly, for every input. A scrollbar whose thumb size disagrees with the
|
|
5814
|
-
* content it can reach is a lie on screen, so `padEnd` is computed as the
|
|
5815
|
-
* residual of `total` rather than as an independent multiplication, and the
|
|
5816
|
-
* sum is re-checked and corrected once against floating-point drift.
|
|
5817
|
-
*
|
|
5818
|
-
* PINNED ITEMS (frozen columns) live OUTSIDE the scrollable length. They are
|
|
5819
|
-
* always rendered, they are never counted in `padStart`, and the scrollable
|
|
5820
|
-
* `total` covers only the items after them. `offset` is therefore measured
|
|
5821
|
-
* inside the scrollable region: offset 0 shows item index `pinnedStart`.
|
|
5822
|
-
*/
|
|
5823
5801
|
/** Items rendered outside the viewport on each side when the caller says nothing. */
|
|
5824
5802
|
declare const DEFAULT_OVERSCAN = 6;
|
|
5825
5803
|
interface WindowInput {
|
package/dist/data-table/index.js
CHANGED
|
@@ -6456,6 +6456,7 @@ function groupSummary(group, rowNoun = "row") {
|
|
|
6456
6456
|
}
|
|
6457
6457
|
|
|
6458
6458
|
// src/data-table/virtual-window.ts
|
|
6459
|
+
import { globalSlot as globalSlot2 } from "@ai-matrx/kit/global-slot";
|
|
6459
6460
|
var DEFAULT_OVERSCAN = 6;
|
|
6460
6461
|
function isNum(value) {
|
|
6461
6462
|
return typeof value === "number" && Number.isFinite(value);
|
|
@@ -6531,7 +6532,7 @@ function computeWindow(input) {
|
|
|
6531
6532
|
total
|
|
6532
6533
|
});
|
|
6533
6534
|
}
|
|
6534
|
-
var PREFIX_CACHE = /* @__PURE__ */ new WeakMap();
|
|
6535
|
+
var PREFIX_CACHE = globalSlot2("ai-matrx.design-system.virtual-window-prefix", () => /* @__PURE__ */ new WeakMap());
|
|
6535
6536
|
function prefixFor(sizeAt, count) {
|
|
6536
6537
|
let byCount = PREFIX_CACHE.get(sizeAt);
|
|
6537
6538
|
if (!byCount) {
|