@mui/x-date-pickers 7.27.3 β 7.28.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 +86 -0
- package/README.md +1 -1
- package/index.js +1 -1
- package/internals/utils/date-utils.d.ts +1 -1
- package/locales/zhCN.js +1 -1
- package/locales/zhHK.js +1 -1
- package/locales/zhTW.js +1 -1
- package/modern/index.js +1 -1
- package/modern/locales/zhCN.js +1 -1
- package/modern/locales/zhHK.js +1 -1
- package/modern/locales/zhTW.js +1 -1
- package/node/index.js +1 -1
- package/node/locales/zhCN.js +1 -1
- package/node/locales/zhHK.js +1 -1
- package/node/locales/zhTW.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,92 @@
|
|
|
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.28.0
|
|
7
|
+
|
|
8
|
+
_Mar 17, 2025_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights β¨:
|
|
11
|
+
|
|
12
|
+
- π Add support for `@mui/material` version 7 in all X packages
|
|
13
|
+
- π Bugfixes
|
|
14
|
+
- π Improve Chinese (zh-CN), (zh-HK), (zh-TW), Czech (cs-CZ), Korean (ko-KR) and Slovak (sk-Sk) locales on the Data Grid
|
|
15
|
+
- π Improve Chinese (zh-CN), (zh-HK) and (zh-TW) locales on the Pickers
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
18
|
+
@Blake-McCullough, @hlavacz, @yelahj, @k-rajat19, @nusr.
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@arminmeh, @flaviendelangle, @LukasTy, @michelengelen, @MBilalShafi.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@7.28.0`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Add click propagation and prevents default on `toggleMenu` click (#16909) @michelengelen
|
|
29
|
+
- [DataGrid] Fix `processRowUpdate()` error if the row is removed before it is executed (#16904) @arminmeh
|
|
30
|
+
- [DataGrid] Fix bug with adding and removing columns in active edit state (#16916) @Blake-McCullough
|
|
31
|
+
- [DataGrid] Fix visual issue with pinned columns and row spanning (#16942) @MBilalShafi
|
|
32
|
+
- [DataGrid] Make column header menu button aria-labels unique (#16925) @owais635
|
|
33
|
+
- [DataGrid] Fix `printOptions` not respecting `hideFooter` root prop (#16915) @k-rajat19
|
|
34
|
+
- [l10n] Improve Chinese (zh-CN), (zh-HK) and (zh-TW) locales (#16917 and #16887) @nusr
|
|
35
|
+
- [l10n] Improve Czech (cs-CZ) and Slovak (sk-Sk) locales (#16996) @hlavacz
|
|
36
|
+
- [l10n] Improve Korean (ko-KR) locale (#16998) @yelahj
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-data-grid-pro@7.28.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-data-grid@7.28.0`, plus:
|
|
41
|
+
|
|
42
|
+
- [DataGridPro] Fix header filters not displaying restored values (#16976) @MBilalShafi
|
|
43
|
+
- [DataGridPro] Fix infinite loading not reacting when scrolling to the end (#16939) @arminmeh
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid-premium@7.28.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-data-grid-pro@7.28.0`, plus:
|
|
48
|
+
|
|
49
|
+
- [DataGridPremium] Fix selection propagation issues with controlled state (#16995) @MBilalShafi
|
|
50
|
+
|
|
51
|
+
### Date and Time Pickers
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers@7.28.0`
|
|
54
|
+
|
|
55
|
+
- [l10n] Improve Chinese (zh-CN), (zh-HK) and (zh-TW) locales (#16997) @nusr
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-date-pickers-pro@7.28.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
58
|
+
|
|
59
|
+
Same changes as in `@mui/x-date-pickers@7.28.0`, plus:
|
|
60
|
+
|
|
61
|
+
- [DateRangeCalendar] Do not update the previewed day when hovering a day and the value is empty (#16892) @flaviendelangle
|
|
62
|
+
|
|
63
|
+
### Charts
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-charts@7.28.0`
|
|
66
|
+
|
|
67
|
+
Internal changes.
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-charts-pro@7.28.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-charts@7.28.0`.
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@7.28.0`
|
|
76
|
+
|
|
77
|
+
Internal changes.
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-tree-view-pro@7.28.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-tree-view@7.28.0`.
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Fix link to the lazy loading demo for the DataGrid (#16912) @nusr
|
|
86
|
+
|
|
87
|
+
### Core
|
|
88
|
+
|
|
89
|
+
- [core] Allow `@mui/material` v7 in dependencies (#16951) @LukasTy
|
|
90
|
+
- [infra] Make tests on React 18 part of pipeline (#16958) @LukasTy
|
|
91
|
+
|
|
6
92
|
## 7.27.3
|
|
7
93
|
|
|
8
94
|
_Mar 7, 2025_
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ This component has the following peer dependencies that you will need to install
|
|
|
34
34
|
|
|
35
35
|
```json
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
37
|
+
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
|
|
38
38
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
39
39
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
40
40
|
},
|
package/index.js
CHANGED
|
@@ -14,7 +14,7 @@ interface FindClosestDateParams<TDate extends PickerValidDate> {
|
|
|
14
14
|
export declare const findClosestEnabledDate: <TDate extends PickerValidDate>({ date, disableFuture, disablePast, maxDate, minDate, isDateDisabled, utils, timezone, }: FindClosestDateParams<TDate>) => TDate | null;
|
|
15
15
|
export declare const replaceInvalidDateByNull: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, value: TDate | null) => TDate | null;
|
|
16
16
|
export declare const applyDefaultDate: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, value: TDate | null | undefined, defaultValue: TDate) => TDate;
|
|
17
|
-
export declare const areDatesEqual: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, a: TDate, b: TDate) => boolean;
|
|
17
|
+
export declare const areDatesEqual: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, a: TDate | null, b: TDate | null) => boolean;
|
|
18
18
|
export declare const getMonthsInYear: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, year: TDate) => TDate[];
|
|
19
19
|
export declare const getTodayDate: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, timezone: PickersTimezone, valueType?: FieldValueType) => TDate;
|
|
20
20
|
export declare const formatMeridiem: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, meridiem: "am" | "pm") => string;
|
package/locales/zhCN.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhCNPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιζ©ζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιζ©ζ₯ζεζΆι΄',
|
|
31
31
|
timePickerToolbarTitle: 'ιζ©ζΆι΄',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιζ©ζ₯ζθε΄',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιζ© ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιζ©ζΆι΄' : `ε·²ιζ©${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζΆ`,
|
package/locales/zhHK.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhHKPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
31
31
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/locales/zhTW.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhTWPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
31
31
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/modern/index.js
CHANGED
package/modern/locales/zhCN.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhCNPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιζ©ζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιζ©ζ₯ζεζΆι΄',
|
|
31
31
|
timePickerToolbarTitle: 'ιζ©ζΆι΄',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιζ©ζ₯ζθε΄',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιζ© ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιζ©ζΆι΄' : `ε·²ιζ©${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζΆ`,
|
package/modern/locales/zhHK.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhHKPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
31
31
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/modern/locales/zhTW.js
CHANGED
|
@@ -29,7 +29,7 @@ const zhTWPickers = {
|
|
|
29
29
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
30
30
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
31
31
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
32
|
-
dateRangePickerToolbarTitle: '
|
|
32
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
33
33
|
// Clock labels
|
|
34
34
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
35
35
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/node/index.js
CHANGED
package/node/locales/zhCN.js
CHANGED
|
@@ -35,7 +35,7 @@ const zhCNPickers = {
|
|
|
35
35
|
datePickerToolbarTitle: 'ιζ©ζ₯ζ',
|
|
36
36
|
dateTimePickerToolbarTitle: 'ιζ©ζ₯ζεζΆι΄',
|
|
37
37
|
timePickerToolbarTitle: 'ιζ©ζΆι΄',
|
|
38
|
-
dateRangePickerToolbarTitle: '
|
|
38
|
+
dateRangePickerToolbarTitle: 'ιζ©ζ₯ζθε΄',
|
|
39
39
|
// Clock labels
|
|
40
40
|
clockLabelText: (view, time, utils, formattedTime) => `ιζ© ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιζ©ζΆι΄' : `ε·²ιζ©${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
41
41
|
hoursClockNumberText: hours => `${hours}ε°ζΆ`,
|
package/node/locales/zhHK.js
CHANGED
|
@@ -35,7 +35,7 @@ const zhHKPickers = {
|
|
|
35
35
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
36
36
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
37
37
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
38
|
-
dateRangePickerToolbarTitle: '
|
|
38
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
39
39
|
// Clock labels
|
|
40
40
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
41
41
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/node/locales/zhTW.js
CHANGED
|
@@ -35,7 +35,7 @@ const zhTWPickers = {
|
|
|
35
35
|
datePickerToolbarTitle: 'ιΈζζ₯ζ',
|
|
36
36
|
dateTimePickerToolbarTitle: 'ιΈζζ₯ζεζι',
|
|
37
37
|
timePickerToolbarTitle: 'ιΈζζι',
|
|
38
|
-
dateRangePickerToolbarTitle: '
|
|
38
|
+
dateRangePickerToolbarTitle: 'ιΈζζ₯ζη―ε',
|
|
39
39
|
// Clock labels
|
|
40
40
|
clockLabelText: (view, time, utils, formattedTime) => `ιΈζ ${views[view]}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'ζͺιΈζζι' : `ε·²ιΈζ${formattedTime ?? utils.format(time, 'fullTime')}`}`,
|
|
41
41
|
hoursClockNumberText: hours => `${hours}ε°ζ`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.28.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",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.25.7",
|
|
39
|
-
"@mui/utils": "^5.16.6 || ^6.0.0",
|
|
39
|
+
"@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
|
|
40
40
|
"@types/react-transition-group": "^4.4.11",
|
|
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.28.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
|
48
48
|
"@emotion/styled": "^11.8.1",
|
|
49
|
-
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
50
|
-
"@mui/system": "^5.15.14 || ^6.0.0",
|
|
49
|
+
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
|
|
50
|
+
"@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0 || ^7.0.0-beta",
|
|
51
51
|
"date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
|
|
52
52
|
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
|
|
53
53
|
"dayjs": "^1.10.7",
|