@opencorestack/opengridx 2.0.2 → 2.0.4
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 +22 -0
- package/dist/index.d.ts +7 -0
- package/dist/opengridx.es.js +2457 -2432
- package/dist/opengridx.es.js.map +1 -1
- package/dist/opengridx.umd.js +16 -16
- package/dist/opengridx.umd.js.map +1 -1
- package/docs/API_REFERENCE.md +10 -4
- package/docs/components/aggregation-footer.md +1 -1
- package/docs/components/column-group-header.md +2 -9
- package/docs/components/column-resize.md +15 -16
- package/docs/components/column-visibility.md +5 -5
- package/docs/components/datagrid.md +2 -1
- package/docs/components/empty-state.md +1 -1
- package/docs/components/tooltip.md +4 -7
- package/docs/features/aggregation-pivot.md +2 -2
- package/docs/features/cell-spanning.md +1 -1
- package/docs/features/loading-states.md +5 -5
- package/docs/features/selection.md +1 -1
- package/docs/features/sorting-pagination.md +1 -1
- package/docs/features/virtualization.md +43 -10
- package/docs/roadmap.md +1 -1
- package/lib/components/DataGrid/DataGrid.tsx +3 -1
- package/lib/hooks/core/useGridScrollSync.ts +62 -15
- package/lib/hooks/core/useGridVirtualization.ts +4 -1
- package/lib/types/index.ts +7 -0
- package/llms.txt +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [2.0.4] — 2026-09-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Adaptive overscan based on scroll velocity** — `useGridScrollSync` now tracks scroll velocity (px/ms) on every scroll event and maps it to a dynamic overscan tier (3 / 5 / 12 / 20 / 30 rows). All three values (`scrollTop`, `scrollLeft`, `overscanRows`) are bundled into a single state update per RAF frame so `useGridVirtualization` recomputes exactly once per frame. 200 ms after scrolling stops, the overscan decays back to the floor set by `overscanRowCount`.
|
|
13
|
+
- **`overscanRowCount` prop** — new `DataGridProps` field (`number`, default `3`). Sets the minimum overscan floor; the adaptive algorithm always produces a value ≥ this prop. Increasing it pre-renders more rows at rest; decreasing it saves idle memory.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## [2.0.3] — 2026-09-10
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
Comprehensive accuracy audit — 32 issues corrected across 19 files:
|
|
22
|
+
|
|
23
|
+
- **Wrong defaults corrected**: `pageSizeOptions` (`[10,25,50]` → `[10,25,50,100]`), `pinCheckboxColumn`/`pinExpandColumn` (`false` → `true`), `noRowsLabel` (`'No rows'` → `'No Data'`) — in `API_REFERENCE.md`, `components/datagrid.md`, `features/sorting-pagination.md`, `features/selection.md`, `components/empty-state.md`
|
|
24
|
+
- **Missing API surface added**: `getAllFilteredRows()` and `getGroupedExportRows()` added to `GridApi` table; `groupLabel` field added to `GridRowMeta`; `groupedRows` option added to `PdfExportOptions`; `'unique'` added to aggregation function type in `components/aggregation-footer.md`
|
|
25
|
+
- **Non-existent API removed or corrected**: `'both'` is not a valid `getAggregationPosition` return (valid: `'inline' | 'footer' | null`); `disableColumnResize` DataGrid prop, `columnResizeHandle`/`columnVisibilityPanel`/`columnGroupHeader`/`tooltip` slots, `onColumnWidthChange` callback, `disableReorder` on `GridColDef`, `showQuickFilter` in `GridToolbarProps`, `toolbar`/`toolbarProps` DataGrid props — all documented as real but never existed; corrected throughout
|
|
26
|
+
- **Stale content updated**: `use-grid-scroll-sync.md` and `use-grid-virtualization.md` params/returns updated from old `scrollPosRef`/`scrollTick` pattern to current `scrollTop`/`scrollLeft`; `grid-row-meta.md` updated from "will be removed in v2" to "was removed in v2"; `roadmap.md` column virtualization claim corrected; `virtualization.md` "Aui DataGrid" placeholder fixed and `density` prop section added; `upgrade-guide` version and slots API corrected
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
8
30
|
## [2.0.2] — 2026-09-10
|
|
9
31
|
|
|
10
32
|
### Fixed
|
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,13 @@ export declare interface DataGridProps<R extends GridRowModel = GridRowModel> {
|
|
|
102
102
|
headerHeight?: number;
|
|
103
103
|
/** If true, the grid height will adjust to match the total height of its rows. */
|
|
104
104
|
autoHeight?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Minimum number of rows to render outside the visible viewport (overscan buffer).
|
|
107
|
+
* The grid adapts this value upward automatically based on scroll velocity to prevent
|
|
108
|
+
* blank flashes during fast scrolling. This prop sets the floor — the buffer never
|
|
109
|
+
* drops below this value regardless of scroll speed. Defaults to `3`.
|
|
110
|
+
*/
|
|
111
|
+
overscanRowCount?: number;
|
|
105
112
|
/** Sorting mode: 'client' (default) or 'server'. */
|
|
106
113
|
sortingMode?: 'client' | 'server';
|
|
107
114
|
/** The current sorting model. */
|