@mui/x-data-grid-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/CHANGELOG.md +359 -21
- package/DataGridPro/DataGridPro.js +8 -8
- package/DataGridPro/useDataGridProComponent.d.ts +2 -2
- package/LICENSE +6 -7
- package/components/DataGridProColumnHeaders.js +1 -1
- package/components/DataGridProVirtualScroller.js +1 -1
- package/components/GridColumnPinningMenuItems.d.ts +4 -4
- package/components/GridColumnPinningMenuItems.js +2 -2
- package/components/GridDetailPanel.d.ts +1 -1
- package/components/GridDetailPanel.js +2 -2
- package/components/GridDetailPanelToggleCell.d.ts +4 -4
- package/components/GridDetailPanelToggleCell.js +3 -3
- package/components/GridRowReorderCell.d.ts +1 -1
- package/components/GridRowReorderCell.js +3 -3
- package/components/GridTreeDataGroupingCell.d.ts +4 -4
- package/components/GridTreeDataGroupingCell.js +3 -3
- package/hooks/features/columnPinning/useGridColumnPinning.d.ts +2 -2
- package/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
- package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +8 -8
- package/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/hooks/features/detailPanel/useGridDetailPanel.d.ts +2 -2
- package/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/hooks/features/rowPinning/useGridRowPinning.d.ts +2 -2
- package/hooks/features/rowPinning/useGridRowPinning.js +1 -1
- package/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +3 -3
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +3 -3
- package/hooks/utils/useGridPrivateApiContext.d.ts +3 -0
- package/hooks/utils/useGridPrivateApiContext.js +2 -0
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGridPro.js +8 -8
- package/legacy/components/DataGridProColumnHeaders.js +1 -1
- package/legacy/components/DataGridProVirtualScroller.js +1 -1
- package/legacy/components/GridColumnPinningMenuItems.js +2 -2
- package/legacy/components/GridDetailPanel.js +2 -2
- package/legacy/components/GridDetailPanelToggleCell.js +3 -3
- package/legacy/components/GridRowReorderCell.js +3 -3
- package/legacy/components/GridTreeDataGroupingCell.js +3 -3
- package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +4 -4
- package/legacy/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +8 -8
- package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/legacy/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/legacy/hooks/features/rowPinning/useGridRowPinning.js +1 -1
- package/legacy/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/legacy/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +3 -3
- package/legacy/hooks/features/treeData/useGridTreeDataPreProcessors.js +3 -3
- package/legacy/hooks/utils/useGridPrivateApiContext.js +2 -0
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/models/gridApiPro.d.ts +5 -2
- package/modern/DataGridPro/DataGridPro.js +8 -8
- package/modern/components/DataGridProColumnHeaders.js +1 -1
- package/modern/components/DataGridProVirtualScroller.js +1 -1
- package/modern/components/GridColumnPinningMenuItems.js +2 -2
- package/modern/components/GridDetailPanel.js +2 -2
- package/modern/components/GridDetailPanelToggleCell.js +3 -3
- package/modern/components/GridRowReorderCell.js +3 -3
- package/modern/components/GridTreeDataGroupingCell.js +3 -3
- package/modern/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
- package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +8 -8
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/modern/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/modern/hooks/features/rowPinning/useGridRowPinning.js +1 -1
- package/modern/hooks/features/rowReorder/useGridRowReorder.js +1 -1
- package/modern/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +3 -3
- package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +3 -3
- package/modern/hooks/utils/useGridPrivateApiContext.js +2 -0
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGridPro.js +8 -8
- package/node/components/DataGridProColumnHeaders.js +4 -4
- package/node/components/DataGridProVirtualScroller.js +2 -2
- package/node/components/GridColumnPinningMenuItems.js +3 -4
- package/node/components/GridDetailPanel.js +3 -5
- package/node/components/GridDetailPanelToggleCell.js +5 -6
- package/node/components/GridRowReorderCell.js +6 -7
- package/node/components/GridTreeDataGroupingCell.js +5 -6
- package/node/hooks/features/columnPinning/useGridColumnPinning.js +7 -5
- package/node/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +8 -8
- package/node/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
- package/node/hooks/features/detailPanel/useGridDetailPanel.js +2 -2
- package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +2 -2
- package/node/hooks/features/rowPinning/useGridRowPinning.js +1 -1
- package/node/hooks/features/rowReorder/useGridRowReorder.js +2 -2
- package/node/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +4 -4
- package/node/hooks/features/treeData/useGridTreeDataPreProcessors.js +3 -3
- package/node/hooks/utils/useGridPrivateApiContext.js +11 -0
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
- package/utils/releaseInfo.js +1 -1
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
|
|
|
@@ -13,10 +13,10 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
const releaseInfo = getReleaseInfo();
|
|
14
14
|
const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps, ref) {
|
|
15
15
|
const props = useDataGridProProps(inProps);
|
|
16
|
-
const
|
|
16
|
+
const privateApiRef = useDataGridProComponent(props.apiRef, props);
|
|
17
17
|
useLicenseVerifier('x-data-grid-pro', releaseInfo);
|
|
18
18
|
return /*#__PURE__*/_jsx(GridContextProvider, {
|
|
19
|
-
|
|
19
|
+
privateApiRef: privateApiRef,
|
|
20
20
|
props: props,
|
|
21
21
|
children: /*#__PURE__*/_jsx(GridRoot, {
|
|
22
22
|
className: props.className,
|
|
@@ -218,12 +218,6 @@ DataGridProRaw.propTypes = {
|
|
|
218
218
|
*/
|
|
219
219
|
disableExtendRowFullWidth: PropTypes.bool,
|
|
220
220
|
|
|
221
|
-
/**
|
|
222
|
-
* If `true`, modification to a cell will not be discarded if the mode is changed from "edit" to "view" while processing props.
|
|
223
|
-
* @default false
|
|
224
|
-
*/
|
|
225
|
-
disableIgnoreModificationsIfProcessingProps: PropTypes.bool,
|
|
226
|
-
|
|
227
221
|
/**
|
|
228
222
|
* If `true`, filtering with multiple columns is disabled.
|
|
229
223
|
* @default false
|
|
@@ -894,6 +888,12 @@ DataGridProRaw.propTypes = {
|
|
|
894
888
|
*/
|
|
895
889
|
rows: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
896
890
|
|
|
891
|
+
/**
|
|
892
|
+
* If `false`, the row selection mode is disabled.
|
|
893
|
+
* @default true
|
|
894
|
+
*/
|
|
895
|
+
rowSelection: PropTypes.bool,
|
|
896
|
+
|
|
897
897
|
/**
|
|
898
898
|
* Sets the row selection model of the grid.
|
|
899
899
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GridApiPro } from '../models/gridApiPro';
|
|
2
|
+
import { GridApiPro, GridPrivateApiPro } from '../models/gridApiPro';
|
|
3
3
|
import { DataGridProProcessedProps } from '../models/dataGridProProps';
|
|
4
|
-
export declare const useDataGridProComponent: (inputApiRef: React.MutableRefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.MutableRefObject<
|
|
4
|
+
export declare const useDataGridProComponent: (inputApiRef: React.MutableRefObject<GridApiPro> | undefined, props: DataGridProProcessedProps) => React.MutableRefObject<GridPrivateApiPro>;
|
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.
|
|
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["style", "className", "innerRef"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
5
|
+
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
6
6
|
import { styled, alpha } from '@mui/material/styles';
|
|
7
7
|
import { useEventCallback } from '@mui/material/utils';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses, useGridSelector, useGridApiEventHandler, gridVisibleColumnFieldsSelector, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
const _excluded = ["className", "disableVirtualization"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { styled, alpha } from '@mui/material/styles';
|
|
6
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
6
|
+
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
7
7
|
import { useGridSelector, getDataGridUtilityClass, gridClasses, gridVisibleColumnFieldsSelector, gridRowsMetaSelector, useGridApiEventHandler, GridOverlays } from '@mui/x-data-grid';
|
|
8
8
|
import { GridVirtualScroller, GridVirtualScrollerContent, GridVirtualScrollerRenderZone, useGridVirtualScroller, calculatePinnedRowsHeight } from '@mui/x-data-grid/internals';
|
|
9
9
|
import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
@@ -4,8 +4,8 @@ interface GridColumnPinningMenuItemsProps {
|
|
|
4
4
|
column?: GridColDef;
|
|
5
5
|
onClick?: (event: React.MouseEvent<any>) => void;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
propTypes: any;
|
|
10
|
-
}
|
|
7
|
+
declare function GridColumnPinningMenuItems(props: GridColumnPinningMenuItemsProps): JSX.Element | null;
|
|
8
|
+
declare namespace GridColumnPinningMenuItems {
|
|
9
|
+
var propTypes: any;
|
|
10
|
+
}
|
|
11
11
|
export { GridColumnPinningMenuItems };
|
|
@@ -6,7 +6,7 @@ import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
function GridColumnPinningMenuItems(props) {
|
|
10
10
|
const {
|
|
11
11
|
column,
|
|
12
12
|
onClick
|
|
@@ -58,7 +58,7 @@ const GridColumnPinningMenuItems = props => {
|
|
|
58
58
|
children: apiRef.current.getLocaleText('pinToRight')
|
|
59
59
|
})]
|
|
60
60
|
});
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
62
|
|
|
63
63
|
process.env.NODE_ENV !== "production" ? GridColumnPinningMenuItems.propTypes = {
|
|
64
64
|
// ----------------------------- Warning --------------------------------
|
|
@@ -15,5 +15,5 @@ interface GridDetailPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
15
15
|
*/
|
|
16
16
|
rowId: GridRowId;
|
|
17
17
|
}
|
|
18
|
-
declare
|
|
18
|
+
declare function GridDetailPanel(props: GridDetailPanelProps): JSX.Element;
|
|
19
19
|
export { GridDetailPanel };
|
|
@@ -20,7 +20,7 @@ const DetailPanel = styled(Box, {
|
|
|
20
20
|
overflow: 'auto'
|
|
21
21
|
}));
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function GridDetailPanel(props) {
|
|
24
24
|
const {
|
|
25
25
|
rowId,
|
|
26
26
|
height,
|
|
@@ -60,6 +60,6 @@ const GridDetailPanel = props => {
|
|
|
60
60
|
ref: ref,
|
|
61
61
|
style: style
|
|
62
62
|
}, other));
|
|
63
|
-
}
|
|
63
|
+
}
|
|
64
64
|
|
|
65
65
|
export { GridDetailPanel };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridRenderCellParams } from '@mui/x-data-grid';
|
|
3
|
-
declare
|
|
4
|
-
|
|
5
|
-
propTypes: any;
|
|
6
|
-
}
|
|
3
|
+
declare function GridDetailPanelToggleCell(props: GridRenderCellParams): JSX.Element;
|
|
4
|
+
declare namespace GridDetailPanelToggleCell {
|
|
5
|
+
var propTypes: any;
|
|
6
|
+
}
|
|
7
7
|
export { GridDetailPanelToggleCell };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
3
|
+
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
4
4
|
import IconButton from '@mui/material/IconButton';
|
|
5
5
|
import { getDataGridUtilityClass, useGridSelector } from '@mui/x-data-grid';
|
|
6
6
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
@@ -19,7 +19,7 @@ const useUtilityClasses = ownerState => {
|
|
|
19
19
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
function GridDetailPanelToggleCell(props) {
|
|
23
23
|
const {
|
|
24
24
|
id,
|
|
25
25
|
value: isExpanded
|
|
@@ -44,7 +44,7 @@ const GridDetailPanelToggleCell = props => {
|
|
|
44
44
|
fontSize: "inherit"
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
|
|
49
49
|
process.env.NODE_ENV !== "production" ? GridDetailPanelToggleCell.propTypes = {
|
|
50
50
|
// ----------------------------- Warning --------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { GridRenderCellParams } from '@mui/x-data-grid';
|
|
3
|
-
declare
|
|
3
|
+
declare function GridRowReorderCell(params: GridRenderCellParams): JSX.Element | null;
|
|
4
4
|
export { GridRowReorderCell };
|
|
5
5
|
export declare const renderRowReorderCell: (params: GridRenderCellParams) => JSX.Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { unstable_composeClasses as composeClasses } from '@mui/
|
|
3
|
+
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
4
4
|
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass, gridEditRowsStateSelector } from '@mui/x-data-grid';
|
|
5
5
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -18,7 +18,7 @@ const useUtilityClasses = ownerState => {
|
|
|
18
18
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
function GridRowReorderCell(params) {
|
|
22
22
|
const apiRef = useGridApiContext();
|
|
23
23
|
const rootProps = useGridRootProps();
|
|
24
24
|
const sortModel = useGridSelector(apiRef, gridSortModelSelector);
|
|
@@ -71,7 +71,7 @@ const GridRowReorderCell = params => {
|
|
|
71
71
|
children: cellValue
|
|
72
72
|
})]
|
|
73
73
|
}));
|
|
74
|
-
}
|
|
74
|
+
}
|
|
75
75
|
|
|
76
76
|
export { GridRowReorderCell };
|
|
77
77
|
export const renderRowReorderCell = params => {
|