@mui/x-date-pickers-pro 7.2.0 → 7.3.2
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 +280 -7
- package/DateRangeCalendar/DateRangeCalendar.js +1 -2
- package/DateRangeCalendar/useDragRange.d.ts +1 -1
- package/DateRangePicker/DateRangePicker.js +1 -1
- package/DateRangePicker/DateRangePickerToolbar.js +1 -2
- package/DateRangePicker/shared.d.ts +1 -1
- package/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -2
- package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -2
- package/DateTimeRangePicker/shared.d.ts +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -3
- package/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
- package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -2
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -2
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
- 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/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/DateRangePicker.js +1 -1
- package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -2
- package/modern/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
- package/modern/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -2
- package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -2
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +1 -1
- package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -3
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +1 -1
- package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +1 -1
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +1 -2
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +1 -2
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -2
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -2
- 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 +2 -2
- 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 +2 -2
- package/node/DateTimeRangePicker/DateTimeRangePickerTabs.js +1 -1
- package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +2 -2
- package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +2 -2
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -2
- package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +2 -2
- 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 +2 -2
- 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 +1 -1
- 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,229 @@
|
|
|
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.2
|
|
7
|
+
|
|
8
|
+
_May 2, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add "no data" and "loading" states to charts, allowing users to create [custom visualizations for each state](https://mui.com/x/react-charts/styling/#overlay)
|
|
13
|
+
- 🌍 Improve Hebrew (he-IL) and Hungarian (hu-HU) locales on the Date and Time Pickers
|
|
14
|
+
- 🌍 Improve Danish (da-DK) and Slovak (sk-SK) locales on the Data Grid
|
|
15
|
+
- 📝 Fix a [typo](https://github.com/mui/mui-x/pull/12941/files/4bf4bffbc2799a01a96bc7458a17318cf41c1722#diff-26c31cc69d6f51110f89e339578ef9b3d4a3551f79077fff73f7babb81c5099f) in the auto-generated Charts gradient `id` attribute.
|
|
16
|
+
It should not affect you, but if you were relying on the gradient `id` attribute, please update your usage.
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
- 📚 Documentation improvements
|
|
19
|
+
|
|
20
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid@7.3.2`
|
|
25
|
+
|
|
26
|
+
- [DataGrid] Allow to change reset text in the columns management panel (#12972) @MBilalShafi
|
|
27
|
+
- [DataGrid] Derive `formattedValue` from the edit value when passing to `renderEditCell` (#12870) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix rows not being recomputed on `props.rowCount` change (#12833) @MBilalShafi
|
|
29
|
+
- [l10n] Improve Danish (da-DK) locale (#12844) @fosterbuster
|
|
30
|
+
- [l10n] Improve Slovak (sk-SK) locale (#12949) @stefikp
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-pro@7.3.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid@7.3.2`.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@7.3.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.2`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPremium] Fix print export not working with row grouping (#12957) @MBilalShafi
|
|
41
|
+
|
|
42
|
+
### Date and Time Pickers
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-date-pickers@7.3.2`
|
|
45
|
+
|
|
46
|
+
- [l10n] Improve Hebrew (he-IL) locale (#12910) @michaelNXT1
|
|
47
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#12930) @noherczeg
|
|
48
|
+
- [pickers] Fix typo on the `viewRenderers` prop description (#12915) @flaviendelangle
|
|
49
|
+
- [pickers] Improve TypeScript performance in `PickersDay` (#12920) @flaviendelangle
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@7.3.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@7.3.2`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@7.3.2`
|
|
58
|
+
|
|
59
|
+
- [charts] Add an overlay for "no data" or "loading" states (#12817) @alexfauquette
|
|
60
|
+
- [charts] Fix typos in documentation, translations and errors (#12941) @JCQuintas
|
|
61
|
+
- [charts] Fix `prop.slots` and `prop.slotProps` not passed to `<ChartsTooltip />` (#12939) @JCQuintas
|
|
62
|
+
|
|
63
|
+
### Docs
|
|
64
|
+
|
|
65
|
+
- [docs] Improve Data Grid migration guide (#12969) @MBilalShafi
|
|
66
|
+
- [docs] Polish references to the plans (#12922) @oliviertassinari
|
|
67
|
+
|
|
68
|
+
### Core
|
|
69
|
+
|
|
70
|
+
- [core] Fix dependencies (#12951) @LukasTy
|
|
71
|
+
- [core] Remove inconsistent blank lines (#12966) @oliviertassinari
|
|
72
|
+
- [code-infra] Bump node image used by CI in docker (#12961) @LukasTy
|
|
73
|
+
- [docs-infra] Remove no longer needed `next.config` settings (#12861) @oliviertassinari
|
|
74
|
+
- [docs-infra] Use the `@mui/docs/HighlightedCode` (#12848) @alexfauquette
|
|
75
|
+
- [test] Restore `t` command (#12948) @LukasTy
|
|
76
|
+
|
|
77
|
+
## 7.3.1
|
|
78
|
+
|
|
79
|
+
_Apr 26, 2024_
|
|
80
|
+
|
|
81
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
82
|
+
|
|
83
|
+
- 🎁 Scatter Charts get a [z-axis to allow coloring data points independently from their coordinates](https://mui.com/x/react-charts/scatter/#color-scale)
|
|
84
|
+
- 🌍 Improve Catalan (ca-ES) and Spanish (es-ES) locales on the Date and Time Pickers
|
|
85
|
+
- 🐞 Bugfixes
|
|
86
|
+
- 📚 Documentation improvements
|
|
87
|
+
|
|
88
|
+
### Data Grid
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-data-grid@7.3.1`
|
|
91
|
+
|
|
92
|
+
- [DataGrid] Fix date filtering for negative timezone offsets (#12836) @cherniavskii
|
|
93
|
+
- [DataGrid] Fix flex column width when used with pinned columns (#12849) @romgrk
|
|
94
|
+
- [DataGrid] Fix group header resize (#12863) @arminmeh
|
|
95
|
+
- [DataGrid] Pass slot props to `columnHeaders` slot (#12768) @cherniavskii
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-data-grid-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-data-grid@7.3.1`.
|
|
100
|
+
|
|
101
|
+
#### `@mui/x-data-grid-premium@7.3.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
102
|
+
|
|
103
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.1`.
|
|
104
|
+
|
|
105
|
+
### Date and Time Pickers
|
|
106
|
+
|
|
107
|
+
#### `@mui/x-date-pickers@7.3.1`
|
|
108
|
+
|
|
109
|
+
- [l10n] Improve Catalan (ca-ES) locale (#12856) @soler1212
|
|
110
|
+
- [l10n] Improve Spanish (es-ES) locale (#12858) @soler1212
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-date-pickers-pro@7.3.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
115
|
+
|
|
116
|
+
### Charts
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-charts@7.3.1`
|
|
119
|
+
|
|
120
|
+
- [charts] Add documentation on border radius alternative for `BarCharts` (#12859) @JCQuintas
|
|
121
|
+
- [charts] Add z-axis to colorize scatter charts (#12738) @alexfauquette
|
|
122
|
+
- [charts] Fix left/bottomAxis not picking up default axis id (#12894) @JCQuintas
|
|
123
|
+
- [charts] Improve default tooltip content (#12257) @oliviertassinari
|
|
124
|
+
- [charts] Round y values for bar chart (#12846) @alexfauquette
|
|
125
|
+
|
|
126
|
+
### Tree View
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-tree-view@7.3.1`
|
|
129
|
+
|
|
130
|
+
- [TreeView] Remove un-needed `aria-activedescendant` attribute (#12867) @flaviendelangle
|
|
131
|
+
- [TreeView] Rework the selection internals (#12703) @flaviendelangle
|
|
132
|
+
- [TreeView] Use the order in which the items are displayed for `type-ahead` (#12827) @flaviendelangle
|
|
133
|
+
|
|
134
|
+
### Docs
|
|
135
|
+
|
|
136
|
+
- [docs] Add demo for styling charts with `sx` props (#12791) @derek-0000
|
|
137
|
+
- [docs] Cover webpack 4 support in migration guide (#12710) @cherniavskii
|
|
138
|
+
- [docs] Document interfaces for charts (#12656) @alexfauquette
|
|
139
|
+
- [docs] Fix Vale regression (#12862) @oliviertassinari
|
|
140
|
+
- [docs] Improve Data Grid migration guide (#12879) @MBilalShafi
|
|
141
|
+
- [docs] Update Column features availability (#12865) @DanailH
|
|
142
|
+
|
|
143
|
+
### Core
|
|
144
|
+
|
|
145
|
+
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
146
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
147
|
+
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
148
|
+
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
149
|
+
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
150
|
+
- [code-infra] Change package manager to `pnpm` (#11875) @LukasTy
|
|
151
|
+
- [code-infra] Closer sync with eslint config of codebase (#12864) @oliviertassinari
|
|
152
|
+
- [support-infra] Add release announcement to GitHub workflows (#11867) (#12843) @michelengelen
|
|
153
|
+
|
|
154
|
+
## 7.3.0
|
|
155
|
+
|
|
156
|
+
_Apr 18, 2024_
|
|
157
|
+
|
|
158
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
159
|
+
|
|
160
|
+
- 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
|
|
161
|
+
- 🎨 Support color scales in Charts (#12490) @alexfauquette
|
|
162
|
+
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.
|
|
163
|
+
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.
|
|
164
|
+
|
|
165
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
|
|
166
|
+
|
|
167
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid
|
|
168
|
+
- 🐞 Bugfixes
|
|
169
|
+
- 📚 Documentation improvements
|
|
170
|
+
|
|
171
|
+
### Data Grid
|
|
172
|
+
|
|
173
|
+
#### `@mui/x-data-grid@7.3.0`
|
|
174
|
+
|
|
175
|
+
- [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
|
|
176
|
+
- [DataGrid] Fix column resize (#12792) @romgrk
|
|
177
|
+
- [DataGrid] Fix column separators (#12808) @romgrk
|
|
178
|
+
- [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
|
|
179
|
+
- [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
|
|
180
|
+
- [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
|
|
181
|
+
- [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-data-grid-pro@7.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
184
|
+
|
|
185
|
+
Same changes as in `@mui/x-data-grid@7.3.0`, plus:
|
|
186
|
+
|
|
187
|
+
- [DataGridPro] Implement header filter height (#12666) @romgrk
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-data-grid-premium@7.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.0`.
|
|
192
|
+
|
|
193
|
+
### Charts
|
|
194
|
+
|
|
195
|
+
#### Breaking change
|
|
196
|
+
|
|
197
|
+
A typo fix:
|
|
198
|
+
|
|
199
|
+
```diff
|
|
200
|
+
- ContinuouseScaleName
|
|
201
|
+
+ ContinuousScaleName
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-charts@7.3.0`
|
|
205
|
+
|
|
206
|
+
- [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
|
|
207
|
+
- [charts] Add color scale (#12490) @alexfauquette
|
|
208
|
+
- [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
|
|
209
|
+
- [charts] Export more utils (#12744) @alexfauquette
|
|
210
|
+
- [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
|
|
211
|
+
|
|
212
|
+
### Tree View
|
|
213
|
+
|
|
214
|
+
#### `@mui/x-tree-view@7.3.0`
|
|
215
|
+
|
|
216
|
+
- [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
|
|
217
|
+
|
|
218
|
+
### Docs
|
|
219
|
+
|
|
220
|
+
- [docs] Add grid cell display example to the migration guide (#12793) @romgrk
|
|
221
|
+
- [docs] Use charts classes objects (#12781) @alexfauquette
|
|
222
|
+
- [docs] Fix layout shift on demos (#12816) @zanivan
|
|
223
|
+
- [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
|
|
224
|
+
|
|
225
|
+
### Core
|
|
226
|
+
|
|
227
|
+
- [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
|
|
228
|
+
|
|
6
229
|
## 7.2.0
|
|
7
230
|
|
|
8
231
|
_Apr 12, 2024_
|
|
@@ -153,7 +376,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
153
376
|
|
|
154
377
|
- [TreeView] Add JSDoc to all `publicAPI` methods (#12649) @flaviendelangle
|
|
155
378
|
- [TreeView] Create `RichTreeViewPro` component (not released yet) (#12610) @flaviendelangle
|
|
156
|
-
- [TreeView] Create
|
|
379
|
+
- [TreeView] Create Pro package (not released yet) (#12240) @flaviendelangle
|
|
157
380
|
- [TreeView] Fix typo in errors (#12623) @alissa-tung
|
|
158
381
|
- [TreeView] New API method: `setItemExpansion` (#12595) @flaviendelangle
|
|
159
382
|
|
|
@@ -168,7 +391,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
168
391
|
- [docs] Fix type arguments in Custom Field page (#12619) @Juneezee
|
|
169
392
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
170
393
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
171
|
-
- [docs] Match IE 11 spacing with Material
|
|
394
|
+
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
172
395
|
- [docs] Move data grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
173
396
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
174
397
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
@@ -431,7 +654,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0`, plus:
|
|
|
431
654
|
- [docs] Update links to v6 (#12496) @cherniavskii
|
|
432
655
|
- [docs] Update links to v7 docs (#12500) @noraleonte
|
|
433
656
|
- [docs] Update supported versions (#12508) @joserodolfofreitas
|
|
434
|
-
- [docs] Update "What's new in MUI
|
|
657
|
+
- [docs] Update "What's new in MUI X" page #12527 @cherniavskii
|
|
435
658
|
|
|
436
659
|
### Core
|
|
437
660
|
|
|
@@ -2365,7 +2588,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
|
|
|
2365
2588
|
- [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
|
|
2366
2589
|
- [core] Remove blank lines, coding style @oliviertassinari
|
|
2367
2590
|
- [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
|
|
2368
|
-
- [github] Do not add `plan: Pro` and `plan: Premium` labels on
|
|
2591
|
+
- [github] Do not add `plan: Pro` and `plan: Premium` labels on Pro / Premium issue templates (#10183) @flaviendelangle
|
|
2369
2592
|
|
|
2370
2593
|
## 7.0.0-alpha.2
|
|
2371
2594
|
|
|
@@ -3058,6 +3281,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
3058
3281
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
3059
3282
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
3060
3283
|
|
|
3284
|
+
## 6.19.11
|
|
3285
|
+
|
|
3286
|
+
_Apr 18, 2024_
|
|
3287
|
+
|
|
3288
|
+
We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
|
|
3289
|
+
|
|
3290
|
+
- 🐞 Bugfixes
|
|
3291
|
+
|
|
3292
|
+
### Data Grid
|
|
3293
|
+
|
|
3294
|
+
#### `@mui/x-data-grid@6.19.11`
|
|
3295
|
+
|
|
3296
|
+
- [DataGrid] Fix virtualization memory leak (#12812) @romgrk
|
|
3297
|
+
|
|
3298
|
+
#### `@mui/x-data-grid-pro@6.19.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3299
|
+
|
|
3300
|
+
Same changes as in `@mui/x-data-grid@6.19.11`.
|
|
3301
|
+
|
|
3302
|
+
#### `@mui/x-data-grid-premium@6.19.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3303
|
+
|
|
3304
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.11`.
|
|
3305
|
+
|
|
3306
|
+
## 6.19.10
|
|
3307
|
+
|
|
3308
|
+
_Apr 12, 2024_
|
|
3309
|
+
|
|
3310
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
3311
|
+
|
|
3312
|
+
- 🐞 Bugfixes
|
|
3313
|
+
- 📚 Documentation improvements
|
|
3314
|
+
|
|
3315
|
+
### Data Grid
|
|
3316
|
+
|
|
3317
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
3318
|
+
|
|
3319
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
3320
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
3321
|
+
|
|
3322
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3323
|
+
|
|
3324
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
3325
|
+
|
|
3326
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3327
|
+
|
|
3328
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
3329
|
+
|
|
3330
|
+
### Core
|
|
3331
|
+
|
|
3332
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
3333
|
+
|
|
3061
3334
|
## 6.19.9
|
|
3062
3335
|
|
|
3063
3336
|
_Apr 5, 2024_
|
|
@@ -3238,10 +3511,10 @@ Same changes as in `@mui/x-date-pickers@6.19.5`.
|
|
|
3238
3511
|
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
|
|
3239
3512
|
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
|
|
3240
3513
|
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
3241
|
-
- [docs] Move Heatmap to
|
|
3514
|
+
- [docs] Move Heatmap to Pro (#12170) @alexfauquette
|
|
3242
3515
|
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
|
|
3243
3516
|
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
|
|
3244
|
-
- [docs] Add missing Heatmap
|
|
3517
|
+
- [docs] Add missing Heatmap Pro icon @oliviertassinari
|
|
3245
3518
|
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
|
|
3246
3519
|
- [docs] Avoid use of shorthand (#12009) @oliviertassinari
|
|
3247
3520
|
|
|
@@ -5968,7 +6241,7 @@ We'd like to offer a big thanks to the 11 contributors who made this release pos
|
|
|
5968
6241
|
- [docs] Create examples of pickers with custom fields (#8034) @flaviendelangle
|
|
5969
6242
|
- [docs] Fix 301 redirections @oliviertassinari
|
|
5970
6243
|
- [docs] Fix link to React's docs @oliviertassinari
|
|
5971
|
-
- [docs] Fix
|
|
6244
|
+
- [docs] Fix Pro license links to point to the same page (#8303) @LukasTy
|
|
5972
6245
|
- [docs] Give an incentive to upgrade (#8269) @oliviertassinari
|
|
5973
6246
|
- [docs] Improve contrast on data grid navigation (#8239) @oliviertassinari
|
|
5974
6247
|
- [docs] Update shortcuts page to use slotProps (#8288) @dcorb
|
|
@@ -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 {};
|
|
@@ -326,7 +326,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
326
326
|
/**
|
|
327
327
|
* Define custom view renderers for each section.
|
|
328
328
|
* If `null`, the section will only have field editing.
|
|
329
|
-
* If `undefined`, internally defined view will be
|
|
329
|
+
* If `undefined`, internally defined view will be used.
|
|
330
330
|
*/
|
|
331
331
|
viewRenderers: PropTypes.shape({
|
|
332
332
|
day: PropTypes.func
|
|
@@ -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
|
|
@@ -30,7 +30,7 @@ export interface BaseDateRangePickerProps<TDate extends PickerValidDate> extends
|
|
|
30
30
|
/**
|
|
31
31
|
* Define custom view renderers for each section.
|
|
32
32
|
* If `null`, the section will only have field editing.
|
|
33
|
-
* If `undefined`, internally defined view will be
|
|
33
|
+
* If `undefined`, internally defined view will be used.
|
|
34
34
|
*/
|
|
35
35
|
viewRenderers?: Partial<PickerViewRendererLookup<DateRange<TDate>, 'day', DateRangeViewRendererProps<TDate, 'day'>, {}>>;
|
|
36
36
|
}
|
|
@@ -406,7 +406,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
406
406
|
/**
|
|
407
407
|
* Define custom view renderers for each section.
|
|
408
408
|
* If `null`, the section will only have field editing.
|
|
409
|
-
* If `undefined`, internally defined view will be
|
|
409
|
+
* If `undefined`, internally defined view will be used.
|
|
410
410
|
*/
|
|
411
411
|
viewRenderers: PropTypes.shape({
|
|
412
412
|
day: PropTypes.func,
|
|
@@ -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
|
|
@@ -50,7 +50,7 @@ export interface BaseDateTimeRangePickerProps<TDate extends PickerValidDate> ext
|
|
|
50
50
|
/**
|
|
51
51
|
* Define custom view renderers for each section.
|
|
52
52
|
* If `null`, the section will only have field editing.
|
|
53
|
-
* If `undefined`, internally defined view will be
|
|
53
|
+
* If `undefined`, internally defined view will be used.
|
|
54
54
|
*/
|
|
55
55
|
viewRenderers?: Partial<DateTimeRangePickerRenderers<TDate, DateTimeRangePickerView>>;
|
|
56
56
|
}
|
|
@@ -331,7 +331,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
331
331
|
/**
|
|
332
332
|
* Define custom view renderers for each section.
|
|
333
333
|
* If `null`, the section will only have field editing.
|
|
334
|
-
* If `undefined`, internally defined view will be
|
|
334
|
+
* If `undefined`, internally defined view will be used.
|
|
335
335
|
*/
|
|
336
336
|
viewRenderers: PropTypes.shape({
|
|
337
337
|
day: PropTypes.func
|
|
@@ -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,
|
|
@@ -485,7 +484,7 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
485
484
|
/**
|
|
486
485
|
* Define custom view renderers for each section.
|
|
487
486
|
* If `null`, the section will only have field editing.
|
|
488
|
-
* If `undefined`, internally defined view will be
|
|
487
|
+
* If `undefined`, internally defined view will be used.
|
|
489
488
|
*/
|
|
490
489
|
viewRenderers: PropTypes.shape({
|
|
491
490
|
day: PropTypes.func,
|
|
@@ -327,7 +327,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
327
327
|
/**
|
|
328
328
|
* Define custom view renderers for each section.
|
|
329
329
|
* If `null`, the section will only have field editing.
|
|
330
|
-
* If `undefined`, internally defined view will be
|
|
330
|
+
* If `undefined`, internally defined view will be used.
|
|
331
331
|
*/
|
|
332
332
|
viewRenderers: PropTypes.shape({
|
|
333
333
|
day: PropTypes.func
|
|
@@ -478,7 +478,7 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
478
478
|
/**
|
|
479
479
|
* Define custom view renderers for each section.
|
|
480
480
|
* If `null`, the section will only have field editing.
|
|
481
|
-
* If `undefined`, internally defined view will be
|
|
481
|
+
* If `undefined`, internally defined view will be used.
|
|
482
482
|
*/
|
|
483
483
|
viewRenderers: PropTypes.shape({
|
|
484
484
|
day: PropTypes.func,
|
|
@@ -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 => {
|
|
@@ -266,7 +266,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
266
266
|
/**
|
|
267
267
|
* Define custom view renderers for each section.
|
|
268
268
|
* If `null`, the section will only have field editing.
|
|
269
|
-
* If `undefined`, internally defined view will be
|
|
269
|
+
* If `undefined`, internally defined view will be used.
|
|
270
270
|
*/
|
|
271
271
|
viewRenderers: PropTypes.shape({
|
|
272
272
|
day: PropTypes.func
|
|
@@ -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>;
|
|
@@ -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 = "MTcxNDYwMDgwMDAwMA==";
|
|
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',
|
|
@@ -326,7 +326,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
326
326
|
/**
|
|
327
327
|
* Define custom view renderers for each section.
|
|
328
328
|
* If `null`, the section will only have field editing.
|
|
329
|
-
* If `undefined`, internally defined view will be
|
|
329
|
+
* If `undefined`, internally defined view will be used.
|
|
330
330
|
*/
|
|
331
331
|
viewRenderers: PropTypes.shape({
|
|
332
332
|
day: PropTypes.func
|
|
@@ -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
|