@mui/x-date-pickers-pro 5.0.0-alpha.3 → 5.0.0-alpha.6
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 +237 -16
- package/DateRangePicker/DateRangePicker.d.ts +17 -3
- package/DateRangePicker/DateRangePicker.js +18 -56
- package/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
- package/DateRangePicker/DateRangePickerToolbar.js +23 -16
- package/DateRangePicker/DateRangePickerView.d.ts +2 -3
- package/DateRangePicker/DateRangePickerView.js +2 -2
- package/DateRangePicker/DateRangePickerViewDesktop.js +16 -4
- package/DateRangePicker/DateRangePickerViewMobile.d.ts +2 -3
- package/DateRangePicker/DateRangePickerViewMobile.js +2 -0
- package/DateRangePicker/shared.d.ts +5 -12
- package/DateRangePicker/shared.js +15 -5
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +16 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +27 -28
- package/DesktopDateRangePicker/index.d.ts +1 -1
- package/LICENSE +3 -3
- package/MobileDateRangePicker/MobileDateRangePicker.d.ts +16 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +27 -52
- package/MobileDateRangePicker/index.d.ts +1 -1
- package/README.md +44 -4
- package/StaticDateRangePicker/StaticDateRangePicker.d.ts +18 -2
- package/StaticDateRangePicker/StaticDateRangePicker.js +30 -15
- package/index.js +1 -1
- package/internal/hooks/validation/useDateRangeValidation.js +16 -4
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +19 -57
- package/legacy/DateRangePicker/DateRangePickerToolbar.js +27 -18
- package/legacy/DateRangePicker/DateRangePickerView.js +2 -2
- package/legacy/DateRangePicker/DateRangePickerViewDesktop.js +16 -6
- package/legacy/DateRangePicker/DateRangePickerViewMobile.js +2 -0
- package/legacy/DateRangePicker/shared.js +15 -5
- package/legacy/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +27 -28
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +27 -52
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +29 -14
- package/legacy/index.js +1 -1
- package/legacy/internal/hooks/validation/useDateRangeValidation.js +16 -4
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +18 -56
- package/modern/DateRangePicker/DateRangePickerToolbar.js +23 -16
- package/modern/DateRangePicker/DateRangePickerView.js +2 -2
- package/modern/DateRangePicker/DateRangePickerViewDesktop.js +16 -4
- package/modern/DateRangePicker/DateRangePickerViewMobile.js +2 -0
- package/modern/DateRangePicker/shared.js +13 -5
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +27 -28
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +27 -52
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +30 -15
- package/modern/index.js +1 -1
- package/modern/internal/hooks/validation/useDateRangeValidation.js +16 -4
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +18 -56
- package/node/DateRangePicker/DateRangePickerToolbar.js +24 -16
- package/node/DateRangePicker/DateRangePickerView.js +2 -2
- package/node/DateRangePicker/DateRangePickerViewDesktop.js +15 -3
- package/node/DateRangePicker/DateRangePickerViewMobile.js +2 -0
- package/node/DateRangePicker/shared.js +15 -4
- package/node/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +27 -28
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +27 -52
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +30 -15
- package/node/index.js +1 -1
- package/node/internal/hooks/validation/useDateRangeValidation.js +15 -3
- package/node/internal/utils/releaseInfo.js +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,21 +3,247 @@
|
|
|
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
|
+
## v5.12.1
|
|
7
|
+
|
|
8
|
+
_Jun 9, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add `reason` to `onFilterModelChange` (#4938) @m4theushw
|
|
13
|
+
- 🔎 Control quick filter input value via model prop (#5013) @alexfauquette
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
### `@mui/x-data-grid@v5.12.1` / `@mui/x-data-grid-pro@v5.12.1` / `@mui/x-data-grid-premium@v5.12.1`
|
|
18
|
+
|
|
19
|
+
#### Changes
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Add `reason` to `onFilterModelChange` (#4938) @m4theushw
|
|
22
|
+
- [DataGrid] Restore focus after dismissing the column menu (#5027) @m4theushw
|
|
23
|
+
- [DataGrid] Update quick filter input when model is modified (#5013) @alexfauquette
|
|
24
|
+
- [DataGrid] Fix implicit dependency on react-dom (#5121) @oliviertassinari
|
|
25
|
+
- [DataGrid] Support `getRowId` in row reordering (#5093) @flaviendelangle
|
|
26
|
+
- [DataGridPro] Fix column resizing in RTL mode (#4989) @cherniavskii
|
|
27
|
+
- [DataGridPro] Fix column resizing on touchscreen (#5056) @cherniavskii
|
|
28
|
+
- [l10n] Update Japanese (ja-JP) locale (#5122) @hikotq
|
|
29
|
+
- [l10n] Update Russian (ru-RU) locale (#5069) @Artboomy
|
|
30
|
+
|
|
31
|
+
### `@mui/x-date-pickers@5.0.0-alpha.6` / `@mui/x-date-pickers-pro@5.0.0-alpha.6`
|
|
32
|
+
|
|
33
|
+
#### Changes
|
|
34
|
+
|
|
35
|
+
- [pickers] Fix usage of `maxDate` / `minDate` / `disableFuture` and `disablePast` (#5081) @flaviendelangle
|
|
36
|
+
- [pickers] Infer mask from `inputFormat` (#5060) @alexfauquette
|
|
37
|
+
- [pickers] Manage input value without using the focus (#4486) @alexfauquette
|
|
38
|
+
- [pickers] Use new localization for doc examples (#5097) @flaviendelangle
|
|
39
|
+
- [pickers] Fix `shouldDisableDate` in range pickers (#5123) @flaviendelangle
|
|
40
|
+
- [l10n] Add Brazilian Portuguese (pt-BR) locale (#5100) @jardelnovaes
|
|
41
|
+
- [l10n] Use `localText` for remaining texts (#4986) @alexfauquette
|
|
42
|
+
|
|
43
|
+
### Docs
|
|
44
|
+
|
|
45
|
+
- [docs] Implement the focus management on data grid demo links (#5070) @alexfauquette
|
|
46
|
+
- [docs] Fix `301` link to render cell (#5106) @oliviertassinari
|
|
47
|
+
- [docs] Fix broken anchor link @oliviertassinari
|
|
48
|
+
- [docs] Improve movie dataset (#5142) @flaviendelangle
|
|
49
|
+
- [docs] Move all localization documentation in a unique page (#5072) @alexfauquette
|
|
50
|
+
- [docs] Section for overwriting core components i18n keys (#4998) @DanailH
|
|
51
|
+
- [docs] Small grammar and format fixes for Dynamic Row Height section (#5098) @samuelsycamore
|
|
52
|
+
|
|
53
|
+
### Core
|
|
54
|
+
|
|
55
|
+
- [core] Allows to run tests with different date adapters (#5055) @alexfauquette
|
|
56
|
+
- [core] Prettify the l10n issue (#4928) @alexfauquette
|
|
57
|
+
- [core] Set correct `apiRef` type in row reorder pre processors #5125 @DanailH
|
|
58
|
+
- [core] Stop using `GridEvents` in technical doc (#5157) @flaviendelangle
|
|
59
|
+
- [core] Upgrade monorepo (#5101) @oliviertassinari
|
|
60
|
+
- [test] Fix dynamic row height test failing on Chrome (#5147) @m4theushw
|
|
61
|
+
- [test] Remove delay on server demo for regression tests (#5131) @alexfauquette
|
|
62
|
+
|
|
63
|
+
## v5.12.0
|
|
64
|
+
|
|
65
|
+
_May 31, 2022_
|
|
66
|
+
|
|
67
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
68
|
+
|
|
69
|
+
- 🎁 Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/rows/#dynamic-row-height) (#4859) @m4theushw
|
|
70
|
+
|
|
71
|
+
<img src="https://user-images.githubusercontent.com/42154031/171183167-718d7bcd-ec0f-459e-97fe-0f650abb4a99.gif" width="800">
|
|
72
|
+
|
|
73
|
+
- ⚠️ Remove deprecated row grouping feature from `@mui/x-data-grid-pro`
|
|
74
|
+
|
|
75
|
+
Row grouping is available through the `@mui/x-data-grid-premium` package - see [Premium plan release blogpost](https://mui.com/blog/premium-plan-release/).
|
|
76
|
+
|
|
77
|
+
- 🐞 Bug fixes and improvements
|
|
78
|
+
|
|
79
|
+
### `@mui/x-data-grid@v5.12.0` / `@mui/x-data-grid-pro@v5.12.0` / `@mui/x-data-grid-premium@v5.12.0`
|
|
80
|
+
|
|
81
|
+
#### Changes
|
|
82
|
+
|
|
83
|
+
- [DataGrid] Support dynamic row height (#4859) @m4theushw
|
|
84
|
+
- [DataGrid] Add `onMenuOpen` and `onMenuClose` props (#4825) @DanailH
|
|
85
|
+
- [DataGrid] Add generics to `GridActionsColDef` to match `GridColDef` (#4982) @subvertallchris
|
|
86
|
+
- [DataGrid] Disable drag event handlers when row or column reorder are disabled (#4857) @DanailH
|
|
87
|
+
- [DataGrid] Allow other attempts to stop edit mode if the first failed (#5016) @m4theushw
|
|
88
|
+
- [DataGrid] Better reflect the dependency on Material UI (#4795) @oliviertassinari
|
|
89
|
+
- [DataGrid] Add an id to the filter item created when opening the filter panel (#5014) @flaviendelangle
|
|
90
|
+
- [DataGrid] Use column visibility model on Hide All / Show All when enabled (#5050) @flaviendelangle
|
|
91
|
+
- [DataGridPro] Unpin columns back to original position (#4512) @m4theushw
|
|
92
|
+
- [DataGridPro] Remove experimental row grouping from Pro plan (#4949) @flaviendelangle
|
|
93
|
+
- [DataGridPro] Allow to scroll detail panel content if it overflows the panel (#4979) @cherniavskii
|
|
94
|
+
- [DataGridPro] Do not call `setRowIndex` when dragging a column over a row (#4987) @flaviendelangle
|
|
95
|
+
- [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
|
|
96
|
+
- [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
|
|
97
|
+
|
|
98
|
+
### `@mui/x-date-pickers@5.0.0-alpha.5` / `@mui/x-date-pickers-pro@5.0.0-alpha.5`
|
|
99
|
+
|
|
100
|
+
#### Breaking changes
|
|
101
|
+
|
|
102
|
+
- [pickers] Restructure props in `MonthPicker` / `YearPicker` and `DayPicker` (#4814) @flaviendelangle
|
|
103
|
+
|
|
104
|
+
The props of `MonthPicker` / `YearPicker` and `DayPicker` have been reworked to make them more consistent for a standalone usage (#4814) @flaviendelangle
|
|
105
|
+
|
|
106
|
+
**MonthPicker**: The prop `onMonthChange` has been removed, you can use `onChange` instead since every change is a month change
|
|
107
|
+
|
|
108
|
+
**YearPicker**: The prop `onYearPicker` has been removed, you can use `onChange` instead since every change is a year change
|
|
109
|
+
|
|
110
|
+
**DayPicker**: The prop `isDateDisabled` has been removed, you can now use the same validation props as for the other components (`maxDate`, `minDate`, `shouldDisableDate`, `disableFuture` and `disablePast`)
|
|
111
|
+
|
|
112
|
+
#### Changes
|
|
113
|
+
|
|
114
|
+
- [pickers] Add German (de-DE) translations (#4974) @felixh10r
|
|
115
|
+
- [pickers] Support action bar on static pickers and improve typing (#5015) @flaviendelangle
|
|
116
|
+
|
|
117
|
+
### Docs
|
|
118
|
+
|
|
119
|
+
- [docs] Add docs sections / pages for upcoming features on pickers (#4603) @flaviendelangle
|
|
120
|
+
- [docs] Add docs for filter panel components (#4919) @m4theushw
|
|
121
|
+
- [docs] Explain how to manage focus with `renderCell` (#4254) @alexfauquette
|
|
122
|
+
- [docs] Fix broken links to GitHub source (#5003) @Edwardveb
|
|
123
|
+
- [docs] Fix navigation links (#4956) @oliviertassinari
|
|
124
|
+
- [docs] Fix typo on rows docs (#4952) @jamesRadicl
|
|
125
|
+
- [docs] New WAI-ARIA guidelines location (#4957) @oliviertassinari
|
|
126
|
+
- [docs] Add "Slots" section to the right nav in the API pages (#4993) @DanailH
|
|
127
|
+
- [docs] Fix docs feedback widget not working (#4905) @cherniavskii
|
|
128
|
+
- [docs] Replace custom notes and warning with callouts (#5008) @flaviendelangle
|
|
129
|
+
|
|
130
|
+
### Core
|
|
131
|
+
|
|
132
|
+
- [core] Avoid Order ID to refer to GitHub issues/PRs (#5005) @oliviertassinari
|
|
133
|
+
- [core] Improve the workflow for incomplete issues (#5012) @mnajdova
|
|
134
|
+
- [core] Remove dead code on row grouping tree creation (#4945) @flaviendelangle
|
|
135
|
+
- [core] Use new cache api for the row grouping last model tracking (#4980) @flaviendelangle
|
|
136
|
+
- [core] Ensure that PRs have atleast 1 label (#5011) @DanailH
|
|
137
|
+
- [core] Fix trailing-space @oliviertassinari
|
|
138
|
+
- [core] Stop Renovate PR updates when PR is on hold (#5020) @cherniavskii
|
|
139
|
+
- [license] Remove support for UTF-8 (#4893) @oliviertassinari
|
|
140
|
+
- [license] Tweak error messages (#4907) @mbrookes
|
|
141
|
+
- [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
|
|
142
|
+
- [test] Make argos screenshots stable (#5061) @m4theushw
|
|
143
|
+
|
|
144
|
+
## v5.11.1
|
|
145
|
+
|
|
146
|
+
_May 20, 2022_
|
|
147
|
+
|
|
148
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
149
|
+
|
|
150
|
+
- 🌍 Support localization on the date and time picker components (#4517) @alexfauquette
|
|
151
|
+
|
|
152
|
+
Texts can be translated in the pickers components, similar to what can be done in the data grid component. Check the [documentation](https://mui.com/x/react-date-pickers/localization/) for more information.
|
|
153
|
+
|
|
154
|
+
- 📃 Add support for column spanning when exporting to Excel (#4830) @cherniavskii
|
|
155
|
+
|
|
156
|
+
<img src="https://user-images.githubusercontent.com/13808724/167691417-bf6baeb9-d409-4134-acb6-aadaf6434de9.png" width="800">
|
|
157
|
+
|
|
158
|
+
- 🐞 Bugs fixes
|
|
159
|
+
|
|
160
|
+
### `@mui/x-data-grid@v5.11.1` / `@mui/x-data-grid-pro@v5.11.1` / `@mui/x-data-grid-premium@v5.11.1`
|
|
161
|
+
|
|
162
|
+
#### Changes
|
|
163
|
+
|
|
164
|
+
- [DataGrid] Add a CSS class corresponding to current density (#4858) @m4theushw
|
|
165
|
+
- [DataGrid] Execute the pipe-processors in their initialization order (#4913) @flaviendelangle
|
|
166
|
+
- [DataGrid] Fix rendering of the no rows overlay when the `loading` prop is changed (#4910) @m4theushw
|
|
167
|
+
- [DataGridPremium] Add `exceljs` to the dependencies (#4939) @alexfauquette
|
|
168
|
+
- [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
|
|
169
|
+
- [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
|
|
170
|
+
|
|
171
|
+
### `@mui/x-date-pickers@5.0.0-alpha.4` / `@mui/x-date-pickers-pro@5.0.0-alpha.4`
|
|
172
|
+
|
|
173
|
+
#### Breaking changes
|
|
174
|
+
|
|
175
|
+
- The props related to the action bar buttons have been removed (`clearable`, `showTodayButton`, `cancelText`, `okText`)
|
|
176
|
+
|
|
177
|
+
To decide which button must be displayed and in which order, you can now use the `actions` prop of the `actionBar` component slot props.
|
|
178
|
+
|
|
179
|
+
```jsx
|
|
180
|
+
<DatePicker
|
|
181
|
+
componentsProps={{
|
|
182
|
+
actionBar: {
|
|
183
|
+
// The actions will be the same between desktop and mobile
|
|
184
|
+
actions: ['clear'],
|
|
185
|
+
|
|
186
|
+
// The actions will be different between desktop and mobile
|
|
187
|
+
actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
|
|
188
|
+
},
|
|
189
|
+
}}
|
|
190
|
+
/>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
The build-in `ActionBar` component supports 4 different actions: `'clear'`, `'cancel'`, `'accept'`, and `'today'`.
|
|
194
|
+
By default, the pickers will render the cancel and accept button on mobile and no action on desktop.
|
|
195
|
+
|
|
196
|
+
If you need other actions, you can provide your own component to the `ActionBar` component slot
|
|
197
|
+
|
|
198
|
+
```jsx
|
|
199
|
+
<DatePicker components={{ ActionBar: CustomActionBar }} />
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Changes
|
|
203
|
+
|
|
204
|
+
- [DatePicker] Fix keyboard accessibility for first and last year (#4807) @alexfauquette
|
|
205
|
+
- [pickers] Add component slot for action bar (#4778) @alexfauquette
|
|
206
|
+
- [pickers] Add l10n support (#4517) @alexfauquette
|
|
207
|
+
- [pickers] Close Popper when pressing <kbd>Esc</kbd> inside a modal (#4499) @alexfauquette
|
|
208
|
+
- [pickers] Support class slots on toolbar components (#4855) @flaviendelangle
|
|
209
|
+
- [TimePicker] Fix time validation when current date is `null` (#4867) @flaviendelangle
|
|
210
|
+
|
|
211
|
+
### Docs
|
|
212
|
+
|
|
213
|
+
- [docs] Add 301 redirect for columns page (#4940) @alexfauquette
|
|
214
|
+
- [docs] Avoid confusion with license key installation (#4891) @oliviertassinari
|
|
215
|
+
- [docs] Complete the instructions for pickers installation in readme (#4852) @alexfauquette
|
|
216
|
+
- [docs] Disable ads on paid-only pages (#4842) @flaviendelangle
|
|
217
|
+
- [docs] Don't redirect to localized doc on deploy preview (#4818) @m4theushw
|
|
218
|
+
- [docs] Limit `LICENSE` file to 80 char per line (#4873) @oliviertassinari
|
|
219
|
+
- [docs] Typo on OrderId @oliviertassinari
|
|
220
|
+
- [docs] Update feature comparison table (#4918) @cherniavskii
|
|
221
|
+
|
|
222
|
+
### Core
|
|
223
|
+
|
|
224
|
+
- [core] Add new script to generate tree data rows from file tree (#4902) @flaviendelangle
|
|
225
|
+
- [core] Fix code style (#4874) @oliviertassinari
|
|
226
|
+
- [core] Fix React 18 peer dependency (#4908) @oliviertassinari
|
|
227
|
+
- [core] Fix link to the LICENSE file (#4875) @oliviertassinari
|
|
228
|
+
- [core] Fix transitive babel dependency (#4793) @oliviertassinari
|
|
229
|
+
- [core] New pipe processing `rowHydration` (#4896) @flaviendelangle
|
|
230
|
+
- [core] Remove dead code for the docs (#4791) @oliviertassinari
|
|
231
|
+
- [core] Run `yarn prettier` @oliviertassinari
|
|
232
|
+
- [core] Polishes on `CHANGELOG.md` (#4876) @oliviertassinari
|
|
233
|
+
- [core] Simplify rows cache management (#4933) @flaviendelangle
|
|
234
|
+
- [core] Use internal icons for quick filter (#4912) @alexfauquette
|
|
235
|
+
|
|
6
236
|
## v5.11.0
|
|
7
237
|
|
|
8
238
|
_May 13, 2022_
|
|
9
239
|
|
|
10
240
|
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
241
|
|
|
12
|
-
- 🚀 Premium plan release
|
|
13
|
-
|
|
14
|
-
We’re happy to announce that the Premium plan is [finally out](https://mui.com/blog/premium-plan-release/)!
|
|
15
|
-
With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
|
|
242
|
+
- 🚀 **Premium plan release**. We're happy to announce that the Premium plan is [finally out](https://mui.com/blog/premium-plan-release/)! With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
|
|
16
243
|
|
|
17
244
|
This plan is available through the new `@mui/x-data-grid-premium` package, which contains the row grouping and the Excel export features.
|
|
18
245
|
|
|
19
|
-
If you were already using the row grouping feature, you can upgrade by [installing](https://mui.com/x/react-data-grid/getting-started/#installation) `@mui/x-data-grid-premium` and replace `DataGridPro` with `DataGridPremium`, as follows.
|
|
20
|
-
Note that the experimental flag is not required anymore to use the row grouping.
|
|
246
|
+
If you were already using the row grouping feature, you can upgrade by [installing](https://mui.com/x/react-data-grid/getting-started/#installation) `@mui/x-data-grid-premium` and replace `DataGridPro` with `DataGridPremium`, as follows. Note that the experimental flag is not required anymore to use the row grouping.
|
|
21
247
|
|
|
22
248
|
```diff
|
|
23
249
|
-import { DataGridPro } from '@mui/x-data-grid-pro';
|
|
@@ -29,16 +255,11 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
29
255
|
|
|
30
256
|
For more information about the revised pricing model please have a look at the [blog post](https://mui.com/blog/premium-plan-release/#the-new-licensing-model).
|
|
31
257
|
|
|
32
|
-
- 👔
|
|
33
|
-
|
|
34
|
-
- 🔎 Quick filtering
|
|
35
|
-
|
|
36
|
-
You can now add a quick filtering search bar to your grid.
|
|
37
|
-
To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar.
|
|
258
|
+
- 👔 **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
|
|
38
259
|
|
|
39
|
-
|
|
260
|
+
- 🔎 **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter).
|
|
40
261
|
|
|
41
|
-
|
|
262
|
+
<img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
|
|
42
263
|
|
|
43
264
|
- 🐞 Bugs fixes
|
|
44
265
|
|
|
@@ -46,7 +267,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
46
267
|
|
|
47
268
|
#### Breaking changes
|
|
48
269
|
|
|
49
|
-
-
|
|
270
|
+
- Move row grouping to the premium package (#4223) @flaviendelangle
|
|
50
271
|
|
|
51
272
|
The use of `rowGrouping` in the `@mui/x-data-grid-pro` package is deprecated. The experimental flag will be removed in an upcoming release.
|
|
52
273
|
|
|
@@ -76,7 +297,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
76
297
|
|
|
77
298
|
#### Breaking changes
|
|
78
299
|
|
|
79
|
-
- Rework the auto-closing behavior of the pickers
|
|
300
|
+
- Rework the auto-closing behavior of the pickers (#4408) @flaviendelangle
|
|
80
301
|
|
|
81
302
|
The `disableCloseOnSelect` prop has been replaced by a new `closeOnSelect` prop which has the opposite behavior.
|
|
82
303
|
The default behavior remains the same (close after the last step on desktop but not on mobile).
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { DesktopDateRangePickerProps } from '../DesktopDateRangePicker';
|
|
3
|
-
import { MobileDateRangePickerProps } from '../MobileDateRangePicker';
|
|
4
|
-
export interface
|
|
2
|
+
import { DesktopDateRangePickerProps, DesktopDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponentsProps } from '../DesktopDateRangePicker';
|
|
3
|
+
import { MobileDateRangePickerProps, MobileDateRangePickerSlotsComponent, MobileDateRangePickerSlotsComponentsProps } from '../MobileDateRangePicker';
|
|
4
|
+
export interface DateRangePickerSlotsComponent extends MobileDateRangePickerSlotsComponent, DesktopDateRangePickerSlotsComponent {
|
|
5
|
+
}
|
|
6
|
+
export interface DateRangePickerSlotsComponentsProps extends MobileDateRangePickerSlotsComponentsProps, DesktopDateRangePickerSlotsComponentsProps {
|
|
7
|
+
}
|
|
8
|
+
export interface DateRangePickerProps<TInputDate, TDate> extends Omit<DesktopDateRangePickerProps<TInputDate, TDate>, 'components' | 'componentsProps'>, Omit<MobileDateRangePickerProps<TInputDate, TDate>, 'components' | 'componentsProps'> {
|
|
5
9
|
/**
|
|
6
10
|
* CSS media query when `Mobile` mode will be changed to `Desktop`.
|
|
7
11
|
* @default '@media (pointer: fine)'
|
|
8
12
|
* @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
|
|
9
13
|
*/
|
|
10
14
|
desktopModeMediaQuery?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Overrideable components.
|
|
17
|
+
* @default {}
|
|
18
|
+
*/
|
|
19
|
+
components?: Partial<DateRangePickerSlotsComponent>;
|
|
20
|
+
/**
|
|
21
|
+
* The props used for each component slot.
|
|
22
|
+
* @default {}
|
|
23
|
+
*/
|
|
24
|
+
componentsProps?: Partial<DateRangePickerSlotsComponentsProps>;
|
|
11
25
|
}
|
|
12
26
|
declare type DateRangePickerComponent = (<TInputDate, TDate = TInputDate>(props: DateRangePickerProps<TInputDate, TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
13
27
|
propTypes?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["
|
|
3
|
+
const _excluded = ["desktopModeMediaQuery", "DialogProps", "PopperProps", "TransitionComponent"];
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useThemeProps } from '@mui/material/styles';
|
|
@@ -30,13 +30,9 @@ export const DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangeP
|
|
|
30
30
|
useLicenseVerifier('x-date-pickers-pro', releaseInfo);
|
|
31
31
|
|
|
32
32
|
const {
|
|
33
|
-
cancelText,
|
|
34
33
|
desktopModeMediaQuery = '@media (pointer: fine)',
|
|
35
34
|
DialogProps,
|
|
36
|
-
okText,
|
|
37
35
|
PopperProps,
|
|
38
|
-
showTodayButton,
|
|
39
|
-
todayText,
|
|
40
36
|
TransitionComponent
|
|
41
37
|
} = props,
|
|
42
38
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
@@ -53,11 +49,7 @@ export const DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangeP
|
|
|
53
49
|
|
|
54
50
|
return /*#__PURE__*/_jsx(MobileDateRangePicker, _extends({
|
|
55
51
|
ref: ref,
|
|
56
|
-
|
|
57
|
-
DialogProps: DialogProps,
|
|
58
|
-
okText: okText,
|
|
59
|
-
showTodayButton: showTodayButton,
|
|
60
|
-
todayText: todayText
|
|
52
|
+
DialogProps: DialogProps
|
|
61
53
|
}, other));
|
|
62
54
|
});
|
|
63
55
|
process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
@@ -78,12 +70,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
78
70
|
* @default 2
|
|
79
71
|
*/
|
|
80
72
|
calendars: PropTypes.oneOf([1, 2, 3]),
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Cancel text message.
|
|
84
|
-
* @default 'Cancel'
|
|
85
|
-
*/
|
|
86
|
-
cancelText: PropTypes.node,
|
|
87
73
|
children: PropTypes.node,
|
|
88
74
|
|
|
89
75
|
/**
|
|
@@ -91,18 +77,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
91
77
|
*/
|
|
92
78
|
className: PropTypes.string,
|
|
93
79
|
|
|
94
|
-
/**
|
|
95
|
-
* If `true`, it shows the clear action in the picker dialog.
|
|
96
|
-
* @default false
|
|
97
|
-
*/
|
|
98
|
-
clearable: PropTypes.bool,
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Clear text message.
|
|
102
|
-
* @default 'Clear'
|
|
103
|
-
*/
|
|
104
|
-
clearText: PropTypes.node,
|
|
105
|
-
|
|
106
80
|
/**
|
|
107
81
|
* If `true` the popup or dialog will immediately close after submitting full date.
|
|
108
82
|
* @default `true` for Desktop, `false` for Mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
|
|
@@ -110,14 +84,13 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
110
84
|
closeOnSelect: PropTypes.bool,
|
|
111
85
|
|
|
112
86
|
/**
|
|
113
|
-
*
|
|
114
|
-
* Either a string to use an HTML element or a component.
|
|
87
|
+
* Overrideable components.
|
|
115
88
|
* @default {}
|
|
116
89
|
*/
|
|
117
90
|
components: PropTypes.object,
|
|
118
91
|
|
|
119
92
|
/**
|
|
120
|
-
* The props used for each slot
|
|
93
|
+
* The props used for each component slot.
|
|
121
94
|
* @default {}
|
|
122
95
|
*/
|
|
123
96
|
componentsProps: PropTypes.object,
|
|
@@ -152,12 +125,13 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
152
125
|
disabled: PropTypes.bool,
|
|
153
126
|
|
|
154
127
|
/**
|
|
128
|
+
* If `true` future days are disabled.
|
|
155
129
|
* @default false
|
|
156
130
|
*/
|
|
157
131
|
disableFuture: PropTypes.bool,
|
|
158
132
|
|
|
159
133
|
/**
|
|
160
|
-
* If `true`,
|
|
134
|
+
* If `true`, today's date is rendering without highlighting with circle.
|
|
161
135
|
* @default false
|
|
162
136
|
*/
|
|
163
137
|
disableHighlightToday: PropTypes.bool,
|
|
@@ -175,6 +149,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
175
149
|
disableOpenPicker: PropTypes.bool,
|
|
176
150
|
|
|
177
151
|
/**
|
|
152
|
+
* If `true` past days are disabled.
|
|
178
153
|
* @default false
|
|
179
154
|
*/
|
|
180
155
|
disablePast: PropTypes.bool,
|
|
@@ -182,6 +157,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
182
157
|
/**
|
|
183
158
|
* Text for end input label and toolbar placeholder.
|
|
184
159
|
* @default 'End'
|
|
160
|
+
* @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization
|
|
185
161
|
*/
|
|
186
162
|
endText: PropTypes.node,
|
|
187
163
|
|
|
@@ -199,6 +175,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
199
175
|
* Get aria-label text for switching between views button.
|
|
200
176
|
* @param {CalendarPickerView} currentView The view from which we want to get the button text.
|
|
201
177
|
* @returns {string} The label of the view.
|
|
178
|
+
* @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization
|
|
202
179
|
*/
|
|
203
180
|
getViewSwitchingButtonText: PropTypes.func,
|
|
204
181
|
ignoreInvalidInputs: PropTypes.bool,
|
|
@@ -224,6 +201,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
224
201
|
|
|
225
202
|
/**
|
|
226
203
|
* Left arrow icon aria-label text.
|
|
204
|
+
* @deprecated
|
|
227
205
|
*/
|
|
228
206
|
leftArrowButtonText: PropTypes.string,
|
|
229
207
|
|
|
@@ -241,21 +219,15 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
241
219
|
mask: PropTypes.string,
|
|
242
220
|
|
|
243
221
|
/**
|
|
244
|
-
*
|
|
222
|
+
* Maximal selectable date. @DateIOType
|
|
245
223
|
*/
|
|
246
224
|
maxDate: PropTypes.any,
|
|
247
225
|
|
|
248
226
|
/**
|
|
249
|
-
*
|
|
227
|
+
* Minimal selectable date. @DateIOType
|
|
250
228
|
*/
|
|
251
229
|
minDate: PropTypes.any,
|
|
252
230
|
|
|
253
|
-
/**
|
|
254
|
-
* Ok button text.
|
|
255
|
-
* @default 'OK'
|
|
256
|
-
*/
|
|
257
|
-
okText: PropTypes.node,
|
|
258
|
-
|
|
259
231
|
/**
|
|
260
232
|
* Callback fired when date is accepted @DateIOType.
|
|
261
233
|
* @template TValue
|
|
@@ -294,7 +266,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
294
266
|
/**
|
|
295
267
|
* Callback firing on month change @DateIOType.
|
|
296
268
|
* @template TDate
|
|
297
|
-
* @param {TDate} month The new
|
|
269
|
+
* @param {TDate} month The new month.
|
|
298
270
|
* @returns {void|Promise} -
|
|
299
271
|
*/
|
|
300
272
|
onMonthChange: PropTypes.func,
|
|
@@ -392,14 +364,15 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
392
364
|
|
|
393
365
|
/**
|
|
394
366
|
* Right arrow icon aria-label text.
|
|
367
|
+
* @deprecated
|
|
395
368
|
*/
|
|
396
369
|
rightArrowButtonText: PropTypes.string,
|
|
397
370
|
|
|
398
371
|
/**
|
|
399
372
|
* Disable specific date. @DateIOType
|
|
400
373
|
* @template TDate
|
|
401
|
-
* @param {TDate} day The date to
|
|
402
|
-
* @returns {boolean}
|
|
374
|
+
* @param {TDate} day The date to test.
|
|
375
|
+
* @returns {boolean} Returns `true` if the date should be disabled.
|
|
403
376
|
*/
|
|
404
377
|
shouldDisableDate: PropTypes.func,
|
|
405
378
|
|
|
@@ -417,7 +390,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
417
390
|
* Works like `shouldDisableDate` but for year selection view @DateIOType.
|
|
418
391
|
* @template TDate
|
|
419
392
|
* @param {TDate} year The year to test.
|
|
420
|
-
* @returns {boolean}
|
|
393
|
+
* @returns {boolean} Returns `true` if the year should be disabled.
|
|
421
394
|
*/
|
|
422
395
|
shouldDisableYear: PropTypes.func,
|
|
423
396
|
|
|
@@ -427,12 +400,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
427
400
|
*/
|
|
428
401
|
showDaysOutsideCurrentMonth: PropTypes.bool,
|
|
429
402
|
|
|
430
|
-
/**
|
|
431
|
-
* If `true`, the today button is displayed. **Note** that `showClearButton` has a higher priority.
|
|
432
|
-
* @default false
|
|
433
|
-
*/
|
|
434
|
-
showTodayButton: PropTypes.bool,
|
|
435
|
-
|
|
436
403
|
/**
|
|
437
404
|
* If `true`, show the toolbar even in desktop mode.
|
|
438
405
|
*/
|
|
@@ -441,15 +408,10 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
441
408
|
/**
|
|
442
409
|
* Text for start input label and toolbar placeholder.
|
|
443
410
|
* @default 'Start'
|
|
411
|
+
* @deprecated Use the `localeText` prop of `LocalizationProvider` instead, see https://mui.com/x/react-date-pickers/localization
|
|
444
412
|
*/
|
|
445
413
|
startText: PropTypes.node,
|
|
446
414
|
|
|
447
|
-
/**
|
|
448
|
-
* Today text message.
|
|
449
|
-
* @default 'Today'
|
|
450
|
-
*/
|
|
451
|
-
todayText: PropTypes.node,
|
|
452
|
-
|
|
453
415
|
/**
|
|
454
416
|
* Date format, that is displaying in toolbar.
|
|
455
417
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BaseToolbarProps } from '@mui/x-date-pickers/internals';
|
|
3
3
|
import { DateRange, CurrentlySelectingRangeEndProps } from '../internal/models';
|
|
4
|
+
export declare const dateRangePickerToolbarClasses: Record<"root", string>;
|
|
4
5
|
interface DateRangePickerToolbarProps<TDate> extends CurrentlySelectingRangeEndProps, Pick<BaseToolbarProps<TDate, DateRange<TDate>>, 'isMobileKeyboardViewOpen' | 'toggleMobileKeyboardView' | 'toolbarTitle' | 'toolbarFormat' | 'parsedValue'> {
|
|
5
6
|
startText: React.ReactNode;
|
|
6
7
|
endText: React.ReactNode;
|
|
@@ -8,5 +9,5 @@ interface DateRangePickerToolbarProps<TDate> extends CurrentlySelectingRangeEndP
|
|
|
8
9
|
/**
|
|
9
10
|
* @ignore - internal component.
|
|
10
11
|
*/
|
|
11
|
-
export declare const DateRangePickerToolbar: <TDate extends unknown>(
|
|
12
|
+
export declare const DateRangePickerToolbar: <TDate extends unknown>(props: DateRangePickerToolbarProps<TDate>) => JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -2,12 +2,16 @@ import * as React from 'react';
|
|
|
2
2
|
import Typography from '@mui/material/Typography';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
4
|
import { generateUtilityClasses } from '@mui/material';
|
|
5
|
-
import { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';
|
|
5
|
+
import { PickersToolbar, PickersToolbarButton, pickersToolbarClasses, useUtils } from '@mui/x-date-pickers/internals';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const
|
|
9
|
-
const DateRangePickerToolbarRoot = styled(PickersToolbar
|
|
10
|
-
|
|
8
|
+
export const dateRangePickerToolbarClasses = generateUtilityClasses('MuiDateRangePickerToolbar', ['root']);
|
|
9
|
+
const DateRangePickerToolbarRoot = styled(PickersToolbar, {
|
|
10
|
+
name: 'MuiDateRangePickerToolbar',
|
|
11
|
+
slot: 'Root',
|
|
12
|
+
overridesResolver: (props, styles) => styles.root
|
|
13
|
+
})({
|
|
14
|
+
[`& .${pickersToolbarClasses.penIconButton}`]: {
|
|
11
15
|
position: 'relative',
|
|
12
16
|
top: 4
|
|
13
17
|
}
|
|
@@ -19,26 +23,29 @@ const DateRangePickerToolbarContainer = styled('div')({
|
|
|
19
23
|
* @ignore - internal component.
|
|
20
24
|
*/
|
|
21
25
|
|
|
22
|
-
export const DateRangePickerToolbar =
|
|
23
|
-
currentlySelectingRangeEnd,
|
|
24
|
-
parsedValue: [start, end],
|
|
25
|
-
endText,
|
|
26
|
-
isMobileKeyboardViewOpen,
|
|
27
|
-
setCurrentlySelectingRangeEnd,
|
|
28
|
-
startText,
|
|
29
|
-
toggleMobileKeyboardView,
|
|
30
|
-
toolbarFormat,
|
|
31
|
-
toolbarTitle = 'Select date range'
|
|
32
|
-
}) => {
|
|
26
|
+
export const DateRangePickerToolbar = props => {
|
|
33
27
|
const utils = useUtils();
|
|
28
|
+
const {
|
|
29
|
+
currentlySelectingRangeEnd,
|
|
30
|
+
parsedValue: [start, end],
|
|
31
|
+
endText,
|
|
32
|
+
isMobileKeyboardViewOpen,
|
|
33
|
+
setCurrentlySelectingRangeEnd,
|
|
34
|
+
startText,
|
|
35
|
+
toggleMobileKeyboardView,
|
|
36
|
+
toolbarFormat,
|
|
37
|
+
toolbarTitle = 'Select date range'
|
|
38
|
+
} = props;
|
|
34
39
|
const startDateValue = start ? utils.formatByString(start, toolbarFormat || utils.formats.shortDate) : startText;
|
|
35
40
|
const endDateValue = end ? utils.formatByString(end, toolbarFormat || utils.formats.shortDate) : endText;
|
|
41
|
+
const ownerState = props;
|
|
36
42
|
return /*#__PURE__*/_jsx(DateRangePickerToolbarRoot, {
|
|
37
43
|
toolbarTitle: toolbarTitle,
|
|
38
44
|
isMobileKeyboardViewOpen: isMobileKeyboardViewOpen,
|
|
39
45
|
toggleMobileKeyboardView: toggleMobileKeyboardView,
|
|
40
46
|
isLandscape: false,
|
|
41
|
-
|
|
47
|
+
className: dateRangePickerToolbarClasses.root,
|
|
48
|
+
ownerState: ownerState,
|
|
42
49
|
children: /*#__PURE__*/_jsxs(DateRangePickerToolbarContainer, {
|
|
43
50
|
children: [/*#__PURE__*/_jsx(PickersToolbarButton, {
|
|
44
51
|
variant: start !== null ? 'h5' : 'h6',
|
|
@@ -10,13 +10,12 @@ export interface DateRangePickerViewSlotsComponentsProps extends DateRangePicker
|
|
|
10
10
|
}
|
|
11
11
|
export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDesktopDateRangeCalendarProps<TDate>, Omit<ExportedCalendarPickerProps<TDate>, 'onYearChange' | 'renderDay'> {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* Either a string to use an HTML element or a component.
|
|
13
|
+
* Overrideable components.
|
|
15
14
|
* @default {}
|
|
16
15
|
*/
|
|
17
16
|
components?: Partial<DateRangePickerViewSlotsComponent>;
|
|
18
17
|
/**
|
|
19
|
-
* The props used for each slot
|
|
18
|
+
* The props used for each component slot.
|
|
20
19
|
* @default {}
|
|
21
20
|
*/
|
|
22
21
|
componentsProps?: Partial<DateRangePickerViewSlotsComponentsProps>;
|
|
@@ -121,7 +121,6 @@ function DateRangePickerViewRaw(props) {
|
|
|
121
121
|
const renderView = () => {
|
|
122
122
|
const sharedCalendarProps = _extends({
|
|
123
123
|
parsedValue,
|
|
124
|
-
isDateDisabled,
|
|
125
124
|
changeFocusedDay,
|
|
126
125
|
onSelectedDaysChange: handleSelectedDayChange,
|
|
127
126
|
reduceAnimations,
|
|
@@ -132,7 +131,8 @@ function DateRangePickerViewRaw(props) {
|
|
|
132
131
|
disableFuture,
|
|
133
132
|
disablePast,
|
|
134
133
|
minDate,
|
|
135
|
-
maxDate
|
|
134
|
+
maxDate,
|
|
135
|
+
shouldDisableDate
|
|
136
136
|
}, calendarState, other);
|
|
137
137
|
|
|
138
138
|
switch (wrapperVariant) {
|