@mui/x-date-pickers 6.12.1 → 6.13.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/AdapterMoment/AdapterMoment.d.ts +5 -0
- package/AdapterMoment/AdapterMoment.js +17 -3
- package/CHANGELOG.md +133 -54
- package/LocalizationProvider/LocalizationProvider.d.ts +0 -3
- package/LocalizationProvider/LocalizationProvider.js +0 -3
- package/PickersDay/PickersDay.js +3 -3
- package/README.md +0 -1
- package/index.js +1 -1
- package/legacy/AdapterMoment/AdapterMoment.js +19 -1
- package/legacy/LocalizationProvider/LocalizationProvider.js +0 -3
- package/legacy/PickersDay/PickersDay.js +3 -3
- package/legacy/index.js +1 -1
- package/modern/AdapterMoment/AdapterMoment.js +16 -3
- package/modern/LocalizationProvider/LocalizationProvider.js +0 -3
- package/modern/PickersDay/PickersDay.js +3 -3
- package/modern/index.js +1 -1
- package/node/AdapterMoment/AdapterMoment.js +16 -3
- package/node/LocalizationProvider/LocalizationProvider.js +0 -3
- package/node/PickersDay/PickersDay.js +3 -3
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -39,6 +39,11 @@ export declare class AdapterMoment implements MuiPickersAdapter<Moment, string>
|
|
|
39
39
|
formatTokenMap: FieldFormatTokenMap;
|
|
40
40
|
constructor({ locale, formats, instance }?: AdapterOptions<string, typeof defaultMoment>);
|
|
41
41
|
private setLocaleToValue;
|
|
42
|
+
/**
|
|
43
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
44
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
45
|
+
*/
|
|
46
|
+
private syncMomentLocale;
|
|
42
47
|
private hasTimezonePlugin;
|
|
43
48
|
private createSystemDate;
|
|
44
49
|
private createUTCDate;
|
|
@@ -177,6 +177,22 @@ export class AdapterMoment {
|
|
|
177
177
|
}
|
|
178
178
|
return value.locale(expectedLocale);
|
|
179
179
|
};
|
|
180
|
+
/**
|
|
181
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
182
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
183
|
+
*/
|
|
184
|
+
this.syncMomentLocale = runner => {
|
|
185
|
+
var _this$locale;
|
|
186
|
+
const momentLocale = defaultMoment.locale();
|
|
187
|
+
const adapterLocale = (_this$locale = this.locale) != null ? _this$locale : 'en-us';
|
|
188
|
+
if (momentLocale !== adapterLocale) {
|
|
189
|
+
defaultMoment.locale(adapterLocale);
|
|
190
|
+
const result = runner();
|
|
191
|
+
defaultMoment.locale(momentLocale);
|
|
192
|
+
return result;
|
|
193
|
+
}
|
|
194
|
+
return runner();
|
|
195
|
+
};
|
|
180
196
|
this.hasTimezonePlugin = () => typeof this.moment.tz !== 'undefined';
|
|
181
197
|
this.createSystemDate = value => {
|
|
182
198
|
const parsedValue = this.moment(value).local();
|
|
@@ -468,9 +484,7 @@ export class AdapterMoment {
|
|
|
468
484
|
this.mergeDateAndTime = (dateParam, timeParam) => {
|
|
469
485
|
return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
|
|
470
486
|
};
|
|
471
|
-
this.getWeekdays = () =>
|
|
472
|
-
return defaultMoment.weekdaysShort(true);
|
|
473
|
-
};
|
|
487
|
+
this.getWeekdays = () => this.syncMomentLocale(() => defaultMoment.weekdaysShort(true));
|
|
474
488
|
this.getWeekArray = value => {
|
|
475
489
|
const cleanValue = this.setLocaleToValue(value);
|
|
476
490
|
const start = cleanValue.clone().startOf('month').startOf('week');
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,85 @@
|
|
|
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
|
+
## 6.13.0
|
|
7
|
+
|
|
8
|
+
_Sep 8, 2023_
|
|
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
|
+
- 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
|
|
13
|
+
|
|
14
|
+
The range picker popup will now be anchored to the first input element and left aligned like other pickers.
|
|
15
|
+
- 🌍 Improve Slovak (sk-SK) locale on the data grid
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@6.13.0`
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Allow to override the default overlay height in `autoHeight` mode (#10203) @cherniavskii
|
|
24
|
+
- [DataGrid] Allow to override the default row count component in footer (#10063) @hungmanhle
|
|
25
|
+
- [DataGrid] Fix an error when hovering on a row, the background changed to white (#10214) @chucamphong
|
|
26
|
+
- [DataGrid] Fix custom column docs, remove legacy `extendType` (#10175) @oliviertassinari
|
|
27
|
+
- [DataGrid] Make the pinned rows be on top of the no rows overlay (#9986) @DanailH
|
|
28
|
+
- [l10n] Improve Slovak (sk-SK) locale (#10182) @msidlo
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@6.13.0`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Fix column resize with pinned rows (#10229) @cherniavskii
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@6.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@6.13.0`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPremium] Fix aggregated column resizing (#10079) @cherniavskii
|
|
41
|
+
|
|
42
|
+
### Date Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@6.13.0`
|
|
45
|
+
|
|
46
|
+
- [pickers] Respect the adapter locale in `AdapterMoment.getWeekdays` (#10221) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@6.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@6.13.0`, plus:
|
|
51
|
+
|
|
52
|
+
- [DateRangePicker] Fix `anchorRef` behavior (#10077) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.10`
|
|
55
|
+
|
|
56
|
+
- [charts] Remove require condition from package.json exports (#10272) @Janpot
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Add missing export (#10245) @flaviendelangle
|
|
61
|
+
|
|
62
|
+
### Docs
|
|
63
|
+
|
|
64
|
+
- [docs] Add a `Getting Started` page for the Tree View (#10218) @flaviendelangle
|
|
65
|
+
- [docs] Add pickers `Custom opening button` page (#10200) @flaviendelangle
|
|
66
|
+
- [docs] Add pie chart demo with a center label (#10220) @giladappsforce
|
|
67
|
+
- [docs] Do not document ignored components (#10258) @flaviendelangle
|
|
68
|
+
- [docs] Fix charts demo using too deep import (#10263) @LukasTy
|
|
69
|
+
- [docs] Fix `e.g.` typo @oliviertassinari
|
|
70
|
+
- [docs] Fix npm package indentation @oliviertassinari
|
|
71
|
+
- [docs] Fix typo in tree view docs @oliviertassinari
|
|
72
|
+
- [docs] Improve the week picker example (#8257) @flaviendelangle
|
|
73
|
+
- [docs] Include code links in the data grid demo (#10219) @cherniavskii
|
|
74
|
+
- [docs] Polish page for SEO (#10216) @oliviertassinari
|
|
75
|
+
- [docs] Use `Base UI` `Portal` for the quick filter recipe (#10188) @DanailH
|
|
76
|
+
|
|
77
|
+
### Core
|
|
78
|
+
|
|
79
|
+
- [core] Finish migration to GA4 @oliviertassinari
|
|
80
|
+
- [core] Fix yarn docs:create-playground script @oliviertassinari
|
|
81
|
+
- [core] Move @mui/base from peer dependency to dependency (#10215) @oliviertassinari
|
|
82
|
+
- [core] Prevent `e.g.` typo (#10193) @oliviertassinari
|
|
83
|
+
- [core] Remove unused `babel-plugin-tester` package (#10243) @LukasTy
|
|
84
|
+
|
|
6
85
|
## 6.12.1
|
|
7
86
|
|
|
8
87
|
_Aug 31, 2023_
|
|
@@ -17,30 +96,30 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
17
96
|
|
|
18
97
|
### Data Grid
|
|
19
98
|
|
|
20
|
-
#### `@mui/x-data-grid@
|
|
99
|
+
#### `@mui/x-data-grid@6.12.1`
|
|
21
100
|
|
|
22
101
|
- [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
|
|
23
102
|
- [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
|
|
24
103
|
- [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
|
|
25
104
|
- [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
|
|
26
105
|
|
|
27
|
-
#### `@mui/x-data-grid-pro@
|
|
106
|
+
#### `@mui/x-data-grid-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
28
107
|
|
|
29
|
-
Same changes as in `@mui/x-data-grid@
|
|
108
|
+
Same changes as in `@mui/x-data-grid@6.12.1`.
|
|
30
109
|
|
|
31
|
-
#### `@mui/x-data-grid-premium@
|
|
110
|
+
#### `@mui/x-data-grid-premium@6.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
32
111
|
|
|
33
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
112
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.1`.
|
|
34
113
|
|
|
35
114
|
### Date Pickers
|
|
36
115
|
|
|
37
|
-
#### `@mui/x-date-pickers@
|
|
116
|
+
#### `@mui/x-date-pickers@6.12.1`
|
|
38
117
|
|
|
39
118
|
- [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
|
|
40
119
|
|
|
41
|
-
#### `@mui/x-date-pickers-pro@
|
|
120
|
+
#### `@mui/x-date-pickers-pro@6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
121
|
|
|
43
|
-
Same changes as in `@mui/x-date-pickers@
|
|
122
|
+
Same changes as in `@mui/x-date-pickers@6.12.1`.
|
|
44
123
|
|
|
45
124
|
### Charts / `@mui/x-charts@6.0.0-alpha.9`
|
|
46
125
|
|
|
@@ -75,22 +154,22 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
75
154
|
|
|
76
155
|
### Data Grid
|
|
77
156
|
|
|
78
|
-
#### `@mui/x-data-grid@
|
|
157
|
+
#### `@mui/x-data-grid@6.12.0`
|
|
79
158
|
|
|
80
159
|
- [DataGrid] Allow print export for more than 100 rows (#10045) @MBilalShafi
|
|
81
160
|
- [l10n] Improve Ukrainian (uk-UA) locale (#10076) @mkundos
|
|
82
161
|
|
|
83
|
-
#### `@mui/x-data-grid-pro@
|
|
162
|
+
#### `@mui/x-data-grid-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
84
163
|
|
|
85
|
-
Same changes as in `@mui/x-data-grid@
|
|
164
|
+
Same changes as in `@mui/x-data-grid@6.12.0`.
|
|
86
165
|
|
|
87
|
-
#### `@mui/x-data-grid-premium@
|
|
166
|
+
#### `@mui/x-data-grid-premium@6.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
88
167
|
|
|
89
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
168
|
+
Same changes as in `@mui/x-data-grid-pro@6.12.0`.
|
|
90
169
|
|
|
91
170
|
### Date Pickers
|
|
92
171
|
|
|
93
|
-
#### `@mui/x-date-pickers@
|
|
172
|
+
#### `@mui/x-date-pickers@6.12.0`
|
|
94
173
|
|
|
95
174
|
- [fields] Do not clamp day of month (#9973) @flaviendelangle
|
|
96
175
|
- [pickers] Fix `ownerState` on `desktopPaper` slot props (#10103) @LukasTy
|
|
@@ -100,9 +179,9 @@ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
|
100
179
|
- [pickers] Make `openPickerButton` toggle picker (#10109) @noraleonte
|
|
101
180
|
- [pickers] Update `reduceAnimations` default rule (#9864) @LukasTy
|
|
102
181
|
|
|
103
|
-
#### `@mui/x-date-pickers-pro@
|
|
182
|
+
#### `@mui/x-date-pickers-pro@6.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
104
183
|
|
|
105
|
-
Same changes as in `@mui/x-date-pickers@
|
|
184
|
+
Same changes as in `@mui/x-date-pickers@6.12.0`.
|
|
106
185
|
|
|
107
186
|
### Charts / `@mui/x-charts@6.0.0-alpha.8`
|
|
108
187
|
|
|
@@ -141,7 +220,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
141
220
|
|
|
142
221
|
### Data Grid
|
|
143
222
|
|
|
144
|
-
#### `@mui/x-data-grid@
|
|
223
|
+
#### `@mui/x-data-grid@6.11.2`
|
|
145
224
|
|
|
146
225
|
- [DataGrid] Fix `eval` blocked by CSP (#9863) @romgrk
|
|
147
226
|
- [DataGrid] Fix row id bug (#10051) @romgrk
|
|
@@ -151,26 +230,26 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
151
230
|
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
152
231
|
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
153
232
|
|
|
154
|
-
#### `@mui/x-data-grid-pro@
|
|
233
|
+
#### `@mui/x-data-grid-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
234
|
|
|
156
|
-
Same changes as in `@mui/x-data-grid@
|
|
235
|
+
Same changes as in `@mui/x-data-grid@6.11.2`.
|
|
157
236
|
|
|
158
|
-
#### `@mui/x-data-grid-premium@
|
|
237
|
+
#### `@mui/x-data-grid-premium@6.11.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
159
238
|
|
|
160
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
239
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.2`.
|
|
161
240
|
|
|
162
241
|
### Date Pickers
|
|
163
242
|
|
|
164
|
-
#### `@mui/x-date-pickers@
|
|
243
|
+
#### `@mui/x-date-pickers@6.11.2`
|
|
165
244
|
|
|
166
245
|
- [pickers] Fix month switcher RTL (#10003) @alexfauquette
|
|
167
246
|
- [pickers] Follow-up on using device motion reduction preference (#9858) @LukasTy
|
|
168
247
|
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
169
248
|
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
170
249
|
|
|
171
|
-
#### `@mui/x-date-pickers-pro@
|
|
250
|
+
#### `@mui/x-date-pickers-pro@6.11.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
172
251
|
|
|
173
|
-
Same changes as in `@mui/x-date-pickers@
|
|
252
|
+
Same changes as in `@mui/x-date-pickers@6.11.2`.
|
|
174
253
|
|
|
175
254
|
### Docs
|
|
176
255
|
|
|
@@ -225,7 +304,7 @@ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
|
|
|
225
304
|
|
|
226
305
|
Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
227
306
|
|
|
228
|
-
### Charts / `@mui/x-charts@
|
|
307
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.7`
|
|
229
308
|
|
|
230
309
|
- [charts] Fix label and tick alignment (#9952) @LukasTy
|
|
231
310
|
- [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
|
|
@@ -233,7 +312,7 @@ Same changes as in `@mui/x-date-pickers@6.11.1`.
|
|
|
233
312
|
- [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
|
|
234
313
|
- [charts] Extend cheerful fiesta palette (#9980) @noraleonte
|
|
235
314
|
|
|
236
|
-
### Tree View / `@mui/x-tree-view@
|
|
315
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.1`
|
|
237
316
|
|
|
238
317
|
- [TreeView] Add theme augmentation (#9967) @flaviendelangle
|
|
239
318
|
|
|
@@ -263,7 +342,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
263
342
|
|
|
264
343
|
### Data Grid
|
|
265
344
|
|
|
266
|
-
#### `@mui/x-data-grid@
|
|
345
|
+
#### `@mui/x-data-grid@6.11.0`
|
|
267
346
|
|
|
268
347
|
- [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
|
|
269
348
|
- [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
|
|
@@ -271,17 +350,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
271
350
|
- [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
|
|
272
351
|
- [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
|
|
273
352
|
|
|
274
|
-
#### `@mui/x-data-grid-pro@
|
|
353
|
+
#### `@mui/x-data-grid-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
275
354
|
|
|
276
|
-
Same changes as in `@mui/x-data-grid@
|
|
355
|
+
Same changes as in `@mui/x-data-grid@6.11.0`.
|
|
277
356
|
|
|
278
|
-
#### `@mui/x-data-grid-premium@
|
|
357
|
+
#### `@mui/x-data-grid-premium@6.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
279
358
|
|
|
280
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
359
|
+
Same changes as in `@mui/x-data-grid-pro@6.11.0`.
|
|
281
360
|
|
|
282
361
|
### Date Pickers
|
|
283
362
|
|
|
284
|
-
#### `@mui/x-date-pickers@
|
|
363
|
+
#### `@mui/x-date-pickers@6.11.0`
|
|
285
364
|
|
|
286
365
|
- [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
|
|
287
366
|
- [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
|
|
@@ -294,18 +373,18 @@ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
|
|
|
294
373
|
- [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
|
|
295
374
|
- [pickers] Use device motion reduction preference (#9823) @LukasTy
|
|
296
375
|
|
|
297
|
-
#### `@mui/x-date-pickers-pro@
|
|
376
|
+
#### `@mui/x-date-pickers-pro@6.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
298
377
|
|
|
299
|
-
Same changes as in `@mui/x-date-pickers@
|
|
378
|
+
Same changes as in `@mui/x-date-pickers@6.11.0`.
|
|
300
379
|
|
|
301
|
-
### Charts / `@mui/x-charts@
|
|
380
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.6`
|
|
302
381
|
|
|
303
382
|
- [charts] Add TS definition to the exported elements (#9885) @alexfauquette
|
|
304
383
|
- [charts] Add sparkline (#9662) @alexfauquette
|
|
305
384
|
- [charts] Fix missing configuration types (#9886) @alexfauquette
|
|
306
385
|
- [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
|
|
307
386
|
|
|
308
|
-
### Tree View / `@mui/x-tree-view@
|
|
387
|
+
### Tree View / `@mui/x-tree-view@6.0.0-alpha.0`
|
|
309
388
|
|
|
310
389
|
- [TreeView] Add missing exported types (#9862) @flaviendelangle
|
|
311
390
|
- [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
|
|
@@ -350,34 +429,34 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
350
429
|
|
|
351
430
|
### Data Grid
|
|
352
431
|
|
|
353
|
-
#### `@mui/x-data-grid@
|
|
432
|
+
#### `@mui/x-data-grid@6.10.2`
|
|
354
433
|
|
|
355
434
|
- [DataGrid] Fix quick filter & aggregation error (#9729) @romgrk
|
|
356
435
|
- [DataGrid] Fix row click propagation causing error in nested grid (#9741) @cherniavskii
|
|
357
436
|
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
358
437
|
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
359
438
|
|
|
360
|
-
#### `@mui/x-data-grid-pro@
|
|
439
|
+
#### `@mui/x-data-grid-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
361
440
|
|
|
362
|
-
Same changes as in `@mui/x-data-grid@
|
|
441
|
+
Same changes as in `@mui/x-data-grid@6.10.2`.
|
|
363
442
|
|
|
364
|
-
#### `@mui/x-data-grid-premium@
|
|
443
|
+
#### `@mui/x-data-grid-premium@6.10.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
365
444
|
|
|
366
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
445
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.2`, plus:
|
|
367
446
|
|
|
368
447
|
- [DataGridPremium] Allow to customize grouping cell offset (#9417) @cherniavskii
|
|
369
448
|
|
|
370
449
|
### Date Pickers
|
|
371
450
|
|
|
372
|
-
#### `@mui/x-date-pickers@
|
|
451
|
+
#### `@mui/x-date-pickers@6.10.2`
|
|
373
452
|
|
|
374
453
|
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
375
454
|
|
|
376
|
-
#### `@mui/x-date-pickers-pro@
|
|
455
|
+
#### `@mui/x-date-pickers-pro@6.10.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
377
456
|
|
|
378
|
-
Same changes as in `@mui/x-date-pickers@
|
|
457
|
+
Same changes as in `@mui/x-date-pickers@6.10.2`.
|
|
379
458
|
|
|
380
|
-
### Charts / `@mui/x-charts@
|
|
459
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.5`
|
|
381
460
|
|
|
382
461
|
- [charts] Improve JSDoc for axis-related props (#9779) @flaviendelangle
|
|
383
462
|
- [charts] Improve performances of Scatter component (#9527) @flaviendelangle
|
|
@@ -415,7 +494,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
415
494
|
|
|
416
495
|
### Data Grid
|
|
417
496
|
|
|
418
|
-
#### `@mui/x-data-grid@
|
|
497
|
+
#### `@mui/x-data-grid@6.10.1`
|
|
419
498
|
|
|
420
499
|
- [DataGrid] Filtering performance: compile filter applier with `eval` (#9635) @romgrk
|
|
421
500
|
- [DataGrid] Fix CSV export for values containing double quotes (#9667) @cherniavskii
|
|
@@ -425,29 +504,29 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
425
504
|
- [DataGrid] Update focused cell on page change via keyboard (#9203) @m4theushw
|
|
426
505
|
- [DataGrid] Wait for remote stylesheets to load before print (#9665) @cherniavskii
|
|
427
506
|
|
|
428
|
-
#### `@mui/x-data-grid-pro@
|
|
507
|
+
#### `@mui/x-data-grid-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
429
508
|
|
|
430
|
-
Same changes as in `@mui/x-data-grid@
|
|
509
|
+
Same changes as in `@mui/x-data-grid@6.10.1`, plus:
|
|
431
510
|
|
|
432
511
|
- [DataGridPro] Improve tree data performance (#9682) @cherniavskii
|
|
433
512
|
- [DataGridPro] Prevent affecting cells from child DataGrid when resizing a column (#9670) @m4theushw
|
|
434
513
|
|
|
435
|
-
#### `@mui/x-data-grid-premium@
|
|
514
|
+
#### `@mui/x-data-grid-premium@6.10.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
436
515
|
|
|
437
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
516
|
+
Same changes as in `@mui/x-data-grid-pro@6.10.1`.
|
|
438
517
|
|
|
439
518
|
### Date Pickers
|
|
440
519
|
|
|
441
|
-
#### `@mui/x-date-pickers@
|
|
520
|
+
#### `@mui/x-date-pickers@6.10.1`
|
|
442
521
|
|
|
443
522
|
- [fields] Fix `format` and `value` update order (#9715) @LukasTy
|
|
444
523
|
- [pickers] Remove `require` usage in comment (#9675) @LukasTy
|
|
445
524
|
|
|
446
|
-
#### `@mui/x-date-pickers-pro@
|
|
525
|
+
#### `@mui/x-date-pickers-pro@6.10.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
447
526
|
|
|
448
|
-
Same changes as in `@mui/x-date-pickers@
|
|
527
|
+
Same changes as in `@mui/x-date-pickers@6.10.1`.
|
|
449
528
|
|
|
450
|
-
### Charts / `@mui/x-charts@
|
|
529
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.4`
|
|
451
530
|
|
|
452
531
|
- [charts] Fix blinking in responsive charts and extremums computation for line charts (#9734) @alexfauquette
|
|
453
532
|
- [charts] Use ESM with imports (#9645) @alexfauquette
|
|
@@ -41,8 +41,5 @@ export interface LocalizationProviderProps<TDate, TLocale> {
|
|
|
41
41
|
type LocalizationProviderComponent = (<TDate, TLocale>(props: LocalizationProviderProps<TDate, TLocale>) => React.JSX.Element) & {
|
|
42
42
|
propTypes?: any;
|
|
43
43
|
};
|
|
44
|
-
/**
|
|
45
|
-
* @ignore - do not document.
|
|
46
|
-
*/
|
|
47
44
|
export declare const LocalizationProvider: LocalizationProviderComponent;
|
|
48
45
|
export {};
|
|
@@ -9,9 +9,6 @@ export const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @ignore - do not document.
|
|
14
|
-
*/
|
|
15
12
|
export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
16
13
|
var _React$useContext;
|
|
17
14
|
const {
|
package/PickersDay/PickersDay.js
CHANGED
|
@@ -39,6 +39,9 @@ const styleArg = ({
|
|
|
39
39
|
padding: 0,
|
|
40
40
|
// explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component
|
|
41
41
|
backgroundColor: 'transparent',
|
|
42
|
+
transition: theme.transitions.create('background-color', {
|
|
43
|
+
duration: theme.transitions.duration.short
|
|
44
|
+
}),
|
|
42
45
|
color: (theme.vars || theme).palette.text.primary,
|
|
43
46
|
'@media (pointer: fine)': {
|
|
44
47
|
'&:hover': {
|
|
@@ -56,9 +59,6 @@ const styleArg = ({
|
|
|
56
59
|
color: (theme.vars || theme).palette.primary.contrastText,
|
|
57
60
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
58
61
|
fontWeight: theme.typography.fontWeightMedium,
|
|
59
|
-
transition: theme.transitions.create('background-color', {
|
|
60
|
-
duration: theme.transitions.duration.short
|
|
61
|
-
}),
|
|
62
62
|
'&:hover': {
|
|
63
63
|
willChange: 'background-color',
|
|
64
64
|
backgroundColor: (theme.vars || theme).palette.primary.dark
|
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -181,6 +181,22 @@ export var AdapterMoment = /*#__PURE__*/_createClass(function AdapterMoment() {
|
|
|
181
181
|
}
|
|
182
182
|
return value.locale(expectedLocale);
|
|
183
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
186
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
187
|
+
*/
|
|
188
|
+
this.syncMomentLocale = function (runner) {
|
|
189
|
+
var _this$locale;
|
|
190
|
+
var momentLocale = defaultMoment.locale();
|
|
191
|
+
var adapterLocale = (_this$locale = _this.locale) != null ? _this$locale : 'en-us';
|
|
192
|
+
if (momentLocale !== adapterLocale) {
|
|
193
|
+
defaultMoment.locale(adapterLocale);
|
|
194
|
+
var result = runner();
|
|
195
|
+
defaultMoment.locale(momentLocale);
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
198
|
+
return runner();
|
|
199
|
+
};
|
|
184
200
|
this.hasTimezonePlugin = function () {
|
|
185
201
|
return typeof _this.moment.tz !== 'undefined';
|
|
186
202
|
};
|
|
@@ -478,7 +494,9 @@ export var AdapterMoment = /*#__PURE__*/_createClass(function AdapterMoment() {
|
|
|
478
494
|
return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
|
|
479
495
|
};
|
|
480
496
|
this.getWeekdays = function () {
|
|
481
|
-
return
|
|
497
|
+
return _this.syncMomentLocale(function () {
|
|
498
|
+
return defaultMoment.weekdaysShort(true);
|
|
499
|
+
});
|
|
482
500
|
};
|
|
483
501
|
this.getWeekArray = function (value) {
|
|
484
502
|
var cleanValue = _this.setLocaleToValue(value);
|
|
@@ -9,9 +9,6 @@ export var MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @ignore - do not document.
|
|
14
|
-
*/
|
|
15
12
|
export var LocalizationProvider = function LocalizationProvider(inProps) {
|
|
16
13
|
var _React$useContext;
|
|
17
14
|
var inLocaleText = inProps.localeText,
|
|
@@ -39,6 +39,9 @@ var styleArg = function styleArg(_ref) {
|
|
|
39
39
|
padding: 0,
|
|
40
40
|
// explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component
|
|
41
41
|
backgroundColor: 'transparent',
|
|
42
|
+
transition: theme.transitions.create('background-color', {
|
|
43
|
+
duration: theme.transitions.duration.short
|
|
44
|
+
}),
|
|
42
45
|
color: (theme.vars || theme).palette.text.primary,
|
|
43
46
|
'@media (pointer: fine)': {
|
|
44
47
|
'&:hover': {
|
|
@@ -55,9 +58,6 @@ var styleArg = function styleArg(_ref) {
|
|
|
55
58
|
color: (theme.vars || theme).palette.primary.contrastText,
|
|
56
59
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
57
60
|
fontWeight: theme.typography.fontWeightMedium,
|
|
58
|
-
transition: theme.transitions.create('background-color', {
|
|
59
|
-
duration: theme.transitions.duration.short
|
|
60
|
-
}),
|
|
61
61
|
'&:hover': {
|
|
62
62
|
willChange: 'background-color',
|
|
63
63
|
backgroundColor: (theme.vars || theme).palette.primary.dark
|
package/legacy/index.js
CHANGED
|
@@ -177,6 +177,21 @@ export class AdapterMoment {
|
|
|
177
177
|
}
|
|
178
178
|
return value.locale(expectedLocale);
|
|
179
179
|
};
|
|
180
|
+
/**
|
|
181
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
182
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
183
|
+
*/
|
|
184
|
+
this.syncMomentLocale = runner => {
|
|
185
|
+
const momentLocale = defaultMoment.locale();
|
|
186
|
+
const adapterLocale = this.locale ?? 'en-us';
|
|
187
|
+
if (momentLocale !== adapterLocale) {
|
|
188
|
+
defaultMoment.locale(adapterLocale);
|
|
189
|
+
const result = runner();
|
|
190
|
+
defaultMoment.locale(momentLocale);
|
|
191
|
+
return result;
|
|
192
|
+
}
|
|
193
|
+
return runner();
|
|
194
|
+
};
|
|
180
195
|
this.hasTimezonePlugin = () => typeof this.moment.tz !== 'undefined';
|
|
181
196
|
this.createSystemDate = value => {
|
|
182
197
|
const parsedValue = this.moment(value).local();
|
|
@@ -467,9 +482,7 @@ export class AdapterMoment {
|
|
|
467
482
|
this.mergeDateAndTime = (dateParam, timeParam) => {
|
|
468
483
|
return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
|
|
469
484
|
};
|
|
470
|
-
this.getWeekdays = () =>
|
|
471
|
-
return defaultMoment.weekdaysShort(true);
|
|
472
|
-
};
|
|
485
|
+
this.getWeekdays = () => this.syncMomentLocale(() => defaultMoment.weekdaysShort(true));
|
|
473
486
|
this.getWeekArray = value => {
|
|
474
487
|
const cleanValue = this.setLocaleToValue(value);
|
|
475
488
|
const start = cleanValue.clone().startOf('month').startOf('week');
|
|
@@ -9,9 +9,6 @@ export const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);
|
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @ignore - do not document.
|
|
14
|
-
*/
|
|
15
12
|
export const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
16
13
|
const {
|
|
17
14
|
localeText: inLocaleText
|
|
@@ -39,6 +39,9 @@ const styleArg = ({
|
|
|
39
39
|
padding: 0,
|
|
40
40
|
// explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component
|
|
41
41
|
backgroundColor: 'transparent',
|
|
42
|
+
transition: theme.transitions.create('background-color', {
|
|
43
|
+
duration: theme.transitions.duration.short
|
|
44
|
+
}),
|
|
42
45
|
color: (theme.vars || theme).palette.text.primary,
|
|
43
46
|
'@media (pointer: fine)': {
|
|
44
47
|
'&:hover': {
|
|
@@ -56,9 +59,6 @@ const styleArg = ({
|
|
|
56
59
|
color: (theme.vars || theme).palette.primary.contrastText,
|
|
57
60
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
58
61
|
fontWeight: theme.typography.fontWeightMedium,
|
|
59
|
-
transition: theme.transitions.create('background-color', {
|
|
60
|
-
duration: theme.transitions.duration.short
|
|
61
|
-
}),
|
|
62
62
|
'&:hover': {
|
|
63
63
|
willChange: 'background-color',
|
|
64
64
|
backgroundColor: (theme.vars || theme).palette.primary.dark
|
package/modern/index.js
CHANGED
|
@@ -185,6 +185,21 @@ class AdapterMoment {
|
|
|
185
185
|
}
|
|
186
186
|
return value.locale(expectedLocale);
|
|
187
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* Some methods from moment can't take the locale as a parameter and always use the current locale.
|
|
190
|
+
* To respect the adapter locale, we need to set it as the current locale and then reset the previous locale.
|
|
191
|
+
*/
|
|
192
|
+
this.syncMomentLocale = runner => {
|
|
193
|
+
const momentLocale = _moment.default.locale();
|
|
194
|
+
const adapterLocale = this.locale ?? 'en-us';
|
|
195
|
+
if (momentLocale !== adapterLocale) {
|
|
196
|
+
_moment.default.locale(adapterLocale);
|
|
197
|
+
const result = runner();
|
|
198
|
+
_moment.default.locale(momentLocale);
|
|
199
|
+
return result;
|
|
200
|
+
}
|
|
201
|
+
return runner();
|
|
202
|
+
};
|
|
188
203
|
this.hasTimezonePlugin = () => typeof this.moment.tz !== 'undefined';
|
|
189
204
|
this.createSystemDate = value => {
|
|
190
205
|
const parsedValue = this.moment(value).local();
|
|
@@ -475,9 +490,7 @@ class AdapterMoment {
|
|
|
475
490
|
this.mergeDateAndTime = (dateParam, timeParam) => {
|
|
476
491
|
return dateParam.clone().hour(timeParam.hour()).minute(timeParam.minute()).second(timeParam.second());
|
|
477
492
|
};
|
|
478
|
-
this.getWeekdays = () =>
|
|
479
|
-
return _moment.default.weekdaysShort(true);
|
|
480
|
-
};
|
|
493
|
+
this.getWeekdays = () => this.syncMomentLocale(() => _moment.default.weekdaysShort(true));
|
|
481
494
|
this.getWeekArray = value => {
|
|
482
495
|
const cleanValue = this.setLocaleToValue(value);
|
|
483
496
|
const start = cleanValue.clone().startOf('month').startOf('week');
|
|
@@ -19,9 +19,6 @@ exports.MuiPickersAdapterContext = MuiPickersAdapterContext;
|
|
|
19
19
|
if (process.env.NODE_ENV !== 'production') {
|
|
20
20
|
MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
* @ignore - do not document.
|
|
24
|
-
*/
|
|
25
22
|
const LocalizationProvider = function LocalizationProvider(inProps) {
|
|
26
23
|
const {
|
|
27
24
|
localeText: inLocaleText
|
|
@@ -48,6 +48,9 @@ const styleArg = ({
|
|
|
48
48
|
padding: 0,
|
|
49
49
|
// explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component
|
|
50
50
|
backgroundColor: 'transparent',
|
|
51
|
+
transition: theme.transitions.create('background-color', {
|
|
52
|
+
duration: theme.transitions.duration.short
|
|
53
|
+
}),
|
|
51
54
|
color: (theme.vars || theme).palette.text.primary,
|
|
52
55
|
'@media (pointer: fine)': {
|
|
53
56
|
'&:hover': {
|
|
@@ -65,9 +68,6 @@ const styleArg = ({
|
|
|
65
68
|
color: (theme.vars || theme).palette.primary.contrastText,
|
|
66
69
|
backgroundColor: (theme.vars || theme).palette.primary.main,
|
|
67
70
|
fontWeight: theme.typography.fontWeightMedium,
|
|
68
|
-
transition: theme.transitions.create('background-color', {
|
|
69
|
-
duration: theme.transitions.duration.short
|
|
70
|
-
}),
|
|
71
71
|
'&:hover': {
|
|
72
72
|
willChange: 'background-color',
|
|
73
73
|
backgroundColor: (theme.vars || theme).palette.primary.dark
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "The community edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"directory": "packages/x-date-pickers"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.22.
|
|
36
|
+
"@babel/runtime": "^7.22.15",
|
|
37
|
+
"@mui/base": "^5.0.0-alpha.87",
|
|
37
38
|
"@mui/utils": "^5.14.7",
|
|
38
39
|
"@types/react-transition-group": "^4.4.6",
|
|
39
40
|
"clsx": "^2.0.0",
|
|
@@ -43,7 +44,6 @@
|
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@emotion/react": "^11.9.0",
|
|
45
46
|
"@emotion/styled": "^11.8.1",
|
|
46
|
-
"@mui/base": "^5.0.0-alpha.87",
|
|
47
47
|
"@mui/material": "^5.8.6",
|
|
48
48
|
"@mui/system": "^5.8.0",
|
|
49
49
|
"date-fns": "^2.25.0",
|