@mui/x-data-grid-pro 8.4.0 → 8.5.0

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
@@ -5,6 +5,109 @@
5
5
  All notable changes to this project will be documented in this file.
6
6
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
7
 
8
+ ## 8.5.0
9
+
10
+ _May 29, 2025_
11
+
12
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 Add support for exporting `RadarChartPro`, `FunnelChart` and `Heatmap` as image and PDF.
15
+ - 📊 `RadarChart` is now stable.
16
+
17
+ Special thanks go out to the community members for their valuable contributions:
18
+ @xBlizZer, @sai6855, @alisasanib.
19
+ Following are all team members who have contributed to this release:
20
+ @alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @oliviertassinari.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@8.5.0`
27
+
28
+ - [DataGrid] Avoid ResizeObserver loop error (#17984) @cherniavskii
29
+ - [DataGrid] Fix column management `toggleColumn` event type (#18023) @KenanYusuf
30
+ - [DataGrid] Remove unnecessary `any` type (#17979) @sai6855
31
+
32
+ #### `@mui/x-data-grid-pro@8.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@8.5.0`, plus:
35
+
36
+ - [DataGridPro] Allow multi sorting without modifier key (#17925) @cherniavskii
37
+ - [DataGridPro] Row reordering icon improvements (#17947) @KenanYusuf
38
+ - [DataGridPro] Fix pinned columns order in column management (#17950) @alisasanib
39
+
40
+ #### `@mui/x-data-grid-premium@8.5.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@8.5.0`, plus:
43
+
44
+ - [DataGridPremium] Export `GridApiPremium` type (#18037) @arminmeh
45
+
46
+ ### Date and Time Pickers
47
+
48
+ #### `@mui/x-date-pickers@8.5.0`
49
+
50
+ Internal changes.
51
+
52
+ #### `@mui/x-date-pickers-pro@8.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@8.5.0`, plus:
55
+
56
+ - [DateRangePicker] Allow to override the format in the field (#17972) @flaviendelangle
57
+
58
+ ### Charts
59
+
60
+ #### `@mui/x-charts@8.5.0`
61
+
62
+ - [charts] Add `render` prop to charts toolbar components (#17649) @bernardobelchior
63
+ - [charts] Add configurable slots to toolbar (#17712) @bernardobelchior
64
+ - [charts] Export `useFunnelSeries` and `useRadarSeries` (#18034) @JCQuintas
65
+ - [charts] Expose `ChartApi` through context (#18004) @bernardobelchior
66
+ - [charts] Mark Radar chart as stable (#17946) @alexfauquette
67
+ - [charts] Only update store if interaction item is different (#17851) @bernardobelchior
68
+ - [charts] Reuse shared date utils (#18014) @JCQuintas
69
+ - [charts] Use Map for string cache instead of object (#17982) @bernardobelchior
70
+ - [charts] Fix Population pyramid demo (#17987) @oliviertassinari
71
+
72
+ #### `@mui/x-charts-pro@8.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
73
+
74
+ Same changes as in `@mui/x-charts@8.5.0`, plus:
75
+
76
+ - [charts-pro] Add range selection to zoom slider (#17949) @bernardobelchior
77
+ - [charts-pro] Allow configuring zoom slider tooltip (#18030) @bernardobelchior
78
+ - [charts-pro] Allow exporting a funnel chart (#17957) @bernardobelchior
79
+ - [charts-pro] Allow exporting a heatmap chart (#17916) @bernardobelchior
80
+ - [charts-pro] Allow exporting a radar chart (#17968) @bernardobelchior
81
+ - [charts-pro] Always show both zoom slider tooltips (#18027) @bernardobelchior
82
+ - [charts-pro] Show zoom slider tooltip when selecting range (#18028) @bernardobelchior
83
+ - [charts-pro] Split `ChartAxisZoomSlider` into smaller files (#18011) @bernardobelchior
84
+ - [charts-pro] Update zoom slider range selection cursor (#17977) @bernardobelchior
85
+ - [charts-pro] Add support for Heatmap legend (#17943) @alexfauquette
86
+
87
+ ### Tree View
88
+
89
+ #### `@mui/x-tree-view@8.5.0`
90
+
91
+ Internal changes.
92
+
93
+ #### `@mui/x-tree-view-pro@8.5.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
94
+
95
+ Same changes as in `@mui/x-tree-view@8.5.0`.
96
+
97
+ ### Docs
98
+
99
+ - [docs] Fix derived column pivoting demo crash (#17944) @arminmeh
100
+ - [docs] Fix light/dark mode blink on pickers overview (#18002) @alexfauquette
101
+ - [docs] Fix scatter shape demo causing horizontal overflow (#17974) @bernardobelchior
102
+
103
+ ### Core
104
+
105
+ - [code-infra] Add bundle size monitor (#17754) @Janpot
106
+ - [code-infra] Enable `babel-plugin-display-name` in vitest (#17903) @JCQuintas
107
+ - [infra] Remove last deprecated `ponyfillGlobal` usage (#18003) @LukasTy
108
+ - [infra] Use `babel-plugin-display-name` from npm (#18040) @LukasTy
109
+ - [x-telemetry] Remove deprecated `ponyfillGlobal` (#17986) @xBlizZer
110
+
8
111
  ## 8.4.0
9
112
 
10
113
  _May 21, 2025_
@@ -29,7 +29,7 @@ const configuration = {
29
29
  useCellAggregationResult: () => null
30
30
  }
31
31
  };
32
- const releaseInfo = "MTc0Nzc3ODQwMDAwMA==";
32
+ const releaseInfo = "MTc0ODQ2OTYwMDAwMA==";
33
33
  const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
34
34
  packageName: "x-data-grid-pro",
35
35
  releaseInfo: releaseInfo
@@ -56,6 +56,7 @@ const DataGridProRaw = (0, _forwardRef.forwardRef)(function DataGridPro(inProps,
56
56
  }))
57
57
  });
58
58
  });
59
+ if (process.env.NODE_ENV !== "production") DataGridProRaw.displayName = "DataGridProRaw";
59
60
  /**
60
61
  * Features:
61
62
  * - [DataGridPro](https://mui.com/x/react-data-grid/features/)
@@ -532,6 +533,13 @@ DataGridProRaw.propTypes = {
532
533
  * @default "error" ("warn" in dev mode)
533
534
  */
534
535
  logLevel: _propTypes.default.oneOf(['debug', 'error', 'info', 'warn', false]),
536
+ /**
537
+ * If set to "always", the multi-sorting is applied without modifier key.
538
+ * Otherwise, the modifier key is required for multi-sorting to be applied.
539
+ * @see See https://mui.com/x/react-data-grid/sorting/#multi-sorting
540
+ * @default "withModifierKey"
541
+ */
542
+ multipleColumnsSortingMode: _propTypes.default.oneOf(['always', 'withModifierKey']),
535
543
  /**
536
544
  * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
537
545
  */
@@ -41,7 +41,8 @@ const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PRO_PROPS_DEFAULT_V
41
41
  treeData: false,
42
42
  lazyLoading: false,
43
43
  lazyLoadingRequestThrottleMs: 500,
44
- listView: false
44
+ listView: false,
45
+ multipleColumnsSortingMode: 'withModifierKey'
45
46
  });
46
47
  const defaultSlots = _dataGridProDefaultSlotsComponents.DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
47
48
  const useDataGridProProps = inProps => {
@@ -63,6 +63,7 @@ const GridColumnHeaders = exports.GridColumnHeaders = (0, _forwardRef.forwardRef
63
63
  children: [getColumnGroupHeadersRows(), getColumnHeadersRow(), getColumnFiltersRow(), /*#__PURE__*/(0, _jsxRuntime.jsx)(Filler, {})]
64
64
  }));
65
65
  });
66
+ if (process.env.NODE_ENV !== "production") GridColumnHeaders.displayName = "GridColumnHeaders";
66
67
  process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
67
68
  // ----------------------------- Warning --------------------------------
68
69
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -26,4 +26,5 @@ const GridProColumnMenu = exports.GridProColumnMenu = (0, _forwardRef.forwardRef
26
26
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PRO,
27
27
  ref: ref
28
28
  }));
29
- });
29
+ });
30
+ if (process.env.NODE_ENV !== "production") GridProColumnMenu.displayName = "GridProColumnMenu";
@@ -10,6 +10,7 @@ exports.renderRowReorderCell = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _system = require("@mui/system");
13
14
  var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
14
15
  var _xDataGrid = require("@mui/x-data-grid");
15
16
  var _internals = require("@mui/x-data-grid/internals");
@@ -22,10 +23,17 @@ const useUtilityClasses = ownerState => {
22
23
  } = ownerState;
23
24
  const slots = {
24
25
  root: ['rowReorderCell', isDraggable && 'rowReorderCell--draggable'],
25
- placeholder: ['rowReorderCellPlaceholder']
26
+ placeholder: ['rowReorderCellPlaceholder'],
27
+ icon: ['rowReorderIcon']
26
28
  };
27
29
  return (0, _composeClasses.default)(slots, _xDataGrid.getDataGridUtilityClass, classes);
28
30
  };
