@ox0/data-grid 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +9 -2
- package/dist/components/ColumnChooser.d.ts +21 -0
- package/dist/components/ColumnChooser.d.ts.map +1 -0
- package/dist/components/ColumnChooser.test.d.ts +2 -0
- package/dist/components/ColumnChooser.test.d.ts.map +1 -0
- package/dist/components/DataGrid.d.ts +14 -0
- package/dist/components/DataGrid.d.ts.map +1 -0
- package/dist/components/DataGrid.test.d.ts +2 -0
- package/dist/components/DataGrid.test.d.ts.map +1 -0
- package/dist/components/VirtualScroller.d.ts +42 -0
- package/dist/components/VirtualScroller.d.ts.map +1 -0
- package/dist/components/column-layout.d.ts +31 -0
- package/dist/components/column-layout.d.ts.map +1 -0
- package/dist/components/column-layout.test.d.ts +2 -0
- package/dist/components/column-layout.test.d.ts.map +1 -0
- package/dist/hooks/use-grid.d.ts +32 -0
- package/dist/hooks/use-grid.d.ts.map +1 -0
- package/dist/hooks/use-grid.test.d.ts +2 -0
- package/dist/hooks/use-grid.test.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1861 -0
- package/dist/ingest.d.ts +14 -0
- package/dist/ingest.d.ts.map +1 -0
- package/dist/ingest.test.d.ts +2 -0
- package/dist/ingest.test.d.ts.map +1 -0
- package/dist/store/grid-store.d.ts +43 -0
- package/dist/store/grid-store.d.ts.map +1 -0
- package/dist/store/grid-store.test.d.ts +2 -0
- package/dist/store/grid-store.test.d.ts.map +1 -0
- package/dist/types.d.ts +437 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.test.d.ts +2 -0
- package/dist/types.test.d.ts.map +1 -0
- package/dist/worker/dataset.d.ts +20 -0
- package/dist/worker/dataset.d.ts.map +1 -0
- package/dist/worker/date.d.ts +10 -0
- package/dist/worker/date.d.ts.map +1 -0
- package/dist/worker/date.test.d.ts +2 -0
- package/dist/worker/date.test.d.ts.map +1 -0
- package/dist/worker/filter.d.ts +6 -0
- package/dist/worker/filter.d.ts.map +1 -0
- package/dist/worker/filter.test.d.ts +2 -0
- package/dist/worker/filter.test.d.ts.map +1 -0
- package/dist/worker/resolve-value.d.ts +4 -0
- package/dist/worker/resolve-value.d.ts.map +1 -0
- package/dist/worker/sort.d.ts +8 -0
- package/dist/worker/sort.d.ts.map +1 -0
- package/dist/worker/sort.test.d.ts +2 -0
- package/dist/worker/sort.test.d.ts.map +1 -0
- package/dist/worker/sync-engine.d.ts +9 -0
- package/dist/worker/sync-engine.d.ts.map +1 -0
- package/dist/worker/sync-engine.test.d.ts +2 -0
- package/dist/worker/sync-engine.test.d.ts.map +1 -0
- package/dist/worker/types.d.ts +65 -0
- package/dist/worker/types.d.ts.map +1 -0
- package/package.json +36 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Erik Sturcke
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ox0/data-grid
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Virtualized, worker-backed data grid for ox0 applications.
|
|
4
|
+
|
|
5
|
+
**Status: types only.** The package currently exports the v1 public type surface
|
|
6
|
+
(`DataGridProps`, `ColumnDef`, `FilterToken`, `ParseResult`, `AggregateStat`, and the selection
|
|
7
|
+
serialization helpers) with no runtime implementation yet. See
|
|
8
|
+
[`docs/llm/data-grid-spec.md`](../../docs/llm/data-grid-spec.md) for the full requirements and
|
|
9
|
+
[`docs/llm/data-grid-architecture.md`](../../docs/llm/data-grid-architecture.md) for the
|
|
10
|
+
implementation plan and phase breakdown. Not published — workspace-internal until Phase 6.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { GridStore } from "../store/grid-store";
|
|
3
|
+
import type { ColumnDef } from "../types";
|
|
4
|
+
export interface ColumnChooserProps<Row extends object> {
|
|
5
|
+
readonly columnDefs: readonly ColumnDef<Row>[];
|
|
6
|
+
readonly store: GridStore;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Show/hide, reorder, and pin columns — Phase 2's "column visibility (column chooser popover)"
|
|
10
|
+
* and part of "column pinning" (see docs/llm/data-grid-architecture.md Phase 2), pulled forward
|
|
11
|
+
* ahead of the header-cell drag-and-drop reorder that's the rest of that bullet.
|
|
12
|
+
*
|
|
13
|
+
* Reorder/pin is drag-and-drop via raw pointer events (works on touch, matches this codebase's
|
|
14
|
+
* existing pattern — see Drawer's resize handle): drag a row's grip within or across the three
|
|
15
|
+
* pinned-left / columns / pinned-right sections; dropping in a different section re-pins it to
|
|
16
|
+
* match, committed as one `reorderColumns` call so the sticky offset never flashes an
|
|
17
|
+
* intermediate position. Disabled while the search filter is active — with non-matching rows
|
|
18
|
+
* hidden, drop-position math would land a column somewhere the user can't currently see.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ColumnChooser<Row extends object>({ columnDefs, store, }: ColumnChooserProps<Row>): ReactNode;
|
|
21
|
+
//# sourceMappingURL=ColumnChooser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnChooser.d.ts","sourceRoot":"","sources":["../../src/components/ColumnChooser.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAGhG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,UAAU,CAAA;AAiEtD,MAAM,WAAW,kBAAkB,CAAC,GAAG,SAAS,MAAM;IACpD,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,CAAA;IAC9C,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,GAAG,SAAS,MAAM,EAAE,EAChD,UAAU,EACV,KAAK,GACN,EAAE,kBAAkB,CAAC,GAAG,CAAC,GAAG,SAAS,CA6GrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnChooser.test.d.ts","sourceRoot":"","sources":["../../src/components/ColumnChooser.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { DataGridProps } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Preview implementation — Phase 1 in progress (docs/llm/data-grid-architecture.md). Rows are
|
|
5
|
+
* virtualized via `VirtualScroller`/TanStack Virtual (fixed row height only — variable height for
|
|
6
|
+
* `overflow: "wrap"` columns is Phase 2). Sorting, simple filtering, match highlighting,
|
|
7
|
+
* single-select + row detail, and column show/hide/reorder/pin via the `ColumnChooser` popover are
|
|
8
|
+
* wired. Column resize, header-cell drag-and-drop reorder, multi-select, grouping, views, export,
|
|
9
|
+
* and server mode are not. There is no real Web Worker yet (`useGrid` always uses the synchronous
|
|
10
|
+
* in-process engine — see "Worker distribution" in the architecture doc's Phase 1 list), so
|
|
11
|
+
* `grid.slice()` below is a plain synchronous call, not a request/response round trip.
|
|
12
|
+
*/
|
|
13
|
+
export declare function DataGrid<Row extends object>(props: DataGridProps<Row>): ReactNode;
|
|
14
|
+
//# sourceMappingURL=DataGrid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataGrid.d.ts","sourceRoot":"","sources":["../../src/components/DataGrid.tsx"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAId,OAAO,KAAK,EAIV,aAAa,EAKd,MAAM,UAAU,CAAA;AAyEjB;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,GAAG,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,SAAS,CA0XjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataGrid.test.d.ts","sourceRoot":"","sources":["../../src/components/DataGrid.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The scroll container. Owns virtual row positioning with no React state on the hot scroll path
|
|
4
|
+
* (see docs/llm/data-grid-architecture.md "VirtualScroller"). Fixed-height rows only for now —
|
|
5
|
+
* `measureElement`/variable height for `overflow: "wrap"` columns is a Phase 2 addition.
|
|
6
|
+
*
|
|
7
|
+
* `heightMode: "total"` sizes the scrollable spacer from `rowCount * rowHeight` (client mode, and
|
|
8
|
+
* server mode with a known total). `"loaded"` sizes it from `loadedRowCount * rowHeight` instead —
|
|
9
|
+
* the fallback for server responses that cannot report a total up front (Phase 3). Phase 1 only
|
|
10
|
+
* ever passes `"total"`; the branch exists now so Phase 3 does not require a spacer-model rewrite.
|
|
11
|
+
*
|
|
12
|
+
* `height="fill"` sizes this element to `100%` of its layout parent (a flex/grid ancestor with
|
|
13
|
+
* `flex: 1; min-height: 0` — see data-grid.module.css `.scroller`) rather than measuring anything
|
|
14
|
+
* itself: CSS already resolves "fill the remaining space" declaratively. A ResizeObserver here only
|
|
15
|
+
* watches for the spec's 0-height case (an unbounded parent) to log the dev warning and render
|
|
16
|
+
* nothing, per spec "Grid viewport sizing".
|
|
17
|
+
*
|
|
18
|
+
* `rowWidth` sizes the row content wider than the viewport when columns don't all fit — the
|
|
19
|
+
* scroll container's own `overflow: auto` handles horizontal scrolling too (no separate axis
|
|
20
|
+
* setup needed). The header row lives outside this component (kept out of virtualization) but
|
|
21
|
+
* needs to scroll in lockstep — `onScroll` forwards `scrollLeft` for the caller to mirror onto it.
|
|
22
|
+
*/
|
|
23
|
+
export type VirtualScrollerApi = {
|
|
24
|
+
readonly scrollToIndex: (index: number, options?: {
|
|
25
|
+
readonly align?: "start" | "center" | "end" | "auto";
|
|
26
|
+
}) => void;
|
|
27
|
+
};
|
|
28
|
+
export type VirtualScrollerProps = {
|
|
29
|
+
readonly height: number | "fill";
|
|
30
|
+
readonly rowHeight: number;
|
|
31
|
+
readonly rowCount: number;
|
|
32
|
+
readonly heightMode: "total" | "loaded";
|
|
33
|
+
readonly renderRow: (index: number, style: {
|
|
34
|
+
readonly transform: string;
|
|
35
|
+
}) => ReactNode;
|
|
36
|
+
readonly className?: string;
|
|
37
|
+
readonly apiRef?: React.RefObject<VirtualScrollerApi | null>;
|
|
38
|
+
readonly rowWidth?: number;
|
|
39
|
+
readonly onScroll?: (scrollLeft: number) => void;
|
|
40
|
+
};
|
|
41
|
+
export declare function VirtualScroller({ height, rowHeight, rowCount, heightMode, renderRow, className, apiRef, rowWidth, onScroll, }: VirtualScrollerProps): ReactNode;
|
|
42
|
+
//# sourceMappingURL=VirtualScroller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VirtualScroller.d.ts","sourceRoot":"","sources":["../../src/components/VirtualScroller.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,aAAa,EAAE,CACtB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;KAAE,KAC/D,IAAI,CAAA;CACV,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,QAAQ,CAAA;IACvC,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAA;IACvF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAA;IAG5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAG1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CACjD,CAAA;AAED,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB,GAAG,SAAS,CAqElC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ColumnDef, ColumnState } from "../types";
|
|
2
|
+
export declare const DEFAULT_AUTO_WIDTH = 150;
|
|
3
|
+
export type LayoutColumn<Row extends object> = {
|
|
4
|
+
readonly def: ColumnDef<Row>;
|
|
5
|
+
readonly width: number;
|
|
6
|
+
readonly offset: number;
|
|
7
|
+
};
|
|
8
|
+
export type ColumnLayout<Row extends object> = {
|
|
9
|
+
readonly pinnedLeft: readonly LayoutColumn<Row>[];
|
|
10
|
+
readonly center: readonly LayoutColumn<Row>[];
|
|
11
|
+
readonly pinnedRight: readonly LayoutColumn<Row>[];
|
|
12
|
+
readonly totalWidth: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Splits visible columns into the three regions from architecture doc "Column layout" —
|
|
16
|
+
* `[pinned-left] [center] [pinned-right]` — computing each pinned column's sticky offset from its
|
|
17
|
+
* edge. `columnStates` (the Zustand `columns` slice) carries order/visibility/width/pin; `columnDefs`
|
|
18
|
+
* supplies everything else (header, cell renderer, ...). A state with no matching def (a stale
|
|
19
|
+
* entry from a since-removed column) is skipped.
|
|
20
|
+
*
|
|
21
|
+
* No horizontal virtualization yet — `center` always renders in full (see architecture doc: that's
|
|
22
|
+
* explicitly deferred past Phase 1's "basic" column layout).
|
|
23
|
+
*/
|
|
24
|
+
export declare function layoutColumns<Row extends object>(columnDefs: readonly ColumnDef<Row>[], columnStates: readonly ColumnState[]): ColumnLayout<Row>;
|
|
25
|
+
export type FlatLayoutColumn<Row extends object> = LayoutColumn<Row> & {
|
|
26
|
+
readonly pinned: "left" | "right" | null;
|
|
27
|
+
};
|
|
28
|
+
/** Left-to-right rendering/reading order across all three regions — for `aria-colindex` and a
|
|
29
|
+
* single render loop instead of three. */
|
|
30
|
+
export declare function flattenLayout<Row extends object>(layout: ColumnLayout<Row>): readonly FlatLayoutColumn<Row>[];
|
|
31
|
+
//# sourceMappingURL=column-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-layout.d.ts","sourceRoot":"","sources":["../../src/components/column-layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAKtD,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,MAAM,IAAI;IAC7C,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IAEtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,GAAG,SAAS,MAAM,IAAI;IAC7C,QAAQ,CAAC,UAAU,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IACjD,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IAC7C,QAAQ,CAAC,WAAW,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,EAAE,CAAA;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B,CAAA;AAMD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,GAAG,SAAS,MAAM,EAC9C,UAAU,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,EACrC,YAAY,EAAE,SAAS,WAAW,EAAE,GACnC,YAAY,CAAC,GAAG,CAAC,CAmCnB;AAED,MAAM,MAAM,gBAAgB,CAAC,GAAG,SAAS,MAAM,IAAI,YAAY,CAAC,GAAG,CAAC,GAAG;IACrE,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED;0CAC0C;AAC1C,wBAAgB,aAAa,CAAC,GAAG,SAAS,MAAM,EAC9C,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,GACxB,SAAS,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAMlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-layout.test.d.ts","sourceRoot":"","sources":["../../src/components/column-layout.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type GridStore } from "../store/grid-store";
|
|
2
|
+
import type { ColumnDef, DensityTier, FilterToken, SortEntry } from "../types";
|
|
3
|
+
import type { IndexEntry } from "../worker/types";
|
|
4
|
+
export type UseGridOptions<Row extends object> = {
|
|
5
|
+
readonly columnDefs: readonly ColumnDef<Row>[];
|
|
6
|
+
readonly rows: readonly Row[];
|
|
7
|
+
readonly rowsVersion?: string | number;
|
|
8
|
+
readonly getRowId: (row: Row) => string;
|
|
9
|
+
readonly timeZone?: string;
|
|
10
|
+
readonly now?: () => Date;
|
|
11
|
+
readonly selectionMode?: "single" | "multiple" | null;
|
|
12
|
+
readonly initialSort?: readonly SortEntry[];
|
|
13
|
+
readonly maxSortColumns?: number;
|
|
14
|
+
readonly initialFilterTokens?: readonly FilterToken[];
|
|
15
|
+
readonly initialDensity?: DensityTier;
|
|
16
|
+
};
|
|
17
|
+
export type UseGridResult<Row extends object> = {
|
|
18
|
+
readonly store: GridStore;
|
|
19
|
+
readonly totalCount: number;
|
|
20
|
+
readonly slice: (start: number, end: number) => {
|
|
21
|
+
readonly start: number;
|
|
22
|
+
readonly entries: IndexEntry<Row>[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Creates and wires one grid instance: the Zustand store, the data engine, and the ingest/sort/
|
|
27
|
+
* filter plumbing between them. Always uses the synchronous in-process engine for now — Web
|
|
28
|
+
* Worker selection (docs/llm/data-grid-architecture.md "Worker-less engine for SSR and tests")
|
|
29
|
+
* is added once the worker transport itself exists.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useGrid<Row extends object>(options: UseGridOptions<Row>): UseGridResult<Row>;
|
|
32
|
+
//# sourceMappingURL=use-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-grid.d.ts","sourceRoot":"","sources":["../../src/hooks/use-grid.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAG9E,OAAO,KAAK,EAAuB,UAAU,EAA0B,MAAM,iBAAiB,CAAA;AAI9F,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,MAAM,IAAI;IAC/C,QAAQ,CAAC,UAAU,EAAE,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,CAAA;IAC9C,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,EAAE,CAAA;IAE7B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtC,QAAQ,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAA;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,IAAI,CAAA;IACzB,QAAQ,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAA;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,SAAS,EAAE,CAAA;IAC3C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,WAAW,EAAE,CAAA;IACrD,QAAQ,CAAC,cAAc,CAAC,EAAE,WAAW,CAAA;CACtC,CAAA;AAED,MAAM,MAAM,aAAa,CAAC,GAAG,SAAS,MAAM,IAAI;IAC9C,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,CACd,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,KACR;QAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAA;KAAE,CAAA;CACrE,CAAA;AAwDD;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,CA+F5F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-grid.test.d.ts","sourceRoot":"","sources":["../../src/hooks/use-grid.test.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,SAAS,CAAA"}
|