@alaarab/ogrid-react-material 2.0.12 → 2.0.14

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.
@@ -212,7 +212,7 @@ function DataGridTableInner(props) {
212
212
  const wrapperSx = useMemo(() => ({
213
213
  position: 'relative',
214
214
  flex: 1,
215
- minHeight: 0,
215
+ minHeight: isLoading && items.length === 0 ? 200 : 0,
216
216
  width: fitToContent ? 'fit-content' : '100%',
217
217
  maxWidth: '100%',
218
218
  overflowX: suppressHorizontalScroll ? 'hidden' : allowOverflowX ? 'auto' : 'hidden',
@@ -221,7 +221,7 @@ function DataGridTableInner(props) {
221
221
  willChange: 'scroll-position',
222
222
  '& [data-drag-range]': { bgcolor: 'rgba(33, 115, 70, 0.12) !important' },
223
223
  '& [data-drag-anchor]': { bgcolor: 'background.paper !important' },
224
- }), [fitToContent, suppressHorizontalScroll, allowOverflowX]);
224
+ }), [fitToContent, suppressHorizontalScroll, allowOverflowX, isLoading, items.length]);
225
225
  const renderCellContent = useCallback((item, col, rowIndex, colIdx) => {
226
226
  const descriptor = getCellRenderDescriptor(item, col, rowIndex, colIdx, cellDescriptorInputRef.current);
227
227
  const rowId = getRowId(item);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alaarab/ogrid-react-material",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "OGrid React Material implementation – MUI Table–based data grid with sorting, filtering, pagination, column chooser, spreadsheet selection, and CSV export.",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -39,7 +39,7 @@
39
39
  "node": ">=18"
40
40
  },
41
41
  "dependencies": {
42
- "@alaarab/ogrid-react": "2.0.12"
42
+ "@alaarab/ogrid-react": "2.0.14"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.0.0",