31
+ const RowReorderIcon = (0, _system.styled)('svg', {
32
+ name: 'MuiDataGrid',
33
+ slot: 'RowReorderIcon'
34
+ })({
35
+ color: _internals.vars.colors.foreground.muted
36
+ });
29
37
  function GridRowReorderCell(params) {
30
38
  const apiRef = (0, _xDataGrid.useGridApiContext)();
31
39
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
@@ -82,7 +90,12 @@ function GridRowReorderCell(params) {
82
90
  className: classes.root,
83
91
  draggable: isDraggable
84
92
  }, draggableEventHandlers, {
85
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.rowReorderIcon, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
93
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(RowReorderIcon, {
94
+ as: rootProps.slots.rowReorderIcon,
95
+ ownerState: ownerState,
96
+ className: classes.icon,
97
+ fontSize: "small"
98
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
99
  className: classes.placeholder,
87
100
  children: cellValue
88
101
  })]
@@ -12,7 +12,9 @@ var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _styles = require("@mui/material/styles");
15
- var _utils = require("@mui/utils");
15
+ var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
16
+ var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
17
+ var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
16
18
  var _fastMemo = require("@mui/x-internals/fastMemo");
17
19
  var _xDataGrid = require("@mui/x-data-grid");
18
20
  var _internals = require("@mui/x-data-grid/internals");
@@ -69,7 +71,7 @@ const useUtilityClasses = ownerState => {
69
71
  input: ['columnHeaderFilterInput'],
70
72
  operatorLabel: ['columnHeaderFilterOperatorLabel']
71
73
  };
72
- return (0, _utils.unstable_composeClasses)(slots, _xDataGrid.getDataGridUtilityClass, classes);
74
+ return (0, _composeClasses.default)(slots, _xDataGrid.getDataGridUtilityClass, classes);
73
75
  };
