@mui/x-date-pickers-pro 6.0.0-alpha.4 → 6.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/AdapterDateFnsJalali/index.d.ts +1 -0
- package/AdapterDateFnsJalali/index.js +1 -0
- package/AdapterDateFnsJalali/package.json +6 -0
- package/AdapterMomentHijri/index.d.ts +1 -0
- package/AdapterMomentHijri/index.js +1 -0
- package/AdapterMomentHijri/package.json +6 -0
- package/AdapterMomentJalaali/index.d.ts +1 -0
- package/AdapterMomentJalaali/index.js +1 -0
- package/AdapterMomentJalaali/package.json +6 -0
- package/CHANGELOG.md +359 -21
- package/DateRangeCalendar/DateRangeCalendar.js +17 -0
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +16 -2
- package/DateRangePicker/DateRangePickerInput.d.ts +1 -0
- package/DateRangePicker/DateRangePickerInput.js +19 -8
- package/DateRangePicker/DateRangePickerToolbar.d.ts +1 -1
- package/LICENSE +6 -7
- package/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +4 -0
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +4 -0
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +4 -0
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/index.js +1 -1
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/AdapterDateFnsJalali/index.js +1 -0
- package/legacy/AdapterMomentHijri/index.js +1 -0
- package/legacy/AdapterMomentJalaali/index.js +1 -0
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +17 -0
- package/legacy/DateRangePicker/DateRangePickerInput.js +18 -7
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +4 -0
- package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +4 -0
- package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +4 -0
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/legacy/index.js +1 -1
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/legacy/tests/testValidation/testTextFieldValidation.js +4 -4
- package/modern/AdapterDateFnsJalali/index.js +1 -0
- package/modern/AdapterMomentHijri/index.js +1 -0
- package/modern/AdapterMomentJalaali/index.js +1 -0
- package/modern/DateRangeCalendar/DateRangeCalendar.js +17 -0
- package/modern/DateRangePicker/DateRangePickerInput.js +19 -8
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +4 -0
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +4 -0
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +4 -0
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/modern/index.js +1 -1
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/modern/tests/testValidation/testTextFieldValidation.js +4 -4
- package/node/AdapterDateFnsJalali/index.js +13 -0
- package/node/AdapterMomentHijri/index.js +13 -0
- package/node/AdapterMomentJalaali/index.js +13 -0
- package/node/DateRangeCalendar/DateRangeCalendar.js +17 -0
- package/node/DateRangePicker/DateRangePickerInput.js +19 -8
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +2 -1
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +4 -0
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +4 -0
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +4 -0
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/node/index.js +1 -1
- package/node/internal/utils/releaseInfo.js +1 -1
- package/node/tests/testValidation/testTextFieldValidation.js +4 -4
- package/package.json +3 -3
- package/tests/testValidation/testTextFieldValidation.js +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterDateFnsJalali } from '@mui/x-date-pickers/AdapterDateFnsJalali';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterDateFnsJalali } from '@mui/x-date-pickers/AdapterDateFnsJalali';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterMomentHijri } from '@mui/x-date-pickers/AdapterMomentHijri';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterMomentHijri } from '@mui/x-date-pickers/AdapterMomentHijri';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterMomentJalaali } from '@mui/x-date-pickers/AdapterMomentJalaali';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AdapterMomentJalaali } from '@mui/x-date-pickers/AdapterMomentJalaali';
|
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,178 @@
|
|
|
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
|
-
##
|
|
6
|
+
## 6.0.0-alpha.6
|
|
7
|
+
|
|
8
|
+
_Nov 4, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
|
13
|
+
|
|
14
|
+
```tsx
|
|
15
|
+
<DateCalendar defaultValue={dayjs()} />
|
|
16
|
+
<MonthCalendar defaultValue={dayjs()} />
|
|
17
|
+
<YearCalendar defaultValue={dayjs()} />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
- 🐞 Bugfixes
|
|
23
|
+
|
|
24
|
+
### `@mui/x-data-grid@v6.0.0-alpha.6` / `@mui/x-data-grid-pro@v6.0.0-alpha.6` / `@mui/x-data-grid-premium@v6.0.0-alpha.6`
|
|
25
|
+
|
|
26
|
+
#### Breaking changes
|
|
27
|
+
|
|
28
|
+
- The `disableIgnoreModificationsIfProcessingProps` prop has been removed and its behavior when `true` was incorporated as the default behavior.
|
|
29
|
+
The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
|
|
30
|
+
|
|
31
|
+
#### Changes
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Add `rowSelection` prop (#6499) @m4theushw
|
|
34
|
+
- [DataGrid] Avoid future regression with React 19 (#6638) @oliviertassinari
|
|
35
|
+
- [DataGrid] Refactor `@mui/material` imports to `@mui/utils` (#6569) @LukasTy
|
|
36
|
+
- [DataGrid] Remove `disableIgnoreModificationsIfProcessingProps` prop (#6640) @m4theushw
|
|
37
|
+
- [DataGrid] Separate private and public `apiRef` properties (#6388) @cherniavskii
|
|
38
|
+
|
|
39
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.6` / `@mui/x-date-pickers-pro@v6.0.0-alpha.6`
|
|
40
|
+
|
|
41
|
+
#### Changes
|
|
42
|
+
|
|
43
|
+
- [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
|
|
44
|
+
- [fields] Update sections when the locale changes (#6649) @flaviendelangle
|
|
45
|
+
- [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
|
|
46
|
+
- [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
|
47
|
+
- [pickers] Export other adapters derived from moment or date-fns (#6571) @alexfauquette
|
|
48
|
+
- [pickers] New `MobileDatePicker` and `DatePicker` based on `DateField` (#6690) @flaviendelangle
|
|
49
|
+
- [pickers] New `StaticDatePicker` component (#6708) @flaviendelangle
|
|
50
|
+
- [pickers] Rename `inputFormat` prop to `format` on the new pickers (#6722) @flaviendelangle
|
|
51
|
+
|
|
52
|
+
### Core
|
|
53
|
+
|
|
54
|
+
- [core] Fix `typescript:ci` failures (#6705) @LukasTy
|
|
55
|
+
- [core] Fixes for upcoming eslint upgrade (#6667) @Janpot
|
|
56
|
+
- [core] Pin GitHub Action to digests (#6683) @oliviertassinari
|
|
57
|
+
|
|
58
|
+
## 6.0.0-alpha.5
|
|
59
|
+
|
|
60
|
+
_Oct 31, 2022_
|
|
61
|
+
|
|
62
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
63
|
+
|
|
64
|
+
- ⚡ Fix memory leak during unmount of the DataGrid (#6620) @cherniavskii
|
|
65
|
+
- 📝 New guide for migrating pickers from v5 to v6 (#6472) @flaviendelangle
|
|
66
|
+
- 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6444) @e-cloud
|
|
67
|
+
- 🐞 Bugfixes
|
|
68
|
+
|
|
69
|
+
### `@mui/x-data-grid@v6.0.0-alpha.5` / `@mui/x-data-grid-pro@v6.0.0-alpha.5` / `@mui/x-data-grid-premium@v6.0.0-alpha.5`
|
|
70
|
+
|
|
71
|
+
#### Breaking changes
|
|
72
|
+
|
|
73
|
+
- Stop exporting `gridColumnsSelector` (#6693) @m4theushw
|
|
74
|
+
|
|
75
|
+
The `gridColumnsSelector` was deprecated during v5 and is now removed from the export list.
|
|
76
|
+
|
|
77
|
+
Please consider using one of the following selectors as a replacement:
|
|
78
|
+
|
|
79
|
+
- `gridColumnFieldsSelector`, to obtain the column fields in the order they appear on the screen;
|
|
80
|
+
- `gridColumnLookupSelector`, to access column definitions by field;
|
|
81
|
+
- `gridColumnVisibilityModelSelector`, for the visibility state of each column.
|
|
82
|
+
|
|
83
|
+
#### Changes
|
|
84
|
+
|
|
85
|
+
- [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6444) @e-cloud
|
|
86
|
+
- [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6493) @cherniavskii
|
|
87
|
+
- [DataGrid] Fix memory leak on grid unmount (#6620) @cherniavskii
|
|
88
|
+
- [DataGrid] Rename `GridColumnsState['all']` to `GridColumnsState['orderedFields']` (#6562) @DanailH
|
|
89
|
+
- [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6655) @mattcorner
|
|
90
|
+
- [DataGrid] Stop exporting `gridColumnsSelector` (#6693)
|
|
91
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#6578) @AtanasVA
|
|
92
|
+
|
|
93
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.5` / `@mui/x-date-pickers-pro@v6.0.0-alpha.5`
|
|
94
|
+
|
|
95
|
+
#### Breaking changes
|
|
96
|
+
|
|
97
|
+
- [pickers] Rename remaining `private` components (#6550) @LukasTy
|
|
98
|
+
Previously we had 4 component names with `Private` prefix in order to avoid breaking changes in v5.
|
|
99
|
+
These components were renamed:
|
|
100
|
+
|
|
101
|
+
- `PrivatePickersMonth` -> `MuiPickersMonth`
|
|
102
|
+
- `PrivatePickersSlideTransition` -> `MuiPickersSlideTransition`
|
|
103
|
+
- `PrivatePickersToolbarText` -> `MuiPickersToolbarText`
|
|
104
|
+
- `PrivatePickersYear` -> `MuiPickersYear`
|
|
105
|
+
|
|
106
|
+
Manual style overriding will need to use updated classes:
|
|
107
|
+
|
|
108
|
+
```diff
|
|
109
|
+
-.PrivatePickersMonth-root {
|
|
110
|
+
+.MuiPickersMonth-root {
|
|
111
|
+
|
|
112
|
+
-.PrivatePickersSlideTransition-root {
|
|
113
|
+
+.MuiPickersSlideTransition-root {
|
|
114
|
+
|
|
115
|
+
-.PrivatePickersToolbarText-root {
|
|
116
|
+
+.MuiPickersToolbarText-root {
|
|
117
|
+
|
|
118
|
+
-.PrivatePickersYear-root {
|
|
119
|
+
+.MuiPickersYear-root {
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Component name changes are also reflected in `themeAugmentation`:
|
|
123
|
+
|
|
124
|
+
```diff
|
|
125
|
+
const theme = createTheme({
|
|
126
|
+
components: {
|
|
127
|
+
- PrivatePickersMonth: {
|
|
128
|
+
+ MuiPickersMonth: {
|
|
129
|
+
// overrides
|
|
130
|
+
},
|
|
131
|
+
- PrivatePickersSlideTransition: {
|
|
132
|
+
+ MuiPickersSlideTransition: {
|
|
133
|
+
// overrides
|
|
134
|
+
},
|
|
135
|
+
- PrivatePickersToolbarText: {
|
|
136
|
+
+ MuiPickersToolbarText: {
|
|
137
|
+
// overrides
|
|
138
|
+
},
|
|
139
|
+
- PrivatePickersYear: {
|
|
140
|
+
+ MuiPickersYear: {
|
|
141
|
+
// overrides
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Changes
|
|
148
|
+
|
|
149
|
+
- [DateTimePicker] Fix toolbar time order when `theme.rtl=true` (#6636) @alexfauquette
|
|
150
|
+
- [pickers] Import fixes for mask editing (#6623) @alexfauquette
|
|
151
|
+
- [pickers] Rename remaining `private` components (#6550) @LukasTy
|
|
152
|
+
- [pickers] New `DesktopDatePicker` based on `DateField` (#6548) @flaviendelangle
|
|
153
|
+
|
|
154
|
+
### Docs
|
|
155
|
+
|
|
156
|
+
- [docs] Add feedback in next doc (#6591) @alexfauquette
|
|
157
|
+
- [docs] Check link validity in PR (#6497) @alexfauquette
|
|
158
|
+
- [docs] Disable translations (#6560) @cherniavskii
|
|
159
|
+
- [docs] Fix typo in DataGrid demo page (#6632) @banoth-ravinder
|
|
160
|
+
- [docs] New page to migrate pickers from v5 to v6 (#6472) @flaviendelangle
|
|
161
|
+
- [docs] Remove broken welcome page (#6585) @alexfauquette
|
|
162
|
+
- [docs] Mark data grid column group as available (#6660) @alexfauquette
|
|
163
|
+
- [docs] Fix double space @oliviertassinari
|
|
164
|
+
|
|
165
|
+
### Core
|
|
166
|
+
|
|
167
|
+
- [core] Fix duplicate CodeQL build @oliviertassinari
|
|
168
|
+
- [core] Fix spreading on validation page (#6624) @flaviendelangle
|
|
169
|
+
- [core] Small TypeScript improvements (#6575) @flaviendelangle
|
|
170
|
+
- [core] Upgrade monorepo (#6594) @oliviertassinari
|
|
171
|
+
- [core] Change reproduction position (#6621) @oliviertassinari
|
|
172
|
+
- [core] Fix permissions in `no-response` workflow (#6658) @cherniavskii
|
|
173
|
+
- [core] Remove legacy migration function (#6669) @oliviertassinari
|
|
174
|
+
- [license] Improve the license content (#6459) @oliviertassinari
|
|
175
|
+
- [test] Test Arrow up/down on every token (#6563) @alexfauquette
|
|
176
|
+
|
|
177
|
+
## 6.0.0-alpha.4
|
|
7
178
|
|
|
8
179
|
_Oct 20, 2022_
|
|
9
180
|
|
|
@@ -47,45 +218,45 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
47
218
|
You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props):
|
|
48
219
|
|
|
49
220
|
```diff
|
|
50
|
-
|
|
51
|
-
|
|
221
|
+
// Same on all other pickers
|
|
222
|
+
<DatePicker
|
|
52
223
|
- ToolbarComponent: MyToolbar,
|
|
53
224
|
+ components={{ Toolbar: MyToolbar }}
|
|
54
|
-
|
|
225
|
+
/>
|
|
55
226
|
```
|
|
56
227
|
|
|
57
228
|
- The `toolbarPlaceholder` and `toolbarFormat` props have been moved to the `toolbar` components props slot:
|
|
58
229
|
|
|
59
230
|
```diff
|
|
60
|
-
|
|
61
|
-
|
|
231
|
+
// Same on all other pickers
|
|
232
|
+
<DatePicker
|
|
62
233
|
- toolbarPlaceholder="__"
|
|
63
234
|
- toolbarFormat="DD / MM / YYYY"
|
|
64
235
|
+ componentsProps={{
|
|
65
236
|
+ toolbar: {
|
|
66
|
-
+ toolbarPlaceholder:
|
|
67
|
-
+ toolbarFormat:
|
|
237
|
+
+ toolbarPlaceholder: '__',
|
|
238
|
+
+ toolbarFormat: 'DD / MM / YYYY',
|
|
68
239
|
+ }
|
|
69
240
|
+ }}
|
|
70
|
-
|
|
241
|
+
/>
|
|
71
242
|
```
|
|
72
243
|
|
|
73
244
|
- The `toolbarTitle` prop has been moved to the localization object:
|
|
74
245
|
|
|
75
246
|
```diff
|
|
76
|
-
|
|
77
|
-
|
|
247
|
+
// Same on all other pickers
|
|
248
|
+
<DatePicker
|
|
78
249
|
- toolbarTitle="Title"
|
|
79
|
-
+ localeText={{ toolbarTitle:
|
|
80
|
-
|
|
250
|
+
+ localeText={{ toolbarTitle: 'Title' }}
|
|
251
|
+
/>
|
|
81
252
|
```
|
|
82
253
|
|
|
83
254
|
- The toolbar related translation keys have been renamed to better fit their usage:
|
|
84
255
|
|
|
85
256
|
```diff
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
257
|
+
// Same on all other pickers
|
|
258
|
+
<DatePicker
|
|
259
|
+
localeText={{
|
|
89
260
|
- datePickerDefaultToolbarTitle: 'Date Picker',
|
|
90
261
|
+ datePickerToolbarTitle: 'Date Picker',
|
|
91
262
|
|
|
@@ -97,8 +268,8 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
97
268
|
|
|
98
269
|
- dateRangePickerDefaultToolbarTitle: 'Date Range Picker',
|
|
99
270
|
+ dateRangePickerToolbarTitle: 'Date Range Picker',
|
|
100
|
-
|
|
101
|
-
|
|
271
|
+
}}
|
|
272
|
+
/>
|
|
102
273
|
```
|
|
103
274
|
|
|
104
275
|
- The `onChange` / `openView` props on the toolbar have been renamed `onViewChange` / `view`
|
|
@@ -134,7 +305,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
134
305
|
- [test] Add validation test on range pickers (#6504) @alexfauquette
|
|
135
306
|
- [test] Remove BrowserStack (#6263) @DanailH
|
|
136
307
|
|
|
137
|
-
##
|
|
308
|
+
## 6.0.0-alpha.3
|
|
138
309
|
|
|
139
310
|
_Oct 13, 2022_
|
|
140
311
|
|
|
@@ -342,7 +513,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
342
513
|
- [core] Test validation on textfield and date views (#6265) @alexfauquette
|
|
343
514
|
- [test] Sync comment with monorepo @oliviertassinari
|
|
344
515
|
|
|
345
|
-
##
|
|
516
|
+
## 6.0.0-alpha.2
|
|
346
517
|
|
|
347
518
|
_Oct 7, 2022_
|
|
348
519
|
|
|
@@ -736,7 +907,174 @@ You can find more information about the new api, including how to set those tran
|
|
|
736
907
|
- [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
|
|
737
908
|
- [website] Improve security header @oliviertassinari
|
|
738
909
|
|
|
739
|
-
##
|
|
910
|
+
## 5.17.10
|
|
911
|
+
|
|
912
|
+
_Nov 4, 2022_
|
|
913
|
+
|
|
914
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
915
|
+
|
|
916
|
+
- 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
|
|
917
|
+
|
|
918
|
+
### `@mui/x-data-grid@v5.17.10` / `@mui/x-data-grid-pro@v5.17.10` / `@mui/x-data-grid-premium@v5.17.10`
|
|
919
|
+
|
|
920
|
+
#### Changes
|
|
921
|
+
|
|
922
|
+
- [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6688) @mattcorner
|
|
923
|
+
|
|
924
|
+
### `@mui/x-date-pickers@v5.0.7` / `@mui/x-date-pickers-pro@v5.0.7`
|
|
925
|
+
|
|
926
|
+
#### Changes
|
|
927
|
+
|
|
928
|
+
- [DateRangePicker] Fix input focused style and mobile behaviour (#6645) (#6714) @LukasTy
|
|
929
|
+
- [pickers] Add Ukrainian (uk-UA) locale on the date picker (#6661) @Dufran
|
|
930
|
+
|
|
931
|
+
### Docs
|
|
932
|
+
|
|
933
|
+
- [docs] Mark data grid column group available (#6659) @alexfauquette
|
|
934
|
+
|
|
935
|
+
## 5.17.9
|
|
936
|
+
|
|
937
|
+
_Oct 28, 2022_
|
|
938
|
+
|
|
939
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
940
|
+
|
|
941
|
+
- ⚡ Fix memory leak during unmount of the DataGrid (#6579) @cherniavskii
|
|
942
|
+
- 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6630) @e-cloud
|
|
943
|
+
- 🐞 Bugfixes
|
|
944
|
+
|
|
945
|
+
### `@mui/x-data-grid@v5.17.9` / `@mui/x-data-grid-pro@v5.17.9` / `@mui/x-data-grid-premium@v5.17.9`
|
|
946
|
+
|
|
947
|
+
#### Changes
|
|
948
|
+
|
|
949
|
+
- [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6630) @e-cloud
|
|
950
|
+
- [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6637) @cherniavskii
|
|
951
|
+
- [DataGrid] Fix memory leak on grid unmount (#6579) @cherniavskii
|
|
952
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#6635) @AtanasVA
|
|
953
|
+
|
|
954
|
+
### `@mui/x-date-pickers@v5.0.6` / `@mui/x-date-pickers-pro@v5.0.6`
|
|
955
|
+
|
|
956
|
+
#### Changes
|
|
957
|
+
|
|
958
|
+
- [pickers] Ignore milliseconds in mask logic (#6618) @alexfauquette
|
|
959
|
+
- [pickers] Update input when `inputFormat` is modified (#6617) @alexfauquette
|
|
960
|
+
|
|
961
|
+
### Docs
|
|
962
|
+
|
|
963
|
+
- [docs] Add token to redirect feedbacks on slack (#6592) @alexfauquette
|
|
964
|
+
- [docs] Disable translations (#6639) @cherniavskii
|
|
965
|
+
- [docs] Fix code edit for when v6 will be stable (#6600) @oliviertassinari
|
|
966
|
+
- [docs] Fix typo in DataGrid demo page (#6632) (#6634) @LukasTy
|
|
967
|
+
|
|
968
|
+
### Core
|
|
969
|
+
|
|
970
|
+
- [core] Upgrade monorepo (#6570) @cherniavskii
|
|
971
|
+
|
|
972
|
+
## 5.17.8
|
|
973
|
+
|
|
974
|
+
_Oct 20, 2022_
|
|
975
|
+
|
|
976
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
977
|
+
|
|
978
|
+
- 🐞 Bugfixes
|
|
979
|
+
- 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6573) @ramazansancar
|
|
980
|
+
|
|
981
|
+
### `@mui/x-data-grid@v5.17.8` / `@mui/x-data-grid-pro@v5.17.8` / `@mui/x-data-grid-premium@v5.17.8`
|
|
982
|
+
|
|
983
|
+
#### Changes
|
|
984
|
+
|
|
985
|
+
- [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6572) @cherniavskii
|
|
986
|
+
- [DataGrid] Fix grid not updating state on `rowCount` prop change (#6474) @cherniavskii
|
|
987
|
+
- [DataGridPro] Fix row order being reset after updating the row (#6544) @cherniavskii
|
|
988
|
+
- [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) (#6573) @ramazansancar
|
|
989
|
+
|
|
990
|
+
### `@mui/x-date-pickers@v5.0.5` / `@mui/x-date-pickers-pro@v5.0.5`
|
|
991
|
+
|
|
992
|
+
#### Changes
|
|
993
|
+
|
|
994
|
+
- [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
|
|
995
|
+
- [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
|
|
996
|
+
- [pickers] Fix typescript issues (#6510) @flaviendelangle
|
|
997
|
+
|
|
998
|
+
### Docs
|
|
999
|
+
|
|
1000
|
+
- [docs] Fix 301 link to the sx prop page @oliviertassinari
|
|
1001
|
+
|
|
1002
|
+
## 5.17.7
|
|
1003
|
+
|
|
1004
|
+
_Oct 13, 2022_
|
|
1005
|
+
|
|
1006
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
1007
|
+
|
|
1008
|
+
- 🐞 Bugfixes
|
|
1009
|
+
|
|
1010
|
+
### `@mui/x-data-grid@v5.17.7` / `@mui/x-data-grid-pro@v5.17.7` / `@mui/x-data-grid-premium@v5.17.7`
|
|
1011
|
+
|
|
1012
|
+
#### Changes
|
|
1013
|
+
|
|
1014
|
+
- [DataGrid] Fix error when using column grouping with all columns hidden (#6425) @alexfauquette
|
|
1015
|
+
- [DataGrid] Fix start edit mode with printable character in React 18 (#6478) @m4theushw
|
|
1016
|
+
|
|
1017
|
+
## 5.17.6
|
|
1018
|
+
|
|
1019
|
+
_Oct 6, 2022_
|
|
1020
|
+
|
|
1021
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
1022
|
+
|
|
1023
|
+
- 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
|
|
1024
|
+
- 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
|
|
1025
|
+
- 🐞 Bugfixes
|
|
1026
|
+
|
|
1027
|
+
### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
|
|
1028
|
+
|
|
1029
|
+
#### Changes
|
|
1030
|
+
|
|
1031
|
+
- [DataGrid] Add missing `valueOptions` (#6400) @DanailH
|
|
1032
|
+
- [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
|
|
1033
|
+
- [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
|
|
1034
|
+
|
|
1035
|
+
### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
|
|
1036
|
+
|
|
1037
|
+
#### Changes
|
|
1038
|
+
|
|
1039
|
+
- [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
|
|
1040
|
+
- [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
|
|
1041
|
+
- [pickers] Fix git repository location @oliviertassinari
|
|
1042
|
+
|
|
1043
|
+
### Docs
|
|
1044
|
+
|
|
1045
|
+
- [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
|
|
1046
|
+
|
|
1047
|
+
## 5.17.5
|
|
1048
|
+
|
|
1049
|
+
_Sep 29, 2022_
|
|
1050
|
+
|
|
1051
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
1052
|
+
|
|
1053
|
+
- 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
|
|
1054
|
+
- 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
|
|
1055
|
+
- 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
|
|
1056
|
+
- 🐞 Bugfixes
|
|
1057
|
+
|
|
1058
|
+
### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
|
|
1059
|
+
|
|
1060
|
+
#### Changes
|
|
1061
|
+
|
|
1062
|
+
- [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
|
|
1063
|
+
- [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
|
|
1064
|
+
- [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
|
|
1065
|
+
- [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
|
|
1066
|
+
- [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
|
|
1067
|
+
- [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
|
|
1068
|
+
|
|
1069
|
+
### Docs
|
|
1070
|
+
|
|
1071
|
+
- [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
|
|
1072
|
+
|
|
1073
|
+
### Core
|
|
1074
|
+
|
|
1075
|
+
- [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
|
|
1076
|
+
|
|
1077
|
+
## 5.17.4
|
|
740
1078
|
|
|
741
1079
|
_Sep 22, 2022_
|
|
742
1080
|
|
|
@@ -381,6 +381,11 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
381
381
|
* Default calendar month displayed when `value={[null, null]}`.
|
|
382
382
|
*/
|
|
383
383
|
defaultCalendarMonth: PropTypes.any,
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* The default selected value.
|
|
387
|
+
* Used when the component is not controlled.
|
|
388
|
+
*/
|
|
384
389
|
defaultValue: PropTypes.arrayOf(PropTypes.any),
|
|
385
390
|
|
|
386
391
|
/**
|
|
@@ -436,6 +441,13 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
436
441
|
* Minimal selectable date. @DateIOType
|
|
437
442
|
*/
|
|
438
443
|
minDate: PropTypes.any,
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Callback fired when the value changes.
|
|
447
|
+
* @template TDate
|
|
448
|
+
* @param {DateRange<TDate>} value The new value.
|
|
449
|
+
* @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
|
|
450
|
+
*/
|
|
439
451
|
onChange: PropTypes.func,
|
|
440
452
|
onCurrentDatePositionChange: PropTypes.func,
|
|
441
453
|
|
|
@@ -485,6 +497,11 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
485
497
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
486
498
|
*/
|
|
487
499
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The selected value.
|
|
503
|
+
* Used when the component is controlled.
|
|
504
|
+
*/
|
|
488
505
|
value: PropTypes.arrayOf(PropTypes.any)
|
|
489
506
|
} : void 0;
|
|
490
507
|
export { DateRangeCalendar };
|
|
@@ -17,9 +17,23 @@ export interface DateRangeCalendarSlotsComponent<TDate> extends PickersArrowSwit
|
|
|
17
17
|
export interface DateRangeCalendarSlotsComponentsProps<TDate> extends PickersArrowSwitcherSlotsComponentsProps, Omit<DayCalendarSlotsComponentsProps<TDate>, 'Day'> {
|
|
18
18
|
}
|
|
19
19
|
export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate> {
|
|
20
|
+
/**
|
|
21
|
+
* The selected value.
|
|
22
|
+
* Used when the component is controlled.
|
|
23
|
+
*/
|
|
20
24
|
value?: DateRange<TDate>;
|
|
25
|
+
/**
|
|
26
|
+
* The default selected value.
|
|
27
|
+
* Used when the component is not controlled.
|
|
28
|
+
*/
|
|
21
29
|
defaultValue?: DateRange<TDate>;
|
|
22
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Callback fired when the value changes.
|
|
32
|
+
* @template TDate
|
|
33
|
+
* @param {DateRange<TDate>} value The new value.
|
|
34
|
+
* @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
|
|
35
|
+
*/
|
|
36
|
+
onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
|
|
23
37
|
autoFocus?: boolean;
|
|
24
38
|
className?: string;
|
|
25
39
|
classes?: Partial<DateRangeCalendarClasses>;
|
|
@@ -77,4 +91,4 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<
|
|
|
77
91
|
calendars?: 1 | 2 | 3;
|
|
78
92
|
}
|
|
79
93
|
export declare type DateRangeCalendarDefaultizedProps<TDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'reduceAnimations' | 'calendars' | keyof BaseDateValidationProps<TDate>>;
|
|
80
|
-
export declare type ExportedDateRangeCalendarProps<TDate> = Omit<DateRangeCalendarProps<TDate>, 'value' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes' | 'components' | 'componentsProps' | 'currentDatePosition' | 'onCurrentDatePositionChange'>;
|
|
94
|
+
export declare type ExportedDateRangeCalendarProps<TDate> = Omit<DateRangeCalendarProps<TDate>, 'defaultValue' | 'value' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes' | 'components' | 'componentsProps' | 'currentDatePosition' | 'onCurrentDatePositionChange'>;
|
|
@@ -32,6 +32,7 @@ export interface DateRangePickerInputProps<TDate> extends Omit<ExportedDateRange
|
|
|
32
32
|
validationError: DateRangeValidationError;
|
|
33
33
|
value: DateRange<TDate>;
|
|
34
34
|
classes?: Partial<DateRangePickerInputClasses>;
|
|
35
|
+
mobile?: boolean;
|
|
35
36
|
}
|
|
36
37
|
declare type DatePickerInputComponent = <TDate>(props: DateRangePickerInputProps<TDate> & React.RefAttributes<HTMLDivElement>) => JSX.Element;
|
|
37
38
|
/**
|
|
@@ -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 = ["currentlySelectingRangeEnd", "disableOpenPicker", "onBlur", "onChange", "open", "openPicker", "value", "value", "readOnly", "renderInput", "setCurrentlySelectingRangeEnd", "TextFieldProps", "validationError", "className"];
|
|
3
|
+
const _excluded = ["currentlySelectingRangeEnd", "disableOpenPicker", "onBlur", "onChange", "open", "openPicker", "value", "value", "readOnly", "renderInput", "setCurrentlySelectingRangeEnd", "TextFieldProps", "validationError", "className", "mobile"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
@@ -56,7 +56,8 @@ export const DateRangePickerInput = /*#__PURE__*/React.forwardRef(function DateR
|
|
|
56
56
|
setCurrentlySelectingRangeEnd,
|
|
57
57
|
TextFieldProps,
|
|
58
58
|
validationError: [startValidationError, endValidationError],
|
|
59
|
-
className
|
|
59
|
+
className,
|
|
60
|
+
mobile
|
|
60
61
|
} = props,
|
|
61
62
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
62
63
|
|
|
@@ -91,7 +92,9 @@ export const DateRangePickerInput = /*#__PURE__*/React.forwardRef(function DateR
|
|
|
91
92
|
lazyHandleChangeCallback([start, date], inputString);
|
|
92
93
|
};
|
|
93
94
|
|
|
94
|
-
const openRangeStartSelection =
|
|
95
|
+
const openRangeStartSelection = event => {
|
|
96
|
+
event.stopPropagation();
|
|
97
|
+
|
|
95
98
|
if (setCurrentlySelectingRangeEnd) {
|
|
96
99
|
setCurrentlySelectingRangeEnd('start');
|
|
97
100
|
}
|
|
@@ -101,7 +104,9 @@ export const DateRangePickerInput = /*#__PURE__*/React.forwardRef(function DateR
|
|
|
101
104
|
}
|
|
102
105
|
};
|
|
103
106
|
|
|
104
|
-
const openRangeEndSelection =
|
|
107
|
+
const openRangeEndSelection = event => {
|
|
108
|
+
event.stopPropagation();
|
|
109
|
+
|
|
105
110
|
if (setCurrentlySelectingRangeEnd) {
|
|
106
111
|
setCurrentlySelectingRangeEnd('end');
|
|
107
112
|
}
|
|
@@ -131,12 +136,15 @@ export const DateRangePickerInput = /*#__PURE__*/React.forwardRef(function DateR
|
|
|
131
136
|
validationError: startValidationError !== null,
|
|
132
137
|
TextFieldProps: _extends({}, TextFieldProps, {
|
|
133
138
|
inputRef: startRef,
|
|
134
|
-
focused: open
|
|
139
|
+
focused: open ? currentlySelectingRangeEnd === 'start' : undefined
|
|
140
|
+
}, !readOnly && !other.disabled && {
|
|
141
|
+
onClick: openRangeStartSelection
|
|
135
142
|
}),
|
|
136
143
|
inputProps: {
|
|
137
144
|
onClick: openRangeStartSelection,
|
|
138
145
|
onKeyDown: onSpaceOrEnter(openRangeStartSelection),
|
|
139
|
-
onFocus: focusOnRangeStart
|
|
146
|
+
onFocus: focusOnRangeStart,
|
|
147
|
+
readOnly: mobile
|
|
140
148
|
}
|
|
141
149
|
}));
|
|
142
150
|
const endInputProps = useMaskedInput(_extends({}, other, {
|
|
@@ -147,12 +155,15 @@ export const DateRangePickerInput = /*#__PURE__*/React.forwardRef(function DateR
|
|
|
147
155
|
validationError: endValidationError !== null,
|
|
148
156
|
TextFieldProps: _extends({}, TextFieldProps, {
|
|
149
157
|
inputRef: endRef,
|
|
150
|
-
focused: open
|
|
158
|
+
focused: open ? currentlySelectingRangeEnd === 'end' : undefined
|
|
159
|
+
}, !readOnly && !other.disabled && {
|
|
160
|
+
onClick: openRangeEndSelection
|
|
151
161
|
}),
|
|
152
162
|
inputProps: {
|
|
153
163
|
onClick: openRangeEndSelection,
|
|
154
164
|
onKeyDown: onSpaceOrEnter(openRangeEndSelection),
|
|
155
|
-
onFocus: focusOnRangeEnd
|
|
165
|
+
onFocus: focusOnRangeEnd,
|
|
166
|
+
readOnly: mobile
|
|
156
167
|
}
|
|
157
168
|
}));
|
|
158
169
|
return /*#__PURE__*/_jsx(DateRangePickerInputRoot, {
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BaseToolbarProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
|
|
3
3
|
import { DateRange, CurrentlySelectingRangeEndProps } from '../internal/models';
|
|
4
4
|
import { DateRangePickerToolbarClasses } from './dateRangePickerToolbarClasses';
|
|
5
|
-
export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProps<DateRange<TDate
|
|
5
|
+
export interface DateRangePickerToolbarProps<TDate> extends Omit<BaseToolbarProps<DateRange<TDate>, 'day'>, 'views' | 'view' | 'onViewChange' | 'onChange' | 'isLandscape'>, CurrentlySelectingRangeEndProps {
|
|
6
6
|
classes?: Partial<DateRangePickerToolbarClasses>;
|
|
7
7
|
}
|
|
8
8
|
export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbarProps {
|
package/LICENSE
CHANGED
|
@@ -2,11 +2,10 @@ Commercial License
|
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2020 Material-UI SAS
|
|
4
4
|
|
|
5
|
-
MUI X Pro (https://mui.com/pricing/) is commercial software.
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
MUI X Pro (https://mui.com/pricing/) is commercial software. You MUST agree to the
|
|
6
|
+
End User License Agreement (EULA: https://mui.com/r/x-license-eula) to be able to
|
|
7
|
+
use the software.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
find more details under the "Evaluation (trial) licenses" section of the EULA.
|
|
9
|
+
This means that you either need to purchase a commercial license at
|
|
10
|
+
https://mui.com/r/x-get-license?scope=pro or be eligible for the Evaluation (trial)
|
|
11
|
+
licenses detailed at https://mui.com/r/x-license-trial.
|