@mui/x-date-pickers 7.26.0 → 7.27.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 +62 -0
- package/index.js +1 -1
- package/internals/hooks/useField/useFieldV6TextField.js +3 -0
- package/internals/hooks/useField/useFieldV7TextField.js +3 -1
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useField/useFieldV6TextField.js +3 -0
- package/modern/internals/hooks/useField/useFieldV7TextField.js +3 -1
- package/node/index.js +1 -1
- package/node/internals/hooks/useField/useFieldV6TextField.js +3 -0
- package/node/internals/hooks/useField/useFieldV7TextField.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
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.0
|
|
7
|
+
|
|
8
|
+
_Feb 17, 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
|
+
- ⚡ Improve Data Grid Excel export serialization performance
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
- 🌍 Improve Polish (pl-PL) and Ukrainian (uk-UA) locale on the Data Grid
|
|
15
|
+
|
|
16
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
17
|
+
@pawelkula, @Neonin.
|
|
18
|
+
Following are all team members who have contributed to this release:
|
|
19
|
+
@cherniavskii, @JCQuintas, @oliviertassinari, @arminmeh and @LukasTy
|
|
20
|
+
|
|
21
|
+
### Data Grid
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid@7.27.0`
|
|
24
|
+
|
|
25
|
+
- [DataGrid] Add `resetPageOnSortFilter` prop that resets the page after sorting and filtering (#16580) @arminmeh
|
|
26
|
+
- [DataGrid] Avoid `undefined` value for pagination `rowCount` (#16558) @cherniavskii
|
|
27
|
+
- [l10n] Improve Polish (pl-PL) locale (#16594) @pawelkula
|
|
28
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#16593) @Neonin
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@7.27.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@7.27.0`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@7.27.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@7.27.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix Excel export Web Worker demo not working in dev mode (#16532) @cherniavskii
|
|
39
|
+
- [DataGridPremium] Improve Excel export serialization performance (#16545) @cherniavskii
|
|
40
|
+
- [DataGridPremium] Namespace Excel export worker (#16539) @oliviertassinari
|
|
41
|
+
|
|
42
|
+
### Date and Time Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@7.27.0`
|
|
45
|
+
|
|
46
|
+
Internal changes.
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@7.27.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@7.27.0`, plus:
|
|
51
|
+
|
|
52
|
+
- [DateRangePicker] Avoid unnecessary field section focusing (#16569) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-charts@7.27.0`
|
|
57
|
+
|
|
58
|
+
Internal changes.
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-charts-pro@7.27.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
- [charts-pro] Fix automatic type overloads (#16579) @JCQuintas
|
|
63
|
+
|
|
64
|
+
### Core
|
|
65
|
+
|
|
66
|
+
- [test] Fix Data Grid data source error test on React 18 (#16565) @arminmeh
|
|
67
|
+
|
|
6
68
|
## 7.26.0
|
|
7
69
|
|
|
8
70
|
_Feb 7, 2025_
|
package/index.js
CHANGED
|
@@ -132,6 +132,9 @@ export const useFieldV6TextField = params => {
|
|
|
132
132
|
return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
|
|
133
133
|
},
|
|
134
134
|
focusField: (newSelectedSection = 0) => {
|
|
135
|
+
if (getActiveElement(document) === inputRef.current) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
135
138
|
inputRef.current?.focus();
|
|
136
139
|
setSelectedSections(newSelectedSection);
|
|
137
140
|
},
|
|
@@ -92,7 +92,9 @@ export const useFieldV7TextField = params => {
|
|
|
92
92
|
return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
|
|
93
93
|
},
|
|
94
94
|
focusField: (newSelectedSections = 0) => {
|
|
95
|
-
if (!sectionListRef.current
|
|
95
|
+
if (!sectionListRef.current ||
|
|
96
|
+
// if the field is already focused, we don't need to focus it again
|
|
97
|
+
interactions.getActiveSectionIndexFromDOM() != null) {
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
100
|
const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);
|
package/modern/index.js
CHANGED
|
@@ -132,6 +132,9 @@ export const useFieldV6TextField = params => {
|
|
|
132
132
|
return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
|
|
133
133
|
},
|
|
134
134
|
focusField: (newSelectedSection = 0) => {
|
|
135
|
+
if (getActiveElement(document) === inputRef.current) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
135
138
|
inputRef.current?.focus();
|
|
136
139
|
setSelectedSections(newSelectedSection);
|
|
137
140
|
},
|
|
@@ -92,7 +92,9 @@ export const useFieldV7TextField = params => {
|
|
|
92
92
|
return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
|
|
93
93
|
},
|
|
94
94
|
focusField: (newSelectedSections = 0) => {
|
|
95
|
-
if (!sectionListRef.current
|
|
95
|
+
if (!sectionListRef.current ||
|
|
96
|
+
// if the field is already focused, we don't need to focus it again
|
|
97
|
+
interactions.getActiveSectionIndexFromDOM() != null) {
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
100
|
const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);
|
package/node/index.js
CHANGED
|
@@ -141,6 +141,9 @@ const useFieldV6TextField = params => {
|
|
|
141
141
|
return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;
|
|
142
142
|
},
|
|
143
143
|
focusField: (newSelectedSection = 0) => {
|
|
144
|
+
if ((0, _utils.getActiveElement)(document) === inputRef.current) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
144
147
|
inputRef.current?.focus();
|
|
145
148
|
setSelectedSections(newSelectedSection);
|
|
146
149
|
},
|
|
@@ -100,7 +100,9 @@ const useFieldV7TextField = params => {
|
|
|
100
100
|
return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);
|
|
101
101
|
},
|
|
102
102
|
focusField: (newSelectedSections = 0) => {
|
|
103
|
-
if (!sectionListRef.current
|
|
103
|
+
if (!sectionListRef.current ||
|
|
104
|
+
// if the field is already focused, we don't need to focus it again
|
|
105
|
+
interactions.getActiveSectionIndexFromDOM() != null) {
|
|
104
106
|
return;
|
|
105
107
|
}
|
|
106
108
|
const newParsedSelectedSections = (0, _useField.parseSelectedSections)(newSelectedSections, state.sections);
|