@mui/x-date-pickers-pro 7.1.1 → 7.3.1
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 +290 -2
- package/DateRangeCalendar/DateRangeCalendar.js +1 -2
- package/DateRangeCalendar/useDragRange.d.ts +1 -1
- package/DateRangePicker/DateRangePickerToolbar.js +1 -2
- package/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -2
- package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -5
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +13 -5
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -2
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -2
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -2
- package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +1 -1
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -2
- package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +1 -1
- package/internals/hooks/useEnrichedRangePickerFieldProps.js +3 -3
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -2
- package/internals/hooks/useMultiInputRangeField/shared.d.ts +1 -1
- package/internals/utils/date-utils.d.ts +4 -4
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -2
- package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -2
- package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -2
- package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -5
- package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +13 -5
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -2
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -2
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -2
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -2
- package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +3 -3
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -2
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/node/DateRangeCalendar/useDragRange.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +1 -1
- package/node/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/node/DateRangePicker/shared.js +1 -1
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/node/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
- package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -4
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
- package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +13 -4
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
- package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -1
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -1
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
- package/node/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js +1 -1
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +1 -1
- package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -1
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +1 -1
- package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +1 -1
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +1 -1
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
- package/node/dateRangeViewRenderers/dateRangeViewRenderers.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
- package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/node/internals/hooks/useMultiInputFieldSelectedSections.js +1 -1
- package/node/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +6 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,244 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.3.1
|
|
7
|
+
|
|
8
|
+
_Apr 26, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
|
|
13
|
+
- 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@7.3.1`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
|
|
22
|
+
- [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
|
|
23
|
+
- [DataGrid] Fix group header resize (#12863) @arminmeh
|
|
24
|
+
- [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@7.3.1`.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-premium@7.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.1`.
|
|
33
|
+
|
|
34
|
+
### Date and Time Pickers
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers@7.3.1`
|
|
37
|
+
|
|
38
|
+
- [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
|
|
39
|
+
- [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@7.3.1`
|
|
48
|
+
|
|
49
|
+
- [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
|
|
50
|
+
- [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
|
|
51
|
+
- [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
|
|
52
|
+
- [charts] Improve default tooltip content (#12257) @oliviertassinari
|
|
53
|
+
- [charts] Round y values for bar chart (#12846) @alexfauquette
|
|
54
|
+
|
|
55
|
+
### Tree View
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-tree-view@7.3.1`
|
|
58
|
+
|
|
59
|
+
- [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
|
|
60
|
+
- [TreeView] Rework the selection internals (#12703) @flaviendelangle
|
|
61
|
+
- [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
|
|
66
|
+
- [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
|
|
67
|
+
- [docs] Document interfaces for charts (#12656) @alexfauquette
|
|
68
|
+
- [docs] Fix Vale regression (#12862) @oliviertassinari
|
|
69
|
+
- [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
|
|
70
|
+
- [docs] Update Column features availability (#12865) @DanailH
|
|
71
|
+
|
|
72
|
+
### Core
|
|
73
|
+
|
|
74
|
+
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
75
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
76
|
+
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
77
|
+
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
78
|
+
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
79
|
+
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
80
|
+
- [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
|
|
81
|
+
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
82
|
+
|
|
83
|
+
## 7.3.0
|
|
84
|
+
|
|
85
|
+
_Apr 18, 2024_
|
|
86
|
+
|
|
87
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
88
|
+
|
|
89
|
+
- 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
|
|
90
|
+
- 🎨 Support color scales in Charts (#12490) @alexfauquette
|
|
91
|
+
Add a [`colorMap` configuration](https://mui.com/x/react-charts/styling/#values-color) to an axis, and the chart will use it to select colors.
|
|
92
|
+
Each impacted chart ([bar charts](https://mui.com/x/react-charts/bars/#color-scale), [line charts](https://mui.com/x/react-charts/lines/#color-scale), [scatter charts](https://mui.com/x/react-charts/scatter/#color-scale)) has a dedicated section explaining how this color map is impacting it.
|
|
93
|
+
|
|
94
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
|
|
95
|
+
|
|
96
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid
|
|
97
|
+
- 🐞 Bugfixes
|
|
98
|
+
- 📚 Documentation improvements
|
|
99
|
+
|
|
100
|
+
### Data Grid
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-data-grid@7.3.0`
|
|
103
|
+
|
|
104
|
+
- [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
|
|
105
|
+
- [DataGrid] Fix column resize (#12792) @romgrk
|
|
106
|
+
- [DataGrid] Fix column separators (#12808) @romgrk
|
|
107
|
+
- [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
|
|
108
|
+
- [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
|
|
109
|
+
- [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
|
|
110
|
+
- [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-data-grid-pro@7.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-data-grid@7.3.0`, plus:
|
|
115
|
+
|
|
116
|
+
- [DataGridPro] Implement header filter height (#12666) @romgrk
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-data-grid-premium@7.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
119
|
+
|
|
120
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.0`.
|
|
121
|
+
|
|
122
|
+
### Charts
|
|
123
|
+
|
|
124
|
+
#### Breaking change
|
|
125
|
+
|
|
126
|
+
A typo fix:
|
|
127
|
+
|
|
128
|
+
```diff
|
|
129
|
+
- ContinuouseScaleName
|
|
130
|
+
+ ContinuousScaleName
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-charts@7.3.0`
|
|
134
|
+
|
|
135
|
+
- [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
|
|
136
|
+
- [charts] Add color scale (#12490) @alexfauquette
|
|
137
|
+
- [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
|
|
138
|
+
- [charts] Export more utils (#12744) @alexfauquette
|
|
139
|
+
- [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
|
|
140
|
+
|
|
141
|
+
### Tree View
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-tree-view@7.3.0`
|
|
144
|
+
|
|
145
|
+
- [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
|
|
146
|
+
|
|
147
|
+
### Docs
|
|
148
|
+
|
|
149
|
+
- [docs] Add grid cell display example to the migration guide (#12793) @romgrk
|
|
150
|
+
- [docs] Use charts classes objects (#12781) @alexfauquette
|
|
151
|
+
- [docs] Fix layout shift on demos (#12816) @zanivan
|
|
152
|
+
- [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
|
|
153
|
+
|
|
154
|
+
### Core
|
|
155
|
+
|
|
156
|
+
- [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
|
|
157
|
+
|
|
158
|
+
## 7.2.0
|
|
159
|
+
|
|
160
|
+
_Apr 12, 2024_
|
|
161
|
+
|
|
162
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
163
|
+
|
|
164
|
+
- 🎨 Make grid colors customizable through the MUI themes API
|
|
165
|
+
- 🌍 Improve French (fr-FR), German (de-DE), and Swedish (sv-SE) locales on the Data Grid and Pickers
|
|
166
|
+
- 🐞 Bugfixes
|
|
167
|
+
- 📚 Documentation improvements
|
|
168
|
+
|
|
169
|
+
### Data Grid
|
|
170
|
+
|
|
171
|
+
#### `@mui/x-data-grid@7.2.0`
|
|
172
|
+
|
|
173
|
+
- [DataGrid] Add missing `api` property to `GridCallbackDetails` (#12742) @sai6855
|
|
174
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12722) @cherniavskii
|
|
175
|
+
- [DataGrid] Fix column vertical border (#12741) @romgrk
|
|
176
|
+
- [DataGrid] Fix invalid date error when filtering `date`/`dateTime` columns (#12709) @cherniavskii
|
|
177
|
+
- [DataGrid] Fix overflow with dynamic row height (#12683) @romgrk
|
|
178
|
+
- [DataGrid] Make colors customizable (#12614) @romgrk
|
|
179
|
+
- [l10n] Improve French (fr-FR) locale (#12755) @derek-0000
|
|
180
|
+
- [l10n] Improve German (de-DE) locale (#12752) @Jens-Schoen
|
|
181
|
+
- [l10n] Improve Swedish (sv-SE) locale (#12731) @pontusdacke
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-data-grid-pro@7.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-data-grid@7.2.0`.
|
|
186
|
+
|
|
187
|
+
#### `@mui/x-data-grid-premium@7.2.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
188
|
+
|
|
189
|
+
Same changes as in `@mui/x-data-grid-pro@7.2.0`, plus:
|
|
190
|
+
|
|
191
|
+
- [DataGridPremium] Fix clipboard paste not working when cell loses focus (#12724) @cherniavskii
|
|
192
|
+
|
|
193
|
+
### Date and Time Pickers
|
|
194
|
+
|
|
195
|
+
#### `@mui/x-date-pickers@7.2.0`
|
|
196
|
+
|
|
197
|
+
- [fields] Fix field editing after closing the picker (#12675) @LukasTy
|
|
198
|
+
- [l10n] Improve French (fr-FR) locale (#12692) @FaroukBel
|
|
199
|
+
- [l10n] Improve German (de-DE) locale (#12752) @Jens-Schoen
|
|
200
|
+
- [l10n] Improve Swedish (sv-SE) locale (#12731) @pontusdacke
|
|
201
|
+
- [pickers] Fix desktop date time Pickers grid layout (#12748) @LukasTy
|
|
202
|
+
|
|
203
|
+
#### `@mui/x-date-pickers-pro@7.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
204
|
+
|
|
205
|
+
Same changes as in `@mui/x-date-pickers@7.2.0`, plus:
|
|
206
|
+
|
|
207
|
+
- [DateTimeRangePicker] Fix desktop toolbar style (#12760) @LukasTy
|
|
208
|
+
|
|
209
|
+
### Charts
|
|
210
|
+
|
|
211
|
+
#### `@mui/x-charts@7.2.0`
|
|
212
|
+
|
|
213
|
+
- [charts] Fix Bar chart with empty dataset throwing an error (#12708) @JCQuintas
|
|
214
|
+
- [charts] Fix `tickLabelInterval` not working on `YAxis` (#12746) @JCQuintas
|
|
215
|
+
|
|
216
|
+
### Tree View
|
|
217
|
+
|
|
218
|
+
#### `@mui/x-tree-view@7.2.0`
|
|
219
|
+
|
|
220
|
+
- [TreeView] Add a new lookup to access an item index without expansive computation (#12729) @flaviendelangle
|
|
221
|
+
- [TreeView] Clean up usage of term "node" in internals (#12655) @noraleonte
|
|
222
|
+
- [TreeView] Improve performance by removing `getNavigableChildrenIds` method (#12713) @flaviendelangle
|
|
223
|
+
- [TreeView] Remove `state.items.itemTree` (#12717) @flaviendelangle
|
|
224
|
+
- [TreeView] Remove remaining occurences of the word "node" in the codebase (#12712) @flaviendelangle
|
|
225
|
+
- [TreeView] Return `instance` and `publicAPI` methods from plugin and populate the main objects inside `useTreeView` (#12650) @flaviendelangle
|
|
226
|
+
- [TreeView] Fix behaviors when the item order changes (#12369) @flaviendelangle
|
|
227
|
+
|
|
228
|
+
### Docs
|
|
229
|
+
|
|
230
|
+
- [docs] Add `AxisFormatter` documentation for customizing tick/tooltip value formatting (#12700) @JCQuintas
|
|
231
|
+
- [docs] Add file explorer example to rich tree view customization docs (#12707) @noraleonte
|
|
232
|
+
- [docs] Do not use import of depth 3 in the doc (#12716) @flaviendelangle
|
|
233
|
+
- [docs] Explain how to clip plots with composition (#12679) @alexfauquette
|
|
234
|
+
- [docs] Fix typo in Data Grid v7 migration page (#12720) @bfaulk96
|
|
235
|
+
- [docs] Fix typo in Pickers v7 migration page (#12721) @bfaulk96
|
|
236
|
+
|
|
237
|
+
### Core
|
|
238
|
+
|
|
239
|
+
- [core] Support multiple resolved `l10n` PR packages (#12735) @LukasTy
|
|
240
|
+
- [core] Update Netlify release references in release README (#12687) @LukasTy
|
|
241
|
+
- [core] Use `describeTreeView` for icons tests (#12672) @flaviendelangle
|
|
242
|
+
- [core] Use `describeTreeView` in existing tests for `useTreeViewItems` (#12732) @flaviendelangle
|
|
243
|
+
|
|
6
244
|
## 7.1.1
|
|
7
245
|
|
|
8
246
|
_Apr 5, 2024_
|
|
@@ -82,7 +320,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
82
320
|
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
83
321
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
84
322
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
85
|
-
- [docs] Match IE 11 spacing with Material
|
|
323
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
86
324
|
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
87
325
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
88
326
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
@@ -345,7 +583,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
|
|
|
345
583
|
- [docs] Update links to v6 (#12496) @cherniavskii
|
|
346
584
|
- [docs] Update links to v7 docs (#12500) @noraleonte
|
|
347
585
|
- [docs] Update supported versions (#12508) @joserodolfofreitas
|
|
348
|
-
- [docs] Update "What's new in MUI
|
|
586
|
+
- [docs] Update "What's new in MUI X" page #12527 @cherniavskii
|
|
349
587
|
|
|
350
588
|
### Core
|
|
351
589
|
|
|
@@ -2972,6 +3210,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2972
3210
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2973
3211
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2974
3212
|
|
|
3213
|
+
## 6.19.11
|
|
3214
|
+
|
|
3215
|
+
_Apr 18, 2024_
|
|
3216
|
+
|
|
3217
|
+
We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
|
|
3218
|
+
|
|
3219
|
+
- 🐞 Bugfixes
|
|
3220
|
+
|
|
3221
|
+
### Data Grid
|
|
3222
|
+
|
|
3223
|
+
#### `@mui/x-data-grid@6.19.11`
|
|
3224
|
+
|
|
3225
|
+
- [DataGrid] Fix virtualization memory leak (#12812) @romgrk
|
|
3226
|
+
|
|
3227
|
+
#### `@mui/x-data-grid-pro@6.19.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3228
|
+
|
|
3229
|
+
Same changes as in `@mui/x-data-grid@6.19.11`.
|
|
3230
|
+
|
|
3231
|
+
#### `@mui/x-data-grid-premium@6.19.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3232
|
+
|
|
3233
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.11`.
|
|
3234
|
+
|
|
3235
|
+
## 6.19.10
|
|
3236
|
+
|
|
3237
|
+
_Apr 12, 2024_
|
|
3238
|
+
|
|
3239
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
3240
|
+
|
|
3241
|
+
- 🐞 Bugfixes
|
|
3242
|
+
- 📚 Documentation improvements
|
|
3243
|
+
|
|
3244
|
+
### Data Grid
|
|
3245
|
+
|
|
3246
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
3247
|
+
|
|
3248
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
3249
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
3250
|
+
|
|
3251
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3252
|
+
|
|
3253
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
3254
|
+
|
|
3255
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3256
|
+
|
|
3257
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
3258
|
+
|
|
3259
|
+
### Core
|
|
3260
|
+
|
|
3261
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
3262
|
+
|
|
2975
3263
|
## 6.19.9
|
|
2976
3264
|
|
|
2977
3265
|
_Apr 5, 2024_
|
|
@@ -22,8 +22,7 @@ import { useDragRange } from './useDragRange';
|
|
|
22
22
|
import { useRangePosition } from '../internals/hooks/useRangePosition';
|
|
23
23
|
import { DAY_RANGE_SIZE, DAY_MARGIN } from '../internals/constants/dimensions';
|
|
24
24
|
import { PickersRangeCalendarHeader } from '../PickersRangeCalendarHeader';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const releaseInfo = getReleaseInfo();
|
|
28
27
|
const DateRangeCalendarRoot = styled('div', {
|
|
29
28
|
name: 'MuiDateRangeCalendar',
|
|
@@ -29,5 +29,5 @@ interface UseDragRangeResponse<TDate extends PickerValidDate> extends UseDragRan
|
|
|
29
29
|
rangeDragDay: TDate | null;
|
|
30
30
|
draggingDatePosition: DateRangePosition | null;
|
|
31
31
|
}
|
|
32
|
-
export declare const useDragRange: <TDate extends PickerValidDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>,
|
|
32
|
+
export declare const useDragRange: <TDate extends PickerValidDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, 'setRangeDragDay' | 'setIsDragging' | 'isDragging'>) => UseDragRangeResponse<TDate>;
|
|
33
33
|
export {};
|
|
@@ -9,8 +9,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
10
10
|
import { PickersToolbar, PickersToolbarButton, useUtils, useLocaleText } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const useUtilityClasses = ownerState => {
|
|
15
14
|
const {
|
|
16
15
|
classes
|
|
@@ -9,8 +9,7 @@ import { useLocaleText, isDatePickerView } from '@mui/x-date-pickers/internals';
|
|
|
9
9
|
import IconButton from '@mui/material/IconButton';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
11
11
|
import { getDateTimeRangePickerTabsUtilityClass } from './dateTimeRangePickerTabsClasses';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const viewToTab = (view, rangePosition) => {
|
|
15
14
|
if (isDatePickerView(view)) {
|
|
16
15
|
return rangePosition === 'start' ? 'start-date' : 'end-date';
|
|
@@ -10,8 +10,7 @@ import { useLocaleText, useUtils } from '@mui/x-date-pickers/internals';
|
|
|
10
10
|
import { DateTimePickerToolbar } from '@mui/x-date-pickers/DateTimePicker';
|
|
11
11
|
import { getDateTimeRangePickerToolbarUtilityClass } from './dateTimeRangePickerToolbarClasses';
|
|
12
12
|
import { calculateRangeChange } from '../internals/utils/date-range-manager';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const useUtilityClasses = ownerState => {
|
|
16
15
|
const {
|
|
17
16
|
classes
|
|
@@ -60,9 +59,7 @@ const DateTimeRangePickerToolbarEnd = styled(DateTimePickerToolbar, {
|
|
|
60
59
|
})({
|
|
61
60
|
variants: [{
|
|
62
61
|
props: ({
|
|
63
|
-
|
|
64
|
-
toolbarVariant
|
|
65
|
-
}
|
|
62
|
+
toolbarVariant
|
|
66
63
|
}) => toolbarVariant !== 'desktop',
|
|
67
64
|
style: {
|
|
68
65
|
padding: '12px 8px 12px 12px'
|
|
@@ -19,8 +19,7 @@ import { useDateTimeRangePickerDefaultizedProps } from '../DateTimeRangePicker/s
|
|
|
19
19
|
import { MultiInputDateTimeRangeField } from '../MultiInputDateTimeRangeField';
|
|
20
20
|
import { DateTimeRangePickerTimeWrapper } from '../DateTimeRangePicker/DateTimeRangePickerTimeWrapper';
|
|
21
21
|
import { RANGE_VIEW_HEIGHT } from '../internals/constants/dimensions';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
|
|
25
24
|
const {
|
|
26
25
|
openTo,
|
|
@@ -44,14 +43,23 @@ const rendererInterceptor = function rendererInterceptor(inViewRenderers, popper
|
|
|
44
43
|
children: [inViewRenderers.day?.(_extends({}, rendererProps, {
|
|
45
44
|
availableRangePositions: [rangePosition],
|
|
46
45
|
view: !isTimeViewActive ? popperView : 'day',
|
|
47
|
-
views: rendererProps.views.filter(isDatePickerView)
|
|
46
|
+
views: rendererProps.views.filter(isDatePickerView),
|
|
47
|
+
sx: [{
|
|
48
|
+
gridColumn: 1
|
|
49
|
+
}, ...finalProps.sx]
|
|
48
50
|
})), /*#__PURE__*/_jsx(Divider, {
|
|
49
|
-
orientation: "vertical"
|
|
51
|
+
orientation: "vertical",
|
|
52
|
+
sx: {
|
|
53
|
+
gridColumn: 2
|
|
54
|
+
}
|
|
50
55
|
}), /*#__PURE__*/_jsx(DateTimeRangePickerTimeWrapper, _extends({}, finalProps, {
|
|
51
56
|
view: isTimeViewActive ? popperView : 'hours',
|
|
52
57
|
views: finalProps.views.filter(isInternalTimeView),
|
|
53
58
|
openTo: isInternalTimeView(openTo) ? openTo : 'hours',
|
|
54
|
-
viewRenderer: inViewRenderers[isTimeViewActive ? popperView : 'hours']
|
|
59
|
+
viewRenderer: inViewRenderers[isTimeViewActive ? popperView : 'hours'],
|
|
60
|
+
sx: [{
|
|
61
|
+
gridColumn: 3
|
|
62
|
+
}, ...finalProps.sx]
|
|
55
63
|
}))]
|
|
56
64
|
});
|
|
57
65
|
};
|
|
@@ -13,8 +13,7 @@ import { unstable_composeClasses as composeClasses, unstable_generateUtilityClas
|
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
15
15
|
import { useMultiInputDateRangeField } from '../internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
export const multiInputDateRangeFieldClasses = generateUtilityClasses('MuiMultiInputDateRangeField', ['root', 'separator']);
|
|
19
18
|
export const getMultiInputDateRangeFieldUtilityClass = slot => generateUtilityClass('MuiMultiInputDateRangeField', slot);
|
|
20
19
|
const useUtilityClasses = ownerState => {
|
|
@@ -13,8 +13,7 @@ import { unstable_composeClasses as composeClasses, unstable_generateUtilityClas
|
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
15
15
|
import { useMultiInputDateTimeRangeField } from '../internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
export const multiInputDateTimeRangeFieldClasses = generateUtilityClasses('MuiMultiInputDateTimeRangeField', ['root', 'separator']);
|
|
19
18
|
export const getMultiInputDateTimeRangeFieldUtilityClass = slot => generateUtilityClass('MuiMultiInputDateTimeRangeField', slot);
|
|
20
19
|
const useUtilityClasses = ownerState => {
|
|
@@ -13,8 +13,7 @@ import { unstable_composeClasses as composeClasses, unstable_generateUtilityClas
|
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
15
15
|
import { useMultiInputTimeRangeField } from '../internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
export const multiInputTimeRangeFieldClasses = generateUtilityClasses('MuiMultiInputTimeRangeField', ['root', 'separator']);
|
|
19
18
|
export const getMultiInputTimeRangeFieldUtilityClass = slot => generateUtilityClass('MuiMultiInputTimeRangeField', slot);
|
|
20
19
|
const useUtilityClasses = ownerState => {
|
|
@@ -9,4 +9,4 @@ export interface DateRangeViewRendererProps<TDate extends PickerValidDate, TView
|
|
|
9
9
|
* We don't pass all the props down to `DateRangeCalendar`,
|
|
10
10
|
* because otherwise some unwanted props would be passed to the HTML element.
|
|
11
11
|
*/
|
|
12
|
-
export declare const renderDateRangeViewCalendar: <TDate extends PickerValidDate>({ value, defaultValue, referenceDate, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, availableRangePositions, views, view, onViewChange, }: DateRangeViewRendererProps<TDate,
|
|
12
|
+
export declare const renderDateRangeViewCalendar: <TDate extends PickerValidDate>({ value, defaultValue, referenceDate, onChange, className, classes, disableFuture, disablePast, minDate, maxDate, shouldDisableDate, reduceAnimations, onMonthChange, rangePosition, defaultRangePosition, onRangePositionChange, calendars, currentMonthCalendarPosition, slots, slotProps, loading, renderLoading, disableHighlightToday, readOnly, disabled, showDaysOutsideCurrentMonth, dayOfWeekFormatter, disableAutoMonthSwitching, sx, autoFocus, fixedWeekNumber, disableDragEditing, displayWeekNumber, timezone, availableRangePositions, views, view, onViewChange, }: DateRangeViewRendererProps<TDate, 'day'>) => React.JSX.Element;
|
package/index.js
CHANGED
|
@@ -10,8 +10,7 @@ import { executeInTheNextEventLoopTick, getActiveElement, usePicker, PickersPopp
|
|
|
10
10
|
import { useEnrichedRangePickerFieldProps } from '../useEnrichedRangePickerFieldProps';
|
|
11
11
|
import { getReleaseInfo } from '../../utils/releaseInfo';
|
|
12
12
|
import { useRangePosition } from '../useRangePosition';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const releaseInfo = getReleaseInfo();
|
|
16
15
|
export const useDesktopRangePicker = _ref => {
|
|
17
16
|
let {
|
|
@@ -56,4 +56,4 @@ export interface UseEnrichedRangePickerFieldPropsParams<TDate extends PickerVali
|
|
|
56
56
|
startFieldRef: React.RefObject<FieldRef<RangeFieldSection>>;
|
|
57
57
|
endFieldRef: React.RefObject<FieldRef<RangeFieldSection>>;
|
|
58
58
|
}
|
|
59
|
-
export declare const useEnrichedRangePickerFieldProps: <TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem, TEnableAccessibleFieldDOMStructure extends boolean, TError>(params: UseEnrichedRangePickerFieldPropsParams<TDate, TView, TEnableAccessibleFieldDOMStructure, TError
|
|
59
|
+
export declare const useEnrichedRangePickerFieldProps: <TDate extends PickerValidDate, TView extends DateOrTimeViewWithMeridiem, TEnableAccessibleFieldDOMStructure extends boolean, TError>(params: UseEnrichedRangePickerFieldPropsParams<TDate, TView, TEnableAccessibleFieldDOMStructure, TError>) => BaseMultiInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, TError> | BaseSingleInputFieldProps<DateRange<TDate>, TDate, RangeFieldSection, TEnableAccessibleFieldDOMStructure, TError>;
|
|
@@ -53,14 +53,14 @@ const useMultiInputFieldSlotProps = ({
|
|
|
53
53
|
event.stopPropagation();
|
|
54
54
|
onRangePositionChange('start');
|
|
55
55
|
if (!readOnly && !disableOpenPicker) {
|
|
56
|
-
actions.onOpen();
|
|
56
|
+
actions.onOpen(event);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
const openRangeEndSelection = event => {
|
|
60
60
|
event.stopPropagation();
|
|
61
61
|
onRangePositionChange('end');
|
|
62
62
|
if (!readOnly && !disableOpenPicker) {
|
|
63
|
-
actions.onOpen();
|
|
63
|
+
actions.onOpen(event);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
const handleFocusStart = () => {
|
|
@@ -197,7 +197,7 @@ const useSingleInputFieldSlotProps = ({
|
|
|
197
197
|
const openPicker = event => {
|
|
198
198
|
event.stopPropagation();
|
|
199
199
|
if (!readOnly && !disableOpenPicker) {
|
|
200
|
-
actions.onOpen();
|
|
200
|
+
actions.onOpen(event);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
const slots = _extends({}, fieldProps.slots, {
|
|
@@ -11,8 +11,7 @@ import useId from '@mui/utils/useId';
|
|
|
11
11
|
import { useEnrichedRangePickerFieldProps } from '../useEnrichedRangePickerFieldProps';
|
|
12
12
|
import { getReleaseInfo } from '../../utils/releaseInfo';
|
|
13
13
|
import { useRangePosition } from '../useRangePosition';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
const releaseInfo = getReleaseInfo();
|
|
17
16
|
export const useMobileRangePicker = _ref => {
|
|
18
17
|
let {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const excludeProps: <TProps extends {}>(props: TProps, excludedProps:
|
|
1
|
+
export declare const excludeProps: <TProps extends {}>(props: TProps, excludedProps: Array<keyof TProps>) => TProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MuiPickersAdapter, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
2
2
|
import { DateRange, NonEmptyDateRange } from '../../models';
|
|
3
|
-
export declare const isRangeValid: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate
|
|
4
|
-
export declare const isWithinRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate
|
|
5
|
-
export declare const isStartOfRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate
|
|
6
|
-
export declare const isEndOfRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate
|
|
3
|
+
export declare const isRangeValid: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, range: DateRange<TDate> | null) => range is NonEmptyDateRange<TDate>;
|
|
4
|
+
export declare const isWithinRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
5
|
+
export declare const isStartOfRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
6
|
+
export declare const isEndOfRange: <TDate extends PickerValidDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcxNDA3MTYwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -22,8 +22,7 @@ import { useDragRange } from './useDragRange';
|
|
|
22
22
|
import { useRangePosition } from '../internals/hooks/useRangePosition';
|
|
23
23
|
import { DAY_RANGE_SIZE, DAY_MARGIN } from '../internals/constants/dimensions';
|
|
24
24
|
import { PickersRangeCalendarHeader } from '../PickersRangeCalendarHeader';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
26
|
const releaseInfo = getReleaseInfo();
|
|
28
27
|
const DateRangeCalendarRoot = styled('div', {
|
|
29
28
|
name: 'MuiDateRangeCalendar',
|
|
@@ -9,8 +9,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
9
9
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
10
10
|
import { PickersToolbar, PickersToolbarButton, useUtils, useLocaleText } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const useUtilityClasses = ownerState => {
|
|
15
14
|
const {
|
|
16
15
|
classes
|
|
@@ -9,8 +9,7 @@ import { useLocaleText, isDatePickerView } from '@mui/x-date-pickers/internals';
|
|
|
9
9
|
import IconButton from '@mui/material/IconButton';
|
|
10
10
|
import Button from '@mui/material/Button';
|
|
11
11
|
import { getDateTimeRangePickerTabsUtilityClass } from './dateTimeRangePickerTabsClasses';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
13
|
const viewToTab = (view, rangePosition) => {
|
|
15
14
|
if (isDatePickerView(view)) {
|
|
16
15
|
return rangePosition === 'start' ? 'start-date' : 'end-date';
|
|
@@ -10,8 +10,7 @@ import { useLocaleText, useUtils } from '@mui/x-date-pickers/internals';
|
|
|
10
10
|
import { DateTimePickerToolbar } from '@mui/x-date-pickers/DateTimePicker';
|
|
11
11
|
import { getDateTimeRangePickerToolbarUtilityClass } from './dateTimeRangePickerToolbarClasses';
|
|
12
12
|
import { calculateRangeChange } from '../internals/utils/date-range-manager';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const useUtilityClasses = ownerState => {
|
|
16
15
|
const {
|
|
17
16
|
classes
|
|
@@ -60,9 +59,7 @@ const DateTimeRangePickerToolbarEnd = styled(DateTimePickerToolbar, {
|
|
|
60
59
|
})({
|
|
61
60
|
variants: [{
|
|
62
61
|
props: ({
|
|
63
|
-
|
|
64
|
-
toolbarVariant
|
|
65
|
-
}
|
|
62
|
+
toolbarVariant
|
|
66
63
|
}) => toolbarVariant !== 'desktop',
|
|
67
64
|
style: {
|
|
68
65
|
padding: '12px 8px 12px 12px'
|
|
@@ -19,8 +19,7 @@ import { useDateTimeRangePickerDefaultizedProps } from '../DateTimeRangePicker/s
|
|
|
19
19
|
import { MultiInputDateTimeRangeField } from '../MultiInputDateTimeRangeField';
|
|
20
20
|
import { DateTimeRangePickerTimeWrapper } from '../DateTimeRangePicker/DateTimeRangePickerTimeWrapper';
|
|
21
21
|
import { RANGE_VIEW_HEIGHT } from '../internals/constants/dimensions';
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
23
|
const rendererInterceptor = function rendererInterceptor(inViewRenderers, popperView, rendererProps) {
|
|
25
24
|
const {
|
|
26
25
|
openTo,
|
|
@@ -44,14 +43,23 @@ const rendererInterceptor = function rendererInterceptor(inViewRenderers, popper
|
|
|
44
43
|
children: [inViewRenderers.day?.(_extends({}, rendererProps, {
|
|
45
44
|
availableRangePositions: [rangePosition],
|
|
46
45
|
view: !isTimeViewActive ? popperView : 'day',
|
|
47
|
-
views: rendererProps.views.filter(isDatePickerView)
|
|
46
|
+
views: rendererProps.views.filter(isDatePickerView),
|
|
47
|
+
sx: [{
|
|
48
|
+
gridColumn: 1
|
|
49
|
+
}, ...finalProps.sx]
|
|
48
50
|
})), /*#__PURE__*/_jsx(Divider, {
|
|
49
|
-
orientation: "vertical"
|
|
51
|
+
orientation: "vertical",
|
|
52
|
+
sx: {
|
|
53
|
+
gridColumn: 2
|
|
54
|
+
}
|
|
50
55
|
}), /*#__PURE__*/_jsx(DateTimeRangePickerTimeWrapper, _extends({}, finalProps, {
|
|
51
56
|
view: isTimeViewActive ? popperView : 'hours',
|
|
52
57
|
views: finalProps.views.filter(isInternalTimeView),
|
|
53
58
|
openTo: isInternalTimeView(openTo) ? openTo : 'hours',
|
|
54
|
-
viewRenderer: inViewRenderers[isTimeViewActive ? popperView : 'hours']
|
|
59
|
+
viewRenderer: inViewRenderers[isTimeViewActive ? popperView : 'hours'],
|
|
60
|
+
sx: [{
|
|
61
|
+
gridColumn: 3
|
|
62
|
+
}, ...finalProps.sx]
|
|
55
63
|
}))]
|
|
56
64
|
});
|
|
57
65
|
};
|