@mui/x-date-pickers-pro 6.16.2 → 6.17.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/CHANGELOG.md +131 -0
- package/DateRangeCalendar/useDragRange.js +15 -7
- package/DateRangePicker/DateRangePickerToolbar.d.ts +10 -0
- package/DateRangePicker/DateRangePickerToolbar.js +11 -0
- package/DateRangePickerDay/DateRangePickerDay.d.ts +1 -2
- package/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/useDragRange.js +15 -7
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +11 -0
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/useDragRange.js +15 -7
- package/modern/DateRangePicker/DateRangePickerToolbar.js +11 -0
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/node/DateRangeCalendar/useDragRange.js +17 -9
- package/node/DateRangePicker/DateRangePicker.js +2 -2
- package/node/DateRangePicker/DateRangePickerToolbar.js +13 -2
- package/node/DateRangePicker/shared.js +2 -2
- package/node/DateRangePickerDay/DateRangePickerDay.js +3 -4
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +2 -2
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +2 -2
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +2 -2
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +3 -3
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +3 -3
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +3 -3
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -2
- package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
- package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +2 -2
- package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
- package/node/internals/hooks/useRangePosition.js +2 -2
- package/node/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +2 -2
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,137 @@
|
|
|
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
|
+
## 6.17.0
|
|
7
|
+
|
|
8
|
+
_Oct 27, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 The Tree View package is now officially stable!
|
|
13
|
+
|
|
14
|
+

