@mui/x-date-pickers 5.0.0-alpha.4 → 5.0.0-alpha.7
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 +254 -24
- package/CalendarPicker/CalendarPicker.d.ts +18 -30
- package/CalendarPicker/CalendarPicker.js +88 -44
- package/CalendarPicker/DayPicker.d.ts +2 -2
- package/CalendarPicker/DayPicker.js +16 -4
- package/CalendarPicker/PickersCalendarHeader.d.ts +3 -3
- package/CalendarPicker/PickersCalendarHeader.js +4 -7
- package/CalendarPicker/useCalendarState.d.ts +2 -2
- package/CalendarPicker/useCalendarState.js +9 -9
- package/ClockPicker/ClockPicker.d.ts +8 -3
- package/ClockPicker/ClockPicker.js +21 -17
- package/DatePicker/DatePicker.d.ts +8 -0
- package/DatePicker/DatePicker.js +20 -7
- package/DatePicker/shared.d.ts +2 -10
- package/DatePicker/shared.js +0 -2
- package/DateTimePicker/DateTimePicker.d.ts +17 -3
- package/DateTimePicker/DateTimePicker.js +15 -10
- package/DateTimePicker/DateTimePickerTabs.js +4 -2
- package/DateTimePicker/shared.d.ts +2 -10
- package/DateTimePicker/shared.js +0 -1
- package/DesktopDatePicker/DesktopDatePicker.d.ts +13 -5
- package/DesktopDatePicker/DesktopDatePicker.js +14 -10
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +12 -3
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +15 -10
- package/DesktopTimePicker/DesktopTimePicker.d.ts +12 -3
- package/DesktopTimePicker/DesktopTimePicker.js +8 -2
- package/LocalizationProvider/LocalizationProvider.d.ts +2 -2
- package/MobileDatePicker/MobileDatePicker.d.ts +11 -3
- package/MobileDatePicker/MobileDatePicker.js +14 -10
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +10 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +15 -10
- package/MobileTimePicker/MobileTimePicker.d.ts +12 -3
- package/MobileTimePicker/MobileTimePicker.js +8 -2
- package/MonthPicker/MonthPicker.d.ts +4 -28
- package/MonthPicker/MonthPicker.js +18 -27
- package/PickersDay/PickersDay.d.ts +1 -1
- package/PickersDay/PickersDay.js +1 -1
- package/README.md +2 -2
- package/StaticDatePicker/StaticDatePicker.d.ts +19 -1
- package/StaticDatePicker/StaticDatePicker.js +28 -17
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +19 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +30 -17
- package/StaticTimePicker/StaticTimePicker.d.ts +19 -1
- package/StaticTimePicker/StaticTimePicker.js +26 -10
- package/TimePicker/TimePicker.d.ts +8 -0
- package/TimePicker/TimePicker.js +11 -0
- package/TimePicker/shared.d.ts +1 -0
- package/TimePicker/shared.js +4 -8
- package/YearPicker/YearPicker.d.ts +4 -24
- package/YearPicker/YearPicker.js +28 -47
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/internals/components/CalendarOrClockPicker/CalendarOrClockPicker.d.ts +2 -3
- package/internals/components/KeyboardDateInput.js +4 -3
- package/internals/components/PickerStaticWrapper/PickerStaticWrapper.d.ts +24 -2
- package/internals/components/PickerStaticWrapper/PickerStaticWrapper.js +78 -7
- package/internals/components/PickerStaticWrapper/pickerStaticWrapperClasses.d.ts +2 -0
- package/internals/components/PickerStaticWrapper/pickerStaticWrapperClasses.js +1 -1
- package/internals/components/PickersArrowSwitcher.d.ts +2 -3
- package/internals/components/PickersModalDialog.d.ts +10 -7
- package/internals/components/PureDateInput.d.ts +3 -3
- package/internals/components/PureDateInput.js +7 -3
- package/internals/components/wrappers/DesktopWrapper.d.ts +8 -0
- package/internals/hooks/useMaskedInput.js +32 -31
- package/internals/hooks/useUtils.d.ts +3 -1
- package/internals/hooks/useUtils.js +1 -3
- package/internals/hooks/useViews.d.ts +1 -0
- package/internals/hooks/validation/models.d.ts +61 -0
- package/internals/hooks/validation/models.js +1 -0
- package/internals/hooks/validation/useDateTimeValidation.js +23 -11
- package/internals/hooks/validation/useDateValidation.d.ts +3 -26
- package/internals/hooks/validation/useDateValidation.js +40 -13
- package/internals/hooks/validation/useTimeValidation.js +18 -13
- package/internals/hooks/validation/useValidation.d.ts +6 -2
- package/internals/hooks/validation/useValidation.js +7 -3
- package/internals/index.d.ts +1 -0
- package/internals/utils/date-utils.d.ts +4 -4
- package/internals/utils/date-utils.js +4 -4
- package/internals/utils/text-field-helper.d.ts +1 -1
- package/internals/utils/text-field-helper.js +29 -14
- package/internals/utils/utils.d.ts +0 -1
- package/internals/utils/utils.js +0 -9
- package/legacy/CalendarPicker/CalendarPicker.js +89 -46
- package/legacy/CalendarPicker/DayPicker.js +16 -4
- package/legacy/CalendarPicker/PickersCalendarHeader.js +4 -8
- package/legacy/CalendarPicker/useCalendarState.js +11 -13
- package/legacy/ClockPicker/ClockPicker.js +21 -29
- package/legacy/DatePicker/DatePicker.js +20 -7
- package/legacy/DatePicker/shared.js +0 -2
- package/legacy/DateTimePicker/DateTimePicker.js +15 -10
- package/legacy/DateTimePicker/DateTimePickerTabs.js +4 -2
- package/legacy/DateTimePicker/shared.js +0 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +14 -10
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +15 -10
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +8 -2
- package/legacy/MobileDatePicker/MobileDatePicker.js +14 -10
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +15 -10
- package/legacy/MobileTimePicker/MobileTimePicker.js +8 -2
- package/legacy/MonthPicker/MonthPicker.js +20 -27
- package/legacy/PickersDay/PickersDay.js +1 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +27 -16
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +29 -16
- package/legacy/StaticTimePicker/StaticTimePicker.js +25 -9
- package/legacy/TimePicker/TimePicker.js +11 -0
- package/legacy/TimePicker/shared.js +4 -8
- package/legacy/YearPicker/YearPicker.js +30 -47
- package/legacy/index.js +3 -2
- package/legacy/internals/components/KeyboardDateInput.js +4 -4
- package/legacy/internals/components/PickerStaticWrapper/PickerStaticWrapper.js +81 -6
- package/legacy/internals/components/PickerStaticWrapper/pickerStaticWrapperClasses.js +1 -1
- package/legacy/internals/components/PureDateInput.js +7 -4
- package/legacy/internals/hooks/useMaskedInput.js +40 -40
- package/legacy/internals/hooks/useUtils.js +1 -3
- package/legacy/internals/hooks/validation/models.js +1 -0
- package/legacy/internals/hooks/validation/useDateTimeValidation.js +26 -14
- package/legacy/internals/hooks/validation/useDateValidation.js +41 -13
- package/legacy/internals/hooks/validation/useTimeValidation.js +16 -13
- package/legacy/internals/hooks/validation/useValidation.js +7 -3
- package/legacy/internals/utils/date-utils.js +4 -4
- package/legacy/internals/utils/text-field-helper.js +29 -14
- package/legacy/internals/utils/utils.js +0 -9
- package/legacy/locales/deDE.js +31 -0
- package/legacy/locales/enUS.js +34 -4
- package/legacy/locales/frFR.js +21 -4
- package/legacy/locales/index.js +5 -0
- package/legacy/locales/nlNL.js +44 -0
- package/legacy/locales/ptBR.js +44 -0
- package/legacy/locales/svSE.js +44 -0
- package/legacy/locales/trTR.js +32 -0
- package/locales/deDE.d.ts +29 -0
- package/locales/deDE.js +31 -0
- package/locales/enUS.d.ts +11 -1
- package/locales/enUS.js +20 -4
- package/locales/frFR.d.ts +9 -0
- package/locales/frFR.js +21 -4
- package/locales/index.d.ts +5 -0
- package/locales/index.js +5 -0
- package/locales/nlNL.d.ts +30 -0
- package/locales/nlNL.js +30 -0
- package/locales/ptBR.d.ts +30 -0
- package/locales/ptBR.js +30 -0
- package/locales/svSE.d.ts +30 -0
- package/locales/svSE.js +30 -0
- package/locales/trTR.d.ts +29 -0
- package/locales/trTR.js +32 -0
- package/locales/utils/getPickersLocalization.d.ts +10 -1
- package/locales/utils/pickersLocaleTextApi.d.ts +12 -2
- package/modern/CalendarPicker/CalendarPicker.js +88 -44
- package/modern/CalendarPicker/DayPicker.js +16 -4
- package/modern/CalendarPicker/PickersCalendarHeader.js +4 -7
- package/modern/CalendarPicker/useCalendarState.js +9 -9
- package/modern/ClockPicker/ClockPicker.js +21 -17
- package/modern/DatePicker/DatePicker.js +20 -7
- package/modern/DatePicker/shared.js +0 -2
- package/modern/DateTimePicker/DateTimePicker.js +15 -10
- package/modern/DateTimePicker/DateTimePickerTabs.js +4 -2
- package/modern/DateTimePicker/shared.js +0 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +14 -10
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +15 -10
- package/modern/DesktopTimePicker/DesktopTimePicker.js +8 -2
- package/modern/MobileDatePicker/MobileDatePicker.js +14 -10
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +15 -10
- package/modern/MobileTimePicker/MobileTimePicker.js +8 -2
- package/modern/MonthPicker/MonthPicker.js +18 -27
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +28 -17
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +30 -17
- package/modern/StaticTimePicker/StaticTimePicker.js +26 -10
- package/modern/TimePicker/TimePicker.js +11 -0
- package/modern/TimePicker/shared.js +4 -8
- package/modern/YearPicker/YearPicker.js +28 -47
- package/modern/index.js +3 -2
- package/modern/internals/components/KeyboardDateInput.js +4 -3
- package/modern/internals/components/PickerStaticWrapper/PickerStaticWrapper.js +76 -7
- package/modern/internals/components/PickerStaticWrapper/pickerStaticWrapperClasses.js +1 -1
- package/modern/internals/components/PureDateInput.js +7 -3
- package/modern/internals/hooks/useMaskedInput.js +32 -31
- package/modern/internals/hooks/useUtils.js +1 -3
- package/modern/internals/hooks/validation/models.js +1 -0
- package/modern/internals/hooks/validation/useDateTimeValidation.js +23 -11
- package/modern/internals/hooks/validation/useDateValidation.js +40 -13
- package/modern/internals/hooks/validation/useTimeValidation.js +18 -13
- package/modern/internals/hooks/validation/useValidation.js +7 -3
- package/modern/internals/utils/date-utils.js +4 -4
- package/modern/internals/utils/text-field-helper.js +29 -14
- package/modern/internals/utils/utils.js +0 -9
- package/modern/locales/deDE.js +31 -0
- package/modern/locales/enUS.js +20 -4
- package/modern/locales/frFR.js +21 -4
- package/modern/locales/index.js +5 -0
- package/modern/locales/nlNL.js +30 -0
- package/modern/locales/ptBR.js +30 -0
- package/modern/locales/svSE.js +30 -0
- package/modern/locales/trTR.js +32 -0
- package/node/CalendarPicker/CalendarPicker.js +88 -44
- package/node/CalendarPicker/DayPicker.js +17 -4
- package/node/CalendarPicker/PickersCalendarHeader.js +4 -7
- package/node/CalendarPicker/useCalendarState.js +8 -8
- package/node/ClockPicker/ClockPicker.js +21 -17
- package/node/DatePicker/DatePicker.js +20 -7
- package/node/DatePicker/shared.js +0 -2
- package/node/DateTimePicker/DateTimePicker.js +15 -10
- package/node/DateTimePicker/DateTimePickerTabs.js +5 -2
- package/node/DateTimePicker/shared.js +0 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +14 -10
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +15 -10
- package/node/DesktopTimePicker/DesktopTimePicker.js +8 -2
- package/node/MobileDatePicker/MobileDatePicker.js +14 -10
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +15 -10
- package/node/MobileTimePicker/MobileTimePicker.js +8 -2
- package/node/MonthPicker/MonthPicker.js +17 -26
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +28 -17
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +30 -17
- package/node/StaticTimePicker/StaticTimePicker.js +26 -10
- package/node/TimePicker/TimePicker.js +11 -0
- package/node/TimePicker/shared.js +3 -6
- package/node/YearPicker/YearPicker.js +27 -47
- package/node/index.js +33 -2
- package/node/internals/components/KeyboardDateInput.js +3 -3
- package/node/internals/components/PickerStaticWrapper/PickerStaticWrapper.js +76 -6
- package/node/internals/components/PickerStaticWrapper/pickerStaticWrapperClasses.js +1 -1
- package/node/internals/components/PureDateInput.js +5 -1
- package/node/internals/hooks/useMaskedInput.js +33 -33
- package/node/internals/hooks/useUtils.js +3 -1
- package/node/internals/hooks/validation/models.js +5 -0
- package/node/internals/hooks/validation/useDateTimeValidation.js +23 -11
- package/node/internals/hooks/validation/useDateValidation.js +50 -14
- package/node/internals/hooks/validation/useTimeValidation.js +18 -13
- package/node/internals/hooks/validation/useValidation.js +6 -2
- package/node/internals/utils/date-utils.js +4 -4
- package/node/internals/utils/text-field-helper.js +31 -16
- package/node/internals/utils/utils.js +0 -11
- package/node/locales/deDE.js +40 -0
- package/node/locales/enUS.js +18 -2
- package/node/locales/frFR.js +20 -3
- package/node/locales/index.js +65 -0
- package/node/locales/nlNL.js +39 -0
- package/node/locales/ptBR.js +39 -0
- package/node/locales/svSE.js +39 -0
- package/node/locales/trTR.js +41 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,238 @@
|
|
|
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
|
+
## v5.12.3
|
|
7
|
+
|
|
8
|
+
_Jun 23, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Add Swedish (sv-SE) locale on the data grid and the pickers (#5210) @mrxdst
|
|
13
|
+
- 🌍 Add Dutch (nl-NL) locale on the pickers (#5237) @DDukers
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
### `@mui/x-data-grid@v5.12.3` / `@mui/x-data-grid-pro@v5.12.3` / `@mui/x-data-grid-premium@v5.12.3`
|
|
18
|
+
|
|
19
|
+
#### Changes
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Do not hide non-hideable column when pressing Hide All button (#5298) @flaviendelangle
|
|
22
|
+
- [DataGrid] Do not regenerate the row tree when the `loading` prop changes (#5213) @flaviendelangle
|
|
23
|
+
- [DataGrid] Fix the default filter operator fallback on state initialization (#5266) @flaviendelangle
|
|
24
|
+
- [DataGrid] Stop using the deprecated `api` prop in the grid components (#5205) @flaviendelangle
|
|
25
|
+
- [DataGrid] Add Swedish (sv-SE) locale (#5210) @mrxdst
|
|
26
|
+
- [DataGridPremium] Fix detail panel on `DataGridPremium` (#5264) @flaviendelangle
|
|
27
|
+
- [DataGridPremium] Fix Excel import with Remix / Vite (#5207) @alexfauquette
|
|
28
|
+
- [DataGridPremium] Fix error with quick filter and grouping rows (#5238) @alexfauquette
|
|
29
|
+
|
|
30
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.7` / `@mui/x-date-pickers-pro@v5.0.0-alpha.7`
|
|
31
|
+
|
|
32
|
+
#### Changes
|
|
33
|
+
|
|
34
|
+
- [pickers] Export adapters from both `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` (#5204) @flaviendelangle
|
|
35
|
+
- [pickers] Add Dutch (nl-NL) locale (#5237) @DDukers
|
|
36
|
+
|
|
37
|
+
### Docs
|
|
38
|
+
|
|
39
|
+
- [docs] Add `DataGridPremium` to all API sections (#5196) @flaviendelangle
|
|
40
|
+
- [docs] Add plan badge next to event name in the Events page (#5200) @flaviendelangle
|
|
41
|
+
- [docs] Add section for theme augmentation in the picker docs (#5276) @flaviendelangle
|
|
42
|
+
- [docs] Add waiting for upvote section for row group panel (#5271) @flaviendelangle
|
|
43
|
+
- [docs] Disable ad on main demo page (#5301) @joserodolfofreitas
|
|
44
|
+
- [docs] Fix typo in the `DateRangePicker` documentation (#5259) @flaviendelangle
|
|
45
|
+
|
|
46
|
+
### Core
|
|
47
|
+
|
|
48
|
+
- [core] Allow having multiple playgrounds (#5288) @alexfauquette
|
|
49
|
+
- [core] Improve typing of `GridFilterInputMultipleSingleSelect` (#5206) @flaviendelangle
|
|
50
|
+
- [core] Remove arbitrary new lines (#5245) @oliviertassinari
|
|
51
|
+
- [core] Remove dead logic (#5282) @oliviertassinari
|
|
52
|
+
- [test] Fix `inputFormat` when testing with different date adapters (#5291) @cherniavskii
|
|
53
|
+
- [test] Fix date assertion in Safari 13 (#5221) @m4theushw
|
|
54
|
+
- [test] Throw if date adapter is not found (#5289) @cherniavskii
|
|
55
|
+
- [test] Use mock for `ResizeObserver` (#5215) @m4theushw
|
|
56
|
+
|
|
57
|
+
## v5.12.2
|
|
58
|
+
|
|
59
|
+
_Jun 16, 2022_
|
|
60
|
+
|
|
61
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
62
|
+
|
|
63
|
+
- 🚀 Performance improvement for dynamic row height (#5135) @m4theushw
|
|
64
|
+
- 🕒 Add demo of how to use the data grid with date pickers (#5053) @cherniavskii
|
|
65
|
+
- 📚 Documentation improvements
|
|
66
|
+
- 🐞 Bugfixes
|
|
67
|
+
|
|
68
|
+
### `@mui/x-data-grid@v5.12.2` / `@mui/x-data-grid-pro@v5.12.2` / `@mui/x-data-grid-premium@v5.12.2`
|
|
69
|
+
|
|
70
|
+
#### Changes
|
|
71
|
+
|
|
72
|
+
- [DataGrid] Fix for cosmetic bug on column filter badge (#5170) @simbahandiane
|
|
73
|
+
- [DataGrid] Hide vertical scrollbar if `autoHeight` is enabled (#5164) @m4theushw
|
|
74
|
+
- [DataGrid] Use exponential search to render non-measured rows (#5135) @m4theushw
|
|
75
|
+
- [DataGridPro] Fix label of the detail panel toggle column (#5191) @m4theushw
|
|
76
|
+
- [DataGridPro] Refresh detail panel caches when props change (#5110) @m4theushw
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add example with custom checkbox column (#5161) @flaviendelangle
|
|
81
|
+
- [docs] Batch small changes (#5177) @oliviertassinari
|
|
82
|
+
- [docs] Fix demo currency format (#5034) @oliviertassinari
|
|
83
|
+
- [docs] Fix outdated license description to match the EULA (#5219) @joserodolfofreitas
|
|
84
|
+
- [docs] Fix redundant headers (#5104) @oliviertassinari
|
|
85
|
+
- [docs] Fix some capitalization to match the guidelines (#5105) @oliviertassinari
|
|
86
|
+
- [docs] Improve the `getRowId` doc section (#5156) @flaviendelangle
|
|
87
|
+
- [docs] Instruction to deal with invalid license message (#5074) @joserodolfofreitas
|
|
88
|
+
- [docs] Use redirection in the code (#5114) @oliviertassinari
|
|
89
|
+
- [docs] Add demo of how to use the data grid with date pickers (#5053) @cherniavskii
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Improve inline code rendering within the details tag (#5166) @Harmouch101
|
|
94
|
+
- [core] Remove unused props from plugin typing (#5185) @flaviendelangle
|
|
95
|
+
- [core] Use the scrollbar size from `useGridDimensions` on `DataGridProColumnHeaders` (#5201) @flaviendelangle
|
|
96
|
+
- [core] Fix `GridColTypeDef` type (#5167) @cherniavskii
|
|
97
|
+
- [core] Fix `GridColTypeDef` usage in demo (#5197) @cherniavskii
|
|
98
|
+
- [test] Add `waitFor` before asserting height (#5203) @m4theushw
|
|
99
|
+
|
|
100
|
+
## v5.12.1
|
|
101
|
+
|
|
102
|
+
_Jun 9, 2022_
|
|
103
|
+
|
|
104
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
105
|
+
|
|
106
|
+
- 🎁 Add `reason` to `onFilterModelChange` (#4938) @m4theushw
|
|
107
|
+
- 🔎 Control quick filter input value via model prop (#5013) @alexfauquette
|
|
108
|
+
- 📚 Documentation improvements
|
|
109
|
+
- 🐞 Bugfixes
|
|
110
|
+
|
|
111
|
+
### `@mui/x-data-grid@v5.12.1` / `@mui/x-data-grid-pro@v5.12.1` / `@mui/x-data-grid-premium@v5.12.1`
|
|
112
|
+
|
|
113
|
+
#### Changes
|
|
114
|
+
|
|
115
|
+
- [DataGrid] Add `reason` to `onFilterModelChange` (#4938) @m4theushw
|
|
116
|
+
- [DataGrid] Restore focus after dismissing the column menu (#5027) @m4theushw
|
|
117
|
+
- [DataGrid] Update quick filter input when model is modified (#5013) @alexfauquette
|
|
118
|
+
- [DataGrid] Fix implicit dependency on react-dom (#5121) @oliviertassinari
|
|
119
|
+
- [DataGrid] Support `getRowId` in row reordering (#5093) @flaviendelangle
|
|
120
|
+
- [DataGridPro] Fix column resizing in RTL mode (#4989) @cherniavskii
|
|
121
|
+
- [DataGridPro] Fix column resizing on touchscreen (#5056) @cherniavskii
|
|
122
|
+
- [l10n] Update Japanese (ja-JP) locale (#5122) @hikotq
|
|
123
|
+
- [l10n] Update Russian (ru-RU) locale (#5069) @Artboomy
|
|
124
|
+
|
|
125
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.6` / `@mui/x-date-pickers-pro@v5.0.0-alpha.6`
|
|
126
|
+
|
|
127
|
+
#### Changes
|
|
128
|
+
|
|
129
|
+
- [pickers] Fix usage of `maxDate` / `minDate` / `disableFuture` and `disablePast` (#5081) @flaviendelangle
|
|
130
|
+
- [pickers] Infer mask from `inputFormat` (#5060) @alexfauquette
|
|
131
|
+
- [pickers] Manage input value without using the focus (#4486) @alexfauquette
|
|
132
|
+
- [pickers] Use new localization for doc examples (#5097) @flaviendelangle
|
|
133
|
+
- [pickers] Fix `shouldDisableDate` in range pickers (#5123) @flaviendelangle
|
|
134
|
+
- [l10n] Add Brazilian Portuguese (pt-BR) locale (#5100) @jardelnovaes
|
|
135
|
+
- [l10n] Use `localText` for remaining texts (#4986) @alexfauquette
|
|
136
|
+
|
|
137
|
+
### Docs
|
|
138
|
+
|
|
139
|
+
- [docs] Implement the focus management on data grid demo links (#5070) @alexfauquette
|
|
140
|
+
- [docs] Fix `301` link to render cell (#5106) @oliviertassinari
|
|
141
|
+
- [docs] Fix broken anchor link @oliviertassinari
|
|
142
|
+
- [docs] Improve movie dataset (#5142) @flaviendelangle
|
|
143
|
+
- [docs] Move all localization documentation in a unique page (#5072) @alexfauquette
|
|
144
|
+
- [docs] Section for overwriting core components i18n keys (#4998) @DanailH
|
|
145
|
+
- [docs] Small grammar and format fixes for Dynamic Row Height section (#5098) @samuelsycamore
|
|
146
|
+
|
|
147
|
+
### Core
|
|
148
|
+
|
|
149
|
+
- [core] Allows to run tests with different date adapters (#5055) @alexfauquette
|
|
150
|
+
- [core] Prettify the l10n issue (#4928) @alexfauquette
|
|
151
|
+
- [core] Set correct `apiRef` type in row reorder pre processors #5125 @DanailH
|
|
152
|
+
- [core] Stop using `GridEvents` in technical doc (#5157) @flaviendelangle
|
|
153
|
+
- [core] Upgrade monorepo (#5101) @oliviertassinari
|
|
154
|
+
- [test] Fix dynamic row height test failing on Chrome (#5147) @m4theushw
|
|
155
|
+
- [test] Remove delay on server demo for regression tests (#5131) @alexfauquette
|
|
156
|
+
|
|
157
|
+
## v5.12.0
|
|
158
|
+
|
|
159
|
+
_May 31, 2022_
|
|
160
|
+
|
|
161
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
162
|
+
|
|
163
|
+
- 🎁 Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/rows/#dynamic-row-height) (#4859) @m4theushw
|
|
164
|
+
|
|
165
|
+
<img src="https://user-images.githubusercontent.com/42154031/171183167-718d7bcd-ec0f-459e-97fe-0f650abb4a99.gif" width="800">
|
|
166
|
+
|
|
167
|
+
- ⚠️ Remove deprecated row grouping feature from `@mui/x-data-grid-pro`
|
|
168
|
+
|
|
169
|
+
Row grouping is available through the `@mui/x-data-grid-premium` package - see [Premium plan release blogpost](https://mui.com/blog/premium-plan-release/).
|
|
170
|
+
|
|
171
|
+
- 🐞 Bug fixes and improvements
|
|
172
|
+
|
|
173
|
+
### `@mui/x-data-grid@v5.12.0` / `@mui/x-data-grid-pro@v5.12.0` / `@mui/x-data-grid-premium@v5.12.0`
|
|
174
|
+
|
|
175
|
+
#### Changes
|
|
176
|
+
|
|
177
|
+
- [DataGrid] Support dynamic row height (#4859) @m4theushw
|
|
178
|
+
- [DataGrid] Add `onMenuOpen` and `onMenuClose` props (#4825) @DanailH
|
|
179
|
+
- [DataGrid] Add generics to `GridActionsColDef` to match `GridColDef` (#4982) @subvertallchris
|
|
180
|
+
- [DataGrid] Disable drag event handlers when row or column reorder are disabled (#4857) @DanailH
|
|
181
|
+
- [DataGrid] Allow other attempts to stop edit mode if the first failed (#5016) @m4theushw
|
|
182
|
+
- [DataGrid] Better reflect the dependency on Material UI (#4795) @oliviertassinari
|
|
183
|
+
- [DataGrid] Add an id to the filter item created when opening the filter panel (#5014) @flaviendelangle
|
|
184
|
+
- [DataGrid] Use column visibility model on Hide All / Show All when enabled (#5050) @flaviendelangle
|
|
185
|
+
- [DataGridPro] Unpin columns back to original position (#4512) @m4theushw
|
|
186
|
+
- [DataGridPro] Remove experimental row grouping from Pro plan (#4949) @flaviendelangle
|
|
187
|
+
- [DataGridPro] Allow to scroll detail panel content if it overflows the panel (#4979) @cherniavskii
|
|
188
|
+
- [DataGridPro] Do not call `setRowIndex` when dragging a column over a row (#4987) @flaviendelangle
|
|
189
|
+
- [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
|
|
190
|
+
- [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
|
|
191
|
+
|
|
192
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.5` / `@mui/x-date-pickers-pro@v5.0.0-alpha.5`
|
|
193
|
+
|
|
194
|
+
#### Breaking changes
|
|
195
|
+
|
|
196
|
+
- [pickers] Restructure props in `MonthPicker` / `YearPicker` and `DayPicker` (#4814) @flaviendelangle
|
|
197
|
+
|
|
198
|
+
The props of `MonthPicker` / `YearPicker` and `DayPicker` have been reworked to make them more consistent for a standalone usage (#4814) @flaviendelangle
|
|
199
|
+
|
|
200
|
+
**MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change
|
|
201
|
+
|
|
202
|
+
**YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change
|
|
203
|
+
|
|
204
|
+
**DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`)
|
|
205
|
+
|
|
206
|
+
#### Changes
|
|
207
|
+
|
|
208
|
+
- [pickers] Add German (de-DE) translations (#4974) @felixh10r
|
|
209
|
+
- [pickers] Support action bar on static pickers and improve typing (#5015) @flaviendelangle
|
|
210
|
+
|
|
211
|
+
### Docs
|
|
212
|
+
|
|
213
|
+
- [docs] Add docs sections / pages for upcoming features on pickers (#4603) @flaviendelangle
|
|
214
|
+
- [docs] Add docs for filter panel components (#4919) @m4theushw
|
|
215
|
+
- [docs] Explain how to manage focus with `renderCell` (#4254) @alexfauquette
|
|
216
|
+
- [docs] Fix broken links to GitHub source (#5003) @Edwardveb
|
|
217
|
+
- [docs] Fix navigation links (#4956) @oliviertassinari
|
|
218
|
+
- [docs] Fix typo on rows docs (#4952) @jamesRadicl
|
|
219
|
+
- [docs] New WAI-ARIA guidelines location (#4957) @oliviertassinari
|
|
220
|
+
- [docs] Add "Slots" section to the right nav in the API pages (#4993) @DanailH
|
|
221
|
+
- [docs] Fix docs feedback widget not working (#4905) @cherniavskii
|
|
222
|
+
- [docs] Replace custom notes and warning with callouts (#5008) @flaviendelangle
|
|
223
|
+
|
|
224
|
+
### Core
|
|
225
|
+
|
|
226
|
+
- [core] Avoid Order ID to refer to GitHub issues/PRs (#5005) @oliviertassinari
|
|
227
|
+
- [core] Improve the workflow for incomplete issues (#5012) @mnajdova
|
|
228
|
+
- [core] Remove dead code on row grouping tree creation (#4945) @flaviendelangle
|
|
229
|
+
- [core] Use new cache api for the row grouping last model tracking (#4980) @flaviendelangle
|
|
230
|
+
- [core] Ensure that PRs have atleast 1 label (#5011) @DanailH
|
|
231
|
+
- [core] Fix trailing-space @oliviertassinari
|
|
232
|
+
- [core] Stop Renovate PR updates when PR is on hold (#5020) @cherniavskii
|
|
233
|
+
- [license] Remove support for UTF-8 (#4893) @oliviertassinari
|
|
234
|
+
- [license] Tweak error messages (#4907) @mbrookes
|
|
235
|
+
- [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
|
|
236
|
+
- [test] Make argos screenshots stable (#5061) @m4theushw
|
|
237
|
+
|
|
6
238
|
## v5.11.1
|
|
7
239
|
|
|
8
240
|
_May 20, 2022_
|
|
@@ -30,7 +262,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
30
262
|
- [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
|
|
31
263
|
- [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
|
|
32
264
|
|
|
33
|
-
### `@mui/x-date-pickers@
|
|
265
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.4` / `@mui/x-date-pickers-pro@v5.0.0-alpha.4`
|
|
34
266
|
|
|
35
267
|
#### Breaking changes
|
|
36
268
|
|
|
@@ -38,30 +270,28 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
38
270
|
|
|
39
271
|
To decide which button must be displayed and in which order, you can now use the `actions` prop of the `actionBar` component slot props.
|
|
40
272
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
273
|
+
```jsx
|
|
274
|
+
<DatePicker
|
|
275
|
+
componentsProps={{
|
|
276
|
+
actionBar: {
|
|
277
|
+
// The actions will be the same between desktop and mobile
|
|
278
|
+
actions: ['clear'],
|
|
47
279
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
280
|
+
// The actions will be different between desktop and mobile
|
|
281
|
+
actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
|
|
282
|
+
},
|
|
283
|
+
}}
|
|
284
|
+
/>
|
|
285
|
+
```
|
|
54
286
|
|
|
55
287
|
The build-in `ActionBar` component supports 4 different actions: `'clear'`, `'cancel'`, `'accept'`, and `'today'`.
|
|
56
288
|
By default, the pickers will render the cancel and accept button on mobile and no action on desktop.
|
|
57
289
|
|
|
58
290
|
If you need other actions, you can provide your own component to the `ActionBar` component slot
|
|
59
291
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/>
|
|
64
|
-
```
|
|
292
|
+
```jsx
|
|
293
|
+
<DatePicker components={{ ActionBar: CustomActionBar }} />
|
|
294
|
+
```
|
|
65
295
|
|
|
66
296
|
#### Changes
|
|
67
297
|
|
|
@@ -121,7 +351,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
121
351
|
|
|
122
352
|
- 👔 **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
|
|
123
353
|
|
|
124
|
-
- 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](
|
|
354
|
+
- 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter).
|
|
125
355
|
|
|
126
356
|
<img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
|
|
127
357
|
|
|
@@ -157,7 +387,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
157
387
|
- [l10n] Improve German (de-DE) locale (#4748) @sebastianfrey
|
|
158
388
|
- [l10n] Improve German (de-DE) locale (#4668) @izu-co
|
|
159
389
|
|
|
160
|
-
### `@mui/x-date-pickers@
|
|
390
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.3` / `@mui/x-date-pickers-pro@v5.0.0-alpha.3`
|
|
161
391
|
|
|
162
392
|
#### Breaking changes
|
|
163
393
|
|
|
@@ -258,7 +488,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
258
488
|
- [DataGrid] Don't close column menu when updating rows (#4498) @m4theushw
|
|
259
489
|
- [DataGridPro] Introduce row reorder (#4034) @DanailH
|
|
260
490
|
|
|
261
|
-
### `@mui/x-date-pickers@
|
|
491
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.2` / `@mui/x-date-pickers-pro@v5.0.0-alpha.2`
|
|
262
492
|
|
|
263
493
|
- [pickers] Pass `PaperProps` to `DesktopWrapper` component (#4584) @alexfauquette
|
|
264
494
|
- [TimePicker] Fix bug when time picker clear value (#4582) @alexfauquette
|
|
@@ -319,7 +549,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
319
549
|
- [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
|
|
320
550
|
- [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
|
|
321
551
|
|
|
322
|
-
### `@mui/x-date-pickers@
|
|
552
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.1` / `@mui/x-date-pickers-pro@v5.0.0-alpha.1`
|
|
323
553
|
|
|
324
554
|
- [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle
|
|
325
555
|
- [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle
|
|
@@ -3948,9 +4178,9 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3948
4178
|
|
|
3949
4179
|
### Docs
|
|
3950
4180
|
|
|
3951
|
-
- [docs] Data
|
|
4181
|
+
- [docs] Data grid depends on side effects (#666) @oliviertassinari
|
|
3952
4182
|
- [docs] Clarify the purpose of x-grid-data-generator (#634) @Elius94
|
|
3953
|
-
- [docs] Data
|
|
4183
|
+
- [docs] Data grid is in the lab (#612) @oliviertassinari
|
|
3954
4184
|
- [docs] Fix Demo app, downgrade webpack-cli, known issue in latest version (#647) @dtassone
|
|
3955
4185
|
- [docs] Fix typo in columns.md @stojy
|
|
3956
4186
|
- [docs] Reduce confusion on /export page (#646) @SerdarMustafa1
|
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ExportedMonthPickerProps } from '../MonthPicker/MonthPicker';
|
|
3
2
|
import { ExportedDayPickerProps } from './DayPicker';
|
|
4
3
|
import { PickerOnChangeFn } from '../internals/hooks/useViews';
|
|
5
4
|
import { ExportedCalendarHeaderProps, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps } from './PickersCalendarHeader';
|
|
6
|
-
import { ExportedYearPickerProps } from '../YearPicker/YearPicker';
|
|
7
5
|
import { CalendarPickerView } from '../internals/models';
|
|
8
6
|
import { CalendarPickerClasses } from './calendarPickerClasses';
|
|
7
|
+
import { MonthValidationProps, YearValidationProps } from '../internals/hooks/validation/models';
|
|
9
8
|
export interface CalendarPickerSlotsComponent extends PickersCalendarHeaderSlotsComponent {
|
|
10
9
|
}
|
|
11
10
|
export interface CalendarPickerSlotsComponentsProps extends PickersCalendarHeaderSlotsComponentsProps {
|
|
12
11
|
}
|
|
13
|
-
export interface CalendarPickerProps<TDate> extends ExportedDayPickerProps<TDate>,
|
|
12
|
+
export interface CalendarPickerProps<TDate> extends ExportedDayPickerProps<TDate>, YearValidationProps<TDate>, MonthValidationProps<TDate>, ExportedCalendarHeaderProps<TDate> {
|
|
14
13
|
className?: string;
|
|
15
14
|
classes?: Partial<CalendarPickerClasses>;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
18
|
-
* Either a string to use an HTML element or a component.
|
|
16
|
+
* Overrideable components.
|
|
19
17
|
* @default {}
|
|
20
18
|
*/
|
|
21
19
|
components?: Partial<CalendarPickerSlotsComponent>;
|
|
22
20
|
/**
|
|
23
|
-
* The props used for each slot
|
|
21
|
+
* The props used for each component slot.
|
|
24
22
|
* @default {}
|
|
25
23
|
*/
|
|
26
24
|
componentsProps?: Partial<CalendarPickerSlotsComponentsProps>;
|
|
@@ -34,22 +32,6 @@ export interface CalendarPickerProps<TDate> extends ExportedDayPickerProps<TDate
|
|
|
34
32
|
* @default false
|
|
35
33
|
*/
|
|
36
34
|
disabled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
disableFuture?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
disablePast?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Max selectable date. @DateIOType
|
|
47
|
-
*/
|
|
48
|
-
maxDate?: TDate;
|
|
49
|
-
/**
|
|
50
|
-
* Min selectable date. @DateIOType
|
|
51
|
-
*/
|
|
52
|
-
minDate?: TDate;
|
|
53
35
|
/**
|
|
54
36
|
* Callback fired on view change.
|
|
55
37
|
* @param {CalendarPickerView} view The new view.
|
|
@@ -80,13 +62,6 @@ export interface CalendarPickerProps<TDate> extends ExportedDayPickerProps<TDate
|
|
|
80
62
|
* @default () => <span data-mui-test="loading-progress">...</span>
|
|
81
63
|
*/
|
|
82
64
|
renderLoading?: () => React.ReactNode;
|
|
83
|
-
/**
|
|
84
|
-
* Disable specific date. @DateIOType
|
|
85
|
-
* @template TDate
|
|
86
|
-
* @param {TDate} day The date to check.
|
|
87
|
-
* @returns {boolean} If `true` the day will be disabled.
|
|
88
|
-
*/
|
|
89
|
-
shouldDisableDate?: (day: TDate) => boolean;
|
|
90
65
|
/**
|
|
91
66
|
* Controlled open view.
|
|
92
67
|
*/
|
|
@@ -96,8 +71,21 @@ export interface CalendarPickerProps<TDate> extends ExportedDayPickerProps<TDate
|
|
|
96
71
|
* @default ['year', 'day']
|
|
97
72
|
*/
|
|
98
73
|
views?: readonly CalendarPickerView[];
|
|
74
|
+
/**
|
|
75
|
+
* Callback firing on year change @DateIOType.
|
|
76
|
+
* @template TDate
|
|
77
|
+
* @param {TDate} year The new year.
|
|
78
|
+
*/
|
|
79
|
+
onYearChange?: (year: TDate) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Callback firing on month change @DateIOType.
|
|
82
|
+
* @template TDate
|
|
83
|
+
* @param {TDate} month The new month.
|
|
84
|
+
* @returns {void|Promise} -
|
|
85
|
+
*/
|
|
86
|
+
onMonthChange?: (month: TDate) => void | Promise<void>;
|
|
99
87
|
}
|
|
100
|
-
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes'>;
|
|
88
|
+
export declare type ExportedCalendarPickerProps<TDate> = Omit<CalendarPickerProps<TDate>, 'date' | 'view' | 'views' | 'openTo' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes' | 'components' | 'componentsProps'>;
|
|
101
89
|
declare type CalendarPickerComponent = (<TDate>(props: CalendarPickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
102
90
|
propTypes?: any;
|
|
103
91
|
};
|