@azrico/reactgrid 1.2.41 → 1.2.42

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.42](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.42) (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.41](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.41) (2023-07-09)
6
20
 
7
21
 
@@ -136,12 +136,13 @@ function DataGridEventsWrapper(props) {
136
136
  const onRowContextMenu = _react.default.useCallback((rowProps, event) => {
137
137
  if (!rowProps || !rowProps.data || _func_child.func_selection.has_selection()) return;
138
138
  const anEl = _func_child.func_selection.getVirtualElement(event.clientX, event.clientY);
139
+ console.log('onRowContextMenu', anEl);
139
140
  update_menuAnchorEl(anEl);
140
141
  }, []);
141
142
  const renderRowContextMenu = _react.default.useCallback((menuProps, {
142
143
  rowProps
143
144
  }) => {
144
- console.log('cm:', menuProps, rowProps, menuAnchorEl);
145
+ console.log('cm:', menuAnchorEl);
145
146
  // menuProps.autoDismiss = true;
146
147
  // menuProps.items = [
147
148
  // {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -291,11 +291,12 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
291
291
  const onRowContextMenu = React.useCallback((rowProps, event) => {
292
292
  if (!rowProps || !rowProps.data || func_selection.has_selection()) return;
293
293
  const anEl = func_selection.getVirtualElement(event.clientX, event.clientY);
294
+ console.log('onRowContextMenu', anEl);
294
295
  update_menuAnchorEl(anEl);
295
296
  }, []);
296
297
  const renderRowContextMenu = React.useCallback(
297
298
  (menuProps, { rowProps }) => {
298
- console.log('cm:', menuProps, rowProps, menuAnchorEl);
299
+ console.log('cm:', menuAnchorEl);
299
300
  // menuProps.autoDismiss = true;
300
301
  // menuProps.items = [
301
302
  // {