|
|
15
|
+
|
|
16
|
+
- ✨ Improve the handling of non-numeric values by Data Grid aggregation
|
|
17
|
+
- 🚀 Support lines with different domains on the line charts
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
- 📚 Documentation improvements
|
|
20
|
+
|
|
21
|
+
### Data Grid
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid@6.17.0`
|
|
24
|
+
|
|
25
|
+
- [DataGrid] Allow custom debounce time for row positions calculation (#10708) @cherniavskii
|
|
26
|
+
- [DataGrid] Persist stable row index for focused row (#10674) @cherniavskii
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-pro@6.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid@6.17.0`, plus:
|
|
31
|
+
|
|
32
|
+
- [DataGridPro] Fix `undefined` values passed to `valueFormatter` for tree leaf nodes (#10748) @cherniavskii
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@6.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@6.17.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix `avg` aggregation to ignore non-numeric values (#10787) @cherniavskii
|
|
39
|
+
- [DataGridPremium] Fix `size` aggregation to ignore `undefined` values (#10745) @cherniavskii
|
|
40
|
+
- [DataGridPremium] Fix `sum` aggregation to ignore non-numeric values (#10730) @cherniavskii
|
|
41
|
+
- [DataGridPremium] Fix cell selection throwing index error on second page and beyond (#10784) @MBilalShafi
|
|
42
|
+
|
|
43
|
+
### Date Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@6.17.0`
|
|
46
|
+
|
|
47
|
+
- [fields] POC: Use `contentEditable` on `FakeTextField` (#10779) @flaviendelangle
|
|
48
|
+
- [pickers] Fix weekday label localization (#10809) @LukasTy
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@6.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@6.17.0`.
|
|
53
|
+
|
|
54
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.17`
|
|
55
|
+
|
|
56
|
+
- [charts] Fix text position in Safari (#10815) @lhilgert9
|
|
57
|
+
- [charts] Support lines with different domains (#10801) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Tree View / `@mui/x-tree-view@6.17.0`
|
|
60
|
+
|
|
61
|
+
No change
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Correct editing related props' description (#10798) @MBilalShafi
|
|
66
|
+
- [docs] Fix RTL data grid demo (#10728) @oliviertassinari
|
|
67
|
+
- [docs] Fix unclosed warning (#10796) @flaviendelangle
|
|
68
|
+
- [docs] Improve performance of `Save and restore the state from external storage` recipe (#10811) @michelengelen
|
|
69
|
+
|
|
70
|
+
- [test] Add missing type on `cleanText` utility function (#10780) @flaviendelangle
|
|
71
|
+
|
|
72
|
+
## 6.16.3
|
|
73
|
+
|
|
74
|
+
_Oct 20, 2023_
|
|
75
|
+
|
|
76
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
77
|
+
|
|
78
|
+
- 🎁 Add a Data Grid recipe for saving & restoring state
|
|
79
|
+
- 💫 Support animations on the bar chart
|
|
80
|
+
- 🐞 Bugfixes
|
|
81
|
+
- 📚 Documentation improvements
|
|
82
|
+
|
|
83
|
+
### Data Grid
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-data-grid@6.16.3`
|
|
86
|
+
|
|
87
|
+
- [DataGrid] Allow passing readonly arrays to `columns` and `sortingOrder` props (#10686) @pcorpet
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-data-grid-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-data-grid@6.16.3`.
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-premium@6.16.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.3`.
|
|
96
|
+
|
|
97
|
+
### Date Pickers
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-date-pickers@6.16.3`
|
|
100
|
+
|
|
101
|
+
- [fields] Correctly respect leading zeroes on seconds section (#10713) @flaviendelangle
|
|
102
|
+
- [fields] Use `onChange` instead of `onKeyPress` for Backspace editing (#10494) @flaviendelangle
|
|
103
|
+
- [pickers] Add reference links to DatePicker components (#10626) @michelengelen
|
|
104
|
+
- [pickers] Add reference links to clock components (#10645) @michelengelen
|
|
105
|
+
- [pickers] Add reference links to misc picker components (#10647) @michelengelen
|
|
106
|
+
- [pickers] Add reference links to toolbar components (#10646) @michelengelen
|
|
107
|
+
- [pickers] POC: Change the props received by the `FakeTextField` component (#10687) @flaviendelangle
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-date-pickers-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
110
|
+
|
|
111
|
+
Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
|
|
112
|
+
|
|
113
|
+
- [DateRangePicker] Fix touch based range dragging (#10664) @michelengelen
|
|
114
|
+
|
|
115
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.16`
|
|
116
|
+
|
|
117
|
+
- [charts] Add reference links to area + bar chart components (#10652) @michelengelen
|
|
118
|
+
- [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
|
|
119
|
+
- [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
|
|
120
|
+
- [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
|
|
121
|
+
- [charts] Support animation on `BarChart` (#9926) @alexfauquette
|
|
122
|
+
- [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
|
|
123
|
+
|
|
124
|
+
### Docs
|
|
125
|
+
|
|
126
|
+
- [docs] Add a recipe for saving and restoring `state` externally (#10722) @michelengelen
|
|
127
|
+
- [docs] Add example about how to add an axis (#10709) @alexfauquette
|
|
128
|
+
- [docs] Customization Playground - fix DesktopDatePicker sx props and styled examples (#10665) @noraleonte
|
|
129
|
+
- [docs] Improve meta description @oliviertassinari
|
|
130
|
+
- [docs] Make overview demo work in codesandbox (#10661) @alexfauquette
|
|
131
|
+
|
|
132
|
+
### Core
|
|
133
|
+
|
|
134
|
+
- [core] Update React renovate group with `@types` (#10723) @LukasTy
|
|
135
|
+
- [core] Update `styled-components` (#10733) @LukasTy
|
|
136
|
+
|
|
6
137
|
## 6.16.2
|
|
7
138
|
|
|
8
139
|
_Oct 12, 2023_
|
|
@@ -97,12 +97,6 @@ const useDragRangeEvents = ({
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
setRangeDragDay(newDate);
|
|
100
|
-
setIsDragging(true);
|
|
101
|
-
const button = event.target;
|
|
102
|
-
const buttonDataset = button.dataset;
|
|
103
|
-
if (buttonDataset.position) {
|
|
104
|
-
onDatePositionChange(buttonDataset.position);
|
|
105
|
-
}
|
|
106
100
|
});
|
|
107
101
|
const handleDragEnter = useEventCallback(event => {
|
|
108
102
|
if (!isDragging) {
|
|
@@ -115,13 +109,27 @@ const useDragRangeEvents = ({
|
|
|
115
109
|
});
|
|
116
110
|
const handleTouchMove = useEventCallback(event => {
|
|
117
111
|
const target = resolveElementFromTouch(event);
|
|
118
|
-
if (!
|
|
112
|
+
if (!target) {
|
|
119
113
|
return;
|
|
120
114
|
}
|
|
121
115
|
const newDate = resolveDateFromTarget(target, utils, timezone);
|
|
122
116
|
if (newDate) {
|
|
123
117
|
setRangeDragDay(newDate);
|
|
124
118
|
}
|
|
119
|
+
|
|
120
|
+
// this prevents initiating drag when user starts touchmove outside and then moves over a draggable element
|
|
121
|
+
const targetsAreIdentical = target === event.changedTouches[0].target;
|
|
122
|
+
if (!targetsAreIdentical || !isElementDraggable(newDate)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// on mobile we should only initialize dragging state after move is detected
|
|
127
|
+
setIsDragging(true);
|
|
128
|
+
const button = event.target;
|
|
129
|
+
const buttonDataset = button.dataset;
|
|
130
|
+
if (buttonDataset.position) {
|
|
131
|
+
onDatePositionChange(buttonDataset.position);
|
|
132
|
+
}
|
|
125
133
|
});
|
|
126
134
|
const handleDragLeave = useEventCallback(event => {
|
|
127
135
|
if (!isDragging) {
|
|
@@ -8,5 +8,15 @@ export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProp
|
|
|
8
8
|
}
|
|
9
9
|
export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Demos:
|
|
13
|
+
*
|
|
14
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
15
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
16
|
+
*
|
|
17
|
+
* API:
|
|
18
|
+
*
|
|
19
|
+
* - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
|
|
20
|
+
*/
|
|
11
21
|
declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
|
|
12
22
|
export { DateRangePickerToolbar };
|
|
@@ -33,6 +33,17 @@ const DateRangePickerToolbarContainer = styled('div', {
|
|
|
33
33
|
})({
|
|
34
34
|
display: 'flex'
|
|
35
35
|
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Demos:
|
|
39
|
+
*
|
|
40
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
41
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
42
|
+
*
|
|
43
|
+
* API:
|
|
44
|
+
*
|
|
45
|
+
* - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
|
|
46
|
+
*/
|
|
36
47
|
const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
|
|
37
48
|
const utils = useUtils();
|
|
38
49
|
const props = useThemeProps({
|
|
@@ -37,10 +37,9 @@ export interface DateRangePickerDayProps<TDate> extends Omit<PickersDayProps<TDa
|
|
|
37
37
|
}
|
|
38
38
|
type DateRangePickerDayComponent = <TDate>(props: DateRangePickerDayProps<TDate> & React.RefAttributes<HTMLButtonElement>) => React.JSX.Element;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
40
|
* Demos:
|
|
42
41
|
*
|
|
43
|
-
* - [
|
|
42
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
44
43
|
*
|
|
45
44
|
* API:
|
|
46
45
|
*
|
|
@@ -377,10 +377,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
|
|
|
377
377
|
} : void 0;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
381
380
|
* Demos:
|
|
382
381
|
*
|
|
383
|
-
* - [
|
|
382
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
384
383
|
*
|
|
385
384
|
* API:
|
|
386
385
|
*
|
|
@@ -114,7 +114,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
114
114
|
/**
|
|
115
115
|
* The color of the component.
|
|
116
116
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
117
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
117
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
118
118
|
* @default 'primary'
|
|
119
119
|
*/
|
|
120
120
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -119,7 +119,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
119
119
|
/**
|
|
120
120
|
* The color of the component.
|
|
121
121
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
122
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
122
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
123
123
|
* @default 'primary'
|
|
124
124
|
*/
|
|
125
125
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -119,7 +119,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
119
119
|
/**
|
|
120
120
|
* The color of the component.
|
|
121
121
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
122
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
122
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
123
123
|
* @default 'primary'
|
|
124
124
|
*/
|
|
125
125
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
package/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 = "MTY5ODM1NzYwMDAwMA==";
|
|
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
|
|
@@ -97,12 +97,6 @@ var useDragRangeEvents = function useDragRangeEvents(_ref) {
|
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
setRangeDragDay(newDate);
|
|
100
|
-
setIsDragging(true);
|
|
101
|
-
var button = event.target;
|
|
102
|
-
var buttonDataset = button.dataset;
|
|
103
|
-
if (buttonDataset.position) {
|
|
104
|
-
onDatePositionChange(buttonDataset.position);
|
|
105
|
-
}
|
|
106
100
|
});
|
|
107
101
|
var handleDragEnter = useEventCallback(function (event) {
|
|
108
102
|
if (!isDragging) {
|
|
@@ -115,13 +109,27 @@ var useDragRangeEvents = function useDragRangeEvents(_ref) {
|
|
|
115
109
|
});
|
|
116
110
|
var handleTouchMove = useEventCallback(function (event) {
|
|
117
111
|
var target = resolveElementFromTouch(event);
|
|
118
|
-
if (!
|
|
112
|
+
if (!target) {
|
|
119
113
|
return;
|
|
120
114
|
}
|
|
121
115
|
var newDate = resolveDateFromTarget(target, utils, timezone);
|
|
122
116
|
if (newDate) {
|
|
123
117
|
setRangeDragDay(newDate);
|
|
124
118
|
}
|
|
119
|
+
|
|
120
|
+
// this prevents initiating drag when user starts touchmove outside and then moves over a draggable element
|
|
121
|
+
var targetsAreIdentical = target === event.changedTouches[0].target;
|
|
122
|
+
if (!targetsAreIdentical || !isElementDraggable(newDate)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// on mobile we should only initialize dragging state after move is detected
|
|
127
|
+
setIsDragging(true);
|
|
128
|
+
var button = event.target;
|
|
129
|
+
var buttonDataset = button.dataset;
|
|
130
|
+
if (buttonDataset.position) {
|
|
131
|
+
onDatePositionChange(buttonDataset.position);
|
|
132
|
+
}
|
|
125
133
|
});
|
|
126
134
|
var handleDragLeave = useEventCallback(function (event) {
|
|
127
135
|
if (!isDragging) {
|
|
@@ -36,6 +36,17 @@ var DateRangePickerToolbarContainer = styled('div', {
|
|
|
36
36
|
})({
|
|
37
37
|
display: 'flex'
|
|
38
38
|
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Demos:
|
|
42
|
+
*
|
|
43
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
44
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
45
|
+
*
|
|
46
|
+
* API:
|
|
47
|
+
*
|
|
48
|
+
* - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
|
|
49
|
+
*/
|
|
39
50
|
var DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
|
|
40
51
|
var utils = useUtils();
|
|
41
52
|
var props = useThemeProps({
|
|
@@ -356,10 +356,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
|
|
|
356
356
|
} : void 0;
|
|
357
357
|
|
|
358
358
|
/**
|
|
359
|
-
*
|
|
360
359
|
* Demos:
|
|
361
360
|
*
|
|
362
|
-
* - [
|
|
361
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
363
362
|
*
|
|
364
363
|
* API:
|
|
365
364
|
*
|
|
@@ -107,7 +107,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
107
107
|
/**
|
|
108
108
|
* The color of the component.
|
|
109
109
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
110
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
110
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
111
111
|
* @default 'primary'
|
|
112
112
|
*/
|
|
113
113
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -112,7 +112,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
112
112
|
/**
|
|
113
113
|
* The color of the component.
|
|
114
114
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
115
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
115
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
116
116
|
* @default 'primary'
|
|
117
117
|
*/
|
|
118
118
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -112,7 +112,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
112
112
|
/**
|
|
113
113
|
* The color of the component.
|
|
114
114
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
115
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
115
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
116
116
|
* @default 'primary'
|
|
117
117
|
*/
|
|
118
118
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
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 = "MTY5ODM1NzYwMDAwMA==";
|
|
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
|
|
@@ -96,12 +96,6 @@ const useDragRangeEvents = ({
|
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
setRangeDragDay(newDate);
|
|
99
|
-
setIsDragging(true);
|
|
100
|
-
const button = event.target;
|
|
101
|
-
const buttonDataset = button.dataset;
|
|
102
|
-
if (buttonDataset.position) {
|
|
103
|
-
onDatePositionChange(buttonDataset.position);
|
|
104
|
-
}
|
|
105
99
|
});
|
|
106
100
|
const handleDragEnter = useEventCallback(event => {
|
|
107
101
|
if (!isDragging) {
|
|
@@ -114,13 +108,27 @@ const useDragRangeEvents = ({
|
|
|
114
108
|
});
|
|
115
109
|
const handleTouchMove = useEventCallback(event => {
|
|
116
110
|
const target = resolveElementFromTouch(event);
|
|
117
|
-
if (!
|
|
111
|
+
if (!target) {
|
|
118
112
|
return;
|
|
119
113
|
}
|
|
120
114
|
const newDate = resolveDateFromTarget(target, utils, timezone);
|
|
121
115
|
if (newDate) {
|
|
122
116
|
setRangeDragDay(newDate);
|
|
123
117
|
}
|
|
118
|
+
|
|
119
|
+
// this prevents initiating drag when user starts touchmove outside and then moves over a draggable element
|
|
120
|
+
const targetsAreIdentical = target === event.changedTouches[0].target;
|
|
121
|
+
if (!targetsAreIdentical || !isElementDraggable(newDate)) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// on mobile we should only initialize dragging state after move is detected
|
|
126
|
+
setIsDragging(true);
|
|
127
|
+
const button = event.target;
|
|
128
|
+
const buttonDataset = button.dataset;
|
|
129
|
+
if (buttonDataset.position) {
|
|
130
|
+
onDatePositionChange(buttonDataset.position);
|
|
131
|
+
}
|
|
124
132
|
});
|
|
125
133
|
const handleDragLeave = useEventCallback(event => {
|
|
126
134
|
if (!isDragging) {
|
|
@@ -33,6 +33,17 @@ const DateRangePickerToolbarContainer = styled('div', {
|
|
|
33
33
|
})({
|
|
34
34
|
display: 'flex'
|
|
35
35
|
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Demos:
|
|
39
|
+
*
|
|
40
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
41
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
42
|
+
*
|
|
43
|
+
* API:
|
|
44
|
+
*
|
|
45
|
+
* - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
|
|
46
|
+
*/
|
|
36
47
|
const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
|
|
37
48
|
const utils = useUtils();
|
|
38
49
|
const props = useThemeProps({
|
|
@@ -377,10 +377,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
|
|
|
377
377
|
} : void 0;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
|
-
*
|
|
381
380
|
* Demos:
|
|
382
381
|
*
|
|
383
|
-
* - [
|
|
382
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
384
383
|
*
|
|
385
384
|
* API:
|
|
386
385
|
*
|
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
113
113
|
/**
|
|
114
114
|
* The color of the component.
|
|
115
115
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
116
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
116
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
117
117
|
* @default 'primary'
|
|
118
118
|
*/
|
|
119
119
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -118,7 +118,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
118
118
|
/**
|
|
119
119
|
* The color of the component.
|
|
120
120
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
121
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
121
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
122
122
|
* @default 'primary'
|
|
123
123
|
*/
|
|
124
124
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -118,7 +118,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
118
118
|
/**
|
|
119
119
|
* The color of the component.
|
|
120
120
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
121
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
121
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
122
122
|
* @default 'primary'
|
|
123
123
|
*/
|
|
124
124
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
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 = "MTY5ODM1NzYwMDAwMA==";
|
|
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
|
|
@@ -29,8 +29,8 @@ var _useRangePosition = require("../internals/hooks/useRangePosition");
|
|
|
29
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
30
|
const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "defaultCalendarMonth", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "components", "componentsProps", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone"],
|
|
31
31
|
_excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
|
|
32
|
-
function _getRequireWildcardCache(
|
|
33
|
-
function _interopRequireWildcard(
|
|
32
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
34
34
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
35
35
|
const DateRangeCalendarRoot = (0, _styles.styled)('div', {
|
|
36
36
|
name: 'MuiDateRangeCalendar',
|
|
@@ -9,8 +9,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
11
11
|
var _dateUtils = require("../internals/utils/date-utils");
|
|
12
|
-
function _getRequireWildcardCache(
|
|
13
|
-
function _interopRequireWildcard(
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
const resolveDateFromTarget = (target, utils, timezone) => {
|
|
15
15
|
const timestampString = target.dataset.timestamp;
|
|
16
16
|
if (!timestampString) {
|
|
@@ -105,12 +105,6 @@ const useDragRangeEvents = ({
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
setRangeDragDay(newDate);
|
|
108
|
-
setIsDragging(true);
|
|
109
|
-
const button = event.target;
|
|
110
|
-
const buttonDataset = button.dataset;
|
|
111
|
-
if (buttonDataset.position) {
|
|
112
|
-
onDatePositionChange(buttonDataset.position);
|
|
113
|
-
}
|
|
114
108
|
});
|
|
115
109
|
const handleDragEnter = (0, _useEventCallback.default)(event => {
|
|
116
110
|
if (!isDragging) {
|
|
@@ -123,13 +117,27 @@ const useDragRangeEvents = ({
|
|
|
123
117
|
});
|
|
124
118
|
const handleTouchMove = (0, _useEventCallback.default)(event => {
|
|
125
119
|
const target = resolveElementFromTouch(event);
|
|
126
|
-
if (!
|
|
120
|
+
if (!target) {
|
|
127
121
|
return;
|
|
128
122
|
}
|
|
129
123
|
const newDate = resolveDateFromTarget(target, utils, timezone);
|
|
130
124
|
if (newDate) {
|
|
131
125
|
setRangeDragDay(newDate);
|
|
132
126
|
}
|
|
127
|
+
|
|
128
|
+
// this prevents initiating drag when user starts touchmove outside and then moves over a draggable element
|
|
129
|
+
const targetsAreIdentical = target === event.changedTouches[0].target;
|
|
130
|
+
if (!targetsAreIdentical || !isElementDraggable(newDate)) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// on mobile we should only initialize dragging state after move is detected
|
|
135
|
+
setIsDragging(true);
|
|
136
|
+
const button = event.target;
|
|
137
|
+
const buttonDataset = button.dataset;
|
|
138
|
+
if (buttonDataset.position) {
|
|
139
|
+
onDatePositionChange(buttonDataset.position);
|
|
140
|
+
}
|
|
133
141
|
});
|
|
134
142
|
const handleDragLeave = (0, _useEventCallback.default)(event => {
|
|
135
143
|
if (!isDragging) {
|
|
@@ -16,8 +16,8 @@ var _DesktopDateRangePicker = require("../DesktopDateRangePicker");
|
|
|
16
16
|
var _MobileDateRangePicker = require("../MobileDateRangePicker");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["desktopModeMediaQuery"];
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
/**
|
|
22
22
|
* Demos:
|
|
23
23
|
*
|
|
@@ -17,8 +17,8 @@ var _internals = require("@mui/x-date-pickers/internals");
|
|
|
17
17
|
var _dateRangePickerToolbarClasses = require("./dateRangePickerToolbarClasses");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
const _excluded = ["value", "rangePosition", "onRangePositionChange", "toolbarFormat", "className"];
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
const useUtilityClasses = ownerState => {
|
|
23
23
|
const {
|
|
24
24
|
classes
|
|
@@ -41,6 +41,17 @@ const DateRangePickerToolbarContainer = (0, _styles.styled)('div', {
|
|
|
41
41
|
})({
|
|
42
42
|
display: 'flex'
|
|
43
43
|
});
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Demos:
|
|
47
|
+
*
|
|
48
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
49
|
+
* - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)
|
|
50
|
+
*
|
|
51
|
+
* API:
|
|
52
|
+
*
|
|
53
|
+
* - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)
|
|
54
|
+
*/
|
|
44
55
|
const DateRangePickerToolbar = exports.DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
|
|
45
56
|
const utils = (0, _internals.useUtils)();
|
|
46
57
|
const props = (0, _styles.useThemeProps)({
|
|
@@ -12,8 +12,8 @@ var _styles = require("@mui/material/styles");
|
|
|
12
12
|
var _internals = require("@mui/x-date-pickers/internals");
|
|
13
13
|
var _DateRangePickerToolbar = require("./DateRangePickerToolbar");
|
|
14
14
|
const _excluded = ["components", "componentsProps"];
|
|
15
|
-
function _getRequireWildcardCache(
|
|
16
|
-
function _interopRequireWildcard(
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function useDateRangePickerDefaultizedProps(props, name) {
|
|
18
18
|
const utils = (0, _internals.useUtils)();
|
|
19
19
|
const defaultDates = (0, _internals.useDefaultDates)();
|
|
@@ -19,8 +19,8 @@ var _dateRangePickerDayClasses = require("./dateRangePickerDayClasses");
|
|
|
19
19
|
var _releaseInfo = require("../internals/utils/releaseInfo");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const _excluded = ["className", "day", "outsideCurrentMonth", "isEndOfHighlighting", "isEndOfPreviewing", "isHighlighting", "isPreviewing", "isStartOfHighlighting", "isStartOfPreviewing", "selected", "isVisuallySelected", "sx", "draggable", "isFirstVisibleCell", "isLastVisibleCell"];
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
@@ -386,10 +386,9 @@ process.env.NODE_ENV !== "production" ? DateRangePickerDayRaw.propTypes = {
|
|
|
386
386
|
} : void 0;
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
*
|
|
390
389
|
* Demos:
|
|
391
390
|
*
|
|
392
|
-
* - [
|
|
391
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
393
392
|
*
|
|
394
393
|
* API:
|
|
395
394
|
*
|
|
@@ -17,8 +17,8 @@ var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
|
|
|
17
17
|
var _MultiInputDateRangeField = require("../MultiInputDateRangeField");
|
|
18
18
|
var _useDesktopRangePicker = require("../internals/hooks/useDesktopRangePicker");
|
|
19
19
|
var _validateDateRange = require("../internals/utils/validation/validateDateRange");
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
/**
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
@@ -17,8 +17,8 @@ var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
|
|
|
17
17
|
var _MultiInputDateRangeField = require("../MultiInputDateRangeField");
|
|
18
18
|
var _useMobileRangePicker = require("../internals/hooks/useMobileRangePicker");
|
|
19
19
|
var _validateDateRange = require("../internals/utils/validation/validateDateRange");
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
22
|
/**
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
@@ -22,8 +22,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
22
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "disabled", "autoFocus", "unstableStartFieldRef", "unstableEndFieldRef", "className"],
|
|
23
23
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
24
24
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
27
|
const multiInputDateRangeFieldClasses = exports.multiInputDateRangeFieldClasses = (0, _utils2.unstable_generateUtilityClasses)('MuiMultiInputDateRangeField', ['root', 'separator']);
|
|
28
28
|
const getMultiInputDateRangeFieldUtilityClass = slot => (0, _utils2.unstable_generateUtilityClass)('MuiMultiInputDateRangeField', slot);
|
|
29
29
|
exports.getMultiInputDateRangeFieldUtilityClass = getMultiInputDateRangeFieldUtilityClass;
|
|
@@ -22,8 +22,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
22
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "disabled", "autoFocus", "unstableStartFieldRef", "unstableEndFieldRef", "className"],
|
|
23
23
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
24
24
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
27
|
const multiInputDateTimeRangeFieldClasses = exports.multiInputDateTimeRangeFieldClasses = (0, _utils2.unstable_generateUtilityClasses)('MuiMultiInputDateTimeRangeField', ['root', 'separator']);
|
|
28
28
|
const getMultiInputDateTimeRangeFieldUtilityClass = slot => (0, _utils2.unstable_generateUtilityClass)('MuiMultiInputDateTimeRangeField', slot);
|
|
29
29
|
exports.getMultiInputDateTimeRangeFieldUtilityClass = getMultiInputDateTimeRangeFieldUtilityClass;
|
|
@@ -22,8 +22,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
22
22
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "disabled", "autoFocus", "unstableStartFieldRef", "unstableEndFieldRef", "className"],
|
|
23
23
|
_excluded2 = ["onKeyDown", "ref", "readOnly", "inputMode"],
|
|
24
24
|
_excluded3 = ["onKeyDown", "ref", "readOnly", "inputMode"];
|
|
25
|
-
function _getRequireWildcardCache(
|
|
26
|
-
function _interopRequireWildcard(
|
|
25
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
26
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
27
|
const multiInputTimeRangeFieldClasses = exports.multiInputTimeRangeFieldClasses = (0, _utils2.unstable_generateUtilityClasses)('MuiMultiInputTimeRangeField', ['root', 'separator']);
|
|
28
28
|
const getMultiInputTimeRangeFieldUtilityClass = slot => (0, _utils2.unstable_generateUtilityClass)('MuiMultiInputTimeRangeField', slot);
|
|
29
29
|
exports.getMultiInputTimeRangeFieldUtilityClass = getMultiInputTimeRangeFieldUtilityClass;
|
|
@@ -19,8 +19,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
19
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
|
|
20
20
|
_excluded2 = ["inputRef"],
|
|
21
21
|
_excluded3 = ["ref", "onPaste", "onKeyDown", "inputMode", "readOnly", "clearable", "onClear"];
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
/**
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
@@ -122,7 +122,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
122
122
|
/**
|
|
123
123
|
* The color of the component.
|
|
124
124
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
125
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
125
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
126
126
|
* @default 'primary'
|
|
127
127
|
*/
|
|
128
128
|
color: _propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -19,8 +19,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
19
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
|
|
20
20
|
_excluded2 = ["inputRef"],
|
|
21
21
|
_excluded3 = ["ref", "onPaste", "onKeyDown", "inputMode", "readOnly", "clearable", "onClear"];
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
/**
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
@@ -127,7 +127,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
127
127
|
/**
|
|
128
128
|
* The color of the component.
|
|
129
129
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
130
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
130
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
131
131
|
* @default 'primary'
|
|
132
132
|
*/
|
|
133
133
|
color: _propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -19,8 +19,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
19
|
const _excluded = ["slots", "slotProps", "components", "componentsProps", "InputProps", "inputProps"],
|
|
20
20
|
_excluded2 = ["inputRef"],
|
|
21
21
|
_excluded3 = ["ref", "onPaste", "onKeyDown", "inputMode", "readOnly", "clearable", "onClear"];
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
/**
|
|
25
25
|
* Demos:
|
|
26
26
|
*
|
|
@@ -127,7 +127,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
127
127
|
/**
|
|
128
128
|
* The color of the component.
|
|
129
129
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
130
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
130
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
131
131
|
* @default 'primary'
|
|
132
132
|
*/
|
|
133
133
|
color: _propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -13,8 +13,8 @@ var _shared = require("../DateRangePicker/shared");
|
|
|
13
13
|
var _dateRangeViewRenderers = require("../dateRangeViewRenderers");
|
|
14
14
|
var _valueManagers = require("../internals/utils/valueManagers");
|
|
15
15
|
var _validateDateRange = require("../internals/utils/validation/validateDateRange");
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
/**
|
|
19
19
|
* Demos:
|
|
20
20
|
*
|
|
@@ -7,8 +7,8 @@ exports.renderDateRangeViewCalendar = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _DateRangeCalendar = require("../DateRangeCalendar");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _getRequireWildcardCache(
|
|
11
|
-
function _interopRequireWildcard(
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
12
|
/**
|
|
13
13
|
* We don't pass all the props down to `DateRangeCalendar`,
|
|
14
14
|
* because otherwise some unwanted props would be passed to the HTML element.
|
package/node/index.js
CHANGED
|
@@ -18,8 +18,8 @@ var _releaseInfo = require("../../utils/releaseInfo");
|
|
|
18
18
|
var _useRangePosition = require("../useRangePosition");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
20
|
const _excluded = ["props"];
|
|
21
|
-
function _getRequireWildcardCache(
|
|
22
|
-
function _interopRequireWildcard(
|
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
24
24
|
const useDesktopRangePicker = _ref => {
|
|
25
25
|
let {
|
|
@@ -13,8 +13,8 @@ var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallb
|
|
|
13
13
|
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
14
14
|
var _internals = require("@mui/x-date-pickers/internals");
|
|
15
15
|
const _excluded = ["clearable", "onClear"];
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
const useMultiInputFieldSlotProps = ({
|
|
19
19
|
wrapperVariant,
|
|
20
20
|
open,
|
|
@@ -19,8 +19,8 @@ var _releaseInfo = require("../../utils/releaseInfo");
|
|
|
19
19
|
var _useRangePosition = require("../useRangePosition");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
const _excluded = ["props"];
|
|
22
|
-
function _getRequireWildcardCache(
|
|
23
|
-
function _interopRequireWildcard(
|
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
24
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
25
25
|
const useMobileRangePicker = _ref => {
|
|
26
26
|
let {
|
|
@@ -8,8 +8,8 @@ exports.useRangePosition = void 0;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _useControlled = _interopRequireDefault(require("@mui/utils/useControlled"));
|
|
10
10
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
11
|
-
function _getRequireWildcardCache(
|
|
12
|
-
function _interopRequireWildcard(
|
|
11
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
const useRangePosition = props => {
|
|
14
14
|
const singleInputFieldRef = React.useRef();
|
|
15
15
|
const [rangePosition, setRangePosition] = (0, _useControlled.default)({
|
|
@@ -16,8 +16,8 @@ var _internals = require("@mui/x-date-pickers/internals");
|
|
|
16
16
|
var _useRangePosition = require("../useRangePosition");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
18
|
const _excluded = ["props", "ref"];
|
|
19
|
-
function _getRequireWildcardCache(
|
|
20
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
const PickerStaticLayout = (0, _styles.styled)(_PickersLayout.PickersLayout)(({
|
|
22
22
|
theme
|
|
23
23
|
}) => ({
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTY5ODM1NzYwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.17.0",
|
|
4
4
|
"description": "The commercial edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"directory": "packages/x-date-pickers-pro"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.23.
|
|
34
|
-
"@mui/base": "^5.0.0-beta.
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-date-pickers": "6.
|
|
33
|
+
"@babel/runtime": "^7.23.2",
|
|
34
|
+
"@mui/base": "^5.0.0-beta.20",
|
|
35
|
+
"@mui/utils": "^5.14.14",
|
|
36
|
+
"@mui/x-date-pickers": "6.17.0",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
39
|
"prop-types": "^15.8.1",
|