@azrico/reactgrid 1.2.34 → 1.2.36

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,88 +2,116 @@
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.33](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.32...v1.2.33) (2023-04-12)
5
+ ### [1.2.36](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.36) (2023-07-09)
6
6
 
7
- ### [1.2.32](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.31...v1.2.32) (2023-04-11)
8
7
 
9
- ### [1.2.31](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.30...v1.2.31) (2023-04-03)
10
-
11
- ### [1.2.30](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.29...v1.2.30) (2023-04-03)
12
-
13
- ### [1.2.29](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.28...v1.2.29) (2023-04-03)
14
-
15
- ### [1.2.28](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.27...v1.2.28) (2023-04-03)
16
-
17
- ### [1.2.27](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.26...v1.2.27) (2023-04-03)
8
+ ### Features
18
9
 
19
- ### [1.2.26](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.25...v1.2.26) (2023-04-03)
10
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
20
11
 
21
12
 
22
13
  ### Bug Fixes
23
14
 
24
15
  * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
25
-
26
- ### [1.2.25](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.24...v1.2.25) (2023-04-03)
27
-
28
- ### [1.2.24](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.23...v1.2.24) (2023-04-03)
29
-
30
- ### [1.2.23](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.22...v1.2.23) (2023-04-03)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
36
-
37
- ### [1.2.22](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.21...v1.2.22) (2023-04-03)
38
-
39
- ### [1.2.21](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.20...v1.2.21) (2023-04-03)
40
-
41
- ### [1.2.20](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.19...v1.2.20) (2023-04-03)
42
-
43
- ### [1.2.19](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.18...v1.2.19) (2023-04-03)
44
-
45
- ### [1.2.18](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.17...v1.2.18) (2023-04-02)
46
-
47
- ### [1.2.17](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.16...v1.2.17) (2023-04-02)
48
-
49
- ### [1.2.16](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.15...v1.2.16) (2023-04-02)
50
-
51
- ### [1.2.15](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.14...v1.2.15) (2023-04-01)
52
-
53
-
54
- ### Bug Fixes
55
-
56
16
  * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
17
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
57
18
 
58
- ### [1.2.14](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.13...v1.2.14) (2023-04-01)
59
-
60
- ### [1.2.13](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.12...v1.2.13) (2023-04-01)
61
-
62
- ### [1.2.12](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.11...v1.2.12) (2023-03-31)
63
-
64
- ### 1.2.11 (2023-03-31)
19
+ ### [1.2.35](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.10...v1.2.35) (2023-07-09)
65
20
 
66
21
 
67
22
  ### Features
68
23
 
