@mui/x-date-pickers-pro 8.0.0-beta.1 → 8.0.0-beta.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 +235 -0
- package/DateRangeCalendar/DateRangeCalendar.js +2 -7
- package/DateRangePicker/shared.js +2 -7
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DateTimeRangePicker/shared.js +2 -11
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +15 -1
- package/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/TimeRangePicker/shared.js +2 -3
- package/esm/DateRangeCalendar/DateRangeCalendar.js +3 -8
- package/esm/DateRangePicker/shared.js +3 -8
- package/esm/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/esm/DateTimeRangePicker/shared.js +3 -12
- package/esm/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/esm/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/esm/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/esm/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/esm/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +16 -2
- package/esm/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/esm/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/esm/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/esm/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/esm/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/esm/TimeRangePicker/shared.js +3 -4
- package/esm/index.js +1 -1
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/esm/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/esm/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/esm/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/esm/internals/models/rangePickerProps.d.ts +14 -0
- package/esm/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/esm/internals/utils/createRangePickerStepNavigation.js +31 -0
- package/esm/internals/utils/releaseInfo.js +1 -1
- package/esm/managers/useDateRangeManager.js +9 -10
- package/esm/managers/useDateTimeRangeManager.js +10 -10
- package/esm/managers/useTimeRangeManager.js +10 -8
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/internals/models/rangePickerProps.d.ts +14 -0
- package/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/internals/utils/createRangePickerStepNavigation.js +37 -0
- package/internals/utils/releaseInfo.js +1 -1
- package/managers/useDateRangeManager.js +8 -9
- package/managers/useDateTimeRangeManager.js +9 -9
- package/managers/useTimeRangeManager.js +9 -7
- package/modern/DateRangeCalendar/DateRangeCalendar.js +3 -8
- package/modern/DateRangePicker/shared.js +3 -8
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/modern/DateTimeRangePicker/shared.js +3 -12
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -1
- package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +9 -1
- package/modern/DesktopTimeRangePicker/DesktopTimeRangePicker.js +9 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +16 -2
- package/modern/MobileTimeRangePicker/MobileTimeRangePicker.js +9 -1
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -4
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -4
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -1
- package/modern/TimeRangePicker/shared.js +3 -4
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -3
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -3
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -3
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -3
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -0
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +10 -3
- package/modern/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -0
- package/modern/internals/models/rangePickerProps.d.ts +14 -0
- package/modern/internals/utils/createRangePickerStepNavigation.d.ts +16 -0
- package/modern/internals/utils/createRangePickerStepNavigation.js +31 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/managers/useDateRangeManager.js +9 -10
- package/modern/managers/useDateTimeRangeManager.js +10 -10
- package/modern/managers/useTimeRangeManager.js +10 -8
- package/package.json +8 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/esm/internals/hooks/models/index.d.ts +0 -1
- package/esm/internals/hooks/models/index.js +0 -1
- package/esm/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/esm/internals/hooks/models/useRangePicker.js +0 -1
- package/internals/hooks/models/index.d.ts +0 -1
- package/internals/hooks/models/index.js +0 -5
- package/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/internals/hooks/models/useRangePicker.js +0 -5
- package/modern/internals/hooks/models/index.d.ts +0 -1
- package/modern/internals/hooks/models/index.js +0 -1
- package/modern/internals/hooks/models/useRangePicker.d.ts +0 -8
- package/modern/internals/hooks/models/useRangePicker.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,241 @@
|
|
|
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.0.0-beta.3
|
|
9
|
+
|
|
10
|
+
_Apr 3, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚫 Removed `react-spring` as a dependency of `@mui/x-charts`
|
|
15
|
+
- 📦 Data Grid list view feature is now stable
|
|
16
|
+
- 💫 Support title in Data Grid
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The list view feature and its related props are now stable.
|
|
30
|
+
|
|
31
|
+
The `unstable_listColumn` prop has been renamed to `listViewColumn`.
|
|
32
|
+
|
|
33
|
+
The `GridListColDef` type has been renamed to `GridListViewColDef`.
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-const listViewColDef: GridListColDef = {
|
|
37
|
+
+const listViewColDef: GridListViewColDef = {
|
|
38
|
+
field: 'listColumn',
|
|
39
|
+
renderCell: ListViewCell,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
<DataGridPro
|
|
43
|
+
- unstable_listView
|
|
44
|
+
- unstable_listColumn={listViewColDef}
|
|
45
|
+
+ listView
|
|
46
|
+
+ listViewColumn={listViewColDef}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The `useGridApiEventHandler()` hook has been renamed to `useGridEvent()`.
|
|
51
|
+
- The `useGridApiOptionHandler()` hook has been renamed to `useGridEventPriority()`.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid@8.0.0-beta.3`
|
|
54
|
+
|
|
55
|
+
- [DataGrid] Fix "is any of" autocomplete rendering (#17226) @KenanYusuf
|
|
56
|
+
- [DataGrid] Rename `useGridApiEventHandler()` to `useGridEvent()` (#17159) @romgrk
|
|
57
|
+
- [DataGrid] Support adding a label to the grid (#17147) @KenanYusuf
|
|
58
|
+
- [DataGrid] Refactor: remove material typings (#17119) @romgrk
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.3`, plus:
|
|
63
|
+
|
|
64
|
+
- [DataGridPro] Make list view feature stable (#17217) @KenanYusuf
|
|
65
|
+
- [DataGridPro] Always refetch lazy-loading rows (#16827) @MBilalShafi
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.3`.
|
|
70
|
+
|
|
71
|
+
### Date and Time Pickers
|
|
72
|
+
|
|
73
|
+
#### `@mui/x-date-pickers@8.0.0-beta.3`
|
|
74
|
+
|
|
75
|
+
- [pickers] Add new `nextOrAccept` action bar action (#17037) @flaviendelangle
|
|
76
|
+
- [pickers] Improve the Multi Section Digital Clock scrollbar thickness (#16774) @oliviertassinari
|
|
77
|
+
- [TimePicker] Align the Digital Clock scrollbar thickness (#17203) @LukasTy
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.3`.
|
|
82
|
+
|
|
83
|
+
### Charts
|
|
84
|
+
|
|
85
|
+
#### Breaking changes
|
|
86
|
+
|
|
87
|
+
- Removed `react-spring` as a dependency of `@mui/x-charts`.
|
|
88
|
+
A consequence of this change is that the props of some slots have been changed because the `SpringValue` wrapper has been removed. The affected slots and props are:
|
|
89
|
+
|
|
90
|
+
- the type of the `x`, `y`, `width` and `height` props of the `bar` slot are now `number`;
|
|
91
|
+
- the type of `startAngle`, `endAngle`, `innerRadius`, `outerRadius`, `arcLabelRadius`, `cornerRadius` and `paddingAngle` props of `pieArc` and `pieArcLabel` slot are now `number`.
|
|
92
|
+
|
|
93
|
+
Additionally, the `pieArc` slot now receives a `skipAnimation` prop to configure whether animations should be enabled or disabled.
|
|
94
|
+
|
|
95
|
+
- Tick labels in the y-axis of cartesian charts will now have an ellipsis applied to prevent overflow.
|
|
96
|
+
If your tick labels are being clipped sooner than you would like, you can increase the y-axis size by increasing its width property.
|
|
97
|
+
|
|
98
|
+
- The tooltip DOM structure is modified to improve accessibility. If you relied on it to apply some style or run tests, you might be impacted by this modification.
|
|
99
|
+
- The axis tooltip displays a table per axis with the axis value in a caption.
|
|
100
|
+
- Cells containing the series label and the color mark got merged in a th cell.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-charts@8.0.0-beta.3`
|
|
103
|
+
|
|
104
|
+
- [charts] Adjust color palettes (#17209) @noraleonte
|
|
105
|
+
- [charts] Allow multiple axes in the tooltip (#17058) @alexfauquette
|
|
106
|
+
- [charts] Improve custom legend docs (#17231) @JCQuintas
|
|
107
|
+
- [charts] Fix crash when item shown in tooltip is unmounted (#17169) @bernardobelchior
|
|
108
|
+
- [charts] Migrate some animations from `react-spring` (#16961) @bernardobelchior
|
|
109
|
+
- [charts] Remove `react-spring` (#17123) @bernardobelchior
|
|
110
|
+
- [charts] Fix y-axis tick label overflow (#16846) @bernardobelchior
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-charts-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.3`.
|
|
115
|
+
|
|
116
|
+
### Tree View
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-beta.3`
|
|
119
|
+
|
|
120
|
+
Internal changes.
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.3`.
|
|
125
|
+
|
|
126
|
+
### `@mui/x-codemod@8.0.0-beta.3`
|
|
127
|
+
|
|
128
|
+
- [codemod] Add `listView` prop rename codemod (#17220) @MBilalShafi
|
|
129
|
+
|
|
130
|
+
### Docs
|
|
131
|
+
|
|
132
|
+
- [docs] Add "Usage with Material UI v5/v6" guide (#17164) @cherniavskii
|
|
133
|
+
- [docs] Fix 301 link @oliviertassinari
|
|
134
|
+
- [docs] Fix redirection getting-started (#17200) @oliviertassinari
|
|
135
|
+
- [docs] Sync Stack Overflow docs with reality (#17198) @oliviertassinari
|
|
136
|
+
- [docs] Update Localization Provider JSDoc link (#17207) @LukasTy
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Cleanup `@mui` dependency versions (#17160) @LukasTy
|
|
141
|
+
- [core] Sync scorecards.yml across codebase @oliviertassinari
|
|
142
|
+
- [core] Revert upgrade to React 19.1 (#17206) @bernardobelchior
|
|
143
|
+
- [code-infra] Fix `test:unit` warning (#17224) @JCQuintas
|
|
144
|
+
- [code-infra] Fix pickers failing test after clock=fake removal (#17202) @JCQuintas
|
|
145
|
+
- [code-infra] Remove clock=fake from `describeValidation` (#17150) @JCQuintas
|
|
146
|
+
- [code-infra] Remove clock=fake from `describeValue` (#17199) @JCQuintas
|
|
147
|
+
- [infra] Add write permission for actions in issue status label handler (#17161) @michelengelen
|
|
148
|
+
|
|
149
|
+
## 8.0.0-beta.2
|
|
150
|
+
|
|
151
|
+
_Mar 27, 2025_
|
|
152
|
+
|
|
153
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
154
|
+
|
|
155
|
+
- 🔍 Update the Data Grid quick filter to be collapsed when not in use
|
|
156
|
+
- 🐞 Bugfixes
|
|
157
|
+
|
|
158
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
159
|
+
@lhilgert9.
|
|
160
|
+
Following are all team members who have contributed to this release:
|
|
161
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @hasdfa, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @mnajdova, @romgrk.
|
|
162
|
+
|
|
163
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
164
|
+
|
|
165
|
+
### Data Grid
|
|
166
|
+
|
|
167
|
+
#### `@mui/x-data-grid@8.0.0-beta.2`
|
|
168
|
+
|
|
169
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17057) @arminmeh
|
|
170
|
+
- [DataGrid] Refactor: remove more material (#16922) @romgrk
|
|
171
|
+
- [DataGrid] Update Quick Filter component to be expandable (#16862) @KenanYusuf
|
|
172
|
+
- [DataGrid] Fix crash when used with `@mui/styled-engine-sc` (#17154) @KenanYusuf
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.2`, plus:
|
|
177
|
+
|
|
178
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children (#17144) @MBilalShafi
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
181
|
+
|
|
182
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.2`.
|
|
183
|
+
|
|
184
|
+
### Date and Time Pickers
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-date-pickers@8.0.0-beta.2`
|
|
187
|
+
|
|
188
|
+
- [fields] Extract the props of each field slot into a standalone hook for easier re-use (#17114) @flaviendelangle
|
|
189
|
+
- [pickers] Fix visual regression in Date Range Calendar's day (#17148) @flaviendelangle
|
|
190
|
+
- [pickers] Remove all code duplication to apply default values to validation props (#17038) @flaviendelangle
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
193
|
+
|
|
194
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.2`.
|
|
195
|
+
|
|
196
|
+
### Charts
|
|
197
|
+
|
|
198
|
+
#### `@mui/x-charts@8.0.0-beta.2`
|
|
199
|
+
|
|
200
|
+
- [charts] Memoize axes and series with default (#17156) @alexfauquette
|
|
201
|
+
- [charts] Add pie benchmark (#17115) @JCQuintas
|
|
202
|
+
- [charts] Fix CSS vars support for dark theme (#17106) @alexfauquette
|
|
203
|
+
- [charts] Fix radar hover (#17134) @alexfauquette
|
|
204
|
+
- [charts] Move axis interaction to selectors (#17039) @alexfauquette
|
|
205
|
+
- [charts] Fix Pie benchmark (#17125) @JCQuintas
|
|
206
|
+
|
|
207
|
+
#### `@mui/x-charts-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
208
|
+
|
|
209
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.2`.
|
|
210
|
+
|
|
211
|
+
### Tree View
|
|
212
|
+
|
|
213
|
+
#### `@mui/x-tree-view@8.0.0-beta.2`
|
|
214
|
+
|
|
215
|
+
Internal changes.
|
|
216
|
+
|
|
217
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
218
|
+
|
|
219
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.2`.
|
|
220
|
+
|
|
221
|
+
### `@mui/x-codemod@8.0.0-beta.1`
|
|
222
|
+
|
|
223
|
+
- [codemod] Add Data Grid codemods (#17121, #17124) @MBilalShafi
|
|
224
|
+
|
|
225
|
+
### Docs
|
|
226
|
+
|
|
227
|
+
- [docs] Fix example import for `ExportExcel` component (#17110) @KenanYusuf
|
|
228
|
+
|
|
229
|
+
### Core
|
|
230
|
+
|
|
231
|
+
- [code-infra] Remove `@mui/styles` dependency & patches (#17071) @mnajdova
|
|
232
|
+
- [code-infra] Add more tests to slow screenshot tests (#17075) @JCQuintas
|
|
233
|
+
- [code-infra] Fix pickers codecov (#17120) @JCQuintas
|
|
234
|
+
- [code-infra] Move `isDeepEqual` to @mui/x-internals (#17129) @JCQuintas
|
|
235
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17108) @LukasTy
|
|
236
|
+
- [code-infra] Update some data-grid tests for vitest (#17078, #17104, #17146) @JCQuintas
|
|
237
|
+
- [code-infra] Update some date-pickers tests for vitest (#17083) @JCQuintas
|
|
238
|
+
- [infra] Update `issue-status-label-handler.yml` @michelengelen
|
|
239
|
+
- [infra] Added reusable issue status label handler workflow (#17145) @michelengelen
|
|
240
|
+
- [infra] Switch to reusable 'stale issues/PRs' workflow (#17107) @michelengelen
|
|
241
|
+
- [telemetry] Improve request body size, update dependencies, and optimize SSR handling (#17008) @hasdfa
|
|
242
|
+
|
|
8
243
|
## 8.0.0-beta.1
|
|
9
244
|
|
|
10
245
|
_Mar 21, 2025_
|
|
@@ -81,25 +81,20 @@ const InnerDayCalendarForRange = (0, _styles.styled)(_internals.DayCalendar)(({
|
|
|
81
81
|
}));
|
|
82
82
|
const DayCalendarForRange = InnerDayCalendarForRange;
|
|
83
83
|
function useDateRangeCalendarDefaultizedProps(props, name) {
|
|
84
|
-
const utils = (0, _internals.useUtils)();
|
|
85
|
-
const defaultDates = (0, _internals.useDefaultDates)();
|
|
86
84
|
const themeProps = (0, _styles.useThemeProps)({
|
|
87
85
|
props,
|
|
88
86
|
name
|
|
89
87
|
});
|
|
90
88
|
const reduceAnimations = (0, _internals.useReduceAnimations)(themeProps.reduceAnimations);
|
|
91
|
-
|
|
89
|
+
const validationProps = (0, _internals.useApplyDefaultValuesToDateValidationProps)(themeProps);
|
|
90
|
+
return (0, _extends2.default)({}, themeProps, validationProps, {
|
|
92
91
|
renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
93
92
|
children: "..."
|
|
94
93
|
})),
|
|
95
94
|
reduceAnimations,
|
|
96
95
|
loading: props.loading ?? false,
|
|
97
|
-
disablePast: props.disablePast ?? false,
|
|
98
|
-
disableFuture: props.disableFuture ?? false,
|
|
99
96
|
openTo: themeProps.openTo ?? 'day',
|
|
100
97
|
views: themeProps.views ?? ['day'],
|
|
101
|
-
minDate: (0, _internals.applyDefaultDate)(utils, themeProps.minDate, defaultDates.minDate),
|
|
102
|
-
maxDate: (0, _internals.applyDefaultDate)(utils, themeProps.maxDate, defaultDates.maxDate),
|
|
103
98
|
calendars: themeProps.calendars ?? 2,
|
|
104
99
|
disableDragEditing: themeProps.disableDragEditing ?? false,
|
|
105
100
|
availableRangePositions: themeProps.availableRangePositions ?? ['start', 'end']
|
|
@@ -12,12 +12,11 @@ var _styles = require("@mui/material/styles");
|
|
|
12
12
|
var _internals = require("@mui/x-date-pickers/internals");
|
|
13
13
|
var _DateRangePickerToolbar = require("./DateRangePickerToolbar");
|
|
14
14
|
function useDateRangePickerDefaultizedProps(props, name) {
|
|
15
|
-
const utils = (0, _internals.useUtils)();
|
|
16
|
-
const defaultDates = (0, _internals.useDefaultDates)();
|
|
17
15
|
const themeProps = (0, _styles.useThemeProps)({
|
|
18
16
|
props,
|
|
19
17
|
name
|
|
20
18
|
});
|
|
19
|
+
const validationProps = (0, _internals.useApplyDefaultValuesToDateValidationProps)(themeProps);
|
|
21
20
|
const localeText = React.useMemo(() => {
|
|
22
21
|
if (themeProps.localeText?.toolbarTitle == null) {
|
|
23
22
|
return themeProps.localeText;
|
|
@@ -26,12 +25,8 @@ function useDateRangePickerDefaultizedProps(props, name) {
|
|
|
26
25
|
dateRangePickerToolbarTitle: themeProps.localeText.toolbarTitle
|
|
27
26
|
});
|
|
28
27
|
}, [themeProps.localeText]);
|
|
29
|
-
return (0, _extends2.default)({}, themeProps, {
|
|
28
|
+
return (0, _extends2.default)({}, themeProps, validationProps, {
|
|
30
29
|
localeText,
|
|
31
|
-
disableFuture: themeProps.disableFuture ?? false,
|
|
32
|
-
disablePast: themeProps.disablePast ?? false,
|
|
33
|
-
minDate: (0, _internals.applyDefaultDate)(utils, themeProps.minDate, defaultDates.minDate),
|
|
34
|
-
maxDate: (0, _internals.applyDefaultDate)(utils, themeProps.maxDate, defaultDates.maxDate),
|
|
35
30
|
slots: (0, _extends2.default)({
|
|
36
31
|
toolbar: _DateRangePickerToolbar.DateRangePickerToolbar
|
|
37
32
|
}, themeProps.slots)
|
|
@@ -12,11 +12,11 @@ var _DateTimeRangePickerToolbar = require("./DateTimeRangePickerToolbar");
|
|
|
12
12
|
var _DateTimeRangePickerTabs = require("./DateTimeRangePickerTabs");
|
|
13
13
|
function useDateTimeRangePickerDefaultizedProps(props, name) {
|
|
14
14
|
const utils = (0, _internals.useUtils)();
|
|
15
|
-
const defaultDates = (0, _internals.useDefaultDates)();
|
|
16
15
|
const themeProps = (0, _styles.useThemeProps)({
|
|
17
16
|
props,
|
|
18
17
|
name
|
|
19
18
|
});
|
|
19
|
+
const validationProps = (0, _internals.useApplyDefaultValuesToDateTimeValidationProps)(themeProps);
|
|
20
20
|
const ampm = themeProps.ampm ?? utils.is12HourCycleInCurrentLocale();
|
|
21
21
|
const {
|
|
22
22
|
openTo,
|
|
@@ -38,22 +38,13 @@ function useDateTimeRangePickerDefaultizedProps(props, name) {
|
|
|
38
38
|
timeSteps: themeProps.timeSteps,
|
|
39
39
|
views: defaultViews
|
|
40
40
|
});
|
|
41
|
-
return (0, _extends2.default)({}, themeProps, {
|
|
41
|
+
return (0, _extends2.default)({}, themeProps, validationProps, {
|
|
42
42
|
timeSteps,
|
|
43
43
|
openTo,
|
|
44
44
|
shouldRenderTimeInASingleColumn,
|
|
45
45
|
thresholdToRenderTimeInASingleColumn,
|
|
46
46
|
views,
|
|
47
47
|
ampm,
|
|
48
|
-
disableFuture: themeProps.disableFuture ?? false,
|
|
49
|
-
disablePast: themeProps.disablePast ?? false,
|
|
50
|
-
minDate: (0, _internals.applyDefaultDate)(utils, themeProps.minDateTime ?? themeProps.minDate, defaultDates.minDate),
|
|
51
|
-
maxDate: (0, _internals.applyDefaultDate)(utils, themeProps.maxDateTime ?? themeProps.maxDate, defaultDates.maxDate),
|
|
52
|
-
minTime: themeProps.minDateTime ?? themeProps.minTime,
|
|
53
|
-
maxTime: themeProps.maxDateTime ?? themeProps.maxTime,
|
|
54
|
-
disableIgnoringDatePartForTimeValidation: themeProps.disableIgnoringDatePartForTimeValidation ?? Boolean(themeProps.minDateTime || themeProps.maxDateTime ||
|
|
55
|
-
// allow digital clocks to correctly check time validity: https://github.com/mui/mui-x/issues/12048
|
|
56
|
-
themeProps.disablePast || themeProps.disableFuture),
|
|
57
48
|
slots: (0, _extends2.default)({
|
|
58
49
|
tabs: _DateTimeRangePickerTabs.DateTimeRangePickerTabs,
|
|
59
50
|
toolbar: _DateTimeRangePickerToolbar.DateTimeRangePickerToolbar
|
|
@@ -67,7 +67,8 @@ const DesktopDateRangePicker = exports.DesktopDateRangePicker = /*#__PURE__*/Rea
|
|
|
67
67
|
props,
|
|
68
68
|
valueManager: _valueManagers.rangeValueManager,
|
|
69
69
|
valueType: 'date',
|
|
70
|
-
validator: _validation2.validateDateRange
|
|
70
|
+
validator: _validation2.validateDateRange,
|
|
71
|
+
steps: null
|
|
71
72
|
});
|
|
72
73
|
return renderPicker();
|
|
73
74
|
});
|
|
@@ -31,6 +31,13 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
31
31
|
var _hooks = require("../hooks");
|
|
32
32
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
33
|
const _excluded = ["openTo"];
|
|
34
|
+
const STEPS = [{
|
|
35
|
+
views: null,
|
|
36
|
+
rangePosition: 'start'
|
|
37
|
+
}, {
|
|
38
|
+
views: null,
|
|
39
|
+
rangePosition: 'end'
|
|
40
|
+
}];
|
|
34
41
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
35
42
|
const {
|
|
36
43
|
viewRenderers,
|
|
@@ -135,7 +142,8 @@ const DesktopDateTimeRangePicker = exports.DesktopDateTimeRangePicker = /*#__PUR
|
|
|
135
142
|
valueManager: _valueManagers.rangeValueManager,
|
|
136
143
|
valueType: 'date-time',
|
|
137
144
|
validator: _validation2.validateDateTimeRange,
|
|
138
|
-
rendererInterceptor
|
|
145
|
+
rendererInterceptor,
|
|
146
|
+
steps: STEPS
|
|
139
147
|
});
|
|
140
148
|
return renderPicker();
|
|
141
149
|
});
|
|
@@ -27,6 +27,13 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
27
27
|
var _TimeRangePickerTimeWrapper = require("../TimeRangePicker/TimeRangePickerTimeWrapper");
|
|
28
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
29
29
|
const _excluded = ["openTo"];
|
|
30
|
+
const STEPS = [{
|
|
31
|
+
views: null,
|
|
32
|
+
rangePosition: 'start'
|
|
33
|
+
}, {
|
|
34
|
+
views: null,
|
|
35
|
+
rangePosition: 'end'
|
|
36
|
+
}];
|
|
30
37
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
31
38
|
const {
|
|
32
39
|
viewRenderers,
|
|
@@ -108,7 +115,8 @@ const DesktopTimeRangePicker = exports.DesktopTimeRangePicker = /*#__PURE__*/Rea
|
|
|
108
115
|
valueManager: _valueManagers.rangeValueManager,
|
|
109
116
|
valueType: 'time',
|
|
110
117
|
validator: _validateTimeRange.validateTimeRange,
|
|
111
|
-
rendererInterceptor
|
|
118
|
+
rendererInterceptor,
|
|
119
|
+
steps: STEPS
|
|
112
120
|
});
|
|
113
121
|
return renderPicker();
|
|
114
122
|
});
|
|
@@ -64,7 +64,8 @@ const MobileDateRangePicker = exports.MobileDateRangePicker = /*#__PURE__*/React
|
|
|
64
64
|
props,
|
|
65
65
|
valueManager: _valueManagers.rangeValueManager,
|
|
66
66
|
valueType: 'date',
|
|
67
|
-
validator: _validation2.validateDateRange
|
|
67
|
+
validator: _validation2.validateDateRange,
|
|
68
|
+
steps: null
|
|
68
69
|
});
|
|
69
70
|
return renderPicker();
|
|
70
71
|
});
|
|
@@ -29,6 +29,19 @@ var _dimensions = require("../internals/constants/dimensions");
|
|
|
29
29
|
var _hooks = require("../hooks");
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
const _excluded = ["view", "openTo"];
|
|
32
|
+
const STEPS = [{
|
|
33
|
+
views: ['day'],
|
|
34
|
+
rangePosition: 'start'
|
|
35
|
+
}, {
|
|
36
|
+
views: _internals.TIME_VIEWS,
|
|
37
|
+
rangePosition: 'start'
|
|
38
|
+
}, {
|
|
39
|
+
views: ['day'],
|
|
40
|
+
rangePosition: 'end'
|
|
41
|
+
}, {
|
|
42
|
+
views: _internals.TIME_VIEWS,
|
|
43
|
+
rangePosition: 'end'
|
|
44
|
+
}];
|
|
32
45
|
const rendererInterceptor = function RendererInterceptor(props) {
|
|
33
46
|
const {
|
|
34
47
|
viewRenderers,
|
|
@@ -140,7 +153,8 @@ const MobileDateTimeRangePicker = exports.MobileDateTimeRangePicker = /*#__PURE_
|
|
|
140
153
|
valueManager: _valueManagers.rangeValueManager,
|
|
141
154
|
valueType: 'date-time',
|
|
142
155
|
validator: _validation2.validateDateTimeRange,
|
|
143
|
-
rendererInterceptor
|
|
156
|
+
rendererInterceptor,
|
|
157
|
+
steps: STEPS
|
|
144
158
|
});
|
|
145
159
|
return renderPicker();
|
|
146
160
|
});
|
|
@@ -25,6 +25,13 @@ var _validateTimeRange = require("../validation/validateTimeRange");
|
|
|
25
25
|
var _dimensions = require("../internals/constants/dimensions");
|
|
26
26
|
var _TimeRangePickerTimeWrapper = require("../TimeRangePicker/TimeRangePickerTimeWrapper");
|
|
27
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
|
+
const STEPS = [{
|
|
29
|
+
views: null,
|
|
30
|
+
rangePosition: 'start'
|
|
31
|
+
}, {
|
|
32
|
+
views: null,
|
|
33
|
+
rangePosition: 'end'
|
|
34
|
+
}];
|
|
28
35
|
const rendererInterceptor = function rendererInterceptor(props) {
|
|
29
36
|
const {
|
|
30
37
|
viewRenderers,
|
|
@@ -98,7 +105,8 @@ const MobileTimeRangePicker = exports.MobileTimeRangePicker = /*#__PURE__*/React
|
|
|
98
105
|
valueManager: _valueManagers.rangeValueManager,
|
|
99
106
|
valueType: 'time',
|
|
100
107
|
validator: _validateTimeRange.validateTimeRange,
|
|
101
|
-
rendererInterceptor
|
|
108
|
+
rendererInterceptor,
|
|
109
|
+
steps: STEPS
|
|
102
110
|
});
|
|
103
111
|
return renderPicker();
|
|
104
112
|
});
|
|
@@ -126,7 +126,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
126
126
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
127
127
|
/**
|
|
128
128
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
129
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
129
|
+
* @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.
|
|
130
130
|
*/
|
|
131
131
|
FormHelperTextProps: _propTypes.default.object,
|
|
132
132
|
/**
|
|
@@ -153,12 +153,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
153
153
|
/**
|
|
154
154
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
155
155
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
156
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
156
|
+
* @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.
|
|
157
157
|
*/
|
|
158
158
|
InputLabelProps: _propTypes.default.object,
|
|
159
159
|
/**
|
|
160
160
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
161
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
161
|
+
* @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.
|
|
162
162
|
*/
|
|
163
163
|
inputProps: _propTypes.default.object,
|
|
164
164
|
/**
|
|
@@ -166,7 +166,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
166
166
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
167
167
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
168
168
|
* component depending on the `variant` prop value.
|
|
169
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
169
|
+
* @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.
|
|
170
170
|
*/
|
|
171
171
|
InputProps: _propTypes.default.object,
|
|
172
172
|
/**
|
|
@@ -136,7 +136,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
136
136
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
137
137
|
/**
|
|
138
138
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
139
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
139
|
+
* @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.
|
|
140
140
|
*/
|
|
141
141
|
FormHelperTextProps: _propTypes.default.object,
|
|
142
142
|
/**
|
|
@@ -163,12 +163,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
165
165
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
166
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
166
|
+
* @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.
|
|
167
167
|
*/
|
|
168
168
|
InputLabelProps: _propTypes.default.object,
|
|
169
169
|
/**
|
|
170
170
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
171
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
171
|
+
* @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.
|
|
172
172
|
*/
|
|
173
173
|
inputProps: _propTypes.default.object,
|
|
174
174
|
/**
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
176
176
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
177
177
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
178
178
|
* component depending on the `variant` prop value.
|
|
179
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
179
|
+
* @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.
|
|
180
180
|
*/
|
|
181
181
|
InputProps: _propTypes.default.object,
|
|
182
182
|
/**
|
|
@@ -136,7 +136,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
136
136
|
formatDensity: _propTypes.default.oneOf(['dense', 'spacious']),
|
|
137
137
|
/**
|
|
138
138
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
139
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
139
|
+
* @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.
|
|
140
140
|
*/
|
|
141
141
|
FormHelperTextProps: _propTypes.default.object,
|
|
142
142
|
/**
|
|
@@ -163,12 +163,12 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
165
165
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
166
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
166
|
+
* @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.
|
|
167
167
|
*/
|
|
168
168
|
InputLabelProps: _propTypes.default.object,
|
|
169
169
|
/**
|
|
170
170
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
171
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
171
|
+
* @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.
|
|
172
172
|
*/
|
|
173
173
|
inputProps: _propTypes.default.object,
|
|
174
174
|
/**
|
|
@@ -176,7 +176,7 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
176
176
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
177
177
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
178
178
|
* component depending on the `variant` prop value.
|
|
179
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
179
|
+
* @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.
|
|
180
180
|
*/
|
|
181
181
|
InputProps: _propTypes.default.object,
|
|
182
182
|
/**
|
|
@@ -52,7 +52,8 @@ const StaticDateRangePicker = exports.StaticDateRangePicker = /*#__PURE__*/React
|
|
|
52
52
|
props,
|
|
53
53
|
valueManager: _valueManagers.rangeValueManager,
|
|
54
54
|
valueType: 'date',
|
|
55
|
-
validator: _validation.validateDateRange
|
|
55
|
+
validator: _validation.validateDateRange,
|
|
56
|
+
steps: null
|
|
56
57
|
});
|
|
57
58
|
return renderPicker();
|
|
58
59
|
});
|
|
@@ -18,6 +18,7 @@ function useTimeRangePickerDefaultizedProps(props, name) {
|
|
|
18
18
|
props,
|
|
19
19
|
name
|
|
20
20
|
});
|
|
21
|
+
const validationProps = (0, _internals.useApplyDefaultValuesToTimeValidationProps)(themeProps);
|
|
21
22
|
const ampm = themeProps.ampm ?? utils.is12HourCycleInCurrentLocale();
|
|
22
23
|
const {
|
|
23
24
|
openTo,
|
|
@@ -47,7 +48,7 @@ function useTimeRangePickerDefaultizedProps(props, name) {
|
|
|
47
48
|
timeSteps: themeProps.timeSteps,
|
|
48
49
|
views: defaultViews
|
|
49
50
|
});
|
|
50
|
-
return (0, _extends2.default)({}, themeProps, {
|
|
51
|
+
return (0, _extends2.default)({}, themeProps, validationProps, {
|
|
51
52
|
localeText,
|
|
52
53
|
timeSteps,
|
|
53
54
|
openTo,
|
|
@@ -55,8 +56,6 @@ function useTimeRangePickerDefaultizedProps(props, name) {
|
|
|
55
56
|
thresholdToRenderTimeInASingleColumn,
|
|
56
57
|
views,
|
|
57
58
|
ampm,
|
|
58
|
-
disableFuture: themeProps.disableFuture ?? false,
|
|
59
|
-
disablePast: themeProps.disablePast ?? false,
|
|
60
59
|
slots: (0, _extends2.default)({
|
|
61
60
|
tabs: _TimeRangePickerTabs.TimeRangePickerTabs,
|
|
62
61
|
toolbar: _TimeRangePickerToolbar.TimeRangePickerToolbar
|
|
@@ -15,7 +15,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
15
15
|
import composeClasses from '@mui/utils/composeClasses';
|
|
16
16
|
import useId from '@mui/utils/useId';
|
|
17
17
|
import { Watermark } from '@mui/x-license';
|
|
18
|
-
import {
|
|
18
|
+
import { DayCalendar, useReduceAnimations, useCalendarState, useUtils, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, useControlledValue, useViews, usePickerPrivateContext, areDatesEqual, useApplyDefaultValuesToDateValidationProps } from '@mui/x-date-pickers/internals';
|
|
19
19
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
20
20
|
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
21
21
|
import { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from "./dateRangeCalendarClasses.js";
|
|
@@ -74,25 +74,20 @@ const InnerDayCalendarForRange = styled(DayCalendar)(({
|
|
|
74
74
|
}));
|
|
75
75
|
const DayCalendarForRange = InnerDayCalendarForRange;
|
|
76
76
|
function useDateRangeCalendarDefaultizedProps(props, name) {
|
|
77
|
-
const utils = useUtils();
|
|
78
|
-
const defaultDates = useDefaultDates();
|
|
79
77
|
const themeProps = useThemeProps({
|
|
80
78
|
props,
|
|
81
79
|
name
|
|
82
80
|
});
|
|
83
81
|
const reduceAnimations = useReduceAnimations(themeProps.reduceAnimations);
|
|
84
|
-
|
|
82
|
+
const validationProps = useApplyDefaultValuesToDateValidationProps(themeProps);
|
|
83
|
+
return _extends({}, themeProps, validationProps, {
|
|
85
84
|
renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/_jsx("span", {
|
|
86
85
|
children: "..."
|
|
87
86
|
})),
|
|
88
87
|
reduceAnimations,
|
|
89
88
|
loading: props.loading ?? false,
|
|
90
|
-
disablePast: props.disablePast ?? false,
|
|
91
|
-
disableFuture: props.disableFuture ?? false,
|
|
92
89
|
openTo: themeProps.openTo ?? 'day',
|
|
93
90
|
views: themeProps.views ?? ['day'],
|
|
94
|
-
minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),
|
|
95
|
-
maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate),
|
|
96
91
|
calendars: themeProps.calendars ?? 2,
|
|
97
92
|
disableDragEditing: themeProps.disableDragEditing ?? false,
|
|
98
93
|
availableRangePositions: themeProps.availableRangePositions ?? ['start', 'end']
|