@mui/x-data-grid-pro 7.23.5 → 7.23.6

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,86 @@
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
+ ## 7.23.6
7
+
8
+ _Jan 9, 2025_
9
+
10
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Chinese (Taiwan) (zh-TW) locale on the Date and Time Pickers
13
+ - 🌍 Improve Norwegian (nb-NO) locale on the Date and Time Pickers
14
+ - 🌍 Improve Dutch (nl-NL) locale on the Data Grid
15
+ - 🐞 Bugfixes
16
+
17
+ Special thanks go out to the community contributors who have helped make this release possible:
18
+ @josteinjhauge, @derek-0000, @nusr, @k-rajat19, @tomashauser.
19
+ Following are all team members who have contributed to this release:
20
+ @flaviendelangle, @LukasTy, @MBilalShafi, @arminmeh, @oliviertassinari, @cherniavskii.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@7.23.6`
27
+
28
+ - [DataGrid] Improve React 19 support (#16048) @LukasTy
29
+ - [DataGrid] Add `name` attribute to selection checkboxes (#16041) @derek-0000
30
+ - [DataGrid] Fix number filter field formatting values while typing (#16068) @arminmeh
31
+ - [DataGrid] Fix select all checkbox state reset with server side data (#16039) @MBilalShafi
32
+
33
+ #### `@mui/x-data-grid-pro@7.23.6` [![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@7.23.6`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.23.6` [![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@7.23.6`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.23.6`
44
+
45
+ - [pickers] Improve React 19 support (#16048) @LukasTy
46
+ - [l10n] Add Chinese (Taiwan) (zh-TW) locale (#16057) @nusr
47
+ - [l10n] Improve Norwegian (nb-NO) locale (#16083) @josteinjhauge
48
+ - [pickers] Support `date-fns-jalali` v4 (#16013) @LukasTy
49
+
50
+ #### `@mui/x-date-pickers-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@7.23.6`.
53
+
54
+ ### Charts
55
+
56
+ #### `@mui/x-charts@7.23.6`
57
+
58
+ - [charts] Improve React 19 support (#16048) @LukasTy
59
+ - [charts] Fix 301 redirection in the API documentation @oliviertassinari
60
+
61
+ #### `@mui/x-charts-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
62
+
63
+ Same changes as in `@mui/x-charts@7.23.6`.
64
+
65
+ ### Tree View
66
+
67
+ #### `@mui/x-tree-view@7.23.6`
68
+
69
+ - [TreeView] Improve React 19 support (#16048) @LukasTy
70
+
71
+ #### `@mui/x-tree-view-pro@7.23.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
72
+
73
+ Same changes as in `@mui/x-tree-view@7.23.6`.
74
+
75
+ ### Docs
76
+
77
+ - [docs] Fix `EditingWithDatePickers` demo (#16047) @k-rajat19
78
+ - [docs] Fix doc warning for automatic children selection on tree view (#16037) @flaviendelangle
79
+ - [docs] Fix non-existing "adapter" property of `LocalizationProvider` (#16088) @tomashauser
80
+
81
+ ### Core
82
+
83
+ - [core] Clarify the release strategy (#16012) @MBilalShafi
84
+ - [core] Update the `release:version` docs (#16040) @cherniavskii
85
+
6
86
  ## 7.23.5
7
87
 
8
88
  _Dec 27, 2024_
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
2
  import { GridApiPro, GridPrivateApiPro } from '../models/gridApiPro';
3
3
  import { DataGridProProcessedProps } from '../models/dataGridProProps';
4
- export declare const useDataGridProComponent: (inputApiRef: React.MutableRefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.MutableRefObject<GridPrivateApiPro>;
4
+ export declare const useDataGridProComponent: (inputApiRef: React.RefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.RefObject<GridPrivateApiPro>;
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
34
34
  };
35
35
  return (0, _utils.unstable_composeClasses)(slots, _xDataGrid.getDataGridUtilityClass, classes);
36
36
  };
37
- const dateSx = {
37
+ const emptyFieldSx = {
38
38
  [`& input[value=""]:not(:focus)`]: {
39
39
  color: 'transparent'
40
40
  }
@@ -238,7 +238,7 @@ const GridHeaderFilterCell = (0, _forwardRef.forwardRef)((props, ref) => {
238
238
  disabled: isFilterReadOnly || isNoInputOperator,
239
239
  tabIndex: -1,
240
240
  InputLabelProps: null,
241
- sx: colDef.type === 'date' || colDef.type === 'dateTime' ? dateSx : undefined
241
+ sx: colDef.type === 'date' || colDef.type === 'dateTime' || colDef.type === 'number' ? emptyFieldSx : undefined
242
242
  }, isNoInputOperator ? {
243
243
  value: ''
244
244
  } : {}, currentOperator?.InputComponentProps, InputComponentProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridHeaderFilterMenuContainer.GridHeaderFilterMenuContainer, {
@@ -26,7 +26,7 @@ const useUtilityClasses = ownerState => {
26
26
  };
27
27
  return composeClasses(slots, getDataGridUtilityClass, classes);
28
28
  };
29
- const dateSx = {
29
+ const emptyFieldSx = {
30
30
  [`& input[value=""]:not(:focus)`]: {
31
31
  color: 'transparent'
32
32
  }
@@ -230,7 +230,7 @@ const GridHeaderFilterCell = forwardRef((props, ref) => {
230
230
  disabled: isFilterReadOnly || isNoInputOperator,
231
231
  tabIndex: -1,
232
232
  InputLabelProps: null,
233
- sx: colDef.type === 'date' || colDef.type === 'dateTime' ? dateSx : undefined
233
+ sx: colDef.type === 'date' || colDef.type === 'dateTime' || colDef.type === 'number' ? emptyFieldSx : undefined
234
234
  }, isNoInputOperator ? {
235
235
  value: ''
236
236
  } : {}, currentOperator?.InputComponentProps, InputComponentProps)), /*#__PURE__*/_jsx(GridHeaderFilterMenuContainer, {
@@ -37,7 +37,7 @@ export const useGridColumnReorder = (apiRef, props) => {
37
37
  });
38
38
  const originColumnIndex = React.useRef(null);
39
39
  const forbiddenIndexes = React.useRef({});
40
- const removeDnDStylesTimeout = React.useRef();
40
+ const removeDnDStylesTimeout = React.useRef(undefined);
41
41
  const ownerState = {
42
42
  classes: props.classes
43
43
  };
@@ -156,8 +156,8 @@ export const useGridDetailPanel = (apiRef, props) => {
156
156
  apiRef.current.forceUpdate();
157
157
  }, [apiRef, props.getDetailPanelContent, props.getDetailPanelHeight]);
158
158
  useGridApiEventHandler(apiRef, 'sortedRowsSet', updateCachesAndForceUpdate);
159
- const previousGetDetailPanelContentProp = React.useRef();
160
- const previousGetDetailPanelHeightProp = React.useRef();
159
+ const previousGetDetailPanelContentProp = React.useRef(null);
160
+ const previousGetDetailPanelHeightProp = React.useRef(null);
161
161
  const updateCachesIfNeeded = React.useCallback(() => {
162
162
  if (props.getDetailPanelContent === previousGetDetailPanelContentProp.current && props.getDetailPanelHeight === previousGetDetailPanelHeightProp.current) {
163
163
  return;
@@ -19,7 +19,7 @@ const InfiniteLoadingTriggerElement = styled('div')({
19
19
  export const useGridInfiniteLoader = (apiRef, props) => {
20
20
  const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
21
21
  const currentPage = useGridVisibleRows(apiRef, props);
22
- const observer = React.useRef();
22
+ const observer = React.useRef(null);
23
23
  const updateTargetTimeout = useTimeout();
24
24
  const triggerElement = React.useRef(null);
25
25
  const isEnabled = props.rowsLoadingMode === 'client' && !!props.onRowsScrollEnd;
@@ -33,7 +33,7 @@ export const useGridRowReorder = (apiRef, props) => {
33
33
  const treeDepth = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector);
34
34
  const dragRowNode = React.useRef(null);
35
35
  const originRowIndex = React.useRef(null);
36
- const removeDnDStylesTimeout = React.useRef();
36
+ const removeDnDStylesTimeout = React.useRef(undefined);
37
37
  const ownerState = {
38
38
  classes: props.classes
39
39
  };
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczNTIzOTYwMDAwMA==";
3
+ const releaseInfo = "MTczNjM3NzIwMDAwMA==";
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
@@ -46,7 +46,7 @@ const useGridColumnReorder = (apiRef, props) => {
46
46
  });
47
47
  const originColumnIndex = React.useRef(null);
48
48
  const forbiddenIndexes = React.useRef({});
49
- const removeDnDStylesTimeout = React.useRef();
49
+ const removeDnDStylesTimeout = React.useRef(undefined);
50
50
  const ownerState = {
51
51
  classes: props.classes
52
52
  };
@@ -165,8 +165,8 @@ const useGridDetailPanel = (apiRef, props) => {
165
165
  apiRef.current.forceUpdate();
166
166
  }, [apiRef, props.getDetailPanelContent, props.getDetailPanelHeight]);
167
167
  (0, _xDataGrid.useGridApiEventHandler)(apiRef, 'sortedRowsSet', updateCachesAndForceUpdate);
168
- const previousGetDetailPanelContentProp = React.useRef();
169
- const previousGetDetailPanelHeightProp = React.useRef();
168
+ const previousGetDetailPanelContentProp = React.useRef(null);
169
+ const previousGetDetailPanelHeightProp = React.useRef(null);
170
170
  const updateCachesIfNeeded = React.useCallback(() => {
171
171
  if (props.getDetailPanelContent === previousGetDetailPanelContentProp.current && props.getDetailPanelHeight === previousGetDetailPanelHeightProp.current) {
172
172
  return;
@@ -27,7 +27,7 @@ const InfiniteLoadingTriggerElement = (0, _system.styled)('div')({
27
27
  const useGridInfiniteLoader = (apiRef, props) => {
28
28
  const visibleColumns = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridVisibleColumnDefinitionsSelector);
29
29
  const currentPage = (0, _internals.useGridVisibleRows)(apiRef, props);
30
- const observer = React.useRef();
30
+ const observer = React.useRef(null);
31
31
  const updateTargetTimeout = (0, _internals.useTimeout)();
32
32
  const triggerElement = React.useRef(null);
33
33
  const isEnabled = props.rowsLoadingMode === 'client' && !!props.onRowsScrollEnd;
@@ -41,7 +41,7 @@ const useGridRowReorder = (apiRef, props) => {
41
41
  const treeDepth = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridRowMaximumTreeDepthSelector);
42
42
  const dragRowNode = React.useRef(null);
43
43
  const originRowIndex = React.useRef(null);
44
- const removeDnDStylesTimeout = React.useRef();
44
+ const removeDnDStylesTimeout = React.useRef(undefined);
45
45
  const ownerState = {
46
46
  classes: props.classes
47
47
  };
@@ -1,2 +1,2 @@
1
1
  import { GridApiPro } from '../../models/gridApiPro';
2
- export declare const useGridApiRef: () => import("react").MutableRefObject<GridApiPro>;
2
+ export declare const useGridApiRef: () => import("react").RefObject<GridApiPro>;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v7.23.5
2
+ * @mui/x-data-grid-pro v7.23.6
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -26,7 +26,7 @@ const useUtilityClasses = ownerState => {
26
26
  };
27
27
  return composeClasses(slots, getDataGridUtilityClass, classes);
28
28
  };
29
- const dateSx = {
29
+ const emptyFieldSx = {
30
30
  [`& input[value=""]:not(:focus)`]: {
31
31
  color: 'transparent'
32
32
  }
@@ -230,7 +230,7 @@ const GridHeaderFilterCell = forwardRef((props, ref) => {
230
230
  disabled: isFilterReadOnly || isNoInputOperator,
231
231
  tabIndex: -1,
232
232
  InputLabelProps: null,
233
- sx: colDef.type === 'date' || colDef.type === 'dateTime' ? dateSx : undefined
233
+ sx: colDef.type === 'date' || colDef.type === 'dateTime' || colDef.type === 'number' ? emptyFieldSx : undefined
234
234
  }, isNoInputOperator ? {
235
235
  value: ''
236
236
  } : {}, currentOperator?.InputComponentProps, InputComponentProps)), /*#__PURE__*/_jsx(GridHeaderFilterMenuContainer, {
@@ -37,7 +37,7 @@ export const useGridColumnReorder = (apiRef, props) => {
37
37
  });
38
38
  const originColumnIndex = React.useRef(null);
39
39
  const forbiddenIndexes = React.useRef({});
40
- const removeDnDStylesTimeout = React.useRef();
40
+ const removeDnDStylesTimeout = React.useRef(undefined);
41
41
  const ownerState = {
42
42
  classes: props.classes
43
43
  };
@@ -156,8 +156,8 @@ export const useGridDetailPanel = (apiRef, props) => {
156
156
  apiRef.current.forceUpdate();
157
157
  }, [apiRef, props.getDetailPanelContent, props.getDetailPanelHeight]);
158
158
  useGridApiEventHandler(apiRef, 'sortedRowsSet', updateCachesAndForceUpdate);
159
- const previousGetDetailPanelContentProp = React.useRef();
160
- const previousGetDetailPanelHeightProp = React.useRef();
159
+ const previousGetDetailPanelContentProp = React.useRef(null);
160
+ const previousGetDetailPanelHeightProp = React.useRef(null);
161
161
  const updateCachesIfNeeded = React.useCallback(() => {
162
162
  if (props.getDetailPanelContent === previousGetDetailPanelContentProp.current && props.getDetailPanelHeight === previousGetDetailPanelHeightProp.current) {
163
163
  return;
@@ -19,7 +19,7 @@ const InfiniteLoadingTriggerElement = styled('div')({
19
19
  export const useGridInfiniteLoader = (apiRef, props) => {
20
20
  const visibleColumns = useGridSelector(apiRef, gridVisibleColumnDefinitionsSelector);
21
21
  const currentPage = useGridVisibleRows(apiRef, props);
22
- const observer = React.useRef();
22
+ const observer = React.useRef(null);
23
23
  const updateTargetTimeout = useTimeout();
24
24
  const triggerElement = React.useRef(null);
25
25
  const isEnabled = props.rowsLoadingMode === 'client' && !!props.onRowsScrollEnd;
@@ -33,7 +33,7 @@ export const useGridRowReorder = (apiRef, props) => {
33
33
  const treeDepth = useGridSelector(apiRef, gridRowMaximumTreeDepthSelector);
34
34
  const dragRowNode = React.useRef(null);
35
35
  const originRowIndex = React.useRef(null);
36
- const removeDnDStylesTimeout = React.useRef();
36
+ const removeDnDStylesTimeout = React.useRef(undefined);
37
37
  const ownerState = {
38
38
  classes: props.classes
39
39
  };
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v7.23.5
2
+ * @mui/x-data-grid-pro v7.23.6
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 const getReleaseInfo = () => {
3
- const releaseInfo = "MTczNTIzOTYwMDAwMA==";
3
+ const releaseInfo = "MTczNjM3NzIwMDAwMA==";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "7.23.5",
3
+ "version": "7.23.6",
4
4
  "description": "The Pro plan edition of the Data Grid components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -39,9 +39,9 @@
39
39
  "clsx": "^2.1.1",
40
40
  "prop-types": "^15.8.1",
41
41
  "reselect": "^5.1.1",
42
- "@mui/x-internals": "7.23.5",
43
- "@mui/x-data-grid": "7.23.5",
44
- "@mui/x-license": "7.23.5"
42
+ "@mui/x-data-grid": "7.23.6",
43
+ "@mui/x-internals": "7.23.6",
44
+ "@mui/x-license": "7.23.6"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",
@@ -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 = "MTczNTIzOTYwMDAwMA==";
9
+ const releaseInfo = "MTczNjM3NzIwMDAwMA==";
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