@opencorestack/opengridx 1.2.0 → 1.2.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/CHANGELOG.md +17 -0
- package/dist/opengridx.es.js +17 -10
- package/dist/opengridx.es.js.map +1 -1
- package/dist/opengridx.umd.js +1 -1
- package/dist/opengridx.umd.js.map +1 -1
- package/lib/components/Cell/Cell.tsx +5 -3
- package/lib/components/Cell/CellErrorBoundary.tsx +2 -2
- package/lib/utils/export/exportToPdf.ts +1 -1
- package/package.json +3 -1
|
@@ -239,8 +239,10 @@ function CellImpl<R extends GridRowModel = GridRowModel>(props: CellProps<R>) {
|
|
|
239
239
|
/>
|
|
240
240
|
)
|
|
241
241
|
) : colDef.renderCell ? (
|
|
242
|
-
<CellErrorBoundary
|
|
243
|
-
{colDef.
|
|
242
|
+
<CellErrorBoundary
|
|
243
|
+
field={colDef.field}
|
|
244
|
+
resetKey={value}
|
|
245
|
+
renderFn={() => colDef.renderCell!({
|
|
244
246
|
value,
|
|
245
247
|
row,
|
|
246
248
|
field: colDef.field,
|
|
@@ -249,7 +251,7 @@ function CellImpl<R extends GridRowModel = GridRowModel>(props: CellProps<R>) {
|
|
|
249
251
|
colIndex,
|
|
250
252
|
rowMeta,
|
|
251
253
|
})}
|
|
252
|
-
|
|
254
|
+
/>
|
|
253
255
|
) : (
|
|
254
256
|
formattedValue
|
|
255
257
|
)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
interface CellErrorBoundaryProps {
|
|
4
|
-
|
|
4
|
+
renderFn: () => React.ReactNode;
|
|
5
5
|
field: string;
|
|
6
6
|
resetKey?: unknown;
|
|
7
7
|
}
|
|
@@ -48,6 +48,6 @@ export class CellErrorBoundary extends React.Component<CellErrorBoundaryProps, C
|
|
|
48
48
|
</div>
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
return this.props.
|
|
51
|
+
return this.props.renderFn();
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -114,7 +114,7 @@ export async function exportToPdf<R extends GridRowModel>(
|
|
|
114
114
|
let JsPDF: new (opts: Record<string, unknown>) => JsPDFDoc;
|
|
115
115
|
try {
|
|
116
116
|
const mod = await import('jspdf');
|
|
117
|
-
JsPDF = mod.default as new (opts: Record<string, unknown>) => JsPDFDoc;
|
|
117
|
+
JsPDF = mod.default as unknown as new (opts: Record<string, unknown>) => JsPDFDoc;
|
|
118
118
|
await import('jspdf-autotable');
|
|
119
119
|
} catch {
|
|
120
120
|
throw new Error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencorestack/opengridx",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "OpenGridX: High-performance React data infrastructure. Unlock advanced Row Grouping, Excel Export, and Column Pinning without the usual \"Pro\" gatekeeping. Built for speed, scale, and complete architectural freedom. Fully open, virtualization-ready, and feature-complete.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/opengridx.umd.js",
|
|
@@ -109,6 +109,8 @@
|
|
|
109
109
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
110
110
|
"globals": "^16.5.0",
|
|
111
111
|
"jsdom": "^29.1.1",
|
|
112
|
+
"jspdf": "^4.2.1",
|
|
113
|
+
"jspdf-autotable": "^5.0.8",
|
|
112
114
|
"react": "^19.2.0",
|
|
113
115
|
"react-dom": "^19.2.0",
|
|
114
116
|
"react-router-dom": "^7.13.1",
|