69
- * added datasource Support ([4270ac1](https://github.com/Azrideus/azrico-reactgrid/commit/4270ac19623ef4c7404f0475825647c63ca98ffb))
70
- * added inovua grid ([a178208](https://github.com/Azrideus/azrico-reactgrid/commit/a178208975212d16ce9feff359b09a6d8926b54d))
71
- * added onLimitChange ([4b16681](https://github.com/Azrideus/azrico-reactgrid/commit/4b1668194776ebec51cdf9af0969132d5883d79a))
72
- * added skip and limit values ([87a975c](https://github.com/Azrideus/azrico-reactgrid/commit/87a975cad9803b4d41d770c0758d6b4d09946a53))
73
24
  * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
74
- * fixed dataSource ([ce5a4fe](https://github.com/Azrideus/azrico-reactgrid/commit/ce5a4fe09809aeddeeb0305d48b5294b1e9654b2))
75
25
 
76
26
 
77
27
  ### Bug Fixes
78
28
 
79
- * added get_col_name ([c7ff2da](https://github.com/Azrideus/azrico-reactgrid/commit/c7ff2daab8bf2ddf3c5fcbe6b47c7876d9ed9f88))
80
- * added support for promise DS ([b684c26](https://github.com/Azrideus/azrico-reactgrid/commit/b684c2635d59f5d5dde129ed6425ce30abbeebed))
81
- * coyp styles to dist ([23694f2](https://github.com/Azrideus/azrico-reactgrid/commit/23694f23634eb0b4038f399b1b2cd5c57992b64b))
82
- * fixed fix_parent_child_relations ([f165179](https://github.com/Azrideus/azrico-reactgrid/commit/f1651797e2adfc2dfbe1905b8c858b150c842dfa))
83
- * fixed package for publish ([95b8f46](https://github.com/Azrideus/azrico-reactgrid/commit/95b8f46e672174928aa4d8cd6c4924553eb025e5))
84
- * no null rows ([e85511b](https://github.com/Azrideus/azrico-reactgrid/commit/e85511beb98c884a3820dfae7c2c57891910b6d1))
85
- * removed extra styles from maincode ([7ee097e](https://github.com/Azrideus/azrico-reactgrid/commit/7ee097e4b7db1209490ce29bdb25fc605dfa7db3))
29
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
30
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
31
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
86
32
 
33
+ ### [1.2.33](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.32...v1.2.33) (2023-04-12)
34
+
35
+ ### [1.2.32](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.31...v1.2.32) (2023-04-11)
36
+
37
+ ### [1.2.31](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.30...v1.2.31) (2023-04-03)
38
+
39
+ ### [1.2.30](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.29...v1.2.30) (2023-04-03)
40
+
41
+ ### [1.2.29](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.28...v1.2.29) (2023-04-03)
42
+
43
+ ### [1.2.28](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.27...v1.2.28) (2023-04-03)
44
+
45
+ ### [1.2.27](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.26...v1.2.27) (2023-04-03)
46
+
47
+ ### [1.2.26](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.25...v1.2.26) (2023-04-03)
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
53
+
54
+ ### [1.2.25](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.24...v1.2.25) (2023-04-03)
55
+
56
+ ### [1.2.24](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.23...v1.2.24) (2023-04-03)
57
+
58
+ ### [1.2.23](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.22...v1.2.23) (2023-04-03)
59
+
60
+
61
+ ### Bug Fixes
62
+
63
+ * styling ([9018f75](https://github.com/Azrideus/azrico-reactgrid/commit/9018f7593e253720f751f52855a2d956dfc578ed))
64
+
65
+ ### [1.2.22](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.21...v1.2.22) (2023-04-03)
66
+
67
+ ### [1.2.21](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.20...v1.2.21) (2023-04-03)
68
+
69
+ ### [1.2.20](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.19...v1.2.20) (2023-04-03)
70
+
71
+ ### [1.2.19](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.18...v1.2.19) (2023-04-03)
72
+
73
+ ### [1.2.18](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.17...v1.2.18) (2023-04-02)
74
+
75
+ ### [1.2.17](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.16...v1.2.17) (2023-04-02)
76
+
77
+ ### [1.2.16](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.15...v1.2.16) (2023-04-02)
78
+
79
+ ### [1.2.15](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.14...v1.2.15) (2023-04-01)
80
+
81
+
82
+ ### Bug Fixes
83
+
84
+ * onCellSelectionChange ([95c8f54](https://github.com/Azrideus/azrico-reactgrid/commit/95c8f540e94dde0c7e245fb29fb6afc7172957ec))
85
+
86
+ ### [1.2.14](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.13...v1.2.14) (2023-04-01)
87
+
88
+ ### [1.2.13](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.12...v1.2.13) (2023-04-01)
89
+
90
+ ### [1.2.12](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.11...v1.2.12) (2023-03-31)
91
+
92
+ ### 1.2.11 (2023-03-31)
93
+
94
+
95
+ ### Features
96
+
97
+ * added datasource Support ([4270ac1](https://github.com/Azrideus/azrico-reactgrid/commit/4270ac19623ef4c7404f0475825647c63ca98ffb))
98
+ * added inovua grid ([a178208](https://github.com/Azrideus/azrico-reactgrid/commit/a178208975212d16ce9feff359b09a6d8926b54d))
99
+ * added onLimitChange ([4b16681](https://github.com/Azrideus/azrico-reactgrid/commit/4b1668194776ebec51cdf9af0969132d5883d79a))
100
+ * added skip and limit values ([87a975c](https://github.com/Azrideus/azrico-reactgrid/commit/87a975cad9803b4d41d770c0758d6b4d09946a53))
101
+ * editable can be a function ([6ea857e](https://github.com/Azrideus/azrico-reactgrid/commit/6ea857e4f403d2a334dc5e74065f6b8033277ca4))
102
+ * fixed dataSource ([ce5a4fe](https://github.com/Azrideus/azrico-reactgrid/commit/ce5a4fe09809aeddeeb0305d48b5294b1e9654b2))
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * added get_col_name ([c7ff2da](https://github.com/Azrideus/azrico-reactgrid/commit/c7ff2daab8bf2ddf3c5fcbe6b47c7876d9ed9f88))
108
+ * added support for promise DS ([b684c26](https://github.com/Azrideus/azrico-reactgrid/commit/b684c2635d59f5d5dde129ed6425ce30abbeebed))
109
+ * coyp styles to dist ([23694f2](https://github.com/Azrideus/azrico-reactgrid/commit/23694f23634eb0b4038f399b1b2cd5c57992b64b))
110
+ * fixed fix_parent_child_relations ([f165179](https://github.com/Azrideus/azrico-reactgrid/commit/f1651797e2adfc2dfbe1905b8c858b150c842dfa))
111
+ * fixed package for publish ([95b8f46](https://github.com/Azrideus/azrico-reactgrid/commit/95b8f46e672174928aa4d8cd6c4924553eb025e5))
112
+ * no null rows ([e85511b](https://github.com/Azrideus/azrico-reactgrid/commit/e85511beb98c884a3820dfae7c2c57891910b6d1))
113
+ * removed extra styles from maincode ([7ee097e](https://github.com/Azrideus/azrico-reactgrid/commit/7ee097e4b7db1209490ce29bdb25fc605dfa7db3))
114
+
87
115
  ### [1.2.10](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.9...v1.2.10) (2023-03-05)
88
116
 
89
117
  ### [1.2.9](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.8...v1.2.9) (2023-02-26)
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
1
  export * from './views/DataGrid';
3
- export declare function ExampleGrid(): JSX.Element;
2
+ import React from 'react';
3
+ export declare function ExampleGrid(): React.JSX.Element;
4
4
  export default ExampleGrid;
@@ -22,3 +22,13 @@
22
22
  .InovuaReactDataGrid__column-header__content {
23
23
  text-overflow: clip;
24
24
  }
25
+
26
+ .InovuaReactDataGrid__row.deleted:after {
27
+ position: absolute;
28
+ content: '';
29
+ left: 5px;
30
+ top: 50%;
31
+ right: 5px;
32
+ border-top: 1.5px solid;
33
+ border-color: gray;
34
+ }
@@ -75,5 +75,5 @@ export type AzGridProps = {
75
75
  looseCacheCheck?: boolean;
76
76
  className?: string;
77
77
  };
78
- export declare function AzGrid(props: AzGridProps): JSX.Element;
78
+ export declare function AzGrid(props: AzGridProps): React.JSX.Element;
79
79
  export default AzGrid;
@@ -142,14 +142,10 @@ function DataGridEventsWrapper(props) {
142
142
  }, [props.dataSource]);
143
143
  /* ------------------------------- ContextMenu ------------------------------ */
144
144
  const update_menuAnchorEl = _react.default.useCallback(el => {
145
- if (el) {
146
- set_menuAnchorEl(el);
147
- } else set_menuAnchorEl(null);
145
+ set_menuAnchorEl(el || null);
148
146
  }, []);
149
147
  const update_menuRow = _react.default.useCallback(r => {
150
- if (r) {
151
- set_menuRow(r);
152
- } else set_menuRow(null);
148
+ set_menuRow(r || null);
153
149
  }, []);
154
150
  /**
155
151
  * Merge click events into grid options
@@ -164,6 +160,7 @@ function DataGridEventsWrapper(props) {
164
160
  ...events
165
161
  };
166
162
  }, [props.static_gridOptions, onRowClick]);
163
+ /* -------------------------------------------------------------------------- */
167
164
  const contextMenu = _react.default.useMemo(() => {
168
165
  return _react.default.createElement(_controls.ContextMenu, {
169
166
  menuAnchorEl: menuAnchorEl,
@@ -171,7 +168,7 @@ function DataGridEventsWrapper(props) {
171
168
  menuRow: menuRow,
172
169
  menu_items: props.contextMenuItems
173
170
  });
174
- }, [menuAnchorEl, menuRow, props.contextMenuItems]);
171
+ }, [menuRow, menuAnchorEl, props.contextMenuItems]);
175
172
  if (props.details_dataSource) {
176
173
  return _react.default.createElement(DataGridDetailsWrapper, {
177
174
  ...props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.34",
3
+ "version": "1.2.36",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@azrico/controls": ">=1.5.12",
43
- "@azrico/object": "^>=1.4.12",
43
+ "@azrico/object": ">=1.4.12",
44
44
  "@emotion/react": ">=11.9.3",
45
45
  "@emotion/styled": ">=11.9.3",
46
46
  "@inovua/reactdatagrid-enterprise": ">=5.8.5",
@@ -1,9 +1,9 @@
1
- {
2
- "short_name": "AzGrid",
3
- "name": "React Grid Wrapper",
4
- "icons": [],
5
- "start_url": "./index.html",
6
- "display": "standalone",
7
- "theme_color": "#000000",
8
- "background_color": "#ffffff"
9
- }
1
+ {
2
+ "short_name": "AzGrid",
3
+ "name": "React Grid Wrapper",
4
+ "icons": [],
5
+ "start_url": "./index.html",
6
+ "display": "standalone",
7
+ "theme_color": "#000000",
8
+ "background_color": "#ffffff"
9
+ }
@@ -22,3 +22,13 @@
22
22
  .InovuaReactDataGrid__column-header__content {
23
23
  text-overflow: clip;
24
24
  }
25
+
26
+ .InovuaReactDataGrid__row.deleted:after {
27
+ position: absolute;
28
+ content: '';
29
+ left: 5px;
30
+ top: 50%;
31
+ right: 5px;
32
+ border-top: 1.5px solid;
33
+ border-color: gray;
34
+ }
@@ -299,14 +299,10 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
299
299
  /* ------------------------------- ContextMenu ------------------------------ */
300
300
 
301
301
  const update_menuAnchorEl = React.useCallback((el) => {
302
- if (el) {
303
- set_menuAnchorEl(el);
304
- } else set_menuAnchorEl(null);
302
+ set_menuAnchorEl(el || null);
305
303
  }, []);
306
304
  const update_menuRow = React.useCallback((r) => {
307
- if (r) {
308
- set_menuRow(r);
309
- } else set_menuRow(null);
305
+ set_menuRow(r || null);
310
306
  }, []);
311
307
 
312
308
  /**
@@ -320,6 +316,7 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
320
316
  return { ...props.static_gridOptions, ...events };
321
317
  }, [props.static_gridOptions, onRowClick]);
322
318
 
319
+ /* -------------------------------------------------------------------------- */
323
320
  const contextMenu = React.useMemo(() => {
324
321
  return (
325
322
  <ContextMenu
@@ -329,7 +326,7 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
329
326
  menu_items={props.contextMenuItems as any}
330
327
  />
331
328
  );
332
- }, [menuAnchorEl, menuRow, props.contextMenuItems]);
329
+ }, [menuRow, menuAnchorEl, props.contextMenuItems]);
333
330
 
334
331
  if (props.details_dataSource) {
335
332
  return (
@@ -1,4 +1,4 @@
1
- export * from './DataGrid';
2
-
3
- import AzGrid from './DataGrid';
4
- export default AzGrid;
1
+ export * from './DataGrid';
2
+
3
+ import AzGrid from './DataGrid';
4
+ export default AzGrid;