@mui/x-data-grid-pro 6.18.7 → 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 CHANGED
@@ -3,6 +3,112 @@
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` [![pro](https://mui.com/r/x-pro-svg)](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` [![pro](https://mui.com/r/x-pro-svg)](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` [![premium](https://mui.com/r/x-premium-svg)](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
+
41
+ ## 6.19.1
42
+
43
+ _Jan 19, 2024_
44
+
45
+ We'd like to offer a big thanks to the 1 contributors who made this release possible. Here are some highlights ✨:
46
+
47
+ - 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
48
+ - 🐞 Bugfixes
49
+
50
+ ### Data Grid
51
+
52
+ #### `@mui/x-data-grid@6.19.1`
53
+
54
+ - [l10n] Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
55
+
56
+ #### `@mui/x-data-grid-pro@6.19.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
57
+
58
+ Same changes as in `@mui/x-data-grid@6.19.1`.
59
+
60
+ #### `@mui/x-data-grid-premium@6.19.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
61
+
62
+ Same changes as in `@mui/x-data-grid-pro@6.19.1`.
63
+
64
+ ### Charts / `@mui/x-charts@6.19.1`
65
+
66
+ - [charts] Add `arcLabelRadius` property (#11563) @alexfauquette
67
+ - [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11719) @alexfauquette
68
+ - [charts] Fix default `stackOffset` for `LineChart` (#11703) @alexfauquette
69
+
70
+ ## 6.19.0
71
+
72
+ _Jan 11, 2024_
73
+
74
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
75
+
76
+ - ⏰ Support date-fns v3 (#11659) @LukasTy
77
+ Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
78
+ ```js
79
+ // with date-fns v2.x
80
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
81
+ import de from 'date-fns/locale/de';
82
+ ```
83
+ ```js
84
+ // with date-fns v3.x
85
+ import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
86
+ import { de } from 'date-fns/locale/de';
87
+ ```
88
+
89
+ ### Date Pickers
90
+
91
+ #### `@mui/x-date-pickers@6.19.0`
92
+
93
+ - [pickers] Add date-fns@3.x adapter (#11659) @LukasTy
94
+ - [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11643) @noraleonte
95
+ - [l10n] Add missing Danish (da-DK) locale export (#11641) @etlos
96
+
97
+ #### `@mui/x-date-pickers-pro@6.19.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
98
+
99
+ Same changes as in `@mui/x-date-pickers@6.19.0`.
100
+
101
+ ### Docs
102
+
103
+ - [docs] Add missing component @oliviertassinari
104
+ - [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11637) @LukasTy
105
+ - [docs] Push up the MUI X brand (#11533) @oliviertassinari
106
+ - [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
107
+ - [docs] Add demo to the charts overview page (#11586) @danilo-leal
108
+ - [docs] Fix 404 links in the docs @oliviertassinari
109
+ - [docs] Improve landing page (#11570) @oliviertassinari
110
+ - [docs] Give a general revision to the docs (#11249) @danilo-leal
111
+
6
112
  ## 6.18.7
7
113
 
8
114
  _Jan 5, 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: chainPropTypes(PropTypes.bool, props => {
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: chainPropTypes(PropTypes.oneOf(['client', 'server']), props => {
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: chainPropTypes(PropTypes.bool, props => {
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(Box, {
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(() => {
@@ -42,7 +42,6 @@ function GridTreeDataGroupingCell(props) {
42
42
  apiRef.current.setCellFocus(id, field);
43
43
  event.stopPropagation(); // TODO remove event.stopPropagation
44
44
  };
45
-
46
45
  return /*#__PURE__*/_jsxs(Box, {
47
46
  className: classes.root,
48
47
  sx: {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.18.7
2
+ * @mui/x-data-grid-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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: chainPropTypes(PropTypes.bool, function (props) {
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: chainPropTypes(PropTypes.oneOf(['client', 'server']), function (props) {
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: chainPropTypes(PropTypes.bool, function (props) {
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(Box, {
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
- var _ref3;
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
- }, _defineProperty(_ref3, "&.".concat(gridClasses['scrollArea--left']), {
36
+ }, "&.".concat(gridClasses['scrollArea--left']), {
38
37
  left: 0
39
- }), _defineProperty(_ref3, "&.".concat(gridClasses['scrollArea--right']), {
38
+ }), "&.".concat(gridClasses['scrollArea--right']), {
40
39
  right: 0
41
- }), _ref3;
40
+ });
42
41
  });
43
42
  function GridScrollAreaRaw(props) {
44
43
  var scrollDirection = props.scrollDirection;
@@ -39,7 +39,6 @@ function GridTreeDataGroupingCell(props) {
39
39
  apiRef.current.setCellFocus(id, field);
40
40
  event.stopPropagation(); // TODO remove event.stopPropagation
41
41
  };
42
-
43
42
  return /*#__PURE__*/_jsxs(Box, {
44
43
  className: classes.root,
45
44
  sx: {
@@ -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 = (_newPinnedColumns = {}, _defineProperty(_newPinnedColumns, side, [].concat(_toConsumableArray(pinnedColumns[side] || []), [field])), _defineProperty(_newPinnedColumns, otherSide, (pinnedColumns[otherSide] || []).filter(function (column) {
163
+ var newPinnedColumns = _defineProperty(_defineProperty({}, side, [].concat(_toConsumableArray(pinnedColumns[side] || []), [field])), otherSide, (pinnedColumns[otherSide] || []).filter(function (column) {
165
164
  return column !== field;
166
- })), _newPinnedColumns);
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,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.18.7
2
+ * @mui/x-data-grid-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTcwNDQwOTIwMDAwMA==";
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
@@ -3,37 +3,37 @@ interface GetRowsParams {
3
3
  sortModel: GridSortModel;
4
4
  filterModel: GridFilterModel;
5
5
  /**
6
- * Alternate to `start` and `end`, maps to `GridPaginationModel` interface
6
+ * Alternate to `start` and `end`, maps to `GridPaginationModel` interface.
7
7
  */
8
8
  paginationModel: GridPaginationModel;
9
9
  /**
10
- * First row index to fetch (number) or cursor information (number | string)
10
+ * First row index to fetch (number) or cursor information (number | string).
11
11
  */
12
12
  start: number | string;
13
13
  /**
14
- * Last row index to fetch
14
+ * Last row index to fetch.
15
15
  */
16
16
  end: number;
17
17
  /**
18
18
  * Array of keys returned by `getGroupKey` of all the parent rows until the row for which the data is requested
19
- * `getGroupKey` prop must be implemented to use this
20
- * Useful for `treeData` and `rowGrouping` only
19
+ * `getGroupKey` prop must be implemented to use this.
20
+ * Useful for `treeData` and `rowGrouping` only.
21
21
  */
22
22
  groupKeys: string[];
23
23
  /**
24
- * List of grouped columns (only applicable with `rowGrouping`)
24
+ * List of grouped columns (only applicable with `rowGrouping`).
25
25
  */
26
26
  groupFields: GridColDef['field'][];
27
27
  }
28
28
  interface GetRowsResponse {
29
29
  rows: GridRowModel[];
30
30
  /**
31
- * To reflect updates in total `rowCount` (optional)
32
- * Useful when the `rowCount` is inaccurate (e.g. when filtering) or not available upfront
31
+ * To reflect updates in total `rowCount` (optional).
32
+ * Useful when the `rowCount` is inaccurate (e.g. when filtering) or not available upfront.
33
33
  */
34
34
  rowCount?: number;
35
35
  /**
36
- * Additional `pageInfo` to help the grid determine if there are more rows to fetch (corner-cases)
36
+ * Additional `pageInfo` to help the grid determine if there are more rows to fetch (corner-cases).
37
37
  * `hasNextPage`: When row count is unknown/inaccurate, if `truncated` is set or rowCount is not known, data will keep loading until `hasNextPage` is `false`
38
38
  * `truncated`: To reflect `rowCount` is inaccurate (will trigger `x-y of many` in pagination after the count of rows fetched is greater than provided `rowCount`)
39
39
  * It could be useful with:
@@ -51,13 +51,13 @@ interface GetRowsResponse {
51
51
  }
52
52
  export interface DataSource {
53
53
  /**
54
- Fetcher Functions:
55
- - `getRows` is required
56
- - `updateRow` is optional
57
-
58
- `getRows` will be used by the grid to fetch data for the current page or children for the current parent group
59
- It may return a `rowCount` to update the total count of rows in the grid along with the optional `pageInfo`
60
- */
54
+ * Fetcher Functions:
55
+ * - `getRows` is required
56
+ * - `updateRow` is optional
57
+ *
58
+ * `getRows` will be used by the grid to fetch data for the current page or children for the current parent group.
59
+ * It may return a `rowCount` to update the total count of rows in the grid along with the optional `pageInfo`.
60
+ */
61
61
  getRows(params: GetRowsParams): Promise<GetRowsResponse>;
62
62
  updateRow?(rows: GridRowModel): Promise<any>;
63
63
  }
@@ -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: chainPropTypes(PropTypes.bool, props => {
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: chainPropTypes(PropTypes.oneOf(['client', 'server']), props => {
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: chainPropTypes(PropTypes.bool, props => {
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(Box, {
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(() => {
@@ -41,7 +41,6 @@ function GridTreeDataGroupingCell(props) {
41
41
  apiRef.current.setCellFocus(id, field);
42
42
  event.stopPropagation(); // TODO remove event.stopPropagation
43
43
  };
44
-
45
44
  return /*#__PURE__*/_jsxs(Box, {
46
45
  className: classes.root,
47
46
  sx: {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.18.7
2
+ * @mui/x-data-grid-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTcwNDQwOTIwMDAwMA==";
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: (0, _utils.chainPropTypes)(_propTypes.default.bool, props => {
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: (0, _utils.chainPropTypes)(_propTypes.default.oneOf(['client', 'server']), props => {
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: (0, _utils.chainPropTypes)(_propTypes.default.bool, props => {
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)(_Box.default, {
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(() => {
@@ -49,7 +49,6 @@ function GridTreeDataGroupingCell(props) {
49
49
  apiRef.current.setCellFocus(id, field);
50
50
  event.stopPropagation(); // TODO remove event.stopPropagation
51
51
  };
52
-
53
52
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
54
53
  className: classes.root,
55
54
  sx: {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.18.7
2
+ * @mui/x-data-grid-pro v6.19.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTcwNDQwOTIwMDAwMA==";
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.18.7",
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.18.7",
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) {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNDQwOTIwMDAwMA==";
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