74
76
  const DEFAULT_INPUT_COMPONENTS = {
75
77
  string: _xDataGrid.GridFilterInputValue,
@@ -105,7 +107,7 @@ const GridHeaderFilterCell = (0, _forwardRef.forwardRef)((props, ref) => {
105
107
  const columnFields = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridVisibleColumnFieldsSelector);
106
108
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
107
109
  const cellRef = React.useRef(null);
108
- const handleRef = (0, _utils.unstable_useForkRef)(ref, cellRef);
110
+ const handleRef = (0, _useForkRef.default)(ref, cellRef);
109
111
  const inputRef = React.useRef(null);
110
112
  const buttonRef = React.useRef(null);
111
113
  const editingField = (0, _xDataGrid.useGridSelector)(apiRef, _internals.gridHeaderFilteringEditFieldSelector);
@@ -223,7 +225,7 @@ const GridHeaderFilterCell = (0, _forwardRef.forwardRef)((props, ref) => {
223
225
  showRightBorder
224
226
  });
225
227
  const classes = useUtilityClasses(ownerState);
226
- const label = currentOperator.headerLabel ?? apiRef.current.getLocaleText(`headerFilterOperator${(0, _utils.unstable_capitalize)(item.operator)}`);
228
+ const label = currentOperator.headerLabel ?? apiRef.current.getLocaleText(`headerFilterOperator${(0, _capitalize.default)(item.operator)}`);
227
229
  const isNoInputOperator = currentOperator.requiresFilterValue === false;
228
230
  const isApplied = item?.value !== undefined || isNoInputOperator;
229
231
  const isFilterActive = isApplied || hasFocus;
@@ -289,7 +291,7 @@ const GridHeaderFilterCell = (0, _forwardRef.forwardRef)((props, ref) => {
289
291
  slotProps: {
290
292
  root: {
291
293
  size: 'small',
292
- label: (0, _utils.unstable_capitalize)(label),
294
+ label: (0, _capitalize.default)(label),
293
295
  placeholder: ''
294
296
  }
295
297
  }
@@ -299,6 +301,7 @@ const GridHeaderFilterCell = (0, _forwardRef.forwardRef)((props, ref) => {
299
301
  }) : null]
300
302
  }));
