@mui/x-data-grid-pro 7.0.0-beta.2 → 7.0.0-beta.4

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +298 -23
  2. package/DataGridPro/DataGridPro.js +0 -6
  3. package/esm/DataGridPro/DataGridPro.js +0 -6
  4. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +3 -6
  5. package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -5
  6. package/esm/utils/releaseInfo.js +1 -1
  7. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  8. package/hooks/features/columnHeaders/useGridColumnHeaders.js +3 -5
  9. package/hooks/features/columnResize/useGridColumnResize.js +1 -4
  10. package/index.js +1 -1
  11. package/modern/DataGridPro/DataGridPro.js +0 -6
  12. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +3 -6
  13. package/modern/hooks/features/columnResize/useGridColumnResize.js +1 -4
  14. package/modern/index.js +1 -1
  15. package/modern/utils/releaseInfo.js +1 -1
  16. package/package.json +4 -4
  17. package/utils/releaseInfo.js +1 -1
  18. package/legacy/DataGridPro/DataGrid.js +0 -19
  19. package/legacy/DataGridPro/DataGridPro.js +0 -877
  20. package/legacy/DataGridPro/index.js +0 -3
  21. package/legacy/DataGridPro/useDataGridProComponent.js +0 -94
  22. package/legacy/DataGridPro/useDataGridProProps.js +0 -52
  23. package/legacy/components/GridColumnHeaders.js +0 -246
  24. package/legacy/components/GridColumnMenuPinningItem.js +0 -91
  25. package/legacy/components/GridDetailPanel.js +0 -55
  26. package/legacy/components/GridDetailPanelToggleCell.js +0 -109
  27. package/legacy/components/GridDetailPanels.js +0 -59
  28. package/legacy/components/GridPinnedRows.js +0 -32
  29. package/legacy/components/GridProColumnMenu.js +0 -32
  30. package/legacy/components/GridRowReorderCell.js +0 -77
  31. package/legacy/components/GridScrollArea.js +0 -139
  32. package/legacy/components/GridTreeDataGroupingCell.js +0 -135
  33. package/legacy/components/headerFiltering/GridHeaderFilterCell.js +0 -269
  34. package/legacy/components/headerFiltering/GridHeaderFilterClearButton.js +0 -22
  35. package/legacy/components/headerFiltering/GridHeaderFilterMenu.js +0 -88
  36. package/legacy/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -100
  37. package/legacy/components/headerFiltering/index.js +0 -3
  38. package/legacy/components/index.js +0 -6
  39. package/legacy/components/reexports.js +0 -1
  40. package/legacy/constants/dataGridProDefaultSlotsComponents.js +0 -17
  41. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +0 -109
  42. package/legacy/hooks/features/columnPinning/gridColumnPinningInterface.js +0 -1
  43. package/legacy/hooks/features/columnPinning/index.js +0 -1
  44. package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +0 -239
  45. package/legacy/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +0 -111
  46. package/legacy/hooks/features/columnReorder/columnReorderInterfaces.js +0 -1
  47. package/legacy/hooks/features/columnReorder/columnReorderSelector.js +0 -7
  48. package/legacy/hooks/features/columnReorder/index.js +0 -2
  49. package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +0 -250
  50. package/legacy/hooks/features/columnResize/columnResizeSelector.js +0 -7
  51. package/legacy/hooks/features/columnResize/columnResizeState.js +0 -1
  52. package/legacy/hooks/features/columnResize/gridColumnResizeApi.js +0 -10
  53. package/legacy/hooks/features/columnResize/index.js +0 -3
  54. package/legacy/hooks/features/columnResize/useGridColumnResize.js +0 -569
  55. package/legacy/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -1
  56. package/legacy/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -22
  57. package/legacy/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -33
  58. package/legacy/hooks/features/detailPanel/index.js +0 -3
  59. package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +0 -199
  60. package/legacy/hooks/features/detailPanel/useGridDetailPanelCache.js +0 -57
  61. package/legacy/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -46
  62. package/legacy/hooks/features/index.js +0 -8
  63. package/legacy/hooks/features/infiniteLoader/useGridInfiniteLoader.js +0 -47
  64. package/legacy/hooks/features/lazyLoader/useGridLazyLoader.js +0 -146
  65. package/legacy/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -40
  66. package/legacy/hooks/features/rowPinning/gridRowPinningInterface.js +0 -1
  67. package/legacy/hooks/features/rowPinning/gridRowPinningSelector.js +0 -1
  68. package/legacy/hooks/features/rowPinning/index.js +0 -1
  69. package/legacy/hooks/features/rowPinning/useGridRowPinning.js +0 -54
  70. package/legacy/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +0 -110
  71. package/legacy/hooks/features/rowReorder/gridRowReorderColDef.js +0 -22
  72. package/legacy/hooks/features/rowReorder/index.js +0 -1
  73. package/legacy/hooks/features/rowReorder/useGridRowReorder.js +0 -142
  74. package/legacy/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +0 -46
  75. package/legacy/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -26
  76. package/legacy/hooks/features/treeData/gridTreeDataUtils.js +0 -81
  77. package/legacy/hooks/features/treeData/index.js +0 -1
  78. package/legacy/hooks/features/treeData/useGridTreeData.js +0 -18
  79. package/legacy/hooks/features/treeData/useGridTreeDataPreProcessors.js +0 -159
  80. package/legacy/hooks/index.js +0 -1
  81. package/legacy/hooks/utils/useGridApiContext.js +0 -2
  82. package/legacy/hooks/utils/useGridApiRef.js +0 -2
  83. package/legacy/hooks/utils/useGridPrivateApiContext.js +0 -2
  84. package/legacy/hooks/utils/useGridRootProps.js +0 -2
  85. package/legacy/index.js +0 -43
  86. package/legacy/internals/index.js +0 -28
  87. package/legacy/internals/propValidation.js +0 -9
  88. package/legacy/locales.js +0 -1
  89. package/legacy/material/icons.js +0 -17
  90. package/legacy/material/index.js +0 -8
  91. package/legacy/models/dataGridProProps.js +0 -1
  92. package/legacy/models/dataSource.js +0 -1
  93. package/legacy/models/gridApiPro.js +0 -1
  94. package/legacy/models/gridFetchRowsParams.js +0 -1
  95. package/legacy/models/gridGroupingColDefOverride.js +0 -1
  96. package/legacy/models/gridProIconSlotsComponent.js +0 -1
  97. package/legacy/models/gridProSlotProps.js +0 -1
  98. package/legacy/models/gridProSlotsComponent.js +0 -1
  99. package/legacy/models/gridRowOrderChangeParams.js +0 -1
  100. package/legacy/models/gridRowScrollEndParams.js +0 -1
  101. package/legacy/models/gridStatePro.js +0 -1
  102. package/legacy/models/index.js +0 -7
  103. package/legacy/themeAugmentation/index.js +0 -4
  104. package/legacy/themeAugmentation/overrides.js +0 -1
  105. package/legacy/themeAugmentation/props.js +0 -1
  106. package/legacy/typeOverloads/index.js +0 -1
  107. package/legacy/typeOverloads/modules.js +0 -1
  108. package/legacy/typeOverloads/reexports.js +0 -15
  109. package/legacy/utils/domUtils.js +0 -108
  110. package/legacy/utils/index.js +0 -1
  111. package/legacy/utils/releaseInfo.js +0 -13
  112. package/legacy/utils/tree/createRowTree.js +0 -32
  113. package/legacy/utils/tree/index.js +0 -1
  114. package/legacy/utils/tree/insertDataRowInTree.js +0 -116
  115. package/legacy/utils/tree/models.js +0 -1
  116. package/legacy/utils/tree/removeDataRowFromTree.js +0 -91
  117. package/legacy/utils/tree/sortRowTree.js +0 -129
  118. package/legacy/utils/tree/updateRowTree.js +0 -77
  119. package/legacy/utils/tree/utils.js +0 -192
