@azrico/reactgrid 1.2.26 → 1.2.29
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,12 @@
|
|
|
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.29](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.28...v1.2.29) (2023-04-03)
|
|
6
|
+
|
|
7
|
+
### [1.2.28](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.27...v1.2.28) (2023-04-03)
|
|
8
|
+
|
|
9
|
+
### [1.2.27](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.26...v1.2.27) (2023-04-03)
|
|
10
|
+
|
|
5
11
|
### [1.2.26](https://github.com/Azrideus/azrico-reactgrid/compare/v1.2.25...v1.2.26) (2023-04-03)
|
|
6
12
|
|
|
7
13
|
|
package/dist/src/themes/grid.css
CHANGED
|
@@ -167,18 +167,18 @@ function DataGridEventsWrapper(props) {
|
|
|
167
167
|
menuAnchorEl: menuAnchorEl,
|
|
168
168
|
set_menuAnchorEl: update_menuAnchorEl,
|
|
169
169
|
menuRow: menuRow,
|
|
170
|
-
|
|
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
|
|
176
|
+
}, contextMenu);
|
|
177
177
|
} else {
|
|
178
178
|
return _react.default.createElement(DataGridSizeWrapper, {
|
|
179
179
|
...props,
|
|
180
180
|
static_gridOptions: static_gridOptions
|
|
181
|
-
}, contextMenu
|
|
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
|
-
}
|
|
220
|
+
});
|
|
221
221
|
}
|
|
222
222
|
function DataGridSizeWrapper(props) {
|
|
223
223
|
if (props.delayedSize) {
|
|
@@ -239,9 +239,9 @@ function DataGridDelayedSizeWrapper(props) {
|
|
|
239
239
|
} = (0, _reactUseSize.useComponentSize)();
|
|
240
240
|
return _react.default.createElement("div", {
|
|
241
241
|
ref: ref,
|
|
242
|
-
className:
|
|
242
|
+
className: 'azgrid-filler'
|
|
243
243
|
}, _react.default.createElement("div", {
|
|
244
|
-
className:
|
|
244
|
+
className: 'azgrid-delayedresize',
|
|
245
245
|
style: {
|
|
246
246
|
height: height,
|
|
247
247
|
width: width
|
|
@@ -252,7 +252,7 @@ function DataGridDelayedSizeWrapper(props) {
|
|
|
252
252
|
}
|
|
253
253
|
function DataGridCore(props) {
|
|
254
254
|
return _react.default.createElement("div", {
|
|
255
|
-
className: (0, _clsx.default)(props.className, 'azgrid-
|
|
255
|
+
className: (0, _clsx.default)(props.className, 'azgrid-filler')
|
|
256
256
|
}, _react.default.createElement(_reactdatagridEnterprise.default, {
|
|
257
257
|
...props.static_gridOptions,
|
|
258
258
|
...props.dynamic_gridOptions,
|
package/package.json
CHANGED
package/src/themes/grid.css
CHANGED
package/src/views/DataGrid.tsx
CHANGED
|
@@ -323,7 +323,7 @@ function DataGridEventsWrapper(props: DataGridWrapperProps) {
|
|
|
323
323
|
menuAnchorEl={menuAnchorEl}
|
|
324
324
|
set_menuAnchorEl={update_menuAnchorEl}
|
|
325
325
|
menuRow={menuRow}
|
|
326
|
-
|
|
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
|
|
389
|
-
{props
|
|
390
|
-
|
|
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 ref={ref} className={
|
|
407
|
-
<div
|
|
408
|
-
className={clsx('azgrid-delayedresize')}
|
|
409
|
-
style={{ height: height, width: width }}
|
|
410
|
-
>
|
|
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-
|
|
414
|
+
<div className={clsx(props.className, 'azgrid-filler')}>
|
|
419
415
|
<ReactDataGrid
|
|
420
416
|
{...props.static_gridOptions}
|
|
421
417
|
{...props.dynamic_gridOptions}
|