@mui/x-data-grid 7.0.0-beta.0 → 7.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +406 -1
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/DataGrid.js +1 -1
- package/DataGrid/useDataGridComponent.js +1 -1
- package/DataGrid/useDataGridProps.js +3 -1
- package/colDef/gridBooleanColDef.js +3 -6
- package/colDef/gridCheckboxSelectionColDef.js +4 -3
- package/colDef/gridDateColDef.d.ts +3 -4
- package/colDef/gridDateColDef.js +10 -16
- package/colDef/gridNumericColDef.js +1 -3
- package/colDef/gridSingleSelectColDef.js +7 -12
- package/components/GridPagination.d.ts +1 -1
- package/components/GridPagination.js +12 -2
- package/components/GridRow.js +7 -5
- package/components/GridScrollbarFillerCell.js +0 -3
- package/components/base/GridFooterPlaceholder.js +1 -1
- package/components/cell/GridActionsCell.js +3 -3
- package/components/cell/GridActionsCellItem.d.ts +13 -1
- package/components/cell/GridActionsCellItem.js +27 -15
- package/components/cell/GridEditInputCell.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.d.ts +7 -0
- package/components/columnsManagement/GridColumnsManagement.js +26 -21
- package/components/columnsManagement/utils.d.ts +1 -1
- package/components/containers/GridRootStyles.js +10 -2
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/constants/gridClasses.d.ts +5 -0
- package/constants/gridClasses.js +1 -1
- package/hooks/features/columns/useGridColumnSpanning.js +3 -1
- package/hooks/features/editing/useGridCellEditing.js +2 -5
- package/hooks/features/editing/useGridRowEditing.js +2 -5
- package/hooks/features/filter/gridFilterUtils.js +1 -1
- package/hooks/features/rows/gridRowsUtils.js +1 -1
- package/hooks/features/rows/useGridParamsApi.d.ts +1 -2
- package/hooks/features/rows/useGridParamsApi.js +14 -49
- package/hooks/features/rows/useGridRows.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +0 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +9 -10
- package/index.js +1 -1
- package/internals/utils/propValidation.js +1 -1
- package/joy/joySlots.js +2 -2
- package/legacy/DataGrid/DataGrid.js +1 -1
- package/legacy/DataGrid/useDataGridComponent.js +1 -1
- package/legacy/DataGrid/useDataGridProps.js +3 -1
- package/legacy/colDef/gridBooleanColDef.js +3 -5
- package/legacy/colDef/gridCheckboxSelectionColDef.js +4 -3
- package/legacy/colDef/gridDateColDef.js +10 -14
- package/legacy/colDef/gridNumericColDef.js +1 -2
- package/legacy/colDef/gridSingleSelectColDef.js +7 -10
- package/legacy/components/GridPagination.js +10 -2
- package/legacy/components/GridRow.js +7 -5
- package/legacy/components/GridScrollbarFillerCell.js +1 -3
- package/legacy/components/base/GridFooterPlaceholder.js +1 -1
- package/legacy/components/cell/GridActionsCell.js +3 -3
- package/legacy/components/cell/GridActionsCellItem.js +30 -17
- package/legacy/components/cell/GridEditInputCell.js +1 -1
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/legacy/components/columnsManagement/GridColumnsManagement.js +38 -31
- package/legacy/components/containers/GridRootStyles.js +9 -3
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +3 -1
- package/legacy/hooks/features/editing/useGridCellEditing.js +2 -5
- package/legacy/hooks/features/editing/useGridRowEditing.js +2 -5
- package/legacy/hooks/features/filter/gridFilterUtils.js +2 -2
- package/legacy/hooks/features/rows/gridRowsUtils.js +1 -1
- package/legacy/hooks/features/rows/useGridParamsApi.js +14 -47
- package/legacy/hooks/features/rows/useGridRows.js +2 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +9 -10
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/propValidation.js +1 -1
- package/legacy/joy/joySlots.js +2 -2
- package/legacy/locales/daDK.js +12 -12
- package/legacy/locales/heIL.js +7 -8
- package/locales/daDK.js +12 -12
- package/locales/heIL.js +7 -8
- package/models/api/gridApiCommon.d.ts +1 -1
- package/models/api/gridFilterApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +3 -3
- package/models/colDef/gridColDef.d.ts +11 -17
- package/models/colDef/index.d.ts +1 -1
- package/models/events/gridEventLookup.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +34 -36
- package/models/gridSlotsComponentsProps.d.ts +73 -54
- package/models/params/gridCellParams.d.ts +0 -26
- package/models/props/DataGridProps.d.ts +2 -2
- package/modern/DataGrid/DataGrid.js +1 -1
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/DataGrid/useDataGridProps.js +3 -1
- package/modern/colDef/gridBooleanColDef.js +3 -6
- package/modern/colDef/gridCheckboxSelectionColDef.js +4 -3
- package/modern/colDef/gridDateColDef.js +10 -16
- package/modern/colDef/gridNumericColDef.js +1 -3
- package/modern/colDef/gridSingleSelectColDef.js +7 -12
- package/modern/components/GridPagination.js +12 -2
- package/modern/components/GridRow.js +6 -5
- package/modern/components/GridScrollbarFillerCell.js +0 -3
- package/modern/components/base/GridFooterPlaceholder.js +1 -1
- package/modern/components/cell/GridActionsCell.js +3 -3
- package/modern/components/cell/GridActionsCellItem.js +27 -15
- package/modern/components/cell/GridEditInputCell.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/modern/components/columnsManagement/GridColumnsManagement.js +26 -21
- package/modern/components/containers/GridRootStyles.js +10 -2
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +3 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +2 -5
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -5
- package/modern/hooks/features/filter/gridFilterUtils.js +1 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +1 -1
- package/modern/hooks/features/rows/useGridParamsApi.js +14 -47
- package/modern/hooks/features/rows/useGridRows.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +9 -10
- package/modern/index.js +1 -1
- package/modern/internals/utils/propValidation.js +1 -1
- package/modern/joy/joySlots.js +2 -2
- package/modern/locales/daDK.js +12 -12
- package/modern/locales/heIL.js +7 -8
- package/node/DataGrid/DataGrid.js +1 -1
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/DataGrid/useDataGridProps.js +3 -1
- package/node/colDef/gridBooleanColDef.js +3 -6
- package/node/colDef/gridCheckboxSelectionColDef.js +4 -3
- package/node/colDef/gridDateColDef.js +13 -19
- package/node/colDef/gridNumericColDef.js +1 -3
- package/node/colDef/gridSingleSelectColDef.js +7 -12
- package/node/components/GridPagination.js +12 -2
- package/node/components/GridRow.js +6 -5
- package/node/components/GridScrollbarFillerCell.js +0 -3
- package/node/components/base/GridFooterPlaceholder.js +1 -1
- package/node/components/cell/GridActionsCell.js +3 -3
- package/node/components/cell/GridActionsCellItem.js +27 -15
- package/node/components/cell/GridEditInputCell.js +1 -1
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/node/components/columnsManagement/GridColumnsManagement.js +26 -21
- package/node/components/containers/GridRootStyles.js +10 -2
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/node/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/features/columns/useGridColumnSpanning.js +3 -1
- package/node/hooks/features/editing/useGridCellEditing.js +2 -5
- package/node/hooks/features/editing/useGridRowEditing.js +2 -5
- package/node/hooks/features/filter/gridFilterUtils.js +1 -1
- package/node/hooks/features/rows/gridRowsUtils.js +2 -2
- package/node/hooks/features/rows/useGridParamsApi.js +14 -47
- package/node/hooks/features/rows/useGridRows.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +9 -10
- package/node/index.js +1 -1
- package/node/internals/utils/propValidation.js +1 -1
- package/node/joy/joySlots.js +2 -2
- package/node/locales/daDK.js +12 -12
- package/node/locales/heIL.js +7 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,271 @@
|
|
|
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
|
+
## v7.0.0-beta.2
|
|
7
|
+
|
|
8
|
+
_Feb 9, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
|
|
13
|
+
- 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
|
|
14
|
+
- 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v7.0.0-beta.2`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
|
+
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
24
|
+
- [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
|
|
25
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
|
|
26
|
+
- [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
|
|
27
|
+
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
|
+
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
|
+
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
|
+
|
|
41
|
+
### Date Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@v7.0.0-beta.2`
|
|
44
|
+
|
|
45
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
|
+
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
51
|
+
|
|
52
|
+
### Charts / `@mui/x-charts@v7.0.0-beta.2`
|
|
53
|
+
|
|
54
|
+
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
|
+
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
|
+
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
|
+
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
62
|
+
|
|
63
|
+
### License
|
|
64
|
+
|
|
65
|
+
#### Breaking changes
|
|
66
|
+
|
|
67
|
+
- If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
-import { LicenseInfo } from '@mui/x-license-pro';
|
|
71
|
+
+import { LicenseInfo } from '@mui/x-license';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`@mui/x-license@v7.0.0-beta.2`
|
|
75
|
+
|
|
76
|
+
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
|
|
81
|
+
- [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
|
|
82
|
+
- [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
|
|
83
|
+
- [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
|
|
84
|
+
- [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
|
|
85
|
+
- [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
|
|
86
|
+
- [docs] Avoid use of shorthand (#12000) @oliviertassinari
|
|
87
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
88
|
+
- [docs] Fix image size and dark mode @oliviertassinari
|
|
89
|
+
- [docs] Follow blank line convention with use client @oliviertassinari
|
|
90
|
+
- [docs] Stable layout between light and dark mode @oliviertassinari
|
|
91
|
+
|
|
92
|
+
### Core
|
|
93
|
+
|
|
94
|
+
- [core] Add `docs:serve` script (#11935) @cherniavskii
|
|
95
|
+
- [core] Bump monorepo (#12001) @cherniavskii
|
|
96
|
+
- [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
|
|
97
|
+
- [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
|
|
98
|
+
- [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
|
|
99
|
+
- [core] Flatten grid packages folder (#11946) @cherniavskii
|
|
100
|
+
- [core] Improve license info deprecation message (#11974) @cherniavskii
|
|
101
|
+
- [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
|
|
102
|
+
- [core] Move next config to ESM (#11882) @Janpot
|
|
103
|
+
- [core] Add auto-message on closed issues (#11805) @michelengelen
|
|
104
|
+
- [core] Simplify bug reproduction (#11849) @oliviertassinari
|
|
105
|
+
- [core] Fix npm reference @oliviertassinari
|
|
106
|
+
- [core] Normalize issue template @oliviertassinari
|
|
107
|
+
|
|
108
|
+
## 7.0.0-beta.1
|
|
109
|
+
|
|
110
|
+
_Feb 1, 2024_
|
|
111
|
+
|
|
112
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
113
|
+
|
|
114
|
+
- 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
|
|
115
|
+
- 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
|
|
116
|
+
- 🚀 All charts have click handlers (#11411) @alexfauquette
|
|
117
|
+
Test their respective documentation demonstrations to know more about the data format:
|
|
118
|
+
|
|
119
|
+
- [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
|
|
120
|
+
- [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
|
|
121
|
+
- [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
|
|
122
|
+
- [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
|
|
123
|
+
|
|
124
|
+
Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
### Breaking changes
|
|
129
|
+
|
|
130
|
+
- The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
|
|
131
|
+
|
|
132
|
+
```diff
|
|
133
|
+
- valueGetter: ({ value, row }) => value,
|
|
134
|
+
+ valueGetter: (value, row, column, apiRef) => value,
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The `GridValueGetterParams` interface has been removed:
|
|
138
|
+
|
|
139
|
+
```diff
|
|
140
|
+
- const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
|
|
141
|
+
+ const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
|
|
145
|
+
|
|
146
|
+
```diff
|
|
147
|
+
- valueFormatter: ({ value }) => value,
|
|
148
|
+
+ valueFormatter: (value, row, column, apiRef) => value,
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The `GridValueFormatterParams` interface has been removed:
|
|
152
|
+
|
|
153
|
+
```diff
|
|
154
|
+
- const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
|
|
155
|
+
+ const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
|
|
159
|
+
|
|
160
|
+
```diff
|
|
161
|
+
- valueSetter: (params) => {
|
|
162
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
163
|
+
- return { ...params.row, firstName, lastName };
|
|
164
|
+
- }
|
|
165
|
+
+ valueSetter: (value, row) => {
|
|
166
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
167
|
+
+ return { ...row, firstName, lastName };
|
|
168
|
+
+}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The `GridValueSetterParams` interface has been removed:
|
|
172
|
+
|
|
173
|
+
```diff
|
|
174
|
+
- const setFullName = (params: GridValueSetterParams) => {
|
|
175
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
176
|
+
- return { ...params.row, firstName, lastName };
|
|
177
|
+
- };
|
|
178
|
+
+ const setFullName: GridValueSetter<Row> = (value, row) => {
|
|
179
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
180
|
+
+ return { ...row, firstName, lastName };
|
|
181
|
+
+ }
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
- The signature of `GridColDef['valueParser']` has been changed for performance reasons:
|
|
185
|
+
|
|
186
|
+
```diff
|
|
187
|
+
- valueParser: (value, params: GridCellParams) => value.toLowerCase(),
|
|
188
|
+
+ valueParser: (value, row, column, apiRef) => value.toLowerCase(),
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- The signature of `GridColDef['colSpan']` has been changed for performance reasons:
|
|
192
|
+
|
|
193
|
+
```diff
|
|
194
|
+
- colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
|
|
195
|
+
+ colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
|
|
199
|
+
|
|
200
|
+
```diff
|
|
201
|
+
- pastedValueParser: (value, params) => new Date(value),
|
|
202
|
+
+ pastedValueParser: (value, row, column, apiRef) => new Date(value),
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
|
|
206
|
+
|
|
207
|
+
```diff
|
|
208
|
+
- groupingValueGetter: (params) => params.value.name,
|
|
209
|
+
+ groupingValueGetter: (value: { name: string }) => value.name,
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### `@mui/x-data-grid@7.0.0-beta.1`
|
|
213
|
+
|
|
214
|
+
- [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
|
|
215
|
+
- [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
|
|
216
|
+
- [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
|
|
217
|
+
- [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
|
|
218
|
+
- [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
221
|
+
|
|
222
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
|
|
227
|
+
|
|
228
|
+
### Date Pickers
|
|
229
|
+
|
|
230
|
+
#### `@mui/x-date-pickers@7.0.0-beta.1`
|
|
231
|
+
|
|
232
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
|
|
233
|
+
|
|
234
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
235
|
+
|
|
236
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
237
|
+
|
|
238
|
+
### Charts
|
|
239
|
+
|
|
240
|
+
#### Breaking changes
|
|
241
|
+
|
|
242
|
+
- The line chart now have animation by default.
|
|
243
|
+
You can disable it with `skipAnimation` prop.
|
|
244
|
+
See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
|
|
245
|
+
|
|
246
|
+
- Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
|
|
247
|
+
|
|
248
|
+
`@mui/x-charts@7.0.0-beta.1`
|
|
249
|
+
|
|
250
|
+
- [charts] Add `onClick` support (#11411) @alexfauquette
|
|
251
|
+
- [charts] Add line animation (#11620) @alexfauquette
|
|
252
|
+
- [charts] Document how to modify color according to values (#11824) @alexfauquette
|
|
253
|
+
- [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
|
|
254
|
+
|
|
255
|
+
### Docs
|
|
256
|
+
|
|
257
|
+
- [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
|
|
258
|
+
- [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
|
|
259
|
+
- [docs] Fix charts API links (#11832) @alexfauquette
|
|
260
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
261
|
+
- [docs] Improve column visibility documentation (#11857) @MBilalShafi
|
|
262
|
+
- [docs] Polish header @oliviertassinari
|
|
263
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
264
|
+
- [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
|
|
265
|
+
|
|
266
|
+
### Core
|
|
267
|
+
|
|
268
|
+
- [core] Rely on immutable ref when possible (#11847) @oliviertassinari
|
|
269
|
+
- [core] Bump monorepo (#11897) @alexfauquette
|
|
270
|
+
|
|
6
271
|
## 7.0.0-beta.0
|
|
7
272
|
|
|
8
273
|
_Jan 26, 2024_
|
|
@@ -1873,6 +2138,146 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1873
2138
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1874
2139
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1875
2140
|
|
|
2141
|
+
## v6.19.4
|
|
2142
|
+
|
|
2143
|
+
_Feb 9, 2024_
|
|
2144
|
+
|
|
2145
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
2146
|
+
|
|
2147
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
|
|
2148
|
+
- 🐞 Bugfixes
|
|
2149
|
+
- 📚 Documentation improvements
|
|
2150
|
+
|
|
2151
|
+
### Data Grid
|
|
2152
|
+
|
|
2153
|
+
#### `@mui/x-data-grid@v6.19.4`
|
|
2154
|
+
|
|
2155
|
+
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2156
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
2157
|
+
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
|
|
2158
|
+
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2159
|
+
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2160
|
+
|
|
2161
|
+
#### `@mui/x-data-grid-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2162
|
+
|
|
2163
|
+
Same changes as in `@mui/x-data-grid@v6.19.4`.
|
|
2164
|
+
|
|
2165
|
+
#### `@mui/x-data-grid-premium@v6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2166
|
+
|
|
2167
|
+
Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
|
|
2168
|
+
|
|
2169
|
+
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2170
|
+
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2171
|
+
|
|
2172
|
+
### Date Pickers
|
|
2173
|
+
|
|
2174
|
+
#### `@mui/x-date-pickers@v6.19.4`
|
|
2175
|
+
|
|
2176
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2177
|
+
|
|
2178
|
+
#### `@mui/x-date-pickers-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2179
|
+
|
|
2180
|
+
Same changes as in `@mui/x-date-pickers@v6.19.4`.
|
|
2181
|
+
|
|
2182
|
+
### Charts / `@mui/x-charts@v6.19.4`
|
|
2183
|
+
|
|
2184
|
+
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2185
|
+
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
2186
|
+
- [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
|
|
2187
|
+
|
|
2188
|
+
### Docs
|
|
2189
|
+
|
|
2190
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
|
|
2191
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
2192
|
+
- [docs] Fix API links (#11930) @alexfauquette
|
|
2193
|
+
- [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
|
|
2194
|
+
- [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
|
|
2195
|
+
- [code] Simplify bug reproduction (#11932) @alexfauquette
|
|
2196
|
+
|
|
2197
|
+
## 6.19.3
|
|
2198
|
+
|
|
2199
|
+
_Feb 1, 2024_
|
|
2200
|
+
|
|
2201
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2202
|
+
|
|
2203
|
+
- 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
|
|
2204
|
+
- 🐞 Bugfixes
|
|
2205
|
+
- 📚 Documentation improvements
|
|
2206
|
+
|
|
2207
|
+
### Data Grid
|
|
2208
|
+
|
|
2209
|
+
#### `@mui/x-data-grid@6.19.3`
|
|
2210
|
+
|
|
2211
|
+
- [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
|
|
2212
|
+
|
|
2213
|
+
#### `@mui/x-data-grid-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2214
|
+
|
|
2215
|
+
Same changes as in `@mui/x-data-grid@6.19.3`.
|
|
2216
|
+
|
|
2217
|
+
#### `@mui/x-data-grid-premium@6.19.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2218
|
+
|
|
2219
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.3`.
|
|
2220
|
+
|
|
2221
|
+
### Date Pickers
|
|
2222
|
+
|
|
2223
|
+
#### `@mui/x-date-pickers@6.19.3`
|
|
2224
|
+
|
|
2225
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
|
|
2226
|
+
|
|
2227
|
+
#### `@mui/x-date-pickers-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2228
|
+
|
|
2229
|
+
Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
2230
|
+
|
|
2231
|
+
### Charts / `@mui/x-charts@6.19.3`
|
|
2232
|
+
|
|
2233
|
+
- [charts] Document how to modify color according to values (#11854) @alexfauquette
|
|
2234
|
+
|
|
2235
|
+
### Docs
|
|
2236
|
+
|
|
2237
|
+
- [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
|
|
2238
|
+
- [docs] Fix 404 (#11852) @alexfauquette
|
|
2239
|
+
- [docs] Fix <title> generation (#11825) @alexfauquette
|
|
2240
|
+
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2241
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2242
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
2243
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2244
|
+
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2245
|
+
|
|
2246
|
+
## 6.19.2
|
|
2247
|
+
|
|
2248
|
+
_Jan 25, 2024_
|
|
2249
|
+
|
|
2250
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
2251
|
+
|
|
2252
|
+
- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2253
|
+
- 🐞 Bugfixes
|
|
2254
|
+
|
|
2255
|
+
### Date Pickers
|
|
2256
|
+
|
|
2257
|
+
#### `@mui/x-date-pickers@6.19.2`
|
|
2258
|
+
|
|
2259
|
+
- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2260
|
+
|
|
2261
|
+
#### `@mui/x-date-pickers-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2262
|
+
|
|
2263
|
+
Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
|
|
2264
|
+
|
|
2265
|
+
- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
|
|
2266
|
+
|
|
2267
|
+
### Data Grid
|
|
2268
|
+
|
|
2269
|
+
#### `@mui/x-data-grid@6.19.2`
|
|
2270
|
+
|
|
2271
|
+
- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
|
|
2272
|
+
|
|
2273
|
+
#### `@mui/x-data-grid-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2274
|
+
|
|
2275
|
+
Same changes as in `@mui/x-data-grid@6.19.2`.
|
|
2276
|
+
|
|
2277
|
+
#### `@mui/x-data-grid-premium@6.19.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2278
|
+
|
|
2279
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.2`.
|
|
2280
|
+
|
|
1876
2281
|
## 6.19.1
|
|
1877
2282
|
|
|
1878
2283
|
_Jan 19, 2024_
|
|
@@ -6876,7 +7281,7 @@ You can find more information about the new api, including how to set those tran
|
|
|
6876
7281
|
- [core] Add link to the security page on the `README` (#6073) @oliviertassinari
|
|
6877
7282
|
- [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
|
|
6878
7283
|
- [core] Remove the Storybook (#6099) @flaviendelangle
|
|
6879
|
-
- [core] Tag release as `next` in
|
|
7284
|
+
- [core] Tag release as `next` in npm (#6256) @m4theushw
|
|
6880
7285
|
- [core] Update monorepo (#6180) @flaviendelangle
|
|
6881
7286
|
- [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
|
|
6882
7287
|
- [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
|
package/DataGrid/DataGrid.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataGridProps } from '../models/props/DataGridProps';
|
|
3
3
|
import { GridValidRowModel } from '../models/gridRows';
|
|
4
|
+
export type { GridSlotsComponent as GridSlots } from '../models';
|
|
4
5
|
interface DataGridComponent {
|
|
5
6
|
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
6
7
|
propTypes?: any;
|
|
@@ -13,4 +14,3 @@ interface DataGridComponent {
|
|
|
13
14
|
* - [DataGrid API](https://mui.com/x/api/data-grid/data-grid/)
|
|
14
15
|
*/
|
|
15
16
|
export declare const DataGrid: DataGridComponent;
|
|
16
|
-
export {};
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -305,7 +305,7 @@ DataGridRaw.propTypes = {
|
|
|
305
305
|
loading: PropTypes.bool,
|
|
306
306
|
/**
|
|
307
307
|
* Set the locale text of the Data Grid.
|
|
308
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/
|
|
308
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
309
309
|
*/
|
|
310
310
|
localeText: PropTypes.object,
|
|
311
311
|
/**
|
|
@@ -57,7 +57,7 @@ export const useDataGridComponent = (inputApiRef, props) => {
|
|
|
57
57
|
useGridRowSelection(apiRef, props);
|
|
58
58
|
useGridColumns(apiRef, props);
|
|
59
59
|
useGridRows(apiRef, props);
|
|
60
|
-
useGridParamsApi(apiRef
|
|
60
|
+
useGridParamsApi(apiRef);
|
|
61
61
|
useGridColumnSpanning(apiRef);
|
|
62
62
|
useGridColumnGrouping(apiRef, props);
|
|
63
63
|
useGridEditing(apiRef, props);
|
|
@@ -74,7 +74,9 @@ export const DATA_GRID_PROPS_DEFAULT_VALUES = {
|
|
|
74
74
|
};
|
|
75
75
|
const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
76
76
|
export const useDataGridProps = inProps => {
|
|
77
|
-
const themedProps = useProps(
|
|
77
|
+
const themedProps = useProps(
|
|
78
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
79
|
+
useThemeProps({
|
|
78
80
|
props: inProps,
|
|
79
81
|
name: 'MuiDataGrid'
|
|
80
82
|
}));
|
|
@@ -4,12 +4,9 @@ import { renderBooleanCell } from '../components/cell/GridBooleanCell';
|
|
|
4
4
|
import { renderEditBooleanCell } from '../components/cell/GridEditBooleanCell';
|
|
5
5
|
import { gridNumberComparator } from '../hooks/features/sorting/gridSortingUtils';
|
|
6
6
|
import { getGridBooleanOperators } from './gridBooleanOperators';
|
|
7
|
-
|
|
8
|
-
value
|
|
9
|
-
|
|
10
|
-
}) {
|
|
11
|
-
return value ? api.getLocaleText('booleanCellTrueLabel') : api.getLocaleText('booleanCellFalseLabel');
|
|
12
|
-
}
|
|
7
|
+
const gridBooleanFormatter = (value, row, column, apiRef) => {
|
|
8
|
+
return value ? apiRef.current.getLocaleText('booleanCellTrueLabel') : apiRef.current.getLocaleText('booleanCellFalseLabel');
|
|
9
|
+
};
|
|
13
10
|
const stringToBoolean = value => {
|
|
14
11
|
switch (value.toLowerCase().trim()) {
|
|
15
12
|
case 'true':
|
|
@@ -19,9 +19,10 @@ export const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF
|
|
|
19
19
|
disableReorder: true,
|
|
20
20
|
disableExport: true,
|
|
21
21
|
getApplyQuickFilterFn: undefined,
|
|
22
|
-
valueGetter:
|
|
23
|
-
const selectionLookup = selectedIdsLookupSelector(
|
|
24
|
-
|
|
22
|
+
valueGetter: (value, row, column, apiRef) => {
|
|
23
|
+
const selectionLookup = selectedIdsLookupSelector(apiRef);
|
|
24
|
+
const rowId = apiRef.current.getRowId(row);
|
|
25
|
+
return selectionLookup[rowId] !== undefined;
|
|
25
26
|
},
|
|
26
27
|
renderHeader: params => /*#__PURE__*/_jsx(GridHeaderCheckbox, _extends({}, params)),
|
|
27
28
|
renderCell: params => /*#__PURE__*/_jsx(GridCellCheckboxRenderer, _extends({}, params))
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { GridColTypeDef } from '../models/colDef/gridColDef';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
export declare function gridDateTimeFormatter({ value, field, id }: GridValueFormatterParams<Date>): string;
|
|
1
|
+
import { GridColTypeDef, GridValueFormatter } from '../models/colDef/gridColDef';
|
|
2
|
+
export declare const gridDateFormatter: GridValueFormatter;
|
|
3
|
+
export declare const gridDateTimeFormatter: GridValueFormatter;
|
|
5
4
|
export declare const GRID_DATE_COL_DEF: GridColTypeDef<Date, string>;
|
|
6
5
|
export declare const GRID_DATETIME_COL_DEF: GridColTypeDef<Date, string>;
|
package/colDef/gridDateColDef.js
CHANGED
|
@@ -13,38 +13,32 @@ function throwIfNotDateObject({
|
|
|
13
13
|
throw new Error([`MUI X: \`${columnType}\` column type only accepts \`Date\` objects as values.`, 'Use `valueGetter` to transform the value into a `Date` object.', `Row ID: ${rowId}, field: "${field}".`].join('\n'));
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
value,
|
|
18
|
-
field,
|
|
19
|
-
id
|
|
20
|
-
}) {
|
|
16
|
+
export const gridDateFormatter = (value, row, column, apiRef) => {
|
|
21
17
|
if (!value) {
|
|
22
18
|
return '';
|
|
23
19
|
}
|
|
20
|
+
const rowId = apiRef.current.getRowId(row);
|
|
24
21
|
throwIfNotDateObject({
|
|
25
22
|
value,
|
|
26
23
|
columnType: 'date',
|
|
27
|
-
rowId
|
|
28
|
-
field
|
|
24
|
+
rowId,
|
|
25
|
+
field: column.field
|
|
29
26
|
});
|
|
30
27
|
return value.toLocaleDateString();
|
|
31
|
-
}
|
|
32
|
-
export
|
|
33
|
-
value,
|
|
34
|
-
field,
|
|
35
|
-
id
|
|
36
|
-
}) {
|
|
28
|
+
};
|
|
29
|
+
export const gridDateTimeFormatter = (value, row, column, apiRef) => {
|
|
37
30
|
if (!value) {
|
|
38
31
|
return '';
|
|
39
32
|
}
|
|
33
|
+
const rowId = apiRef.current.getRowId(row);
|
|
40
34
|
throwIfNotDateObject({
|
|
41
35
|
value,
|
|
42
36
|
columnType: 'dateTime',
|
|
43
|
-
rowId
|
|
44
|
-
field
|
|
37
|
+
rowId,
|
|
38
|
+
field: column.field
|
|
45
39
|
});
|
|
46
40
|
return value.toLocaleString();
|
|
47
|
-
}
|
|
41
|
+
};
|
|
48
42
|
export const GRID_DATE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
49
43
|
type: 'date',
|
|
50
44
|
sortComparator: gridDateComparator,
|
|
@@ -9,9 +9,7 @@ export const GRID_NUMERIC_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
|
9
9
|
headerAlign: 'right',
|
|
10
10
|
sortComparator: gridNumberComparator,
|
|
11
11
|
valueParser: value => value === '' ? null : Number(value),
|
|
12
|
-
valueFormatter: (
|
|
13
|
-
value
|
|
14
|
-
}) => isNumber(value) ? value.toLocaleString() : value || '',
|
|
12
|
+
valueFormatter: value => isNumber(value) ? value.toLocaleString() : value || '',
|
|
15
13
|
filterOperators: getGridNumericOperators(),
|
|
16
14
|
getApplyQuickFilterFn: getGridNumericQuickFilterFn
|
|
17
15
|
});
|
|
@@ -17,20 +17,15 @@ export const GRID_SINGLE_SELECT_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
|
17
17
|
type: 'singleSelect',
|
|
18
18
|
getOptionLabel: defaultGetOptionLabel,
|
|
19
19
|
getOptionValue: defaultGetOptionValue,
|
|
20
|
-
valueFormatter(
|
|
21
|
-
const {
|
|
22
|
-
|
|
23
|
-
field,
|
|
24
|
-
value,
|
|
25
|
-
api
|
|
26
|
-
} = params;
|
|
27
|
-
const colDef = params.api.getColumn(field);
|
|
20
|
+
valueFormatter(value, row, colDef, apiRef) {
|
|
21
|
+
// const { id, field, value, api } = params;
|
|
22
|
+
const rowId = apiRef.current.getRowId(row);
|
|
28
23
|
if (!isSingleSelectColDef(colDef)) {
|
|
29
24
|
return '';
|
|
30
25
|
}
|
|
31
26
|
const valueOptions = getValueOptions(colDef, {
|
|
32
|
-
id,
|
|
33
|
-
row
|
|
27
|
+
id: rowId,
|
|
28
|
+
row
|
|
34
29
|
});
|
|
35
30
|
if (value == null) {
|
|
36
31
|
return '';
|
|
@@ -47,8 +42,8 @@ export const GRID_SINGLE_SELECT_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
|
47
42
|
renderEditCell: renderEditSingleSelectCell,
|
|
48
43
|
filterOperators: getGridSingleSelectOperators(),
|
|
49
44
|
// @ts-ignore
|
|
50
|
-
pastedValueParser: (value,
|
|
51
|
-
const colDef =
|
|
45
|
+
pastedValueParser: (value, row, column) => {
|
|
46
|
+
const colDef = column;
|
|
52
47
|
const valueOptions = getValueOptions(colDef) || [];
|
|
53
48
|
const getOptionValue = colDef.getOptionValue;
|
|
54
49
|
const valueOption = valueOptions.find(option => {
|
|
@@ -3,4 +3,4 @@ export declare const GridPagination: React.ForwardRefExoticComponent<(Omit<Parti
|
|
|
3
3
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
4
4
|
}>, "ref"> | Omit<Partial<import("@mui/material/TablePagination").TablePaginationOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("@mui/material/TablePagination").TablePaginationBaseProps, "ref"> & React.RefAttributes<React.Component<any, any, any>>, "hidden" | "color" | "page" | "content" | "size" | "style" | "height" | "translate" | "width" | "padding" | "disabled" | "abbr" | "slot" | "title" | "ref" | "colSpan" | "headers" | "rowSpan" | "scope" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "align" | "valign" | "sx" | "classes" | "variant" | "slotProps" | "slots" | "count" | "getItemAriaLabel" | "onPageChange" | "rowsPerPage" | "showFirstButton" | "showLastButton" | "labelDisplayedRows" | "labelRowsPerPage" | "onRowsPerPageChange" | "rowsPerPageOptions" | "backIconButtonProps" | "nextIconButtonProps" | "sortDirection" | "ActionsComponent" | "SelectProps"> & {
|
|
5
5
|
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
6
|
-
}>, "ref">) & React.RefAttributes<
|
|
6
|
+
}>, "ref">) & React.RefAttributes<unknown>>;
|