@mui/x-data-grid-pro 6.19.1 → 6.19.3

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,90 @@
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.3
7
+
8
+ _Feb 1, 2024_
9
+
10
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
13
+ - 🐞 Bugfixes
14
+ - 📚 Documentation improvements
15
+
16
+ ### Data Grid
17
+
18
+ #### `@mui/x-data-grid@6.19.3`
19
+
20
+ - [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
21
+
22
+ #### `@mui/x-data-grid-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
23
+
24
+ Same changes as in `@mui/x-data-grid@6.19.3`.
25
+
26
+ #### `@mui/x-data-grid-premium@6.19.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
27
+
28
+ Same changes as in `@mui/x-data-grid-pro@6.19.3`.
29
+
30
+ ### Date Pickers
31
+
32
+ #### `@mui/x-date-pickers@6.19.3`
33
+
34
+ - [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
35
+
36
+ #### `@mui/x-date-pickers-pro@6.19.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-date-pickers@6.19.3`.
39
+
40
+ ### Charts / `@mui/x-charts@6.19.3`
41
+
42
+ - [charts] Document how to modify color according to values (#11854) @alexfauquette
43
+
44
+ ### Docs
45
+
46
+ - [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
47
+ - [docs] Fix 404 (#11852) @alexfauquette
48
+ - [docs] Fix <title> generation (#11825) @alexfauquette
49
+ - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
50
+ - [docs] Improve Support page (#11556) @oliviertassinari
51
+ - [docs] Sync support page with core @oliviertassinari
52
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
53
+ - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
54
+
55
+ ## 6.19.2
56
+
57
+ _Jan 25, 2024_
58
+
59
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
60
+
61
+ - 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
62
+ - 🐞 Bugfixes
63
+
64
+ ### Date Pickers
65
+
66
+ #### `@mui/x-date-pickers@6.19.2`
67
+
68
+ - [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
69
+
70
+ #### `@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')
71
+
72
+ Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
73
+
74
+ - [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
75
+
76
+ ### Data Grid
77
+
78
+ #### `@mui/x-data-grid@6.19.2`
79
+
80
+ - [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
81
+
82
+ #### `@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')
83
+
84
+ Same changes as in `@mui/x-data-grid@6.19.2`.
85
+
86
+ #### `@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')
87
+
88
+ Same changes as in `@mui/x-data-grid-pro@6.19.2`.
89
+
6
90
  ## 6.19.1
7
91
 
8
92
  _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: 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.19.1
2
+ * @mui/x-data-grid-pro v6.19.3
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.19.1
2
+ * @mui/x-data-grid-pro v6.19.3
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 = "MTcwNTYxODgwMDAwMA==";
3
+ var releaseInfo = "MTcwNjczODQwMDAwMA==";
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: 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.19.1
2
+ * @mui/x-data-grid-pro v6.19.3
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 = "MTcwNTYxODgwMDAwMA==";
3
+ const releaseInfo = "MTcwNjczODQwMDAwMA==";
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.19.1
2
+ * @mui/x-data-grid-pro v6.19.3
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 = "MTcwNTYxODgwMDAwMA==";
9
+ const releaseInfo = "MTcwNjczODQwMDAwMA==";
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.1",
3
+ "version": "6.19.3",
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.1",
36
+ "@mui/x-data-grid": "6.19.3",
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 = "MTcwNTYxODgwMDAwMA==";
3
+ const releaseInfo = "MTcwNjczODQwMDAwMA==";
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