@mui/x-date-pickers 7.23.6 → 7.24.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,156 @@
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.24.1
7
+
8
+ _Jan 24, 2025_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+ - 🌍 Improve Persian (fa-IR) locale on the Data Grid
14
+
15
+ Special thanks go out to the community contributors who have helped make this release possible:
16
+ @mostafaRoosta74, @lauri865.
17
+ Following are all team members who have contributed to this release:
18
+ @alexfauquette, @JCQuintas, @cherniavskii, @LukasTy, @arminmeh.
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.24.1`
23
+
24
+ - [DataGrid] Fix toggling preference panel from toolbar (#16276) @lauri865
25
+ - [DataGrid] Only try to mount filter button if there are filters present (#16269) @lauri865
26
+ - [DataGrid] Revert `apiRef` to be `MutableRefObject` for React versions < 19 (#16320) @arminmeh
27
+ - [l10n] Improve Persian (fa-IR) locale (#15964) @mostafaRoosta74
28
+
29
+ #### `@mui/x-data-grid-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@7.24.1`.
32
+
33
+ #### `@mui/x-data-grid-premium@7.24.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@7.24.1`.
36
+
37
+ ### Date and Time Pickers
38
+
39
+ #### `@mui/x-date-pickers@7.24.1`
40
+
41
+ - [fields] Reset `all` selected state on section edit (#16232) @LukasTy
42
+
43
+ #### `@mui/x-date-pickers-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
44
+
45
+ Same changes as in `@mui/x-date-pickers@7.24.1`.
46
+
47
+ ### Charts
48
+
49
+ #### `@mui/x-charts@7.24.1`
50
+
51
+ - [charts] Handle case where gradient stop `offset` could be `Infinite` (@JCQuintas) (#16309) @JCQuintas
52
+
53
+ #### `@mui/x-charts-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
54
+
55
+ Same changes as in `@mui/x-charts@7.24.1`.
56
+
57
+ ### Tree View
58
+
59
+ #### `@mui/x-tree-view@7.24.1`
60
+
61
+ Internal changes.
62
+
63
+ #### `@mui/x-tree-view-pro@7.24.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
64
+
65
+ Same changes as in `@mui/x-tree-view@7.24.1`.
66
+
67
+ ### Docs
68
+
69
+ - [docs] Fix `domainLimit` definition (#16271) @alexfauquette
70
+
71
+ ### Core
72
+
73
+ - [core] Make `@mui/x-internals` a dependency of `@mui/x-license` (#16265) @alexfauquette
74
+ - [test] Fix flaky column pinning tests (#16228) @cherniavskii
75
+ - [test] Fix flaky tests (#16264) @lauri865
76
+
77
+ ## 7.24.0
78
+
79
+ _Jan 17, 2025_
80
+
81
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
82
+
83
+ - 🔄 Data Grid [Scroll restoration](https://next.mui.com/x/react-data-grid/scrolling/#scroll-restoration)
84
+ - 🐞 Bugfixes
85
+
86
+ Special thanks go out to the community contributors who have helped make this release possible:
87
+ @lauri865, @AxharKhan.
88
+ Following are all team members who have contributed to this release:
89
+ @KenanYusuf, @arminmeh, @cherniavskii, @michelengelen, @samuelsycamore, @LukasTy.
90
+
91
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
92
+
93
+ ### Data Grid
94
+
95
+ #### `@mui/x-data-grid@7.24.0`
96
+
97
+ - [DataGrid] Fix resizing right pinned column (#16193) @KenanYusuf
98
+ - [DataGrid] Improve scrollbar deadzone with overlay scrollbars (#16212) @lauri865
99
+ - [DataGrid] Scroll restoration (#16208) @lauri865
100
+ - [DataGrid] Fix row, cell and header memoizations (#16195) @lauri865
101
+ - [l10n] Improve Urdu (ur-PK) locale (#16081) @AxharKhan
102
+
103
+ #### `@mui/x-data-grid-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
104
+
105
+ Same changes as in `@mui/x-data-grid@7.24.0`, plus:
106
+
107
+ - [DataGridPro] Add test for column pinning with disabled column virtualization (#16196) @cherniavskii
108
+ - [DataGridPro] Fix width of right-pinned column group during resize (#16207) @cherniavskii
109
+
110
+ #### `@mui/x-data-grid-premium@7.24.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
111
+
112
+ Same changes as in `@mui/x-data-grid-pro@7.24.0`.
113
+
114
+ ### Date and Time Pickers
115
+
116
+ #### `@mui/x-date-pickers@7.24.0`
117
+
118
+ Internal changes.
119
+
120
+ #### `@mui/x-date-pickers-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
121
+
122
+ Same changes as in `@mui/x-date-pickers@7.24.0`.
123
+
124
+ ### Charts
125
+
126
+ #### `@mui/x-charts@7.24.0`
127
+
128
+ Internal changes.
129
+
130
+ #### `@mui/x-charts-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
131
+
132
+ Same changes as in `@mui/x-charts@7.24.0`.
133
+
134
+ ### Tree View
135
+
136
+ #### `@mui/x-tree-view@7.24.0`
137
+
138
+ Internal changes.
139
+
140
+ #### `@mui/x-tree-view-pro@7.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
141
+
142
+ Same changes as in `@mui/x-tree-view@7.24.0`.
143
+
144
+ ### Docs
145
+
146
+ - [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
147
+ - [docs] Fix demo rendering issue on Codesandbox (#16129) @arminmeh
148
+
149
+ ### Core
150
+
151
+ - [core] Type all references as `RefObject` (#16125) @arminmeh
152
+ - [code-infra] Refactor `react` and `react-dom` definitions to simplify dep resolving (#16214) @LukasTy
153
+ - [infra] Improve cherry-pick action target list (#16188) @michelengelen
154
+ - [test] Fix flaky column pinning unit test (#16209) @cherniavskii
155
+
6
156
  ## 7.23.6
7
157
 
8
158
  _Jan 9, 2025_
@@ -214,6 +214,8 @@ const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCale
214
214
  }))]
215
215
  }), /*#__PURE__*/_jsx(Fade, {
216
216
  in: view === 'day',
217
+ appear: !reduceAnimations,
218
+ enter: !reduceAnimations,
217
219
  children: /*#__PURE__*/_jsx(PickersArrowSwitcher, {
218
220
  slots: slots,
219
221
  slotProps: slotProps,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.23.6
2
+ * @mui/x-date-pickers v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -141,6 +141,11 @@ export const useField = params => {
141
141
  if (readOnly || activeSectionIndex == null) {
142
142
  break;
143
143
  }
144
+
145
+ // if all sections are selected, mark the currently editing one as selected
146
+ if (parsedSelectedSections === 'all') {
147
+ setSelectedSections(activeSectionIndex);
148
+ }
144
149
  const activeSection = state.sections[activeSectionIndex];
145
150
  const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);
146
151
  const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {
@@ -237,6 +237,9 @@ export const useFieldV6TextField = params => {
237
237
  const shouldUseEventData = eventData && eventData.length > 1;
238
238
  const valueStr = shouldUseEventData ? eventData : targetValue;
239
239
  const cleanValueStr = cleanString(valueStr);
240
+ if (parsedSelectedSections === 'all') {
241
+ setSelectedSections(activeSectionIndex);
242
+ }
240
243
 
241
244
  // If no section is selected or eventData should be used, we just try to parse the new value
242
245
  // This line is mostly triggered by imperative code / application tests.
@@ -176,6 +176,9 @@ export const useFieldV7TextField = params => {
176
176
  } else if (keyPressed.length > 1) {
177
177
  updateValueFromValueStr(keyPressed);
178
178
  } else {
179
+ if (parsedSelectedSections === 'all') {
180
+ setSelectedSections(0);
181
+ }
179
182
  applyCharacterEditing({
180
183
  keyPressed,
181
184
  sectionIndex: 0
@@ -214,6 +214,8 @@ const PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCale
214
214
  }))]
215
215
  }), /*#__PURE__*/_jsx(Fade, {
216
216
  in: view === 'day',
217
+ appear: !reduceAnimations,
218
+ enter: !reduceAnimations,
217
219
  children: /*#__PURE__*/_jsx(PickersArrowSwitcher, {
218
220
  slots: slots,
219
221
  slotProps: slotProps,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.23.6
2
+ * @mui/x-date-pickers v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -141,6 +141,11 @@ export const useField = params => {
141
141
  if (readOnly || activeSectionIndex == null) {
142
142
  break;
143
143
  }
144
+
145
+ // if all sections are selected, mark the currently editing one as selected
146
+ if (parsedSelectedSections === 'all') {
147
+ setSelectedSections(activeSectionIndex);
148
+ }
144
149
  const activeSection = state.sections[activeSectionIndex];
145
150
  const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);
146
151
  const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {
@@ -237,6 +237,9 @@ export const useFieldV6TextField = params => {
237
237
  const shouldUseEventData = eventData && eventData.length > 1;
238
238
  const valueStr = shouldUseEventData ? eventData : targetValue;
239
239
  const cleanValueStr = cleanString(valueStr);
240
+ if (parsedSelectedSections === 'all') {
241
+ setSelectedSections(activeSectionIndex);
242
+ }
240
243
 
241
244
  // If no section is selected or eventData should be used, we just try to parse the new value
242
245
  // This line is mostly triggered by imperative code / application tests.
@@ -176,6 +176,9 @@ export const useFieldV7TextField = params => {
176
176
  } else if (keyPressed.length > 1) {
177
177
  updateValueFromValueStr(keyPressed);
178
178
  } else {
179
+ if (parsedSelectedSections === 'all') {
180
+ setSelectedSections(0);
181
+ }
179
182
  applyCharacterEditing({
180
183
  keyPressed,
181
184
  sectionIndex: 0
@@ -221,6 +221,8 @@ const PickersCalendarHeader = exports.PickersCalendarHeader = /*#__PURE__*/React
221
221
  }))]
222
222
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Fade.default, {
223
223
  in: view === 'day',
224
+ appear: !reduceAnimations,
225
+ enter: !reduceAnimations,
224
226
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PickersArrowSwitcher.PickersArrowSwitcher, {
225
227
  slots: slots,
226
228
  slotProps: slotProps,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v7.23.6
2
+ * @mui/x-date-pickers v7.24.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -149,6 +149,11 @@ const useField = params => {
149
149
  if (readOnly || activeSectionIndex == null) {
150
150
  break;
151
151
  }
152
+
153
+ // if all sections are selected, mark the currently editing one as selected
154
+ if (parsedSelectedSections === 'all') {
155
+ setSelectedSections(activeSectionIndex);
156
+ }
152
157
  const activeSection = state.sections[activeSectionIndex];
153
158
  const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);
154
159
  const newSectionValue = (0, _useField.adjustSectionValue)(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {
@@ -246,6 +246,9 @@ const useFieldV6TextField = params => {
246
246
  const shouldUseEventData = eventData && eventData.length > 1;
247
247
  const valueStr = shouldUseEventData ? eventData : targetValue;
248
248
  const cleanValueStr = cleanString(valueStr);
249
+ if (parsedSelectedSections === 'all') {
250
+ setSelectedSections(activeSectionIndex);
251
+ }
249
252
 
250
253
  // If no section is selected or eventData should be used, we just try to parse the new value
251
254
  // This line is mostly triggered by imperative code / application tests.
@@ -184,6 +184,9 @@ const useFieldV7TextField = params => {
184
184
  } else if (keyPressed.length > 1) {
185
185
  updateValueFromValueStr(keyPressed);
186
186
  } else {
187
+ if (parsedSelectedSections === 'all') {
188
+ setSelectedSections(0);
189
+ }
187
190
  applyCharacterEditing({
188
191
  keyPressed,
189
192
  sectionIndex: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "7.23.6",
3
+ "version": "7.24.1",
4
4
  "description": "The community edition of the Date and Time Picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -41,7 +41,7 @@
41
41
  "clsx": "^2.1.1",
42
42
  "prop-types": "^15.8.1",
43
43
  "react-transition-group": "^4.4.5",
44
- "@mui/x-internals": "7.23.6"
44
+ "@mui/x-internals": "7.24.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@emotion/react": "^11.9.0",