@azrico/reactgrid 1.2.48 → 1.2.49

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 CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.2.49](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.49) (2023-07-09)
6
+
7
+
8
+ ### Features
9
+
10
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
16
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
17
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
18
+
5
19
  ### [1.2.48](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.48) (2023-07-09)
6
20
 
7
21
 
@@ -139,7 +139,8 @@ function DataGridEventsWrapper(props) {
139
139
  const anEl = _func_child.func_selection.getVirtualElement(event.clientX, event.clientY);
140
140
  update_menuRow(rowProps.data, anEl);
141
141
  }, []);
142
- const update_menuRow = _react.default.useCallback((r, el) => {
142
+ const update_menuRow = _react.default.useCallback((r = null, el = null) => {
143
+ console.log('Set menuRow:', r);
143
144
  set_menuRow(r || null);
144
145
  set_menuAnchorEl(el || null);
145
146
  }, []);
@@ -149,8 +150,10 @@ function DataGridEventsWrapper(props) {
149
150
  menuProps.autoDismiss = true;
150
151
  function onclose() {
151
152
  menuProps.onDismiss();
152
- set_menuAnchorEl(null);
153
+ update_menuRow();
153
154
  }
155
+ console.log('rowProps.data:', rowProps.data);
156
+ console.log('menuRow:', menuRow);
154
157
  return _react.default.createElement(_controls.ContextMenu, {
155
158
  menuAnchorEl: menuAnchorEl,
156
159
  menuRow: menuRow,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.48",
3
+ "version": "1.2.49",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -295,7 +295,8 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
295
295
  update_menuRow(rowProps.data, anEl);
296
296
  }, []);
297
297
 
298
- const update_menuRow = React.useCallback((r, el) => {
298
+ const update_menuRow = React.useCallback((r: any = null, el: any = null) => {
299
+ console.log('Set menuRow:', r);
299
300
  set_menuRow(r || null);
300
301
  set_menuAnchorEl(el || null);
301
302
  }, []);
@@ -305,8 +306,11 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
305
306
  menuProps.autoDismiss = true;
306
307
  function onclose() {
307
308
  menuProps.onDismiss();
308
- set_menuAnchorEl(null);
309
+ update_menuRow();
309
310
  }
311
+ console.log('rowProps.data:', rowProps.data);
312
+ console.log('menuRow:', menuRow);
313
+
310
314
  return (
311
315
  <ContextMenu
312
316
  menuAnchorEl={menuAnchorEl}