@mui/x-date-pickers 7.0.0-beta.0 → 7.0.0-beta.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 +247 -0
- package/TimePicker/timePickerToolbarClasses.d.ts +8 -0
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,169 @@
|
|
|
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.0.0-beta.1
|
|
7
|
+
|
|
8
|
+
_Feb 1, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
|
|
13
|
+
- 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
|
|
14
|
+
- 🚀 All charts have click handlers (#11411) @alexfauquette
|
|
15
|
+
Test their respective documentation demonstrations to know more about the data format:
|
|
16
|
+
|
|
17
|
+
- [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
|
|
18
|
+
- [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
|
|
19
|
+
- [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
|
|
20
|
+
- [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
|
|
21
|
+
|
|
22
|
+
Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
### Breaking changes
|
|
27
|
+
|
|
28
|
+
- The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
|
|
29
|
+
|
|
30
|
+
```diff
|
|
31
|
+
- valueGetter: ({ value, row }) => value,
|
|
32
|
+
+ valueGetter: (value, row, column, apiRef) => value,
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The `GridValueGetterParams` interface has been removed:
|
|
36
|
+
|
|
37
|
+
```diff
|
|
38
|
+
- const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
|
|
39
|
+
+ const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
|
|
43
|
+
|
|
44
|
+
```diff
|
|
45
|
+
- valueFormatter: ({ value }) => value,
|
|
46
|
+
+ valueFormatter: (value, row, column, apiRef) => value,
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The `GridValueFormatterParams` interface has been removed:
|
|
50
|
+
|
|
51
|
+
```diff
|
|
52
|
+
- const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
|
|
53
|
+
+ const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
|
|
57
|
+
|
|
58
|
+
```diff
|
|
59
|
+
- valueSetter: (params) => {
|
|
60
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
61
|
+
- return { ...params.row, firstName, lastName };
|
|
62
|
+
- }
|
|
63
|
+
+ valueSetter: (value, row) => {
|
|
64
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
65
|
+
+ return { ...row, firstName, lastName };
|
|
66
|
+
+}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The `GridValueSetterParams` interface has been removed:
|
|
70
|
+
|
|
71
|
+
```diff
|
|
72
|
+
- const setFullName = (params: GridValueSetterParams) => {
|
|
73
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
74
|
+
- return { ...params.row, firstName, lastName };
|
|
75
|
+
- };
|
|
76
|
+
+ const setFullName: GridValueSetter<Row> = (value, row) => {
|
|
77
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
78
|
+
+ return { ...row, firstName, lastName };
|
|
79
|
+
+ }
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
- The signature of `GridColDef['valueParser']` has been changed for performance reasons:
|
|
83
|
+
|
|
84
|
+
```diff
|
|
85
|
+
- valueParser: (value, params: GridCellParams) => value.toLowerCase(),
|
|
86
|
+
+ valueParser: (value, row, column, apiRef) => value.toLowerCase(),
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- The signature of `GridColDef['colSpan']` has been changed for performance reasons:
|
|
90
|
+
|
|
91
|
+
```diff
|
|
92
|
+
- colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
|
|
93
|
+
+ colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
- The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
|
|
97
|
+
|
|
98
|
+
```diff
|
|
99
|
+
- pastedValueParser: (value, params) => new Date(value),
|
|
100
|
+
+ pastedValueParser: (value, row, column, apiRef) => new Date(value),
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
- The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
|
|
104
|
+
|
|
105
|
+
```diff
|
|
106
|
+
- groupingValueGetter: (params) => params.value.name,
|
|
107
|
+
+ groupingValueGetter: (value: { name: string }) => value.name,
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
#### `@mui/x-data-grid@7.0.0-beta.1`
|
|
111
|
+
|
|
112
|
+
- [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
|
|
113
|
+
- [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
|
|
114
|
+
- [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
|
|
115
|
+
- [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
|
|
116
|
+
- [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
119
|
+
|
|
120
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
|
|
125
|
+
|
|
126
|
+
### Date Pickers
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-date-pickers@7.0.0-beta.1`
|
|
129
|
+
|
|
130
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
135
|
+
|
|
136
|
+
### Charts
|
|
137
|
+
|
|
138
|
+
#### Breaking changes
|
|
139
|
+
|
|
140
|
+
- The line chart now have animation by default.
|
|
141
|
+
You can disable it with `skipAnimation` prop.
|
|
142
|
+
See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
|
|
143
|
+
|
|
144
|
+
- Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
|
|
145
|
+
|
|
146
|
+
`@mui/x-charts@7.0.0-beta.1`
|
|
147
|
+
|
|
148
|
+
- [charts] Add `onClick` support (#11411) @alexfauquette
|
|
149
|
+
- [charts] Add line animation (#11620) @alexfauquette
|
|
150
|
+
- [charts] Document how to modify color according to values (#11824) @alexfauquette
|
|
151
|
+
- [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
|
|
152
|
+
|
|
153
|
+
### Docs
|
|
154
|
+
|
|
155
|
+
- [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
|
|
156
|
+
- [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
|
|
157
|
+
- [docs] Fix charts API links (#11832) @alexfauquette
|
|
158
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
159
|
+
- [docs] Improve column visibility documentation (#11857) @MBilalShafi
|
|
160
|
+
- [docs] Polish header @oliviertassinari
|
|
161
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
162
|
+
- [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
|
|
163
|
+
|
|
164
|
+
### Core
|
|
165
|
+
|
|
166
|
+
- [core] Rely on immutable ref when possible (#11847) @oliviertassinari
|
|
167
|
+
- [core] Bump monorepo (#11897) @alexfauquette
|
|
168
|
+
|
|
6
169
|
## 7.0.0-beta.0
|
|
7
170
|
|
|
8
171
|
_Jan 26, 2024_
|
|
@@ -1873,6 +2036,90 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1873
2036
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1874
2037
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1875
2038
|
|
|
2039
|
+
## 6.19.3
|
|
2040
|
+
|
|
2041
|
+
_Feb 1, 2024_
|
|
2042
|
+
|
|
2043
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2044
|
+
|
|
2045
|
+
- 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
|
|
2046
|
+
- 🐞 Bugfixes
|
|
2047
|
+
- 📚 Documentation improvements
|
|
2048
|
+
|
|
2049
|
+
### Data Grid
|
|
2050
|
+
|
|
2051
|
+
#### `@mui/x-data-grid@6.19.3`
|
|
2052
|
+
|
|
2053
|
+
- [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
|
|
2054
|
+
|
|
2055
|
+
#### `@mui/x-data-grid-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2056
|
+
|
|
2057
|
+
Same changes as in `@mui/x-data-grid@6.19.3`.
|
|
2058
|
+
|
|
2059
|
+
#### `@mui/x-data-grid-premium@6.19.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2060
|
+
|
|
2061
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.3`.
|
|
2062
|
+
|
|
2063
|
+
### Date Pickers
|
|
2064
|
+
|
|
2065
|
+
#### `@mui/x-date-pickers@6.19.3`
|
|
2066
|
+
|
|
2067
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
|
|
2068
|
+
|
|
2069
|
+
#### `@mui/x-date-pickers-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2070
|
+
|
|
2071
|
+
Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
2072
|
+
|
|
2073
|
+
### Charts / `@mui/x-charts@6.19.3`
|
|
2074
|
+
|
|
2075
|
+
- [charts] Document how to modify color according to values (#11854) @alexfauquette
|
|
2076
|
+
|
|
2077
|
+
### Docs
|
|
2078
|
+
|
|
2079
|
+
- [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
|
|
2080
|
+
- [docs] Fix 404 (#11852) @alexfauquette
|
|
2081
|
+
- [docs] Fix <title> generation (#11825) @alexfauquette
|
|
2082
|
+
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2083
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2084
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
2085
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2086
|
+
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2087
|
+
|
|
2088
|
+
## 6.19.2
|
|
2089
|
+
|
|
2090
|
+
_Jan 25, 2024_
|
|
2091
|
+
|
|
2092
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
2093
|
+
|
|
2094
|
+
- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2095
|
+
- 🐞 Bugfixes
|
|
2096
|
+
|
|
2097
|
+
### Date Pickers
|
|
2098
|
+
|
|
2099
|
+
#### `@mui/x-date-pickers@6.19.2`
|
|
2100
|
+
|
|
2101
|
+
- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2102
|
+
|
|
2103
|
+
#### `@mui/x-date-pickers-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2104
|
+
|
|
2105
|
+
Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
|
|
2106
|
+
|
|
2107
|
+
- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
|
|
2108
|
+
|
|
2109
|
+
### Data Grid
|
|
2110
|
+
|
|
2111
|
+
#### `@mui/x-data-grid@6.19.2`
|
|
2112
|
+
|
|
2113
|
+
- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
|
|
2114
|
+
|
|
2115
|
+
#### `@mui/x-data-grid-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2116
|
+
|
|
2117
|
+
Same changes as in `@mui/x-data-grid@6.19.2`.
|
|
2118
|
+
|
|
2119
|
+
#### `@mui/x-data-grid-premium@6.19.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2120
|
+
|
|
2121
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.2`.
|
|
2122
|
+
|
|
1876
2123
|
## 6.19.1
|
|
1877
2124
|
|
|
1878
2125
|
_Jan 19, 2024_
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
export interface TimePickerToolbarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
2
3
|
root: string;
|
|
4
|
+
/** Styles applied to the separator element. */
|
|
3
5
|
separator: string;
|
|
6
|
+
/** Styles applied to the time sections element. */
|
|
4
7
|
hourMinuteLabel: string;
|
|
8
|
+
/** Styles applied to the time sections element in landscape mode. */
|
|
5
9
|
hourMinuteLabelLandscape: string;
|
|
10
|
+
/** Styles applied to the time sections element in "rtl" theme mode. */
|
|
6
11
|
hourMinuteLabelReverse: string;
|
|
12
|
+
/** Styles applied to the meridiem selection element. */
|
|
7
13
|
ampmSelection: string;
|
|
14
|
+
/** Styles applied to the meridiem selection element in landscape mode. */
|
|
8
15
|
ampmLandscape: string;
|
|
16
|
+
/** Styles applied to the meridiem label element. */
|
|
9
17
|
ampmLabel: string;
|
|
10
18
|
}
|
|
11
19
|
export type TimePickerToolbarClassKey = keyof TimePickerToolbarClasses;
|
package/index.js
CHANGED
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.1",
|
|
4
4
|
"description": "The community edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"directory": "packages/x-date-pickers"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@babel/runtime": "^7.23.
|
|
38
|
-
"@mui/base": "^5.0.0-beta.
|
|
39
|
-
"@mui/system": "^5.15.
|
|
40
|
-
"@mui/utils": "^5.15.
|
|
37
|
+
"@babel/runtime": "^7.23.9",
|
|
38
|
+
"@mui/base": "^5.0.0-beta.34",
|
|
39
|
+
"@mui/system": "^5.15.7",
|
|
40
|
+
"@mui/utils": "^5.15.7",
|
|
41
41
|
"@types/react-transition-group": "^4.4.10",
|
|
42
42
|
"clsx": "^2.1.0",
|
|
43
43
|
"prop-types": "^15.8.1",
|