@mui/x-date-pickers 7.25.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 +133 -0
- package/PickersTextField/PickersInputBase/PickersInputBase.js +2 -1
- package/index.js +1 -1
- package/internals/hooks/useField/useFieldV6TextField.js +3 -0
- package/internals/hooks/useField/useFieldV7TextField.js +3 -1
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +2 -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/PickersTextField/PickersInputBase/PickersInputBase.js +2 -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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,139 @@
|
|
|
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
|
+
|
|
68
|
+
## 7.26.0
|
|
69
|
+
|
|
70
|
+
_Feb 7, 2025_
|
|
71
|
+
|
|
72
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
73
|
+
|
|
74
|
+
- ⚡ Mount and resize performance improvements for the Data Grid
|
|
75
|
+
- 🐞 Bugfixes
|
|
76
|
+
|
|
77
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
78
|
+
@lauri865.
|
|
79
|
+
Following are all team members who have contributed to this release:
|
|
80
|
+
@arminmeh, @noraleonte, @LukasTy, @KenanYusuf, @flaviendelangle.
|
|
81
|
+
|
|
82
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
83
|
+
|
|
84
|
+
### Data Grid
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-data-grid@7.26.0`
|
|
87
|
+
|
|
88
|
+
- [DataGrid] Avoid `<GridRoot />` double-render pass on mount in SPA mode (#16480) @lauri865
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-data-grid-pro@7.26.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
91
|
+
|
|
92
|
+
Same changes as in `@mui/x-data-grid@7.26.0`, plus:
|
|
93
|
+
|
|
94
|
+
- [DataGridPro] Fix the return type of `useGridApiContext()` for Pro and Premium packages on React < 19 (#16446) @arminmeh
|
|
95
|
+
|
|
96
|
+
#### `@mui/x-data-grid-premium@7.26.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
97
|
+
|
|
98
|
+
Same changes as in `@mui/x-data-grid-pro@7.26.0`, plus:
|
|
99
|
+
|
|
100
|
+
- [DataGridPremium] Fix "no rows" overlay not showing with active aggregation (#16468) @KenanYusuf
|
|
101
|
+
|
|
102
|
+
### Date and Time Pickers
|
|
103
|
+
|
|
104
|
+
#### `@mui/x-date-pickers@7.26.0`
|
|
105
|
+
|
|
106
|
+
Internal changes.
|
|
107
|
+
|
|
108
|
+
#### `@mui/x-date-pickers-pro@7.26.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
109
|
+
|
|
110
|
+
Same changes as in `@mui/x-date-pickers@7.26.0`, plus:
|
|
111
|
+
|
|
112
|
+
- [DateRangePicker] Fix `currentMonthCalendarPosition` prop behavior on mobile (#16457) @LukasTy
|
|
113
|
+
- [DateRangePicker] Fix vertical alignment for multi input fields (#16490) @noraleonte
|
|
114
|
+
|
|
115
|
+
### Charts
|
|
116
|
+
|
|
117
|
+
#### `@mui/x-charts@7.26.0`
|
|
118
|
+
|
|
119
|
+
Internal changes.
|
|
120
|
+
|
|
121
|
+
#### `@mui/x-charts-pro@7.26.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
122
|
+
|
|
123
|
+
Same changes as in `@mui/x-charts@7.26.0`.
|
|
124
|
+
|
|
125
|
+
### Tree View
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-tree-view@7.26.0`
|
|
128
|
+
|
|
129
|
+
Internal changes.
|
|
130
|
+
|
|
131
|
+
#### `@mui/x-tree-view-pro@7.26.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
132
|
+
|
|
133
|
+
Same changes as in `@mui/x-tree-view@7.26.0`.
|
|
134
|
+
|
|
135
|
+
### Core
|
|
136
|
+
|
|
137
|
+
- [core] Fix corepack and pnpm installation in CircleCI (#16452) @flaviendelangle
|
|
138
|
+
|
|
6
139
|
## 7.25.0
|
|
7
140
|
|
|
8
141
|
_Jan 31, 2025_
|
|
@@ -113,7 +113,8 @@ const PickersInputBaseSection = styled(PickersSectionListSection, {
|
|
|
113
113
|
letterSpacing: 'inherit',
|
|
114
114
|
lineHeight: '1.4375em',
|
|
115
115
|
// 23px
|
|
116
|
-
display: '
|
|
116
|
+
display: 'inline-block',
|
|
117
|
+
whiteSpace: 'nowrap'
|
|
117
118
|
}));
|
|
118
119
|
const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
|
|
119
120
|
name: 'MuiPickersInputBase',
|
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);
|
|
@@ -113,7 +113,8 @@ const PickersInputBaseSection = styled(PickersSectionListSection, {
|
|
|
113
113
|
letterSpacing: 'inherit',
|
|
114
114
|
lineHeight: '1.4375em',
|
|
115
115
|
// 23px
|
|
116
|
-
display: '
|
|
116
|
+
display: 'inline-block',
|
|
117
|
+
whiteSpace: 'nowrap'
|
|
117
118
|
}));
|
|
118
119
|
const PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {
|
|
119
120
|
name: 'MuiPickersInputBase',
|
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);
|
|
@@ -121,7 +121,8 @@ const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable
|
|
|
121
121
|
letterSpacing: 'inherit',
|
|
122
122
|
lineHeight: '1.4375em',
|
|
123
123
|
// 23px
|
|
124
|
-
display: '
|
|
124
|
+
display: 'inline-block',
|
|
125
|
+
whiteSpace: 'nowrap'
|
|
125
126
|
}));
|
|
126
127
|
const PickersInputBaseSectionContent = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSectionContent, {
|
|
127
128
|
name: 'MuiPickersInputBase',
|
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);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.27.0",
|
|
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.
|
|
44
|
+
"@mui/x-internals": "7.26.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|