301
303
  });
304
+ if (process.env.NODE_ENV !== "production") GridHeaderFilterCell.displayName = "GridHeaderFilterCell";
302
305
  process.env.NODE_ENV !== "production" ? GridHeaderFilterCell.propTypes = {
303
306
  // ----------------------------- Warning --------------------------------
304
307
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -9,7 +9,8 @@ exports.GridHeaderFilterMenu = GridHeaderFilterMenu;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
- var _utils = require("@mui/utils");
12
+ var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
13
+ var _HTMLElementType = _interopRequireDefault(require("@mui/utils/HTMLElementType"));
13
14
  var _xDataGrid = require("@mui/x-data-grid");
14
15
  var _jsxRuntime = require("react/jsx-runtime");
15
16
  function GridHeaderFilterMenu({
@@ -60,7 +61,7 @@ function GridHeaderFilterMenu({
60
61
  children: apiRef.current.getLocaleText('headerFilterClear')
61
62
  }, "filter-menu-clear-filter"), /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseDivider, {}, "filter-menu-divider")], operators.map(op => {
62
63
  const selected = op.value === item.operator;
63
- const label = op?.headerLabel ?? apiRef.current.getLocaleText(`headerFilterOperator${(0, _utils.unstable_capitalize)(op.value)}`);
64
+ const label = op?.headerLabel ?? apiRef.current.getLocaleText(`headerFilterOperator${(0, _capitalize.default)(op.value)}`);
64
65
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
65
66
  iconStart: selected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.menuItemCheckIcon, {
66
67
  fontSize: "small"
@@ -140,5 +141,5 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenu.propTypes = {
140
141
  value: _propTypes.default.string.isRequired
141
142
  })).isRequired,
142
143
  showClearItem: _propTypes.default.bool.isRequired,
143
- target: _utils.HTMLElementType
144
+ target: _HTMLElementType.default
144
145
  } : void 0;
@@ -11,7 +11,8 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
13
13
  var _xDataGrid = require("@mui/x-data-grid");
14
- var _utils = require("@mui/utils");
14
+ var _refType = _interopRequireDefault(require("@mui/utils/refType"));
15
+ var _useId = _interopRequireDefault(require("@mui/utils/useId"));
15
16
  var _internals = require("@mui/x-data-grid/internals");
16
17
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
17
18
  var _jsxRuntime = require("react/jsx-runtime");
@@ -28,8 +29,8 @@ function GridHeaderFilterMenuContainer(props) {
28
29
  clearFilterItem
29
30
  } = props,
30
31
  others = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
31
- const buttonId = (0, _utils.unstable_useId)();
32
- const menuId = (0, _utils.unstable_useId)();
32
+ const buttonId = (0, _useId.default)();
33
+ const menuId = (0, _useId.default)();
33
34
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
34
35
  const apiRef = (0, _xDataGrid.useGridApiContext)();
35
36
  const menuOpenField = (0, _xDataGrid.useGridSelector)(apiRef, _internals.gridHeaderFilteringMenuSelector);
@@ -84,7 +85,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
84
85
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
85
86
  // ----------------------------------------------------------------------
86
87
  applyFilterChanges: _propTypes.default.func.isRequired,
87
- buttonRef: _utils.refType,
88
+ buttonRef: _refType.default,
88
89
  clearFilterItem: _propTypes.default.func,
89
90
  disabled: _propTypes.default.bool,
90
91
  field: _propTypes.default.string.isRequired,
@@ -22,7 +22,7 @@ const configuration = {
22
22
  useCellAggregationResult: () => null
23
23
  }
24
24
  };
