gp-grid-react 0.2.2 → 0.2.5
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/LICENSE +2 -15
- package/dist/index.d.ts +3 -3
- package/package.json +11 -11
package/LICENSE
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
Apache License
|
|
3
2
|
Version 2.0, January 2004
|
|
4
3
|
http://www.apache.org/licenses/
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"Contribution" shall mean any work of authorship, including
|
|
50
49
|
the original version of the Work and any modifications or additions
|
|
51
50
|
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
53
52
|
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
53
|
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
54
|
means any form of electronic, verbal, or written communication sent
|
|
@@ -176,18 +175,7 @@
|
|
|
176
175
|
|
|
177
176
|
END OF TERMS AND CONDITIONS
|
|
178
177
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
To apply the Apache License to your work, attach the following
|
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
-
replaced with your own identifying information. (Don't include
|
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
-
comment syntax for the file format. We also recommend that a
|
|
186
|
-
file or class name and description of purpose be included on the
|
|
187
|
-
same "printed page" as the copyright notice for easier
|
|
188
|
-
identification within third-party archives.
|
|
189
|
-
|
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
|
178
|
+
Copyright 2025 Giovanni Patruno
|
|
191
179
|
|
|
192
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
181
|
you may not use this file except in compliance with the License.
|
|
@@ -200,4 +188,3 @@
|
|
|
200
188
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
189
|
See the License for the specific language governing permissions and
|
|
202
190
|
limitations under the License.
|
|
203
|
-
|
package/dist/index.d.ts
CHANGED
|
@@ -297,11 +297,11 @@ CreateSlotInstruction | DestroySlotInstruction | AssignSlotInstruction | MoveSlo
|
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region ../core/src/types/renderers.d.ts
|
|
299
299
|
/** Cell renderer params */
|
|
300
|
-
interface CellRendererParams {
|
|
300
|
+
interface CellRendererParams<TData extends Row = Row> {
|
|
301
301
|
/** Cell value */
|
|
302
302
|
value: CellValue;
|
|
303
303
|
/** Row data */
|
|
304
|
-
rowData:
|
|
304
|
+
rowData: TData;
|
|
305
305
|
/** Column definition */
|
|
306
306
|
column: ColumnDefinition;
|
|
307
307
|
/** Row index */
|
|
@@ -316,7 +316,7 @@ interface CellRendererParams {
|
|
|
316
316
|
isEditing: boolean;
|
|
317
317
|
}
|
|
318
318
|
/** Edit renderer params */
|
|
319
|
-
interface EditRendererParams extends CellRendererParams {
|
|
319
|
+
interface EditRendererParams<TData extends Row = Row> extends CellRendererParams<TData> {
|
|
320
320
|
/** Initial value */
|
|
321
321
|
initialValue: CellValue;
|
|
322
322
|
/** On value change */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gp-grid-react",
|
|
3
3
|
"description": "A high-performance React data grid component with virtual scrolling, cell selection, sorting, filtering, and Excel-like editing",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -45,20 +45,12 @@
|
|
|
45
45
|
"link-workspace-packages": false
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"gp-grid-core": "
|
|
48
|
+
"gp-grid-core": "0.2.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^19.0.0",
|
|
52
52
|
"react-dom": "^19.1.1"
|
|
53
53
|
},
|
|
54
|
-
"scripts": {
|
|
55
|
-
"dev": "tsdown --watch",
|
|
56
|
-
"build": "tsdown --clean --sourcemap",
|
|
57
|
-
"build:production": "tsdown --clean --minify --treeshake --dts",
|
|
58
|
-
"test": "vitest",
|
|
59
|
-
"test:ui": "vitest --ui",
|
|
60
|
-
"bench": "vitest bench"
|
|
61
|
-
},
|
|
62
54
|
"devDependencies": {
|
|
63
55
|
"@testing-library/react": "^16.3.0",
|
|
64
56
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -69,5 +61,13 @@
|
|
|
69
61
|
"react-dom": "^19.2.0",
|
|
70
62
|
"tsdown": "^0.15.9",
|
|
71
63
|
"typescript": "^5.9.3"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"dev": "tsdown --watch",
|
|
67
|
+
"build": "tsdown --clean --sourcemap",
|
|
68
|
+
"build:production": "tsdown --clean --minify --treeshake --dts",
|
|
69
|
+
"test": "vitest",
|
|
70
|
+
"test:ui": "vitest --ui",
|
|
71
|
+
"bench": "vitest bench"
|
|
72
72
|
}
|
|
73
|
-
}
|
|
73
|
+
}
|