@mui/x-date-pickers-pro 9.0.0-rc.0 → 9.0.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 +114 -2
- package/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/DateRangeCalendar/DateRangeCalendar.mjs +2 -2
- package/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/DateRangePickerDay/DateRangePickerDay.mjs +2 -2
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +0 -24
- package/SingleInputDateRangeField/SingleInputDateRangeField.mjs +0 -24
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +0 -24
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.mjs +0 -24
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +0 -24
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.mjs +0 -24
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.mjs +2 -2
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.mjs +2 -2
- package/internals/utils/createMultiInputRangeField/useTextFieldProps.js +7 -5
- package/internals/utils/createMultiInputRangeField/useTextFieldProps.mjs +7 -5
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.0.0
|
|
4
|
+
|
|
5
|
+
<!-- generated comparing v9.0.0-rc.0..master -->
|
|
6
|
+
|
|
7
|
+
_Apr 8, 2026_
|
|
8
|
+
|
|
9
|
+
🥳 We're excited to announce the stable release of MUI X v9!
|
|
10
|
+
This major release includes many new features and improvements. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- Data Grid – [Charts integration](https://mui.com/x/react-data-grid/charts-integration/) [Premium]
|
|
13
|
+
- Data Grid – [AI Assistant](https://mui.com/x/react-data-grid/ai-assistant/) [Premium]
|
|
14
|
+
- Data Grid – [Undo and redo](https://mui.com/x/react-data-grid/undo-redo/) [Premium]
|
|
15
|
+
- Data Grid – [Drag fill](https://mui.com/x/react-data-grid/clipboard/#drag-to-fill) [Premium]
|
|
16
|
+
- Data Grid – [longText column type](https://mui.com/x/react-data-grid/column-definition/#column-types)
|
|
17
|
+
- Charts – [Interaction and accessibility](https://mui.com/x/react-charts/accessibility/)
|
|
18
|
+
- Charts – [Candlestick](https://mui.com/x/react-charts/candlestick/) [Premium]
|
|
19
|
+
- Charts – [Range bar charts](https://mui.com/x/react-charts/range-bar/) [Premium]
|
|
20
|
+
- Charts – [WebGL Heatmap renderer](https://mui.com/x/react-charts/heatmap/#webgl-renderer) [Premium]
|
|
21
|
+
- Tree View – [Virtualization](https://mui.com/x/react-tree-view/rich-tree-view/virtualization/) [Pro]
|
|
22
|
+
- New [Scheduler](https://mui.com/x/react-scheduler/) packages [Alpha]
|
|
23
|
+
|
|
24
|
+
We'd like to extend a big thank you to the 5 contributors who made this release possible.
|
|
25
|
+
The following team members contributed to this release:
|
|
26
|
+
@DanailH, @LukasTy, @MBilalShafi, @oliviertassinari, @siriwatknp
|
|
27
|
+
|
|
28
|
+
### Data Grid
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid@9.0.0`
|
|
31
|
+
|
|
32
|
+
Internal changes.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@9.0.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@9.0.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Preserve parent selection for non-selectable children (#21132) @MBilalShafi
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@9.0.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@9.0.0`, plus:
|
|
43
|
+
|
|
44
|
+
- [DataGridPremium] Drag fill (#21717) @MBilalShafi
|
|
45
|
+
|
|
46
|
+
### Date and Time Pickers
|
|
47
|
+
|
|
48
|
+
#### Breaking changes
|
|
49
|
+
|
|
50
|
+
- Removed the legacy Pickers and Field TextField props (for example: `InputProps`) in favor of the nested `slotProps`. [Read more](https://mui.com/x/migration/migration-pickers-v8/#drop-deprecated-pickerstextfield-props)
|
|
51
|
+
- The `utils` field in `PickersAdapterContextValue` has been removed in favor of the `adapter` field.
|
|
52
|
+
This should no longer affect you, as the context export has also been removed.
|
|
53
|
+
- `MuiPickersAdapterContext` export has been removed.
|
|
54
|
+
Prefer using the `usePickerAdapter` hook. [Read more](https://mui.com/x/migration/migration-pickers-v8/#localizationprovider-breaking-changes).
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers@9.0.0`
|
|
57
|
+
|
|
58
|
+
- [pickers] Refactor `PickersTextField` to use `slotProps` approach (#22002) @LukasTy
|
|
59
|
+
- [pickers] Remove deprecated LocalizationProvider legacy API (#22010) @LukasTy
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-date-pickers-pro@9.0.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-date-pickers@9.0.0`.
|
|
64
|
+
|
|
65
|
+
### Charts
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts@9.0.0`
|
|
68
|
+
|
|
69
|
+
Internal changes.
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-charts-pro@9.0.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-charts@9.0.0`.
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts-premium@9.0.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-charts-pro@9.0.0`.
|
|
78
|
+
|
|
79
|
+
### Tree View
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-tree-view@9.0.0`
|
|
82
|
+
|
|
83
|
+
Internal changes.
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-tree-view-pro@9.0.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
86
|
+
|
|
87
|
+
Same changes as in `@mui/x-tree-view@9.0.0`.
|
|
88
|
+
|
|
89
|
+
### Scheduler
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-scheduler@9.0.0-alpha.0`
|
|
92
|
+
|
|
93
|
+
Internal changes.
|
|
94
|
+
|
|
95
|
+
#### `@mui/x-scheduler-premium@9.0.0-alpha.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
96
|
+
|
|
97
|
+
Same changes as in `@mui/x-scheduler-pro@9.0.0-alpha.0`.
|
|
98
|
+
|
|
99
|
+
### Codemod
|
|
100
|
+
|
|
101
|
+
#### `@mui/x-codemod@9.0.0`
|
|
102
|
+
|
|
103
|
+
Internal changes.
|
|
104
|
+
|
|
105
|
+
### Docs
|
|
106
|
+
|
|
107
|
+
- [docs] Add explanation for v8 -> v9 license migration (#22004) @DanailH
|
|
108
|
+
|
|
109
|
+
### Core
|
|
110
|
+
|
|
111
|
+
- [code-infra] Optimize dependency definition (#22006) @LukasTy
|
|
112
|
+
- [internal] Prepare v9 stable (#22018) @siriwatknp
|
|
113
|
+
- [internal] Remove 'conf' from codebase (#21989) @oliviertassinari
|
|
114
|
+
|
|
3
115
|
## 9.0.0-rc.0
|
|
4
116
|
|
|
5
117
|
<!-- generated comparing v9.0.0-beta.0..master -->
|
|
@@ -40,8 +152,8 @@ Same changes as in `@mui/x-data-grid-pro@9.0.0-rc.0`, plus:
|
|
|
40
152
|
|
|
41
153
|
#### Breaking changes
|
|
42
154
|
|
|
43
|
-
- Accessible DOM structure is now the only default. [Read more](https://
|
|
44
|
-
- The `PickerDay2` and `DateRangePickerDay2` components were propagated to stable while removing the previous defaults. [Read more](https://
|
|
155
|
+
- Accessible DOM structure is now the only default. [Read more](https://mui.com/x/migration/migration-pickers-v8/#accessible-dom-structure-is-now-the-default)
|
|
156
|
+
- The `PickerDay2` and `DateRangePickerDay2` components were propagated to stable while removing the previous defaults. [Read more](https://mui.com/x/migration/migration-pickers-v8/#day-slot)
|
|
45
157
|
|
|
46
158
|
#### `@mui/x-date-pickers@9.0.0-rc.0`
|
|
47
159
|
|
|
@@ -37,8 +37,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
37
37
|
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"],
|
|
38
38
|
_excluded2 = ["isDragging", "rangeDragDay", "draggingDatePosition"];
|
|
39
39
|
const packageInfo = {
|
|
40
|
-
releaseDate: "
|
|
41
|
-
version: "9.0.0
|
|
40
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
41
|
+
version: "9.0.0",
|
|
42
42
|
name: 'x-date-pickers-pro'
|
|
43
43
|
};
|
|
44
44
|
const DateRangeCalendarRoot = (0, _styles.styled)('div', {
|
|
@@ -30,8 +30,8 @@ import { PickersRangeCalendarHeader } from "../PickersRangeCalendarHeader/index.
|
|
|
30
30
|
import { useNullablePickerRangePositionContext } from "../internals/hooks/useNullablePickerRangePositionContext.mjs";
|
|
31
31
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
32
|
const packageInfo = {
|
|
33
|
-
releaseDate: "
|
|
34
|
-
version: "9.0.0
|
|
33
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
34
|
+
version: "9.0.0",
|
|
35
35
|
name: 'x-date-pickers-pro'
|
|
36
36
|
};
|
|
37
37
|
const DateRangeCalendarRoot = styled('div', {
|
|
@@ -322,8 +322,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
|
|
|
322
322
|
name: 'MuiDateRangePickerDay'
|
|
323
323
|
});
|
|
324
324
|
(0, _internals.useLicenseVerifier)({
|
|
325
|
-
releaseDate: "
|
|
326
|
-
version: "9.0.0
|
|
325
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
326
|
+
version: "9.0.0",
|
|
327
327
|
name: 'x-date-pickers-pro'
|
|
328
328
|
});
|
|
329
329
|
const adapter = (0, _hooks.usePickerAdapter)();
|
|
@@ -315,8 +315,8 @@ const DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePi
|
|
|
315
315
|
name: 'MuiDateRangePickerDay'
|
|
316
316
|
});
|
|
317
317
|
useLicenseVerifier({
|
|
318
|
-
releaseDate: "
|
|
319
|
-
version: "9.0.0
|
|
318
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
319
|
+
version: "9.0.0",
|
|
320
320
|
name: 'x-date-pickers-pro'
|
|
321
321
|
});
|
|
322
322
|
const adapter = usePickerAdapter();
|
|
@@ -143,11 +143,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
143
143
|
* @default "dense"
|
|
144
144
|
*/
|
|
145
145
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
146
|
-
/**
|
|
147
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
148
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
149
|
-
*/
|
|
150
|
-
FormHelperTextProps: _propTypes.default.object,
|
|
151
146
|
/**
|
|
152
147
|
* If `true`, the input will take up the full width of its container.
|
|
153
148
|
* @default false
|
|
@@ -168,25 +163,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
168
163
|
* The id of the `input` element.
|
|
169
164
|
*/
|
|
170
165
|
id: _propTypes.default.string,
|
|
171
|
-
/**
|
|
172
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
173
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
174
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
175
|
-
*/
|
|
176
|
-
InputLabelProps: _propTypes.default.object,
|
|
177
|
-
/**
|
|
178
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
179
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
180
|
-
*/
|
|
181
|
-
inputProps: _propTypes.default.object,
|
|
182
|
-
/**
|
|
183
|
-
* Props applied to the Input element.
|
|
184
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
185
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
186
|
-
* component depending on the `variant` prop value.
|
|
187
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
188
|
-
*/
|
|
189
|
-
InputProps: _propTypes.default.object,
|
|
190
166
|
/**
|
|
191
167
|
* Pass a ref to the `input` element.
|
|
192
168
|
*/
|
|
@@ -136,11 +136,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
136
136
|
* @default "dense"
|
|
137
137
|
*/
|
|
138
138
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
139
|
-
/**
|
|
140
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
141
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
142
|
-
*/
|
|
143
|
-
FormHelperTextProps: PropTypes.object,
|
|
144
139
|
/**
|
|
145
140
|
* If `true`, the input will take up the full width of its container.
|
|
146
141
|
* @default false
|
|
@@ -161,25 +156,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
161
156
|
* The id of the `input` element.
|
|
162
157
|
*/
|
|
163
158
|
id: PropTypes.string,
|
|
164
|
-
/**
|
|
165
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
166
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
167
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
168
|
-
*/
|
|
169
|
-
InputLabelProps: PropTypes.object,
|
|
170
|
-
/**
|
|
171
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
172
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
173
|
-
*/
|
|
174
|
-
inputProps: PropTypes.object,
|
|
175
|
-
/**
|
|
176
|
-
* Props applied to the Input element.
|
|
177
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
178
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
179
|
-
* component depending on the `variant` prop value.
|
|
180
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
181
|
-
*/
|
|
182
|
-
InputProps: PropTypes.object,
|
|
183
159
|
/**
|
|
184
160
|
* Pass a ref to the `input` element.
|
|
185
161
|
*/
|
|
@@ -153,11 +153,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
153
153
|
* @default "dense"
|
|
154
154
|
*/
|
|
155
155
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
156
|
-
/**
|
|
157
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
158
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
159
|
-
*/
|
|
160
|
-
FormHelperTextProps: _propTypes.default.object,
|
|
161
156
|
/**
|
|
162
157
|
* If `true`, the input will take up the full width of its container.
|
|
163
158
|
* @default false
|
|
@@ -178,25 +173,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
178
173
|
* The id of the `input` element.
|
|
179
174
|
*/
|
|
180
175
|
id: _propTypes.default.string,
|
|
181
|
-
/**
|
|
182
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
183
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
184
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
185
|
-
*/
|
|
186
|
-
InputLabelProps: _propTypes.default.object,
|
|
187
|
-
/**
|
|
188
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
189
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
190
|
-
*/
|
|
191
|
-
inputProps: _propTypes.default.object,
|
|
192
|
-
/**
|
|
193
|
-
* Props applied to the Input element.
|
|
194
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
195
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
196
|
-
* component depending on the `variant` prop value.
|
|
197
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
198
|
-
*/
|
|
199
|
-
InputProps: _propTypes.default.object,
|
|
200
176
|
/**
|
|
201
177
|
* Pass a ref to the `input` element.
|
|
202
178
|
*/
|
|
@@ -146,11 +146,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
146
146
|
* @default "dense"
|
|
147
147
|
*/
|
|
148
148
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
149
|
-
/**
|
|
150
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
151
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
152
|
-
*/
|
|
153
|
-
FormHelperTextProps: PropTypes.object,
|
|
154
149
|
/**
|
|
155
150
|
* If `true`, the input will take up the full width of its container.
|
|
156
151
|
* @default false
|
|
@@ -171,25 +166,6 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
171
166
|
* The id of the `input` element.
|
|
172
167
|
*/
|
|
173
168
|
id: PropTypes.string,
|
|
174
|
-
/**
|
|
175
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
176
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
177
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
178
|
-
*/
|
|
179
|
-
InputLabelProps: PropTypes.object,
|
|
180
|
-
/**
|
|
181
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
182
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
183
|
-
*/
|
|
184
|
-
inputProps: PropTypes.object,
|
|
185
|
-
/**
|
|
186
|
-
* Props applied to the Input element.
|
|
187
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
188
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
189
|
-
* component depending on the `variant` prop value.
|
|
190
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
191
|
-
*/
|
|
192
|
-
InputProps: PropTypes.object,
|
|
193
169
|
/**
|
|
194
170
|
* Pass a ref to the `input` element.
|
|
195
171
|
*/
|
|
@@ -153,11 +153,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
153
153
|
* @default "dense"
|
|
154
154
|
*/
|
|
155
155
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
156
|
-
/**
|
|
157
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
158
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
159
|
-
*/
|
|
160
|
-
FormHelperTextProps: _propTypes.default.object,
|
|
161
156
|
/**
|
|
162
157
|
* If `true`, the input will take up the full width of its container.
|
|
163
158
|
* @default false
|
|
@@ -178,25 +173,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
178
173
|
* The id of the `input` element.
|
|
179
174
|
*/
|
|
180
175
|
id: _propTypes.default.string,
|
|
181
|
-
/**
|
|
182
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
183
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
184
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
185
|
-
*/
|
|
186
|
-
InputLabelProps: _propTypes.default.object,
|
|
187
|
-
/**
|
|
188
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
189
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
190
|
-
*/
|
|
191
|
-
inputProps: _propTypes.default.object,
|
|
192
|
-
/**
|
|
193
|
-
* Props applied to the Input element.
|
|
194
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
195
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
196
|
-
* component depending on the `variant` prop value.
|
|
197
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
198
|
-
*/
|
|
199
|
-
InputProps: _propTypes.default.object,
|
|
200
176
|
/**
|
|
201
177
|
* Pass a ref to the `input` element.
|
|
202
178
|
*/
|
|
@@ -146,11 +146,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
146
146
|
* @default "dense"
|
|
147
147
|
*/
|
|
148
148
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
149
|
-
/**
|
|
150
|
-
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
151
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
152
|
-
*/
|
|
153
|
-
FormHelperTextProps: PropTypes.object,
|
|
154
149
|
/**
|
|
155
150
|
* If `true`, the input will take up the full width of its container.
|
|
156
151
|
* @default false
|
|
@@ -171,25 +166,6 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
171
166
|
* The id of the `input` element.
|
|
172
167
|
*/
|
|
173
168
|
id: PropTypes.string,
|
|
174
|
-
/**
|
|
175
|
-
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
176
|
-
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
177
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
178
|
-
*/
|
|
179
|
-
InputLabelProps: PropTypes.object,
|
|
180
|
-
/**
|
|
181
|
-
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
|
|
182
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
183
|
-
*/
|
|
184
|
-
inputProps: PropTypes.object,
|
|
185
|
-
/**
|
|
186
|
-
* Props applied to the Input element.
|
|
187
|
-
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
188
|
-
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
189
|
-
* component depending on the `variant` prop value.
|
|
190
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
191
|
-
*/
|
|
192
|
-
InputProps: PropTypes.object,
|
|
193
169
|
/**
|
|
194
170
|
* Pass a ref to the `input` element.
|
|
195
171
|
*/
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -26,8 +26,8 @@ const useDesktopRangePicker = _ref => {
|
|
|
26
26
|
} = _ref,
|
|
27
27
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
28
28
|
(0, _internals.useLicenseVerifier)({
|
|
29
|
-
releaseDate: "
|
|
30
|
-
version: "9.0.0
|
|
29
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
30
|
+
version: "9.0.0",
|
|
31
31
|
name: 'x-date-pickers-pro'
|
|
32
32
|
});
|
|
33
33
|
const {
|
|
@@ -19,8 +19,8 @@ export const useDesktopRangePicker = _ref => {
|
|
|
19
19
|
} = _ref,
|
|
20
20
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
21
21
|
useLicenseVerifier({
|
|
22
|
-
releaseDate: "
|
|
23
|
-
version: "9.0.0
|
|
22
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
23
|
+
version: "9.0.0",
|
|
24
24
|
name: 'x-date-pickers-pro'
|
|
25
25
|
});
|
|
26
26
|
const {
|
|
@@ -28,8 +28,8 @@ const useMobileRangePicker = _ref => {
|
|
|
28
28
|
} = _ref,
|
|
29
29
|
pickerParams = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
|
|
30
30
|
(0, _internals.useLicenseVerifier)({
|
|
31
|
-
releaseDate: "
|
|
32
|
-
version: "9.0.0
|
|
31
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
32
|
+
version: "9.0.0",
|
|
33
33
|
name: 'x-date-pickers-pro'
|
|
34
34
|
});
|
|
35
35
|
const {
|
|
@@ -21,8 +21,8 @@ export const useMobileRangePicker = _ref => {
|
|
|
21
21
|
} = _ref,
|
|
22
22
|
pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
23
|
useLicenseVerifier({
|
|
24
|
-
releaseDate: "
|
|
25
|
-
version: "9.0.0
|
|
24
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
25
|
+
version: "9.0.0",
|
|
26
26
|
name: 'x-date-pickers-pro'
|
|
27
27
|
});
|
|
28
28
|
const {
|
|
@@ -36,18 +36,20 @@ function useTextFieldProps({
|
|
|
36
36
|
position
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
|
-
if (!textFieldProps.
|
|
40
|
-
textFieldProps.
|
|
39
|
+
if (!textFieldProps.slotProps) {
|
|
40
|
+
textFieldProps.slotProps = {};
|
|
41
41
|
}
|
|
42
|
+
const inputSlotProps = (0, _extends2.default)({}, textFieldProps.slotProps.input);
|
|
42
43
|
if (pickerContext) {
|
|
43
44
|
if (!allowTriggerShifting) {
|
|
44
45
|
if (position === 'start') {
|
|
45
|
-
|
|
46
|
+
inputSlotProps.ref = pickerContext.triggerRef;
|
|
46
47
|
}
|
|
47
48
|
} else if (rangePositionContext?.rangePosition === position) {
|
|
48
|
-
|
|
49
|
+
inputSlotProps.ref = pickerContext.triggerRef;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
inputSlotProps['data-multi-input'] = position;
|
|
53
|
+
textFieldProps.slotProps.input = inputSlotProps;
|
|
52
54
|
return textFieldProps;
|
|
53
55
|
}
|
|
@@ -29,18 +29,20 @@ export function useTextFieldProps({
|
|
|
29
29
|
position
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
|
-
if (!textFieldProps.
|
|
33
|
-
textFieldProps.
|
|
32
|
+
if (!textFieldProps.slotProps) {
|
|
33
|
+
textFieldProps.slotProps = {};
|
|
34
34
|
}
|
|
35
|
+
const inputSlotProps = _extends({}, textFieldProps.slotProps.input);
|
|
35
36
|
if (pickerContext) {
|
|
36
37
|
if (!allowTriggerShifting) {
|
|
37
38
|
if (position === 'start') {
|
|
38
|
-
|
|
39
|
+
inputSlotProps.ref = pickerContext.triggerRef;
|
|
39
40
|
}
|
|
40
41
|
} else if (rangePositionContext?.rangePosition === position) {
|
|
41
|
-
|
|
42
|
+
inputSlotProps.ref = pickerContext.triggerRef;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
|
|
45
|
+
inputSlotProps['data-multi-input'] = position;
|
|
46
|
+
textFieldProps.slotProps.input = inputSlotProps;
|
|
45
47
|
return textFieldProps;
|
|
46
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.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,19 +31,19 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.28.6",
|
|
34
|
-
"@mui/utils": "9.0.0
|
|
34
|
+
"@mui/utils": "9.0.0",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"prop-types": "^15.8.1",
|
|
37
37
|
"react-transition-group": "^4.4.5",
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-
|
|
40
|
-
"@mui/x-license": "9.0.0
|
|
38
|
+
"@mui/x-date-pickers": "^9.0.0",
|
|
39
|
+
"@mui/x-internals": "^9.0.0",
|
|
40
|
+
"@mui/x-license": "^9.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@emotion/react": "^11.9.0",
|
|
44
44
|
"@emotion/styled": "^11.8.1",
|
|
45
|
-
"@mui/material": "^7.3.0 || ^9.0.0
|
|
46
|
-
"@mui/system": "^7.3.0 || ^9.0.0
|
|
45
|
+
"@mui/material": "^7.3.0 || ^9.0.0",
|
|
46
|
+
"@mui/system": "^7.3.0 || ^9.0.0",
|
|
47
47
|
"date-fns": "^2.25.0 || ^3.2.0 || ^4.0.0",
|
|
48
48
|
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0 || ^4.0.0-0",
|
|
49
49
|
"dayjs": "^1.10.7",
|