@revolist/react-datagrid 4.8.12 → 4.8.14
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/dist/index.d.ts +2 -1
- package/dist/react-datagrid.js +1 -1
- package/dist/react-datagrid.umd.cjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ColumnDataSchemaModel } from '@revolist/revogrid';
|
|
2
|
+
import { ColumnTemplateProp } from '@revolist/revogrid';
|
|
2
3
|
import { ComponentType } from 'react';
|
|
3
4
|
import { EditCell } from '@revolist/revogrid';
|
|
4
5
|
import { EditorBase } from '@revolist/revogrid';
|
|
@@ -64,7 +65,7 @@ declare interface StyleReactProps {
|
|
|
64
65
|
/**
|
|
65
66
|
* Render React component in Grid column template.
|
|
66
67
|
*/
|
|
67
|
-
export declare const Template: (ReactComponent: ComponentType<ColumnDataSchemaModel>, customProps?: any) => (h: HyperFunc<VNode>, p: ColumnDataSchemaModel, addition?: any) => VNode;
|
|
68
|
+
export declare const Template: (ReactComponent: ComponentType<ColumnDataSchemaModel | ColumnTemplateProp>, customProps?: any) => (h: HyperFunc<VNode>, p: ColumnDataSchemaModel | ColumnTemplateProp, addition?: any) => VNode;
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
export * from "@revolist/revogrid";
|
package/dist/react-datagrid.js
CHANGED
|
@@ -201,7 +201,7 @@ const Template = (ReactComponent, customProps) => {
|
|
|
201
201
|
props.addition = addition;
|
|
202
202
|
let lastEl = null;
|
|
203
203
|
return h("span", {
|
|
204
|
-
key: `${p.prop}-${p.rowIndex}`,
|
|
204
|
+
key: `${p.prop}-${p.rowIndex || 0}`,
|
|
205
205
|
ref: (el) => {
|
|
206
206
|
lastEl = TemplateConstructor(el, ReactComponent, props, lastEl);
|
|
207
207
|
}
|
|
@@ -200,7 +200,7 @@ var __publicField = (obj, key, value) => {
|
|
|
200
200
|
props.addition = addition;
|
|
201
201
|
let lastEl = null;
|
|
202
202
|
return h("span", {
|
|
203
|
-
key: `${p.prop}-${p.rowIndex}`,
|
|
203
|
+
key: `${p.prop}-${p.rowIndex || 0}`,
|
|
204
204
|
ref: (el) => {
|
|
205
205
|
lastEl = TemplateConstructor(el, ReactComponent, props, lastEl);
|
|
206
206
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/react-datagrid",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.14",
|
|
5
5
|
"description": "React DataGrid Spreadsheet component with native cell render support",
|
|
6
6
|
"main": "./dist/react-datagrid.umd.cjs",
|
|
7
7
|
"module": "./dist/react-datagrid.js",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"homepage": "https://github.com/revolist/revogrid#readme",
|
|
65
65
|
"license": "MIT",
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@revolist/revogrid": "4.8.
|
|
67
|
+
"@revolist/revogrid": "4.8.14"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/react": "^18.3.2",
|