@mui/x-date-pickers-pro 6.16.1 → 6.16.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 +169 -0
- package/DateRangeCalendar/useDragRange.js +15 -7
- package/DateRangePicker/DateRangePicker.d.ts +10 -0
- package/DateRangePicker/DateRangePicker.js +10 -0
- 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/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +10 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +10 -0
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +10 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +10 -0
- package/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +10 -0
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +10 -0
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +10 -0
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +10 -0
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +10 -0
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +10 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +10 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +11 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +10 -0
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +11 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +10 -0
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -1
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +10 -0
- package/StaticDateRangePicker/StaticDateRangePicker.js +10 -0
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/useDragRange.js +15 -7
- package/legacy/DateRangePicker/DateRangePicker.js +10 -0
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +11 -0
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +10 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +10 -0
- package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +10 -0
- package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +10 -0
- package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +10 -0
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +11 -1
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +11 -1
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -1
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +10 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/useDragRange.js +15 -7
- package/modern/DateRangePicker/DateRangePicker.js +10 -0
- package/modern/DateRangePicker/DateRangePickerToolbar.js +11 -0
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +10 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +10 -0
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +10 -0
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +10 -0
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +10 -0
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +11 -1
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +11 -1
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +11 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +10 -0
- 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 +12 -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 +12 -2
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +12 -2
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +12 -2
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +12 -2
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +12 -2
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +13 -3
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +13 -3
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +13 -3
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +12 -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,175 @@
|
|
|
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.16.3
|
|
7
|
+
|
|
8
|
+
_Oct 20, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add a Data Grid recipe for saving & restoring state
|
|
13
|
+
- 💫 Support animations on the bar chart
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@6.16.3`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Allow passing readonly arrays to `columns` and `sortingOrder` props (#10686) @pcorpet
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
24
|
+
|
|
25
|
+
Same changes as in `@mui/x-data-grid@6.16.3`.
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid-premium@6.16.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
28
|
+
|
|
29
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.3`.
|
|
30
|
+
|
|
31
|
+
### Date Pickers
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-date-pickers@6.16.3`
|
|
34
|
+
|
|
35
|
+
- [fields] Correctly respect leading zeroes on seconds section (#10713) @flaviendelangle
|
|
36
|
+
- [fields] Use `onChange` instead of `onKeyPress` for Backspace editing (#10494) @flaviendelangle
|
|
37
|
+
- [pickers] Add reference links to DatePicker components (#10626) @michelengelen
|
|
38
|
+
- [pickers] Add reference links to clock components (#10645) @michelengelen
|
|
39
|
+
- [pickers] Add reference links to misc picker components (#10647) @michelengelen
|
|
40
|
+
- [pickers] Add reference links to toolbar components (#10646) @michelengelen
|
|
41
|
+
- [pickers] POC: Change the props received by the `FakeTextField` component (#10687) @flaviendelangle
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers-pro@6.16.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
44
|
+
|
|
45
|
+
Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
|
|
46
|
+
|
|
47
|
+
- [DateRangePicker] Fix touch based range dragging (#10664) @michelengelen
|
|
48
|
+
|
|
49
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.16`
|
|
50
|
+
|
|
51
|
+
- [charts] Add reference links to area + bar chart components (#10652) @michelengelen
|
|
52
|
+
- [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
|
|
53
|
+
- [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
|
|
54
|
+
- [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
|
|
55
|
+
- [charts] Support animation on `BarChart` (#9926) @alexfauquette
|
|
56
|
+
- [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
|
|
57
|
+
|
|
58
|
+
### Docs
|
|
59
|
+
|
|
60
|
+
- [docs] Add a recipe for saving and restoring `state` externally (#10722) @michelengelen
|
|
61
|
+
- [docs] Add example about how to add an axis (#10709) @alexfauquette
|
|
62
|
+
- [docs] Customization Playground - fix DesktopDatePicker sx props and styled examples (#10665) @noraleonte
|
|
63
|
+
- [docs] Improve meta description @oliviertassinari
|
|
64
|
+
- [docs] Make overview demo work in codesandbox (#10661) @alexfauquette
|
|
65
|
+
|
|
66
|
+
### Core
|
|
67
|
+
|
|
68
|
+
- [core] Update React renovate group with `@types` (#10723) @LukasTy
|
|
69
|
+
- [core] Update `styled-components` (#10733) @LukasTy
|
|
70
|
+
|
|
71
|
+
## 6.16.2
|
|
72
|
+
|
|
73
|
+
_Oct 12, 2023_
|
|
74
|
+
|
|
75
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
76
|
+
|
|
77
|
+
- 📊 Chart's legend text management has been reworked and contains breaking changes (#10138) @alexfauquette
|
|
78
|
+
- 📝 Add [Bulk editing](https://mui.com/x/react-data-grid/recipes-editing/#bulk-editing) demo (#10333) @cherniavskii
|
|
79
|
+
- 🚀 Column grouping now works smoothly with column pinning (#10518) @MBilalShafi
|
|
80
|
+
- 🌍 Improve Arabic (ar-SD) and Spanish (es-ES) locales
|
|
81
|
+
- 🐞 Bugfixes
|
|
82
|
+
- 📚 Documentation improvements
|
|
83
|
+
|
|
84
|
+
### Data Grid
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-data-grid@6.16.2`
|
|
87
|
+
|
|
88
|
+
- [DataGrid] Fix `LazyLoading` demo crash (#10621) @MBilalShafi
|
|
89
|
+
- [DataGrid] Fix cells overlapping the scrollbar in iOS Safari (#10633) @cherniavskii
|
|
90
|
+
- [DataGrid] Fix `getRowId is not defined` error (#10613) @romgrk
|
|
91
|
+
- [DataGrid] Get quick filter to work OOTB with `date` and `dateTime` fields (#10636) @MBilalShafi
|
|
92
|
+
- [DataGrid] Make cursor for selectable cells to be `default` unless editable (#9997) @gitstart
|
|
93
|
+
- [DataGrid] Remove unnecessary syntax in JSDoc (#10567) @Lev-Shapiro
|
|
94
|
+
- [DataGrid] Update row hover behavior to match native hover (#10623) @cherniavskii
|
|
95
|
+
- [l10n] Improve Arabic (ar-SD) locale (#10625) @alabenyahia
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-data-grid-pro@6.16.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-data-grid@6.16.2`, plus:
|
|
100
|
+
|
|
101
|
+
- [DataGridPro] Improve column grouping and column pinning friendship (#10518) @MBilalShafi
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-data-grid-premium@6.16.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
104
|
+
|
|
105
|
+
Same changes as in `@mui/x-data-grid-pro@6.16.2`.
|
|
106
|
+
|
|
107
|
+
### Date Pickers
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-date-pickers@6.16.2`
|
|
110
|
+
|
|
111
|
+
- [DateTimePicker] Add support for `DigitalClock` view renderer (#10624) @LukasTy
|
|
112
|
+
- [fields] Bootstrap the multi-HTML input component (#10638) @flaviendelangle
|
|
113
|
+
- [pickers] Fix timezone `UTC` false positive (#10586) @alexfauquette
|
|
114
|
+
- [l10n] Improve Spanish (es-ES) locale (#10588) @eduardodallmann
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-date-pickers-pro@6.16.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-date-pickers@6.16.2`.
|
|
119
|
+
|
|
120
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.15`
|
|
121
|
+
|
|
122
|
+
#### Breaking changes
|
|
123
|
+
|
|
124
|
+
The charts have a new text display mechanism.
|
|
125
|
+
It adds line break support and avoids overlapping text in the legend.
|
|
126
|
+
This comes with some breaking changes.
|
|
127
|
+
|
|
128
|
+
- The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
|
|
129
|
+
```diff
|
|
130
|
+
- <text>The label</text>
|
|
131
|
+
+ <text><tspan>The label</tspan></text>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
- The top margin has been reduced from 100 to 50 to benefit from the denser legend.
|
|
135
|
+
|
|
136
|
+
- To accurately compute the text size and then place it, styling should be provided as a JS object. For example, to set the legend font size, you should do:
|
|
137
|
+
```jsx
|
|
138
|
+
<PieChart
|
|
139
|
+
{/** ... */}
|
|
140
|
+
slotProps={{
|
|
141
|
+
legend: {
|
|
142
|
+
labelStyle: {
|
|
143
|
+
fontSize: 16,
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
}}
|
|
147
|
+
/>
|
|
148
|
+
```
|
|
149
|
+
Support for other text elements (axis labels and tick labels) will be implemented in follow-up PR.
|
|
150
|
+
|
|
151
|
+
#### Changes
|
|
152
|
+
|
|
153
|
+
- [charts] Fix typo between internal/external variable (#10640) @alexfauquette
|
|
154
|
+
- [charts] Improve the management of the text (#10138) @alexfauquette
|
|
155
|
+
|
|
156
|
+
### Docs
|
|
157
|
+
|
|
158
|
+
- [docs] Add bulk editing demo (#10333) @cherniavskii
|
|
159
|
+
- [docs] Add reference links to DateRangePicker components (#10629) @michelengelen
|
|
160
|
+
- [docs] Add reference links to DateTimePicker components (#10628) @michelengelen
|
|
161
|
+
- [docs] Add reference links to picker field components (#10631) @michelengelen
|
|
162
|
+
- [docs] Added reference links to TimePicker components (#10627) @michelengelen
|
|
163
|
+
- [docs] Avoid Pickers playground error due to empty views (#10654) @LukasTy
|
|
164
|
+
- [docs] Fix DataGrid[Pro/Premium] reference links (#10620) @michelengelen
|
|
165
|
+
|
|
166
|
+
### Core
|
|
167
|
+
|
|
168
|
+
- [core] Bump monorepo (#10619) @alexfauquette
|
|
169
|
+
- [core] Update `no-response` workflow (#10491) @MBilalShafi
|
|
170
|
+
- [core] Update the issue templates to reflect the new support workflow (#10651) @MBilalShafi
|
|
171
|
+
- [test] Fix `testEval` not invoking test assertions (#10587) @cherniavskii
|
|
172
|
+
- [test] Fix dev mode warning (#10610) @oliviertassinari
|
|
173
|
+
- [test] Set UUID chance seed in visual tests (#10609) @oliviertassinari
|
|
174
|
+
|
|
6
175
|
## 6.16.1
|
|
7
176
|
|
|
8
177
|
_Oct 6, 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) {
|
|
@@ -3,5 +3,15 @@ import { DateRangePickerProps } from './DateRangePicker.types';
|
|
|
3
3
|
type DatePickerComponent = (<TDate>(props: DateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DateRangePicker API](https://mui.com/x/api/date-pickers/date-range-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const DateRangePicker: DatePickerComponent;
|
|
7
17
|
export { DateRangePicker };
|
|
@@ -9,6 +9,16 @@ import { refType } from '@mui/utils';
|
|
|
9
9
|
import { DesktopDateRangePicker } from '../DesktopDateRangePicker';
|
|
10
10
|
import { MobileDateRangePicker } from '../MobileDateRangePicker';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
/**
|
|
13
|
+
* Demos:
|
|
14
|
+
*
|
|
15
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
16
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
17
|
+
*
|
|
18
|
+
* API:
|
|
19
|
+
*
|
|
20
|
+
* - [DateRangePicker API](https://mui.com/x/api/date-pickers/date-range-picker/)
|
|
21
|
+
*/
|
|
12
22
|
const DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangePicker(inProps, ref) {
|
|
13
23
|
const props = useThemeProps({
|
|
14
24
|
props: inProps,
|
|
@@ -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
|
*
|
|
@@ -3,5 +3,15 @@ import { DesktopDateRangePickerProps } from './DesktopDateRangePicker.types';
|
|
|
3
3
|
type DesktopDateRangePickerComponent = (<TDate>(props: DesktopDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DesktopDateRangePicker API](https://mui.com/x/api/date-pickers/desktop-date-range-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const DesktopDateRangePicker: DesktopDateRangePickerComponent;
|
|
7
17
|
export { DesktopDateRangePicker };
|
|
@@ -10,6 +10,16 @@ import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
|
|
|
10
10
|
import { MultiInputDateRangeField } from '../MultiInputDateRangeField';
|
|
11
11
|
import { useDesktopRangePicker } from '../internals/hooks/useDesktopRangePicker';
|
|
12
12
|
import { validateDateRange } from '../internals/utils/validation/validateDateRange';
|
|
13
|
+
/**
|
|
14
|
+
* Demos:
|
|
15
|
+
*
|
|
16
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
17
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [DesktopDateRangePicker API](https://mui.com/x/api/date-pickers/desktop-date-range-picker/)
|
|
22
|
+
*/
|
|
13
23
|
const DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateRangePicker(inProps, ref) {
|
|
14
24
|
var _defaultizedProps$cal, _defaultizedProps$slo2;
|
|
15
25
|
// Props with the default values common to all date time pickers
|
|
@@ -3,5 +3,15 @@ import { MobileDateRangePickerProps } from './MobileDateRangePicker.types';
|
|
|
3
3
|
type MobileDateRangePickerComponent = (<TDate>(props: MobileDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [MobileDateRangePicker API](https://mui.com/x/api/date-pickers/mobile-date-range-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const MobileDateRangePicker: MobileDateRangePickerComponent;
|
|
7
17
|
export { MobileDateRangePicker };
|
|
@@ -10,6 +10,16 @@ import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
|
|
|
10
10
|
import { MultiInputDateRangeField } from '../MultiInputDateRangeField';
|
|
11
11
|
import { useMobileRangePicker } from '../internals/hooks/useMobileRangePicker';
|
|
12
12
|
import { validateDateRange } from '../internals/utils/validation/validateDateRange';
|
|
13
|
+
/**
|
|
14
|
+
* Demos:
|
|
15
|
+
*
|
|
16
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
17
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
18
|
+
*
|
|
19
|
+
* API:
|
|
20
|
+
*
|
|
21
|
+
* - [MobileDateRangePicker API](https://mui.com/x/api/date-pickers/mobile-date-range-picker/)
|
|
22
|
+
*/
|
|
13
23
|
const MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {
|
|
14
24
|
var _defaultizedProps$slo2;
|
|
15
25
|
// Props with the default values common to all date time pickers
|
|
@@ -6,5 +6,15 @@ export declare const getMultiInputDateRangeFieldUtilityClass: (slot: string) =>
|
|
|
6
6
|
type MultiInputDateRangeFieldComponent = (<TDate>(props: MultiInputDateRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
7
7
|
propTypes?: any;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Demos:
|
|
11
|
+
*
|
|
12
|
+
* - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)
|
|
13
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/)
|
|
18
|
+
*/
|
|
9
19
|
declare const MultiInputDateRangeField: MultiInputDateRangeFieldComponent;
|
|
10
20
|
export { MultiInputDateRangeField };
|
|
@@ -48,6 +48,16 @@ const MultiInputDateRangeFieldSeparator = styled(props => {
|
|
|
48
48
|
slot: 'Separator',
|
|
49
49
|
overridesResolver: (props, styles) => styles.separator
|
|
50
50
|
})({});
|
|
51
|
+
/**
|
|
52
|
+
* Demos:
|
|
53
|
+
*
|
|
54
|
+
* - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)
|
|
55
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
56
|
+
*
|
|
57
|
+
* API:
|
|
58
|
+
*
|
|
59
|
+
* - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/)
|
|
60
|
+
*/
|
|
51
61
|
const MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInputDateRangeField(inProps, ref) {
|
|
52
62
|
var _slots$root, _slots$textField, _slots$separator, _slotProps$separator;
|
|
53
63
|
const themeProps = useThemeProps({
|
|
@@ -6,5 +6,15 @@ export declare const getMultiInputDateTimeRangeFieldUtilityClass: (slot: string)
|
|
|
6
6
|
type MultiInputDateTimeRangeFieldComponent = (<TDate>(props: MultiInputDateTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
7
7
|
propTypes?: any;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Demos:
|
|
11
|
+
*
|
|
12
|
+
* - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)
|
|
13
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/)
|
|
18
|
+
*/
|
|
9
19
|
declare const MultiInputDateTimeRangeField: MultiInputDateTimeRangeFieldComponent;
|
|
10
20
|
export { MultiInputDateTimeRangeField };
|
|
@@ -48,6 +48,16 @@ const MultiInputDateTimeRangeFieldSeparator = styled(props => {
|
|
|
48
48
|
slot: 'Separator',
|
|
49
49
|
overridesResolver: (props, styles) => styles.separator
|
|
50
50
|
})({});
|
|
51
|
+
/**
|
|
52
|
+
* Demos:
|
|
53
|
+
*
|
|
54
|
+
* - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)
|
|
55
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
56
|
+
*
|
|
57
|
+
* API:
|
|
58
|
+
*
|
|
59
|
+
* - [MultiInputDateTimeRangeField API](https://mui.com/x/api/multi-input-date-time-range-field/)
|
|
60
|
+
*/
|
|
51
61
|
const MultiInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInputDateTimeRangeField(inProps, ref) {
|
|
52
62
|
var _slots$root, _slots$textField, _slots$separator;
|
|
53
63
|
const themeProps = useThemeProps({
|
|
@@ -6,5 +6,15 @@ export declare const getMultiInputTimeRangeFieldUtilityClass: (slot: string) =>
|
|
|
6
6
|
type MultiInputTimeRangeFieldComponent = (<TDate>(props: MultiInputTimeRangeFieldProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
7
7
|
propTypes?: any;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Demos:
|
|
11
|
+
*
|
|
12
|
+
* - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)
|
|
13
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/)
|
|
18
|
+
*/
|
|
9
19
|
declare const MultiInputTimeRangeField: MultiInputTimeRangeFieldComponent;
|
|
10
20
|
export { MultiInputTimeRangeField };
|
|
@@ -48,6 +48,16 @@ const MultiInputTimeRangeFieldSeparator = styled(props => {
|
|
|
48
48
|
slot: 'Separator',
|
|
49
49
|
overridesResolver: (props, styles) => styles.separator
|
|
50
50
|
})({});
|
|
51
|
+
/**
|
|
52
|
+
* Demos:
|
|
53
|
+
*
|
|
54
|
+
* - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)
|
|
55
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
56
|
+
*
|
|
57
|
+
* API:
|
|
58
|
+
*
|
|
59
|
+
* - [MultiInputTimeRangeField API](https://mui.com/x/api/multi-input-time-range-field/)
|
|
60
|
+
*/
|
|
51
61
|
const MultiInputTimeRangeField = /*#__PURE__*/React.forwardRef(function MultiInputTimeRangeField(inProps, ref) {
|
|
52
62
|
var _slots$root, _slots$textField, _slots$separator;
|
|
53
63
|
const themeProps = useThemeProps({
|
|
@@ -4,5 +4,15 @@ type DateRangeFieldComponent = (<TDate>(props: SingleInputDateRangeFieldProps<TD
|
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
fieldType?: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Demos:
|
|
9
|
+
*
|
|
10
|
+
* - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)
|
|
11
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/)
|
|
16
|
+
*/
|
|
7
17
|
declare const SingleInputDateRangeField: DateRangeFieldComponent;
|
|
8
18
|
export { SingleInputDateRangeField };
|
|
@@ -12,6 +12,16 @@ import { useClearableField } from '@mui/x-date-pickers/hooks';
|
|
|
12
12
|
import { refType } from '@mui/utils';
|
|
13
13
|
import { useSingleInputDateRangeField } from './useSingleInputDateRangeField';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
/**
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)
|
|
19
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
20
|
+
*
|
|
21
|
+
* API:
|
|
22
|
+
*
|
|
23
|
+
* - [SingleInputDateRangeField API](https://mui.com/x/api/single-input-date-range-field/)
|
|
24
|
+
*/
|
|
15
25
|
const SingleInputDateRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateRangeField(inProps, ref) {
|
|
16
26
|
var _ref, _slots$textField, _slotProps$textField;
|
|
17
27
|
const themeProps = useThemeProps({
|
|
@@ -104,7 +114,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
104
114
|
/**
|
|
105
115
|
* The color of the component.
|
|
106
116
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
107
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
117
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
108
118
|
* @default 'primary'
|
|
109
119
|
*/
|
|
110
120
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -4,5 +4,15 @@ type DateRangeFieldComponent = (<TDate>(props: SingleInputDateTimeRangeFieldProp
|
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
fieldType?: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Demos:
|
|
9
|
+
*
|
|
10
|
+
* - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)
|
|
11
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/)
|
|
16
|
+
*/
|
|
7
17
|
declare const SingleInputDateTimeRangeField: DateRangeFieldComponent;
|
|
8
18
|
export { SingleInputDateTimeRangeField };
|
|
@@ -12,6 +12,16 @@ import { useClearableField } from '@mui/x-date-pickers/hooks';
|
|
|
12
12
|
import { refType } from '@mui/utils';
|
|
13
13
|
import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
/**
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [DateTimeRangeField](http://mui.com/x/react-date-pickers/date-time-range-field/)
|
|
19
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
20
|
+
*
|
|
21
|
+
* API:
|
|
22
|
+
*
|
|
23
|
+
* - [SingleInputDateTimeRangeField API](https://mui.com/x/api/single-input-date-time-range-field/)
|
|
24
|
+
*/
|
|
15
25
|
const SingleInputDateTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputDateTimeRangeField(inProps, ref) {
|
|
16
26
|
var _ref, _slots$textField, _slotProps$textField;
|
|
17
27
|
const themeProps = useThemeProps({
|
|
@@ -109,7 +119,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
109
119
|
/**
|
|
110
120
|
* The color of the component.
|
|
111
121
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
112
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
122
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
113
123
|
* @default 'primary'
|
|
114
124
|
*/
|
|
115
125
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -4,5 +4,15 @@ type DateRangeFieldComponent = (<TDate>(props: SingleInputTimeRangeFieldProps<TD
|
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
fieldType?: string;
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Demos:
|
|
9
|
+
*
|
|
10
|
+
* - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)
|
|
11
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/)
|
|
16
|
+
*/
|
|
7
17
|
declare const SingleInputTimeRangeField: DateRangeFieldComponent;
|
|
8
18
|
export { SingleInputTimeRangeField };
|
|
@@ -12,6 +12,16 @@ import { useSlotProps } from '@mui/base/utils';
|
|
|
12
12
|
import { refType } from '@mui/utils';
|
|
13
13
|
import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
/**
|
|
16
|
+
* Demos:
|
|
17
|
+
*
|
|
18
|
+
* - [TimeRangeField](http://mui.com/x/react-date-pickers/time-range-field/)
|
|
19
|
+
* - [Fields](https://mui.com/x/react-date-pickers/fields/)
|
|
20
|
+
*
|
|
21
|
+
* API:
|
|
22
|
+
*
|
|
23
|
+
* - [SingleInputTimeRangeField API](https://mui.com/x/api/single-input-time-range-field/)
|
|
24
|
+
*/
|
|
15
25
|
const SingleInputTimeRangeField = /*#__PURE__*/React.forwardRef(function SingleInputTimeRangeField(inProps, ref) {
|
|
16
26
|
var _ref, _slots$textField, _slotProps$textField;
|
|
17
27
|
const themeProps = useThemeProps({
|
|
@@ -109,7 +119,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
109
119
|
/**
|
|
110
120
|
* The color of the component.
|
|
111
121
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
112
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#
|
|
122
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
113
123
|
* @default 'primary'
|
|
114
124
|
*/
|
|
115
125
|
color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),
|
|
@@ -3,5 +3,15 @@ import { StaticDateRangePickerProps } from './StaticDateRangePicker.types';
|
|
|
3
3
|
type StaticDateRangePickerComponent = (<TDate>(props: StaticDateRangePickerProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
10
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [StaticDateRangePicker API](https://mui.com/x/api/date-pickers/static-date-range-picker/)
|
|
15
|
+
*/
|
|
6
16
|
declare const StaticDateRangePicker: StaticDateRangePickerComponent;
|
|
7
17
|
export { StaticDateRangePicker };
|
|
@@ -6,6 +6,16 @@ import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
|
|
|
6
6
|
import { renderDateRangeViewCalendar } from '../dateRangeViewRenderers';
|
|
7
7
|
import { rangeValueManager } from '../internals/utils/valueManagers';
|
|
8
8
|
import { validateDateRange } from '../internals/utils/validation/validateDateRange';
|
|
9
|
+
/**
|
|
10
|
+
* Demos:
|
|
11
|
+
*
|
|
12
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
13
|
+
* - [Validation](https://mui.com/x/react-date-pickers/validation/)
|
|
14
|
+
*
|
|
15
|
+
* API:
|
|
16
|
+
*
|
|
17
|
+
* - [StaticDateRangePicker API](https://mui.com/x/api/date-pickers/static-date-range-picker/)
|
|
18
|
+
*/
|
|
9
19
|
const StaticDateRangePicker = /*#__PURE__*/React.forwardRef(function StaticDateRangePicker(inProps, ref) {
|
|
10
20
|
var _defaultizedProps$dis, _defaultizedProps$cal, _defaultizedProps$slo;
|
|
11
21
|
const defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiStaticDateRangePicker');
|