@mui/x-date-pickers 7.2.0 → 7.3.2
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/AdapterDateFnsBase/AdapterDateFnsBase.d.ts +1 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +1 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +1 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +1 -1
- package/AdapterMoment/AdapterMoment.d.ts +1 -1
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +1 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +1 -1
- package/CHANGELOG.md +280 -7
- package/DateCalendar/DateCalendar.js +1 -2
- package/DateCalendar/DayCalendar.js +1 -2
- package/DateCalendar/useCalendarState.d.ts +1 -3
- package/DatePicker/DatePicker.js +1 -1
- package/DatePicker/shared.d.ts +1 -1
- package/DateTimePicker/DateTimePicker.js +1 -1
- package/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/DateTimePicker/DateTimePickerToolbar.js +1 -2
- package/DateTimePicker/shared.d.ts +1 -1
- package/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -3
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
- package/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/MobileDatePicker/MobileDatePicker.js +1 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/MobileTimePicker/MobileTimePicker.js +1 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
- package/PickersLayout/PickersLayout.js +1 -2
- package/PickersSectionList/PickersSectionList.js +1 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
- package/PickersTextField/PickersTextField.js +1 -2
- package/StaticDatePicker/StaticDatePicker.js +1 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/StaticTimePicker/StaticTimePicker.js +1 -1
- package/TimeClock/Clock.js +1 -2
- package/TimeClock/ClockNumbers.d.ts +1 -1
- package/TimeClock/TimeClock.js +1 -2
- package/TimePicker/TimePicker.js +1 -1
- package/TimePicker/TimePickerToolbar.js +1 -2
- package/TimePicker/shared.d.ts +1 -1
- package/hooks/useClearableField.js +1 -2
- package/icons/index.js +1 -2
- package/index.js +1 -1
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
- package/internals/components/PickersToolbar.js +1 -2
- package/internals/demo/DemoContainer.js +1 -2
- package/internals/hooks/defaultizedFieldProps.d.ts +3 -3
- package/internals/hooks/useClockReferenceDate.d.ts +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
- package/internals/hooks/useField/useField.utils.d.ts +13 -13
- package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
- package/internals/hooks/usePicker/usePickerViews.d.ts +1 -1
- package/internals/utils/date-time-utils.d.ts +2 -2
- package/internals/utils/date-utils.d.ts +10 -10
- package/internals/utils/getDefaultReferenceDate.d.ts +2 -3
- package/internals/utils/time-utils.d.ts +6 -6
- package/internals/utils/utils.d.ts +1 -1
- package/locales/caES.js +26 -30
- package/locales/esES.js +21 -24
- package/locales/heIL.js +14 -17
- package/locales/huHU.js +15 -18
- package/modern/DateCalendar/DateCalendar.js +1 -2
- package/modern/DateCalendar/DayCalendar.js +1 -2
- package/modern/DatePicker/DatePicker.js +1 -1
- package/modern/DateTimePicker/DateTimePicker.js +1 -1
- package/modern/DateTimePicker/DateTimePickerTabs.js +1 -2
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -2
- package/modern/DesktopDatePicker/DesktopDatePicker.js +1 -1
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -3
- package/modern/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -2
- package/modern/DesktopTimePicker/DesktopTimePicker.js +1 -1
- package/modern/MobileDatePicker/MobileDatePicker.js +1 -1
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +1 -1
- package/modern/MobileTimePicker/MobileTimePicker.js +1 -1
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +1 -2
- package/modern/PickersLayout/PickersLayout.js +1 -2
- package/modern/PickersSectionList/PickersSectionList.js +1 -2
- package/modern/PickersTextField/PickersInputBase/PickersInputBase.js +1 -2
- package/modern/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -2
- package/modern/PickersTextField/PickersTextField.js +1 -2
- package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
- package/modern/StaticTimePicker/StaticTimePicker.js +1 -1
- package/modern/TimeClock/Clock.js +1 -2
- package/modern/TimeClock/TimeClock.js +1 -2
- package/modern/TimePicker/TimePicker.js +1 -1
- package/modern/TimePicker/TimePickerToolbar.js +1 -2
- package/modern/hooks/useClearableField.js +1 -2
- package/modern/icons/index.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -2
- package/modern/internals/components/PickersToolbar.js +1 -2
- package/modern/internals/demo/DemoContainer.js +1 -2
- package/modern/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -2
- package/modern/internals/hooks/useMobilePicker/useMobilePicker.js +1 -2
- package/modern/locales/caES.js +26 -30
- package/modern/locales/esES.js +21 -24
- package/modern/locales/heIL.js +14 -17
- package/modern/locales/huHU.js +15 -18
- package/node/DateCalendar/DateCalendar.js +1 -1
- package/node/DateCalendar/DayCalendar.js +1 -1
- package/node/DateCalendar/PickersFadeTransitionGroup.js +1 -1
- package/node/DateCalendar/PickersSlideTransition.js +1 -1
- package/node/DateCalendar/useCalendarState.js +1 -1
- package/node/DateCalendar/useIsDateDisabled.js +1 -1
- package/node/DateField/DateField.js +1 -1
- package/node/DatePicker/DatePicker.js +2 -2
- package/node/DatePicker/DatePickerToolbar.js +1 -1
- package/node/DatePicker/shared.js +1 -1
- package/node/DateTimeField/DateTimeField.js +1 -1
- package/node/DateTimePicker/DateTimePicker.js +2 -2
- package/node/DateTimePicker/DateTimePickerTabs.js +1 -1
- package/node/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/node/DateTimePicker/shared.js +1 -1
- package/node/DayCalendarSkeleton/DayCalendarSkeleton.js +1 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +2 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -2
- package/node/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -1
- package/node/DesktopTimePicker/DesktopTimePicker.js +2 -2
- package/node/DigitalClock/DigitalClock.js +1 -1
- package/node/LocalizationProvider/LocalizationProvider.js +1 -1
- package/node/MobileDatePicker/MobileDatePicker.js +2 -2
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +2 -2
- package/node/MobileTimePicker/MobileTimePicker.js +2 -2
- package/node/MonthCalendar/MonthCalendar.js +1 -1
- package/node/MonthCalendar/PickersMonth.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -1
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
- package/node/PickersActionBar/PickersActionBar.js +1 -1
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/PickersLayout/PickersLayout.js +1 -1
- package/node/PickersLayout/usePickerLayout.js +1 -1
- package/node/PickersSectionList/PickersSectionList.js +1 -1
- package/node/PickersShortcuts/PickersShortcuts.js +1 -1
- package/node/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
- package/node/PickersTextField/PickersInput/PickersInput.js +1 -1
- package/node/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/Outline.js +1 -1
- package/node/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
- package/node/PickersTextField/PickersTextField.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +2 -2
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +2 -2
- package/node/StaticTimePicker/StaticTimePicker.js +2 -2
- package/node/TimeClock/Clock.js +1 -1
- package/node/TimeClock/ClockNumber.js +1 -1
- package/node/TimeClock/ClockNumbers.js +1 -1
- package/node/TimeClock/ClockPointer.js +1 -1
- package/node/TimeClock/TimeClock.js +1 -1
- package/node/TimeField/TimeField.js +1 -1
- package/node/TimePicker/TimePicker.js +2 -2
- package/node/TimePicker/TimePickerToolbar.js +1 -1
- package/node/TimePicker/shared.js +1 -1
- package/node/YearCalendar/PickersYear.js +1 -1
- package/node/YearCalendar/YearCalendar.js +1 -1
- package/node/dateViewRenderers/dateViewRenderers.js +1 -1
- package/node/hooks/useClearableField.js +1 -1
- package/node/icons/index.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -1
- package/node/internals/components/PickersModalDialog.js +1 -1
- package/node/internals/components/PickersPopper.js +1 -1
- package/node/internals/components/PickersToolbar.js +1 -1
- package/node/internals/components/PickersToolbarButton.js +1 -1
- package/node/internals/components/PickersToolbarText.js +1 -1
- package/node/internals/demo/DemoContainer.js +1 -1
- package/node/internals/hooks/date-helpers-hooks.js +1 -1
- package/node/internals/hooks/useClockReferenceDate.js +1 -1
- package/node/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -1
- package/node/internals/hooks/useField/useField.js +1 -1
- package/node/internals/hooks/useField/useFieldCharacterEditing.js +1 -1
- package/node/internals/hooks/useField/useFieldState.js +1 -1
- package/node/internals/hooks/useField/useFieldV6TextField.js +1 -1
- package/node/internals/hooks/useField/useFieldV7TextField.js +1 -1
- package/node/internals/hooks/useIsLandscape.js +1 -1
- package/node/internals/hooks/useMobilePicker/useMobilePicker.js +1 -1
- package/node/internals/hooks/useOpenState.js +1 -1
- package/node/internals/hooks/usePicker/usePickerValue.js +1 -1
- package/node/internals/hooks/usePicker/usePickerViews.js +1 -1
- package/node/internals/hooks/useStaticPicker/useStaticPicker.js +1 -1
- package/node/internals/hooks/useUtils.js +1 -1
- package/node/internals/hooks/useValidation.js +1 -1
- package/node/internals/hooks/useValueWithTimezone.js +1 -1
- package/node/internals/hooks/useViews.js +1 -1
- package/node/locales/caES.js +26 -30
- package/node/locales/esES.js +21 -24
- package/node/locales/heIL.js +14 -17
- package/node/locales/huHU.js +15 -18
- package/node/timeViewRenderers/timeViewRenderers.js +1 -1
- package/package.json +3 -5
- package/timeViewRenderers/timeViewRenderers.d.ts +1 -1
- package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.d.ts +0 -2
- package/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
- package/internals/components/DateTimeViewWrapper/index.d.ts +0 -1
- package/internals/components/DateTimeViewWrapper/index.js +0 -1
- package/modern/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -5
- package/modern/internals/components/DateTimeViewWrapper/index.js +0 -1
- package/node/internals/components/DateTimeViewWrapper/DateTimeViewWrapper.js +0 -11
- package/node/internals/components/DateTimeViewWrapper/index.js +0 -12
|
@@ -54,7 +54,7 @@ export declare class AdapterDateFnsBase<DateFnsLocale extends DateFnsLocaleBase>
|
|
|
54
54
|
};
|
|
55
55
|
longFormatters: DateFnsAdapterBaseOptions<DateFnsLocale>['longFormatters'];
|
|
56
56
|
constructor(props: DateFnsAdapterBaseOptions<DateFnsLocale>);
|
|
57
|
-
date: <T extends string | null | undefined>(value?: T
|
|
57
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Date>;
|
|
58
58
|
getInvalidDate: () => Date;
|
|
59
59
|
getTimezone: () => string;
|
|
60
60
|
setTimezone: (value: Date) => Date;
|
|
@@ -44,7 +44,7 @@ export declare class AdapterDateFnsJalali implements MuiPickersAdapter<Date, Dat
|
|
|
44
44
|
end: string;
|
|
45
45
|
};
|
|
46
46
|
constructor({ locale, formats }?: AdapterOptions<DateFnsLocale, never>);
|
|
47
|
-
date: <T extends string | null | undefined>(value?: T
|
|
47
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Date>;
|
|
48
48
|
getInvalidDate: () => Date;
|
|
49
49
|
getTimezone: () => string;
|
|
50
50
|
setTimezone: (value: Date) => Date;
|
|
@@ -63,7 +63,7 @@ export declare class AdapterDayjs implements MuiPickersAdapter<Dayjs, string> {
|
|
|
63
63
|
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
64
64
|
*/
|
|
65
65
|
private adjustOffset;
|
|
66
|
-
date: <T extends string | null | undefined>(value?: T
|
|
66
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, Dayjs>;
|
|
67
67
|
getInvalidDate: () => defaultDayjs.Dayjs;
|
|
68
68
|
getTimezone: (value: Dayjs) => string;
|
|
69
69
|
setTimezone: (value: Dayjs, timezone: PickersTimezone) => Dayjs;
|
|
@@ -43,7 +43,7 @@ export declare class AdapterLuxon implements MuiPickersAdapter<DateTime, string>
|
|
|
43
43
|
formatTokenMap: FieldFormatTokenMap;
|
|
44
44
|
constructor({ locale, formats }?: AdapterOptions<string, never>);
|
|
45
45
|
private setLocaleToValue;
|
|
46
|
-
date: <T extends string | null | undefined>(value?: T
|
|
46
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, DateTime>;
|
|
47
47
|
getInvalidDate: () => DateTime<true> | DateTime<false>;
|
|
48
48
|
getTimezone: (value: DateTime) => string;
|
|
49
49
|
setTimezone: (value: DateTime, timezone: PickersTimezone) => DateTime;
|
|
@@ -48,7 +48,7 @@ export declare class AdapterMoment implements MuiPickersAdapter<Moment, string>
|
|
|
48
48
|
private createSystemDate;
|
|
49
49
|
private createUTCDate;
|
|
50
50
|
private createTZDate;
|
|
51
|
-
date: <T extends string | null | undefined>(value?: T
|
|
51
|
+
date: <T extends string | null | undefined>(value?: T, timezone?: PickersTimezone) => DateBuilderReturnType<T, Moment>;
|
|
52
52
|
getInvalidDate: () => defaultMoment.Moment;
|
|
53
53
|
getTimezone: (value: Moment) => string;
|
|
54
54
|
setTimezone: (value: Moment, timezone: PickersTimezone) => Moment;
|
|
@@ -37,7 +37,7 @@ export declare class AdapterMomentHijri extends AdapterMoment implements MuiPick
|
|
|
37
37
|
isTimezoneCompatible: boolean;
|
|
38
38
|
formatTokenMap: FieldFormatTokenMap;
|
|
39
39
|
constructor({ formats, instance }?: AdapterOptions<string, typeof defaultHMoment>);
|
|
40
|
-
date: <T extends string | null | undefined>(value?: T
|
|
40
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Moment>;
|
|
41
41
|
getTimezone: () => string;
|
|
42
42
|
setTimezone: (value: Moment) => Moment;
|
|
43
43
|
parse: (value: string, format: string) => defaultHMoment.Moment | null;
|
|
@@ -37,7 +37,7 @@ export declare class AdapterMomentJalaali extends AdapterMoment implements MuiPi
|
|
|
37
37
|
moment: typeof defaultJMoment;
|
|
38
38
|
formatTokenMap: FieldFormatTokenMap;
|
|
39
39
|
constructor({ formats, instance }?: AdapterOptions<string, typeof defaultJMoment>);
|
|
40
|
-
date: <T extends string | null | undefined>(value?: T
|
|
40
|
+
date: <T extends string | null | undefined>(value?: T) => DateBuilderReturnType<T, Moment>;
|
|
41
41
|
getTimezone: () => string;
|
|
42
42
|
setTimezone: (value: Moment) => Moment;
|
|
43
43
|
parse: (value: string, format: string) => defaultJMoment.Moment | null;
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,229 @@
|
|
|
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.3.2
|
|
7
|
+
|
|
8
|
+
_May 2, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add "no data" and "loading" states to charts, allowing users to create [custom visualizations for each state](https://mui.com/x/react-charts/styling/#overlay)
|
|
13
|
+
- 🌍 Improve Hebrew (he-IL) and Hungarian (hu-HU) locales on the Date and Time Pickers
|
|
14
|
+
- 🌍 Improve Danish (da-DK) and Slovak (sk-SK) locales on the Data Grid
|
|
15
|
+
- 📝 Fix a [typo](https://github.com/mui/mui-x/pull/12941/files/4bf4bffbc2799a01a96bc7458a17318cf41c1722#diff-26c31cc69d6f51110f89e339578ef9b3d4a3551f79077fff73f7babb81c5099f) in the auto-generated Charts gradient `id` attribute.
|
|
16
|
+
It should not affect you, but if you were relying on the gradient `id` attribute, please update your usage.
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
- 📚 Documentation improvements
|
|
19
|
+
|
|
20
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid@7.3.2`
|
|
25
|
+
|
|
26
|
+
- [DataGrid] Allow to change reset text in the columns management panel (#12972) @MBilalShafi
|
|
27
|
+
- [DataGrid] Derive `formattedValue` from the edit value when passing to `renderEditCell` (#12870) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix rows not being recomputed on `props.rowCount` change (#12833) @MBilalShafi
|
|
29
|
+
- [l10n] Improve Danish (da-DK) locale (#12844) @fosterbuster
|
|
30
|
+
- [l10n] Improve Slovak (sk-SK) locale (#12949) @stefikp
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-pro@7.3.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid@7.3.2`.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@7.3.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.2`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPremium] Fix print export not working with row grouping (#12957) @MBilalShafi
|
|
41
|
+
|
|
42
|
+
### Date and Time Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@7.3.2`
|
|
45
|
+
|
|
46
|
+
- [l10n] Improve Hebrew (he-IL) locale (#12910) @michaelNXT1
|
|
47
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#12930) @noherczeg
|
|
48
|
+
- [pickers] Fix typo on the `viewRenderers` prop description (#12915) @flaviendelangle
|
|
49
|
+
- [pickers] Improve TypeScript performance in `PickersDay` (#12920) @flaviendelangle
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@7.3.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@7.3.2`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@7.3.2`
|
|
58
|
+
|
|
59
|
+
- [charts] Add an overlay for "no data" or "loading" states (#12817) @alexfauquette
|
|
60
|
+
- [charts] Fix typos in documentation, translations and errors (#12941) @JCQuintas
|
|
61
|
+
- [charts] Fix `prop.slots` and `prop.slotProps` not passed to `<ChartsTooltip />` (#12939) @JCQuintas
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Improve Data Grid migration guide (#12969) @MBilalShafi
|
|
66
|
+
- [docs] Polish references to the plans (#12922) @oliviertassinari
|
|
67
|
+
|
|
68
|
+
### Core
|
|
69
|
+
|
|
70
|
+
- [core] Fix dependencies (#12951) @LukasTy
|
|
71
|
+
- [core] Remove inconsistent blank lines (#12966) @oliviertassinari
|
|
72
|
+
- [code-infra] Bump node image used by CI in docker (#12961) @LukasTy
|
|
73
|
+
- [docs-infra] Remove no longer needed `next.config` settings (#12861) @oliviertassinari
|
|
74
|
+
- [docs-infra] Use the `@mui/docs/HighlightedCode` (#12848) @alexfauquette
|
|
75
|
+
- [test] Restore `t` command (#12948) @LukasTy
|
|
76
|
+
|
|
77
|
+
## 7.3.1
|
|
78
|
+
|
|
79
|
+
_Apr 26, 2024_
|
|
80
|
+
|
|
81
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
82
|
+
|
|
83
|
+
- 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
|
|
84
|
+
- 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
|
|
85
|
+
- 🐞 Bugfixes
|
|
86
|
+
- 📚 Documentation improvements
|
|
87
|
+
|
|
88
|
+
### Data Grid
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-data-grid@7.3.1`
|
|
91
|
+
|
|
92
|
+
- [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
|
|
93
|
+
- [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
|
|
94
|
+
- [DataGrid] Fix group header resize (#12863) @arminmeh
|
|
95
|
+
- [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-data-grid-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-data-grid@7.3.1`.
|
|
100
|
+
|
|
101
|
+
#### `@mui/x-data-grid-premium@7.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
102
|
+
|
|
103
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.1`.
|
|
104
|
+
|
|
105
|
+
### Date and Time Pickers
|
|
106
|
+
|
|
107
|
+
#### `@mui/x-date-pickers@7.3.1`
|
|
108
|
+
|
|
109
|
+
- [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
|
|
110
|
+
- [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-date-pickers-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
115
|
+
|
|
116
|
+
### Charts
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-charts@7.3.1`
|
|
119
|
+
|
|
120
|
+
- [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
|
|
121
|
+
- [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
|
|
122
|
+
- [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
|
|
123
|
+
- [charts] Improve default tooltip content (#12257) @oliviertassinari
|
|
124
|
+
- [charts] Round y values for bar chart (#12846) @alexfauquette
|
|
125
|
+
|
|
126
|
+
### Tree View
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-tree-view@7.3.1`
|
|
129
|
+
|
|
130
|
+
- [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
|
|
131
|
+
- [TreeView] Rework the selection internals (#12703) @flaviendelangle
|
|
132
|
+
- [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
|
|
133
|
+
|
|
134
|
+
### Docs
|
|
135
|
+
|
|
136
|
+
- [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
|
|
137
|
+
- [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
|
|
138
|
+
- [docs] Document interfaces for charts (#12656) @alexfauquette
|
|
139
|
+
- [docs] Fix Vale regression (#12862) @oliviertassinari
|
|
140
|
+
- [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
|
|
141
|
+
- [docs] Update Column features availability (#12865) @DanailH
|
|
142
|
+
|
|
143
|
+
### Core
|
|
144
|
+
|
|
145
|
+
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
146
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
147
|
+
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
148
|
+
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
149
|
+
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
150
|
+
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
151
|
+
- [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
|
|
152
|
+
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
153
|
+
|
|
154
|
+
## 7.3.0
|
|
155
|
+
|
|
156
|
+
_Apr 18, 2024_
|
|
157
|
+
|
|
158
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
159
|
+
|
|
160
|
+
- 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
|
|
161
|
+
- 🎨 Support color scales in Charts (#12490) @alexfauquette
|
|
162
|
+
Add a [`colorMap` configuration](https://mui.com/x/react-charts/styling/#values-color) to an axis, and the chart will use it to select colors.
|
|
163
|
+
Each impacted chart ([bar charts](https://mui.com/x/react-charts/bars/#color-scale), [line charts](https://mui.com/x/react-charts/lines/#color-scale), [scatter charts](https://mui.com/x/react-charts/scatter/#color-scale)) has a dedicated section explaining how this color map is impacting it.
|
|
164
|
+
|
|
165
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
|
|
166
|
+
|
|
167
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid
|
|
168
|
+
- 🐞 Bugfixes
|
|
169
|
+
- 📚 Documentation improvements
|
|
170
|
+
|
|
171
|
+
### Data Grid
|
|
172
|
+
|
|
173
|
+
#### `@mui/x-data-grid@7.3.0`
|
|
174
|
+
|
|
175
|
+
- [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
|
|
176
|
+
- [DataGrid] Fix column resize (#12792) @romgrk
|
|
177
|
+
- [DataGrid] Fix column separators (#12808) @romgrk
|
|
178
|
+
- [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
|
|
179
|
+
- [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
|
|
180
|
+
- [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
|
|
181
|
+
- [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-data-grid-pro@7.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-data-grid@7.3.0`, plus:
|
|
186
|
+
|
|
187
|
+
- [DataGridPro] Implement header filter height (#12666) @romgrk
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-data-grid-premium@7.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.0`.
|
|
192
|
+
|
|
193
|
+
### Charts
|
|
194
|
+
|
|
195
|
+
#### Breaking change
|
|
196
|
+
|
|
197
|
+
A typo fix:
|
|
198
|
+
|
|
199
|
+
```diff
|
|
200
|
+
- ContinuouseScaleName
|
|
201
|
+
+ ContinuousScaleName
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-charts@7.3.0`
|
|
205
|
+
|
|
206
|
+
- [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
|
|
207
|
+
- [charts] Add color scale (#12490) @alexfauquette
|
|
208
|
+
- [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
|
|
209
|
+
- [charts] Export more utils (#12744) @alexfauquette
|
|
210
|
+
- [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
|
|
211
|
+
|
|
212
|
+
### Tree View
|
|
213
|
+
|
|
214
|
+
#### `@mui/x-tree-view@7.3.0`
|
|
215
|
+
|
|
216
|
+
- [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
|
|
217
|
+
|
|
218
|
+
### Docs
|
|
219
|
+
|
|
220
|
+
- [docs] Add grid cell display example to the migration guide (#12793) @romgrk
|
|
221
|
+
- [docs] Use charts classes objects (#12781) @alexfauquette
|
|
222
|
+
- [docs] Fix layout shift on demos (#12816) @zanivan
|
|
223
|
+
- [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
|
|
224
|
+
|
|
225
|
+
### Core
|
|
226
|
+
|
|
227
|
+
- [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
|
|
228
|
+
|
|
6
229
|
## 7.2.0
|
|
7
230
|
|
|
8
231
|
_Apr 12, 2024_
|
|
@@ -153,7 +376,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
153
376
|
|
|
154
377
|
- [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
|
|
155
378
|
- [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
|
|
156
|
-
- [TreeView] Create
|
|
379
|
+
- [TreeView] Create Pro package (not released yet) (#12240) @flaviendelangle
|
|
157
380
|
- [TreeView] Fix typo in errors (#12623) @alissa-tung
|
|
158
381
|
- [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
|
|
159
382
|
|
|
@@ -168,7 +391,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
168
391
|
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
169
392
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
170
393
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
171
|
-
- [docs] Match IE 11 spacing with Material
|
|
394
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
172
395
|
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
173
396
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
174
397
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
@@ -431,7 +654,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
|
|
|
431
654
|
- [docs] Update links to v6 (#12496) @cherniavskii
|
|
432
655
|
- [docs] Update links to v7 docs (#12500) @noraleonte
|
|
433
656
|
- [docs] Update supported versions (#12508) @joserodolfofreitas
|
|
434
|
-
- [docs] Update "What's new in MUI
|
|
657
|
+
- [docs] Update "What's new in MUI X" page #12527 @cherniavskii
|
|
435
658
|
|
|
436
659
|
### Core
|
|
437
660
|
|
|
@@ -2365,7 +2588,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
|
|
|
2365
2588
|
- [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
|
|
2366
2589
|
- [core] Remove blank lines, coding style @oliviertassinari
|
|
2367
2590
|
- [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
|
|
2368
|
-
- [github] Do not add `plan: Pro` and `plan: Premium` labels on
|
|
2591
|
+
- [github] Do not add `plan: Pro` and `plan: Premium` labels on Pro / Premium issue templates (#10183) @flaviendelangle
|
|
2369
2592
|
|
|
2370
2593
|
## 7.0.0-alpha.2
|
|
2371
2594
|
|
|
@@ -3058,6 +3281,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
3058
3281
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
3059
3282
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
3060
3283
|
|
|
3284
|
+
## 6.19.11
|
|
3285
|
+
|
|
3286
|
+
_Apr 18, 2024_
|
|
3287
|
+
|
|
3288
|
+
We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
|
|
3289
|
+
|
|
3290
|
+
- 🐞 Bugfixes
|
|
3291
|
+
|
|
3292
|
+
### Data Grid
|
|
3293
|
+
|
|
3294
|
+
#### `@mui/x-data-grid@6.19.11`
|
|
3295
|
+
|
|
3296
|
+
- [DataGrid] Fix virtualization memory leak (#12812) @romgrk
|
|
3297
|
+
|
|
3298
|
+
#### `@mui/x-data-grid-pro@6.19.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3299
|
+
|
|
3300
|
+
Same changes as in `@mui/x-data-grid@6.19.11`.
|
|
3301
|
+
|
|
3302
|
+
#### `@mui/x-data-grid-premium@6.19.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3303
|
+
|
|
3304
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.11`.
|
|
3305
|
+
|
|
3306
|
+
## 6.19.10
|
|
3307
|
+
|
|
3308
|
+
_Apr 12, 2024_
|
|
3309
|
+
|
|
3310
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
3311
|
+
|
|
3312
|
+
- 🐞 Bugfixes
|
|
3313
|
+
- 📚 Documentation improvements
|
|
3314
|
+
|
|
3315
|
+
### Data Grid
|
|
3316
|
+
|
|
3317
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
3318
|
+
|
|
3319
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
3320
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
3321
|
+
|
|
3322
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3323
|
+
|
|
3324
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
3325
|
+
|
|
3326
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3327
|
+
|
|
3328
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
3329
|
+
|
|
3330
|
+
### Core
|
|
3331
|
+
|
|
3332
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
3333
|
+
|
|
3061
3334
|
## 6.19.9
|
|
3062
3335
|
|
|
3063
3336
|
_Apr 5, 2024_
|
|
@@ -3238,10 +3511,10 @@ Same changes as in `@mui/x-date-pickers@6.19.5`.
|
|
|
3238
3511
|
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
|
|
3239
3512
|
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
|
|
3240
3513
|
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
3241
|
-
- [docs] Move Heatmap to
|
|
3514
|
+
- [docs] Move Heatmap to Pro (#12170) @alexfauquette
|
|
3242
3515
|
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
|
|
3243
3516
|
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
|
|
3244
|
-
- [docs] Add missing Heatmap
|
|
3517
|
+
- [docs] Add missing Heatmap Pro icon @oliviertassinari
|
|
3245
3518
|
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
|
|
3246
3519
|
- [docs] Avoid use of shorthand (#12009) @oliviertassinari
|
|
3247
3520
|
|
|
@@ -5968,7 +6241,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
5968
6241
|
- [docs] Create examples of pickers with custom fields (#8034) @flaviendelangle
|
|
5969
6242
|
- [docs] Fix 301 redirections @oliviertassinari
|
|
5970
6243
|
- [docs] Fix link to React's docs @oliviertassinari
|
|
5971
|
-
- [docs] Fix
|
|
6244
|
+
- [docs] Fix Pro license links to point to the same page (#8303) @LukasTy
|
|
5972
6245
|
- [docs] Give an incentive to upgrade (#8269) @oliviertassinari
|
|
5973
6246
|
- [docs] Improve contrast on data grid navigation (#8239) @oliviertassinari
|
|
5974
6247
|
- [docs] Update shortcuts page to use slotProps (#8288) @dcorb
|
|
@@ -22,8 +22,7 @@ import { getDateCalendarUtilityClass } from './dateCalendarClasses';
|
|
|
22
22
|
import { useControlledValueWithTimezone } from '../internals/hooks/useValueWithTimezone';
|
|
23
23
|
import { singleItemValueManager } from '../internals/utils/valueManagers';
|
|
24
24
|
import { VIEW_HEIGHT } from '../internals/constants/dimensions';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const useUtilityClasses = ownerState => {
|
|
28
27
|
const {
|
|
29
28
|
classes
|
|
@@ -16,8 +16,7 @@ import { PickersSlideTransition } from './PickersSlideTransition';
|
|
|
16
16
|
import { useIsDateDisabled } from './useIsDateDisabled';
|
|
17
17
|
import { findClosestEnabledDate, getWeekdays } from '../internals/utils/date-utils';
|
|
18
18
|
import { getDayCalendarUtilityClass } from './dayCalendarClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes
|
|
@@ -22,9 +22,7 @@ interface ChangeFocusedDayPayload<TDate extends PickerValidDate> {
|
|
|
22
22
|
*/
|
|
23
23
|
withoutMonthSwitchingAnimation?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export declare const createCalendarStateReducer: <TDate extends PickerValidDate>(reduceAnimations: boolean, disableSwitchToMonthOnDayFocus: boolean, utils: MuiPickersAdapter<TDate
|
|
26
|
-
type: "finishMonthSwitchingAnimation";
|
|
27
|
-
} | ReducerAction<"changeMonth", ChangeMonthPayload<TDate>> | ReducerAction<"changeFocusedDay", ChangeFocusedDayPayload<TDate>>) => CalendarState<TDate>;
|
|
25
|
+
export declare const createCalendarStateReducer: <TDate extends PickerValidDate>(reduceAnimations: boolean, disableSwitchToMonthOnDayFocus: boolean, utils: MuiPickersAdapter<TDate>) => (state: CalendarState<TDate>, action: ReducerAction<'finishMonthSwitchingAnimation'> | ReducerAction<'changeMonth', ChangeMonthPayload<TDate>> | ReducerAction<'changeFocusedDay', ChangeFocusedDayPayload<TDate>>) => CalendarState<TDate>;
|
|
28
26
|
interface UseCalendarStateParams<TDate extends PickerValidDate> extends Pick<DateCalendarDefaultizedProps<TDate>, 'value' | 'referenceDate' | 'disableFuture' | 'disablePast' | 'minDate' | 'maxDate' | 'onMonthChange' | 'reduceAnimations' | 'shouldDisableDate'> {
|
|
29
27
|
disableSwitchToMonthOnDayFocus?: boolean;
|
|
30
28
|
timezone: PickersTimezone;
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -334,7 +334,7 @@ process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
|
334
334
|
/**
|
|
335
335
|
* Define custom view renderers for each section.
|
|
336
336
|
* If `null`, the section will only have field editing.
|
|
337
|
-
* If `undefined`, internally defined view will be
|
|
337
|
+
* If `undefined`, internally defined view will be used.
|
|
338
338
|
*/
|
|
339
339
|
viewRenderers: PropTypes.shape({
|
|
340
340
|
day: PropTypes.func,
|
package/DatePicker/shared.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface BaseDatePickerProps<TDate extends PickerValidDate> extends Base
|
|
|
33
33
|
/**
|
|
34
34
|
* Define custom view renderers for each section.
|
|
35
35
|
* If `null`, the section will only have field editing.
|
|
36
|
-
* If `undefined`, internally defined view will be
|
|
36
|
+
* If `undefined`, internally defined view will be used.
|
|
37
37
|
*/
|
|
38
38
|
viewRenderers?: Partial<DatePickerViewRenderers<TDate, DateView>>;
|
|
39
39
|
}
|
|
@@ -401,7 +401,7 @@ process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
|
401
401
|
/**
|
|
402
402
|
* Define custom view renderers for each section.
|
|
403
403
|
* If `null`, the section will only have field editing.
|
|
404
|
-
* If `undefined`, internally defined view will be
|
|
404
|
+
* If `undefined`, internally defined view will be used.
|
|
405
405
|
*/
|
|
406
406
|
viewRenderers: PropTypes.shape({
|
|
407
407
|
day: PropTypes.func,
|
|
@@ -9,8 +9,7 @@ import { TimeIcon, DateRangeIcon } from '../icons';
|
|
|
9
9
|
import { useLocaleText } from '../internals/hooks/useUtils';
|
|
10
10
|
import { getDateTimePickerTabsUtilityClass } from './dateTimePickerTabsClasses';
|
|
11
11
|
import { isDatePickerView } from '../internals/utils/date-utils';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const viewToTab = view => {
|
|
15
14
|
if (isDatePickerView(view)) {
|
|
16
15
|
return 'date';
|
|
@@ -16,8 +16,7 @@ import { MULTI_SECTION_CLOCK_SECTION_WIDTH } from '../internals/constants/dimens
|
|
|
16
16
|
import { formatMeridiem } from '../internals/utils/date-utils';
|
|
17
17
|
import { pickersToolbarTextClasses } from '../internals/components/pickersToolbarTextClasses';
|
|
18
18
|
import { pickersToolbarClasses } from '../internals';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes,
|
|
@@ -55,7 +55,7 @@ export interface BaseDateTimePickerProps<TDate extends PickerValidDate, TView ex
|
|
|
55
55
|
/**
|
|
56
56
|
* Define custom view renderers for each section.
|
|
57
57
|
* If `null`, the section will only have field editing.
|
|
58
|
-
* If `undefined`, internally defined view will be
|
|
58
|
+
* If `undefined`, internally defined view will be used.
|
|
59
59
|
*/
|
|
60
60
|
viewRenderers?: Partial<DateTimePickerViewRenderers<TDate, TView>>;
|
|
61
61
|
}
|
|
@@ -349,7 +349,7 @@ DesktopDatePicker.propTypes = {
|
|
|
349
349
|
/**
|
|
350
350
|
* Define custom view renderers for each section.
|
|
351
351
|
* If `null`, the section will only have field editing.
|
|
352
|
-
* If `undefined`, internally defined view will be
|
|
352
|
+
* If `undefined`, internally defined view will be used.
|
|
353
353
|
*/
|
|
354
354
|
viewRenderers: PropTypes.shape({
|
|
355
355
|
day: PropTypes.func,
|
|
@@ -21,8 +21,7 @@ import { VIEW_HEIGHT, isDatePickerView, isInternalTimeView } from '../internals'
|
|
|
21
21
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '../MultiSectionDigitalClock';
|
|
22
22
|
import { digitalClockClasses } from '../DigitalClock';
|
|
23
23
|
import { DesktopDateTimePickerLayout } from './DesktopDateTimePickerLayout';
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
|
|
27
26
|
const {
|
|
28
27
|
openTo,
|
|
@@ -502,7 +501,7 @@ DesktopDateTimePicker.propTypes = {
|
|
|
502
501
|
/**
|
|
503
502
|
* Define custom view renderers for each section.
|
|
504
503
|
* If `null`, the section will only have field editing.
|
|
505
|
-
* If `undefined`, internally defined view will be
|
|
504
|
+
* If `undefined`, internally defined view will be used.
|
|
506
505
|
*/
|
|
507
506
|
viewRenderers: PropTypes.shape({
|
|
508
507
|
day: PropTypes.func,
|
|
@@ -3,8 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Divider from '@mui/material/Divider';
|
|
5
5
|
import { PickersLayoutContentWrapper, PickersLayoutRoot, pickersLayoutClasses, usePickerLayout } from '../PickersLayout';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
7
|
/**
|
|
9
8
|
* @ignore - internal component.
|
|
10
9
|
*/
|
|
@@ -336,7 +336,7 @@ DesktopTimePicker.propTypes = {
|
|
|
336
336
|
/**
|
|
337
337
|
* Define custom view renderers for each section.
|
|
338
338
|
* If `null`, the section will only have field editing.
|
|
339
|
-
* If `undefined`, internally defined view will be
|
|
339
|
+
* If `undefined`, internally defined view will be used.
|
|
340
340
|
*/
|
|
341
341
|
viewRenderers: PropTypes.shape({
|
|
342
342
|
hours: PropTypes.func,
|
|
@@ -346,7 +346,7 @@ MobileDatePicker.propTypes = {
|
|
|
346
346
|
/**
|
|
347
347
|
* Define custom view renderers for each section.
|
|
348
348
|
* If `null`, the section will only have field editing.
|
|
349
|
-
* If `undefined`, internally defined view will be
|
|
349
|
+
* If `undefined`, internally defined view will be used.
|
|
350
350
|
*/
|
|
351
351
|
viewRenderers: PropTypes.shape({
|
|
352
352
|
day: PropTypes.func,
|
|
@@ -402,7 +402,7 @@ MobileDateTimePicker.propTypes = {
|
|
|
402
402
|
/**
|
|
403
403
|
* Define custom view renderers for each section.
|
|
404
404
|
* If `null`, the section will only have field editing.
|
|
405
|
-
* If `undefined`, internally defined view will be
|
|
405
|
+
* If `undefined`, internally defined view will be used.
|
|
406
406
|
*/
|
|
407
407
|
viewRenderers: PropTypes.shape({
|
|
408
408
|
day: PropTypes.func,
|
|
@@ -294,7 +294,7 @@ MobileTimePicker.propTypes = {
|
|
|
294
294
|
/**
|
|
295
295
|
* Define custom view renderers for each section.
|
|
296
296
|
* If `null`, the section will only have field editing.
|
|
297
|
-
* If `undefined`, internally defined view will be
|
|
297
|
+
* If `undefined`, internally defined view will be used.
|
|
298
298
|
*/
|
|
299
299
|
viewRenderers: PropTypes.shape({
|
|
300
300
|
hours: PropTypes.func,
|
|
@@ -16,8 +16,7 @@ import { ArrowDropDownIcon } from '../icons';
|
|
|
16
16
|
import { PickersArrowSwitcher } from '../internals/components/PickersArrowSwitcher';
|
|
17
17
|
import { usePreviousMonthDisabled, useNextMonthDisabled } from '../internals/hooks/date-helpers-hooks';
|
|
18
18
|
import { getPickersCalendarHeaderUtilityClass, pickersCalendarHeaderClasses } from './pickersCalendarHeaderClasses';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
const useUtilityClasses = ownerState => {
|
|
22
21
|
const {
|
|
23
22
|
classes
|
|
@@ -5,8 +5,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
5
5
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
6
6
|
import { pickersLayoutClasses, getPickersLayoutUtilityClass } from './pickersLayoutClasses';
|
|
7
7
|
import usePickerLayout from './usePickerLayout';
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
10
9
|
const useUtilityClasses = ownerState => {
|
|
11
10
|
const {
|
|
12
11
|
isLandscape,
|
|
@@ -8,8 +8,7 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
8
8
|
import useForkRef from '@mui/utils/useForkRef';
|
|
9
9
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import { getPickersSectionListUtilityClass, pickersSectionListClasses } from './pickersSectionListClasses';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export const PickersSectionListRoot = styled('div', {
|
|
14
13
|
name: 'MuiPickersSectionList',
|
|
15
14
|
slot: 'Root',
|
|
@@ -13,8 +13,7 @@ import { useSlotProps } from '@mui/base/utils';
|
|
|
13
13
|
import visuallyHidden from '@mui/utils/visuallyHidden';
|
|
14
14
|
import { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from './pickersInputBaseClasses';
|
|
15
15
|
import { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from '../../PickersSectionList';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
const round = value => Math.round(value * 1e5) / 1e5;
|
|
19
18
|
export const PickersInputBaseRoot = styled('div', {
|
|
20
19
|
name: 'MuiPickersInputBase',
|