@mui/x-date-pickers-pro 7.26.0 → 7.27.1

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,121 @@
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.27.1
7
+
8
+ _Feb 25, 2025_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+ - 🌍 Add Bangla (bn-BD) locale on the Data Grid and Date Pickers
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @nusr, @officialkidmax.
17
+ Following are all team members who have contributed to this release:
18
+ @bernardobelchior, @MBilalShafi, @KenanYusuf.
19
+
20
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
21
+
22
+ ### Data Grid
23
+
24
+ #### `@mui/x-data-grid@7.27.1`
25
+
26
+ - [DataGrid] Fix the pagination unexpected behavior when using -1 for "All" rows per page (#16485) @nusr
27
+ - [DataGrid] Extract `getRowId()` API method as a selector (#16574) @MBilalShafi
28
+ - [DataGrid] Fix scrollbars overlapping cells on mount (#16653) @KenanYusuf
29
+ - [l10n] Add Bangla (bn-BD) locale (#16649) @officialkidmax
30
+
31
+ #### `@mui/x-data-grid-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
32
+
33
+ Same changes as in `@mui/x-data-grid@7.27.1`.
34
+
35
+ #### `@mui/x-data-grid-premium@7.27.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
36
+
37
+ Same changes as in `@mui/x-data-grid-pro@7.27.1`.
38
+
39
+ ### Date and Time Pickers
40
+
41
+ #### `@mui/x-date-pickers@7.27.1`
42
+
43
+ - [l10n] Add Bangla (bn-BD) locale (#16649) @officialkidmax
44
+
45
+ #### `@mui/x-date-pickers-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
46
+
47
+ Same changes as in `@mui/x-date-pickers@7.27.1`.
48
+
49
+ ### Charts
50
+
51
+ #### `@mui/x-charts@7.27.1`
52
+
53
+ - [charts] Fix empty series array in pie chart (#16657) @bernardobelchior
54
+
55
+ #### `@mui/x-charts-pro@7.27.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
56
+
57
+ Same changes as in `@mui/x-charts@7.27.1`.
58
+
59
+ ## 7.27.0
60
+
61
+ _Feb 17, 2025_
62
+
63
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
64
+
65
+ - ⚡ Improve Data Grid Excel export serialization performance
66
+ - 🐞 Bugfixes
67
+ - 🌍 Improve Polish (pl-PL) and Ukrainian (uk-UA) locale on the Data Grid
68
+
69
+ Special thanks go out to the community contributors who have helped make this release possible:
70
+ @pawelkula, @Neonin.
71
+ Following are all team members who have contributed to this release:
72
+ @cherniavskii, @JCQuintas, @oliviertassinari, @arminmeh and @LukasTy
73
+
74
+ ### Data Grid
75
+
76
+ #### `@mui/x-data-grid@7.27.0`
77
+
78
+ - [DataGrid] Add `resetPageOnSortFilter` prop that resets the page after sorting and filtering (#16580) @arminmeh
79
+ - [DataGrid] Avoid `undefined` value for pagination `rowCount` (#16558) @cherniavskii
80
+ - [l10n] Improve Polish (pl-PL) locale (#16594) @pawelkula
81
+ - [l10n] Improve Ukrainian (uk-UA) locale (#16593) @Neonin
82
+
83
+ #### `@mui/x-data-grid-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
84
+
85
+ Same changes as in `@mui/x-data-grid@7.27.0`.
86
+
87
+ #### `@mui/x-data-grid-premium@7.27.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
88
+
89
+ Same changes as in `@mui/x-data-grid-pro@7.27.0`, plus:
90
+
91
+ - [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode (#16532) @cherniavskii
92
+ - [DataGridPremium] Improve Excel export serialization performance (#16545) @cherniavskii
93
+ - [DataGridPremium] Namespace Excel export worker (#16539) @oliviertassinari
94
+
95
+ ### Date and Time Pickers
96
+
97
+ #### `@mui/x-date-pickers@7.27.0`
98
+
99
+ Internal changes.
100
+
101
+ #### `@mui/x-date-pickers-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
102
+
103
+ Same changes as in `@mui/x-date-pickers@7.27.0`, plus:
104
+
105
+ - [DateRangePicker] Avoid unnecessary field section focusing (#16569) @LukasTy
106
+
107
+ ### Charts
108
+
109
+ #### `@mui/x-charts@7.27.0`
110
+
111
+ Internal changes.
112
+
113
+ #### `@mui/x-charts-pro@7.27.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
114
+
115
+ - [charts-pro] Fix automatic type overloads (#16579) @JCQuintas
116
+
117
+ ### Core
118
+
119
+ - [test] Fix Data Grid data source error test on React 18 (#16565) @arminmeh
120
+
6
121
  ## 7.26.0
7
122
 
8
123
  _Feb 7, 2025_
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.26.0
2
+ * @mui/x-date-pickers-pro v7.27.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -45,6 +45,7 @@ const useMultiInputFieldSlotProps = ({
45
45
  }
46
46
 
47
47
  // bring back focus to the field
48
+ // currentView is present on DateTimeRangePicker
48
49
  currentFieldRef.current.setSelectedSections(
49
50
  // use the current view or `0` when the range position has just been swapped
50
51
  previousRangePosition.current === rangePosition ? currentView : 0);
@@ -16,6 +16,11 @@ export const useRangePosition = (props, singleInputFieldRef) => {
16
16
  }
17
17
  const sections = singleInputFieldRef.current.getSections();
18
18
  const targetActiveSectionIndex = newRangePosition === 'start' ? 0 : sections.length / 2;
19
+ const activeSectionIndex = singleInputFieldRef.current.getActiveSectionIndex();
20
+ // if the active section is already within the target range, we don't need to update it.
21
+ if (activeSectionIndex && activeSectionIndex >= targetActiveSectionIndex && activeSectionIndex < targetActiveSectionIndex + sections.length / 2) {
22
+ return;
23
+ }
19
24
  singleInputFieldRef.current.setSelectedSections(targetActiveSectionIndex);
20
25
  };
21
26
  const handleRangePositionChange = useEventCallback(newRangePosition => {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczODg4MjgwMDAwMA==";
3
+ const releaseInfo = "MTc0MDQzODAwMDAwMA==";
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/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.26.0
2
+ * @mui/x-date-pickers-pro v7.27.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -45,6 +45,7 @@ const useMultiInputFieldSlotProps = ({
45
45
  }
46
46
 
47
47
  // bring back focus to the field
48
+ // currentView is present on DateTimeRangePicker
48
49
  currentFieldRef.current.setSelectedSections(
49
50
  // use the current view or `0` when the range position has just been swapped
50
51
  previousRangePosition.current === rangePosition ? currentView : 0);
@@ -16,6 +16,11 @@ export const useRangePosition = (props, singleInputFieldRef) => {
16
16
  }
17
17
  const sections = singleInputFieldRef.current.getSections();
18
18
  const targetActiveSectionIndex = newRangePosition === 'start' ? 0 : sections.length / 2;
19
+ const activeSectionIndex = singleInputFieldRef.current.getActiveSectionIndex();
20
+ // if the active section is already within the target range, we don't need to update it.
21
+ if (activeSectionIndex && activeSectionIndex >= targetActiveSectionIndex && activeSectionIndex < targetActiveSectionIndex + sections.length / 2) {
22
+ return;
23
+ }
19
24
  singleInputFieldRef.current.setSelectedSections(targetActiveSectionIndex);
20
25
  };
21
26
  const handleRangePositionChange = useEventCallback(newRangePosition => {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczODg4MjgwMDAwMA==";
3
+ const releaseInfo = "MTc0MDQzODAwMDAwMA==";
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/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v7.26.0
2
+ * @mui/x-date-pickers-pro v7.27.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -53,6 +53,7 @@ const useMultiInputFieldSlotProps = ({
53
53
  }
54
54
 
55
55
  // bring back focus to the field
56
+ // currentView is present on DateTimeRangePicker
56
57
  currentFieldRef.current.setSelectedSections(
57
58
  // use the current view or `0` when the range position has just been swapped
58
59
  previousRangePosition.current === rangePosition ? currentView : 0);
@@ -23,6 +23,11 @@ const useRangePosition = (props, singleInputFieldRef) => {
23
23
  }
24
24
  const sections = singleInputFieldRef.current.getSections();
25
25
  const targetActiveSectionIndex = newRangePosition === 'start' ? 0 : sections.length / 2;
26
+ const activeSectionIndex = singleInputFieldRef.current.getActiveSectionIndex();
27
+ // if the active section is already within the target range, we don't need to update it.
28
+ if (activeSectionIndex && activeSectionIndex >= targetActiveSectionIndex && activeSectionIndex < targetActiveSectionIndex + sections.length / 2) {
29
+ return;
30
+ }
26
31
  singleInputFieldRef.current.setSelectedSections(targetActiveSectionIndex);
27
32
  };
28
33
  const handleRangePositionChange = (0, _useEventCallback.default)(newRangePosition => {
@@ -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 = "MTczODg4MjgwMDAwMA==";
9
+ const releaseInfo = "MTc0MDQzODAwMDAwMA==";
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-date-pickers-pro",
3
- "version": "7.26.0",
3
+ "version": "7.27.1",
4
4
  "description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -37,9 +37,9 @@
37
37
  "clsx": "^2.1.1",
38
38
  "prop-types": "^15.8.1",
39
39
  "react-transition-group": "^4.4.5",
40
- "@mui/x-date-pickers": "7.26.0",
41
- "@mui/x-internals": "7.26.0",
42
- "@mui/x-license": "7.26.0"
40
+ "@mui/x-license": "7.26.0",
41
+ "@mui/x-date-pickers": "7.27.1",
42
+ "@mui/x-internals": "7.26.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",