25
- const releaseInfo = "MTc0Nzc3ODQwMDAwMA==";
25
+ const releaseInfo = "MTc0ODQ2OTYwMDAwMA==";
26
26
  const watermark = /*#__PURE__*/_jsx(Watermark, {
27
27
  packageName: "x-data-grid-pro",
28
28
  releaseInfo: releaseInfo
@@ -49,6 +49,7 @@ const DataGridProRaw = forwardRef(function DataGridPro(inProps, ref) {
49
49
  }))
50
50
  });
51
51
  });
52
+ if (process.env.NODE_ENV !== "production") DataGridProRaw.displayName = "DataGridProRaw";
52
53
  /**
53
54
  * Features:
54
55
  * - [DataGridPro](https://mui.com/x/react-data-grid/features/)
@@ -525,6 +526,13 @@ DataGridProRaw.propTypes = {
525
526
  * @default "error" ("warn" in dev mode)
526
527
  */
527
528
  logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),
529
+ /**
530
+ * If set to "always", the multi-sorting is applied without modifier key.
531
+ * Otherwise, the modifier key is required for multi-sorting to be applied.
532
+ * @see See https://mui.com/x/react-data-grid/sorting/#multi-sorting
533
+ * @default "withModifierKey"
534
+ */
535
+ multipleColumnsSortingMode: PropTypes.oneOf(['always', 'withModifierKey']),
528
536
  /**
529
537
  * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
530
538
  */
@@ -33,7 +33,8 @@ export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PROPS_D
33
33
  treeData: false,
34
34
  lazyLoading: false,
35
35
  lazyLoadingRequestThrottleMs: 500,
36
- listView: false
36
+ listView: false,
37
+ multipleColumnsSortingMode: 'withModifierKey'
37
38
  });
38
39
  const defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
39
40
  export const useDataGridProProps = inProps => {
@@ -55,6 +55,7 @@ const GridColumnHeaders = forwardRef(function GridColumnHeaders(props, ref) {
55
55
  children: [getColumnGroupHeadersRows(), getColumnHeadersRow(), getColumnFiltersRow(), /*#__PURE__*/_jsx(Filler, {})]
56
56
  }));
57
57
  });
58
+ if (process.env.NODE_ENV !== "production") GridColumnHeaders.displayName = "GridColumnHeaders";
58
59
  process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
59
60
  // ----------------------------- Warning --------------------------------
60
61
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -18,4 +18,5 @@ export const GridProColumnMenu = forwardRef(function GridProColumnMenu(props, re
18
18
  defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PRO,
19
19
  ref: ref
20
20
  }));
