@mui/x-date-pickers-pro 8.17.0 → 8.19.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 +213 -0
- package/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/DateRangePicker/DateRangePicker.js +8 -2
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DateTimeRangePicker/DateTimeRangePicker.js +8 -2
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -2
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +8 -2
- package/DesktopTimeRangePicker/DesktopTimeRangePicker.js +8 -2
- package/MobileDateRangePicker/MobileDateRangePicker.js +8 -2
- package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +8 -2
- package/MobileTimeRangePicker/MobileTimeRangePicker.js +8 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
- package/TimeRangePicker/TimeRangePicker.js +8 -2
- package/esm/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/esm/DateRangePicker/DateRangePicker.js +8 -2
- package/esm/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/esm/DateTimeRangePicker/DateTimeRangePicker.js +8 -2
- package/esm/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -2
- package/esm/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +8 -2
- package/esm/DesktopTimeRangePicker/DesktopTimeRangePicker.js +8 -2
- package/esm/MobileDateRangePicker/MobileDateRangePicker.js +8 -2
- package/esm/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +8 -2
- package/esm/MobileTimeRangePicker/MobileTimeRangePicker.js +8 -2
- package/esm/StaticDateRangePicker/StaticDateRangePicker.js +8 -2
- package/esm/TimeRangePicker/TimeRangePicker.js +8 -2
- package/esm/index.js +1 -1
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -3
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -3
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,219 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.19.0
|
|
9
|
+
|
|
10
|
+
_Nov 20, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🔎 Add pan on `wheel` to the charts zoom
|
|
15
|
+
- ⌨️ Allow opt-in to [tab navigation](https://mui.com/x/react-data-grid/accessibility/#tab-navigation) inside the Data Grid.
|
|
16
|
+
- ⚙️ New way of defining [action columns](https://mui.com/x/react-data-grid/column-definition/#ActionsWithModalGrid.tsx) in the Data Grid that makes it easier to keep `columns` prop stable.
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
- 📚 Documentation improvements
|
|
19
|
+
|
|
20
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
21
|
+
@lauri865, @noobyogi0010, @sai6855
|
|
22
|
+
|
|
23
|
+
The following team members contributed to this release:
|
|
24
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @mj12albert, @noraleonte, @rita-codes, @siriwatknp, @ZeeshanTamboli
|
|
25
|
+
|
|
26
|
+
### Data Grid
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid@8.19.0`
|
|
29
|
+
|
|
30
|
+
- [DataGrid] Add `tabNavigation` prop to control tab navigation in the grid (#20286) @arminmeh
|
|
31
|
+
- [DataGrid] Allow to focus disabled checkbox cells (#19959) @mj12albert
|
|
32
|
+
- [DataGrid] Alternative actions column definition API (#15041) @cherniavskii
|
|
33
|
+
- [DataGrid] Fix failing tests (#20332) @cherniavskii
|
|
34
|
+
- [DataGrid] Prevent Safari 26 error in the event handler (#20369) @arminmeh
|
|
35
|
+
- [DataGrid] Undeprecate the `autoHeight` prop (#20363) @cherniavskii
|
|
36
|
+
- [DataGrid] Fix print export grid dimensions with dynamic row height and print styles (#19835) @cherniavskii
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-data-grid-pro@8.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-data-grid@8.19.0`.
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid-premium@8.19.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-data-grid-pro@8.19.0`, plus:
|
|
45
|
+
|
|
46
|
+
- [DataGridPremium] Fix aggregation with sorting (#19892) @lauri865
|
|
47
|
+
- [DataGridPremium] Lock `ExcelJS` version (#20329) @cherniavskii
|
|
48
|
+
|
|
49
|
+
### Date and Time Pickers
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers@8.19.0`
|
|
52
|
+
|
|
53
|
+
- [pickers] Do not loose `slotProps.field.slotProps` (#20322) @flaviendelangle
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-date-pickers-pro@8.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
56
|
+
|
|
57
|
+
Same changes as in `@mui/x-date-pickers@8.19.0`.
|
|
58
|
+
|
|
59
|
+
### Charts
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-charts@8.19.0`
|
|
62
|
+
|
|
63
|
+
- [charts] Expose `niceDomain` utility (#20250) @bernardobelchior
|
|
64
|
+
- [charts] Fix benchmark regression by downgrading to JSDOM v26 (#20405) @bernardobelchior
|
|
65
|
+
- [charts] Fix Pie Chart keyboard focus highlight (#20358) @JCQuintas
|
|
66
|
+
- [charts] Memoize series selectors (#20326) @JCQuintas
|
|
67
|
+
- [charts] Relax dataset type (#20294) @bernardobelchior
|
|
68
|
+
- [charts] Remove `touch-action: pan-y` when zoom is disabled (#20204) @bernardobelchior
|
|
69
|
+
- [charts] Use `getBBox()` for correct SVG sizes in firefox (#20309) @JCQuintas
|
|
70
|
+
- [charts] Use directly selector from `@mui/x-internals` (#20365) @alexfauquette
|
|
71
|
+
- [charts] Fix unnecessary errors in dev mode (#20380) @JCQuintas
|
|
72
|
+
|
|
73
|
+
#### `@mui/x-charts-pro@8.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
74
|
+
|
|
75
|
+
Same changes as in `@mui/x-charts@8.19.0`, plus:
|
|
76
|
+
|
|
77
|
+
- [charts-pro] Add pan on `wheel` to zoom (#19998) @JCQuintas
|
|
78
|
+
- [charts-pro] Fix zoom slider preview having an opaque background in dark mode (#20367) @bernardobelchior
|
|
79
|
+
|
|
80
|
+
#### `@mui/x-charts-premium@8.19.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
81
|
+
|
|
82
|
+
Same changes as in `@mui/x-charts-pro@8.19.0`.
|
|
83
|
+
|
|
84
|
+
### Tree View
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-tree-view@8.19.0`
|
|
87
|
+
|
|
88
|
+
- [tree view] Enable lazy load when children count is not know in tree view (#18680) @noobyogi0010
|
|
89
|
+
- [tree view] Fix unwanted behaviors on the item re-ordering (#20368) @flaviendelangle
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-tree-view-pro@8.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
92
|
+
|
|
93
|
+
Same changes as in `@mui/x-tree-view@8.19.0`.
|
|
94
|
+
|
|
95
|
+
### Codemod
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-codemod@8.19.0`
|
|
98
|
+
|
|
99
|
+
Internal changes.
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- [docs] Add minimum Typescript version to migration guide (#20320) @siriwatknp
|
|
104
|
+
- [docs] Fix Autosizing documentation (#20348) @siriwatknp
|
|
105
|
+
- [docs] Fix separator opacity in demo (#20293) @sai6855
|
|
106
|
+
- [docs] Replace deprecated `LoadingButton` with `Button` component (#20208) @Janpot
|
|
107
|
+
|
|
108
|
+
### Core
|
|
109
|
+
|
|
110
|
+
- [code-infra] Add new broken links checker (#20120) @Janpot
|
|
111
|
+
- [code-infra] Disable Codspeed pipeline (#20370) @JCQuintas
|
|
112
|
+
- [code-infra] Optimize `checkMaterialVersion` (#20307) @Janpot
|
|
113
|
+
- [code-infra] Use utils from code-infra for changelog and PR creation (#20406) @brijeshb42
|
|
114
|
+
- [docs-infra] Revert `@docsearch/react` (#20313) @Janpot
|
|
115
|
+
|
|
116
|
+
### Miscellaneous
|
|
117
|
+
|
|
118
|
+
- [test] Fix browser tests skipping some projects (#20318) @cherniavskii
|
|
119
|
+
- [test] Update `use-react-version` pnpm script (#20319) @cherniavskii
|
|
120
|
+
|
|
121
|
+
## 8.18.0
|
|
122
|
+
|
|
123
|
+
<!-- generated comparing v8.17.0..master -->
|
|
124
|
+
|
|
125
|
+
_Nov 13, 2025_
|
|
126
|
+
|
|
127
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
128
|
+
|
|
129
|
+
- Add `barLabelPlacement` property to customize the bar label position in bar charts, enabling labels to be placed above bars.
|
|
130
|
+
|
|
131
|
+

|
|
132
|
+
|
|
133
|
+
- Add `source` property to the date/time picker lifecycle and event handler context, enabling clearer differentiation between changes initiated by the picker UI and those from direct field input.
|
|
134
|
+
- 🐞 Bugfixes
|
|
135
|
+
- 📚 Documentation improvements
|
|
136
|
+
|
|
137
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
138
|
+
@htollefsen, @sai6855, @Sigdriv
|
|
139
|
+
|
|
140
|
+
The following team members contributed to this release:
|
|
141
|
+
@arminmeh, @bernardobelchior, @brijeshb42, @cherniavskii, @flaviendelangle, @JCQuintas, @michelengelen, @noraleonte, @prakhargupta1, @rita-codes, @siriwatknp
|
|
142
|
+
|
|
143
|
+
### Data Grid
|
|
144
|
+
|
|
145
|
+
#### `@mui/x-data-grid@8.18.0`
|
|
146
|
+
|
|
147
|
+
- [DataGrid] Allow default event in the column action cell item click event handler (#20272) @arminmeh
|
|
148
|
+
- [DataGrid] Remove unnecessary generic from `useGridApiRef` (#20277) @cherniavskii
|
|
149
|
+
|
|
150
|
+
#### `@mui/x-data-grid-pro@8.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
151
|
+
|
|
152
|
+
Same changes as in `@mui/x-data-grid@8.18.0`.
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-data-grid-premium@8.18.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-data-grid-pro@8.18.0`, plus:
|
|
157
|
+
|
|
158
|
+
- [DataGridPremium] Return the correct `cellParams` value from the aggregation cells (#20224) @arminmeh
|
|
159
|
+
|
|
160
|
+
### Date and Time Pickers
|
|
161
|
+
|
|
162
|
+
#### `@mui/x-date-pickers@8.18.0`
|
|
163
|
+
|
|
164
|
+
- [pickers] Keep invalid date state consistent (#20040) @michelengelen
|
|
165
|
+
- [pickers] Adds new `source` property to `onChange` and `onAccept` context object (#20234) @michelengelen
|
|
166
|
+
|
|
167
|
+
#### `@mui/x-date-pickers-pro@8.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
168
|
+
|
|
169
|
+
Same changes as in `@mui/x-date-pickers@8.18.0`.
|
|
170
|
+
|
|
171
|
+
### Charts
|
|
172
|
+
|
|
173
|
+
#### `@mui/x-charts@8.18.0`
|
|
174
|
+
|
|
175
|
+
- [charts] Add prop for positioning a bar label (#20194) @Sigdriv
|
|
176
|
+
- [charts] Fix applying dark mode styles in `ChartAxisZoomSliderThumb` (#20232) @sai6855
|
|
177
|
+
|
|
178
|
+
#### `@mui/x-charts-pro@8.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
179
|
+
|
|
180
|
+
Same changes as in `@mui/x-charts@8.18.0`, plus:
|
|
181
|
+
|
|
182
|
+
- [charts-pro] Allow specifying Content Security Policy nonce on export (#20053) @bernardobelchior
|
|
183
|
+
- [charts-pro] Fix applying dark mode styles to slider (#20220) @sai6855
|
|
184
|
+
- [charts-pro] Sankey should respect node order (#20065) @JCQuintas
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-charts-premium@8.18.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
187
|
+
|
|
188
|
+
Same changes as in `@mui/x-charts-pro@8.18.0`.
|
|
189
|
+
|
|
190
|
+
### Tree View
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-tree-view@8.18.0`
|
|
193
|
+
|
|
194
|
+
- [tree view] Prepare tests for the new store structure (#20225) @flaviendelangle
|
|
195
|
+
- [tree view] Prepare the item plugin files for the store migration (#20240) @flaviendelangle
|
|
196
|
+
- [tree view] Use `TreeItemId` type instead of raw string (#20233) @flaviendelangle
|
|
197
|
+
|
|
198
|
+
#### `@mui/x-tree-view-pro@8.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
199
|
+
|
|
200
|
+
Same changes as in `@mui/x-tree-view@8.18.0`.
|
|
201
|
+
|
|
202
|
+
### Codemod
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-codemod@8.18.0`
|
|
205
|
+
|
|
206
|
+
Internal changes.
|
|
207
|
+
|
|
208
|
+
### Docs
|
|
209
|
+
|
|
210
|
+
- [charts] Add a demo for a custom tick label (#20073) @prakhargupta1
|
|
211
|
+
- [charts] Create `useAxes()` hook documentation page (#20229) @JCQuintas
|
|
212
|
+
- [charts] Fix logo alignment (#20228) @JCQuintas
|
|
213
|
+
- [charts] Fixes typo in import example (#20236) @htollefsen
|
|
214
|
+
- [Data Grid] Add recipe for cursor pagination with data source (#19700) @siriwatknp
|
|
215
|
+
- [Data Grid] Add a demo for pinned rows aggregation (#20198) @cherniavskii
|
|
216
|
+
|
|
217
|
+
### Core
|
|
218
|
+
|
|
219
|
+
- [docs-infra] Use deployment config from docs-infra package (#20243) @brijeshb42
|
|
220
|
+
|
|
8
221
|
## 8.17.0
|
|
9
222
|
|
|
10
223
|
_Nov 5, 2025_
|
|
@@ -37,7 +37,7 @@ var _DateRangePickerDay2 = require("../DateRangePickerDay2");
|
|
|
37
37
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
38
|
const _excluded = ["value", "defaultValue", "referenceDate", "onChange", "className", "classes", "disableFuture", "disablePast", "minDate", "maxDate", "shouldDisableDate", "reduceAnimations", "onMonthChange", "rangePosition", "defaultRangePosition", "onRangePositionChange", "calendars", "currentMonthCalendarPosition", "slots", "slotProps", "loading", "renderLoading", "disableHighlightToday", "focusedView", "onFocusedViewChange", "readOnly", "disabled", "showDaysOutsideCurrentMonth", "dayOfWeekFormatter", "disableAutoMonthSwitching", "autoFocus", "fixedWeekNumber", "disableDragEditing", "displayWeekNumber", "timezone", "availableRangePositions", "views", "view", "openTo", "onViewChange"],
|
|
39
39
|
_excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
|
|
40
|
-
const releaseInfo = "
|
|
40
|
+
const releaseInfo = "MTc2MzU5NjgwMDAwMA==";
|
|
41
41
|
const DateRangeCalendarRoot = (0, _styles.styled)('div', {
|
|
42
42
|
name: 'MuiDateRangeCalendar',
|
|
43
43
|
slot: 'Root'
|
|
@@ -204,7 +204,10 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
204
204
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
205
205
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
206
206
|
* @param {TValue} value The value that was just accepted.
|
|
207
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
207
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
208
|
+
* - `validationError`: validation result of the current value
|
|
209
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
210
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
208
211
|
*/
|
|
209
212
|
onAccept: _propTypes.default.func,
|
|
210
213
|
/**
|
|
@@ -212,7 +215,10 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
212
215
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
213
216
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
214
217
|
* @param {TValue} value The new value.
|
|
215
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
218
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
219
|
+
* - `validationError`: validation result of the current value
|
|
220
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
221
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
216
222
|
*/
|
|
217
223
|
onChange: _propTypes.default.func,
|
|
218
224
|
/**
|
|
@@ -235,7 +235,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
|
|
|
235
235
|
showDaysOutsideCurrentMonth
|
|
236
236
|
} = props,
|
|
237
237
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
238
|
-
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "
|
|
238
|
+
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
239
239
|
const adapter = (0, _hooks.usePickerAdapter)();
|
|
240
240
|
const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;
|
|
241
241
|
const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;
|
|
@@ -237,7 +237,10 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
237
237
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
238
238
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
239
239
|
* @param {TValue} value The value that was just accepted.
|
|
240
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
240
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
241
|
+
* - `validationError`: validation result of the current value
|
|
242
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
243
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
241
244
|
*/
|
|
242
245
|
onAccept: _propTypes.default.func,
|
|
243
246
|
/**
|
|
@@ -245,7 +248,10 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
245
248
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
246
249
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
247
250
|
* @param {TValue} value The new value.
|
|
248
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
251
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
252
|
+
* - `validationError`: validation result of the current value
|
|
253
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
254
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
249
255
|
*/
|
|
250
256
|
onChange: _propTypes.default.func,
|
|
251
257
|
/**
|
|
@@ -214,7 +214,10 @@ DesktopDateRangePicker.propTypes = {
|
|
|
214
214
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
215
215
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
216
216
|
* @param {TValue} value The value that was just accepted.
|
|
217
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
217
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
218
|
+
* - `validationError`: validation result of the current value
|
|
219
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
220
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
218
221
|
*/
|
|
219
222
|
onAccept: _propTypes.default.func,
|
|
220
223
|
/**
|
|
@@ -222,7 +225,10 @@ DesktopDateRangePicker.propTypes = {
|
|
|
222
225
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
223
226
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
224
227
|
* @param {TValue} value The new value.
|
|
225
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
228
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
229
|
+
* - `validationError`: validation result of the current value
|
|
230
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
231
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
226
232
|
*/
|
|
227
233
|
onChange: _propTypes.default.func,
|
|
228
234
|
/**
|
|
@@ -334,7 +334,10 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
334
334
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
335
335
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
336
336
|
* @param {TValue} value The value that was just accepted.
|
|
337
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
337
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
338
|
+
* - `validationError`: validation result of the current value
|
|
339
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
340
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
338
341
|
*/
|
|
339
342
|
onAccept: _propTypes.default.func,
|
|
340
343
|
/**
|
|
@@ -342,7 +345,10 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
342
345
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
343
346
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
344
347
|
* @param {TValue} value The new value.
|
|
345
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
348
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
349
|
+
* - `validationError`: validation result of the current value
|
|
350
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
351
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
346
352
|
*/
|
|
347
353
|
onChange: _propTypes.default.func,
|
|
348
354
|
/**
|
|
@@ -240,7 +240,10 @@ DesktopTimeRangePicker.propTypes = {
|
|
|
240
240
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
241
241
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
242
242
|
* @param {TValue} value The value that was just accepted.
|
|
243
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
243
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
244
|
+
* - `validationError`: validation result of the current value
|
|
245
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
246
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
244
247
|
*/
|
|
245
248
|
onAccept: _propTypes.default.func,
|
|
246
249
|
/**
|
|
@@ -248,7 +251,10 @@ DesktopTimeRangePicker.propTypes = {
|
|
|
248
251
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
249
252
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
250
253
|
* @param {TValue} value The new value.
|
|
251
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
254
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
255
|
+
* - `validationError`: validation result of the current value
|
|
256
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
257
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
252
258
|
*/
|
|
253
259
|
onChange: _propTypes.default.func,
|
|
254
260
|
/**
|
|
@@ -211,7 +211,10 @@ MobileDateRangePicker.propTypes = {
|
|
|
211
211
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
212
212
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
213
213
|
* @param {TValue} value The value that was just accepted.
|
|
214
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
214
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
215
|
+
* - `validationError`: validation result of the current value
|
|
216
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
217
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
215
218
|
*/
|
|
216
219
|
onAccept: _propTypes.default.func,
|
|
217
220
|
/**
|
|
@@ -219,7 +222,10 @@ MobileDateRangePicker.propTypes = {
|
|
|
219
222
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
220
223
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
221
224
|
* @param {TValue} value The new value.
|
|
222
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
225
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
226
|
+
* - `validationError`: validation result of the current value
|
|
227
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
228
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
223
229
|
*/
|
|
224
230
|
onChange: _propTypes.default.func,
|
|
225
231
|
/**
|
|
@@ -334,7 +334,10 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
334
334
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
335
335
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
336
336
|
* @param {TValue} value The value that was just accepted.
|
|
337
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
337
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
338
|
+
* - `validationError`: validation result of the current value
|
|
339
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
340
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
338
341
|
*/
|
|
339
342
|
onAccept: _propTypes.default.func,
|
|
340
343
|
/**
|
|
@@ -342,7 +345,10 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
342
345
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
343
346
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
344
347
|
* @param {TValue} value The new value.
|
|
345
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
348
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
349
|
+
* - `validationError`: validation result of the current value
|
|
350
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
351
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
346
352
|
*/
|
|
347
353
|
onChange: _propTypes.default.func,
|
|
348
354
|
/**
|
|
@@ -228,7 +228,10 @@ MobileTimeRangePicker.propTypes = {
|
|
|
228
228
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
229
229
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
230
230
|
* @param {TValue} value The value that was just accepted.
|
|
231
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
231
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
232
|
+
* - `validationError`: validation result of the current value
|
|
233
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
234
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
232
235
|
*/
|
|
233
236
|
onAccept: _propTypes.default.func,
|
|
234
237
|
/**
|
|
@@ -236,7 +239,10 @@ MobileTimeRangePicker.propTypes = {
|
|
|
236
239
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
237
240
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
238
241
|
* @param {TValue} value The new value.
|
|
239
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
242
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
243
|
+
* - `validationError`: validation result of the current value
|
|
244
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
245
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
240
246
|
*/
|
|
241
247
|
onChange: _propTypes.default.func,
|
|
242
248
|
/**
|
|
@@ -170,7 +170,10 @@ StaticDateRangePicker.propTypes = {
|
|
|
170
170
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
171
171
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
172
172
|
* @param {TValue} value The value that was just accepted.
|
|
173
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
173
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
174
|
+
* - `validationError`: validation result of the current value
|
|
175
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
176
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
174
177
|
*/
|
|
175
178
|
onAccept: _propTypes.default.func,
|
|
176
179
|
/**
|
|
@@ -178,7 +181,10 @@ StaticDateRangePicker.propTypes = {
|
|
|
178
181
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
179
182
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
180
183
|
* @param {TValue} value The new value.
|
|
181
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
184
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
185
|
+
* - `validationError`: validation result of the current value
|
|
186
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
187
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
182
188
|
*/
|
|
183
189
|
onChange: _propTypes.default.func,
|
|
184
190
|
/**
|
|
@@ -172,7 +172,10 @@ process.env.NODE_ENV !== "production" ? TimeRangePicker.propTypes = {
|
|
|
172
172
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
173
173
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
174
174
|
* @param {TValue} value The value that was just accepted.
|
|
175
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
175
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
176
|
+
* - `validationError`: validation result of the current value
|
|
177
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
178
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
176
179
|
*/
|
|
177
180
|
onAccept: _propTypes.default.func,
|
|
178
181
|
/**
|
|
@@ -180,7 +183,10 @@ process.env.NODE_ENV !== "production" ? TimeRangePicker.propTypes = {
|
|
|
180
183
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
181
184
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
182
185
|
* @param {TValue} value The new value.
|
|
183
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
186
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
187
|
+
* - `validationError`: validation result of the current value
|
|
188
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
189
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
184
190
|
*/
|
|
185
191
|
onChange: _propTypes.default.func,
|
|
186
192
|
/**
|
|
@@ -30,7 +30,7 @@ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.
|
|
|
30
30
|
import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.js";
|
|
31
31
|
import { dateRangePickerDay2Classes } from "../DateRangePickerDay2/index.js";
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
-
const releaseInfo = "
|
|
33
|
+
const releaseInfo = "MTc2MzU5NjgwMDAwMA==";
|
|
34
34
|
const DateRangeCalendarRoot = styled('div', {
|
|
35
35
|
name: 'MuiDateRangeCalendar',
|
|
36
36
|
slot: 'Root'
|
|
@@ -197,7 +197,10 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
197
197
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
198
198
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
199
199
|
* @param {TValue} value The value that was just accepted.
|
|
200
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
200
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
201
|
+
* - `validationError`: validation result of the current value
|
|
202
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
203
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
201
204
|
*/
|
|
202
205
|
onAccept: PropTypes.func,
|
|
203
206
|
/**
|
|
@@ -205,7 +208,10 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
205
208
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
206
209
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
207
210
|
* @param {TValue} value The new value.
|
|
208
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
211
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
212
|
+
* - `validationError`: validation result of the current value
|
|
213
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
214
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
209
215
|
*/
|
|
210
216
|
onChange: PropTypes.func,
|
|
211
217
|
/**
|
|
@@ -228,7 +228,7 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
|
|
|
228
228
|
showDaysOutsideCurrentMonth
|
|
229
229
|
} = props,
|
|
230
230
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
231
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
231
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
232
232
|
const adapter = usePickerAdapter();
|
|
233
233
|
const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;
|
|
234
234
|
const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;
|
|
@@ -230,7 +230,10 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
230
230
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
231
231
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
232
232
|
* @param {TValue} value The value that was just accepted.
|
|
233
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
233
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
234
|
+
* - `validationError`: validation result of the current value
|
|
235
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
236
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
234
237
|
*/
|
|
235
238
|
onAccept: PropTypes.func,
|
|
236
239
|
/**
|
|
@@ -238,7 +241,10 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
238
241
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
239
242
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
240
243
|
* @param {TValue} value The new value.
|
|
241
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
244
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
245
|
+
* - `validationError`: validation result of the current value
|
|
246
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
247
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
242
248
|
*/
|
|
243
249
|
onChange: PropTypes.func,
|
|
244
250
|
/**
|
|
@@ -207,7 +207,10 @@ DesktopDateRangePicker.propTypes = {
|
|
|
207
207
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
208
208
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
209
209
|
* @param {TValue} value The value that was just accepted.
|
|
210
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
210
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
211
|
+
* - `validationError`: validation result of the current value
|
|
212
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
213
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
211
214
|
*/
|
|
212
215
|
onAccept: PropTypes.func,
|
|
213
216
|
/**
|
|
@@ -215,7 +218,10 @@ DesktopDateRangePicker.propTypes = {
|
|
|
215
218
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
216
219
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
217
220
|
* @param {TValue} value The new value.
|
|
218
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
221
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
222
|
+
* - `validationError`: validation result of the current value
|
|
223
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
224
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
219
225
|
*/
|
|
220
226
|
onChange: PropTypes.func,
|
|
221
227
|
/**
|
|
@@ -327,7 +327,10 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
327
327
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
328
328
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
329
329
|
* @param {TValue} value The value that was just accepted.
|
|
330
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
330
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
331
|
+
* - `validationError`: validation result of the current value
|
|
332
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
333
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
331
334
|
*/
|
|
332
335
|
onAccept: PropTypes.func,
|
|
333
336
|
/**
|
|
@@ -335,7 +338,10 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
335
338
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
336
339
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
337
340
|
* @param {TValue} value The new value.
|
|
338
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
341
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
342
|
+
* - `validationError`: validation result of the current value
|
|
343
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
344
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
339
345
|
*/
|
|
340
346
|
onChange: PropTypes.func,
|
|
341
347
|
/**
|
|
@@ -233,7 +233,10 @@ DesktopTimeRangePicker.propTypes = {
|
|
|
233
233
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
234
234
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
235
235
|
* @param {TValue} value The value that was just accepted.
|
|
236
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
236
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
237
|
+
* - `validationError`: validation result of the current value
|
|
238
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
239
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
237
240
|
*/
|
|
238
241
|
onAccept: PropTypes.func,
|
|
239
242
|
/**
|
|
@@ -241,7 +244,10 @@ DesktopTimeRangePicker.propTypes = {
|
|
|
241
244
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
242
245
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
243
246
|
* @param {TValue} value The new value.
|
|
244
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
247
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
248
|
+
* - `validationError`: validation result of the current value
|
|
249
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
250
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
245
251
|
*/
|
|
246
252
|
onChange: PropTypes.func,
|
|
247
253
|
/**
|
|
@@ -204,7 +204,10 @@ MobileDateRangePicker.propTypes = {
|
|
|
204
204
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
205
205
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
206
206
|
* @param {TValue} value The value that was just accepted.
|
|
207
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
207
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
208
|
+
* - `validationError`: validation result of the current value
|
|
209
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
210
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
208
211
|
*/
|
|
209
212
|
onAccept: PropTypes.func,
|
|
210
213
|
/**
|
|
@@ -212,7 +215,10 @@ MobileDateRangePicker.propTypes = {
|
|
|
212
215
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
213
216
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
214
217
|
* @param {TValue} value The new value.
|
|
215
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
218
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
219
|
+
* - `validationError`: validation result of the current value
|
|
220
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
221
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
216
222
|
*/
|
|
217
223
|
onChange: PropTypes.func,
|
|
218
224
|
/**
|
|
@@ -327,7 +327,10 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
327
327
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
328
328
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
329
329
|
* @param {TValue} value The value that was just accepted.
|
|
330
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
330
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
331
|
+
* - `validationError`: validation result of the current value
|
|
332
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
333
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
331
334
|
*/
|
|
332
335
|
onAccept: PropTypes.func,
|
|
333
336
|
/**
|
|
@@ -335,7 +338,10 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
335
338
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
336
339
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
337
340
|
* @param {TValue} value The new value.
|
|
338
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
341
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
342
|
+
* - `validationError`: validation result of the current value
|
|
343
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
344
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
339
345
|
*/
|
|
340
346
|
onChange: PropTypes.func,
|
|
341
347
|
/**
|
|
@@ -221,7 +221,10 @@ MobileTimeRangePicker.propTypes = {
|
|
|
221
221
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
222
222
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
223
223
|
* @param {TValue} value The value that was just accepted.
|
|
224
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
224
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
225
|
+
* - `validationError`: validation result of the current value
|
|
226
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
227
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
225
228
|
*/
|
|
226
229
|
onAccept: PropTypes.func,
|
|
227
230
|
/**
|
|
@@ -229,7 +232,10 @@ MobileTimeRangePicker.propTypes = {
|
|
|
229
232
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
230
233
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
231
234
|
* @param {TValue} value The new value.
|
|
232
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
235
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
236
|
+
* - `validationError`: validation result of the current value
|
|
237
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
238
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
233
239
|
*/
|
|
234
240
|
onChange: PropTypes.func,
|
|
235
241
|
/**
|
|
@@ -163,7 +163,10 @@ StaticDateRangePicker.propTypes = {
|
|
|
163
163
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
164
164
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
165
165
|
* @param {TValue} value The value that was just accepted.
|
|
166
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
166
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
167
|
+
* - `validationError`: validation result of the current value
|
|
168
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
169
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
167
170
|
*/
|
|
168
171
|
onAccept: PropTypes.func,
|
|
169
172
|
/**
|
|
@@ -171,7 +174,10 @@ StaticDateRangePicker.propTypes = {
|
|
|
171
174
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
172
175
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
173
176
|
* @param {TValue} value The new value.
|
|
174
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
177
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
178
|
+
* - `validationError`: validation result of the current value
|
|
179
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
180
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
175
181
|
*/
|
|
176
182
|
onChange: PropTypes.func,
|
|
177
183
|
/**
|
|
@@ -165,7 +165,10 @@ process.env.NODE_ENV !== "production" ? TimeRangePicker.propTypes = {
|
|
|
165
165
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
166
166
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
167
167
|
* @param {TValue} value The value that was just accepted.
|
|
168
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
168
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this acceptance:
|
|
169
|
+
* - `validationError`: validation result of the current value
|
|
170
|
+
* - `source`: source of the acceptance. One of 'field' | 'picker' | 'unknown'
|
|
171
|
+
* - `shortcut` (optional): the shortcut metadata if the value was accepted via a shortcut selection
|
|
169
172
|
*/
|
|
170
173
|
onAccept: PropTypes.func,
|
|
171
174
|
/**
|
|
@@ -173,7 +176,10 @@ process.env.NODE_ENV !== "production" ? TimeRangePicker.propTypes = {
|
|
|
173
176
|
* @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.
|
|
174
177
|
* @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.
|
|
175
178
|
* @param {TValue} value The new value.
|
|
176
|
-
* @param {FieldChangeHandlerContext<TError>} context
|
|
179
|
+
* @param {FieldChangeHandlerContext<TError>} context Context about this change:
|
|
180
|
+
* - `validationError`: validation result of the current value
|
|
181
|
+
* - `source`: source of the change. One of 'field' | 'view' | 'unknown'
|
|
182
|
+
* - `shortcut` (optional): the shortcut metadata if the change was triggered by a shortcut selection
|
|
177
183
|
*/
|
|
178
184
|
onChange: PropTypes.func,
|
|
179
185
|
/**
|
package/esm/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export const useDesktopRangePicker = _ref => {
|
|
|
18
18
|
steps
|
|
19
19
|
} = _ref,
|
|
20
20
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
21
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
22
22
|
const {
|
|
23
23
|
slots,
|
|
24
24
|
slotProps,
|
|
@@ -61,8 +61,8 @@ export const useDesktopRangePicker = _ref => {
|
|
|
61
61
|
children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
|
|
62
62
|
value: rangePositionResponse,
|
|
63
63
|
children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {
|
|
64
|
-
slots: slots,
|
|
65
|
-
slotProps: slotProps
|
|
64
|
+
slots: _extends({}, slots, fieldProps.slots),
|
|
65
|
+
slotProps: _extends({}, slotProps, fieldProps.slotProps)
|
|
66
66
|
}, isSingleInput && {
|
|
67
67
|
inputRef
|
|
68
68
|
})), /*#__PURE__*/_jsx(PickerPopper, {
|
|
@@ -20,7 +20,7 @@ export const useMobileRangePicker = _ref => {
|
|
|
20
20
|
steps
|
|
21
21
|
} = _ref,
|
|
22
22
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
|
-
useLicenseVerifier('x-date-pickers-pro', "
|
|
23
|
+
useLicenseVerifier('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
24
24
|
const {
|
|
25
25
|
slots,
|
|
26
26
|
slotProps: innerSlotProps,
|
|
@@ -96,8 +96,8 @@ export const useMobileRangePicker = _ref => {
|
|
|
96
96
|
children: /*#__PURE__*/_jsxs(PickerRangePositionContext.Provider, {
|
|
97
97
|
value: rangePositionResponse,
|
|
98
98
|
children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {
|
|
99
|
-
slots: slots,
|
|
100
|
-
slotProps: slotProps
|
|
99
|
+
slots: _extends({}, slots, fieldProps.slots),
|
|
100
|
+
slotProps: _extends({}, slotProps, fieldProps.slotProps)
|
|
101
101
|
}, isSingleInput && {
|
|
102
102
|
inputRef
|
|
103
103
|
})), /*#__PURE__*/_jsx(PickersModalDialog, {
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const useDesktopRangePicker = _ref => {
|
|
|
25
25
|
steps
|
|
26
26
|
} = _ref,
|
|
27
27
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
28
|
-
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "
|
|
28
|
+
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
29
29
|
const {
|
|
30
30
|
slots,
|
|
31
31
|
slotProps,
|
|
@@ -68,8 +68,8 @@ const useDesktopRangePicker = _ref => {
|
|
|
68
68
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
|
|
69
69
|
value: rangePositionResponse,
|
|
70
70
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps, {
|
|
71
|
-
slots: slots,
|
|
72
|
-
slotProps: slotProps
|
|
71
|
+
slots: (0, _extends2.default)({}, slots, fieldProps.slots),
|
|
72
|
+
slotProps: (0, _extends2.default)({}, slotProps, fieldProps.slotProps)
|
|
73
73
|
}, isSingleInput && {
|
|
74
74
|
inputRef
|
|
75
75
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickerPopper, {
|
|
@@ -27,7 +27,7 @@ const useMobileRangePicker = _ref => {
|
|
|
27
27
|
steps
|
|
28
28
|
} = _ref,
|
|
29
29
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
30
|
-
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "
|
|
30
|
+
(0, _xLicense.useLicenseVerifier)('x-date-pickers-pro', "MTc2MzU5NjgwMDAwMA==");
|
|
31
31
|
const {
|
|
32
32
|
slots,
|
|
33
33
|
slotProps: innerSlotProps,
|
|
@@ -103,8 +103,8 @@ const useMobileRangePicker = _ref => {
|
|
|
103
103
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_usePickerRangePositionContext.PickerRangePositionContext.Provider, {
|
|
104
104
|
value: rangePositionResponse,
|
|
105
105
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Field, (0, _extends2.default)({}, fieldProps, {
|
|
106
|
-
slots: slots,
|
|
107
|
-
slotProps: slotProps
|
|
106
|
+
slots: (0, _extends2.default)({}, slots, fieldProps.slots),
|
|
107
|
+
slotProps: (0, _extends2.default)({}, slotProps, fieldProps.slotProps)
|
|
108
108
|
}, isSingleInput && {
|
|
109
109
|
inputRef
|
|
110
110
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PickersModalDialog, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.19.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.28.4",
|
|
34
|
-
"@mui/utils": "^7.3.
|
|
34
|
+
"@mui/utils": "^7.3.5",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/x-date-pickers": "8.
|
|
39
|
-
"@mui/x-internals": "8.
|
|
40
|
-
"@mui/x-license": "8.
|
|
38
|
+
"@mui/x-date-pickers": "8.19.0",
|
|
39
|
+
"@mui/x-internals": "8.19.0",
|
|
40
|
+
"@mui/x-license": "8.19.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.9.0",
|