@mui/x-date-pickers 8.3.0 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdapterDateFns/AdapterDateFns.js +2 -1
- package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +2 -1
- package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +5 -1
- package/AdapterDateFnsV2/AdapterDateFnsV2.js +5 -1
- package/AdapterDayjs/AdapterDayjs.js +12 -9
- package/AdapterLuxon/AdapterLuxon.js +3 -2
- package/AdapterMoment/AdapterMoment.js +2 -2
- package/AdapterMomentHijri/AdapterMomentHijri.js +3 -0
- package/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -0
- package/CHANGELOG.md +206 -10
- package/DateCalendar/DateCalendar.js +1 -0
- package/DateField/DateField.js +1 -0
- package/DatePicker/DatePicker.js +1 -0
- package/DatePicker/DatePickerToolbar.js +1 -0
- package/DateTimeField/DateTimeField.js +1 -0
- package/DateTimePicker/DateTimePicker.js +1 -0
- package/DateTimePicker/DateTimePickerTabs.js +1 -0
- package/DateTimePicker/DateTimePickerToolbar.js +1 -0
- package/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
- package/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/DigitalClock/DigitalClock.d.ts +1 -1
- package/DigitalClock/DigitalClock.js +1 -0
- package/LocalizationProvider/LocalizationProvider.js +2 -3
- package/MobileDatePicker/MobileDatePicker.js +1 -0
- package/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/MobileTimePicker/MobileTimePicker.js +1 -0
- package/MonthCalendar/MonthCalendar.js +1 -0
- package/MonthCalendar/MonthCalendarButton.js +2 -1
- package/MultiSectionDigitalClock/MultiSectionDigitalClock.js +5 -4
- package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/PickersActionBar/PickersActionBar.js +2 -1
- package/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
- package/PickersDay/PickersDay.js +3 -1
- package/PickersLayout/PickersLayout.d.ts +2 -2
- package/PickersLayout/PickersLayout.js +1 -0
- package/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/PickersSectionList/PickersSectionList.js +1 -0
- package/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
- package/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +6 -6
- package/PickersTextField/PickersInput/PickersInput.js +1 -0
- package/PickersTextField/PickersInput/pickersInputClasses.d.ts +6 -6
- package/PickersTextField/PickersInputBase/PickersInputBase.d.ts +2 -2
- package/PickersTextField/PickersInputBase/PickersInputBase.js +1 -0
- package/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
- package/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +5 -5
- package/PickersTextField/PickersTextField.js +12 -2
- package/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
- package/StaticDatePicker/StaticDatePicker.js +1 -0
- package/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/StaticTimePicker/StaticTimePicker.js +1 -0
- package/TimeClock/TimeClock.js +1 -0
- package/TimeField/TimeField.js +1 -0
- package/TimePicker/TimePicker.js +1 -0
- package/YearCalendar/YearCalendar.js +1 -0
- package/YearCalendar/YearCalendarButton.js +2 -1
- package/YearCalendar/yearCalendarClasses.d.ts +1 -1
- package/dateViewRenderers/dateViewRenderers.js +2 -1
- package/esm/AdapterDateFns/AdapterDateFns.js +2 -1
- package/esm/AdapterDateFnsJalali/AdapterDateFnsJalali.js +2 -1
- package/esm/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +5 -1
- package/esm/AdapterDateFnsV2/AdapterDateFnsV2.js +5 -1
- package/esm/AdapterDayjs/AdapterDayjs.js +12 -9
- package/esm/AdapterLuxon/AdapterLuxon.js +3 -2
- package/esm/AdapterMoment/AdapterMoment.js +2 -2
- package/esm/AdapterMomentHijri/AdapterMomentHijri.js +3 -0
- package/esm/AdapterMomentJalaali/AdapterMomentJalaali.js +1 -0
- package/esm/DateCalendar/DateCalendar.js +1 -0
- package/esm/DateField/DateField.js +1 -0
- package/esm/DatePicker/DatePicker.js +1 -0
- package/esm/DatePicker/DatePickerToolbar.js +1 -0
- package/esm/DateTimeField/DateTimeField.js +1 -0
- package/esm/DateTimePicker/DateTimePicker.js +1 -0
- package/esm/DateTimePicker/DateTimePickerTabs.js +1 -0
- package/esm/DateTimePicker/DateTimePickerToolbar.js +1 -0
- package/esm/DesktopDatePicker/DesktopDatePicker.js +1 -0
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +2 -0
- package/esm/DesktopDateTimePicker/DesktopDateTimePickerLayout.js +1 -0
- package/esm/DesktopTimePicker/DesktopTimePicker.js +1 -0
- package/esm/DigitalClock/DigitalClock.d.ts +1 -1
- package/esm/DigitalClock/DigitalClock.js +1 -0
- package/esm/LocalizationProvider/LocalizationProvider.js +2 -3
- package/esm/MobileDatePicker/MobileDatePicker.js +1 -0
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +1 -0
- package/esm/MobileTimePicker/MobileTimePicker.js +1 -0
- package/esm/MonthCalendar/MonthCalendar.js +1 -0
- package/esm/MonthCalendar/MonthCalendarButton.js +2 -1
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClock.js +1 -0
- package/esm/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +2 -1
- package/esm/PickersActionBar/PickersActionBar.js +1 -0
- package/esm/PickersCalendarHeader/PickersCalendarHeader.js +1 -0
- package/esm/PickersDay/PickersDay.js +3 -1
- package/esm/PickersLayout/PickersLayout.d.ts +2 -2
- package/esm/PickersLayout/PickersLayout.js +1 -0
- package/esm/PickersSectionList/PickersSectionList.d.ts +1 -1
- package/esm/PickersSectionList/PickersSectionList.js +1 -0
- package/esm/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -0
- package/esm/PickersTextField/PickersFilledInput/pickersFilledInputClasses.d.ts +6 -6
- package/esm/PickersTextField/PickersInput/PickersInput.js +1 -0
- package/esm/PickersTextField/PickersInput/pickersInputClasses.d.ts +6 -6
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.d.ts +2 -2
- package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +1 -0
- package/esm/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -0
- package/esm/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.d.ts +5 -5
- package/esm/PickersTextField/PickersTextField.js +12 -2
- package/esm/PickersTextField/usePickerTextFieldOwnerState.js +1 -0
- package/esm/StaticDatePicker/StaticDatePicker.js +1 -0
- package/esm/StaticDateTimePicker/StaticDateTimePicker.js +1 -0
- package/esm/StaticTimePicker/StaticTimePicker.js +1 -0
- package/esm/TimeClock/TimeClock.js +1 -0
- package/esm/TimeField/TimeField.js +1 -0
- package/esm/TimePicker/TimePicker.js +1 -0
- package/esm/YearCalendar/YearCalendar.js +1 -0
- package/esm/YearCalendar/YearCalendarButton.js +2 -1
- package/esm/YearCalendar/yearCalendarClasses.d.ts +1 -1
- package/esm/dateViewRenderers/dateViewRenderers.js +2 -1
- package/esm/hooks/useIsValidValue.js +1 -0
- package/esm/hooks/usePickerContext.js +1 -0
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.js +1 -0
- package/esm/internals/components/PickerPopper/PickerPopper.js +1 -0
- package/esm/internals/components/PickerProvider.js +2 -0
- package/esm/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
- package/esm/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +1 -1
- package/esm/internals/components/PickersToolbar.js +2 -1
- package/esm/internals/components/PickersToolbarButton.js +2 -1
- package/esm/internals/components/PickersToolbarText.js +2 -1
- package/esm/internals/components/pickersToolbarClasses.d.ts +1 -1
- package/esm/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
- package/esm/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
- package/esm/internals/hooks/useField/useFieldSectionContainerProps.js +2 -3
- package/esm/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
- package/esm/internals/hooks/useField/useFieldState.js +2 -2
- package/esm/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
- package/esm/internals/hooks/useNullableFieldPrivateContext.js +1 -0
- package/esm/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/esm/timeViewRenderers/timeViewRenderers.js +4 -1
- package/hooks/useIsValidValue.js +1 -0
- package/hooks/usePickerContext.js +1 -0
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.js +1 -0
- package/internals/components/PickerPopper/PickerPopper.js +1 -0
- package/internals/components/PickerProvider.js +2 -0
- package/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +2 -1
- package/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.d.ts +1 -1
- package/internals/components/PickersToolbar.js +2 -1
- package/internals/components/PickersToolbarButton.js +2 -1
- package/internals/components/PickersToolbarText.js +2 -1
- package/internals/components/pickersToolbarClasses.d.ts +1 -1
- package/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -0
- package/internals/hooks/useField/useFieldCharacterEditing.js +27 -11
- package/internals/hooks/useField/useFieldSectionContainerProps.js +2 -4
- package/internals/hooks/useField/useFieldSectionContentProps.js +2 -2
- package/internals/hooks/useField/useFieldState.js +2 -2
- package/internals/hooks/useMobilePicker/useMobilePicker.js +1 -0
- package/internals/hooks/useNullableFieldPrivateContext.js +1 -0
- package/internals/hooks/useStaticPicker/useStaticPicker.js +1 -0
- package/package.json +2 -2
- package/timeViewRenderers/timeViewRenderers.js +4 -1
|
@@ -80,7 +80,7 @@ class AdapterDateFns extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
80
80
|
locale,
|
|
81
81
|
formats
|
|
82
82
|
} = {}) {
|
|
83
|
-
/*
|
|
83
|
+
/* v8 ignore start */
|
|
84
84
|
if (process.env.NODE_ENV !== 'production') {
|
|
85
85
|
if (typeof _addDays.addDays !== 'function') {
|
|
86
86
|
throw new Error(['MUI: The `date-fns` package v2.x is not compatible with this adapter.', 'Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead.'].join('\n'));
|
|
@@ -89,6 +89,7 @@ class AdapterDateFns extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
89
89
|
throw new Error('MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.');
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
/* v8 ignore stop */
|
|
92
93
|
super({
|
|
93
94
|
locale: locale ?? _enUS.enUS,
|
|
94
95
|
formats,
|
|
@@ -117,7 +117,7 @@ class AdapterDateFnsJalali extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
117
117
|
locale,
|
|
118
118
|
formats
|
|
119
119
|
} = {}) {
|
|
120
|
-
/*
|
|
120
|
+
/* v8 ignore start */
|
|
121
121
|
if (process.env.NODE_ENV !== 'production') {
|
|
122
122
|
if (typeof _addDays.addDays !== 'function') {
|
|
123
123
|
throw new Error(['MUI: The `date-fns-jalali` package v2.x is not compatible with this adapter.', 'Please, install v3.x or v4.x of the package or use the `AdapterDateFnsJalaliV2` instead.'].join('\n'));
|
|
@@ -126,6 +126,7 @@ class AdapterDateFnsJalali extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
126
126
|
throw new Error('MUI: The minimum supported `date-fns-jalali` package version compatible with this adapter is `3.2.x`.');
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
/* v8 ignore stop */
|
|
129
130
|
super({
|
|
130
131
|
locale: locale ?? _faIR.faIR,
|
|
131
132
|
// some formats are different in jalali adapter,
|
|
@@ -54,8 +54,11 @@ var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
|
|
|
54
54
|
// date-fns-jalali@<3 has no exports field defined
|
|
55
55
|
// See https://github.com/date-fns/date-fns/issues/1781
|
|
56
56
|
/* eslint-disable import/extensions, class-methods-use-this */
|
|
57
|
+
/* v8 ignore start */
|
|
57
58
|
// @ts-nocheck
|
|
58
59
|
|
|
60
|
+
/* v8 ignore end */
|
|
61
|
+
|
|
59
62
|
const defaultFormats = {
|
|
60
63
|
year: 'yyyy',
|
|
61
64
|
month: 'LLLL',
|
|
@@ -121,12 +124,13 @@ class AdapterDateFnsJalali extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
121
124
|
locale,
|
|
122
125
|
formats
|
|
123
126
|
} = {}) {
|
|
124
|
-
/*
|
|
127
|
+
/* v8 ignore start */
|
|
125
128
|
if (process.env.NODE_ENV !== 'production') {
|
|
126
129
|
if (typeof _index4.default !== 'function') {
|
|
127
130
|
throw new Error(['MUI: This adapter is only compatible with `date-fns-jalali` v2.x package versions.', 'Please, install v2.x of the package or use the `AdapterDateFnsJalali` instead.'].join('\n'));
|
|
128
131
|
}
|
|
129
132
|
}
|
|
133
|
+
/* v8 ignore stop */
|
|
130
134
|
super({
|
|
131
135
|
locale: locale ?? _index41.default,
|
|
132
136
|
// some formats are different in jalali adapter,
|
|
@@ -53,8 +53,11 @@ var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
|
|
|
53
53
|
// date-fns@<3 has no exports field defined
|
|
54
54
|
// See https://github.com/date-fns/date-fns/issues/1781
|
|
55
55
|
/* eslint-disable import/extensions, class-methods-use-this */
|
|
56
|
+
/* v8 ignore start */
|
|
56
57
|
// @ts-nocheck
|
|
57
58
|
|
|
59
|
+
/* v8 ignore end */
|
|
60
|
+
|
|
58
61
|
/**
|
|
59
62
|
* Based on `@date-io/date-fns`
|
|
60
63
|
*
|
|
@@ -85,12 +88,13 @@ class AdapterDateFns extends _AdapterDateFnsBase.AdapterDateFnsBase {
|
|
|
85
88
|
locale,
|
|
86
89
|
formats
|
|
87
90
|
} = {}) {
|
|
88
|
-
/*
|
|
91
|
+
/* v8 ignore start */
|
|
89
92
|
if (process.env.NODE_ENV !== 'production') {
|
|
90
93
|
if (typeof _index.default !== 'function') {
|
|
91
94
|
throw new Error(['MUI: This adapter is only compatible with `date-fns` v2.x package versions.', 'Please, install v2.x of the package or use the `AdapterDateFns` instead.'].join('\n'));
|
|
92
95
|
}
|
|
93
96
|
}
|
|
97
|
+
/* v8 ignore stop */
|
|
94
98
|
super({
|
|
95
99
|
locale: locale ?? _index41.default,
|
|
96
100
|
formats,
|
|
@@ -14,11 +14,13 @@ var _isBetween = _interopRequireDefault(require("dayjs/plugin/isBetween.js"));
|
|
|
14
14
|
var _advancedFormat = _interopRequireDefault(require("dayjs/plugin/advancedFormat.js"));
|
|
15
15
|
var _warning = require("@mui/x-internals/warning");
|
|
16
16
|
/* eslint-disable class-methods-use-this */
|
|
17
|
+
/* v8 ignore start */
|
|
17
18
|
|
|
18
19
|
// dayjs has no exports field defined
|
|
19
20
|
// See https://github.com/iamkun/dayjs/issues/2562
|
|
20
21
|
/* eslint-disable import/extensions */
|
|
21
22
|
|
|
23
|
+
/* v8 ignore stop */
|
|
22
24
|
/* eslint-enable import/extensions */
|
|
23
25
|
|
|
24
26
|
_dayjs.default.extend(_localizedFormat.default);
|
|
@@ -212,7 +214,7 @@ class AdapterDayjs {
|
|
|
212
214
|
const timezone = _dayjs.default.tz.guess();
|
|
213
215
|
|
|
214
216
|
// We can't change the system timezone in the tests
|
|
215
|
-
/*
|
|
217
|
+
/* v8 ignore next 3 */
|
|
216
218
|
if (timezone !== 'UTC') {
|
|
217
219
|
return _dayjs.default.tz(value, timezone);
|
|
218
220
|
}
|
|
@@ -221,19 +223,19 @@ class AdapterDayjs {
|
|
|
221
223
|
return (0, _dayjs.default)(value);
|
|
222
224
|
};
|
|
223
225
|
this.createUTCDate = value => {
|
|
224
|
-
/*
|
|
226
|
+
/* v8 ignore next 3 */
|
|
225
227
|
if (!this.hasUTCPlugin()) {
|
|
226
228
|
throw new Error(MISSING_UTC_PLUGIN);
|
|
227
229
|
}
|
|
228
230
|
return _dayjs.default.utc(value);
|
|
229
231
|
};
|
|
230
232
|
this.createTZDate = (value, timezone) => {
|
|
231
|
-
/*
|
|
233
|
+
/* v8 ignore next 3 */
|
|
232
234
|
if (!this.hasUTCPlugin()) {
|
|
233
235
|
throw new Error(MISSING_UTC_PLUGIN);
|
|
234
236
|
}
|
|
235
237
|
|
|
236
|
-
/*
|
|
238
|
+
/* v8 ignore next 3 */
|
|
237
239
|
if (!this.hasTimezonePlugin()) {
|
|
238
240
|
throw new Error(MISSING_TIMEZONE_PLUGIN);
|
|
239
241
|
}
|
|
@@ -245,10 +247,11 @@ class AdapterDayjs {
|
|
|
245
247
|
const locale = this.locale || 'en';
|
|
246
248
|
let localeObject = locales[locale];
|
|
247
249
|
if (localeObject === undefined) {
|
|
248
|
-
/*
|
|
250
|
+
/* v8 ignore start */
|
|
249
251
|
if (process.env.NODE_ENV !== 'production') {
|
|
250
252
|
(0, _warning.warnOnce)(['MUI X: Your locale has not been found.', 'Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.', "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", 'fallback on English locale.']);
|
|
251
253
|
}
|
|
254
|
+
/* v8 ignore stop */
|
|
252
255
|
localeObject = locales.en;
|
|
253
256
|
}
|
|
254
257
|
return localeObject.formats;
|
|
@@ -267,7 +270,7 @@ class AdapterDayjs {
|
|
|
267
270
|
if (timezone !== 'UTC') {
|
|
268
271
|
const fixedValue = value.tz(this.cleanTimezone(timezone), true);
|
|
269
272
|
// TODO: Simplify the case when we raise the `dayjs` peer dep to 1.11.12 (https://github.com/iamkun/dayjs/releases/tag/v1.11.12)
|
|
270
|
-
/*
|
|
273
|
+
/* v8 ignore next 3 */
|
|
271
274
|
// @ts-ignore
|
|
272
275
|
if (fixedValue.$offset === (value.$offset ?? 0)) {
|
|
273
276
|
return value;
|
|
@@ -316,7 +319,7 @@ class AdapterDayjs {
|
|
|
316
319
|
return value;
|
|
317
320
|
}
|
|
318
321
|
if (timezone === 'UTC') {
|
|
319
|
-
/*
|
|
322
|
+
/* v8 ignore next 3 */
|
|
320
323
|
if (!this.hasUTCPlugin()) {
|
|
321
324
|
throw new Error(MISSING_UTC_PLUGIN);
|
|
322
325
|
}
|
|
@@ -334,7 +337,7 @@ class AdapterDayjs {
|
|
|
334
337
|
return value;
|
|
335
338
|
}
|
|
336
339
|
|
|
337
|
-
/*
|
|
340
|
+
/* v8 ignore next */
|
|
338
341
|
throw new Error(MISSING_TIMEZONE_PLUGIN);
|
|
339
342
|
}
|
|
340
343
|
return _dayjs.default.tz(value, this.cleanTimezone(timezone));
|
|
@@ -352,7 +355,7 @@ class AdapterDayjs {
|
|
|
352
355
|
return this.locale || 'en';
|
|
353
356
|
};
|
|
354
357
|
this.is12HourCycleInCurrentLocale = () => {
|
|
355
|
-
/*
|
|
358
|
+
/* v8 ignore next */
|
|
356
359
|
return /A|a/.test(this.getLocaleFormats().LT || '');
|
|
357
360
|
};
|
|
358
361
|
this.expandFormat = format => {
|
|
@@ -233,7 +233,7 @@ class AdapterLuxon {
|
|
|
233
233
|
this.getCurrentLocaleCode = () => {
|
|
234
234
|
return this.locale;
|
|
235
235
|
};
|
|
236
|
-
/*
|
|
236
|
+
/* v8 ignore start */
|
|
237
237
|
this.is12HourCycleInCurrentLocale = () => {
|
|
238
238
|
if (typeof Intl === 'undefined' || typeof Intl.DateTimeFormat === 'undefined') {
|
|
239
239
|
return true; // Luxon defaults to en-US if Intl not found
|
|
@@ -242,6 +242,7 @@ class AdapterLuxon {
|
|
|
242
242
|
hour: 'numeric'
|
|
243
243
|
})?.resolvedOptions()?.hour12);
|
|
244
244
|
};
|
|
245
|
+
/* v8 ignore stop */
|
|
245
246
|
this.expandFormat = format => {
|
|
246
247
|
// Extract escaped section to avoid extending them
|
|
247
248
|
const catchEscapedSectionsRegexp = /''|'(''|[^'])+('|$)|[^']*/g;
|
|
@@ -485,7 +486,7 @@ class AdapterLuxon {
|
|
|
485
486
|
return weeks;
|
|
486
487
|
};
|
|
487
488
|
this.getWeekNumber = value => {
|
|
488
|
-
/*
|
|
489
|
+
/* v8 ignore next */
|
|
489
490
|
return value.localWeekNumber ?? value.weekNumber;
|
|
490
491
|
};
|
|
491
492
|
this.getDayOfWeek = value => {
|
|
@@ -194,7 +194,7 @@ class AdapterMoment {
|
|
|
194
194
|
return parsedValue.locale(this.locale);
|
|
195
195
|
};
|
|
196
196
|
this.createTZDate = (value, timezone) => {
|
|
197
|
-
/*
|
|
197
|
+
/* v8 ignore next 3 */
|
|
198
198
|
if (!this.hasTimezonePlugin()) {
|
|
199
199
|
throw new Error(MISSING_TIMEZONE_PLUGIN);
|
|
200
200
|
}
|
|
@@ -237,7 +237,7 @@ class AdapterMoment {
|
|
|
237
237
|
return value.clone().local();
|
|
238
238
|
}
|
|
239
239
|
if (!this.hasTimezonePlugin()) {
|
|
240
|
-
/*
|
|
240
|
+
/* v8 ignore next 3 */
|
|
241
241
|
if (timezone !== 'default') {
|
|
242
242
|
throw new Error(MISSING_TIMEZONE_PLUGIN);
|
|
243
243
|
}
|
|
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _momentHijri = _interopRequireDefault(require("moment-hijri"));
|
|
10
10
|
var _AdapterMoment = require("../AdapterMoment");
|
|
11
11
|
/* eslint-disable class-methods-use-this */
|
|
12
|
+
/* v8 ignore next */
|
|
12
13
|
|
|
13
14
|
// From https://momentjs.com/docs/#/displaying/format/
|
|
14
15
|
const formatTokenMap = {
|
|
@@ -155,9 +156,11 @@ class AdapterMomentHijri extends _AdapterMoment.AdapterMoment {
|
|
|
155
156
|
}
|
|
156
157
|
return this.moment(value).locale('ar-SA');
|
|
157
158
|
};
|
|
159
|
+
/* v8 ignore next 3 */
|
|
158
160
|
this.getTimezone = () => {
|
|
159
161
|
return 'default';
|
|
160
162
|
};
|
|
163
|
+
/* v8 ignore next 3 */
|
|
161
164
|
this.setTimezone = value => {
|
|
162
165
|
return value;
|
|
163
166
|
};
|
|
@@ -9,6 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _momentJalaali = _interopRequireDefault(require("moment-jalaali"));
|
|
10
10
|
var _AdapterMoment = require("../AdapterMoment");
|
|
11
11
|
/* eslint-disable class-methods-use-this */
|
|
12
|
+
/* v8 ignore next */
|
|
12
13
|
|
|
13
14
|
// From https://momentjs.com/docs/#/displaying/format/
|
|
14
15
|
const formatTokenMap = {
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,206 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.4.0
|
|
9
|
+
|
|
10
|
+
_May 21, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 21 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🔺 Support regular [`pyramid` variation in the `<FunnelChart />` component](https://mui.com/x/react-charts/funnel/#pyramid-chart):
|
|
15
|
+
|
|
16
|
+
<img width="398" alt="Pyramid funnel chart" src="https://github.com/user-attachments/assets/90ccb221-3a48-4ffa-8878-89c6db16da86" />
|
|
17
|
+
|
|
18
|
+
- 📚 Documentation improvements
|
|
19
|
+
- 🌎 Improve Icelandic (is-IS) locale on the Data Grid
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
|
|
22
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
23
|
+
@aizerin, @arminmeh, @campmarc, @jyash97, @mapache-salvaje, @noraleonte, @nusr, @ragnarr18, @romgrk, @whereisrmsqhs.
|
|
24
|
+
Following are all team members who have contributed to this release:
|
|
25
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @rita-codes.
|
|
26
|
+
|
|
27
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
28
|
+
|
|
29
|
+
### Data Grid
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid@8.4.0`
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Fix content rendering for large rows while using automatic page size (#14737) @campmarc
|
|
34
|
+
- [DataGrid] Fix disabled typography variants crashing grid (#17934) @KenanYusuf
|
|
35
|
+
- [DataGrid] Fix tree data demo crash (#17904) @MBilalShafi
|
|
36
|
+
- [DataGrid] Use `exclude` selection model type if quick filter does not have actual values (#17899) @arminmeh
|
|
37
|
+
- [DataGrid] Fix clipboard copy behavior for cell ranges with empty cells (#16797) @nusr
|
|
38
|
+
- [l10n] Improve Icelandic (is-IS) locale (#17915) @ragnarr18
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-pro@8.4.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid@8.4.0`, plus:
|
|
43
|
+
|
|
44
|
+
- [DataGridPro] Add `aria-expanded` attribute to the master detail toggle button (#17122) @whereisrmsqhs
|
|
45
|
+
- [DataGridPro] Preserve row state during server-side lazy loading (#17743) @arminmeh
|
|
46
|
+
- [DataGridPro] Prevent text selection when reordering rows (#16568) @jyash97
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-data-grid-premium@8.4.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-data-grid-pro@8.4.0`.
|
|
51
|
+
|
|
52
|
+
### Date and Time Pickers
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-pickers@8.4.0`
|
|
55
|
+
|
|
56
|
+
- [fields] Ensure fresh `disabled` value is used when focusing or clicking (#17914) @aizerin
|
|
57
|
+
- [fields] Improve the field controlled edition (#17816) @flaviendelangle
|
|
58
|
+
- [pickers] Fix `PickersTextField` overflow (#17942) @noraleonte
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-date-pickers-pro@8.4.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-date-pickers@8.4.0`.
|
|
63
|
+
|
|
64
|
+
### Charts
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-charts@8.4.0`
|
|
67
|
+
|
|
68
|
+
- [charts] Add grouped axes demo (#17848) @bernardobelchior
|
|
69
|
+
- [charts] Enable tooltip disable portal (#17871) @alexfauquette
|
|
70
|
+
- [charts] Improve performance in scatter chart (#17849) @bernardobelchior
|
|
71
|
+
- [charts] Recreate `isPointInside` less often (#17850) @bernardobelchior
|
|
72
|
+
- [charts] Try fix for flaky `useAnimate` test (#17777) @JCQuintas
|
|
73
|
+
- [charts] Add `isXInside` and `isYInside` (#17911) @bernardobelchior
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts-pro@8.4.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-charts@8.4.0`, plus:
|
|
78
|
+
|
|
79
|
+
- [charts-pro] Add size for zoom slider (#17736) @bernardobelchior
|
|
80
|
+
- [charts-pro] Add zoom slider tooltip (#17733) @bernardobelchior
|
|
81
|
+
- [charts-pro] Clean and document Heatmap Tooltip (#17933) @alexfauquette
|
|
82
|
+
- [charts-pro] Introduce `Pyramid` chart (#17783) @JCQuintas
|
|
83
|
+
- [charts-pro] Update zoom slider nomenclature (#17938) @bernardobelchior
|
|
84
|
+
- [charts-pro] Fix error when importing rasterizehtml (#17897) @bernardobelchior
|
|
85
|
+
|
|
86
|
+
### Tree View
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-tree-view@8.4.0`
|
|
89
|
+
|
|
90
|
+
- [TreeView] Add `getItemChildren` prop in `RichTreeView` (#17894) @rita-codes
|
|
91
|
+
- [TreeView] Add a method in the `apiRef` to toggle the editing status of an item (#17768) @rita-codes
|
|
92
|
+
- [TreeView] Add missing sx prop on the Tree Item component (#17930) @flaviendelangle
|
|
93
|
+
|
|
94
|
+
#### `@mui/x-tree-view-pro@8.4.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
95
|
+
|
|
96
|
+
Same changes as in `@mui/x-tree-view@8.4.0`.
|
|
97
|
+
|
|
98
|
+
### Docs
|
|
99
|
+
|
|
100
|
+
- [docs] Add a recipe for drag and drop row grouping (#17638) @KenanYusuf
|
|
101
|
+
- [docs] Add introductory text to Data Grid component pages (#17902) @KenanYusuf
|
|
102
|
+
- [docs] Refactor embedded CodeSandbox on Data Grid—Quickstart page (#17749) @rita-codes
|
|
103
|
+
- [docs] Remove double border on Data Grid—Quickstart demo (#17932) @rita-codes
|
|
104
|
+
- [docs] Standardize `apiRef` copy (#17776) @mapache-salvaje
|
|
105
|
+
- [docs][DataGrid] Revise server-side data docs (#17007) @mapache-salvaje
|
|
106
|
+
- [docs][DataGrid] Audit and revise the tree data doc (#17650) @mapache-salvaje
|
|
107
|
+
- [docs][pickers] Fix migration guide references to range fields (#17861) @LukasTy
|
|
108
|
+
- [docs][charts] Reorganize the Tooltip documentation (#17917) @alexfauquette
|
|
109
|
+
|
|
110
|
+
### Core
|
|
111
|
+
|
|
112
|
+
- [core] refactor: remove manual `displayName` (#17845) @romgrk
|
|
113
|
+
- [code-infra] Document how to use `vitest` cli (#17847) @JCQuintas
|
|
114
|
+
- [code-infra] Increase charts export test timeout (#17909) @JCQuintas
|
|
115
|
+
- [code-infra] Set `isolatedModules=true` in tsconfig (#17781) @JCQuintas
|
|
116
|
+
- [infra] Ensure proper docs preview path resolution (#17863) @LukasTy
|
|
117
|
+
|
|
118
|
+
## 8.3.1
|
|
119
|
+
|
|
120
|
+
_May 14, 2025_
|
|
121
|
+
|
|
122
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
123
|
+
|
|
124
|
+
- 🌍 Improve Norwegian Bokmål (nb-NO) locale on the Data Grid
|
|
125
|
+
- 🌍 Improve Korean (ko-KR) locale on the Data Grid and Pickers
|
|
126
|
+
- 📚 Documentation improvements
|
|
127
|
+
- 🐞 Bugfixes
|
|
128
|
+
|
|
129
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
130
|
+
@100pearlcent, @htollefsen, @JanPretzel, @sai6855.
|
|
131
|
+
Following are all team members who have contributed to this release:
|
|
132
|
+
@bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @MBilalShafi, @oliviertassinari, @prakhargupta1.
|
|
133
|
+
|
|
134
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
135
|
+
|
|
136
|
+
### Data Grid
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-data-grid@8.3.1`
|
|
139
|
+
|
|
140
|
+
- [DataGrid] Add `reason` param for `onRowSelectionModelChange` callback (#17545) @sai6855
|
|
141
|
+
- [DataGrid] Fix `renderContext` calculation loop (#17779) @cherniavskii
|
|
142
|
+
- [DataGrid] Fix column spanning jump on scroll (#17759) @cherniavskii
|
|
143
|
+
- [DataGrid] Fix material augmentation not working (#17761) @cherniavskii
|
|
144
|
+
- [DataGrid] Use arguments selector for checkbox props (#17683) @MBilalShafi
|
|
145
|
+
- [l10n] Improve Norwegian Bokmål (nb-NO) locale (#17766) @htollefsen
|
|
146
|
+
- [l10n] Improve Korean (ko-KR) locale (#17484) @100pearlcent
|
|
147
|
+
|
|
148
|
+
#### `@mui/x-data-grid-pro@8.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
149
|
+
|
|
150
|
+
Same changes as in `@mui/x-data-grid@8.3.1`.
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-data-grid-premium@8.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
153
|
+
|
|
154
|
+
Same changes as in `@mui/x-data-grid-pro@8.3.1`, plus:
|
|
155
|
+
|
|
156
|
+
- [DataGridPremium] Fix aggregation label not being used in pivot panel (#17760) @cherniavskii
|
|
157
|
+
|
|
158
|
+
### Date and Time Pickers
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-date-pickers@8.3.1`
|
|
161
|
+
|
|
162
|
+
- [fields] Add notch to the field outlined when the label is manually shrank (#17620) @flaviendelangle
|
|
163
|
+
- [l10n] Improve Korean (ko-KR) locale (#17484) @100pearlcent
|
|
164
|
+
|
|
165
|
+
#### `@mui/x-date-pickers-pro@8.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
166
|
+
|
|
167
|
+
Same changes as in `@mui/x-date-pickers@8.3.1`.
|
|
168
|
+
|
|
169
|
+
### Charts
|
|
170
|
+
|
|
171
|
+
#### `@mui/x-charts@8.3.1`
|
|
172
|
+
|
|
173
|
+
- [charts] Fix infinite tick number when zoom range is zero (#17750) @bernardobelchior
|
|
174
|
+
- [charts] Improve tick rendering performance (#17755) @bernardobelchior
|
|
175
|
+
|
|
176
|
+
#### `@mui/x-charts-pro@8.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
177
|
+
|
|
178
|
+
Same changes as in `@mui/x-charts@8.3.1`, plus:
|
|
179
|
+
|
|
180
|
+
- [charts-pro] Fix ESM build issue with Vite (#17774) @bernardobelchior
|
|
181
|
+
- [charts-pro] Add benchmark for zoomed in scatter chart (#17756) @bernardobelchior
|
|
182
|
+
|
|
183
|
+
### Tree View
|
|
184
|
+
|
|
185
|
+
#### `@mui/x-tree-view@8.3.1`
|
|
186
|
+
|
|
187
|
+
Internal changes.
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-tree-view-pro@8.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-tree-view@8.3.1`.
|
|
192
|
+
|
|
193
|
+
### Docs
|
|
194
|
+
|
|
195
|
+
- [docs] Fix 301 to Next.js docs for license @oliviertassinari
|
|
196
|
+
- [docs] Fix AI assistant API URL (#17745) @oliviertassinari
|
|
197
|
+
- [docs] Fix heading structure in README @oliviertassinari
|
|
198
|
+
- [docs] Fix translation keys documentation (#17811) @JanPretzel
|
|
199
|
+
- [docs] Improve CHANGELOG format @oliviertassinari
|
|
200
|
+
|
|
201
|
+
### Core
|
|
202
|
+
|
|
203
|
+
- [core] Apply YAML convention, blank line only at top level @oliviertassinari
|
|
204
|
+
- [code-infra] Fix dynamic import missing extensions (#17767) @Janpot
|
|
205
|
+
- [code-infra] Replace `mocha` with `vitest` for browser & jsdom tests (#14508) @JCQuintas
|
|
206
|
+
- [scheduler] Create the package and setup a private doc page (#17239) @flaviendelangle
|
|
207
|
+
|
|
8
208
|
## 8.3.0
|
|
9
209
|
|
|
10
210
|
_May 8, 2025_
|
|
@@ -15,10 +215,8 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
15
215
|
- 📚 Documentation improvements
|
|
16
216
|
- 🐞 Bugfixes
|
|
17
217
|
|
|
18
|
-
Special thanks go out to this community member for a valuable contribution:
|
|
19
|
-
@
|
|
20
|
-
Team members who have contributed to this release:
|
|
21
|
-
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @rita-codes, @romgrk.
|
|
218
|
+
Special thanks go out to this community member for a valuable contribution: @ptuukkan.
|
|
219
|
+
Team members who have contributed to this release: @alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @rita-codes, @romgrk.
|
|
22
220
|
|
|
23
221
|
### Data Grid
|
|
24
222
|
|
|
@@ -531,8 +729,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
531
729
|
- 📚 Documentation improvements
|
|
532
730
|
- 🐞 Bugfixes
|
|
533
731
|
|
|
534
|
-
Team members who have contributed to this release:
|
|
535
|
-
@bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
732
|
+
Team members who have contributed to this release: @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
536
733
|
|
|
537
734
|
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
538
735
|
|
|
@@ -845,7 +1042,7 @@ We'd like to offer a big thanks to the 21 contributors who made this release pos
|
|
|
845
1042
|
- 🌍 Improve Chinese (zh-CN), (zh-HK), (zh-TW), Czech (cs-CZ), Korean (ko-KR) and Slovak (sk-Sk) locales on the Data Grid
|
|
846
1043
|
- 🌍 Improve Chinese (zh-CN), (zh-HK) and (zh-TW) locales on the Pickers
|
|
847
1044
|
|
|
848
|
-
|
|
1045
|
+
### Breaking changes
|
|
849
1046
|
|
|
850
1047
|
- ℹ️ The peer dependency on `@mui/material` has been updated to accept only v7.
|
|
851
1048
|
This has been done to increase the adoption rate of ESM.
|
|
@@ -858,7 +1055,7 @@ Following are all team members who have contributed to this release:
|
|
|
858
1055
|
|
|
859
1056
|
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
860
1057
|
|
|
861
|
-
|
|
1058
|
+
### Alpha release highlights
|
|
862
1059
|
|
|
863
1060
|
Below are the highlights of the alpha releases leading up to this beta release:
|
|
864
1061
|
|
|
@@ -3152,8 +3349,7 @@ We'd like to offer a big thanks to the 4 contributors who made this release poss
|
|
|
3152
3349
|
|
|
3153
3350
|
- 🐞 Bugfixes
|
|
3154
3351
|
|
|
3155
|
-
Team members who have contributed to this release:
|
|
3156
|
-
@arminmeh, @cherniavskii, @LukasTy, @michelengelen.
|
|
3352
|
+
Team members who have contributed to this release: @arminmeh, @cherniavskii, @LukasTy, @michelengelen.
|
|
3157
3353
|
|
|
3158
3354
|
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
3159
3355
|
|
|
@@ -368,6 +368,7 @@ const DateCalendar = exports.DateCalendar = /*#__PURE__*/React.forwardRef(functi
|
|
|
368
368
|
})]
|
|
369
369
|
}));
|
|
370
370
|
});
|
|
371
|
+
if (process.env.NODE_ENV !== "production") DateCalendar.displayName = "DateCalendar";
|
|
371
372
|
process.env.NODE_ENV !== "production" ? DateCalendar.propTypes = {
|
|
372
373
|
// ----------------------------- Warning --------------------------------
|
|
373
374
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/DateField/DateField.js
CHANGED
|
@@ -50,6 +50,7 @@ const DateField = exports.DateField = /*#__PURE__*/React.forwardRef(function Dat
|
|
|
50
50
|
defaultOpenPickerIcon: _icons.CalendarIcon
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
+
if (process.env.NODE_ENV !== "production") DateField.displayName = "DateField";
|
|
53
54
|
process.env.NODE_ENV !== "production" ? DateField.propTypes = {
|
|
54
55
|
// ----------------------------- Warning --------------------------------
|
|
55
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
package/DatePicker/DatePicker.js
CHANGED
|
@@ -52,6 +52,7 @@ const DatePicker = exports.DatePicker = /*#__PURE__*/React.forwardRef(function D
|
|
|
52
52
|
ref: ref
|
|
53
53
|
}, other));
|
|
54
54
|
});
|
|
55
|
+
if (process.env.NODE_ENV !== "production") DatePicker.displayName = "DatePicker";
|
|
55
56
|
process.env.NODE_ENV !== "production" ? DatePicker.propTypes = {
|
|
56
57
|
// ----------------------------- Warning --------------------------------
|
|
57
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -103,6 +103,7 @@ const DatePickerToolbar = exports.DatePickerToolbar = /*#__PURE__*/React.forward
|
|
|
103
103
|
})
|
|
104
104
|
}));
|
|
105
105
|
});
|
|
106
|
+
if (process.env.NODE_ENV !== "production") DatePickerToolbar.displayName = "DatePickerToolbar";
|
|
106
107
|
process.env.NODE_ENV !== "production" ? DatePickerToolbar.propTypes = {
|
|
107
108
|
// ----------------------------- Warning --------------------------------
|
|
108
109
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -50,6 +50,7 @@ const DateTimeField = exports.DateTimeField = /*#__PURE__*/React.forwardRef(func
|
|
|
50
50
|
defaultOpenPickerIcon: _icons.CalendarIcon
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
+
if (process.env.NODE_ENV !== "production") DateTimeField.displayName = "DateTimeField";
|
|
53
54
|
process.env.NODE_ENV !== "production" ? DateTimeField.propTypes = {
|
|
54
55
|
// ----------------------------- Warning --------------------------------
|
|
55
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -52,6 +52,7 @@ const DateTimePicker = exports.DateTimePicker = /*#__PURE__*/React.forwardRef(fu
|
|
|
52
52
|
ref: ref
|
|
53
53
|
}, other));
|
|
54
54
|
});
|
|
55
|
+
if (process.env.NODE_ENV !== "production") DateTimePicker.displayName = "DateTimePicker";
|
|
55
56
|
process.env.NODE_ENV !== "production" ? DateTimePicker.propTypes = {
|
|
56
57
|
// ----------------------------- Warning --------------------------------
|
|
57
58
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -115,6 +115,7 @@ const DateTimePickerTabs = exports.DateTimePickerTabs = function DateTimePickerT
|
|
|
115
115
|
})]
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
|
+
if (process.env.NODE_ENV !== "production") DateTimePickerTabs.displayName = "DateTimePickerTabs";
|
|
118
119
|
process.env.NODE_ENV !== "production" ? DateTimePickerTabs.propTypes = {
|
|
119
120
|
// ----------------------------- Warning --------------------------------
|
|
120
121
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -225,6 +225,7 @@ const DateTimePickerToolbarOverrideContext = exports.DateTimePickerToolbarOverri
|
|
|
225
225
|
*
|
|
226
226
|
* - [DateTimePickerToolbar API](https://mui.com/x/api/date-pickers/date-time-picker-toolbar/)
|
|
227
227
|
*/
|
|
228
|
+
if (process.env.NODE_ENV !== "production") DateTimePickerToolbarOverrideContext.displayName = "DateTimePickerToolbarOverrideContext";
|
|
228
229
|
function DateTimePickerToolbar(inProps) {
|
|
229
230
|
const props = (0, _styles.useThemeProps)({
|
|
230
231
|
props: inProps,
|
|
@@ -69,6 +69,7 @@ const DesktopDatePicker = exports.DesktopDatePicker = /*#__PURE__*/React.forward
|
|
|
69
69
|
});
|
|
70
70
|
return renderPicker();
|
|
71
71
|
});
|
|
72
|
+
if (process.env.NODE_ENV !== "production") DesktopDatePicker.displayName = "DesktopDatePicker";
|
|
72
73
|
DesktopDatePicker.propTypes = {
|
|
73
74
|
// ----------------------------- Warning --------------------------------
|
|
74
75
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -85,6 +85,7 @@ const rendererInterceptor = function RendererInterceptor(props) {
|
|
|
85
85
|
})]
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
|
+
if (process.env.NODE_ENV !== "production") rendererInterceptor.displayName = "rendererInterceptor";
|
|
88
89
|
/**
|
|
89
90
|
* Demos:
|
|
90
91
|
*
|
|
@@ -150,6 +151,7 @@ const DesktopDateTimePicker = exports.DesktopDateTimePicker = /*#__PURE__*/React
|
|
|
150
151
|
});
|
|
151
152
|
return renderPicker();
|
|
152
153
|
});
|
|
154
|
+
if (process.env.NODE_ENV !== "production") DesktopDateTimePicker.displayName = "DesktopDateTimePicker";
|
|
153
155
|
DesktopDateTimePicker.propTypes = {
|
|
154
156
|
// ----------------------------- Warning --------------------------------
|
|
155
157
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -62,6 +62,7 @@ const DesktopDateTimePickerLayout = exports.DesktopDateTimePickerLayout = /*#__P
|
|
|
62
62
|
}), actionBar]
|
|
63
63
|
});
|
|
64
64
|
});
|
|
65
|
+
if (process.env.NODE_ENV !== "production") DesktopDateTimePickerLayout.displayName = "DesktopDateTimePickerLayout";
|
|
65
66
|
process.env.NODE_ENV !== "production" ? DesktopDateTimePickerLayout.propTypes = {
|
|
66
67
|
// ----------------------------- Warning --------------------------------
|
|
67
68
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -85,6 +85,7 @@ const DesktopTimePicker = exports.DesktopTimePicker = /*#__PURE__*/React.forward
|
|
|
85
85
|
});
|
|
86
86
|
return renderPicker();
|
|
87
87
|
});
|
|
88
|
+
if (process.env.NODE_ENV !== "production") DesktopTimePicker.displayName = "DesktopTimePicker";
|
|
88
89
|
DesktopTimePicker.propTypes = {
|
|
89
90
|
// ----------------------------- Warning --------------------------------
|
|
90
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DigitalClockProps } from "./DigitalClock.types.js";
|
|
3
|
-
export declare const DigitalClockItem: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "
|
|
3
|
+
export declare const DigitalClockItem: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "disabled" | "autoFocus" | "dense" | "tabIndex" | "classes" | "className" | "style" | "children" | "sx" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "divider" | "selected"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
4
|
type DigitalClockComponent = ((props: DigitalClockProps & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
5
5
|
propTypes?: any;
|
|
6
6
|
};
|
|
@@ -321,6 +321,7 @@ const DigitalClock = exports.DigitalClock = /*#__PURE__*/React.forwardRef(functi
|
|
|
321
321
|
})
|
|
322
322
|
}));
|
|
323
323
|
});
|
|
324
|
+
if (process.env.NODE_ENV !== "production") DigitalClock.displayName = "DigitalClock";
|
|
324
325
|
process.env.NODE_ENV !== "production" ? DigitalClock.propTypes = {
|
|
325
326
|
// ----------------------------- Warning --------------------------------
|
|
326
327
|
// | These PropTypes are generated from the TypeScript type definitions |
|