@mui/x-data-grid 8.6.0 → 8.8.0
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 +202 -1
- package/components/GridScrollArea.d.ts +1 -1
- package/components/GridScrollArea.js +134 -28
- package/components/cell/GridActionsCell.js +1 -0
- package/components/cell/GridCell.js +1 -0
- package/components/cell/GridEditBooleanCell.js +1 -0
- package/components/cell/GridEditDateCell.js +1 -0
- package/components/cell/GridEditInputCell.js +1 -0
- package/components/cell/GridEditSingleSelectCell.js +1 -0
- package/components/columnHeaders/GridColumnGroupHeader.js +1 -0
- package/components/columnHeaders/GridColumnHeaderItem.js +1 -0
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -0
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -0
- package/components/columnSelection/GridHeaderCheckbox.js +1 -0
- package/components/columnsManagement/GridColumnsManagement.js +2 -2
- package/components/containers/GridRootStyles.js +2 -5
- package/components/menu/GridMenu.js +1 -0
- package/components/panel/GridPanel.js +1 -0
- package/components/panel/GridPanelContext.js +1 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -0
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -0
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -0
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -0
- package/components/panel/filterPanel/GridFilterPanel.js +1 -0
- package/components/quickFilter/QuickFilter.js +1 -0
- package/components/quickFilter/QuickFilterContext.js +1 -0
- package/components/toolbar/GridToolbarDensitySelector.js +1 -0
- package/components/toolbar/GridToolbarExportContainer.js +1 -0
- package/components/toolbarV8/GridToolbar.js +1 -0
- package/components/toolbarV8/Toolbar.js +1 -0
- package/components/toolbarV8/ToolbarButton.js +1 -0
- package/components/toolbarV8/ToolbarContext.js +1 -0
- package/components/virtualization/GridVirtualScrollbar.js +1 -0
- package/components/virtualization/GridVirtualScroller.js +4 -0
- package/constants/gridClasses.d.ts +8 -0
- package/constants/gridClasses.js +1 -1
- package/esm/components/GridScrollArea.d.ts +1 -1
- package/esm/components/GridScrollArea.js +134 -28
- package/esm/components/cell/GridActionsCell.js +2 -0
- package/esm/components/cell/GridCell.js +2 -0
- package/esm/components/cell/GridEditBooleanCell.js +2 -0
- package/esm/components/cell/GridEditDateCell.js +2 -0
- package/esm/components/cell/GridEditInputCell.js +2 -0
- package/esm/components/cell/GridEditSingleSelectCell.js +2 -0
- package/esm/components/columnHeaders/GridColumnGroupHeader.js +2 -0
- package/esm/components/columnHeaders/GridColumnHeaderItem.js +2 -0
- package/esm/components/columnHeaders/GridColumnHeaderTitle.js +2 -0
- package/esm/components/columnHeaders/GridGenericColumnHeaderItem.js +2 -0
- package/esm/components/columnSelection/GridCellCheckboxRenderer.js +2 -0
- package/esm/components/columnSelection/GridHeaderCheckbox.js +2 -0
- package/esm/components/columnsManagement/GridColumnsManagement.js +3 -1
- package/esm/components/containers/GridRootStyles.js +2 -5
- package/esm/components/menu/GridMenu.js +2 -0
- package/esm/components/panel/GridPanel.js +2 -0
- package/esm/components/panel/GridPanelContext.js +2 -0
- package/esm/components/panel/filterPanel/GridFilterInputBoolean.js +2 -0
- package/esm/components/panel/filterPanel/GridFilterInputDate.js +2 -0
- package/esm/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -0
- package/esm/components/panel/filterPanel/GridFilterInputValue.js +2 -0
- package/esm/components/panel/filterPanel/GridFilterPanel.js +2 -0
- package/esm/components/quickFilter/QuickFilter.js +2 -0
- package/esm/components/quickFilter/QuickFilterContext.js +2 -0
- package/esm/components/toolbar/GridToolbarDensitySelector.js +2 -0
- package/esm/components/toolbar/GridToolbarExportContainer.js +2 -0
- package/esm/components/toolbarV8/GridToolbar.js +2 -0
- package/esm/components/toolbarV8/Toolbar.js +2 -0
- package/esm/components/toolbarV8/ToolbarButton.js +2 -0
- package/esm/components/toolbarV8/ToolbarContext.js +2 -0
- package/esm/components/virtualization/GridVirtualScrollbar.js +2 -0
- package/esm/components/virtualization/GridVirtualScroller.js +4 -0
- package/esm/constants/gridClasses.d.ts +8 -0
- package/esm/constants/gridClasses.js +1 -1
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +2 -0
- package/esm/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +2 -0
- package/esm/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +2 -0
- package/esm/hooks/core/useGridApiInitialization.js +2 -0
- package/esm/hooks/core/useGridIsRtl.js +2 -0
- package/esm/hooks/core/useGridProps.js +2 -0
- package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -0
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -0
- package/esm/hooks/features/columnResize/useGridColumnResize.js +2 -0
- package/esm/hooks/features/columns/useGridColumns.js +23 -3
- package/esm/hooks/features/dataSource/useGridDataSource.js +2 -0
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +5 -0
- package/esm/hooks/features/dataSource/utils.js +3 -0
- package/esm/hooks/features/density/useGridDensity.js +2 -0
- package/esm/hooks/features/dimensions/useGridDimensions.js +2 -0
- package/esm/hooks/features/editing/useGridCellEditing.js +2 -0
- package/esm/hooks/features/editing/useGridEditing.js +2 -0
- package/esm/hooks/features/editing/useGridRowEditing.js +2 -0
- package/esm/hooks/features/export/useGridPrintExport.js +2 -0
- package/esm/hooks/features/focus/useGridFocus.js +2 -0
- package/esm/hooks/features/headerFiltering/useGridHeaderFiltering.js +2 -0
- package/esm/hooks/features/listView/useGridListView.js +2 -0
- package/esm/hooks/features/pagination/useGridPaginationMeta.js +2 -0
- package/esm/hooks/features/pagination/useGridPaginationModel.js +2 -0
- package/esm/hooks/features/pagination/useGridRowCount.js +2 -0
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +2 -0
- package/esm/hooks/features/rows/useGridRowSpanning.js +2 -0
- package/esm/hooks/features/rows/useGridRows.js +2 -0
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +2 -0
- package/esm/hooks/features/virtualization/useGridVirtualization.js +2 -0
- package/esm/hooks/utils/useGridEvent.js +2 -0
- package/esm/hooks/utils/useGridPrivateApiContext.js +2 -0
- package/esm/hooks/utils/useGridSelector.js +6 -0
- package/esm/index.js +1 -1
- package/esm/internals/demo/TailwindDemoContainer.js +2 -0
- package/esm/internals/utils/cache.d.ts +9 -0
- package/esm/internals/utils/cache.js +19 -0
- package/esm/internals/utils/index.d.ts +2 -1
- package/esm/internals/utils/index.js +2 -1
- package/esm/locales/daDK.js +1 -1
- package/esm/locales/idID.d.ts +4 -0
- package/esm/locales/idID.js +261 -0
- package/esm/locales/index.d.ts +2 -1
- package/esm/locales/index.js +2 -1
- package/esm/utils/css/context.js +2 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -0
- package/hooks/core/useGridApiInitialization.js +1 -0
- package/hooks/core/useGridIsRtl.js +1 -0
- package/hooks/core/useGridProps.js +1 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +1 -0
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -0
- package/hooks/features/columnResize/useGridColumnResize.js +1 -0
- package/hooks/features/columns/useGridColumns.js +22 -3
- package/hooks/features/dataSource/useGridDataSource.js +1 -0
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.js +4 -0
- package/hooks/features/dataSource/utils.js +3 -0
- package/hooks/features/density/useGridDensity.js +1 -0
- package/hooks/features/dimensions/useGridDimensions.js +1 -0
- package/hooks/features/editing/useGridCellEditing.js +1 -0
- package/hooks/features/editing/useGridEditing.js +1 -0
- package/hooks/features/editing/useGridRowEditing.js +1 -0
- package/hooks/features/export/useGridPrintExport.js +1 -0
- package/hooks/features/focus/useGridFocus.js +1 -0
- package/hooks/features/headerFiltering/useGridHeaderFiltering.js +1 -0
- package/hooks/features/listView/useGridListView.js +1 -0
- package/hooks/features/pagination/useGridPaginationMeta.js +1 -0
- package/hooks/features/pagination/useGridPaginationModel.js +1 -0
- package/hooks/features/pagination/useGridRowCount.js +1 -0
- package/hooks/features/rowSelection/useGridRowSelection.js +1 -0
- package/hooks/features/rows/useGridRowSpanning.js +1 -0
- package/hooks/features/rows/useGridRows.js +1 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +1 -0
- package/hooks/features/virtualization/useGridVirtualization.js +1 -0
- package/hooks/utils/useGridEvent.js +1 -0
- package/hooks/utils/useGridPrivateApiContext.js +1 -0
- package/hooks/utils/useGridSelector.js +5 -0
- package/index.js +1 -1
- package/internals/demo/TailwindDemoContainer.js +1 -0
- package/internals/utils/cache.d.ts +9 -0
- package/internals/utils/cache.js +26 -0
- package/internals/utils/index.d.ts +2 -1
- package/internals/utils/index.js +11 -0
- package/locales/daDK.js +1 -1
- package/locales/idID.d.ts +4 -0
- package/locales/idID.js +267 -0
- package/locales/index.d.ts +2 -1
- package/locales/index.js +11 -0
- package/package.json +3 -3
- package/utils/css/context.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,207 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.8.0
|
|
9
|
+
|
|
10
|
+
_Jul 11, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 Chart zoom preview can be enabled
|
|
15
|
+
|
|
16
|
+
<img width="758" alt="chart with x-axis preview" src="https://github.com/user-attachments/assets/50ce6f61-16dc-4e9b-a727-ca65d80927d7" />
|
|
17
|
+
|
|
18
|
+
- 🌎 Add Indonesian (id-ID) locale on the Data Grid
|
|
19
|
+
|
|
20
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
21
|
+
@kennarddh
|
|
22
|
+
|
|
23
|
+
The following are all team members who have contributed to this release:
|
|
24
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @noraleonte, @prakhargupta1, @rita-codes, @siriwatknp
|
|
25
|
+
|
|
26
|
+
### Data Grid
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid@8.8.0`
|
|
29
|
+
|
|
30
|
+
- [DataGrid] Fix `useGridSelector` missing subscription in `React.StrictMode` (#18676) @cherniavskii
|
|
31
|
+
- [DataGrid] Fix scrollbar filler `z-index` (#18688) @KenanYusuf
|
|
32
|
+
- [DataGrid] Set correct data source cache chunk size when pagination is disabled (#18636) @arminmeh
|
|
33
|
+
- [l10n] Add Indonesian (id-ID) locale (#18710) @kennarddh
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-data-grid-pro@8.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
36
|
+
|
|
37
|
+
Same changes as in `@mui/x-data-grid@8.8.0`, plus:
|
|
38
|
+
|
|
39
|
+
- [DataGridPro] Fix row ordering not auto-scrolling when moving beyond viewport (#18557) @MBilalShafi
|
|
40
|
+
- [DataGridPro] Set correct parent paths when tree is refreshed with data source tree data and row grouping (#18715) @arminmeh
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid-premium@8.8.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-data-grid-pro@8.8.0`.
|
|
45
|
+
|
|
46
|
+
### Date and Time Pickers
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers@8.8.0`
|
|
49
|
+
|
|
50
|
+
Internal changes.
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers-pro@8.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-date-pickers@8.8.0`.
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@8.8.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Add control to the axis highlight (#17900) @alexfauquette
|
|
61
|
+
- [charts] Avoid processing area plot data if area isn't used in series (#18712) @bernardobelchior
|
|
62
|
+
- [charts] Make smarter default domain limit (#18506) @alexfauquette
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-charts-pro@8.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-charts@8.8.0`, plus:
|
|
67
|
+
|
|
68
|
+
- [charts-pro] Add `funnelDirection` to control pyramid direction (#18568) @JCQuintas
|
|
69
|
+
- [charts-pro] Add `onBeforeExport` callback (#18722) @bernardobelchior
|
|
70
|
+
- [charts-pro] Add chart zoom preview (#18267) @bernardobelchior
|
|
71
|
+
- [charts-pro] Allow customizing scatter preview marker size (#18726) @bernardobelchior
|
|
72
|
+
- [charts-pro] Allow disabling the copy of styles in charts export (#18753) @bernardobelchior
|
|
73
|
+
|
|
74
|
+
### Tree View
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-tree-view@8.8.0`
|
|
77
|
+
|
|
78
|
+
- [tree view] Fix state update that caused scrolling bug when lazy loading and `checkboxSelection` are enabled (#18749) @rita-codes
|
|
79
|
+
|
|
80
|
+
#### `@mui/x-tree-view-pro@8.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
81
|
+
|
|
82
|
+
Same changes as in `@mui/x-tree-view@8.8.0`.
|
|
83
|
+
|
|
84
|
+
### Codemod
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-codemod@8.8.0`
|
|
87
|
+
|
|
88
|
+
Internal changes.
|
|
89
|
+
|
|
90
|
+
### Docs
|
|
91
|
+
|
|
92
|
+
- [docs] Add standalone Pyramid chart page to improve SEO (#18527) @prakhargupta1
|
|
93
|
+
- [docs] Add example to customise line interaction (#18539) @alexfauquette
|
|
94
|
+
- [docs] Fix `size` column filtering in files tree demo (#17952) @cherniavskii
|
|
95
|
+
- [docs] Generate `llms.txt` for X and their products (#18595) @siriwatknp
|
|
96
|
+
- [docs] Improve bar chart demos on mobile (#18721) @alexfauquette
|
|
97
|
+
- [docs] Refine charts overview page (#17447) @noraleonte
|
|
98
|
+
|
|
99
|
+
### Miscellaneous
|
|
100
|
+
|
|
101
|
+
- [code-infra] Ensure all `@mui/*` packages are picked by `Material UI` renovate group (#18711) @LukasTy
|
|
102
|
+
- [code-infra] Fix broken CI (#18716) @LukasTy
|
|
103
|
+
- [code-infra] Refactor `prettier` config resolving (#18720) @LukasTy
|
|
104
|
+
- [test] Increase data points in chart benchmarks (#18714) @bernardobelchior
|
|
105
|
+
|
|
106
|
+
## 8.7.0
|
|
107
|
+
|
|
108
|
+
_Jul 4, 2025_
|
|
109
|
+
|
|
110
|
+
We'd like to extend a big thank you to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
111
|
+
|
|
112
|
+
- 📊 Add `useChartProApiRef` for easier access to the API
|
|
113
|
+
- 📆 Support different start and end `referenceDate` props on range components
|
|
114
|
+
- 📚 Documentation improvements
|
|
115
|
+
- 🐞 Bugfixes
|
|
116
|
+
- 🌎 Improve Greek (el-GR) translations on the Charts
|
|
117
|
+
- 🌎 Improve Danish (da-DK) locale on the Data Grid
|
|
118
|
+
|
|
119
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
120
|
+
@ShahrazH, @vadimkuragkovskiy, @whythecode
|
|
121
|
+
|
|
122
|
+
The following are all team members who have contributed to this release:
|
|
123
|
+
@alexfauquette, @brijeshb42, @mapache-salvaje, @arminmeh, @bernardobelchior, @bharatkashyap, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @rita-codes
|
|
124
|
+
|
|
125
|
+
### Data Grid
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-data-grid@8.7.0`
|
|
128
|
+
|
|
129
|
+
- [DataGrid] Fix column state restore with controlled column visibility model (#18567) @arminmeh
|
|
130
|
+
- [DataGrid] Fix styling virtualized column headers (#18603) @KenanYusuf
|
|
131
|
+
- [l10n] Improve Danish (da-DK) locale (#18537) @ShahrazH
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-data-grid-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
134
|
+
|
|
135
|
+
Same changes as in `@mui/x-data-grid@8.7.0`.
|
|
136
|
+
|
|
137
|
+
#### `@mui/x-data-grid-premium@8.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
138
|
+
|
|
139
|
+
Same changes as in `@mui/x-data-grid-pro@8.7.0`.
|
|
140
|
+
|
|
141
|
+
### Date and Time Pickers
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-date-pickers@8.7.0`
|
|
144
|
+
|
|
145
|
+
- [pickers] Support different `start` and `end` `referenceDate` props on range components (#18549) @LukasTy
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-date-pickers-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-date-pickers@8.7.0`.
|
|
150
|
+
|
|
151
|
+
### Charts
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-charts@8.7.0`
|
|
154
|
+
|
|
155
|
+
- [charts] Export `ChartsReferenceLineProps` (#18598) @bernardobelchior
|
|
156
|
+
- [charts] Extract bar and line plot logic into reusable hooks (#18541) @bernardobelchior
|
|
157
|
+
- [charts] Extract plot logic into separate files for reuse (#18522) @bernardobelchior
|
|
158
|
+
- [charts] Profile charts benchmarks using chromium (#18528) @bernardobelchior
|
|
159
|
+
- [l10n] Add Greek (el-GR) locale to charts (#18548) @whythecode
|
|
160
|
+
|
|
161
|
+
#### `@mui/x-charts-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
162
|
+
|
|
163
|
+
Same changes as in `@mui/x-charts@8.7.0`, plus:
|
|
164
|
+
|
|
165
|
+
- [charts-pro] Add `useChartProApiRef` for easier refs (#18013) @JCQuintas
|
|
166
|
+
- [charts-pro] Add tests and classes to zoom slider (#18660) @JCQuintas
|
|
167
|
+
- [charts-pro] Fix geometry not handling gestures in specific scenarios (#18651) @JCQuintas
|
|
168
|
+
- [charts-pro] Rename `useChartApiContext` to `useChartProApiContext` (#18565) @JCQuintas
|
|
169
|
+
- [charts-pro] Zoom pointer improvements (#17480) @JCQuintas
|
|
170
|
+
|
|
171
|
+
### Tree View
|
|
172
|
+
|
|
173
|
+
#### `@mui/x-tree-view@8.7.0`
|
|
174
|
+
|
|
175
|
+
Internal changes.
|
|
176
|
+
|
|
177
|
+
#### `@mui/x-tree-view-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
178
|
+
|
|
179
|
+
Same changes as in `@mui/x-tree-view@8.7.0`, plus:
|
|
180
|
+
|
|
181
|
+
- [tree view pro] Add missing `dataSource` JSDoc (#18650) @LukasTy
|
|
182
|
+
|
|
183
|
+
### Docs
|
|
184
|
+
|
|
185
|
+
- [docs] Add MCP stub (#18204) @bharatkashyap
|
|
186
|
+
- [docs] Fix AI Assistant proxy rewrite prefix (#18661) @arminmeh
|
|
187
|
+
- [docs] Improve test README.MD (#18634) @LukasTy
|
|
188
|
+
- [docs] Provide workaround for pie chart composition (#18600) @alexfauquette
|
|
189
|
+
- [docs][charts] Add donut chart as a special case of a pie chart (#18652) @bernardobelchior
|
|
190
|
+
- [docs][charts] Centralize country and continent data (#18604) @bernardobelchior
|
|
191
|
+
- [docs][data grid] Audit and revise the Pro row docs (#17926) @mapache-salvaje
|
|
192
|
+
- [docs][pickers] Add mention of theme augmentation in relevant migration section (#18608) @LukasTy
|
|
193
|
+
|
|
194
|
+
### Core
|
|
195
|
+
|
|
196
|
+
- [core] Avoid stringifying `document` object (#18657) @vadimkuragkovskiy
|
|
197
|
+
|
|
198
|
+
### Miscellaneous
|
|
199
|
+
|
|
200
|
+
- [code-infra] Bump code-infra version and fix breaking changes (#18653) @brijeshb42
|
|
201
|
+
- [code-infra] Ensure `material-ui/disallow-react-api-in-server-components` ESLint rule is applied (#18570) @LukasTy
|
|
202
|
+
- [code-infra] Migrate to flat eslint config (#18562) @brijeshb42
|
|
203
|
+
- [code-infra] Refactor eslint config (#18643) @LukasTy
|
|
204
|
+
- [infra] Add renovatebot rule for latest infra packages (#18609) @Janpot
|
|
205
|
+
- [infra] Move pushArgos script to code-infra (#18667) @Janpot
|
|
206
|
+
- [infra] Updates release script to fetch latest major version from upstream (#18552) @michelengelen
|
|
207
|
+
- [release] Add missing contributor to changelog (#18561) @bernardobelchior
|
|
208
|
+
|
|
8
209
|
## 8.6.0
|
|
9
210
|
|
|
10
211
|
_Jun 27, 2025_
|
|
@@ -19,7 +220,7 @@ We'd like to extend a big thank you to the 12 contributors who made this release
|
|
|
19
220
|
- 🌎 Improve German (de-DE) locale
|
|
20
221
|
|
|
21
222
|
Special thanks go out to the community members for their valuable contributions:
|
|
22
|
-
@ShahrazH, @vadimka123
|
|
223
|
+
@omalyutin, @ShahrazH, @vadimka123
|
|
23
224
|
|
|
24
225
|
The following are all team members who have contributed to this release:
|
|
25
226
|
@arminmeh, @bernardobelchior, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { RefObject } from '@mui/x-internals/types';
|
|
3
3
|
import { GridScrollParams } from "../models/params/gridScrollParams.js";
|
|
4
4
|
interface ScrollAreaProps {
|
|
5
|
-
scrollDirection: 'left' | 'right';
|
|
5
|
+
scrollDirection: 'left' | 'right' | 'up' | 'down';
|
|
6
6
|
scrollPosition: RefObject<GridScrollParams>;
|
|
7
7
|
}
|
|
8
8
|
declare function GridScrollAreaWrapper(props: ScrollAreaProps): React.JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
4
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
6
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
7
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -13,6 +14,7 @@ var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallb
|
|
|
13
14
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
15
|
var _system = require("@mui/system");
|
|
15
16
|
var _fastMemo = require("@mui/x-internals/fastMemo");
|
|
17
|
+
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
16
18
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
17
19
|
var _constants = require("../constants");
|
|
18
20
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
@@ -23,6 +25,7 @@ var _densitySelector = require("../hooks/features/density/densitySelector");
|
|
|
23
25
|
var _useTimeout = require("../hooks/utils/useTimeout");
|
|
24
26
|
var _gridColumnsUtils = require("../hooks/features/columns/gridColumnsUtils");
|
|
25
27
|
var _createSelector = require("../utils/createSelector");
|
|
28
|
+
var _gridRowsMetaSelector = require("../hooks/features/rows/gridRowsMetaSelector");
|
|
26
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
30
|
const CLIFF = 1;
|
|
28
31
|
const SLOP = 1.5;
|
|
@@ -43,18 +46,39 @@ const GridScrollAreaRawRoot = (0, _system.styled)('div', {
|
|
|
43
46
|
[`&.${_constants.gridClasses['scrollArea--left']}`]: styles['scrollArea--left']
|
|
44
47
|
}, {
|
|
45
48
|
[`&.${_constants.gridClasses['scrollArea--right']}`]: styles['scrollArea--right']
|
|
49
|
+
}, {
|
|
50
|
+
[`&.${_constants.gridClasses['scrollArea--up']}`]: styles['scrollArea--up']
|
|
51
|
+
}, {
|
|
52
|
+
[`&.${_constants.gridClasses['scrollArea--down']}`]: styles['scrollArea--down']
|
|
46
53
|
}, styles.scrollArea]
|
|
47
54
|
})(() => ({
|
|
48
55
|
position: 'absolute',
|
|
49
|
-
top: 0,
|
|
50
56
|
zIndex: 101,
|
|
51
|
-
|
|
52
|
-
bottom: 0,
|
|
57
|
+
// Horizontal scroll areas
|
|
53
58
|
[`&.${_constants.gridClasses['scrollArea--left']}`]: {
|
|
54
|
-
|
|
59
|
+
top: 0,
|
|
60
|
+
left: 0,
|
|
61
|
+
width: 20,
|
|
62
|
+
bottom: 0
|
|
55
63
|
},
|
|
56
64
|
[`&.${_constants.gridClasses['scrollArea--right']}`]: {
|
|
57
|
-
|
|
65
|
+
top: 0,
|
|
66
|
+
right: 0,
|
|
67
|
+
width: 20,
|
|
68
|
+
bottom: 0
|
|
69
|
+
},
|
|
70
|
+
// Vertical scroll areas
|
|
71
|
+
[`&.${_constants.gridClasses['scrollArea--up']}`]: {
|
|
72
|
+
top: 0,
|
|
73
|
+
left: 0,
|
|
74
|
+
right: 0,
|
|
75
|
+
height: 20
|
|
76
|
+
},
|
|
77
|
+
[`&.${_constants.gridClasses['scrollArea--down']}`]: {
|
|
78
|
+
bottom: 0,
|
|
79
|
+
left: 0,
|
|
80
|
+
right: 0,
|
|
81
|
+
height: 20
|
|
58
82
|
}
|
|
59
83
|
}));
|
|
60
84
|
const offsetSelector = (0, _createSelector.createSelector)(_gridDimensionsSelectors.gridDimensionsSelector, (dimensions, direction) => {
|
|
@@ -64,19 +88,27 @@ const offsetSelector = (0, _createSelector.createSelector)(_gridDimensionsSelect
|
|
|
64
88
|
if (direction === 'right') {
|
|
65
89
|
return dimensions.rightPinnedWidth + (dimensions.hasScrollX ? dimensions.scrollbarSize : 0);
|
|
66
90
|
}
|
|
91
|
+
// For vertical scroll areas, we don't need horizontal offset
|
|
67
92
|
return 0;
|
|
68
93
|
});
|
|
69
94
|
function GridScrollAreaWrapper(props) {
|
|
70
95
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
71
|
-
const [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
96
|
+
const [dragDirection, setDragDirection] = React.useState('none');
|
|
97
|
+
|
|
98
|
+
// Listen for both column and row drag events
|
|
99
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragStart', () => setDragDirection('horizontal'));
|
|
100
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragEnd', () => setDragDirection('none'));
|
|
101
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'rowDragStart', () => setDragDirection('vertical'));
|
|
102
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'rowDragEnd', () => setDragDirection('none'));
|
|
103
|
+
if (dragDirection === 'none') {
|
|
75
104
|
return null;
|
|
76
105
|
}
|
|
77
|
-
|
|
106
|
+
if (dragDirection === 'horizontal') {
|
|
107
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridHorizontalScrollAreaContent, (0, _extends2.default)({}, props));
|
|
108
|
+
}
|
|
109
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridVerticalScrollAreaContent, (0, _extends2.default)({}, props));
|
|
78
110
|
}
|
|
79
|
-
function
|
|
111
|
+
function GridHorizontalScrollAreaContent(props) {
|
|
80
112
|
const {
|
|
81
113
|
scrollDirection,
|
|
82
114
|
scrollPosition
|
|
@@ -100,26 +132,17 @@ function GridScrollAreaContent(props) {
|
|
|
100
132
|
}
|
|
101
133
|
return false;
|
|
102
134
|
};
|
|
103
|
-
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
104
135
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
105
|
-
const ownerState = (0, _extends2.default)({}, rootProps, {
|
|
106
|
-
scrollDirection
|
|
107
|
-
});
|
|
108
|
-
const classes = useUtilityClasses(ownerState);
|
|
109
136
|
const totalHeaderHeight = (0, _gridColumnsUtils.getTotalHeaderHeight)(apiRef, rootProps);
|
|
110
137
|
const headerHeight = Math.floor(rootProps.columnHeaderHeight * densityFactor);
|
|
111
|
-
const style = {
|
|
138
|
+
const style = (0, _extends2.default)({
|
|
112
139
|
height: headerHeight,
|
|
113
140
|
top: totalHeaderHeight - headerHeight
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
const handleScrolling = () => {
|
|
121
|
-
setCanScrollMore(getCanScrollMore);
|
|
122
|
-
};
|
|
141
|
+
}, scrollDirection === 'left' ? {
|
|
142
|
+
left: sideOffset
|
|
143
|
+
} : {}, scrollDirection === 'right' ? {
|
|
144
|
+
right: sideOffset
|
|
145
|
+
} : {});
|
|
123
146
|
const handleDragOver = (0, _useEventCallback.default)(event => {
|
|
124
147
|
let offset;
|
|
125
148
|
|
|
@@ -142,16 +165,99 @@ function GridScrollAreaContent(props) {
|
|
|
142
165
|
});
|
|
143
166
|
});
|
|
144
167
|
});
|
|
168
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridScrollAreaContent, (0, _extends2.default)({}, props, {
|
|
169
|
+
ref: rootRef,
|
|
170
|
+
getCanScrollMore: getCanScrollMore,
|
|
171
|
+
style: style,
|
|
172
|
+
handleDragOver: handleDragOver
|
|
173
|
+
}));
|
|
174
|
+
}
|
|
175
|
+
function GridVerticalScrollAreaContent(props) {
|
|
176
|
+
const {
|
|
177
|
+
scrollDirection,
|
|
178
|
+
scrollPosition
|
|
179
|
+
} = props;
|
|
180
|
+
const rootRef = React.useRef(null);
|
|
181
|
+
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
182
|
+
const timeout = (0, _useTimeout.useTimeout)();
|
|
183
|
+
const rowsMeta = (0, _useGridSelector.useGridSelector)(apiRef, _gridRowsMetaSelector.gridRowsMetaSelector);
|
|
184
|
+
const getCanScrollMore = () => {
|
|
185
|
+
const dimensions = (0, _gridDimensionsSelectors.gridDimensionsSelector)(apiRef);
|
|
186
|
+
if (scrollDirection === 'up') {
|
|
187
|
+
// Only render if the user has not reached yet the top of the list
|
|
188
|
+
return scrollPosition.current.top > 0;
|
|
189
|
+
}
|
|
190
|
+
if (scrollDirection === 'down') {
|
|
191
|
+
// Only render if the user has not reached yet the bottom of the list
|
|
192
|
+
const totalRowsHeight = rowsMeta.currentPageTotalHeight || 0;
|
|
193
|
+
const maxScrollTop = totalRowsHeight - dimensions.viewportInnerSize.height - dimensions.scrollbarSize;
|
|
194
|
+
return scrollPosition.current.top < maxScrollTop;
|
|
195
|
+
}
|
|
196
|
+
return false;
|
|
197
|
+
};
|
|
198
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
199
|
+
const totalHeaderHeight = (0, _gridColumnsUtils.getTotalHeaderHeight)(apiRef, rootProps);
|
|
200
|
+
const style = {
|
|
201
|
+
top: scrollDirection === 'up' ? totalHeaderHeight : undefined,
|
|
202
|
+
bottom: scrollDirection === 'down' ? 0 : undefined
|
|
203
|
+
};
|
|
204
|
+
const handleDragOver = (0, _useEventCallback.default)(event => {
|
|
205
|
+
let offset;
|
|
206
|
+
|
|
207
|
+
// Prevents showing the forbidden cursor
|
|
208
|
+
event.preventDefault();
|
|
209
|
+
if (scrollDirection === 'up') {
|
|
210
|
+
offset = event.clientY - rootRef.current.getBoundingClientRect().bottom;
|
|
211
|
+
} else if (scrollDirection === 'down') {
|
|
212
|
+
offset = Math.max(1, event.clientY - rootRef.current.getBoundingClientRect().top);
|
|
213
|
+
} else {
|
|
214
|
+
throw new Error('MUI X: Wrong drag direction');
|
|
215
|
+
}
|
|
216
|
+
offset = (offset - CLIFF) * SLOP + CLIFF;
|
|
217
|
+
|
|
218
|
+
// Avoid freeze and inertia.
|
|
219
|
+
timeout.start(0, () => {
|
|
220
|
+
apiRef.current.scroll({
|
|
221
|
+
left: scrollPosition.current.left,
|
|
222
|
+
top: scrollPosition.current.top + offset
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridScrollAreaContent, (0, _extends2.default)({}, props, {
|
|
227
|
+
ref: rootRef,
|
|
228
|
+
getCanScrollMore: getCanScrollMore,
|
|
229
|
+
style: style,
|
|
230
|
+
handleDragOver: handleDragOver
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
const GridScrollAreaContent = (0, _forwardRef.forwardRef)(function GridScrollAreaContent(props, ref) {
|
|
234
|
+
const {
|
|
235
|
+
scrollDirection,
|
|
236
|
+
getCanScrollMore,
|
|
237
|
+
style,
|
|
238
|
+
handleDragOver
|
|
239
|
+
} = props;
|
|
240
|
+
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
241
|
+
const [canScrollMore, setCanScrollMore] = React.useState(getCanScrollMore);
|
|
242
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
243
|
+
const ownerState = (0, _extends2.default)({}, rootProps, {
|
|
244
|
+
scrollDirection
|
|
245
|
+
});
|
|
246
|
+
const classes = useUtilityClasses(ownerState);
|
|
247
|
+
const handleScrolling = () => {
|
|
248
|
+
setCanScrollMore(getCanScrollMore);
|
|
249
|
+
};
|
|
145
250
|
(0, _useGridEvent.useGridEvent)(apiRef, 'scrollPositionChange', handleScrolling);
|
|
146
251
|
if (!canScrollMore) {
|
|
147
252
|
return null;
|
|
148
253
|
}
|
|
149
254
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridScrollAreaRawRoot, {
|
|
150
|
-
ref:
|
|
255
|
+
ref: ref,
|
|
151
256
|
className: classes.root,
|
|
152
257
|
ownerState: ownerState,
|
|
153
258
|
onDragOver: handleDragOver,
|
|
154
259
|
style: style
|
|
155
260
|
});
|
|
156
|
-
}
|
|
261
|
+
});
|
|
262
|
+
if (process.env.NODE_ENV !== "production") GridScrollAreaContent.displayName = "GridScrollAreaContent";
|
|
157
263
|
const GridScrollArea = exports.GridScrollArea = (0, _fastMemo.fastMemo)(GridScrollAreaWrapper);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
3
|
+
'use client';
|
|
2
4
|
|
|
3
5
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
6
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
@@ -23,8 +25,6 @@ var _assert = require("../../utils/assert");
|
|
|
23
25
|
var _GridShadowScrollArea = require("../GridShadowScrollArea");
|
|
24
26
|
var _gridPivotingSelectors = require("../../hooks/features/pivoting/gridPivotingSelectors");
|
|
25
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
27
|
-
|
|
28
28
|
const useUtilityClasses = ownerState => {
|
|
29
29
|
const {
|
|
30
30
|
classes
|
|
@@ -629,11 +629,6 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
629
629
|
},
|
|
630
630
|
'&.Mui-selected': selectedStyles
|
|
631
631
|
},
|
|
632
|
-
[`& .${_gridClasses.gridClasses['container--top']}, & .${_gridClasses.gridClasses['container--bottom']}`]: {
|
|
633
|
-
'[role=row]': {
|
|
634
|
-
background: _cssVariables.vars.colors.background.base
|
|
635
|
-
}
|
|
636
|
-
},
|
|
637
632
|
/* Cell styles */
|
|
638
633
|
[`& .${_gridClasses.gridClasses.cell}`]: {
|
|
639
634
|
flex: '0 0 auto',
|
|
@@ -847,6 +842,8 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
|
|
|
847
842
|
[`&.${_gridClasses.gridClasses['scrollbarFiller--pinnedRight']}`]: {
|
|
848
843
|
backgroundColor: _cssVariables.vars.cell.background.pinned,
|
|
849
844
|
position: 'sticky',
|
|
845
|
+
zIndex: 40,
|
|
846
|
+
// Should be above the column separator
|
|
850
847
|
right: 0
|
|
851
848
|
}
|
|
852
849
|
},
|