@opencorestack/opengridx 1.2.1 → 1.2.3
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 +41 -0
- package/dist/index.d.ts +5 -1
- package/dist/opengridx.es.js +2840 -2824
- package/dist/opengridx.es.js.map +1 -1
- package/dist/opengridx.umd.js +11 -11
- package/dist/opengridx.umd.js.map +1 -1
- package/lib/components/Cell/Cell.tsx +1 -1
- package/lib/components/Cell/CellErrorBoundary.tsx +14 -1
- package/lib/components/ColumnVisibilityPanel/ColumnVisibilityPanel.test.tsx +85 -0
- package/lib/components/ColumnVisibilityPanel/ColumnVisibilityPanel.tsx +7 -4
- package/lib/components/DataGrid/DataGrid.tsx +1 -0
- package/lib/components/Toolbar/GridToolbar.tsx +8 -1
- package/lib/hooks/core/useDataGrid.ts +1 -0
- package/lib/types/index.ts +2 -0
- package/lib/utils/export/exportToPdf.test.ts +5 -6
- package/lib/utils/export/exportToPdf.ts +9 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,47 @@
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [1.2.3] — 2026-09-08
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `GridToolbar` Columns panel — columns with `hideable: false` are now excluded from
|
|
12
|
+
the panel list by default. Previously they appeared as permanently disabled rows,
|
|
13
|
+
adding visual noise for no benefit (users can never toggle them). The column still
|
|
14
|
+
renders normally in the grid body and in exports — only the Columns panel list changes.
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- `GridToolbarProps.showNonHideableColumns?: boolean` — opt-out prop. Set to `true` to
|
|
18
|
+
restore the old behavior and show `hideable: false` columns in the panel as disabled
|
|
19
|
+
rows. Default: `false`. No other API surface changed; this is a backward-compatible
|
|
20
|
+
addition.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## [1.2.2] — 2026-09-08
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- `CellErrorBoundary` — moved `renderFn()` call into a module-scope `CellRenderTarget`
|
|
28
|
+
child component so the throw happens in a descendant; a boundary cannot catch errors
|
|
29
|
+
thrown inside its own `render()`.
|
|
30
|
+
- `CellErrorBoundary` — changed `resetKey` from `value` to `row` object reference so the
|
|
31
|
+
boundary resets whenever fresh row objects are provided, not just when the cell value
|
|
32
|
+
changes. Enables "Restore" to clear error state correctly.
|
|
33
|
+
- `exportToPdf` — aggregation footer now computed directly from the exported rows in the
|
|
34
|
+
demo, bypassing the `useEffect`-based `getAggregationResult()` path that could silently
|
|
35
|
+
return `null` due to stale closures.
|
|
36
|
+
- `exportToPdf` — aggregation footer text color is now explicitly `[0, 0, 0]` (black) to
|
|
37
|
+
prevent text from appearing invisible against the light gray footer background.
|
|
38
|
+
- `exportToPdf` — switched to standalone `autoTable(doc, opts)` function to avoid
|
|
39
|
+
unreliable ESM prototype patching in Vite dynamic imports.
|
|
40
|
+
|
|
41
|
+
### Added
|
|
42
|
+
- `GridApi.getAllFilteredRows()` — returns all filtered and sorted rows regardless of
|
|
43
|
+
pagination. Use this in export handlers to include every row, not just the current page.
|
|
44
|
+
- `CellErrorBoundaryDemo` — 100 rows, 10 specific rows throw on demand (rows 10, 20 … 100),
|
|
45
|
+
with correct Restore behaviour.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
8
49
|
## [1.2.1] — 2026-09-07
|
|
9
50
|
|
|
10
51
|
### 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. */
|
|
@@ -1005,7 +1007,7 @@ export declare interface GridThemeTypography {
|
|
|
1005
1007
|
fontSizeXl?: string;
|
|
1006
1008
|
}
|
|
1007
1009
|
|
|
1008
|
-
export declare function GridToolbar({ columns, baseColumns, aggregationModel, onAggregationModelChange, pivotModel, onPivotModelChange, filterModel, onFilterModelChange, columnVisibilityModel, onColumnVisibilityModelChange, onColumnReorder, onColumnOrderReset, forceColumnsOpen, onColumnsPanelClose, children, rightContent, style, renderColumnsButton, renderFilterButton, renderAggregationButton, renderExportButton, renderQuickFilter, className, }: GridToolbarProps): JSX.Element;
|
|
1010
|
+
export declare function GridToolbar({ columns, baseColumns, aggregationModel, onAggregationModelChange, pivotModel, onPivotModelChange, filterModel, onFilterModelChange, columnVisibilityModel, onColumnVisibilityModelChange, onColumnReorder, onColumnOrderReset, forceColumnsOpen, onColumnsPanelClose, children, rightContent, style, renderColumnsButton, renderFilterButton, renderAggregationButton, renderExportButton, renderQuickFilter, className, showNonHideableColumns, }: GridToolbarProps): JSX.Element;
|
|
1009
1011
|
|
|
1010
1012
|
export declare interface GridToolbarProps {
|
|
1011
1013
|
columns?: GridColDef[];
|
|
@@ -1056,6 +1058,8 @@ export declare interface GridToolbarProps {
|
|
|
1056
1058
|
renderQuickFilter?: (props: ToolbarQuickFilterRenderProps) => default_2.ReactNode;
|
|
1057
1059
|
/** Additional CSS class applied to the toolbar root element. */
|
|
1058
1060
|
className?: string;
|
|
1061
|
+
/** Show columns with `hideable: false` in the Columns panel as disabled rows. Default: false. */
|
|
1062
|
+
showNonHideableColumns?: boolean;
|
|
1059
1063
|
}
|
|
1060
1064
|
|
|
1061
1065
|
export declare function GridTooltip({ title, children, placement, enterDelay, leaveDelay }: GridTooltipProps): JSX.Element;
|