@azrico/reactgrid 1.2.25 → 1.2.28

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,17 @@
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.28](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.27...v1.2.28) (2023-04-03)
6
+
7
+ ### [1.2.27](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.26...v1.2.27) (2023-04-03)
8
+
9
+ ### [1.2.26](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.25...v1.2.26) (2023-04-03)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * DataGridDelayedSizeWrapper actual delayed ([2ddfd2f](https://github.com/Azrideus/azrico-reactgrid/commit/2ddfd2fb58c90bd906e1330f22f0ef7468d34afb))
15
+
5
16
  ### [1.2.25](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.24...v1.2.25) (2023-04-03)
6
17
 
7
18
  ### [1.2.24](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.23...v1.2.24) (2023-04-03)
@@ -27,4 +27,5 @@
27
27
  .azgrid-delayedresize {
28
28
  transition-property: width, height;
29
29
  transition-delay: 200ms;
30
+ transition-duration: 0ms;
30
31
  }
@@ -167,18 +167,18 @@ function DataGridEventsWrapper(props) {
167
167
  menuAnchorEl: menuAnchorEl,
168
168
  set_menuAnchorEl: update_menuAnchorEl,
169
169
  menuRow: menuRow,
170
- items: props.contextMenuItems
170
+ menu_items: props.contextMenuItems
171
171
  });
172
172
  if (props.details_dataSource) {
173
173
  return _react.default.createElement(DataGridDetailsWrapper, {
174
174
  ...props,
175
175
  static_gridOptions: static_gridOptions
176
- }, contextMenu, props.children);
176
+ }, contextMenu);
177
177
  } else {
178
178
  return _react.default.createElement(DataGridSizeWrapper, {
179
179
  ...props,
180
180
  static_gridOptions: static_gridOptions
181
- }, contextMenu, props.children);
181
+ }, contextMenu);
182
182
  }
183
183
  }
184
184
  function DataGridDetailsWrapper(props) {
@@ -217,7 +217,7 @@ function DataGridDetailsWrapper(props) {
217
217
  return _react.default.createElement(DataGridSizeWrapper, {
218
218
  ...props,
219
219
  static_gridOptions: static_gridOptions
220
- }, props.children);
220
+ });
221
221
  }
222
222
  function DataGridSizeWrapper(props) {
223
223
  if (props.delayedSize) {
@@ -239,8 +239,9 @@ function DataGridDelayedSizeWrapper(props) {
239
239
  } = (0, _reactUseSize.useComponentSize)();
240
240
  return _react.default.createElement("div", {
241
241
  ref: ref,
242
- className: (0, _clsx.default)(props.className, 'azgrid-nooverflow', 'azgrid-filler')
242
+ className: 'azgrid-filler'
243
243
  }, _react.default.createElement("div", {
244
+ className: 'azgrid-delayedresize',
244
245
  style: {
245
246
  height: height,
246
247
  width: width
@@ -251,7 +252,7 @@ function DataGridDelayedSizeWrapper(props) {
251
252
  }
252
253
  function DataGridCore(props) {
253
254
  return _react.default.createElement("div", {
254
- className: (0, _clsx.default)(props.className, 'azgrid-nooverflow', 'azgrid-filler')
255
+ className: (0, _clsx.default)(props.className, 'azgrid-filler')
255
256
  }, _react.default.createElement(_reactdatagridEnterprise.default, {
256
257
  ...props.static_gridOptions,
257
258
  ...props.dynamic_gridOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/reactgrid",
3
- "version": "1.2.25",
3
+ "version": "1.2.28",
4
4
  "main": "dist/index.js",
5
5
  "description": "React Datagrid",
6
6
  "author": "Azrideus <MehrdadTavangar@gmail.com>",
@@ -27,4 +27,5 @@
27
27
  .azgrid-delayedresize {
28
28
  transition-property: width, height;
29
29
  transition-delay: 200ms;
30
+ transition-duration: 0ms;
30
31
  }
@@ -323,7 +323,7 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
323
323
  menuAnchorEl={menuAnchorEl}
324
324
  set_menuAnchorEl={update_menuAnchorEl}
325
325
  menuRow={menuRow}
326
- items={props.contextMenuItems}
326
+ menu_items={props.contextMenuItems as any}
327
327
  />
328
328
  );
329
329
 
@@ -331,14 +331,12 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
331
331
  return (
332
332
  <DataGridDetailsWrapper {...props} static_gridOptions={static_gridOptions}>
333
333
  {contextMenu}
334
- {props.children}
335
334
  </DataGridDetailsWrapper>
336
335
  );
337
336
  } else {
338
337
  return (
339
338
  <DataGridSizeWrapper {...props} static_gridOptions={static_gridOptions}>
340
339
  {contextMenu}
341
- {props.children}
342
340
  </DataGridSizeWrapper>
343
341
  );
344
342
  }
@@ -385,9 +383,10 @@ function DataGridDetailsWrapper(props: DataGridWrapperProps) {
385
383
  }, [props.static_gridOptions]);
386
384
 
387
385
  return (
388
- <DataGridSizeWrapper {...props} static_gridOptions={static_gridOptions}>
389
- {props.children}
390
- </DataGridSizeWrapper>
386
+ <DataGridSizeWrapper
387
+ {...props}
388
+ static_gridOptions={static_gridOptions}
389
+ ></DataGridSizeWrapper>
391
390
  );
392
391
  }
393
392
 
@@ -403,11 +402,8 @@ function DataGridSizeWrapper(props: DataGridWrapperProps) {
403
402
  function DataGridDelayedSizeWrapper(props: DataGridWrapperProps) {
404
403
  const { ref, height, width } = useComponentSize();
405
404
  return (
406
- <div
407
- ref={ref}
408
- className={clsx(props.className, 'azgrid-nooverflow', 'azgrid-filler')}
409
- >
410
- <div style={{ height: height, width: width }}>
405
+ <div ref={ref} className={'azgrid-filler'}>
406
+ <div className={'azgrid-delayedresize'} style={{ height: height, width: width }}>
411
407
  <DataGridCore {...props} />
412
408
  </div>
413
409
  </div>
@@ -415,7 +411,7 @@ function DataGridDelayedSizeWrapper(props: DataGridWrapperProps) {
415
411
  }
416
412
  function DataGridCore(props: DataGridWrapperProps) {
417
413
  return (
418
- <div className={clsx(props.className, 'azgrid-nooverflow', 'azgrid-filler')}>
414
+ <div className={clsx(props.className, 'azgrid-filler')}>
419
415
  <ReactDataGrid
420
416
  {...props.static_gridOptions}
421
417
  {...props.dynamic_gridOptions}