21
- });
21
+ });
22
+ if (process.env.NODE_ENV !== "production") GridProColumnMenu.displayName = "GridProColumnMenu";
@@ -1,9 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
+ import { styled } from '@mui/system';
4
5
  import composeClasses from '@mui/utils/composeClasses';
5
6
  import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass, gridClasses } from '@mui/x-data-grid';
6
- import { gridEditRowsStateSelector, isEventTargetInPortal } from '@mui/x-data-grid/internals';
7
+ import { gridEditRowsStateSelector, isEventTargetInPortal, vars } from '@mui/x-data-grid/internals';
7
8
  import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
10
  const useUtilityClasses = ownerState => {
@@ -13,10 +14,17 @@ const useUtilityClasses = ownerState => {
13
14
  } = ownerState;
14
15
  const slots = {
15
16
  root: ['rowReorderCell', isDraggable && 'rowReorderCell--draggable'],
16
- placeholder: ['rowReorderCellPlaceholder']
17
+ placeholder: ['rowReorderCellPlaceholder'],
18
+ icon: ['rowReorderIcon']
17
19
  };
18
20
  return composeClasses(slots, getDataGridUtilityClass, classes);
19
21
  };
22
+ const RowReorderIcon = styled('svg', {
23
+ name: 'MuiDataGrid',
24
+ slot: 'RowReorderIcon'
25
+ })({
26
+ color: vars.colors.foreground.muted
27
+ });
20
28
  function GridRowReorderCell(params) {
21
29
  const apiRef = useGridApiContext();
22
30
  const rootProps = useGridRootProps();
@@ -73,7 +81,12 @@ function GridRowReorderCell(params) {
73
81
  className: classes.root,
74
82
  draggable: isDraggable
75
83
  }, draggableEventHandlers, {
76
- children: [/*#__PURE__*/_jsx(rootProps.slots.rowReorderIcon, {}), /*#__PURE__*/_jsx("div", {
84
+ children: [/*#__PURE__*/_jsx(RowReorderIcon, {
85
+ as: rootProps.slots.rowReorderIcon,
86
+ ownerState: ownerState,
87
+ className: classes.icon,
88
+ fontSize: "small"
89
+ }), /*#__PURE__*/_jsx("div", {
77
90
  className: classes.placeholder,
78
91
  children: cellValue
79
92
  })]
@@ -5,7 +5,9 @@ import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import clsx from 'clsx';
7
7
  import { styled } from '@mui/material/styles';
8
- import { unstable_useForkRef as useForkRef, unstable_composeClasses as composeClasses, unstable_capitalize as capitalize } from '@mui/utils';
8
+ import useForkRef from '@mui/utils/useForkRef';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import capitalize from '@mui/utils/capitalize';
9
11
  import { fastMemo } from '@mui/x-internals/fastMemo';
10
12
  import { gridVisibleColumnFieldsSelector, getDataGridUtilityClass, useGridSelector, GridFilterInputValue, GridFilterInputDate, GridFilterInputBoolean, GridFilterInputSingleSelect, gridFilterModelSelector, gridFilterableColumnLookupSelector, gridClasses } from '@mui/x-data-grid';
11
13
  import { PinnedColumnPosition, useGridPrivateApiContext, gridHeaderFilteringEditFieldSelector, gridHeaderFilteringMenuSelector, isNavigationKey, attachPinnedStyle, vars } from '@mui/x-data-grid/internals';
@@ -291,6 +293,7 @@ const GridHeaderFilterCell = forwardRef((props, ref) => {
291
293
  }) : null]
292
294
  }));
293
295
  });
