@mui/x-data-grid-pro 6.19.1 → 6.19.2
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 +35 -0
- package/DataGridPro/DataGridPro.js +3 -19
- package/components/GridDetailPanel.js +2 -3
- package/components/GridTreeDataGroupingCell.js +0 -1
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGridPro.js +3 -19
- package/legacy/components/GridDetailPanel.js +2 -3
- package/legacy/components/GridScrollArea.js +4 -5
- package/legacy/components/GridTreeDataGroupingCell.js +0 -1
- package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +2 -3
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPro/DataGridPro.js +3 -19
- package/modern/components/GridDetailPanel.js +2 -3
- package/modern/components/GridTreeDataGroupingCell.js +0 -1
- package/modern/index.js +1 -1
- package/modern/utils/domUtils.js +0 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGridPro.js +3 -19
- package/node/components/GridDetailPanel.js +2 -3
- package/node/components/GridTreeDataGroupingCell.js +0 -1
- package/node/index.js +1 -1
- package/node/utils/domUtils.js +0 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +2 -2
- package/utils/domUtils.js +0 -1
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.19.2
|
|
7
|
+
|
|
8
|
+
_Jan 25, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### Date Pickers
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-date-pickers@6.19.2`
|
|
18
|
+
|
|
19
|
+
- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-date-pickers-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
22
|
+
|
|
23
|
+
Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
|
|
24
|
+
|
|
25
|
+
- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
|
|
26
|
+
|
|
27
|
+
### Data Grid
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid@6.19.2`
|
|
30
|
+
|
|
31
|
+
- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@6.19.2`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@6.19.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.2`.
|
|
40
|
+
|
|
6
41
|
## 6.19.1
|
|
7
42
|
|
|
8
43
|
_Jan 19, 2024_
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useLicenseVerifier, Watermark } from '@mui/x-license-pro';
|
|
5
|
-
import { chainPropTypes } from '@mui/utils';
|
|
6
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider, useGridSelector } from '@mui/x-data-grid';
|
|
7
6
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
8
7
|
import { useDataGridProProps } from './useDataGridProProps';
|
|
@@ -105,12 +104,7 @@ DataGridProRaw.propTypes = {
|
|
|
105
104
|
* It only works if the pagination is enabled.
|
|
106
105
|
* @default false
|
|
107
106
|
*/
|
|
108
|
-
checkboxSelectionVisibleOnly:
|
|
109
|
-
if (!props.pagination && props.checkboxSelectionVisibleOnly) {
|
|
110
|
-
return new Error('MUI: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.');
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}),
|
|
107
|
+
checkboxSelectionVisibleOnly: PropTypes.bool,
|
|
114
108
|
/**
|
|
115
109
|
* Override or extend the styles applied to the component.
|
|
116
110
|
*/
|
|
@@ -275,12 +269,7 @@ DataGridProRaw.propTypes = {
|
|
|
275
269
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
276
270
|
* @default "client"
|
|
277
271
|
*/
|
|
278
|
-
filterMode:
|
|
279
|
-
if (props.treeData && props.filterMode === 'server') {
|
|
280
|
-
return new Error('MUI: The `filterMode="server"` prop is not available when the `treeData` is enabled.');
|
|
281
|
-
}
|
|
282
|
-
return null;
|
|
283
|
-
}),
|
|
272
|
+
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
284
273
|
/**
|
|
285
274
|
* Set the filter model of the Data Grid.
|
|
286
275
|
*/
|
|
@@ -378,12 +367,7 @@ DataGridProRaw.propTypes = {
|
|
|
378
367
|
* It has no effect if the pagination is enabled.
|
|
379
368
|
* @default false
|
|
380
369
|
*/
|
|
381
|
-
hideFooterRowCount:
|
|
382
|
-
if (props.pagination && props.hideFooterRowCount) {
|
|
383
|
-
return new Error('MUI: The `hideFooterRowCount` prop has no effect when the pagination is enabled.');
|
|
384
|
-
}
|
|
385
|
-
return null;
|
|
386
|
-
}),
|
|
370
|
+
hideFooterRowCount: PropTypes.bool,
|
|
387
371
|
/**
|
|
388
372
|
* If `true`, the selected row count in the footer is hidden.
|
|
389
373
|
* @default false
|
|
@@ -2,12 +2,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["rowId", "height", "style"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import Box from '@mui/material/Box';
|
|
6
5
|
import { styled } from '@mui/material/styles';
|
|
7
6
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
8
7
|
import { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const DetailPanel = styled(
|
|
9
|
+
const DetailPanel = styled('div', {
|
|
11
10
|
name: 'MuiDataGrid',
|
|
12
11
|
slot: 'DetailPanel',
|
|
13
12
|
overridesResolver: (props, styles) => styles.detailPanel
|
|
@@ -28,7 +27,7 @@ function GridDetailPanel(props) {
|
|
|
28
27
|
} = props,
|
|
29
28
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
30
29
|
const apiRef = useGridPrivateApiContext();
|
|
31
|
-
const ref = React.useRef();
|
|
30
|
+
const ref = React.useRef(null);
|
|
32
31
|
const rootProps = useGridRootProps();
|
|
33
32
|
const ownerState = rootProps;
|
|
34
33
|
React.useLayoutEffect(() => {
|
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useLicenseVerifier, Watermark } from '@mui/x-license-pro';
|
|
5
|
-
import { chainPropTypes } from '@mui/utils';
|
|
6
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider, useGridSelector } from '@mui/x-data-grid';
|
|
7
6
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
8
7
|
import { useDataGridProProps } from './useDataGridProProps';
|
|
@@ -105,12 +104,7 @@ DataGridProRaw.propTypes = {
|
|
|
105
104
|
* It only works if the pagination is enabled.
|
|
106
105
|
* @default false
|
|
107
106
|
*/
|
|
108
|
-
checkboxSelectionVisibleOnly:
|
|
109
|
-
if (!props.pagination && props.checkboxSelectionVisibleOnly) {
|
|
110
|
-
return new Error('MUI: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.');
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}),
|
|
107
|
+
checkboxSelectionVisibleOnly: PropTypes.bool,
|
|
114
108
|
/**
|
|
115
109
|
* Override or extend the styles applied to the component.
|
|
116
110
|
*/
|
|
@@ -275,12 +269,7 @@ DataGridProRaw.propTypes = {
|
|
|
275
269
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
276
270
|
* @default "client"
|
|
277
271
|
*/
|
|
278
|
-
filterMode:
|
|
279
|
-
if (props.treeData && props.filterMode === 'server') {
|
|
280
|
-
return new Error('MUI: The `filterMode="server"` prop is not available when the `treeData` is enabled.');
|
|
281
|
-
}
|
|
282
|
-
return null;
|
|
283
|
-
}),
|
|
272
|
+
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
284
273
|
/**
|
|
285
274
|
* Set the filter model of the Data Grid.
|
|
286
275
|
*/
|
|
@@ -378,12 +367,7 @@ DataGridProRaw.propTypes = {
|
|
|
378
367
|
* It has no effect if the pagination is enabled.
|
|
379
368
|
* @default false
|
|
380
369
|
*/
|
|
381
|
-
hideFooterRowCount:
|
|
382
|
-
if (props.pagination && props.hideFooterRowCount) {
|
|
383
|
-
return new Error('MUI: The `hideFooterRowCount` prop has no effect when the pagination is enabled.');
|
|
384
|
-
}
|
|
385
|
-
return null;
|
|
386
|
-
}),
|
|
370
|
+
hideFooterRowCount: PropTypes.bool,
|
|
387
371
|
/**
|
|
388
372
|
* If `true`, the selected row count in the footer is hidden.
|
|
389
373
|
* @default false
|
|
@@ -3,12 +3,11 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["rowId", "height", "style"];
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import Box from '@mui/material/Box';
|
|
7
6
|
import { styled } from '@mui/material/styles';
|
|
8
7
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
9
8
|
import { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
var DetailPanel = styled(
|
|
10
|
+
var DetailPanel = styled('div', {
|
|
12
11
|
name: 'MuiDataGrid',
|
|
13
12
|
slot: 'DetailPanel',
|
|
14
13
|
overridesResolver: function overridesResolver(props, styles) {
|
|
@@ -31,7 +30,7 @@ function GridDetailPanel(props) {
|
|
|
31
30
|
styleProp = _props$style === void 0 ? {} : _props$style,
|
|
32
31
|
other = _objectWithoutProperties(props, _excluded);
|
|
33
32
|
var apiRef = useGridPrivateApiContext();
|
|
34
|
-
var ref = React.useRef();
|
|
33
|
+
var ref = React.useRef(null);
|
|
35
34
|
var rootProps = useGridRootProps();
|
|
36
35
|
var ownerState = rootProps;
|
|
37
36
|
React.useLayoutEffect(function () {
|
|
@@ -27,18 +27,17 @@ var GridScrollAreaRawRoot = styled('div', {
|
|
|
27
27
|
return [_defineProperty({}, "&.".concat(gridClasses['scrollArea--left']), styles['scrollArea--left']), _defineProperty({}, "&.".concat(gridClasses['scrollArea--right']), styles['scrollArea--right']), styles.scrollArea];
|
|
28
28
|
}
|
|
29
29
|
})(function () {
|
|
30
|
-
|
|
31
|
-
return _ref3 = {
|
|
30
|
+
return _defineProperty(_defineProperty({
|
|
32
31
|
position: 'absolute',
|
|
33
32
|
top: 0,
|
|
34
33
|
zIndex: 101,
|
|
35
34
|
width: 20,
|
|
36
35
|
bottom: 0
|
|
37
|
-
},
|
|
36
|
+
}, "&.".concat(gridClasses['scrollArea--left']), {
|
|
38
37
|
left: 0
|
|
39
|
-
}),
|
|
38
|
+
}), "&.".concat(gridClasses['scrollArea--right']), {
|
|
40
39
|
right: 0
|
|
41
|
-
})
|
|
40
|
+
});
|
|
42
41
|
});
|
|
43
42
|
function GridScrollAreaRaw(props) {
|
|
44
43
|
var scrollDirection = props.scrollDirection;
|
|
@@ -155,15 +155,14 @@ export var useGridColumnPinning = function useGridColumnPinning(apiRef, props) {
|
|
|
155
155
|
}
|
|
156
156
|
}, [props.disableColumnPinning]);
|
|
157
157
|
var pinColumn = React.useCallback(function (field, side) {
|
|
158
|
-
var _newPinnedColumns;
|
|
159
158
|
checkIfEnabled('pinColumn');
|
|
160
159
|
if (apiRef.current.isColumnPinned(field) === side) {
|
|
161
160
|
return;
|
|
162
161
|
}
|
|
163
162
|
var otherSide = side === GridPinnedPosition.right ? GridPinnedPosition.left : GridPinnedPosition.right;
|
|
164
|
-
var newPinnedColumns = (
|
|
163
|
+
var newPinnedColumns = _defineProperty(_defineProperty({}, side, [].concat(_toConsumableArray(pinnedColumns[side] || []), [field])), otherSide, (pinnedColumns[otherSide] || []).filter(function (column) {
|
|
165
164
|
return column !== field;
|
|
166
|
-
}))
|
|
165
|
+
}));
|
|
167
166
|
apiRef.current.setPinnedColumns(newPinnedColumns);
|
|
168
167
|
}, [apiRef, checkIfEnabled, pinnedColumns]);
|
|
169
168
|
var unpinColumn = React.useCallback(function (field) {
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwNjEzMzYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useLicenseVerifier, Watermark } from '@mui/x-license-pro';
|
|
5
|
-
import { chainPropTypes } from '@mui/utils';
|
|
6
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider, useGridSelector } from '@mui/x-data-grid';
|
|
7
6
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
8
7
|
import { useDataGridProProps } from './useDataGridProProps';
|
|
@@ -105,12 +104,7 @@ DataGridProRaw.propTypes = {
|
|
|
105
104
|
* It only works if the pagination is enabled.
|
|
106
105
|
* @default false
|
|
107
106
|
*/
|
|
108
|
-
checkboxSelectionVisibleOnly:
|
|
109
|
-
if (!props.pagination && props.checkboxSelectionVisibleOnly) {
|
|
110
|
-
return new Error('MUI: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.');
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}),
|
|
107
|
+
checkboxSelectionVisibleOnly: PropTypes.bool,
|
|
114
108
|
/**
|
|
115
109
|
* Override or extend the styles applied to the component.
|
|
116
110
|
*/
|
|
@@ -275,12 +269,7 @@ DataGridProRaw.propTypes = {
|
|
|
275
269
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
276
270
|
* @default "client"
|
|
277
271
|
*/
|
|
278
|
-
filterMode:
|
|
279
|
-
if (props.treeData && props.filterMode === 'server') {
|
|
280
|
-
return new Error('MUI: The `filterMode="server"` prop is not available when the `treeData` is enabled.');
|
|
281
|
-
}
|
|
282
|
-
return null;
|
|
283
|
-
}),
|
|
272
|
+
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
284
273
|
/**
|
|
285
274
|
* Set the filter model of the Data Grid.
|
|
286
275
|
*/
|
|
@@ -378,12 +367,7 @@ DataGridProRaw.propTypes = {
|
|
|
378
367
|
* It has no effect if the pagination is enabled.
|
|
379
368
|
* @default false
|
|
380
369
|
*/
|
|
381
|
-
hideFooterRowCount:
|
|
382
|
-
if (props.pagination && props.hideFooterRowCount) {
|
|
383
|
-
return new Error('MUI: The `hideFooterRowCount` prop has no effect when the pagination is enabled.');
|
|
384
|
-
}
|
|
385
|
-
return null;
|
|
386
|
-
}),
|
|
370
|
+
hideFooterRowCount: PropTypes.bool,
|
|
387
371
|
/**
|
|
388
372
|
* If `true`, the selected row count in the footer is hidden.
|
|
389
373
|
* @default false
|
|
@@ -2,12 +2,11 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["rowId", "height", "style"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import Box from '@mui/material/Box';
|
|
6
5
|
import { styled } from '@mui/material/styles';
|
|
7
6
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
8
7
|
import { useGridPrivateApiContext } from '../hooks/utils/useGridPrivateApiContext';
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
const DetailPanel = styled(
|
|
9
|
+
const DetailPanel = styled('div', {
|
|
11
10
|
name: 'MuiDataGrid',
|
|
12
11
|
slot: 'DetailPanel',
|
|
13
12
|
overridesResolver: (props, styles) => styles.detailPanel
|
|
@@ -28,7 +27,7 @@ function GridDetailPanel(props) {
|
|
|
28
27
|
} = props,
|
|
29
28
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
30
29
|
const apiRef = useGridPrivateApiContext();
|
|
31
|
-
const ref = React.useRef();
|
|
30
|
+
const ref = React.useRef(null);
|
|
32
31
|
const rootProps = useGridRootProps();
|
|
33
32
|
const ownerState = rootProps;
|
|
34
33
|
React.useLayoutEffect(() => {
|
package/modern/index.js
CHANGED
package/modern/utils/domUtils.js
CHANGED
|
@@ -25,7 +25,6 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
25
25
|
}
|
|
26
26
|
const renderedRowElements = api.virtualScrollerRef?.current.querySelectorAll(`:scope > div > div > .${gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
27
27
|
);
|
|
28
|
-
|
|
29
28
|
renderedRowElements.forEach(rowElement => {
|
|
30
29
|
const rowId = rowElement.getAttribute('data-id');
|
|
31
30
|
if (!rowId) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _xLicensePro = require("@mui/x-license-pro");
|
|
12
|
-
var _utils = require("@mui/utils");
|
|
13
12
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
14
13
|
var _useDataGridProComponent = require("./useDataGridProComponent");
|
|
15
14
|
var _useDataGridProProps = require("./useDataGridProProps");
|
|
@@ -113,12 +112,7 @@ DataGridProRaw.propTypes = {
|
|
|
113
112
|
* It only works if the pagination is enabled.
|
|
114
113
|
* @default false
|
|
115
114
|
*/
|
|
116
|
-
checkboxSelectionVisibleOnly:
|
|
117
|
-
if (!props.pagination && props.checkboxSelectionVisibleOnly) {
|
|
118
|
-
return new Error('MUI: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.');
|
|
119
|
-
}
|
|
120
|
-
return null;
|
|
121
|
-
}),
|
|
115
|
+
checkboxSelectionVisibleOnly: _propTypes.default.bool,
|
|
122
116
|
/**
|
|
123
117
|
* Override or extend the styles applied to the component.
|
|
124
118
|
*/
|
|
@@ -283,12 +277,7 @@ DataGridProRaw.propTypes = {
|
|
|
283
277
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
284
278
|
* @default "client"
|
|
285
279
|
*/
|
|
286
|
-
filterMode:
|
|
287
|
-
if (props.treeData && props.filterMode === 'server') {
|
|
288
|
-
return new Error('MUI: The `filterMode="server"` prop is not available when the `treeData` is enabled.');
|
|
289
|
-
}
|
|
290
|
-
return null;
|
|
291
|
-
}),
|
|
280
|
+
filterMode: _propTypes.default.oneOf(['client', 'server']),
|
|
292
281
|
/**
|
|
293
282
|
* Set the filter model of the Data Grid.
|
|
294
283
|
*/
|
|
@@ -386,12 +375,7 @@ DataGridProRaw.propTypes = {
|
|
|
386
375
|
* It has no effect if the pagination is enabled.
|
|
387
376
|
* @default false
|
|
388
377
|
*/
|
|
389
|
-
hideFooterRowCount:
|
|
390
|
-
if (props.pagination && props.hideFooterRowCount) {
|
|
391
|
-
return new Error('MUI: The `hideFooterRowCount` prop has no effect when the pagination is enabled.');
|
|
392
|
-
}
|
|
393
|
-
return null;
|
|
394
|
-
}),
|
|
378
|
+
hideFooterRowCount: _propTypes.default.bool,
|
|
395
379
|
/**
|
|
396
380
|
* If `true`, the selected row count in the footer is hidden.
|
|
397
381
|
* @default false
|
|
@@ -8,7 +8,6 @@ exports.GridDetailPanel = GridDetailPanel;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _Box = _interopRequireDefault(require("@mui/material/Box"));
|
|
12
11
|
var _styles = require("@mui/material/styles");
|
|
13
12
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
14
13
|
var _useGridPrivateApiContext = require("../hooks/utils/useGridPrivateApiContext");
|
|
@@ -16,7 +15,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
15
|
const _excluded = ["rowId", "height", "style"];
|
|
17
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
const DetailPanel = (0, _styles.styled)(
|
|
18
|
+
const DetailPanel = (0, _styles.styled)('div', {
|
|
20
19
|
name: 'MuiDataGrid',
|
|
21
20
|
slot: 'DetailPanel',
|
|
22
21
|
overridesResolver: (props, styles) => styles.detailPanel
|
|
@@ -37,7 +36,7 @@ function GridDetailPanel(props) {
|
|
|
37
36
|
} = props,
|
|
38
37
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
39
38
|
const apiRef = (0, _useGridPrivateApiContext.useGridPrivateApiContext)();
|
|
40
|
-
const ref = React.useRef();
|
|
39
|
+
const ref = React.useRef(null);
|
|
41
40
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
42
41
|
const ownerState = rootProps;
|
|
43
42
|
React.useLayoutEffect(() => {
|
package/node/index.js
CHANGED
package/node/utils/domUtils.js
CHANGED
|
@@ -36,7 +36,6 @@ function findGridCellElementsFromCol(col, api) {
|
|
|
36
36
|
}
|
|
37
37
|
const renderedRowElements = api.virtualScrollerRef?.current.querySelectorAll(`:scope > div > div > .${_xDataGrid.gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
38
38
|
);
|
|
39
|
-
|
|
40
39
|
renderedRowElements.forEach(rowElement => {
|
|
41
40
|
const rowId = rowElement.getAttribute('data-id');
|
|
42
41
|
if (!rowId) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "6.19.
|
|
3
|
+
"version": "6.19.2",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.23.2",
|
|
35
35
|
"@mui/utils": "^5.14.16",
|
|
36
|
-
"@mui/x-data-grid": "6.19.
|
|
36
|
+
"@mui/x-data-grid": "6.19.2",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.3",
|
|
39
39
|
"clsx": "^2.0.0",
|
package/utils/domUtils.js
CHANGED
|
@@ -27,7 +27,6 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
27
27
|
}
|
|
28
28
|
const renderedRowElements = (_api$virtualScrollerR2 = api.virtualScrollerRef) == null ? void 0 : _api$virtualScrollerR2.current.querySelectorAll(`:scope > div > div > .${gridClasses.row}` // Use > to ignore rows from nested data grids (e.g. in detail panel)
|
|
29
29
|
);
|
|
30
|
-
|
|
31
30
|
renderedRowElements.forEach(rowElement => {
|
|
32
31
|
const rowId = rowElement.getAttribute('data-id');
|
|
33
32
|
if (!rowId) {
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwNjEzMzYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|