@opencorestack/opengridx 1.2.1 → 1.2.2

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 CHANGED
@@ -5,6 +5,31 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [1.2.2] — 2026-09-08
9
+
10
+ ### Fixed
11
+ - `CellErrorBoundary` — moved `renderFn()` call into a module-scope `CellRenderTarget`
12
+ child component so the throw happens in a descendant; a boundary cannot catch errors
13
+ thrown inside its own `render()`.
14
+ - `CellErrorBoundary` — changed `resetKey` from `value` to `row` object reference so the
15
+ boundary resets whenever fresh row objects are provided, not just when the cell value
16
+ changes. Enables "Restore" to clear error state correctly.
17
+ - `exportToPdf` — aggregation footer now computed directly from the exported rows in the
18
+ demo, bypassing the `useEffect`-based `getAggregationResult()` path that could silently
19
+ return `null` due to stale closures.
20
+ - `exportToPdf` — aggregation footer text color is now explicitly `[0, 0, 0]` (black) to
21
+ prevent text from appearing invisible against the light gray footer background.
22
+ - `exportToPdf` — switched to standalone `autoTable(doc, opts)` function to avoid
23
+ unreliable ESM prototype patching in Vite dynamic imports.
24
+
25
+ ### Added
26
+ - `GridApi.getAllFilteredRows()` — returns all filtered and sorted rows regardless of
27
+ pagination. Use this in export handlers to include every row, not just the current page.
28
+ - `CellErrorBoundaryDemo` — 100 rows, 10 specific rows throw on demand (rows 10, 20 … 100),
29
+ with correct Restore behaviour.
30
+
31
+ ---
32
+
8
33
  ## [1.2.1] — 2026-09-07
9
34
 
10
35
  ### Fixed
package/dist/index.d.ts CHANGED
@@ -402,6 +402,8 @@ export declare interface GridApi {
402
402
  getAllRows: () => GridRowModel[];
403
403
  /** Returns all rows currently visible after filtering and sorting. */
404
404
  getVisibleRows: () => GridRowModel[];
405
+ /** Returns all filtered and sorted rows, ignoring pagination. Use this for full-dataset exports. */
406
+ getAllFilteredRows: () => GridRowModel[];
405
407
  /** Returns the current aggregation results. */
406
408
  getAggregationResult: () => Record<string, unknown> | null;
407
409
  /** Returns the active aggregation configuration. */