@etsoo/react 1.6.58 → 1.6.59
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.
|
@@ -76,6 +76,10 @@ export type GridCellRendererProps<T, P = any> = GridCellFormatterProps<T> & {
|
|
|
76
76
|
* Render props
|
|
77
77
|
*/
|
|
78
78
|
renderProps?: GridColumnRenderProps;
|
|
79
|
+
/**
|
|
80
|
+
* Set items for rerenderer
|
|
81
|
+
*/
|
|
82
|
+
setItems: (items: T[]) => void;
|
|
79
83
|
};
|
|
80
84
|
/**
|
|
81
85
|
* Grid header cell renderer props
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/react",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.59",
|
|
4
4
|
"description": "TypeScript ReactJs UI Independent Framework",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@emotion/css": "^11.10.6",
|
|
51
51
|
"@emotion/react": "^11.10.6",
|
|
52
52
|
"@emotion/styled": "^11.10.6",
|
|
53
|
-
"@etsoo/appscript": "^1.3.
|
|
53
|
+
"@etsoo/appscript": "^1.3.89",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.24",
|
|
55
|
-
"@etsoo/shared": "^1.1.
|
|
56
|
-
"@types/react": "^18.0.
|
|
55
|
+
"@etsoo/shared": "^1.1.99",
|
|
56
|
+
"@types/react": "^18.0.33",
|
|
57
57
|
"@types/react-dom": "^18.0.11",
|
|
58
58
|
"@types/react-window": "^1.8.5",
|
|
59
59
|
"react": "^18.2.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/jest": "^29.5.0",
|
|
73
73
|
"jest": "^29.5.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.5.0",
|
|
75
|
-
"ts-jest": "^29.0
|
|
76
|
-
"typescript": "^5.0.
|
|
75
|
+
"ts-jest": "^29.1.0",
|
|
76
|
+
"typescript": "^5.0.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -114,6 +114,11 @@ export type GridCellRendererProps<T, P = any> = GridCellFormatterProps<T> & {
|
|
|
114
114
|
* Render props
|
|
115
115
|
*/
|
|
116
116
|
renderProps?: GridColumnRenderProps;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Set items for rerenderer
|
|
120
|
+
*/
|
|
121
|
+
setItems: (items: T[]) => void;
|
|
117
122
|
};
|
|
118
123
|
|
|
119
124
|
/**
|
|
@@ -19,6 +19,11 @@ export type ScrollerGridItemRendererProps<T> = Omit<
|
|
|
19
19
|
*/
|
|
20
20
|
selectedItems: T[];
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Set items for rerenderer
|
|
24
|
+
*/
|
|
25
|
+
setItems: (items: T[]) => void;
|
|
26
|
+
|
|
22
27
|
/**
|
|
23
28
|
* Data
|
|
24
29
|
*/
|
|
@@ -278,7 +283,8 @@ export const ScrollerGrid = <
|
|
|
278
283
|
return itemRenderer({
|
|
279
284
|
...itemProps,
|
|
280
285
|
data,
|
|
281
|
-
selectedItems: state.selectedItems
|
|
286
|
+
selectedItems: state.selectedItems,
|
|
287
|
+
setItems: setRows
|
|
282
288
|
});
|
|
283
289
|
};
|
|
284
290
|
|