@mui/x-date-pickers-pro 7.0.0-alpha.1 → 7.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +607 -188
- package/DateRangeCalendar/DateRangeCalendar.js +5 -11
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +0 -4
- package/DateRangeCalendar/useDragRange.js +1 -1
- package/DateRangePicker/DateRangePicker.js +4 -8
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
- package/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
- package/README.md +0 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
- package/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
- package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
- package/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +10 -17
- package/legacy/DateRangeCalendar/useDragRange.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +4 -8
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +3 -4
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
- package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
- package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
- package/legacy/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +5 -11
- package/modern/DateRangeCalendar/useDragRange.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +4 -8
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
- package/modern/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +5 -11
- package/node/DateRangeCalendar/useDragRange.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +4 -8
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +4 -8
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +4 -8
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -9
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -9
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -9
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -9
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +4 -8
- package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +0 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +7 -6
|
@@ -94,10 +94,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
94
94
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
95
95
|
*/
|
|
96
96
|
dayOfWeekFormatter: PropTypes.func,
|
|
97
|
-
/**
|
|
98
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
99
|
-
*/
|
|
100
|
-
defaultCalendarMonth: PropTypes.any,
|
|
101
97
|
/**
|
|
102
98
|
* The initial position in the edited date range.
|
|
103
99
|
* Used when the component is not controlled.
|
|
@@ -149,8 +145,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
149
145
|
*/
|
|
150
146
|
displayWeekNumber: PropTypes.bool,
|
|
151
147
|
/**
|
|
152
|
-
*
|
|
153
|
-
* Put it to 6
|
|
148
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
149
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
154
150
|
* @default undefined
|
|
155
151
|
*/
|
|
156
152
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -266,7 +262,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
266
262
|
*/
|
|
267
263
|
referenceDate: PropTypes.any,
|
|
268
264
|
/**
|
|
269
|
-
* Component
|
|
265
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
270
266
|
* @returns {React.ReactNode} The node to render when loading.
|
|
271
267
|
* @default () => "..."
|
|
272
268
|
*/
|
|
@@ -324,7 +320,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
324
320
|
* Choose which timezone to use for the value.
|
|
325
321
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
326
322
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
327
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
323
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
328
324
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
329
325
|
*/
|
|
330
326
|
timezone: PropTypes.string,
|
|
@@ -324,7 +324,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
324
324
|
* Choose which timezone to use for the value.
|
|
325
325
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
326
326
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
327
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
327
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
328
328
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
329
329
|
*/
|
|
330
330
|
timezone: PropTypes.string,
|
|
@@ -307,14 +307,6 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
307
307
|
endIndex: PropTypes.number.isRequired,
|
|
308
308
|
startIndex: PropTypes.number.isRequired
|
|
309
309
|
})]),
|
|
310
|
-
/**
|
|
311
|
-
* Disable specific clock time.
|
|
312
|
-
* @param {number} clockValue The value to check.
|
|
313
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
314
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
315
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
316
|
-
*/
|
|
317
|
-
shouldDisableClock: PropTypes.func,
|
|
318
310
|
/**
|
|
319
311
|
* Disable specific date.
|
|
320
312
|
*
|
|
@@ -373,7 +365,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
373
365
|
* Choose which timezone to use for the value.
|
|
374
366
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
375
367
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
376
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
368
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
377
369
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
378
370
|
*/
|
|
379
371
|
timezone: PropTypes.string,
|
|
@@ -291,14 +291,6 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
291
291
|
endIndex: PropTypes.number.isRequired,
|
|
292
292
|
startIndex: PropTypes.number.isRequired
|
|
293
293
|
})]),
|
|
294
|
-
/**
|
|
295
|
-
* Disable specific clock time.
|
|
296
|
-
* @param {number} clockValue The value to check.
|
|
297
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
298
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
299
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
300
|
-
*/
|
|
301
|
-
shouldDisableClock: PropTypes.func,
|
|
302
294
|
/**
|
|
303
295
|
* Disable specific time.
|
|
304
296
|
* @template TDate
|
|
@@ -346,7 +338,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
346
338
|
* Choose which timezone to use for the value.
|
|
347
339
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
348
340
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
349
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
341
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
350
342
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
351
343
|
*/
|
|
352
344
|
timezone: PropTypes.string,
|
|
@@ -313,7 +313,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
313
313
|
* Choose which timezone to use for the value.
|
|
314
314
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
315
315
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
316
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
316
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
317
317
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
318
318
|
*/
|
|
319
319
|
timezone: PropTypes.string,
|
|
@@ -297,14 +297,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
297
297
|
endIndex: PropTypes.number.isRequired,
|
|
298
298
|
startIndex: PropTypes.number.isRequired
|
|
299
299
|
})]),
|
|
300
|
-
/**
|
|
301
|
-
* Disable specific clock time.
|
|
302
|
-
* @param {number} clockValue The value to check.
|
|
303
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
304
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
305
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
306
|
-
*/
|
|
307
|
-
shouldDisableClock: PropTypes.func,
|
|
308
300
|
/**
|
|
309
301
|
* Disable specific date.
|
|
310
302
|
*
|
|
@@ -362,7 +354,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
362
354
|
* Choose which timezone to use for the value.
|
|
363
355
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
364
356
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
365
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
357
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
366
358
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
367
359
|
*/
|
|
368
360
|
timezone: PropTypes.string,
|
|
@@ -281,14 +281,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
281
281
|
endIndex: PropTypes.number.isRequired,
|
|
282
282
|
startIndex: PropTypes.number.isRequired
|
|
283
283
|
})]),
|
|
284
|
-
/**
|
|
285
|
-
* Disable specific clock time.
|
|
286
|
-
* @param {number} clockValue The value to check.
|
|
287
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
288
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
289
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
290
|
-
*/
|
|
291
|
-
shouldDisableClock: PropTypes.func,
|
|
292
284
|
/**
|
|
293
285
|
* Disable specific time.
|
|
294
286
|
* @template TDate
|
|
@@ -335,7 +327,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
335
327
|
* Choose which timezone to use for the value.
|
|
336
328
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
337
329
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
338
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
330
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
339
331
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
340
332
|
*/
|
|
341
333
|
timezone: PropTypes.string,
|
|
@@ -80,10 +80,6 @@ StaticDateRangePicker.propTypes = {
|
|
|
80
80
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
81
81
|
*/
|
|
82
82
|
dayOfWeekFormatter: PropTypes.func,
|
|
83
|
-
/**
|
|
84
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
85
|
-
*/
|
|
86
|
-
defaultCalendarMonth: PropTypes.any,
|
|
87
83
|
/**
|
|
88
84
|
* The initial position in the edited date range.
|
|
89
85
|
* Used when the component is not controlled.
|
|
@@ -135,8 +131,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
135
131
|
*/
|
|
136
132
|
displayWeekNumber: PropTypes.bool,
|
|
137
133
|
/**
|
|
138
|
-
*
|
|
139
|
-
* Put it to 6
|
|
134
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
135
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
140
136
|
* @default undefined
|
|
141
137
|
*/
|
|
142
138
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -217,7 +213,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
217
213
|
*/
|
|
218
214
|
referenceDate: PropTypes.any,
|
|
219
215
|
/**
|
|
220
|
-
* Component
|
|
216
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
221
217
|
* @returns {React.ReactNode} The node to render when loading.
|
|
222
218
|
* @default () => "..."
|
|
223
219
|
*/
|
|
@@ -262,7 +258,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
262
258
|
* Choose which timezone to use for the value.
|
|
263
259
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
264
260
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
265
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
261
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
266
262
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
267
263
|
*/
|
|
268
264
|
timezone: PropTypes.string,
|
|
@@ -19,7 +19,6 @@ export var renderDateRangeViewCalendar = function renderDateRangeViewCalendar(_r
|
|
|
19
19
|
shouldDisableDate = _ref.shouldDisableDate,
|
|
20
20
|
reduceAnimations = _ref.reduceAnimations,
|
|
21
21
|
onMonthChange = _ref.onMonthChange,
|
|
22
|
-
defaultCalendarMonth = _ref.defaultCalendarMonth,
|
|
23
22
|
rangePosition = _ref.rangePosition,
|
|
24
23
|
defaultRangePosition = _ref.defaultRangePosition,
|
|
25
24
|
onRangePositionChange = _ref.onRangePositionChange,
|
|
@@ -55,7 +54,6 @@ export var renderDateRangeViewCalendar = function renderDateRangeViewCalendar(_r
|
|
|
55
54
|
shouldDisableDate: shouldDisableDate,
|
|
56
55
|
reduceAnimations: reduceAnimations,
|
|
57
56
|
onMonthChange: onMonthChange,
|
|
58
|
-
defaultCalendarMonth: defaultCalendarMonth,
|
|
59
57
|
rangePosition: rangePosition,
|
|
60
58
|
defaultRangePosition: defaultRangePosition,
|
|
61
59
|
onRangePositionChange: onRangePositionChange,
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwMTY0MDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "
|
|
3
|
+
const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
|
|
4
4
|
_excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -136,7 +136,6 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
136
136
|
shouldDisableDate,
|
|
137
137
|
reduceAnimations,
|
|
138
138
|
onMonthChange,
|
|
139
|
-
defaultCalendarMonth,
|
|
140
139
|
rangePosition: rangePositionProp,
|
|
141
140
|
defaultRangePosition: inDefaultRangePosition,
|
|
142
141
|
onRangePositionChange: inOnRangePositionChange,
|
|
@@ -256,7 +255,6 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
256
255
|
} = useCalendarState({
|
|
257
256
|
value: value[0] || value[1],
|
|
258
257
|
referenceDate,
|
|
259
|
-
defaultCalendarMonth,
|
|
260
258
|
disableFuture,
|
|
261
259
|
disablePast,
|
|
262
260
|
disableSwitchToMonthOnDayFocus: true,
|
|
@@ -511,10 +509,6 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
511
509
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
512
510
|
*/
|
|
513
511
|
dayOfWeekFormatter: PropTypes.func,
|
|
514
|
-
/**
|
|
515
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
516
|
-
*/
|
|
517
|
-
defaultCalendarMonth: PropTypes.any,
|
|
518
512
|
/**
|
|
519
513
|
* The initial position in the edited date range.
|
|
520
514
|
* Used when the component is not controlled.
|
|
@@ -561,8 +555,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
561
555
|
*/
|
|
562
556
|
displayWeekNumber: PropTypes.bool,
|
|
563
557
|
/**
|
|
564
|
-
*
|
|
565
|
-
* Put it to 6
|
|
558
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
559
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
566
560
|
* @default undefined
|
|
567
561
|
*/
|
|
568
562
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -619,7 +613,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
619
613
|
*/
|
|
620
614
|
referenceDate: PropTypes.any,
|
|
621
615
|
/**
|
|
622
|
-
* Component
|
|
616
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
623
617
|
* @returns {React.ReactNode} The node to render when loading.
|
|
624
618
|
* @default () => "..."
|
|
625
619
|
*/
|
|
@@ -664,7 +658,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
664
658
|
* Choose which timezone to use for the value.
|
|
665
659
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
666
660
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
667
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
661
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
668
662
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
669
663
|
*/
|
|
670
664
|
timezone: PropTypes.string,
|
|
@@ -8,7 +8,7 @@ const resolveDateFromTarget = (target, utils, timezone) => {
|
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
10
|
const timestamp = +timestampString;
|
|
11
|
-
return utils.
|
|
11
|
+
return utils.date(new Date(timestamp).toISOString(), timezone);
|
|
12
12
|
};
|
|
13
13
|
const isSameAsDraggingDate = event => {
|
|
14
14
|
const timestampString = event.target.dataset.timestamp;
|
|
@@ -80,10 +80,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
80
80
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
81
81
|
*/
|
|
82
82
|
dayOfWeekFormatter: PropTypes.func,
|
|
83
|
-
/**
|
|
84
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
85
|
-
*/
|
|
86
|
-
defaultCalendarMonth: PropTypes.any,
|
|
87
83
|
/**
|
|
88
84
|
* The initial position in the edited date range.
|
|
89
85
|
* Used when the component is not controlled.
|
|
@@ -141,8 +137,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
141
137
|
*/
|
|
142
138
|
displayWeekNumber: PropTypes.bool,
|
|
143
139
|
/**
|
|
144
|
-
*
|
|
145
|
-
* Put it to 6
|
|
140
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
141
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
146
142
|
* @default undefined
|
|
147
143
|
*/
|
|
148
144
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -258,7 +254,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
258
254
|
*/
|
|
259
255
|
referenceDate: PropTypes.any,
|
|
260
256
|
/**
|
|
261
|
-
* Component
|
|
257
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
262
258
|
* @returns {React.ReactNode} The node to render when loading.
|
|
263
259
|
* @default () => "..."
|
|
264
260
|
*/
|
|
@@ -316,7 +312,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
316
312
|
* Choose which timezone to use for the value.
|
|
317
313
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
318
314
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
319
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
315
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
320
316
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
321
317
|
*/
|
|
322
318
|
timezone: PropTypes.string,
|
|
@@ -91,10 +91,6 @@ DesktopDateRangePicker.propTypes = {
|
|
|
91
91
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
92
92
|
*/
|
|
93
93
|
dayOfWeekFormatter: PropTypes.func,
|
|
94
|
-
/**
|
|
95
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
96
|
-
*/
|
|
97
|
-
defaultCalendarMonth: PropTypes.any,
|
|
98
94
|
/**
|
|
99
95
|
* The initial position in the edited date range.
|
|
100
96
|
* Used when the component is not controlled.
|
|
@@ -146,8 +142,8 @@ DesktopDateRangePicker.propTypes = {
|
|
|
146
142
|
*/
|
|
147
143
|
displayWeekNumber: PropTypes.bool,
|
|
148
144
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Put it to 6
|
|
145
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
146
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
151
147
|
* @default undefined
|
|
152
148
|
*/
|
|
153
149
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -263,7 +259,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
263
259
|
*/
|
|
264
260
|
referenceDate: PropTypes.any,
|
|
265
261
|
/**
|
|
266
|
-
* Component
|
|
262
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
267
263
|
* @returns {React.ReactNode} The node to render when loading.
|
|
268
264
|
* @default () => "..."
|
|
269
265
|
*/
|
|
@@ -321,7 +317,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
321
317
|
* Choose which timezone to use for the value.
|
|
322
318
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
323
319
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
324
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
320
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
325
321
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
326
322
|
*/
|
|
327
323
|
timezone: PropTypes.string,
|
|
@@ -91,10 +91,6 @@ MobileDateRangePicker.propTypes = {
|
|
|
91
91
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
92
92
|
*/
|
|
93
93
|
dayOfWeekFormatter: PropTypes.func,
|
|
94
|
-
/**
|
|
95
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
96
|
-
*/
|
|
97
|
-
defaultCalendarMonth: PropTypes.any,
|
|
98
94
|
/**
|
|
99
95
|
* The initial position in the edited date range.
|
|
100
96
|
* Used when the component is not controlled.
|
|
@@ -146,8 +142,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
146
142
|
*/
|
|
147
143
|
displayWeekNumber: PropTypes.bool,
|
|
148
144
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Put it to 6
|
|
145
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
146
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
151
147
|
* @default undefined
|
|
152
148
|
*/
|
|
153
149
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -263,7 +259,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
263
259
|
*/
|
|
264
260
|
referenceDate: PropTypes.any,
|
|
265
261
|
/**
|
|
266
|
-
* Component
|
|
262
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
267
263
|
* @returns {React.ReactNode} The node to render when loading.
|
|
268
264
|
* @default () => "..."
|
|
269
265
|
*/
|
|
@@ -321,7 +317,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
321
317
|
* Choose which timezone to use for the value.
|
|
322
318
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
323
319
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
324
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
320
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
325
321
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
326
322
|
*/
|
|
327
323
|
timezone: PropTypes.string,
|
|
@@ -321,7 +321,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
321
321
|
* Choose which timezone to use for the value.
|
|
322
322
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
323
323
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
324
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
324
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
325
325
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
326
326
|
*/
|
|
327
327
|
timezone: PropTypes.string,
|
|
@@ -304,14 +304,6 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
304
304
|
endIndex: PropTypes.number.isRequired,
|
|
305
305
|
startIndex: PropTypes.number.isRequired
|
|
306
306
|
})]),
|
|
307
|
-
/**
|
|
308
|
-
* Disable specific clock time.
|
|
309
|
-
* @param {number} clockValue The value to check.
|
|
310
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
311
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
312
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
313
|
-
*/
|
|
314
|
-
shouldDisableClock: PropTypes.func,
|
|
315
307
|
/**
|
|
316
308
|
* Disable specific date.
|
|
317
309
|
*
|
|
@@ -370,7 +362,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
370
362
|
* Choose which timezone to use for the value.
|
|
371
363
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
372
364
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
373
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
365
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
374
366
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
375
367
|
*/
|
|
376
368
|
timezone: PropTypes.string,
|
|
@@ -288,14 +288,6 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
288
288
|
endIndex: PropTypes.number.isRequired,
|
|
289
289
|
startIndex: PropTypes.number.isRequired
|
|
290
290
|
})]),
|
|
291
|
-
/**
|
|
292
|
-
* Disable specific clock time.
|
|
293
|
-
* @param {number} clockValue The value to check.
|
|
294
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
295
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
296
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
297
|
-
*/
|
|
298
|
-
shouldDisableClock: PropTypes.func,
|
|
299
291
|
/**
|
|
300
292
|
* Disable specific time.
|
|
301
293
|
* @template TDate
|
|
@@ -343,7 +335,7 @@ process.env.NODE_ENV !== "production" ? MultiInputTimeRangeField.propTypes = {
|
|
|
343
335
|
* Choose which timezone to use for the value.
|
|
344
336
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
345
337
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
346
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
338
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
347
339
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
348
340
|
*/
|
|
349
341
|
timezone: PropTypes.string,
|
|
@@ -319,7 +319,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
319
319
|
* Choose which timezone to use for the value.
|
|
320
320
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
321
321
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
322
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
322
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
323
323
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
324
324
|
*/
|
|
325
325
|
timezone: PropTypes.string,
|
|
@@ -303,14 +303,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
303
303
|
endIndex: PropTypes.number.isRequired,
|
|
304
304
|
startIndex: PropTypes.number.isRequired
|
|
305
305
|
})]),
|
|
306
|
-
/**
|
|
307
|
-
* Disable specific clock time.
|
|
308
|
-
* @param {number} clockValue The value to check.
|
|
309
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
310
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
311
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
312
|
-
*/
|
|
313
|
-
shouldDisableClock: PropTypes.func,
|
|
314
306
|
/**
|
|
315
307
|
* Disable specific date.
|
|
316
308
|
*
|
|
@@ -368,7 +360,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
368
360
|
* Choose which timezone to use for the value.
|
|
369
361
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
370
362
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
371
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
363
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
372
364
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
373
365
|
*/
|
|
374
366
|
timezone: PropTypes.string,
|
|
@@ -287,14 +287,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
287
287
|
endIndex: PropTypes.number.isRequired,
|
|
288
288
|
startIndex: PropTypes.number.isRequired
|
|
289
289
|
})]),
|
|
290
|
-
/**
|
|
291
|
-
* Disable specific clock time.
|
|
292
|
-
* @param {number} clockValue The value to check.
|
|
293
|
-
* @param {TimeView} view The clock type of the timeValue.
|
|
294
|
-
* @returns {boolean} If `true` the time will be disabled.
|
|
295
|
-
* @deprecated Consider using `shouldDisableTime`.
|
|
296
|
-
*/
|
|
297
|
-
shouldDisableClock: PropTypes.func,
|
|
298
290
|
/**
|
|
299
291
|
* Disable specific time.
|
|
300
292
|
* @template TDate
|
|
@@ -341,7 +333,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
341
333
|
* Choose which timezone to use for the value.
|
|
342
334
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
343
335
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
344
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
336
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
345
337
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
346
338
|
*/
|
|
347
339
|
timezone: PropTypes.string,
|
|
@@ -80,10 +80,6 @@ StaticDateRangePicker.propTypes = {
|
|
|
80
80
|
* @default (_day: string, date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()
|
|
81
81
|
*/
|
|
82
82
|
dayOfWeekFormatter: PropTypes.func,
|
|
83
|
-
/**
|
|
84
|
-
* Default calendar month displayed when `value={[null, null]}`.
|
|
85
|
-
*/
|
|
86
|
-
defaultCalendarMonth: PropTypes.any,
|
|
87
83
|
/**
|
|
88
84
|
* The initial position in the edited date range.
|
|
89
85
|
* Used when the component is not controlled.
|
|
@@ -135,8 +131,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
135
131
|
*/
|
|
136
132
|
displayWeekNumber: PropTypes.bool,
|
|
137
133
|
/**
|
|
138
|
-
*
|
|
139
|
-
* Put it to 6
|
|
134
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
135
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
140
136
|
* @default undefined
|
|
141
137
|
*/
|
|
142
138
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -217,7 +213,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
217
213
|
*/
|
|
218
214
|
referenceDate: PropTypes.any,
|
|
219
215
|
/**
|
|
220
|
-
* Component
|
|
216
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
221
217
|
* @returns {React.ReactNode} The node to render when loading.
|
|
222
218
|
* @default () => "..."
|
|
223
219
|
*/
|
|
@@ -262,7 +258,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
262
258
|
* Choose which timezone to use for the value.
|
|
263
259
|
* Example: "default", "system", "UTC", "America/New_York".
|
|
264
260
|
* If you pass values from other timezones to some props, they will be converted to this timezone before being used.
|
|
265
|
-
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones
|
|
261
|
+
* @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.
|
|
266
262
|
* @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.
|
|
267
263
|
*/
|
|
268
264
|
timezone: PropTypes.string,
|
|
@@ -19,7 +19,6 @@ export const renderDateRangeViewCalendar = ({
|
|
|
19
19
|
shouldDisableDate,
|
|
20
20
|
reduceAnimations,
|
|
21
21
|
onMonthChange,
|
|
22
|
-
defaultCalendarMonth,
|
|
23
22
|
rangePosition,
|
|
24
23
|
defaultRangePosition,
|
|
25
24
|
onRangePositionChange,
|
|
@@ -55,7 +54,6 @@ export const renderDateRangeViewCalendar = ({
|
|
|
55
54
|
shouldDisableDate: shouldDisableDate,
|
|
56
55
|
reduceAnimations: reduceAnimations,
|
|
57
56
|
onMonthChange: onMonthChange,
|
|
58
|
-
defaultCalendarMonth: defaultCalendarMonth,
|
|
59
57
|
rangePosition: rangePosition,
|
|
60
58
|
defaultRangePosition: defaultRangePosition,
|
|
61
59
|
onRangePositionChange: onRangePositionChange,
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwMTY0MDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|