@mui/x-date-pickers 7.0.0-beta.0 → 7.0.0-beta.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 +5 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.d.ts +5 -0
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -1
- package/AdapterDayjs/AdapterDayjs.d.ts +5 -0
- package/AdapterDayjs/AdapterDayjs.js +0 -1
- package/AdapterLuxon/AdapterLuxon.d.ts +5 -0
- package/AdapterLuxon/AdapterLuxon.js +1 -2
- package/AdapterMoment/AdapterMoment.d.ts +5 -0
- package/AdapterMoment/AdapterMoment.js +0 -1
- package/AdapterMomentHijri/AdapterMomentHijri.d.ts +5 -0
- package/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
- package/AdapterMomentJalaali/AdapterMomentJalaali.d.ts +5 -0
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
- package/CHANGELOG.md +406 -1
- package/DateCalendar/DateCalendar.d.ts +2 -1
- package/DateCalendar/DateCalendar.js +5 -5
- package/DateCalendar/DateCalendar.types.d.ts +6 -6
- package/DateCalendar/DayCalendar.d.ts +6 -6
- package/DateCalendar/useCalendarState.d.ts +7 -7
- package/DateCalendar/useIsDateDisabled.d.ts +2 -1
- package/DateField/DateField.d.ts +2 -1
- package/DateField/DateField.js +5 -5
- package/DateField/DateField.types.d.ts +7 -7
- package/DateField/useDateField.d.ts +2 -1
- package/DatePicker/DatePicker.d.ts +2 -1
- package/DatePicker/DatePicker.js +5 -5
- package/DatePicker/DatePicker.types.d.ts +4 -3
- package/DatePicker/DatePickerToolbar.d.ts +3 -3
- package/DatePicker/DatePickerToolbar.js +1 -1
- package/DatePicker/shared.d.ts +6 -6
- package/DateTimeField/DateTimeField.d.ts +2 -1
- package/DateTimeField/DateTimeField.js +9 -9
- package/DateTimeField/DateTimeField.types.d.ts +7 -7
- package/DateTimeField/useDateTimeField.d.ts +2 -1
- package/DateTimePicker/DateTimePicker.d.ts +2 -1
- package/DateTimePicker/DateTimePicker.js +9 -9
- package/DateTimePicker/DateTimePicker.types.d.ts +4 -3
- package/DateTimePicker/DateTimePickerToolbar.d.ts +3 -2
- package/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/DateTimePicker/shared.d.ts +6 -6
- package/DesktopDatePicker/DesktopDatePicker.d.ts +2 -1
- package/DesktopDatePicker/DesktopDatePicker.js +5 -5
- package/DesktopDatePicker/DesktopDatePicker.types.d.ts +4 -4
- package/DesktopDateTimePicker/DesktopDateTimePicker.d.ts +2 -1
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +9 -9
- package/DesktopDateTimePicker/DesktopDateTimePicker.types.d.ts +4 -4
- package/DesktopTimePicker/DesktopTimePicker.d.ts +2 -1
- package/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/DesktopTimePicker/DesktopTimePicker.types.d.ts +4 -4
- package/DigitalClock/DigitalClock.d.ts +2 -1
- package/DigitalClock/DigitalClock.js +5 -5
- package/DigitalClock/DigitalClock.types.d.ts +4 -4
- package/LocalizationProvider/LocalizationProvider.d.ts +5 -5
- package/MobileDatePicker/MobileDatePicker.d.ts +2 -1
- package/MobileDatePicker/MobileDatePicker.js +5 -5
- package/MobileDatePicker/MobileDatePicker.types.d.ts +4 -4
- package/MobileDateTimePicker/MobileDateTimePicker.d.ts +2 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +9 -9
- package/MobileDateTimePicker/MobileDateTimePicker.types.d.ts +4 -4
- package/MobileTimePicker/MobileTimePicker.d.ts +2 -1
- package/MobileTimePicker/MobileTimePicker.js +5 -5
- package/MobileTimePicker/MobileTimePicker.types.d.ts +4 -4
- package/MonthCalendar/MonthCalendar.d.ts +3 -2
- package/MonthCalendar/MonthCalendar.js +5 -5
- package/MonthCalendar/MonthCalendar.types.d.ts +2 -2
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.d.ts +2 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.types.d.ts +4 -3
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.d.ts +5 -5
- package/PickersCalendarHeader/PickersCalendarHeader.d.ts +2 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/PickersCalendarHeader/PickersCalendarHeader.types.d.ts +6 -6
- package/PickersDay/PickersDay.d.ts +3 -2
- package/PickersDay/PickersDay.js +1 -1
- package/PickersLayout/PickersLayout.d.ts +2 -1
- package/PickersLayout/PickersLayout.types.d.ts +7 -6
- package/PickersLayout/usePickerLayout.d.ts +2 -1
- package/StaticDatePicker/StaticDatePicker.d.ts +2 -1
- package/StaticDatePicker/StaticDatePicker.js +5 -5
- package/StaticDatePicker/StaticDatePicker.types.d.ts +4 -4
- package/StaticDateTimePicker/StaticDateTimePicker.d.ts +2 -1
- package/StaticDateTimePicker/StaticDateTimePicker.js +9 -9
- package/StaticDateTimePicker/StaticDateTimePicker.types.d.ts +4 -4
- package/StaticTimePicker/StaticTimePicker.d.ts +2 -1
- package/StaticTimePicker/StaticTimePicker.js +5 -5
- package/StaticTimePicker/StaticTimePicker.types.d.ts +4 -4
- package/TimeClock/Clock.d.ts +3 -3
- package/TimeClock/ClockNumbers.d.ts +4 -4
- package/TimeClock/TimeClock.d.ts +2 -1
- package/TimeClock/TimeClock.js +5 -5
- package/TimeClock/TimeClock.types.d.ts +3 -3
- package/TimeField/TimeField.d.ts +2 -1
- package/TimeField/TimeField.js +5 -5
- package/TimeField/TimeField.types.d.ts +7 -7
- package/TimeField/useTimeField.d.ts +2 -1
- package/TimePicker/TimePicker.d.ts +2 -1
- package/TimePicker/TimePicker.js +5 -5
- package/TimePicker/TimePicker.types.d.ts +4 -3
- package/TimePicker/TimePickerToolbar.d.ts +3 -2
- package/TimePicker/TimePickerToolbar.js +1 -1
- package/TimePicker/shared.d.ts +5 -5
- package/TimePicker/timePickerToolbarClasses.d.ts +8 -0
- package/YearCalendar/YearCalendar.d.ts +2 -1
- package/YearCalendar/YearCalendar.js +5 -5
- package/YearCalendar/YearCalendar.types.d.ts +2 -2
- package/dateTimeViewRenderers/dateTimeViewRenderers.d.ts +3 -2
- package/dateViewRenderers/dateViewRenderers.d.ts +3 -3
- package/index.js +1 -1
- package/internals/hooks/date-helpers-hooks.d.ts +5 -5
- package/internals/hooks/useClockReferenceDate.d.ts +3 -3
- package/internals/hooks/useDesktopPicker/useDesktopPicker.d.ts +2 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.types.d.ts +7 -7
- package/internals/hooks/useField/useField.d.ts +2 -2
- package/internals/hooks/useField/useField.types.d.ts +7 -7
- package/internals/hooks/useField/useField.utils.d.ts +13 -13
- package/internals/hooks/useField/useFieldCharacterEditing.d.ts +3 -3
- package/internals/hooks/useField/useFieldState.d.ts +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.d.ts +2 -1
- package/internals/hooks/useMobilePicker/useMobilePicker.types.d.ts +7 -7
- package/internals/hooks/usePicker/usePicker.d.ts +2 -2
- package/internals/hooks/usePicker/usePicker.types.d.ts +4 -4
- package/internals/hooks/usePicker/usePickerValue.d.ts +2 -2
- package/internals/hooks/usePicker/usePickerValue.types.d.ts +5 -5
- package/internals/hooks/usePicker/usePickerViews.d.ts +5 -5
- package/internals/hooks/useStaticPicker/useStaticPicker.d.ts +2 -1
- package/internals/hooks/useStaticPicker/useStaticPicker.types.d.ts +6 -6
- package/internals/hooks/useUtils.d.ts +6 -6
- package/internals/hooks/useValidation.d.ts +3 -2
- package/internals/hooks/useValueWithTimezone.d.ts +3 -3
- package/internals/hooks/useViews.d.ts +2 -1
- package/internals/models/fields.d.ts +2 -2
- package/internals/models/props/basePickerProps.d.ts +3 -2
- package/internals/models/props/clock.d.ts +4 -4
- package/internals/models/validation.d.ts +7 -7
- package/internals/utils/date-time-utils.d.ts +5 -5
- package/internals/utils/date-utils.d.ts +12 -12
- package/internals/utils/getDefaultReferenceDate.d.ts +3 -3
- package/internals/utils/time-utils.d.ts +6 -6
- package/internals/utils/validation/validateDate.d.ts +2 -2
- package/internals/utils/validation/validateDateTime.d.ts +2 -2
- package/internals/utils/validation/validateTime.d.ts +2 -2
- package/internals/utils/valueManagers.d.ts +2 -2
- package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -1
- package/legacy/AdapterDayjs/AdapterDayjs.js +0 -1
- package/legacy/AdapterLuxon/AdapterLuxon.js +1 -2
- package/legacy/AdapterMoment/AdapterMoment.js +0 -1
- package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
- package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
- package/legacy/DateCalendar/DateCalendar.js +5 -5
- package/legacy/DateField/DateField.js +5 -5
- package/legacy/DatePicker/DatePicker.js +5 -5
- package/legacy/DatePicker/DatePickerToolbar.js +1 -1
- package/legacy/DateTimeField/DateTimeField.js +9 -9
- package/legacy/DateTimePicker/DateTimePicker.js +9 -9
- package/legacy/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/legacy/DesktopDatePicker/DesktopDatePicker.js +5 -5
- package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +9 -9
- package/legacy/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/legacy/DigitalClock/DigitalClock.js +5 -5
- package/legacy/MobileDatePicker/MobileDatePicker.js +5 -5
- package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +9 -9
- package/legacy/MobileTimePicker/MobileTimePicker.js +5 -5
- package/legacy/MonthCalendar/MonthCalendar.js +5 -5
- package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/legacy/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/legacy/PickersDay/PickersDay.js +1 -1
- package/legacy/StaticDatePicker/StaticDatePicker.js +5 -5
- package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +9 -9
- package/legacy/StaticTimePicker/StaticTimePicker.js +5 -5
- package/legacy/TimeClock/TimeClock.js +5 -5
- package/legacy/TimeField/TimeField.js +5 -5
- package/legacy/TimePicker/TimePicker.js +5 -5
- package/legacy/TimePicker/TimePickerToolbar.js +1 -1
- package/legacy/YearCalendar/YearCalendar.js +5 -5
- package/legacy/index.js +1 -1
- package/locales/beBY.d.ts +6 -6
- package/locales/caES.d.ts +6 -6
- package/locales/csCZ.d.ts +6 -6
- package/locales/daDK.d.ts +6 -6
- package/locales/deDE.d.ts +6 -6
- package/locales/elGR.d.ts +6 -6
- package/locales/enUS.d.ts +6 -6
- package/locales/esES.d.ts +6 -6
- package/locales/eu.d.ts +6 -6
- package/locales/faIR.d.ts +6 -6
- package/locales/fiFI.d.ts +6 -6
- package/locales/frFR.d.ts +6 -6
- package/locales/heIL.d.ts +6 -6
- package/locales/huHU.d.ts +6 -6
- package/locales/isIS.d.ts +6 -6
- package/locales/itIT.d.ts +6 -6
- package/locales/jaJP.d.ts +6 -6
- package/locales/koKR.d.ts +6 -6
- package/locales/kzKZ.d.ts +6 -6
- package/locales/mk.d.ts +6 -6
- package/locales/nbNO.d.ts +6 -6
- package/locales/nlNL.d.ts +6 -6
- package/locales/plPL.d.ts +6 -6
- package/locales/ptBR.d.ts +6 -6
- package/locales/roRO.d.ts +6 -6
- package/locales/ruRU.d.ts +6 -6
- package/locales/skSK.d.ts +6 -6
- package/locales/svSE.d.ts +6 -6
- package/locales/trTR.d.ts +6 -6
- package/locales/ukUA.d.ts +6 -6
- package/locales/urPK.d.ts +6 -6
- package/locales/utils/getPickersLocalization.d.ts +6 -6
- package/locales/utils/pickersLocaleTextApi.d.ts +6 -6
- package/locales/viVN.d.ts +6 -6
- package/locales/zhCN.d.ts +6 -6
- package/locales/zhHK.d.ts +6 -6
- package/models/adapters.d.ts +2 -1
- package/models/fields.d.ts +3 -2
- package/models/pickers.d.ts +3 -0
- package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -1
- package/modern/AdapterDayjs/AdapterDayjs.js +0 -1
- package/modern/AdapterLuxon/AdapterLuxon.js +1 -2
- package/modern/AdapterMoment/AdapterMoment.js +0 -1
- package/modern/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
- package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
- package/modern/DateCalendar/DateCalendar.js +5 -5
- package/modern/DateField/DateField.js +5 -5
- package/modern/DatePicker/DatePicker.js +5 -5
- package/modern/DatePicker/DatePickerToolbar.js +1 -1
- package/modern/DateTimeField/DateTimeField.js +9 -9
- package/modern/DateTimePicker/DateTimePicker.js +9 -9
- package/modern/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/modern/DesktopDatePicker/DesktopDatePicker.js +5 -5
- package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +9 -9
- package/modern/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/modern/DigitalClock/DigitalClock.js +5 -5
- package/modern/MobileDatePicker/MobileDatePicker.js +5 -5
- package/modern/MobileDateTimePicker/MobileDateTimePicker.js +9 -9
- package/modern/MobileTimePicker/MobileTimePicker.js +5 -5
- package/modern/MonthCalendar/MonthCalendar.js +5 -5
- package/modern/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/modern/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/modern/PickersDay/PickersDay.js +1 -1
- package/modern/StaticDatePicker/StaticDatePicker.js +5 -5
- package/modern/StaticDateTimePicker/StaticDateTimePicker.js +9 -9
- package/modern/StaticTimePicker/StaticTimePicker.js +5 -5
- package/modern/TimeClock/TimeClock.js +5 -5
- package/modern/TimeField/TimeField.js +5 -5
- package/modern/TimePicker/TimePicker.js +5 -5
- package/modern/TimePicker/TimePickerToolbar.js +1 -1
- package/modern/YearCalendar/YearCalendar.js +5 -5
- package/modern/index.js +1 -1
- package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -1
- package/node/AdapterDayjs/AdapterDayjs.js +0 -1
- package/node/AdapterLuxon/AdapterLuxon.js +1 -2
- package/node/AdapterMoment/AdapterMoment.js +0 -1
- package/node/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
- package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
- package/node/DateCalendar/DateCalendar.js +5 -5
- package/node/DateField/DateField.js +5 -5
- package/node/DatePicker/DatePicker.js +5 -5
- package/node/DatePicker/DatePickerToolbar.js +1 -1
- package/node/DateTimeField/DateTimeField.js +9 -9
- package/node/DateTimePicker/DateTimePicker.js +9 -9
- package/node/DateTimePicker/DateTimePickerToolbar.js +1 -1
- package/node/DesktopDatePicker/DesktopDatePicker.js +5 -5
- package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +9 -9
- package/node/DesktopTimePicker/DesktopTimePicker.js +5 -5
- package/node/DigitalClock/DigitalClock.js +5 -5
- package/node/MobileDatePicker/MobileDatePicker.js +5 -5
- package/node/MobileDateTimePicker/MobileDateTimePicker.js +9 -9
- package/node/MobileTimePicker/MobileTimePicker.js +5 -5
- package/node/MonthCalendar/MonthCalendar.js +5 -5
- package/node/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -5
- package/node/PickersCalendarHeader/PickersCalendarHeader.js +3 -3
- package/node/PickersDay/PickersDay.js +1 -1
- package/node/StaticDatePicker/StaticDatePicker.js +5 -5
- package/node/StaticDateTimePicker/StaticDateTimePicker.js +9 -9
- package/node/StaticTimePicker/StaticTimePicker.js +5 -5
- package/node/TimeClock/TimeClock.js +5 -5
- package/node/TimeField/TimeField.js +5 -5
- package/node/TimePicker/TimePicker.js +5 -5
- package/node/TimePicker/TimePickerToolbar.js +1 -1
- package/node/YearCalendar/YearCalendar.js +5 -5
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/themeAugmentation/props.d.ts +31 -31
- package/timeViewRenderers/timeViewRenderers.d.ts +4 -4
|
@@ -11,6 +11,11 @@ type DateFnsLocaleBase = {
|
|
|
11
11
|
type DateFnsAdapterBaseOptions<DateFnsLocale extends DateFnsLocaleBase> = MakeRequired<AdapterOptions<DateFnsLocale, never>, 'locale'> & {
|
|
12
12
|
longFormatters: Record<'p' | 'P', (token: string, formatLong: any) => string>;
|
|
13
13
|
};
|
|
14
|
+
declare module '@mui/x-date-pickers/models' {
|
|
15
|
+
interface PickerValidDateLookup {
|
|
16
|
+
'date-fns': Date;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
/**
|
|
15
20
|
* Based on `@date-io/date-fns`
|
|
16
21
|
*
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
import defaultLocale from 'date-fns-jalali/locale/fa-IR';
|
|
3
3
|
import { AdapterFormats, AdapterOptions, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter } from '../models';
|
|
4
4
|
type DateFnsLocale = typeof defaultLocale;
|
|
5
|
+
declare module '@mui/x-date-pickers/models' {
|
|
6
|
+
interface PickerValidDateLookup {
|
|
7
|
+
'date-fns-jalali': Date;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
/**
|
|
6
11
|
* Based on `@date-io/date-fns-jalali`
|
|
7
12
|
*
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import defaultDayjs, { Dayjs } from 'dayjs';
|
|
2
2
|
import { FieldFormatTokenMap, MuiPickersAdapter, AdapterFormats, AdapterOptions, PickersTimezone, DateBuilderReturnType } from '../models';
|
|
3
3
|
type Constructor = (...args: Parameters<typeof defaultDayjs>) => Dayjs;
|
|
4
|
+
declare module '@mui/x-date-pickers/models' {
|
|
5
|
+
interface PickerValidDateLookup {
|
|
6
|
+
dayjs: Dayjs;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
/**
|
|
5
10
|
* Based on `@date-io/dayjs`
|
|
6
11
|
*
|
|
@@ -120,7 +120,6 @@ const defaultFormats = {
|
|
|
120
120
|
const MISSING_UTC_PLUGIN = ['Missing UTC plugin', 'To be able to use UTC or timezones, you have to enable the `utc` plugin', 'Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc'].join('\n');
|
|
121
121
|
const MISSING_TIMEZONE_PLUGIN = ['Missing timezone plugin', 'To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin', 'Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone'].join('\n');
|
|
122
122
|
const withLocale = (dayjs, locale) => !locale ? dayjs : (...args) => dayjs(...args).locale(locale);
|
|
123
|
-
|
|
124
123
|
/**
|
|
125
124
|
* Based on `@date-io/dayjs`
|
|
126
125
|
*
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
2
|
import { AdapterFormats, AdapterOptions, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter, PickersTimezone } from '../models';
|
|
3
|
+
declare module '@mui/x-date-pickers/models' {
|
|
4
|
+
interface PickerValidDateLookup {
|
|
5
|
+
luxon: DateTime;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
3
8
|
/**
|
|
4
9
|
* Based on `@date-io/luxon`
|
|
5
10
|
*
|
|
@@ -131,7 +131,6 @@ const defaultFormats = {
|
|
|
131
131
|
keyboardDateTime12h: 'D hh:mm a',
|
|
132
132
|
keyboardDateTime24h: 'D T'
|
|
133
133
|
};
|
|
134
|
-
|
|
135
134
|
/**
|
|
136
135
|
* Based on `@date-io/luxon`
|
|
137
136
|
*
|
|
@@ -329,7 +328,7 @@ export class AdapterLuxon {
|
|
|
329
328
|
return diff.days < 0;
|
|
330
329
|
};
|
|
331
330
|
this.isWithinRange = (value, [start, end]) => {
|
|
332
|
-
return
|
|
331
|
+
return this.isEqual(value, start) || this.isEqual(value, end) || this.isAfter(value, start) && this.isBefore(value, end);
|
|
333
332
|
};
|
|
334
333
|
this.startOfYear = value => {
|
|
335
334
|
return value.startOf('year');
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import defaultMoment, { Moment } from 'moment';
|
|
2
2
|
import { AdapterFormats, AdapterOptions, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter, PickersTimezone } from '../models';
|
|
3
|
+
declare module '@mui/x-date-pickers/models' {
|
|
4
|
+
interface PickerValidDateLookup {
|
|
5
|
+
moment: Moment;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
3
8
|
/**
|
|
4
9
|
* Based on `@date-io/moment`
|
|
5
10
|
*
|
|
@@ -121,7 +121,6 @@ const defaultFormats = {
|
|
|
121
121
|
keyboardDateTime24h: 'L HH:mm'
|
|
122
122
|
};
|
|
123
123
|
const MISSING_TIMEZONE_PLUGIN = ['Missing timezone plugin', 'To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`', 'Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone'].join('\n');
|
|
124
|
-
|
|
125
124
|
/**
|
|
126
125
|
* Based on `@date-io/moment`
|
|
127
126
|
*
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import defaultHMoment, { Moment } from 'moment-hijri';
|
|
2
2
|
import { AdapterMoment } from '../AdapterMoment';
|
|
3
3
|
import { AdapterOptions, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter } from '../models';
|
|
4
|
+
declare module '@mui/x-date-pickers/models' {
|
|
5
|
+
interface PickerValidDateLookup {
|
|
6
|
+
'moment-hijri': Moment;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
/**
|
|
5
10
|
* Based on `@date-io/hijri`
|
|
6
11
|
*
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import defaultJMoment, { Moment } from 'moment-jalaali';
|
|
2
2
|
import { AdapterMoment } from '../AdapterMoment';
|
|
3
3
|
import { AdapterOptions, DateBuilderReturnType, FieldFormatTokenMap, MuiPickersAdapter } from '../models';
|
|
4
|
+
declare module '@mui/x-date-pickers/models' {
|
|
5
|
+
interface PickerValidDateLookup {
|
|
6
|
+
'moment-jalaali': Moment;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
4
9
|
/**
|
|
5
10
|
* Based on `@date-io/jalaali`
|
|
6
11
|
*
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,271 @@
|
|
|
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
|
+
## v7.0.0-beta.2
|
|
7
|
+
|
|
8
|
+
_Feb 9, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
|
|
13
|
+
- 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
|
|
14
|
+
- 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v7.0.0-beta.2`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
|
+
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
24
|
+
- [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
|
|
25
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
|
|
26
|
+
- [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
|
|
27
|
+
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
|
+
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
|
+
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
|
+
|
|
41
|
+
### Date Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@v7.0.0-beta.2`
|
|
44
|
+
|
|
45
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
|
+
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
51
|
+
|
|
52
|
+
### Charts / `@mui/x-charts@v7.0.0-beta.2`
|
|
53
|
+
|
|
54
|
+
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
|
+
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
|
+
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
|
+
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
62
|
+
|
|
63
|
+
### License
|
|
64
|
+
|
|
65
|
+
#### Breaking changes
|
|
66
|
+
|
|
67
|
+
- If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
-import { LicenseInfo } from '@mui/x-license-pro';
|
|
71
|
+
+import { LicenseInfo } from '@mui/x-license';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`@mui/x-license@v7.0.0-beta.2`
|
|
75
|
+
|
|
76
|
+
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
|
|
81
|
+
- [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
|
|
82
|
+
- [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
|
|
83
|
+
- [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
|
|
84
|
+
- [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
|
|
85
|
+
- [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
|
|
86
|
+
- [docs] Avoid use of shorthand (#12000) @oliviertassinari
|
|
87
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
88
|
+
- [docs] Fix image size and dark mode @oliviertassinari
|
|
89
|
+
- [docs] Follow blank line convention with use client @oliviertassinari
|
|
90
|
+
- [docs] Stable layout between light and dark mode @oliviertassinari
|
|
91
|
+
|
|
92
|
+
### Core
|
|
93
|
+
|
|
94
|
+
- [core] Add `docs:serve` script (#11935) @cherniavskii
|
|
95
|
+
- [core] Bump monorepo (#12001) @cherniavskii
|
|
96
|
+
- [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
|
|
97
|
+
- [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
|
|
98
|
+
- [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
|
|
99
|
+
- [core] Flatten grid packages folder (#11946) @cherniavskii
|
|
100
|
+
- [core] Improve license info deprecation message (#11974) @cherniavskii
|
|
101
|
+
- [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
|
|
102
|
+
- [core] Move next config to ESM (#11882) @Janpot
|
|
103
|
+
- [core] Add auto-message on closed issues (#11805) @michelengelen
|
|
104
|
+
- [core] Simplify bug reproduction (#11849) @oliviertassinari
|
|
105
|
+
- [core] Fix npm reference @oliviertassinari
|
|
106
|
+
- [core] Normalize issue template @oliviertassinari
|
|
107
|
+
|
|
108
|
+
## 7.0.0-beta.1
|
|
109
|
+
|
|
110
|
+
_Feb 1, 2024_
|
|
111
|
+
|
|
112
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
113
|
+
|
|
114
|
+
- 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
|
|
115
|
+
- 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
|
|
116
|
+
- 🚀 All charts have click handlers (#11411) @alexfauquette
|
|
117
|
+
Test their respective documentation demonstrations to know more about the data format:
|
|
118
|
+
|
|
119
|
+
- [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
|
|
120
|
+
- [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
|
|
121
|
+
- [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
|
|
122
|
+
- [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
|
|
123
|
+
|
|
124
|
+
Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
### Breaking changes
|
|
129
|
+
|
|
130
|
+
- The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
|
|
131
|
+
|
|
132
|
+
```diff
|
|
133
|
+
- valueGetter: ({ value, row }) => value,
|
|
134
|
+
+ valueGetter: (value, row, column, apiRef) => value,
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The `GridValueGetterParams` interface has been removed:
|
|
138
|
+
|
|
139
|
+
```diff
|
|
140
|
+
- const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
|
|
141
|
+
+ const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
|
|
145
|
+
|
|
146
|
+
```diff
|
|
147
|
+
- valueFormatter: ({ value }) => value,
|
|
148
|
+
+ valueFormatter: (value, row, column, apiRef) => value,
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The `GridValueFormatterParams` interface has been removed:
|
|
152
|
+
|
|
153
|
+
```diff
|
|
154
|
+
- const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
|
|
155
|
+
+ const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
|
|
159
|
+
|
|
160
|
+
```diff
|
|
161
|
+
- valueSetter: (params) => {
|
|
162
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
163
|
+
- return { ...params.row, firstName, lastName };
|
|
164
|
+
- }
|
|
165
|
+
+ valueSetter: (value, row) => {
|
|
166
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
167
|
+
+ return { ...row, firstName, lastName };
|
|
168
|
+
+}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The `GridValueSetterParams` interface has been removed:
|
|
172
|
+
|
|
173
|
+
```diff
|
|
174
|
+
- const setFullName = (params: GridValueSetterParams) => {
|
|
175
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
176
|
+
- return { ...params.row, firstName, lastName };
|
|
177
|
+
- };
|
|
178
|
+
+ const setFullName: GridValueSetter<Row> = (value, row) => {
|
|
179
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
180
|
+
+ return { ...row, firstName, lastName };
|
|
181
|
+
+ }
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
- The signature of `GridColDef['valueParser']` has been changed for performance reasons:
|
|
185
|
+
|
|
186
|
+
```diff
|
|
187
|
+
- valueParser: (value, params: GridCellParams) => value.toLowerCase(),
|
|
188
|
+
+ valueParser: (value, row, column, apiRef) => value.toLowerCase(),
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- The signature of `GridColDef['colSpan']` has been changed for performance reasons:
|
|
192
|
+
|
|
193
|
+
```diff
|
|
194
|
+
- colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
|
|
195
|
+
+ colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
|
|
199
|
+
|
|
200
|
+
```diff
|
|
201
|
+
- pastedValueParser: (value, params) => new Date(value),
|
|
202
|
+
+ pastedValueParser: (value, row, column, apiRef) => new Date(value),
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
|
|
206
|
+
|
|
207
|
+
```diff
|
|
208
|
+
- groupingValueGetter: (params) => params.value.name,
|
|
209
|
+
+ groupingValueGetter: (value: { name: string }) => value.name,
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### `@mui/x-data-grid@7.0.0-beta.1`
|
|
213
|
+
|
|
214
|
+
- [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
|
|
215
|
+
- [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
|
|
216
|
+
- [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
|
|
217
|
+
- [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
|
|
218
|
+
- [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
221
|
+
|
|
222
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
|
|
227
|
+
|
|
228
|
+
### Date Pickers
|
|
229
|
+
|
|
230
|
+
#### `@mui/x-date-pickers@7.0.0-beta.1`
|
|
231
|
+
|
|
232
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
|
|
233
|
+
|
|
234
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
235
|
+
|
|
236
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
237
|
+
|
|
238
|
+
### Charts
|
|
239
|
+
|
|
240
|
+
#### Breaking changes
|
|
241
|
+
|
|
242
|
+
- The line chart now have animation by default.
|
|
243
|
+
You can disable it with `skipAnimation` prop.
|
|
244
|
+
See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
|
|
245
|
+
|
|
246
|
+
- Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
|
|
247
|
+
|
|
248
|
+
`@mui/x-charts@7.0.0-beta.1`
|
|
249
|
+
|
|
250
|
+
- [charts] Add `onClick` support (#11411) @alexfauquette
|
|
251
|
+
- [charts] Add line animation (#11620) @alexfauquette
|
|
252
|
+
- [charts] Document how to modify color according to values (#11824) @alexfauquette
|
|
253
|
+
- [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
|
|
254
|
+
|
|
255
|
+
### Docs
|
|
256
|
+
|
|
257
|
+
- [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
|
|
258
|
+
- [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
|
|
259
|
+
- [docs] Fix charts API links (#11832) @alexfauquette
|
|
260
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
261
|
+
- [docs] Improve column visibility documentation (#11857) @MBilalShafi
|
|
262
|
+
- [docs] Polish header @oliviertassinari
|
|
263
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
264
|
+
- [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
|
|
265
|
+
|
|
266
|
+
### Core
|
|
267
|
+
|
|
268
|
+
- [core] Rely on immutable ref when possible (#11847) @oliviertassinari
|
|
269
|
+
- [core] Bump monorepo (#11897) @alexfauquette
|
|
270
|
+
|
|
6
271
|
## 7.0.0-beta.0
|
|
7
272
|
|
|
8
273
|
_Jan 26, 2024_
|
|
@@ -1873,6 +2138,146 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1873
2138
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1874
2139
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1875
2140
|
|
|
2141
|
+
## v6.19.4
|
|
2142
|
+
|
|
2143
|
+
_Feb 9, 2024_
|
|
2144
|
+
|
|
2145
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
2146
|
+
|
|
2147
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
|
|
2148
|
+
- 🐞 Bugfixes
|
|
2149
|
+
- 📚 Documentation improvements
|
|
2150
|
+
|
|
2151
|
+
### Data Grid
|
|
2152
|
+
|
|
2153
|
+
#### `@mui/x-data-grid@v6.19.4`
|
|
2154
|
+
|
|
2155
|
+
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2156
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
2157
|
+
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
|
|
2158
|
+
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2159
|
+
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2160
|
+
|
|
2161
|
+
#### `@mui/x-data-grid-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2162
|
+
|
|
2163
|
+
Same changes as in `@mui/x-data-grid@v6.19.4`.
|
|
2164
|
+
|
|
2165
|
+
#### `@mui/x-data-grid-premium@v6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2166
|
+
|
|
2167
|
+
Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
|
|
2168
|
+
|
|
2169
|
+
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2170
|
+
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2171
|
+
|
|
2172
|
+
### Date Pickers
|
|
2173
|
+
|
|
2174
|
+
#### `@mui/x-date-pickers@v6.19.4`
|
|
2175
|
+
|
|
2176
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2177
|
+
|
|
2178
|
+
#### `@mui/x-date-pickers-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2179
|
+
|
|
2180
|
+
Same changes as in `@mui/x-date-pickers@v6.19.4`.
|
|
2181
|
+
|
|
2182
|
+
### Charts / `@mui/x-charts@v6.19.4`
|
|
2183
|
+
|
|
2184
|
+
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2185
|
+
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
2186
|
+
- [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
|
|
2187
|
+
|
|
2188
|
+
### Docs
|
|
2189
|
+
|
|
2190
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
|
|
2191
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
2192
|
+
- [docs] Fix API links (#11930) @alexfauquette
|
|
2193
|
+
- [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
|
|
2194
|
+
- [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
|
|
2195
|
+
- [code] Simplify bug reproduction (#11932) @alexfauquette
|
|
2196
|
+
|
|
2197
|
+
## 6.19.3
|
|
2198
|
+
|
|
2199
|
+
_Feb 1, 2024_
|
|
2200
|
+
|
|
2201
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2202
|
+
|
|
2203
|
+
- 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
|
|
2204
|
+
- 🐞 Bugfixes
|
|
2205
|
+
- 📚 Documentation improvements
|
|
2206
|
+
|
|
2207
|
+
### Data Grid
|
|
2208
|
+
|
|
2209
|
+
#### `@mui/x-data-grid@6.19.3`
|
|
2210
|
+
|
|
2211
|
+
- [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
|
|
2212
|
+
|
|
2213
|
+
#### `@mui/x-data-grid-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2214
|
+
|
|
2215
|
+
Same changes as in `@mui/x-data-grid@6.19.3`.
|
|
2216
|
+
|
|
2217
|
+
#### `@mui/x-data-grid-premium@6.19.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2218
|
+
|
|
2219
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.3`.
|
|
2220
|
+
|
|
2221
|
+
### Date Pickers
|
|
2222
|
+
|
|
2223
|
+
#### `@mui/x-date-pickers@6.19.3`
|
|
2224
|
+
|
|
2225
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
|
|
2226
|
+
|
|
2227
|
+
#### `@mui/x-date-pickers-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2228
|
+
|
|
2229
|
+
Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
2230
|
+
|
|
2231
|
+
### Charts / `@mui/x-charts@6.19.3`
|
|
2232
|
+
|
|
2233
|
+
- [charts] Document how to modify color according to values (#11854) @alexfauquette
|
|
2234
|
+
|
|
2235
|
+
### Docs
|
|
2236
|
+
|
|
2237
|
+
- [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
|
|
2238
|
+
- [docs] Fix 404 (#11852) @alexfauquette
|
|
2239
|
+
- [docs] Fix <title> generation (#11825) @alexfauquette
|
|
2240
|
+
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2241
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2242
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
2243
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2244
|
+
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2245
|
+
|
|
2246
|
+
## 6.19.2
|
|
2247
|
+
|
|
2248
|
+
_Jan 25, 2024_
|
|
2249
|
+
|
|
2250
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
2251
|
+
|
|
2252
|
+
- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2253
|
+
- 🐞 Bugfixes
|
|
2254
|
+
|
|
2255
|
+
### Date Pickers
|
|
2256
|
+
|
|
2257
|
+
#### `@mui/x-date-pickers@6.19.2`
|
|
2258
|
+
|
|
2259
|
+
- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2260
|
+
|
|
2261
|
+
#### `@mui/x-date-pickers-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2262
|
+
|
|
2263
|
+
Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
|
|
2264
|
+
|
|
2265
|
+
- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
|
|
2266
|
+
|
|
2267
|
+
### Data Grid
|
|
2268
|
+
|
|
2269
|
+
#### `@mui/x-data-grid@6.19.2`
|
|
2270
|
+
|
|
2271
|
+
- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
|
|
2272
|
+
|
|
2273
|
+
#### `@mui/x-data-grid-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2274
|
+
|
|
2275
|
+
Same changes as in `@mui/x-data-grid@6.19.2`.
|
|
2276
|
+
|
|
2277
|
+
#### `@mui/x-data-grid-premium@6.19.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2278
|
+
|
|
2279
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.2`.
|
|
2280
|
+
|
|
1876
2281
|
## 6.19.1
|
|
1877
2282
|
|
|
1878
2283
|
_Jan 19, 2024_
|
|
@@ -6876,7 +7281,7 @@ You can find more information about the new api, including how to set those tran
|
|
|
6876
7281
|
- [core] Add link to the security page on the `README` (#6073) @oliviertassinari
|
|
6877
7282
|
- [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
|
|
6878
7283
|
- [core] Remove the Storybook (#6099) @flaviendelangle
|
|
6879
|
-
- [core] Tag release as `next` in
|
|
7284
|
+
- [core] Tag release as `next` in npm (#6256) @m4theushw
|
|
6880
7285
|
- [core] Update monorepo (#6180) @flaviendelangle
|
|
6881
7286
|
- [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
|
|
6882
7287
|
- [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DateCalendarProps } from './DateCalendar.types';
|
|
3
|
-
|
|
3
|
+
import { PickerValidDate } from '../models';
|
|
4
|
+
type DateCalendarComponent = (<TDate extends PickerValidDate>(props: DateCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
5
|
propTypes?: any;
|
|
5
6
|
};
|
|
6
7
|
/**
|
|
@@ -369,7 +369,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
369
369
|
* The default selected value.
|
|
370
370
|
* Used when the component is not controlled.
|
|
371
371
|
*/
|
|
372
|
-
defaultValue: PropTypes.
|
|
372
|
+
defaultValue: PropTypes.object,
|
|
373
373
|
/**
|
|
374
374
|
* If `true`, the picker and text field are disabled.
|
|
375
375
|
* @default false
|
|
@@ -413,11 +413,11 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
413
413
|
/**
|
|
414
414
|
* Maximal selectable date.
|
|
415
415
|
*/
|
|
416
|
-
maxDate: PropTypes.
|
|
416
|
+
maxDate: PropTypes.object,
|
|
417
417
|
/**
|
|
418
418
|
* Minimal selectable date.
|
|
419
419
|
*/
|
|
420
|
-
minDate: PropTypes.
|
|
420
|
+
minDate: PropTypes.object,
|
|
421
421
|
/**
|
|
422
422
|
* Months rendered per row.
|
|
423
423
|
* @default 3
|
|
@@ -477,7 +477,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
477
477
|
* The date used to generate the new value when both `value` and `defaultValue` are empty.
|
|
478
478
|
* @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.
|
|
479
479
|
*/
|
|
480
|
-
referenceDate: PropTypes.
|
|
480
|
+
referenceDate: PropTypes.object,
|
|
481
481
|
/**
|
|
482
482
|
* Component displaying when passed `loading` true.
|
|
483
483
|
* @returns {React.ReactNode} The node to render when loading.
|
|
@@ -545,7 +545,7 @@ process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
|
545
545
|
* The selected value.
|
|
546
546
|
* Used when the component is controlled.
|
|
547
547
|
*/
|
|
548
|
-
value: PropTypes.
|
|
548
|
+
value: PropTypes.object,
|
|
549
549
|
/**
|
|
550
550
|
* The visible view.
|
|
551
551
|
* Used when the component view is controlled.
|
|
@@ -7,11 +7,11 @@ import { DayCalendarSlots, DayCalendarSlotProps, ExportedDayCalendarProps } from
|
|
|
7
7
|
import { DateCalendarClasses } from './dateCalendarClasses';
|
|
8
8
|
import { BaseDateValidationProps, YearValidationProps, MonthValidationProps, DayValidationProps } from '../internals/models/validation';
|
|
9
9
|
import { ExportedUseViewsOptions } from '../internals/hooks/useViews';
|
|
10
|
-
import { DateView, TimezoneProps } from '../models';
|
|
10
|
+
import { DateView, PickerValidDate, TimezoneProps } from '../models';
|
|
11
11
|
import { DefaultizedProps } from '../internals/models/helpers';
|
|
12
12
|
import { ExportedYearCalendarProps } from '../YearCalendar/YearCalendar.types';
|
|
13
13
|
import { ExportedMonthCalendarProps } from '../MonthCalendar/MonthCalendar.types';
|
|
14
|
-
export interface DateCalendarSlots<TDate> extends PickersCalendarHeaderSlots, DayCalendarSlots<TDate> {
|
|
14
|
+
export interface DateCalendarSlots<TDate extends PickerValidDate> extends PickersCalendarHeaderSlots, DayCalendarSlots<TDate> {
|
|
15
15
|
/**
|
|
16
16
|
* Custom component for calendar header.
|
|
17
17
|
* Check the [PickersCalendarHeader](https://mui.com/x/api/date-pickers/pickers-calendar-header/) component.
|
|
@@ -19,10 +19,10 @@ export interface DateCalendarSlots<TDate> extends PickersCalendarHeaderSlots, Da
|
|
|
19
19
|
*/
|
|
20
20
|
calendarHeader?: React.ElementType<PickersCalendarHeaderProps<TDate>>;
|
|
21
21
|
}
|
|
22
|
-
export interface DateCalendarSlotProps<TDate> extends PickersCalendarHeaderSlotProps<TDate>, DayCalendarSlotProps<TDate> {
|
|
22
|
+
export interface DateCalendarSlotProps<TDate extends PickerValidDate> extends PickersCalendarHeaderSlotProps<TDate>, DayCalendarSlotProps<TDate> {
|
|
23
23
|
calendarHeader?: SlotComponentProps<typeof PickersCalendarHeader, {}, DateCalendarProps<TDate>>;
|
|
24
24
|
}
|
|
25
|
-
export interface ExportedDateCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, ExportedMonthCalendarProps, ExportedYearCalendarProps, BaseDateValidationProps<TDate>, DayValidationProps<TDate>, YearValidationProps<TDate>, MonthValidationProps<TDate>, TimezoneProps {
|
|
25
|
+
export interface ExportedDateCalendarProps<TDate extends PickerValidDate> extends ExportedDayCalendarProps<TDate>, ExportedMonthCalendarProps, ExportedYearCalendarProps, BaseDateValidationProps<TDate>, DayValidationProps<TDate>, YearValidationProps<TDate>, MonthValidationProps<TDate>, TimezoneProps {
|
|
26
26
|
/**
|
|
27
27
|
* If `true`, the picker and text field are disabled.
|
|
28
28
|
* @default false
|
|
@@ -57,7 +57,7 @@ export interface ExportedDateCalendarProps<TDate> extends ExportedDayCalendarPro
|
|
|
57
57
|
*/
|
|
58
58
|
onMonthChange?: (month: TDate) => void;
|
|
59
59
|
}
|
|
60
|
-
export interface DateCalendarProps<TDate> extends ExportedDateCalendarProps<TDate>, ExportedUseViewsOptions<DateView> {
|
|
60
|
+
export interface DateCalendarProps<TDate extends PickerValidDate> extends ExportedDateCalendarProps<TDate>, ExportedUseViewsOptions<DateView> {
|
|
61
61
|
/**
|
|
62
62
|
* The selected value.
|
|
63
63
|
* Used when the component is controlled.
|
|
@@ -90,4 +90,4 @@ export interface DateCalendarProps<TDate> extends ExportedDateCalendarProps<TDat
|
|
|
90
90
|
*/
|
|
91
91
|
slotProps?: DateCalendarSlotProps<TDate>;
|
|
92
92
|
}
|
|
93
|
-
export type DateCalendarDefaultizedProps<TDate> = DefaultizedProps<DateCalendarProps<TDate>, 'views' | 'openTo' | 'loading' | 'reduceAnimations' | 'renderLoading' | keyof BaseDateValidationProps<TDate>>;
|
|
93
|
+
export type DateCalendarDefaultizedProps<TDate extends PickerValidDate> = DefaultizedProps<DateCalendarProps<TDate>, 'views' | 'openTo' | 'loading' | 'reduceAnimations' | 'renderLoading' | keyof BaseDateValidationProps<TDate>>;
|