296
+ if (process.env.NODE_ENV !== "production") GridHeaderFilterCell.displayName = "GridHeaderFilterCell";
294
297
  process.env.NODE_ENV !== "production" ? GridHeaderFilterCell.propTypes = {
295
298
  // ----------------------------- Warning --------------------------------
296
299
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { unstable_capitalize as capitalize, HTMLElementType } from '@mui/utils';
4
+ import capitalize from '@mui/utils/capitalize';
5
+ import HTMLElementType from '@mui/utils/HTMLElementType';
5
6
  import { useGridRootProps, useGridApiContext, GridMenu } from '@mui/x-data-grid';
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
8
  function GridHeaderFilterMenu({
@@ -4,7 +4,8 @@ const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuR
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useGridApiContext, useGridSelector } from '@mui/x-data-grid';
7
- import { refType, unstable_useId as useId } from '@mui/utils';
7
+ import refType from '@mui/utils/refType';
8
+ import useId from '@mui/utils/useId';
8
9
  import { gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
9
10
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
10
11
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useGridRegisterPipeProcessor, gridVisiblePinnedColumnDefinitionsSelector } from '@mui/x-data-grid/internals';
3
+ import { useGridRegisterPipeProcessor, gridExistingPinnedColumnSelector } from '@mui/x-data-grid/internals';
4
4
  export const useGridColumnPinningPreProcessors = (apiRef, props) => {
5
5
  const {
6
6
  disableColumnPinning
@@ -20,12 +20,12 @@ export const useGridColumnPinningPreProcessors = (apiRef, props) => {
20
20
  apiRef.current.state = _extends({}, savedState, {
21
21
  columns: columnsState
22
22
  });
23
- const visibleColumns = gridVisiblePinnedColumnDefinitionsSelector(apiRef);
23
+ const pinnedColumns = gridExistingPinnedColumnSelector(apiRef);
24
24
  apiRef.current.state = savedState;
25
25
  // HACK: Ends here //
26
26
 
27
- const leftPinnedColumns = visibleColumns.left.map(c => c.field);
28
- const rightPinnedColumns = visibleColumns.right.map(c => c.field);
27
+ const leftPinnedColumns = pinnedColumns.left;
28
+ const rightPinnedColumns = pinnedColumns.right;
29
29
  let newOrderedFields;
30
30
  const allPinnedColumns = [...leftPinnedColumns, ...rightPinnedColumns];
31
31
  const {
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v8.4.0
2
+ * @mui/x-data-grid-pro v8.5.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -28,12 +28,12 @@ const useGridColumnPinningPreProcessors = (apiRef, props) => {
28
28
  apiRef.current.state = (0, _extends2.default)({}, savedState, {
29
29
  columns: columnsState
30
30
  });
31
- const visibleColumns = (0, _internals.gridVisiblePinnedColumnDefinitionsSelector)(apiRef);
31
+ const pinnedColumns = (0, _internals.gridExistingPinnedColumnSelector)(apiRef);
32
32
  apiRef.current.state = savedState;
33
33
  // HACK: Ends here //
34
34
 
35
- const leftPinnedColumns = visibleColumns.left.map(c => c.field);
36
- const rightPinnedColumns = visibleColumns.right.map(c => c.field);
35
+ const leftPinnedColumns = pinnedColumns.left;
36
+ const rightPinnedColumns = pinnedColumns.right;
37
37
  let newOrderedFields;
38
38
  const allPinnedColumns = [...leftPinnedColumns, ...rightPinnedColumns];
39
39
  const {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v8.4.0
2
+ * @mui/x-data-grid-pro v8.5.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "8.4.0",
3
+ "version": "8.5.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Data Grid components.",
6
6
  "main": "./index.js",
@@ -41,9 +41,9 @@
41
41
  "clsx": "^2.1.1",
42
42
  "prop-types": "^15.8.1",
43
43
  "reselect": "^5.1.1",
44
- "@mui/x-internals": "8.4.0",
45
- "@mui/x-license": "8.4.0",
46
- "@mui/x-data-grid": "8.4.0"
44
+ "@mui/x-internals": "8.5.0",
45
+ "@mui/x-license": "8.5.0",
46
+ "@mui/x-data-grid": "8.5.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",