package/CHANGELOG.md CHANGED
@@ -3,7 +3,221 @@
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
6
+ ## 7.0.0-beta.4
7
+
8
+ _Feb 23, 2024_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
13
+ - 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
14
+ - 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Breaking changes
19
+
20
+ - The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
21
+
22
+ ### Data Grid
23
+
24
+ #### Breaking changes
25
+
26
+ - The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
27
+
28
+ #### `@mui/x-data-grid@7.0.0-beta.4`
29
+
30
+ - [DataGrid] Simplify cell DOM structure (#12013) @romgrk
31
+ - [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
32
+
33
+ #### `@mui/x-data-grid-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.0.0-beta.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
40
+
41
+ ### Date Pickers
42
+
43
+ #### Breaking changes
44
+
45
+ - The `selectedSections` prop no longer accepts start and end indexes.
46
+ When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
47
+
48
+ ```diff
49
+ <DateField
50
+ - selectedSections={{ startIndex: 0, endIndex: 0 }}
51
+ + selectedSections={0}
52
+
53
+ // If the field has 3 sections
54
+ - selectedSections={{ startIndex: 0, endIndex: 2 }}
55
+ + selectedSections="all"
56
+ />
57
+ ```
58
+
59
+ - The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
60
+ This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
61
+
62
+ When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
63
+
64
+ ```diff
65
+ function MyCustomTextField(props) {
66
+ const {
67
+ + // Should be ignored
68
+ + enableAccessibleFieldDOMStructure,
69
+ // ... rest of the props you are using
70
+ } = props;
71
+
72
+ return ( /* Some UI to edit the date */ )
73
+ }
74
+
75
+ function MyCustomField(props) {
76
+ const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
77
+ ...props,
78
+ + // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
79
+ + enableAccessibleFieldDOMStructure: false,
80
+ });
81
+
82
+ return <MyCustomTextField ref={ref} {...fieldResponse} />;
83
+ }
84
+
85
+ function App() {
86
+ return <DatePicker slots={{ field: MyCustomField }} />;
87
+ }
88
+ ```
89
+
90
+ - The following internal types were exported by mistake and have been removed from the public API:
91
+
92
+ - `UseDateFieldDefaultizedProps`
93
+ - `UseTimeFieldDefaultizedProps`
94
+ - `UseDateTimeFieldDefaultizedProps`
95
+ - `UseSingleInputDateRangeFieldComponentProps`
96
+ - `UseSingleInputTimeRangeFieldComponentProps`
97
+ - `UseSingleInputDateTimeRangeFieldComponentProps`
98
+
99
+ #### `@mui/x-date-pickers@7.0.0-beta.4`
100
+
101
+ - [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
102
+ - [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
103
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
104
+
105
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
106
+
107
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
108
+
109
+ ### Charts / `@mui/x-charts@7.0.0-beta.4`
110
+
111
+ #### Breaking changes
112
+
113
+ These components are no longer exported from `@mui/x-charts`:
114
+
115
+ - `CartesianContextProvider`
116
+ - `DrawingProvider`
117
+
118
+ #### `@mui/x-charts@7.0.0-beta.4`
119
+
120
+ - [charts] Don't display text if no value is provided (#12127) @alexfauquette
121
+ - [charts] Remove export of context providers (#12123) @oliviertassinari
122
+
123
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
124
+
125
+ - [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
126
+
127
+ ### Docs
128
+
129
+ - [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
130
+ - [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
131
+ - [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
132
+ - [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
133
+ - [docs] Fix "Licensing" page link (#12156) @LukasTy
134
+ - [docs] Fix the Treemap illustration (#12185) @danilo-leal
135
+ - [docs] Fix error raised by Grammarly on the page @oliviertassinari
136
+ - [docs] Improve performance on Charts entry point @oliviertassinari
137
+ - [docs] Link to React Transition Group with https @oliviertassinari
138
+ - [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
139
+ - [docs] Reduce number of Vale errors @oliviertassinari
140
+ - [docs] Remove default value set to `undefined` (#12128) @alexfauquette
141
+
142
+ ### Core
143
+
144
+ - [core] Fix docs link check (#12135) @LukasTy
145
+ - [core] Fix missing context display names (#12124) @oliviertassinari
146
+ - [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
147
+ - [core] Remove IE 11 compat logic (#12119) @oliviertassinari
148
+ - [core] Simplify key utils (#12120) @oliviertassinari
149
+ - [core] Use the @mui/internal-scripts package (#12142) @michaldudak
150
+ - [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
151
+ - [code-infra] Bump monorepo (#11880) @Janpot
152
+ - [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
153
+ - [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
154
+ - [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
155
+
156
+ ## 7.0.0-beta.3
157
+
158
+ _Feb 16, 2024_
159
+
160
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
161
+
162
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
163
+
164
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
165
+
166
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
167
+
168
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
169
+
170
+ - 🐞 Bugfixes
171
+
172
+ - 📚 Documentation improvements
173
+
174
+ ### Data Grid
175
+
176
+ #### Breaking changes
177
+
178
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
179
+
180
+ #### `@mui/x-data-grid@7.0.0-beta.3`
181
+
182
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
183
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
184
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
185
+
186
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
187
+
188
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
189
+
190
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
191
+
192
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
193
+
194
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
195
+
196
+ - [charts] Add Gauge component (#11996) @alexfauquette
197
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
198
+
199
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
200
+
201
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
202
+
203
+ ### Docs
204
+
205
+ - [docs] Complete charts API pages (#12038) @alexfauquette
206
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
207
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
208
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
209
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
210
+ - [docs] Fix redirection @oliviertassinari
211
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
212
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
213
+
214
+ ### Core
215
+
216
+ - [core] Fix CodeSandbox CI template @oliviertassinari
217
+ - [core] Sort prop asc (#12033) @oliviertassinari
218
+ - [core] Bump monorepo (#12055) @alexfauquette
219
+
220
+ ## 7.0.0-beta.2
7
221
 
8
222
  _Feb 9, 2024_
9
223
 
@@ -17,7 +231,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
17
231
 
18
232
  ### Data Grid
19
233
 
20
- #### `@mui/x-data-grid@v7.0.0-beta.2`
234
+ #### `@mui/x-data-grid@7.0.0-beta.2`
21
235
 
22
236
  - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
23
237
  - [DataGrid] Add slot typings (#11795) @romgrk
@@ -27,35 +241,35 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
27
241
  - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
28
242
  - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
29
243
 
30
- #### `@mui/x-data-grid-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
244
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
245
 
32
246
  Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
33
247
 
34
248
  #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
35
249
 
36
- Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
250
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
37
251
 
38
252
  - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
39
253
  - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
40
254
 
41
255
  ### Date Pickers
42
256
 
43
- #### `@mui/x-date-pickers@v7.0.0-beta.2`
257
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
44
258
 
45
259
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
46
260
  - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
47
261
 
48
- #### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
262
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
263
 
50
- Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
264
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
51
265
 
52
- ### Charts / `@mui/x-charts@v7.0.0-beta.2`
266
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
53
267
 
54
268
  - [charts] Add `reverse` property to axes (#11899) @alexfauquette
55
269
  - [charts] Allow series ids to be numbers (#11941) @alexfauquette
56
270
  - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
57
271
 
58
- ### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
272
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
59
273
 
60
274
  - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
61
275
  - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
@@ -71,7 +285,7 @@ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
71
285
  +import { LicenseInfo } from '@mui/x-license';
72
286
  ```
73
287
 
74
- `@mui/x-license@v7.0.0-beta.2`
288
+ `@mui/x-license@7.0.0-beta.2`
75
289
 
76
290
  - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
77
291
 
@@ -272,7 +486,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
272
486
 
273
487
  _Jan 26, 2024_
274
488
 
275
- We are glad to announce MUI X v7 beta!
489
+ We are glad to announce MUI X v7 beta!
276
490
  This version has several improvements, bug fixes, and exciting features 🎉.
277
491
  We want to offer a big thanks to the 7 contributors who made this release possible ✨:
278
492
 
@@ -1289,7 +1503,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
1289
1503
 
1290
1504
  - The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
1291
1505
 
1292
- - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
1506
+ - The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
1293
1507
 
1294
1508
  - The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
1295
1509
 
@@ -2138,7 +2352,68 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2138
2352
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2139
2353
  - [license] Correctly throw errors (#10924) @oliviertassinari
2140
2354
 
2141
- ## v6.19.4
2355
+ ## 6.19.5
2356
+
2357
+ _Feb 23, 2024_
2358
+
2359
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2360
+
2361
+ - 🐞 Bugfixes
2362
+ - 📚 Documentation improvements
2363
+
2364
+ ### Data Grid
2365
+
2366
+ #### `@mui/x-data-grid@6.19.5`
2367
+
2368
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
2369
+
2370
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2371
+
2372
+ Same changes as in `@mui/x-data-grid@6.19.5`.
2373
+
2374
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2375
+
2376
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
2377
+
2378
+ ### Date Pickers
2379
+
2380
+ #### `@mui/x-date-pickers@6.19.5`
2381
+
2382
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
2383
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
2384
+
2385
+ #### `@mui/x-date-pickers-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2386
+
2387
+ Same changes as in `@mui/x-date-pickers@6.19.5`.
2388
+
2389
+ ### Charts / `@mui/x-charts@6.19.5`
2390
+
2391
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
2392
+
2393
+ ### Docs
2394
+
2395
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
2396
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
2397
+ - [docs] Fix 301 to Material UI @oliviertassinari
2398
+ - [docs] Fix 301 to Material UI @oliviertassinari
2399
+ - [docs] Fix 404 links to translation source @oliviertassinari
2400
+ - [docs] Fix dead link to translations @oliviertassinari
2401
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
2402
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
2403
+ - [docs] Improve performance on Charts entry point @oliviertassinari
2404
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
2405
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
2406
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
2407
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
2408
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
2409
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
2410
+
2411
+ ### Core
2412
+
2413
+ - [core] Fix CI @oliviertassinari
2414
+ - [core] Fix docs link check (#12137) @LukasTy
2415
+
2416
+ ## 6.19.4
2142
2417
 
2143
2418
  _Feb 9, 2024_
2144
2419
 
@@ -2150,7 +2425,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2150
2425
 
2151
2426
  ### Data Grid
2152
2427
 
2153
- #### `@mui/x-data-grid@v6.19.4`
2428
+ #### `@mui/x-data-grid@6.19.4`
2154
2429
 
2155
2430
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2156
2431
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -2158,28 +2433,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
2158
2433
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2159
2434
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2160
2435
 
2161
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2436
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2162
2437
 
2163
- Same changes as in `@mui/x-data-grid@v6.19.4`.
2438
+ Same changes as in `@mui/x-data-grid@6.19.4`.
2164
2439
 
2165
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2440
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2166
2441
 
2167
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2442
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
2168
2443
 
2169
2444
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2170
2445
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2171
2446
 
2172
2447
  ### Date Pickers
2173
2448
 
2174
- #### `@mui/x-date-pickers@v6.19.4`
2449
+ #### `@mui/x-date-pickers@6.19.4`
2175
2450
 
2176
2451
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2177
2452
 
2178
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2453
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2179
2454
 
2180
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
2455
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
2181
2456
 
2182
- ### Charts / `@mui/x-charts@v6.19.4`
2457
+ ### Charts / `@mui/x-charts@6.19.4`
2183
2458
 
2184
2459
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2185
2460
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -2240,7 +2515,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
2240
2515
  - [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
2241
2516
  - [docs] Improve Support page (#11556) @oliviertassinari
2242
2517
  - [docs] Sync support page with core @oliviertassinari
2243
- - [docs] These API don't exist in MUI X v6 @oliviertassinari
2518
+ - [docs] These API don't exist in MUI X v6 @oliviertassinari
2244
2519
  - [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
2245
2520
 
2246
2521
  ## 6.19.2
@@ -656,12 +656,6 @@ DataGridProRaw.propTypes = {
656
656
  * @param {GridCallbackDetails} details Additional details for this callback.
657
657
  */
658
658
  onRowDoubleClick: _propTypes.default.func,
659
- /**
660
- * Callback fired when the row changes are committed.
661
- * @param {GridRowId} id The row id.
662
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
663
- */
664
- onRowEditCommit: _propTypes.default.func,
665
659
  /**
666
660
  * Callback fired when the row turns to edit mode.
667
661
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -648,12 +648,6 @@ DataGridProRaw.propTypes = {
648
648
  * @param {GridCallbackDetails} details Additional details for this callback.
649
649
  */
650
650
  onRowDoubleClick: PropTypes.func,
651
- /**
652
- * Callback fired when the row changes are committed.
653
- * @param {GridRowId} id The row id.
654
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
655
- */
656
- onRowEditCommit: PropTypes.func,
657
651
  /**
658
652
  * Callback fired when the row turns to edit mode.
659
653
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -7,7 +7,6 @@ import { useGridColumnHeaders as useGridColumnHeadersCommunity, useGridPrivateAp
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
8
8
  import { useGridRootProps } from '../../utils/useGridRootProps';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const useUtilityClasses = ownerState => {
12
11
  const {
13
12
  classes
@@ -96,15 +95,13 @@ export const useGridColumnHeaders = props => {
96
95
  item: item
97
96
  }, (_rootProps$slotProps = rootProps.slotProps) == null ? void 0 : _rootProps$slotProps.headerFilterCell, other), `${colDef.field}-filter`));
98
97
  }
99
- return /*#__PURE__*/_jsxs(GridColumnHeaderRow, {
98
+ return /*#__PURE__*/_jsx(GridColumnHeaderRow, {
100
99
  ref: headerFiltersRef,
101
- ownerState: {
102
- params
103
- },
104
100
  className: classes.headerFilterRow,
105
101
  role: "row",
106
102
  "aria-rowindex": headerGroupingMaxDepth + 2,
107
- children: [filters, otherProps.getFiller(params, true)]
103
+ ownerState: rootProps,
104
+ children: otherProps.getFillers(params, filters, 0, true)
108
105
  });
109
106
  };
110
107
  return _extends({}, otherProps, {
@@ -134,11 +134,8 @@ function extractColumnWidths(apiRef, options, columns) {
134
134
  columns.forEach(column => {
135
135
  const cells = findGridCells(apiRef.current, column.field);
136
136
  const widths = cells.map(cell => {
137
- var _cell$firstElementChi, _cell$firstElementChi2;
138
- const style = window.getComputedStyle(cell, null);
139
- const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
140
- const contentWidth = (_cell$firstElementChi = (_cell$firstElementChi2 = cell.firstElementChild) == null ? void 0 : _cell$firstElementChi2.getBoundingClientRect().width) != null ? _cell$firstElementChi : 0;
141
- return paddingWidth + contentWidth;
137
+ var _cell$getBoundingClie;
138
+ return (_cell$getBoundingClie = cell.getBoundingClientRect().width) != null ? _cell$getBoundingClie : 0;
142
139
  });
143
140
  const filteredWidths = options.includeOutliers ? widths : excludeOutliers(widths, options.outliersFactor);
144
141
  if (options.includeHeaders) {
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNzQyOTYwMDAwMA==";
3
+ const releaseInfo = "MTcwODYyODQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -3,7 +3,7 @@ import { UseGridColumnHeadersProps, GetHeadersParams } from '@mui/x-data-grid/in
3
3
  export declare const useGridColumnHeaders: (props: UseGridColumnHeadersProps) => {
4
4
  getColumnFilters: (params?: GetHeadersParams, other?: {}) => React.JSX.Element | null;
5
5
  renderContext: import("@mui/x-data-grid").GridRenderContext;
6
- getFiller: (params: GetHeadersParams | undefined, borderTop?: boolean | undefined) => React.JSX.Element;
6
+ getFillers: (params: GetHeadersParams | undefined, children: React.ReactNode, leftOverflow: number, borderTop?: boolean | undefined) => React.JSX.Element;
7
7
  getColumnHeaders: (params?: GetHeadersParams | undefined, other?: {} | undefined) => React.JSX.Element;
8
8
  getColumnGroupHeaders: (params?: GetHeadersParams | undefined) => React.JSX.Element[] | null;
9
9
  isDragging: boolean;
@@ -103,15 +103,13 @@ const useGridColumnHeaders = props => {
103
103
  item: item
104
104
  }, rootProps.slotProps?.headerFilterCell, other), `${colDef.field}-filter`));
105
105
  }
106
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.GridColumnHeaderRow, {
106
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.GridColumnHeaderRow, {
107
107
  ref: headerFiltersRef,
108
- ownerState: {
109
- params
110
- },
111
108
  className: classes.headerFilterRow,
112
109
  role: "row",
113
110
  "aria-rowindex": headerGroupingMaxDepth + 2,
114
- children: [filters, otherProps.getFiller(params, true)]
111
+ ownerState: rootProps,
112
+ children: otherProps.getFillers(params, filters, 0, true)
115
113
  });
116
114
  };
117
115
  return (0, _extends2.default)({}, otherProps, {
@@ -143,10 +143,7 @@ function extractColumnWidths(apiRef, options, columns) {
143
143
  columns.forEach(column => {
144
144
  const cells = (0, _domUtils.findGridCells)(apiRef.current, column.field);
145
145
  const widths = cells.map(cell => {
146
- const style = window.getComputedStyle(cell, null);
147
- const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
148
- const contentWidth = cell.firstElementChild?.getBoundingClientRect().width ?? 0;
149
- return paddingWidth + contentWidth;
146
+ return cell.getBoundingClientRect().width ?? 0;
150
147
  });
151
148
  const filteredWidths = options.includeOutliers ? widths : excludeOutliers(widths, options.outliersFactor);
152
149
  if (options.includeHeaders) {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v7.0.0-beta.2
2
+ * @mui/x-data-grid-pro v7.0.0-beta.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -648,12 +648,6 @@ DataGridProRaw.propTypes = {
648
648
  * @param {GridCallbackDetails} details Additional details for this callback.
649
649
  */
650
650
  onRowDoubleClick: PropTypes.func,
651
- /**
652
- * Callback fired when the row changes are committed.
653
- * @param {GridRowId} id The row id.
654
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
655
- */
656
- onRowEditCommit: PropTypes.func,
657
651
  /**
658
652
  * Callback fired when the row turns to edit mode.
659
653
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -7,7 +7,6 @@ import { useGridColumnHeaders as useGridColumnHeadersCommunity, useGridPrivateAp
7
7
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
8
8
  import { useGridRootProps } from '../../utils/useGridRootProps';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
- import { jsxs as _jsxs } from "react/jsx-runtime";
11
10
  const useUtilityClasses = ownerState => {
12
11
  const {
13
12
  classes
@@ -95,15 +94,13 @@ export const useGridColumnHeaders = props => {
95
94
  item: item
96
95
  }, rootProps.slotProps?.headerFilterCell, other), `${colDef.field}-filter`));
97
96
  }
98
- return /*#__PURE__*/_jsxs(GridColumnHeaderRow, {
97
+ return /*#__PURE__*/_jsx(GridColumnHeaderRow, {
99
98
  ref: headerFiltersRef,
100
- ownerState: {
101
- params
102
- },
103
99
  className: classes.headerFilterRow,
104
100
  role: "row",
105
101
  "aria-rowindex": headerGroupingMaxDepth + 2,
106
- children: [filters, otherProps.getFiller(params, true)]
102
+ ownerState: rootProps,
103
+ children: otherProps.getFillers(params, filters, 0, true)
107
104
  });
108
105
  };
109
106
  return _extends({}, otherProps, {
@@ -134,10 +134,7 @@ function extractColumnWidths(apiRef, options, columns) {
134
134
  columns.forEach(column => {
135
135
  const cells = findGridCells(apiRef.current, column.field);
136
136
  const widths = cells.map(cell => {
137
- const style = window.getComputedStyle(cell, null);
138
- const paddingWidth = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
139
- const contentWidth = cell.firstElementChild?.getBoundingClientRect().width ?? 0;
140
- return paddingWidth + contentWidth;
137
+ return cell.getBoundingClientRect().width ?? 0;
141
138
  });
142
139
  const filteredWidths = options.includeOutliers ? widths : excludeOutliers(widths, options.outliersFactor);
143
140
  if (options.includeHeaders) {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v7.0.0-beta.2
2
+ * @mui/x-data-grid-pro v7.0.0-beta.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNzQyOTYwMDAwMA==";
3
+ const releaseInfo = "MTcwODYyODQwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-pro",
3
- "version": "7.0.0-beta.2",
3
+ "version": "7.0.0-beta.4",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.23.9",
36
- "@mui/system": "^5.15.7",
37
- "@mui/utils": "^5.15.7",
38
- "@mui/x-data-grid": "7.0.0-beta.2",
36
+ "@mui/system": "^5.15.9",
37
+ "@mui/utils": "^5.15.9",
38
+ "@mui/x-data-grid": "7.0.0-beta.4",
39
39
  "@mui/x-license": "7.0.0-beta.2",
40
40
  "@types/format-util": "^1.0.4",
41
41
  "clsx": "^2.1.0",
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTcwNzQyOTYwMDAwMA==";
9
+ const releaseInfo = "MTcwODYyODQwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat