@mui/x-data-grid 8.1.0 → 8.3.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 +233 -7
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/useDataGridProps.js +5 -4
- package/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridStringOperators.d.ts +1 -1
- package/components/GridDetailPanels.d.ts +1 -1
- package/components/GridPinnedRows.d.ts +1 -1
- package/components/GridRow.d.ts +1 -1
- package/components/GridScrollArea.js +1 -2
- package/components/base/GridOverlays.js +2 -3
- package/components/cell/GridActionsCellItem.d.ts +1 -1
- package/components/cell/GridBooleanCell.d.ts +2 -2
- package/components/cell/GridEditInputCell.js +3 -3
- package/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/components/cell/index.d.ts +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +4 -0
- package/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/components/columnsManagement/utils.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/components/export/ExportCsv.d.ts +1 -1
- package/components/export/ExportPrint.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/components/panel/GridPanel.js +0 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/components/panel/filterPanel/index.d.ts +2 -2
- package/components/quickFilter/QuickFilter.d.ts +1 -1
- package/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/index.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +1 -1
- package/esm/DataGrid/useDataGridProps.js +6 -5
- package/esm/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/esm/colDef/gridNumericOperators.d.ts +2 -2
- package/esm/colDef/gridStringOperators.d.ts +1 -1
- package/esm/components/GridDetailPanels.d.ts +1 -1
- package/esm/components/GridPinnedRows.d.ts +1 -1
- package/esm/components/GridRow.d.ts +1 -1
- package/esm/components/GridScrollArea.js +1 -2
- package/esm/components/base/GridOverlays.js +2 -3
- package/esm/components/cell/GridActionsCellItem.d.ts +1 -1
- package/esm/components/cell/GridBooleanCell.d.ts +2 -2
- package/esm/components/cell/GridEditInputCell.js +3 -3
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/esm/components/cell/index.d.ts +1 -1
- package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.js +4 -0
- package/esm/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/esm/components/columnsManagement/utils.d.ts +1 -1
- package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/esm/components/export/ExportCsv.d.ts +1 -1
- package/esm/components/export/ExportPrint.d.ts +1 -1
- package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/esm/components/panel/GridPanel.js +0 -1
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/esm/components/panel/filterPanel/index.d.ts +2 -2
- package/esm/components/quickFilter/QuickFilter.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/esm/components/toolbar/index.d.ts +1 -1
- package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/esm/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/esm/hooks/core/index.d.ts +1 -1
- package/esm/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridProps.d.ts +3 -3
- package/esm/hooks/core/useGridRefs.d.ts +1 -1
- package/esm/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/esm/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/esm/hooks/features/columnGrouping/index.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/esm/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/esm/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/esm/hooks/features/dataSource/cache.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/esm/hooks/features/dataSource/models.d.ts +3 -3
- package/esm/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/esm/hooks/features/dataSource/utils.d.ts +1 -1
- package/esm/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/esm/hooks/features/dimensions/index.d.ts +2 -2
- package/esm/hooks/features/editing/useGridCellEditing.js +2 -1
- package/esm/hooks/features/editing/useGridRowEditing.js +7 -6
- package/esm/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/esm/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/esm/hooks/features/export/useGridPrintExport.js +3 -34
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/esm/hooks/features/filter/index.d.ts +2 -2
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/esm/hooks/features/listView/useGridListView.d.ts +1 -1
- package/esm/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/esm/hooks/features/pagination/index.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/esm/hooks/features/rowSelection/utils.d.ts +4 -4
- package/esm/hooks/features/rowSelection/utils.js +1 -1
- package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/esm/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/esm/hooks/features/rows/index.d.ts +1 -1
- package/esm/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/esm/hooks/features/sorting/index.d.ts +2 -2
- package/esm/hooks/features/statePersistence/index.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/esm/hooks/utils/index.d.ts +1 -1
- package/esm/hooks/utils/useGridEvent.d.ts +1 -1
- package/esm/hooks/utils/useGridRootProps.d.ts +1 -1
- package/esm/hooks/utils/useGridSelector.d.ts +2 -2
- package/esm/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/esm/index.d.ts +5 -5
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +24 -24
- package/esm/locales/hrHR.d.ts +1 -1
- package/esm/locales/ptPT.d.ts +1 -1
- package/esm/locales/zhHK.d.ts +1 -1
- package/esm/material/index.d.ts +2 -2
- package/esm/material/index.js +30 -25
- package/esm/material/variables.js +2 -2
- package/esm/models/api/gridApiCommon.d.ts +32 -32
- package/esm/models/api/gridApiCommunity.d.ts +7 -7
- package/esm/models/api/gridCallbackDetails.d.ts +2 -2
- package/esm/models/api/gridColumnApi.d.ts +1 -1
- package/esm/models/api/gridCoreApi.d.ts +4 -4
- package/esm/models/api/gridFilterApi.d.ts +1 -1
- package/esm/models/api/gridLocaleTextApi.d.ts +1 -1
- package/esm/models/api/gridRowSelectionApi.d.ts +2 -2
- package/esm/models/api/index.d.ts +10 -10
- package/esm/models/colDef/gridColDef.d.ts +2 -2
- package/esm/models/colDef/index.d.ts +1 -1
- package/esm/models/configuration/gridConfiguration.d.ts +2 -2
- package/esm/models/controlStateItem.d.ts +4 -4
- package/esm/models/events/gridEventListener.d.ts +2 -2
- package/esm/models/events/gridEventLookup.d.ts +14 -8
- package/esm/models/events/gridEventPublisher.d.ts +1 -1
- package/esm/models/gridCell.d.ts +1 -1
- package/esm/models/gridColumnGrouping.d.ts +1 -1
- package/esm/models/gridDataSource.d.ts +1 -1
- package/esm/models/gridEditRowModel.d.ts +1 -1
- package/esm/models/gridExport.d.ts +2 -2
- package/esm/models/gridFilterInputComponent.d.ts +2 -2
- package/esm/models/gridFilterOperator.d.ts +4 -4
- package/esm/models/gridRowSelectionManager.d.ts +2 -2
- package/esm/models/gridRows.d.ts +1 -1
- package/esm/models/gridSlotsComponent.d.ts +3 -3
- package/esm/models/gridSlotsComponentsProps.d.ts +20 -20
- package/esm/models/gridStateCommunity.d.ts +9 -9
- package/esm/models/index.d.ts +5 -5
- package/esm/models/params/gridCellParams.d.ts +1 -1
- package/esm/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/esm/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/esm/models/params/gridColumnResizeParams.d.ts +1 -1
- package/esm/models/params/gridRowParams.d.ts +1 -1
- package/esm/models/props/DataGridProps.d.ts +5 -5
- package/esm/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
- package/esm/utils/composeGridClasses.d.ts +1 -1
- package/esm/utils/css/context.js +4 -1
- package/esm/utils/domUtils.d.ts +2 -2
- package/esm/utils/getGridLocalization.d.ts +1 -1
- package/esm/utils/getPublicApiRef.d.ts +1 -1
- package/esm/utils/index.d.ts +1 -1
- package/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridProps.d.ts +3 -3
- package/hooks/core/useGridRefs.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/hooks/features/columnGrouping/index.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/dataSource/cache.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/hooks/features/dataSource/models.d.ts +3 -3
- package/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/hooks/features/dataSource/utils.d.ts +1 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/hooks/features/dimensions/index.d.ts +2 -2
- package/hooks/features/editing/useGridCellEditing.js +2 -1
- package/hooks/features/editing/useGridRowEditing.js +6 -5
- package/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +3 -34
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/hooks/features/filter/index.d.ts +2 -2
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/hooks/features/pagination/index.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/hooks/features/rowSelection/utils.d.ts +4 -4
- package/hooks/features/rowSelection/utils.js +1 -1
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/hooks/features/sorting/index.d.ts +2 -2
- package/hooks/features/statePersistence/index.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/useGridEvent.d.ts +1 -1
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/index.d.ts +5 -5
- package/index.js +1 -1
- package/internals/index.d.ts +24 -24
- package/locales/hrHR.d.ts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/zhHK.d.ts +1 -1
- package/material/index.d.ts +2 -2
- package/material/index.js +30 -25
- package/material/variables.js +1 -1
- package/models/api/gridApiCommon.d.ts +32 -32
- package/models/api/gridApiCommunity.d.ts +7 -7
- package/models/api/gridCallbackDetails.d.ts +2 -2
- package/models/api/gridColumnApi.d.ts +1 -1
- package/models/api/gridCoreApi.d.ts +4 -4
- package/models/api/gridFilterApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -1
- package/models/api/gridRowSelectionApi.d.ts +2 -2
- package/models/api/index.d.ts +10 -10
- package/models/colDef/gridColDef.d.ts +2 -2
- package/models/colDef/index.d.ts +1 -1
- package/models/configuration/gridConfiguration.d.ts +2 -2
- package/models/controlStateItem.d.ts +4 -4
- package/models/events/gridEventListener.d.ts +2 -2
- package/models/events/gridEventLookup.d.ts +14 -8
- package/models/events/gridEventPublisher.d.ts +1 -1
- package/models/gridCell.d.ts +1 -1
- package/models/gridColumnGrouping.d.ts +1 -1
- package/models/gridDataSource.d.ts +1 -1
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFilterInputComponent.d.ts +2 -2
- package/models/gridFilterOperator.d.ts +4 -4
- package/models/gridRowSelectionManager.d.ts +2 -2
- package/models/gridRows.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +3 -3
- package/models/gridSlotsComponentsProps.d.ts +20 -20
- package/models/gridStateCommunity.d.ts +9 -9
- package/models/index.d.ts +5 -5
- package/models/params/gridCellParams.d.ts +1 -1
- package/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/models/params/gridColumnResizeParams.d.ts +1 -1
- package/models/params/gridRowParams.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +5 -5
- package/package.json +4 -4
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
- package/utils/composeGridClasses.d.ts +1 -1
- package/utils/css/context.js +4 -1
- package/utils/domUtils.d.ts +2 -2
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,235 @@
|
|
|
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.3.0
|
|
9
|
+
|
|
10
|
+
_May 8, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🎨 Added new styling options and shapes for `<FunnelChart />`, including `variant`, `borderRadius`, `pyramid`, and `step-pyramid` curves.
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
|
|
18
|
+
Special thanks go out to this community member for a valuable contribution:
|
|
19
|
+
@ptuukkan.
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @rita-codes, @romgrk.
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.3.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix cell editing of computed columns with data source (#17684) @ptuukkan
|
|
28
|
+
- [DataGrid] Fix lazy loading crash with `isRowSelectable` prop (#17629) @MBilalShafi
|
|
29
|
+
- [DataGrid] Fix: use CSS nonce (#17726) @romgrk
|
|
30
|
+
- [DataGrid] Ignore `preProcessEditCellProps` for non-editable columns when starting a row update (#17732) @arminmeh
|
|
31
|
+
- [DataGrid] Avoid applying row selection propagation on filtered rows (#17739) @MBilalShafi
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.3.0`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@8.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@8.3.0`.
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@8.3.0`
|
|
44
|
+
|
|
45
|
+
- [DateTimePicker] Fix focus behavior on desktop variant (#17719) @LukasTy
|
|
46
|
+
- [pickers] Avoid `DigitalClock` stealing focus from a Picker open button on close (#17686) @LukasTy
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@8.3.0`, plus:
|
|
51
|
+
|
|
52
|
+
- [DateRangePicker] Fix to reset range position after closing mobile Picker (#17631) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
- The `<FunnelChart />` series now accepts a `variant='outlined'` prop for a simpler style.
|
|
57
|
+
<img width="398" alt="Screenshot 2025-05-06 at 20 36 12" src="https://github.com/user-attachments/assets/00fef14f-9026-421e-a4b6-7e081adce1e8" />
|
|
58
|
+
|
|
59
|
+
- Add a `borderRadius` property to `<FunnelChart />`. All funnels have `8px` as a default value.
|
|
60
|
+
<img width="386" alt="Screenshot 2025-05-06 at 14 00 20" src="https://github.com/user-attachments/assets/4f4cc0e7-01ce-4ed6-a0e1-a387f78def23" />
|
|
61
|
+
|
|
62
|
+
- Add a `pyramid` curve to `<FunnelChart />`, which allows creation of a pyramid-shaped funnel.
|
|
63
|
+
<img width="344" alt="Screenshot 2025-05-06 at 14 32 59" src="https://github.com/user-attachments/assets/0b2896e0-0478-4766-bb1b-258a4977a751" />
|
|
64
|
+
|
|
65
|
+
- Add a `step-pyramid` curve to `<FunnelChart />`, which creates a stepped-pyramid like shape.
|
|
66
|
+
<img width="344" alt="Screenshot 2025-05-06 at 14 33 03" src="https://github.com/user-attachments/assets/894f0ab3-7898-40fe-b0df-560feea4085a" />
|
|
67
|
+
|
|
68
|
+
#### `@mui/x-charts@8.3.0`
|
|
69
|
+
|
|
70
|
+
- [charts] Add charts toolbar with zoom options (#17615) @bernardobelchior
|
|
71
|
+
- [charts] Add zoom slider (#17496) @bernardobelchior
|
|
72
|
+
- [charts] Cleanup compiler warnings (#17360) @alexfauquette
|
|
73
|
+
- [charts] Fix `<PieArcLabel />` not taking `arcLabelRadius` into account (#17655) @bernardobelchior
|
|
74
|
+
- [charts] Fix spark line not having clip path (#17501) @bernardobelchior
|
|
75
|
+
- [charts] Fix type issue with ESM (#17624) @alexfauquette
|
|
76
|
+
- [charts] Improve `<MarkElement />` performance (#17546) @bernardobelchior
|
|
77
|
+
- [charts] Rename `materialSlots` internal constant (#17710) @bernardobelchior
|
|
78
|
+
- [charts] Update zoom slider design (#17682) @bernardobelchior
|
|
79
|
+
- [charts] Fix zoom being documented as available for heatmap (#17657) @bernardobelchior
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-charts-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
82
|
+
|
|
83
|
+
Same changes as in `@mui/x-charts@8.3.0`, plus:
|
|
84
|
+
|
|
85
|
+
- [charts-pro] Add `pyramid` curve to `<FunnelChart />` (#17665) @JCQuintas
|
|
86
|
+
- [charts-pro] Add `variant='outlined'` to `<FunnelChart />` series (#17661) @JCQuintas
|
|
87
|
+
- [charts-pro] Add a `borderRadius` property to `<FunnelChart />` (#17660) @JCQuintas
|
|
88
|
+
|
|
89
|
+
### Tree View
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-tree-view@8.3.0`
|
|
92
|
+
|
|
93
|
+
- [tree view] Bug fix - Escape does not cancel Drag n Drop (#17735) @rita-codes
|
|
94
|
+
- [tree view] Fix keyboard navigation error (#17685) @rita-codes
|
|
95
|
+
- [tree view] Continue cleaning the plugin system (#17386) @flaviendelangle
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-tree-view-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-tree-view@8.3.0`.
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- [charts] Add population pyramid demo (#17652) @bernardobelchior
|
|
104
|
+
- [charts] Fix randomised argos test (#17658) @JCQuintas
|
|
105
|
+
- [docs] Make preview messaging consistent in charts @bernardobelchior
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- [code-infra] Avoid `node` types in the built packages (#17533) @LukasTy
|
|
110
|
+
- [code-infra] Add `pkg.pr.new` publishing (#17402) @Janpot
|
|
111
|
+
- [code-infra] Normalize author package in org @oliviertassinari
|
|
112
|
+
- [code-infra] Remove required checkout step (#17729) @JCQuintas
|
|
113
|
+
- [docs-infra] Normalize netlify.toml in org @oliviertassinari
|
|
114
|
+
|
|
115
|
+
## 8.2.0
|
|
116
|
+
|
|
117
|
+
_May 1, 2025_
|
|
118
|
+
|
|
119
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
120
|
+
|
|
121
|
+
- 📊 `<FunnelChart/>` now uses the `strawberrySky` sequential color palette by default.
|
|
122
|
+
<img width="481" alt="Screenshot 2025-04-29 at 13 55 21" src="https://github.com/user-attachments/assets/182085d1-a7ce-4e4d-9d8d-a4fe87f27167" />
|
|
123
|
+
- 📊 Add API to export a chart as an image: `apiRef.exportAsImage` — [Learn more](https://mui.com/x/react-charts/export/#export-as-image).
|
|
124
|
+
|
|
125
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
126
|
+
@federico-ntr, @nusr.
|
|
127
|
+
Following are all team members who have contributed to this release:
|
|
128
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk.
|
|
129
|
+
|
|
130
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
131
|
+
|
|
132
|
+
### Data Grid
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-data-grid@8.2.0`
|
|
135
|
+
|
|
136
|
+
- [DataGrid] Fix panel alignment (#17625) @KenanYusuf
|
|
137
|
+
- [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17490) @KenanYusuf
|
|
138
|
+
- [DataGrid] Fix circular reference error (#17591) @romgrk
|
|
139
|
+
- [DataGrid] Fix `<GridEditInputCell />` break input (#16773) @nusr
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-data-grid-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
142
|
+
|
|
143
|
+
Same changes as in `@mui/x-data-grid@8.2.0`, plus:
|
|
144
|
+
|
|
145
|
+
- [DataGridPro] Use intersection observer to trigger server-side infinite loading (#17369) @arminmeh
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-data-grid-premium@8.2.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-data-grid-pro@8.2.0`.
|
|
150
|
+
|
|
151
|
+
### Date and Time Pickers
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-date-pickers@8.2.0`
|
|
154
|
+
|
|
155
|
+
- [l10n] Improve Italian (it-IT) locale (#17600) @federico-ntr
|
|
156
|
+
- [pickers] Refactor owner state typing (#17517) @LukasTy
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-date-pickers-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
159
|
+
|
|
160
|
+
Same changes as in `@mui/x-date-pickers@8.2.0`.
|
|
161
|
+
|
|
162
|
+
### Charts
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-charts@8.2.0`
|
|
165
|
+
|
|
166
|
+
- [charts] Add library name to errors (#17547) @bernardobelchior
|
|
167
|
+
- [charts] Add monochrome palettes (#17610) @JCQuintas
|
|
168
|
+
- [charts] Add screenshot of the tooltip (#17395) @alexfauquette
|
|
169
|
+
- [charts] Default bar chart x-axis scale type to band (#17519) @bernardobelchior
|
|
170
|
+
- [charts] Document axis ID uniqueness constraints (#17630) @bernardobelchior
|
|
171
|
+
- [charts] Refactor axis types (#17632) @bernardobelchior
|
|
172
|
+
- [charts] Use `<circle />` for circular legend mark (#17590) @alexfauquette
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-charts@8.2.0`, plus:
|
|
177
|
+
|
|
178
|
+
- [charts-pro] Add `gap` option to `<FunnelChart />` (#17642) @JCQuintas
|
|
179
|
+
- [charts-pro] Export charts as image (#17353) @bernardobelchior
|
|
180
|
+
- [charts-pro] Simplify zoom testing (#17525) @JCQuintas
|
|
181
|
+
- [charts-pro] Use new sequential color palette in `<FunnelChart />` (#17606) @JCQuintas
|
|
182
|
+
|
|
183
|
+
### Tree View
|
|
184
|
+
|
|
185
|
+
#### `@mui/x-tree-view@8.2.0`
|
|
186
|
+
|
|
187
|
+
Internal changes.
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-tree-view-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-tree-view@8.2.0`.
|
|
192
|
+
|
|
193
|
+
### Docs
|
|
194
|
+
|
|
195
|
+
- [docs][charts] Add composition sections (#17377) @alexfauquette
|
|
196
|
+
- [docs][charts] Add docs on tooltip style (#17601) @bernardobelchior
|
|
197
|
+
- [docs][charts] Fix highlighting heading structure (#17581) @oliviertassinari
|
|
198
|
+
- [docs][charts] Improve export docs (#17538) @oliviertassinari
|
|
199
|
+
- [docs][charts] Similar introduction on most charts pages (#17374) @alexfauquette
|
|
200
|
+
- [docs][DataGrid] Clear component docs (#17540) @oliviertassinari
|
|
201
|
+
- [docs] Explicitly state that `groupingColDef` reference needs to be stable (#17544) @arminmeh
|
|
202
|
+
- [docs] Fix <kbd> a11y (#17536) @oliviertassinari
|
|
203
|
+
- [docs] Fix CodeSandbox spelling @oliviertassinari
|
|
204
|
+
- [docs] Fix coding style function @oliviertassinari
|
|
205
|
+
- [docs] Fix migration guide format (#17450) @oliviertassinari
|
|
206
|
+
- [docs] Improve data grid export docs (#17551) @MBilalShafi
|
|
207
|
+
- [docs] Remove leftover `@next` usages (#17542) @LukasTy
|
|
208
|
+
|
|
209
|
+
### Core
|
|
210
|
+
|
|
211
|
+
- [core] Add security label to dependabot PRs @oliviertassinari
|
|
212
|
+
- [core] Allow post-install vale @oliviertassinari
|
|
213
|
+
- [core] Component consistency @oliviertassinari
|
|
214
|
+
- [core] Fix all Vale errors @oliviertassinari
|
|
215
|
+
- [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
|
|
216
|
+
- [core] Remove empty version (#17582) @oliviertassinari
|
|
217
|
+
- [core] Remove eslint from codemod spec files (#17443) @alexfauquette
|
|
218
|
+
- [core] Remove unnecessary versions (#17597) @oliviertassinari
|
|
219
|
+
- [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
|
|
220
|
+
- [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
|
|
221
|
+
- [code-infra] Fix date-time sensitive tests (#17644) @JCQuintas
|
|
222
|
+
- [code-infra] Fix extension handling for type imports (#17636) @Janpot
|
|
223
|
+
- [code-infra] Further remove `clock=fake` and add `async act` for datagrid (#17563) @JCQuintas
|
|
224
|
+
- [code-infra] Latest vitest picker changes (#17577) @JCQuintas
|
|
225
|
+
- [docs-infra] Fix Vale no longer working (#17602) @alexfauquette
|
|
226
|
+
- [docs-infra] Uniformize Vale between repositories @oliviertassinari
|
|
227
|
+
- [infra] Updates to `branch switch comments` (#17589) @michelengelen
|
|
228
|
+
- [x-telemetry] Fix issue with get machineid hash (#17614) @hasdfa
|
|
229
|
+
|
|
8
230
|
## 8.1.0
|
|
9
231
|
|
|
10
232
|
_Apr 24, 2025_
|
|
11
233
|
|
|
12
234
|
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
235
|
|
|
14
|
-
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
236
|
+
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
15
237
|
- 📚 Documentation improvements
|
|
16
238
|
- 🐞 Bugfixes
|
|
17
239
|
|
|
@@ -56,7 +278,7 @@ Same changes as in `@mui/x-date-pickers@8.1.0`.
|
|
|
56
278
|
|
|
57
279
|
### Charts
|
|
58
280
|
|
|
59
|
-
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
281
|
+
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
60
282
|
|
|
61
283
|
#### `@mui/x-charts@8.1.0`
|
|
62
284
|
|
|
@@ -1821,7 +2043,7 @@ Same changes as in `@mui/x-tree-view@8.0.0-alpha.8`.
|
|
|
1821
2043
|
- [docs] Add example for custom legend (#16169) @alexfauquette
|
|
1822
2044
|
- [docs] Add full custom field creation example (#15194) @flaviendelangle
|
|
1823
2045
|
- [docs] Copyedit the Data Grid cell selection page (#16099) @samuelsycamore
|
|
1824
|
-
- [docs] Fix demo rendering issue on
|
|
2046
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16118) @arminmeh
|
|
1825
2047
|
- [docs] Remove broken links (#16167) @alexfauquette
|
|
1826
2048
|
- [docs] Split the Data Grid editing page (#14931) @MBilalShafi
|
|
1827
2049
|
- [docs] Fix wrong props warnings (#16119) @JCQuintas
|
|
@@ -2268,7 +2490,7 @@ Releasing to benefit from license package fix (#15814).
|
|
|
2268
2490
|
|
|
2269
2491
|
- [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
|
|
2270
2492
|
- [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
|
|
2271
|
-
- [license] Use `console.log` for the error message on
|
|
2493
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15814) @arminmeh
|
|
2272
2494
|
|
|
2273
2495
|
## 8.0.0-alpha.3
|
|
2274
2496
|
|
|
@@ -2484,6 +2706,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2484
2706
|
|
|
2485
2707
|
### Docs
|
|
2486
2708
|
|
|
2709
|
+
<!-- vale MUI.CorrectRererenceCased = NO -->
|
|
2710
|
+
|
|
2487
2711
|
- [docs] Fix 404 links (#15575) @oliviertassinari
|
|
2488
2712
|
- [docs] Fix bash comments (#15571) @oliviertassinari
|
|
2489
2713
|
- [docs] Fix Pickers theme augmentation example (#15672) @LukasTy
|
|
@@ -2493,6 +2717,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2493
2717
|
- [docs] Fix `anchorEl` API page for charts (#15625) @oliviertassinari
|
|
2494
2718
|
- [docs] Add documentation for the list view feature (#15344) @KenanYusuf
|
|
2495
2719
|
|
|
2720
|
+
<!-- vale MUI.CorrectRererenceCased = YES -->
|
|
2721
|
+
|
|
2496
2722
|
### Core
|
|
2497
2723
|
|
|
2498
2724
|
- [core] Follow `()` function convention for docs @oliviertassinari
|
|
@@ -3401,7 +3627,7 @@ Same changes as in `@mui/x-tree-view@7.24.0`.
|
|
|
3401
3627
|
### Docs
|
|
3402
3628
|
|
|
3403
3629
|
- [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
|
|
3404
|
-
- [docs] Fix demo rendering issue on
|
|
3630
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16129) @arminmeh
|
|
3405
3631
|
|
|
3406
3632
|
### Core
|
|
3407
3633
|
|
|
@@ -3679,7 +3905,7 @@ Releasing to benefit from license package fix (#15818).
|
|
|
3679
3905
|
### Core
|
|
3680
3906
|
|
|
3681
3907
|
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
3682
|
-
- [license] Use `console.log` for the error message on
|
|
3908
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15818) @arminmeh
|
|
3683
3909
|
|
|
3684
3910
|
## 7.23.1
|
|
3685
3911
|
|
|
@@ -7020,7 +7246,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
|
7020
7246
|
/>
|
|
7021
7247
|
```
|
|
7022
7248
|
|
|
7023
|
-
- The headless field hooks (
|
|
7249
|
+
- The headless field hooks (for example `useDateField()`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
7024
7250
|
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
|
|
7025
7251
|
Learn more about this new accessible DOM structure in the [v8 migration guide](https://v7.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
|
|
7026
7252
|
|
package/DataGrid/DataGrid.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataGridProps } from "../models/props/DataGridProps.js";
|
|
3
3
|
import { GridValidRowModel } from "../models/gridRows.js";
|
|
4
|
-
export type { GridSlotsComponent as GridSlots } from
|
|
4
|
+
export type { GridSlotsComponent as GridSlots } from "../models/index.js";
|
|
5
5
|
interface DataGridComponent {
|
|
6
6
|
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
7
7
|
propTypes?: any;
|
|
@@ -9,6 +9,7 @@ exports.useDataGridProps = void 0;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _styles = require("@mui/material/styles");
|
|
12
|
+
var _system = require("@mui/system");
|
|
12
13
|
var _constants = require("../constants");
|
|
13
14
|
var _defaultGridSlotsComponents = require("../constants/defaultGridSlotsComponents");
|
|
14
15
|
var _utils = require("../internals/utils");
|
|
@@ -32,12 +33,12 @@ const getDataGridForcedProps = themedProps => (0, _extends2.default)({}, DATA_GR
|
|
|
32
33
|
} : {});
|
|
33
34
|
const defaultSlots = _defaultGridSlotsComponents.DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
34
35
|
const useDataGridProps = inProps => {
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
(0, _styles.useThemeProps)({
|
|
36
|
+
const theme = (0, _styles.useTheme)();
|
|
37
|
+
const themedProps = React.useMemo(() => (0, _system.getThemeProps)({
|
|
38
38
|
props: inProps,
|
|
39
|
+
theme,
|
|
39
40
|
name: 'MuiDataGrid'
|
|
40
|
-
});
|
|
41
|
+
}), [theme, inProps]);
|
|
41
42
|
const localeText = React.useMemo(() => (0, _extends2.default)({}, _constants.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
42
43
|
const slots = React.useMemo(() => (0, _utils.computeSlots)({
|
|
43
44
|
defaultSlots,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GridColumnTypesRecord } from
|
|
1
|
+
import type { GridColumnTypesRecord } from "../models/colDef/gridColumnTypesRecord.js";
|
|
2
2
|
export declare const DEFAULT_GRID_COL_TYPE_KEY = "string";
|
|
3
3
|
export declare const getGridDefaultColumnTypes: () => GridColumnTypesRecord;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridFilterOperator } from "../models/gridFilterOperator.js";
|
|
2
|
-
import type { GridFilterInputValueProps } from
|
|
3
|
-
import type { GetApplyQuickFilterFn } from
|
|
2
|
+
import type { GridFilterInputValueProps } from "../models/gridFilterInputComponent.js";
|
|
3
|
+
import type { GetApplyQuickFilterFn } from "../models/colDef/gridColDef.js";
|
|
4
4
|
export declare const getGridNumericQuickFilterFn: GetApplyQuickFilterFn<any, number | string | null>;
|
|
5
5
|
export declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any, GridFilterInputValueProps & {
|
|
6
6
|
type?: "number";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetApplyQuickFilterFn } from
|
|
1
|
+
import type { GetApplyQuickFilterFn } from "../models/colDef/gridColDef.js";
|
|
2
2
|
import { GridFilterOperator } from "../models/gridFilterOperator.js";
|
|
3
3
|
export declare const getGridStringQuickFilterFn: GetApplyQuickFilterFn<any, unknown>;
|
|
4
4
|
export declare const getGridStringOperators: (disableTrim?: boolean) => GridFilterOperator<any, number | string | null, any>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VirtualScroller } from
|
|
1
|
+
import type { VirtualScroller } from "../hooks/features/virtualization/useGridVirtualScroller.js";
|
|
2
2
|
export interface GridDetailPanelsProps {
|
|
3
3
|
virtualScroller: VirtualScroller;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VirtualScroller } from
|
|
1
|
+
import type { VirtualScroller } from "../hooks/features/virtualization/useGridVirtualScroller.js";
|
|
2
2
|
export interface GridPinnedRowsProps {
|
|
3
3
|
position: 'top' | 'bottom';
|
|
4
4
|
virtualScroller: VirtualScroller;
|
package/components/GridRow.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridRowId, GridRowModel } from "../models/gridRows.js";
|
|
3
3
|
import { GridPinnedColumns } from "../hooks/features/columns/index.js";
|
|
4
|
-
import type { GridStateColDef } from
|
|
4
|
+
import type { GridStateColDef } from "../models/colDef/gridColDef.js";
|
|
5
5
|
export interface GridRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
row: GridRowModel;
|
|
7
7
|
rowId: GridRowId;
|
|
@@ -9,7 +9,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.GridScrollArea = void 0;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
12
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
14
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
14
|
var _system = require("@mui/system");
|
|
@@ -149,7 +148,7 @@ function GridScrollAreaContent(props) {
|
|
|
149
148
|
}
|
|
150
149
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridScrollAreaRawRoot, {
|
|
151
150
|
ref: rootRef,
|
|
152
|
-
className:
|
|
151
|
+
className: classes.root,
|
|
153
152
|
ownerState: ownerState,
|
|
154
153
|
onDragOver: handleDragOver,
|
|
155
154
|
style: style
|
|
@@ -11,7 +11,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _system = require("@mui/system");
|
|
13
13
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
14
|
var _gridRowsUtils = require("../../hooks/features/rows/gridRowsUtils");
|
|
16
15
|
var _useGridSelector = require("../../hooks/utils/useGridSelector");
|
|
17
16
|
var _dimensions = require("../../hooks/features/dimensions");
|
|
@@ -70,11 +69,11 @@ function GridOverlayWrapper(props) {
|
|
|
70
69
|
classes: rootProps.classes
|
|
71
70
|
}));
|
|
72
71
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridOverlayWrapperRoot, (0, _extends2.default)({
|
|
73
|
-
className:
|
|
72
|
+
className: classes.root
|
|
74
73
|
}, props, {
|
|
75
74
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
76
75
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GridOverlayWrapperInner, (0, _extends2.default)({
|
|
77
|
-
className:
|
|
76
|
+
className: classes.inner,
|
|
78
77
|
style: {
|
|
79
78
|
height,
|
|
80
79
|
width: dimensions.viewportOuterSize.width
|
|
@@ -44,7 +44,7 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
44
44
|
} & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) | Omit<GridActionsCellItemCommonProps & {
|
|
45
45
|
showInMenu?: false;
|
|
46
46
|
icon: React.ReactElement<any>;
|
|
47
|
-
} & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
|
|
47
|
+
} & Omit<Omit<import("../../models/gridBaseSlots.js").ButtonProps, "startIcon"> & {
|
|
48
48
|
label?: string;
|
|
49
49
|
color?: "default" | "inherit" | "primary";
|
|
50
50
|
edge?: "start" | "end" | false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridColDef } from
|
|
3
|
-
import type { GridRenderCellParams } from
|
|
2
|
+
import type { GridColDef } from "../../models/colDef/gridColDef.js";
|
|
3
|
+
import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
|
|
4
4
|
interface GridBooleanCellProps extends GridRenderCellParams {
|
|
5
5
|
hideDescendantCount?: boolean;
|
|
6
6
|
}
|
|
@@ -60,9 +60,6 @@ const GridEditInputCell = exports.GridEditInputCell = (0, _forwardRef.forwardRef
|
|
|
60
60
|
const classes = useUtilityClasses(rootProps);
|
|
61
61
|
const handleChange = React.useCallback(async event => {
|
|
62
62
|
const newValue = event.target.value;
|
|
63
|
-
if (onValueChange) {
|
|
64
|
-
await onValueChange(event, newValue);
|
|
65
|
-
}
|
|
66
63
|
const column = apiRef.current.getColumn(field);
|
|
67
64
|
let parsedValue = newValue;
|
|
68
65
|
if (column.valueParser) {
|
|
@@ -76,6 +73,9 @@ const GridEditInputCell = exports.GridEditInputCell = (0, _forwardRef.forwardRef
|
|
|
76
73
|
debounceMs,
|
|
77
74
|
unstable_skipValueParser: true
|
|
78
75
|
}, event);
|
|
76
|
+
if (onValueChange) {
|
|
77
|
+
await onValueChange(event, newValue);
|
|
78
|
+
}
|
|
79
79
|
}, [apiRef, debounceMs, field, id, onValueChange]);
|
|
80
80
|
const meta = apiRef.current.unstable_getEditCellMeta(id, field);
|
|
81
81
|
React.useEffect(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
import { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
|
|
4
4
|
export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GridCell } from "./GridCell.js";
|
|
2
|
-
export type { GridCellProps } from
|
|
2
|
+
export type { GridCellProps } from "./GridCell.js";
|
|
3
3
|
export * from "./GridBooleanCell.js";
|
|
4
4
|
export * from "./GridEditBooleanCell.js";
|
|
5
5
|
export * from "./GridEditDateCell.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridRenderCellParams } from
|
|
2
|
+
import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
|
|
3
3
|
declare const GridCellCheckboxForwardRef: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { GridCellCheckboxForwardRef };
|
|
5
5
|
export declare const GridCellCheckboxRenderer: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridColumnHeaderParams } from
|
|
2
|
+
import type { GridColumnHeaderParams } from "../../models/params/gridColumnHeaderParams.js";
|
|
3
3
|
declare const GridHeaderCheckbox: React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any>> | React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export { GridHeaderCheckbox };
|
|
@@ -83,6 +83,10 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = (0, _forwardRef.forwardR
|
|
|
83
83
|
const candidates = new Set();
|
|
84
84
|
for (let i = 0; i < rowIds.length; i += 1) {
|
|
85
85
|
const id = rowIds[i];
|
|
86
|
+
if (!apiRef.current.getRow(id)) {
|
|
87
|
+
// The row could have been removed
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
86
90
|
if (apiRef.current.isRowSelectable(id)) {
|
|
87
91
|
candidates.add(id);
|
|
88
92
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TextFieldProps } from "../../models/gridBaseSlots.js";
|
|
3
|
-
import type { GridColDef } from
|
|
3
|
+
import type { GridColDef } from "../../models/colDef/gridColDef.js";
|
|
4
4
|
export interface GridColumnsManagementProps {
|
|
5
5
|
sort?: 'asc' | 'desc';
|
|
6
6
|
searchPredicate?: (column: GridColDef, searchValue: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridColumnVisibilityModel } from "../../hooks/features/columns/gridColumnsInterfaces.js";
|
|
2
|
-
import type { GridColumnsManagementProps } from
|
|
2
|
+
import type { GridColumnsManagementProps } from "./GridColumnsManagement.js";
|
|
3
3
|
export declare const checkColumnVisibilityModelsSame: (a: GridColumnVisibilityModel, b: GridColumnVisibilityModel) => boolean;
|
|
4
4
|
export declare const defaultSearchPredicate: NonNullable<GridColumnsManagementProps['searchPredicate']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export interface ColumnsPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the columns panel is open.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
3
|
import { GridCsvExportOptions } from "../../models/gridExport.js";
|
|
4
|
-
import type { GridSlotProps } from
|
|
4
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
5
5
|
export type ExportCsvProps = GridSlotProps['baseButton'] & {
|
|
6
6
|
/**
|
|
7
7
|
* A function to customize rendering of the component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
3
|
import { GridPrintExportOptions } from "../../models/gridExport.js";
|
|
4
|
-
import type { GridSlotProps } from
|
|
4
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
5
5
|
export type ExportPrintProps = GridSlotProps['baseButton'] & {
|
|
6
6
|
/**
|
|
7
7
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export interface FilterPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the filter panel is open.
|
|
@@ -38,7 +38,6 @@ const GridPanelContent = (0, _styles.styled)('div', {
|
|
|
38
38
|
boxShadow: _cssVariables.vars.shadows.overlay,
|
|
39
39
|
display: 'flex',
|
|
40
40
|
maxWidth: `calc(100vw - ${_cssVariables.vars.spacing(2)})`,
|
|
41
|
-
margin: _cssVariables.vars.spacing(1),
|
|
42
41
|
overflow: 'auto'
|
|
43
42
|
});
|
|
44
43
|
const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AutocompleteProps } from "../../../models/gridBaseSlots.js";
|
|
3
3
|
import { GridFilterInputValueProps } from "../../../models/gridFilterInputComponent.js";
|
|
4
|
-
import type { ValueOptions } from
|
|
4
|
+
import type { ValueOptions } from "../../../models/colDef/gridColDef.js";
|
|
5
5
|
export type GridFilterInputMultipleSingleSelectProps = GridFilterInputValueProps<Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options'>> & {
|
|
6
6
|
type?: 'singleSelect';
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridColDef, GridSingleSelectColDef } from
|
|
2
|
-
import type { GridValueOptionsParams } from
|
|
1
|
+
import type { GridColDef, GridSingleSelectColDef } from "../../../models/colDef/gridColDef.js";
|
|
2
|
+
import type { GridValueOptionsParams } from "../../../models/params/gridValueOptionsParams.js";
|
|
3
3
|
export declare function isSingleSelectColDef(colDef: GridColDef | null): colDef is GridSingleSelectColDef;
|
|
4
4
|
export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("@mui/x-data-grid").ValueOptions[] | undefined;
|
|
5
5
|
export declare function getValueFromValueOptions(value: string, valueOptions: any[] | undefined, getOptionValue: NonNullable<GridSingleSelectColDef['getOptionValue']>): any;
|
|
@@ -3,8 +3,8 @@ export { GridFilterInputValue, type GridTypeFilterInputValueProps } from "./Grid
|
|
|
3
3
|
export * from "./GridFilterInputDate.js";
|
|
4
4
|
export * from "./GridFilterInputSingleSelect.js";
|
|
5
5
|
export { GridFilterInputBoolean } from "./GridFilterInputBoolean.js";
|
|
6
|
-
export type { GridFilterInputBooleanProps } from
|
|
6
|
+
export type { GridFilterInputBooleanProps } from "./GridFilterInputBoolean.js";
|
|
7
7
|
export { GridFilterPanel } from "./GridFilterPanel.js";
|
|
8
|
-
export type { GetColumnForNewFilterArgs } from
|
|
8
|
+
export type { GetColumnForNewFilterArgs } from "./GridFilterPanel.js";
|
|
9
9
|
export * from "./GridFilterInputMultipleValue.js";
|
|
10
10
|
export * from "./GridFilterInputMultipleSingleSelect.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
3
3
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
4
|
-
import type { GridFilterModel } from
|
|
4
|
+
import type { GridFilterModel } from "../../models/index.js";
|
|
5
5
|
export type QuickFilterProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
6
6
|
/**
|
|
7
7
|
* Function responsible for parsing text input in an array of independent values for quick filtering.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
5
5
|
export type QuickFilterClearProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
6
6
|
/**
|