@mui/x-data-grid 8.0.0-beta.1 → 8.0.0-beta.3
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 +235 -0
- package/DataGrid/DataGrid.js +10 -2
- package/DataGrid/useDataGridProps.js +1 -1
- package/components/GridRow.js +3 -8
- package/components/GridScrollArea.js +4 -4
- package/components/GridShadowScrollArea.js +43 -35
- package/components/GridSkeletonLoadingOverlay.js +1 -1
- package/components/cell/GridActionsCellItem.d.ts +24 -13
- package/components/cell/GridActionsCellItem.js +5 -2
- package/components/cell/GridBooleanCell.d.ts +1 -2
- package/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.js +1 -24
- package/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
- package/components/containers/GridToolbarContainer.js +5 -3
- package/components/export/ExportCsv.js +4 -129
- package/components/export/ExportPrint.js +4 -129
- package/components/filterPanel/FilterPanelTrigger.js +4 -129
- package/components/panel/GridPanel.d.ts +2 -2
- package/components/panel/GridPanel.js +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/components/quickFilter/QuickFilter.d.ts +26 -3
- package/components/quickFilter/QuickFilter.js +103 -19
- package/components/quickFilter/QuickFilterClear.js +13 -104
- package/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/components/quickFilter/QuickFilterControl.js +36 -12
- package/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/components/quickFilter/QuickFilterTrigger.js +86 -0
- package/components/quickFilter/index.d.ts +2 -1
- package/components/quickFilter/index.js +11 -0
- package/components/toolbar/GridToolbar.js +4 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/components/toolbar/GridToolbarQuickFilter.js +100 -41
- package/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/components/toolbarV8/GridToolbar.js +85 -27
- package/components/toolbarV8/Toolbar.d.ts +1 -1
- package/components/toolbarV8/Toolbar.js +78 -23
- package/components/toolbarV8/ToolbarButton.js +37 -114
- package/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/components/virtualization/GridVirtualScrollbar.js +1 -1
- package/components/virtualization/GridVirtualScroller.js +2 -2
- package/constants/cssVariables.d.ts +3 -0
- package/constants/cssVariables.js +2 -1
- package/constants/gridClasses.d.ts +20 -0
- package/constants/gridClasses.js +1 -1
- package/esm/DataGrid/DataGrid.js +10 -2
- package/esm/DataGrid/useDataGridProps.js +1 -1
- package/esm/components/GridRow.js +4 -9
- package/esm/components/GridScrollArea.js +4 -4
- package/esm/components/GridShadowScrollArea.js +43 -35
- package/esm/components/GridSkeletonLoadingOverlay.js +2 -2
- package/esm/components/cell/GridActionsCellItem.d.ts +24 -13
- package/esm/components/cell/GridActionsCellItem.js +4 -3
- package/esm/components/cell/GridBooleanCell.d.ts +1 -2
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/esm/components/cell/GridEditSingleSelectCell.js +1 -1
- package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/esm/components/columnsManagement/GridColumnsManagement.js +1 -24
- package/esm/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
- package/esm/components/containers/GridToolbarContainer.js +5 -3
- package/esm/components/export/ExportCsv.js +4 -129
- package/esm/components/export/ExportPrint.js +4 -129
- package/esm/components/filterPanel/FilterPanelTrigger.js +4 -129
- package/esm/components/panel/GridPanel.d.ts +2 -2
- package/esm/components/panel/GridPanel.js +1 -1
- package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilter.d.ts +26 -3
- package/esm/components/quickFilter/QuickFilter.js +101 -17
- package/esm/components/quickFilter/QuickFilterClear.js +13 -104
- package/esm/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/esm/components/quickFilter/QuickFilterControl.js +36 -12
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/esm/components/quickFilter/QuickFilterTrigger.js +79 -0
- package/esm/components/quickFilter/index.d.ts +2 -1
- package/esm/components/quickFilter/index.js +2 -1
- package/esm/components/toolbar/GridToolbar.js +4 -1
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/esm/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/esm/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/esm/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/esm/components/toolbar/GridToolbarQuickFilter.js +101 -44
- package/esm/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/esm/components/toolbarV8/GridToolbar.js +83 -27
- package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
- package/esm/components/toolbarV8/Toolbar.js +77 -22
- package/esm/components/toolbarV8/ToolbarButton.js +37 -114
- package/esm/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/esm/components/virtualization/GridVirtualScrollbar.js +1 -1
- package/esm/components/virtualization/GridVirtualScroller.js +2 -2
- package/esm/constants/cssVariables.d.ts +3 -0
- package/esm/constants/cssVariables.js +2 -1
- package/esm/constants/gridClasses.d.ts +20 -0
- package/esm/constants/gridClasses.js +1 -1
- package/esm/hooks/core/gridCoreSelector.d.ts +1 -1
- package/esm/hooks/core/gridPropsSelectors.d.ts +1 -1
- package/esm/hooks/features/clipboard/useGridClipboard.js +2 -2
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
- package/esm/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
- package/esm/hooks/features/columnMenu/useGridColumnMenu.js +4 -4
- package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
- package/esm/hooks/features/columnResize/useGridColumnResize.js +7 -7
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/esm/hooks/features/columns/gridColumnsUtils.js +1 -1
- package/esm/hooks/features/columns/useGridColumnSpanning.js +2 -2
- package/esm/hooks/features/columns/useGridColumns.js +2 -3
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
- package/esm/hooks/features/dataSource/useGridDataSource.js +1 -1
- package/esm/hooks/features/density/densitySelector.d.ts +2 -2
- package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
- package/esm/hooks/features/dimensions/useGridDimensions.js +5 -5
- package/esm/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
- package/esm/hooks/features/editing/useGridCellEditing.js +8 -8
- package/esm/hooks/features/editing/useGridRowEditing.js +9 -9
- package/esm/hooks/features/events/useGridEvents.js +18 -18
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +18 -18
- package/esm/hooks/features/filter/useGridFilter.js +7 -7
- package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
- package/esm/hooks/features/focus/useGridFocus.js +10 -10
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/esm/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
- package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/esm/hooks/features/listView/useGridListView.d.ts +4 -4
- package/esm/hooks/features/listView/useGridListView.js +9 -9
- package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
- package/esm/hooks/features/pagination/useGridPaginationModel.js +7 -7
- package/esm/hooks/features/pagination/useGridRowCount.js +2 -2
- package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +8 -8
- package/esm/hooks/features/rowSelection/utils.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/esm/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +21 -20
- package/esm/hooks/features/rows/gridRowsSelector.js +7 -0
- package/esm/hooks/features/rows/useGridParamsApi.js +2 -2
- package/esm/hooks/features/rows/useGridRowSpanning.js +6 -6
- package/esm/hooks/features/rows/useGridRows.js +5 -5
- package/esm/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/esm/hooks/features/scroll/useGridScroll.js +2 -2
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
- package/esm/hooks/features/sorting/useGridSorting.js +6 -6
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +19 -8
- package/esm/hooks/utils/index.d.ts +1 -1
- package/esm/hooks/utils/index.js +1 -1
- package/esm/hooks/utils/useGridAriaAttributes.js +6 -0
- package/esm/hooks/utils/{useGridApiEventHandler.d.ts → useGridEvent.d.ts} +2 -2
- package/{modern/hooks/utils/useGridApiEventHandler.js → esm/hooks/utils/useGridEvent.js} +3 -3
- package/esm/hooks/utils/useGridNativeEventListener.js +2 -2
- package/esm/hooks/utils/useGridVisibleRows.d.ts +4 -4
- package/esm/index.js +1 -1
- package/esm/locales/deDE.js +13 -13
- package/esm/material/augmentation.d.ts +74 -0
- package/esm/material/augmentation.js +1 -0
- package/esm/material/index.d.ts +1 -0
- package/esm/material/index.js +262 -141
- package/esm/material/variables.js +2 -0
- package/esm/models/colDef/gridColDef.d.ts +1 -1
- package/esm/models/colDef/index.d.ts +1 -1
- package/esm/models/gridBaseSlots.d.ts +25 -36
- package/esm/models/gridSlotsComponentsProps.d.ts +1 -19
- package/esm/models/props/DataGridProps.d.ts +20 -10
- package/esm/utils/utils.d.ts +0 -27
- package/esm/utils/utils.js +0 -122
- package/hooks/core/gridCoreSelector.d.ts +1 -1
- package/hooks/core/gridPropsSelectors.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.js +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +2 -2
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
- package/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
- package/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
- package/hooks/features/columnResize/useGridColumnResize.js +6 -6
- package/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.js +1 -1
- package/hooks/features/columns/useGridColumnSpanning.js +2 -2
- package/hooks/features/columns/useGridColumns.js +2 -3
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
- package/hooks/features/dataSource/useGridDataSource.js +2 -2
- package/hooks/features/density/densitySelector.d.ts +2 -2
- package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
- package/hooks/features/dimensions/useGridDimensions.js +6 -6
- package/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
- package/hooks/features/editing/useGridCellEditing.js +8 -8
- package/hooks/features/editing/useGridRowEditing.js +9 -9
- package/hooks/features/events/useGridEvents.js +18 -18
- package/hooks/features/filter/gridFilterSelector.d.ts +18 -18
- package/hooks/features/filter/useGridFilter.js +9 -9
- package/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
- package/hooks/features/focus/useGridFocus.js +10 -10
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
- package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/hooks/features/listView/useGridListView.d.ts +4 -4
- package/hooks/features/listView/useGridListView.js +9 -9
- package/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
- package/hooks/features/pagination/useGridPaginationModel.js +7 -7
- package/hooks/features/pagination/useGridRowCount.js +1 -1
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
- package/hooks/features/rowSelection/useGridRowSelection.js +8 -8
- package/hooks/features/rowSelection/utils.d.ts +1 -1
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.d.ts +21 -20
- package/hooks/features/rows/gridRowsSelector.js +8 -1
- package/hooks/features/rows/useGridParamsApi.js +2 -2
- package/hooks/features/rows/useGridRowSpanning.js +6 -6
- package/hooks/features/rows/useGridRows.js +4 -4
- package/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/hooks/features/scroll/useGridScroll.js +2 -2
- package/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
- package/hooks/features/sorting/useGridSorting.js +6 -6
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
- package/hooks/features/virtualization/useGridVirtualScroller.js +17 -6
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/index.js +8 -8
- package/hooks/utils/useGridAriaAttributes.js +6 -0
- package/{modern/hooks/utils/useGridApiEventHandler.d.ts → hooks/utils/useGridEvent.d.ts} +2 -2
- package/hooks/utils/{useGridApiEventHandler.js → useGridEvent.js} +5 -5
- package/hooks/utils/useGridNativeEventListener.js +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +4 -4
- package/index.js +1 -1
- package/locales/deDE.js +13 -13
- package/material/augmentation.d.ts +74 -0
- package/material/augmentation.js +5 -0
- package/material/index.d.ts +1 -0
- package/material/index.js +261 -141
- package/material/variables.js +2 -0
- package/models/colDef/gridColDef.d.ts +1 -1
- package/models/colDef/index.d.ts +1 -1
- package/models/gridBaseSlots.d.ts +25 -36
- package/models/gridSlotsComponentsProps.d.ts +1 -19
- package/models/props/DataGridProps.d.ts +20 -10
- package/modern/DataGrid/DataGrid.js +10 -2
- package/modern/DataGrid/useDataGridProps.js +1 -1
- package/modern/components/GridRow.js +4 -9
- package/modern/components/GridScrollArea.js +4 -4
- package/modern/components/GridShadowScrollArea.js +43 -35
- package/modern/components/GridSkeletonLoadingOverlay.js +2 -2
- package/modern/components/cell/GridActionsCellItem.d.ts +24 -13
- package/modern/components/cell/GridActionsCellItem.js +4 -3
- package/modern/components/cell/GridBooleanCell.d.ts +1 -2
- package/modern/components/cell/GridEditSingleSelectCell.d.ts +4 -4
- package/modern/components/cell/GridEditSingleSelectCell.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
- package/modern/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/modern/components/columnsManagement/GridColumnsManagement.js +1 -24
- package/modern/components/columnsPanel/ColumnsPanelTrigger.js +4 -129
- package/modern/components/containers/GridToolbarContainer.js +5 -3
- package/modern/components/export/ExportCsv.js +4 -129
- package/modern/components/export/ExportPrint.js +4 -129
- package/modern/components/filterPanel/FilterPanelTrigger.js +4 -129
- package/modern/components/panel/GridPanel.d.ts +2 -2
- package/modern/components/panel/GridPanel.js +1 -1
- package/modern/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
- package/modern/components/quickFilter/QuickFilter.d.ts +26 -3
- package/modern/components/quickFilter/QuickFilter.js +101 -17
- package/modern/components/quickFilter/QuickFilterClear.js +13 -104
- package/modern/components/quickFilter/QuickFilterContext.d.ts +4 -1
- package/modern/components/quickFilter/QuickFilterControl.js +36 -12
- package/modern/components/quickFilter/QuickFilterTrigger.d.ts +28 -0
- package/modern/components/quickFilter/QuickFilterTrigger.js +79 -0
- package/modern/components/quickFilter/index.d.ts +2 -1
- package/modern/components/quickFilter/index.js +2 -1
- package/modern/components/toolbar/GridToolbar.js +4 -1
- package/modern/components/toolbar/GridToolbarColumnsButton.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/toolbar/GridToolbarExport.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.d.ts +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/modern/components/toolbar/GridToolbarFilterButton.d.ts +4 -6
- package/modern/components/toolbar/GridToolbarFilterButton.js +1 -4
- package/modern/components/toolbar/GridToolbarQuickFilter.js +101 -44
- package/modern/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/modern/components/toolbarV8/GridToolbar.js +83 -27
- package/modern/components/toolbarV8/Toolbar.d.ts +1 -1
- package/modern/components/toolbarV8/Toolbar.js +77 -22
- package/modern/components/toolbarV8/ToolbarButton.js +37 -114
- package/modern/components/toolbarV8/ToolbarContext.d.ts +4 -2
- package/modern/components/virtualization/GridVirtualScrollbar.js +1 -1
- package/modern/components/virtualization/GridVirtualScroller.js +2 -2
- package/modern/constants/cssVariables.d.ts +3 -0
- package/modern/constants/cssVariables.js +2 -1
- package/modern/constants/gridClasses.d.ts +20 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/core/gridCoreSelector.d.ts +1 -1
- package/modern/hooks/core/gridPropsSelectors.d.ts +1 -1
- package/modern/hooks/features/clipboard/useGridClipboard.js +2 -2
- package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +5 -5
- package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +1 -1
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +4 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +5 -5
- package/modern/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +4 -4
- package/modern/hooks/features/columnResize/columnResizeSelector.d.ts +2 -2
- package/modern/hooks/features/columnResize/useGridColumnResize.js +7 -7
- package/modern/hooks/features/columns/gridColumnsSelector.d.ts +14 -14
- package/modern/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +1 -1
- package/modern/hooks/features/columns/useGridColumnSpanning.js +2 -2
- package/modern/hooks/features/columns/useGridColumns.js +2 -3
- package/modern/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -4
- package/modern/hooks/features/dataSource/useGridDataSource.js +1 -1
- package/modern/hooks/features/density/densitySelector.d.ts +2 -2
- package/modern/hooks/features/dimensions/gridDimensionsSelectors.d.ts +13 -13
- package/modern/hooks/features/dimensions/useGridDimensions.js +5 -5
- package/modern/hooks/features/editing/gridEditingSelectors.d.ts +4 -4
- package/modern/hooks/features/editing/useGridCellEditing.js +8 -8
- package/modern/hooks/features/editing/useGridRowEditing.js +9 -9
- package/modern/hooks/features/events/useGridEvents.js +18 -18
- package/modern/hooks/features/filter/gridFilterSelector.d.ts +18 -18
- package/modern/hooks/features/filter/useGridFilter.js +7 -7
- package/modern/hooks/features/focus/gridFocusStateSelector.d.ts +10 -10
- package/modern/hooks/features/focus/useGridFocus.js +10 -10
- package/modern/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +6 -6
- package/modern/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/modern/hooks/features/listView/useGridListView.d.ts +4 -4
- package/modern/hooks/features/listView/useGridListView.js +9 -9
- package/modern/hooks/features/pagination/gridPaginationSelector.d.ts +14 -14
- package/modern/hooks/features/pagination/useGridPaginationModel.js +7 -7
- package/modern/hooks/features/pagination/useGridRowCount.js +2 -2
- package/modern/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +2 -2
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +4 -4
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +8 -8
- package/modern/hooks/features/rowSelection/utils.d.ts +1 -1
- package/modern/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/modern/hooks/features/rows/gridRowsMetaSelector.d.ts +1 -1
- package/modern/hooks/features/rows/gridRowsSelector.d.ts +21 -20
- package/modern/hooks/features/rows/gridRowsSelector.js +7 -0
- package/modern/hooks/features/rows/useGridParamsApi.js +2 -2
- package/modern/hooks/features/rows/useGridRowSpanning.js +6 -6
- package/modern/hooks/features/rows/useGridRows.js +5 -5
- package/modern/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/modern/hooks/features/scroll/useGridScroll.js +2 -2
- package/modern/hooks/features/sorting/gridSortingSelector.d.ts +5 -5
- package/modern/hooks/features/sorting/useGridSorting.js +6 -6
- package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
- package/modern/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +6 -6
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +19 -8
- package/modern/hooks/utils/index.d.ts +1 -1
- package/modern/hooks/utils/index.js +1 -1
- package/modern/hooks/utils/useGridAriaAttributes.js +6 -0
- package/{hooks/utils/useGridApiEventHandler.d.ts → modern/hooks/utils/useGridEvent.d.ts} +2 -2
- package/{esm/hooks/utils/useGridApiEventHandler.js → modern/hooks/utils/useGridEvent.js} +3 -3
- package/modern/hooks/utils/useGridNativeEventListener.js +2 -2
- package/modern/hooks/utils/useGridVisibleRows.d.ts +4 -4
- package/modern/index.js +1 -1
- package/modern/locales/deDE.js +13 -13
- package/modern/material/augmentation.d.ts +74 -0
- package/modern/material/augmentation.js +1 -0
- package/modern/material/index.d.ts +1 -0
- package/modern/material/index.js +262 -141
- package/modern/material/variables.js +2 -0
- package/modern/models/colDef/gridColDef.d.ts +1 -1
- package/modern/models/colDef/index.d.ts +1 -1
- package/modern/models/gridBaseSlots.d.ts +25 -36
- package/modern/models/gridSlotsComponentsProps.d.ts +1 -19
- package/modern/models/props/DataGridProps.d.ts +20 -10
- package/modern/utils/utils.d.ts +0 -27
- package/modern/utils/utils.js +0 -122
- package/package.json +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/utils.d.ts +0 -27
- package/utils/utils.js +0 -123
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,241 @@
|
|
|
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.0.0-beta.3
|
|
9
|
+
|
|
10
|
+
_Apr 3, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚫 Removed `react-spring` as a dependency of `@mui/x-charts`
|
|
15
|
+
- 📦 Data Grid list view feature is now stable
|
|
16
|
+
- 💫 Support title in Data Grid
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The list view feature and its related props are now stable.
|
|
30
|
+
|
|
31
|
+
The `unstable_listColumn` prop has been renamed to `listViewColumn`.
|
|
32
|
+
|
|
33
|
+
The `GridListColDef` type has been renamed to `GridListViewColDef`.
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-const listViewColDef: GridListColDef = {
|
|
37
|
+
+const listViewColDef: GridListViewColDef = {
|
|
38
|
+
field: 'listColumn',
|
|
39
|
+
renderCell: ListViewCell,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
<DataGridPro
|
|
43
|
+
- unstable_listView
|
|
44
|
+
- unstable_listColumn={listViewColDef}
|
|
45
|
+
+ listView
|
|
46
|
+
+ listViewColumn={listViewColDef}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The `useGridApiEventHandler()` hook has been renamed to `useGridEvent()`.
|
|
51
|
+
- The `useGridApiOptionHandler()` hook has been renamed to `useGridEventPriority()`.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid@8.0.0-beta.3`
|
|
54
|
+
|
|
55
|
+
- [DataGrid] Fix "is any of" autocomplete rendering (#17226) @KenanYusuf
|
|
56
|
+
- [DataGrid] Rename `useGridApiEventHandler()` to `useGridEvent()` (#17159) @romgrk
|
|
57
|
+
- [DataGrid] Support adding a label to the grid (#17147) @KenanYusuf
|
|
58
|
+
- [DataGrid] Refactor: remove material typings (#17119) @romgrk
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.3`, plus:
|
|
63
|
+
|
|
64
|
+
- [DataGridPro] Make list view feature stable (#17217) @KenanYusuf
|
|
65
|
+
- [DataGridPro] Always refetch lazy-loading rows (#16827) @MBilalShafi
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.3`.
|
|
70
|
+
|
|
71
|
+
### Date and Time Pickers
|
|
72
|
+
|
|
73
|
+
#### `@mui/x-date-pickers@8.0.0-beta.3`
|
|
74
|
+
|
|
75
|
+
- [pickers] Add new `nextOrAccept` action bar action (#17037) @flaviendelangle
|
|
76
|
+
- [pickers] Improve the Multi Section Digital Clock scrollbar thickness (#16774) @oliviertassinari
|
|
77
|
+
- [TimePicker] Align the Digital Clock scrollbar thickness (#17203) @LukasTy
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.3`.
|
|
82
|
+
|
|
83
|
+
### Charts
|
|
84
|
+
|
|
85
|
+
#### Breaking changes
|
|
86
|
+
|
|
87
|
+
- Removed `react-spring` as a dependency of `@mui/x-charts`.
|
|
88
|
+
A consequence of this change is that the props of some slots have been changed because the `SpringValue` wrapper has been removed. The affected slots and props are:
|
|
89
|
+
|
|
90
|
+
- the type of the `x`, `y`, `width` and `height` props of the `bar` slot are now `number`;
|
|
91
|
+
- the type of `startAngle`, `endAngle`, `innerRadius`, `outerRadius`, `arcLabelRadius`, `cornerRadius` and `paddingAngle` props of `pieArc` and `pieArcLabel` slot are now `number`.
|
|
92
|
+
|
|
93
|
+
Additionally, the `pieArc` slot now receives a `skipAnimation` prop to configure whether animations should be enabled or disabled.
|
|
94
|
+
|
|
95
|
+
- Tick labels in the y-axis of cartesian charts will now have an ellipsis applied to prevent overflow.
|
|
96
|
+
If your tick labels are being clipped sooner than you would like, you can increase the y-axis size by increasing its width property.
|
|
97
|
+
|
|
98
|
+
- The tooltip DOM structure is modified to improve accessibility. If you relied on it to apply some style or run tests, you might be impacted by this modification.
|
|
99
|
+
- The axis tooltip displays a table per axis with the axis value in a caption.
|
|
100
|
+
- Cells containing the series label and the color mark got merged in a th cell.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-charts@8.0.0-beta.3`
|
|
103
|
+
|
|
104
|
+
- [charts] Adjust color palettes (#17209) @noraleonte
|
|
105
|
+
- [charts] Allow multiple axes in the tooltip (#17058) @alexfauquette
|
|
106
|
+
- [charts] Improve custom legend docs (#17231) @JCQuintas
|
|
107
|
+
- [charts] Fix crash when item shown in tooltip is unmounted (#17169) @bernardobelchior
|
|
108
|
+
- [charts] Migrate some animations from `react-spring` (#16961) @bernardobelchior
|
|
109
|
+
- [charts] Remove `react-spring` (#17123) @bernardobelchior
|
|
110
|
+
- [charts] Fix y-axis tick label overflow (#16846) @bernardobelchior
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-charts-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.3`.
|
|
115
|
+
|
|
116
|
+
### Tree View
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-beta.3`
|
|
119
|
+
|
|
120
|
+
Internal changes.
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.3`.
|
|
125
|
+
|
|
126
|
+
### `@mui/x-codemod@8.0.0-beta.3`
|
|
127
|
+
|
|
128
|
+
- [codemod] Add `listView` prop rename codemod (#17220) @MBilalShafi
|
|
129
|
+
|
|
130
|
+
### Docs
|
|
131
|
+
|
|
132
|
+
- [docs] Add "Usage with Material UI v5/v6" guide (#17164) @cherniavskii
|
|
133
|
+
- [docs] Fix 301 link @oliviertassinari
|
|
134
|
+
- [docs] Fix redirection getting-started (#17200) @oliviertassinari
|
|
135
|
+
- [docs] Sync Stack Overflow docs with reality (#17198) @oliviertassinari
|
|
136
|
+
- [docs] Update Localization Provider JSDoc link (#17207) @LukasTy
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Cleanup `@mui` dependency versions (#17160) @LukasTy
|
|
141
|
+
- [core] Sync scorecards.yml across codebase @oliviertassinari
|
|
142
|
+
- [core] Revert upgrade to React 19.1 (#17206) @bernardobelchior
|
|
143
|
+
- [code-infra] Fix `test:unit` warning (#17224) @JCQuintas
|
|
144
|
+
- [code-infra] Fix pickers failing test after clock=fake removal (#17202) @JCQuintas
|
|
145
|
+
- [code-infra] Remove clock=fake from `describeValidation` (#17150) @JCQuintas
|
|
146
|
+
- [code-infra] Remove clock=fake from `describeValue` (#17199) @JCQuintas
|
|
147
|
+
- [infra] Add write permission for actions in issue status label handler (#17161) @michelengelen
|
|
148
|
+
|
|
149
|
+
## 8.0.0-beta.2
|
|
150
|
+
|
|
151
|
+
_Mar 27, 2025_
|
|
152
|
+
|
|
153
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
154
|
+
|
|
155
|
+
- 🔍 Update the Data Grid quick filter to be collapsed when not in use
|
|
156
|
+
- 🐞 Bugfixes
|
|
157
|
+
|
|
158
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
159
|
+
@lhilgert9.
|
|
160
|
+
Following are all team members who have contributed to this release:
|
|
161
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @hasdfa, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @mnajdova, @romgrk.
|
|
162
|
+
|
|
163
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
164
|
+
|
|
165
|
+
### Data Grid
|
|
166
|
+
|
|
167
|
+
#### `@mui/x-data-grid@8.0.0-beta.2`
|
|
168
|
+
|
|
169
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17057) @arminmeh
|
|
170
|
+
- [DataGrid] Refactor: remove more material (#16922) @romgrk
|
|
171
|
+
- [DataGrid] Update Quick Filter component to be expandable (#16862) @KenanYusuf
|
|
172
|
+
- [DataGrid] Fix crash when used with `@mui/styled-engine-sc` (#17154) @KenanYusuf
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.2`, plus:
|
|
177
|
+
|
|
178
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children (#17144) @MBilalShafi
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
181
|
+
|
|
182
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.2`.
|
|
183
|
+
|
|
184
|
+
### Date and Time Pickers
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-date-pickers@8.0.0-beta.2`
|
|
187
|
+
|
|
188
|
+
- [fields] Extract the props of each field slot into a standalone hook for easier re-use (#17114) @flaviendelangle
|
|
189
|
+
- [pickers] Fix visual regression in Date Range Calendar's day (#17148) @flaviendelangle
|
|
190
|
+
- [pickers] Remove all code duplication to apply default values to validation props (#17038) @flaviendelangle
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
193
|
+
|
|
194
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.2`.
|
|
195
|
+
|
|
196
|
+
### Charts
|
|
197
|
+
|
|
198
|
+
#### `@mui/x-charts@8.0.0-beta.2`
|
|
199
|
+
|
|
200
|
+
- [charts] Memoize axes and series with default (#17156) @alexfauquette
|
|
201
|
+
- [charts] Add pie benchmark (#17115) @JCQuintas
|
|
202
|
+
- [charts] Fix CSS vars support for dark theme (#17106) @alexfauquette
|
|
203
|
+
- [charts] Fix radar hover (#17134) @alexfauquette
|
|
204
|
+
- [charts] Move axis interaction to selectors (#17039) @alexfauquette
|
|
205
|
+
- [charts] Fix Pie benchmark (#17125) @JCQuintas
|
|
206
|
+
|
|
207
|
+
#### `@mui/x-charts-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
208
|
+
|
|
209
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.2`.
|
|
210
|
+
|
|
211
|
+
### Tree View
|
|
212
|
+
|
|
213
|
+
#### `@mui/x-tree-view@8.0.0-beta.2`
|
|
214
|
+
|
|
215
|
+
Internal changes.
|
|
216
|
+
|
|
217
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
218
|
+
|
|
219
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.2`.
|
|
220
|
+
|
|
221
|
+
### `@mui/x-codemod@8.0.0-beta.1`
|
|
222
|
+
|
|
223
|
+
- [codemod] Add Data Grid codemods (#17121, #17124) @MBilalShafi
|
|
224
|
+
|
|
225
|
+
### Docs
|
|
226
|
+
|
|
227
|
+
- [docs] Fix example import for `ExportExcel` component (#17110) @KenanYusuf
|
|
228
|
+
|
|
229
|
+
### Core
|
|
230
|
+
|
|
231
|
+
- [code-infra] Remove `@mui/styles` dependency & patches (#17071) @mnajdova
|
|
232
|
+
- [code-infra] Add more tests to slow screenshot tests (#17075) @JCQuintas
|
|
233
|
+
- [code-infra] Fix pickers codecov (#17120) @JCQuintas
|
|
234
|
+
- [code-infra] Move `isDeepEqual` to @mui/x-internals (#17129) @JCQuintas
|
|
235
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17108) @LukasTy
|
|
236
|
+
- [code-infra] Update some data-grid tests for vitest (#17078, #17104, #17146) @JCQuintas
|
|
237
|
+
- [code-infra] Update some date-pickers tests for vitest (#17083) @JCQuintas
|
|
238
|
+
- [infra] Update `issue-status-label-handler.yml` @michelengelen
|
|
239
|
+
- [infra] Added reusable issue status label handler workflow (#17145) @michelengelen
|
|
240
|
+
- [infra] Switch to reusable 'stale issues/PRs' workflow (#17107) @michelengelen
|
|
241
|
+
- [telemetry] Improve request body size, update dependencies, and optimize SSR handling (#17008) @hasdfa
|
|
242
|
+
|
|
8
243
|
## 8.0.0-beta.1
|
|
9
244
|
|
|
10
245
|
_Mar 21, 2025_
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -66,11 +66,11 @@ DataGridRaw.propTypes = {
|
|
|
66
66
|
current: _propTypes.default.object
|
|
67
67
|
}),
|
|
68
68
|
/**
|
|
69
|
-
* The label of the Data Grid.
|
|
69
|
+
* The `aria-label` of the Data Grid.
|
|
70
70
|
*/
|
|
71
71
|
'aria-label': _propTypes.default.string,
|
|
72
72
|
/**
|
|
73
|
-
* The id of the element containing a label for the Data Grid.
|
|
73
|
+
* The `id` of the element containing a label for the Data Grid.
|
|
74
74
|
*/
|
|
75
75
|
'aria-labelledby': _propTypes.default.string,
|
|
76
76
|
/**
|
|
@@ -117,6 +117,7 @@ DataGridRaw.propTypes = {
|
|
|
117
117
|
* Override or extend the styles applied to the component.
|
|
118
118
|
*/
|
|
119
119
|
classes: _propTypes.default.object,
|
|
120
|
+
className: _propTypes.default.string,
|
|
120
121
|
/**
|
|
121
122
|
* The character used to separate cell values when copying to the clipboard.
|
|
122
123
|
* @default '\t'
|
|
@@ -366,6 +367,12 @@ DataGridRaw.propTypes = {
|
|
|
366
367
|
* @default false
|
|
367
368
|
*/
|
|
368
369
|
keepNonExistentRowsSelected: _propTypes.default.bool,
|
|
370
|
+
/**
|
|
371
|
+
* The label of the Data Grid.
|
|
372
|
+
* If the `showToolbar` prop is `true`, the label will be displayed in the toolbar and applied to the `aria-label` attribute of the grid.
|
|
373
|
+
* If the `showToolbar` prop is `false`, the label will not be visible but will be applied to the `aria-label` attribute of the grid.
|
|
374
|
+
*/
|
|
375
|
+
label: _propTypes.default.string,
|
|
369
376
|
/**
|
|
370
377
|
* If `true`, a loading overlay is displayed.
|
|
371
378
|
* @default false
|
|
@@ -776,6 +783,7 @@ DataGridRaw.propTypes = {
|
|
|
776
783
|
field: _propTypes.default.string.isRequired,
|
|
777
784
|
sort: _propTypes.default.oneOf(['asc', 'desc'])
|
|
778
785
|
})),
|
|
786
|
+
style: _propTypes.default.object,
|
|
779
787
|
/**
|
|
780
788
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
781
789
|
*/
|
|
@@ -23,7 +23,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
23
23
|
disableColumnReorder: true,
|
|
24
24
|
keepColumnPositionIfDraggedOutside: false,
|
|
25
25
|
signature: 'DataGrid',
|
|
26
|
-
|
|
26
|
+
listView: false
|
|
27
27
|
};
|
|
28
28
|
const getDataGridForcedProps = themedProps => (0, _extends2.default)({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
29
29
|
filterMode: 'server',
|
package/components/GridRow.js
CHANGED
|
@@ -86,7 +86,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
|
|
|
86
86
|
const rowReordering = rootProps.rowReordering;
|
|
87
87
|
const isRowReorderingEnabled = (0, _useGridSelector.useGridSelector)(apiRef, isRowReorderingEnabledSelector, rowReordering);
|
|
88
88
|
const handleRef = (0, _utils.unstable_useForkRef)(ref, refProp);
|
|
89
|
-
const rowNode =
|
|
89
|
+
const rowNode = (0, _gridRowsSelector.gridRowNodeSelector)(apiRef, rowId);
|
|
90
90
|
const editing = (0, _useGridSelector.useGridSelector)(apiRef, _gridEditingSelectors.gridRowIsEditingSelector, {
|
|
91
91
|
rowId,
|
|
92
92
|
editMode: rootProps.editMode
|
|
@@ -199,7 +199,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
|
|
|
199
199
|
return rowStyle;
|
|
200
200
|
}, [isNotVisible, rowHeight, styleProp, heightEntry, rootProps.rowSpacingType]);
|
|
201
201
|
const rowClassNames = apiRef.current.unstable_applyPipeProcessors('rowClassName', [], rowId);
|
|
202
|
-
const ariaAttributes =
|
|
202
|
+
const ariaAttributes = getRowAriaAttributes(rowNode, index);
|
|
203
203
|
if (typeof rootProps.getRowClassName === 'function') {
|
|
204
204
|
const indexRelativeToCurrentPage = index - (currentPage.range?.firstRowIndex || 0);
|
|
205
205
|
const rowParams = (0, _extends2.default)({}, apiRef.current.getRowParams(rowId), {
|
|
@@ -209,11 +209,6 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
|
|
|
209
209
|
});
|
|
210
210
|
rowClassNames.push(rootProps.getRowClassName(rowParams));
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
/* Start of rendering */
|
|
214
|
-
if (!rowNode) {
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
212
|
const getCell = (column, indexInSection, indexRelativeToAllColumns, sectionLength, pinnedPosition = _constants.PinnedColumnPosition.NONE) => {
|
|
218
213
|
const cellColSpanInfo = apiRef.current.unstable_getCellColSpanInfo(rowId, indexRelativeToAllColumns);
|
|
219
214
|
if (cellColSpanInfo?.spannedByColSpan) {
|
|
@@ -222,7 +217,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
|
|
|
222
217
|
const width = cellColSpanInfo?.cellProps.width ?? column.computedWidth;
|
|
223
218
|
const colSpan = cellColSpanInfo?.cellProps.colSpan ?? 1;
|
|
224
219
|
const pinnedOffset = (0, _getPinnedCellOffset.getPinnedCellOffset)(pinnedPosition, column.computedWidth, indexRelativeToAllColumns, columnPositions, columnsTotalWidth, scrollbarWidth);
|
|
225
|
-
if (rowNode
|
|
220
|
+
if (rowNode.type === 'skeletonRow') {
|
|
226
221
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(slots.skeletonCell, {
|
|
227
222
|
type: column.type,
|
|
228
223
|
width: width,
|
|
@@ -17,7 +17,7 @@ var _fastMemo = require("@mui/x-internals/fastMemo");
|
|
|
17
17
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
18
18
|
var _constants = require("../constants");
|
|
19
19
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
20
|
-
var
|
|
20
|
+
var _useGridEvent = require("../hooks/utils/useGridEvent");
|
|
21
21
|
var _useGridSelector = require("../hooks/utils/useGridSelector");
|
|
22
22
|
var _gridDimensionsSelectors = require("../hooks/features/dimensions/gridDimensionsSelectors");
|
|
23
23
|
var _densitySelector = require("../hooks/features/density/densitySelector");
|
|
@@ -70,8 +70,8 @@ const offsetSelector = (0, _createSelector.createSelector)(_gridDimensionsSelect
|
|
|
70
70
|
function GridScrollAreaWrapper(props) {
|
|
71
71
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
72
72
|
const [dragging, setDragging] = React.useState(false);
|
|
73
|
-
(0,
|
|
74
|
-
(0,
|
|
73
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragStart', () => setDragging(true));
|
|
74
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'columnHeaderDragEnd', () => setDragging(false));
|
|
75
75
|
if (!dragging) {
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
@@ -143,7 +143,7 @@ function GridScrollAreaContent(props) {
|
|
|
143
143
|
});
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
|
-
(0,
|
|
146
|
+
(0, _useGridEvent.useGridEvent)(apiRef, 'scrollPositionChange', handleScrolling);
|
|
147
147
|
if (!canScrollMore) {
|
|
148
148
|
return null;
|
|
149
149
|
}
|
|
@@ -25,48 +25,56 @@ const detectScroll = (0, _system.keyframes)({
|
|
|
25
25
|
'--scrollable': '" "'
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
+
|
|
29
|
+
// This `styled()` function invokes keyframes. `styled-components` only supports keyframes
|
|
30
|
+
// in string templates. Do not convert these styles in JS object as it will break.
|
|
28
31
|
const ShadowScrollArea = (0, _system.styled)('div', {
|
|
29
32
|
name: 'MuiDataGrid',
|
|
30
33
|
slot: 'ShadowScrollArea'
|
|
31
|
-
})
|
|
32
|
-
flex: 1
|
|
33
|
-
display:
|
|
34
|
-
|
|
35
|
-
animation: detectScroll
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
overflow:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
})`
|
|
35
|
+
flex: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
animation: ${detectScroll};
|
|
39
|
+
animation-timeline: --scroll-timeline;
|
|
40
|
+
animation-fill-mode: none;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
overflow: auto;
|
|
43
|
+
scroll-timeline: --scroll-timeline block;
|
|
44
|
+
|
|
45
|
+
&::before,
|
|
46
|
+
&::after {
|
|
47
|
+
content: '';
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
display: block;
|
|
50
|
+
position: sticky;
|
|
51
|
+
left: 0;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 4px;
|
|
54
|
+
animation: ${reveal} linear both;
|
|
55
|
+
animation-timeline: --scroll-timeline;
|
|
56
|
+
|
|
51
57
|
// Custom property toggle trick:
|
|
52
58
|
// - Detects if the element is scrollable
|
|
53
59
|
// - https://css-tricks.com/the-css-custom-property-toggle-trick/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
visibility:
|
|
57
|
-
},
|
|
58
|
-
'&::before': {
|
|
59
|
-
top: 0,
|
|
60
|
-
background: 'linear-gradient(to bottom, rgba(0,0,0,0.05) 0, transparent 100%)',
|
|
61
|
-
animationRange: '0 4px'
|
|
62
|
-
},
|
|
63
|
-
'&::after': {
|
|
64
|
-
bottom: 0,
|
|
65
|
-
background: 'linear-gradient(to top, rgba(0,0,0,0.05) 0, transparent 100%)',
|
|
66
|
-
animationDirection: 'reverse',
|
|
67
|
-
animationRange: 'calc(100% - 4px) 100%'
|
|
60
|
+
--visibility-scrollable: var(--scrollable) visible;
|
|
61
|
+
--visibility-not-scrollable: hidden;
|
|
62
|
+
visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
|
|
68
63
|
}
|
|
69
|
-
|
|
64
|
+
|
|
65
|
+
&::before {
|
|
66
|
+
top: 0;
|
|
67
|
+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
68
|
+
animation-range: 0 4px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&::after {
|
|
72
|
+
bottom: 0;
|
|
73
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
74
|
+
animation-direction: reverse;
|
|
75
|
+
animation-range: calc(100% - 4px) 100%;
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
80
|
* Adds scroll shadows above and below content in a scrollable container.
|
|
@@ -187,7 +187,7 @@ const GridSkeletonLoadingOverlayInner = exports.GridSkeletonLoadingOverlayInner
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
(0, _hooks.
|
|
190
|
+
(0, _hooks.useGridEvent)(apiRef, 'columnResize', handleColumnResize);
|
|
191
191
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(SkeletonOverlay, (0, _extends2.default)({
|
|
192
192
|
className: classes.root
|
|
193
193
|
}, rest, {
|
|
@@ -18,16 +18,7 @@ export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (({
|
|
|
18
18
|
closeMenuOnClick?: boolean;
|
|
19
19
|
closeMenu?: () => void;
|
|
20
20
|
} & Omit<GridSlotProps['baseMenuItem'], 'component'>));
|
|
21
|
-
declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<(
|
|
22
|
-
showInMenu?: false;
|
|
23
|
-
icon: React.ReactElement<any>;
|
|
24
|
-
} & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
|
|
25
|
-
label?: string;
|
|
26
|
-
color?: "default" | "inherit" | "primary";
|
|
27
|
-
edge?: "start" | "end" | false;
|
|
28
|
-
} & import("../..").BaseIconButtonPropsOverrides & import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "color" | "size" | "style" | "disabled" | "action" | "className" | "tabIndex" | "children" | "loading" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
29
|
-
component?: React.ElementType;
|
|
30
|
-
}, "component">, "ref"> | Omit<GridActionsCellItemCommonProps & {
|
|
21
|
+
declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<((GridActionsCellItemCommonProps & {
|
|
31
22
|
showInMenu: true;
|
|
32
23
|
/**
|
|
33
24
|
* If false, the menu will not close when this item is clicked.
|
|
@@ -35,7 +26,27 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
35
26
|
*/
|
|
36
27
|
closeMenuOnClick?: boolean;
|
|
37
28
|
closeMenu?: () => void;
|
|
38
|
-
} & Omit<
|
|
39
|
-
|
|
40
|
-
}
|
|
29
|
+
} & Omit<React.DOMAttributes<HTMLElement> & {
|
|
30
|
+
[k: `aria-${string}`]: any;
|
|
31
|
+
[k: `data-${string}`]: any;
|
|
32
|
+
className?: string;
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
} & {
|
|
35
|
+
autoFocus?: boolean;
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
inert?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
iconStart?: React.ReactNode;
|
|
40
|
+
iconEnd?: React.ReactNode;
|
|
41
|
+
selected?: boolean;
|
|
42
|
+
value?: number | string | readonly string[];
|
|
43
|
+
style?: React.CSSProperties;
|
|
44
|
+
} & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) | Omit<GridActionsCellItemCommonProps & {
|
|
45
|
+
showInMenu?: false;
|
|
46
|
+
icon: React.ReactElement<any>;
|
|
47
|
+
} & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
|
|
48
|
+
label?: string;
|
|
49
|
+
color?: "default" | "inherit" | "primary";
|
|
50
|
+
edge?: "start" | "end" | false;
|
|
51
|
+
} & import("@mui/x-data-grid").BaseIconButtonPropsOverrides, "component">, "ref">) & React.RefAttributes<HTMLElement>>;
|
|
41
52
|
export { GridActionsCellItem };
|
|
@@ -14,7 +14,7 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
|
14
14
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
const _excluded = ["label", "icon", "showInMenu", "onClick"],
|
|
17
|
-
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
17
|
+
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
18
18
|
const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwardRef)((props, ref) => {
|
|
19
19
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
20
20
|
if (!props.showInMenu) {
|
|
@@ -67,11 +67,14 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes = {
|
|
|
67
67
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
68
68
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
69
69
|
// ----------------------------------------------------------------------
|
|
70
|
+
className: _propTypes.default.string,
|
|
70
71
|
/**
|
|
71
72
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
72
73
|
*/
|
|
73
74
|
component: _propTypes.default.elementType,
|
|
75
|
+
disabled: _propTypes.default.bool,
|
|
74
76
|
icon: _propTypes.default.element,
|
|
75
77
|
label: _propTypes.default.string.isRequired,
|
|
76
|
-
showInMenu: _propTypes.default.bool
|
|
78
|
+
showInMenu: _propTypes.default.bool,
|
|
79
|
+
style: _propTypes.default.object
|
|
77
80
|
} : void 0;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
3
2
|
import type { GridColDef } from '../../models/colDef/gridColDef';
|
|
4
3
|
import type { GridRenderCellParams } from '../../models/params/gridCellParams';
|
|
5
|
-
interface GridBooleanCellProps extends GridRenderCellParams
|
|
4
|
+
interface GridBooleanCellProps extends GridRenderCellParams {
|
|
6
5
|
hideDescendantCount?: boolean;
|
|
7
6
|
}
|
|
8
7
|
declare function GridBooleanCellRaw(props: GridBooleanCellProps): React.JSX.Element | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridSlotProps } from '../../models/gridSlotsComponentsProps';
|
|
3
3
|
import { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
|
|
4
|
-
export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams
|
|
4
|
+
export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams {
|
|
5
5
|
/**
|
|
6
6
|
* Callback called when the value is changed by the user.
|
|
7
|
-
* @param {
|
|
7
|
+
* @param {Event<any>} event The event source of the callback.
|
|
8
8
|
* @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
9
9
|
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
10
10
|
*/
|
|
11
|
-
onValueChange?: (event:
|
|
11
|
+
onValueChange?: (event: Parameters<NonNullable<GridSlotProps['baseSelect']['onOpen']>>[0], newValue: any) => Promise<void> | void;
|
|
12
12
|
/**
|
|
13
13
|
* If true, the select opens by default.
|
|
14
14
|
*/
|
|
@@ -171,7 +171,7 @@ process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
|
|
|
171
171
|
isValidating: _propTypes.default.bool,
|
|
172
172
|
/**
|
|
173
173
|
* Callback called when the value is changed by the user.
|
|
174
|
-
* @param {
|
|
174
|
+
* @param {Event<any>} event The event source of the callback.
|
|
175
175
|
* @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
176
176
|
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
177
177
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridRenderCellParams } from '../../models/params/gridCellParams';
|
|
3
|
-
declare const GridCellCheckboxForwardRef: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("
|
|
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
|
-
export declare const GridCellCheckboxRenderer: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("
|
|
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
2
|
import type { GridColumnHeaderParams } from '../../models/params/gridColumnHeaderParams';
|
|
3
|
-
declare const GridHeaderCheckbox: React.ForwardRefExoticComponent<GridColumnHeaderParams<import("
|
|
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 };
|
|
@@ -239,30 +239,7 @@ process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
|
|
|
239
239
|
* @returns {GridColDef['field'][]} The list of togglable columns' field names.
|
|
240
240
|
*/
|
|
241
241
|
getTogglableColumns: _propTypes.default.func,
|
|
242
|
-
searchInputProps: _propTypes.default.
|
|
243
|
-
autoComplete: _propTypes.default.string,
|
|
244
|
-
className: _propTypes.default.string,
|
|
245
|
-
color: _propTypes.default.oneOf(['error', 'primary']),
|
|
246
|
-
disabled: _propTypes.default.bool,
|
|
247
|
-
error: _propTypes.default.bool,
|
|
248
|
-
fullWidth: _propTypes.default.bool,
|
|
249
|
-
helperText: _propTypes.default.string,
|
|
250
|
-
id: _propTypes.default.string,
|
|
251
|
-
inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
252
|
-
current: _propTypes.default.object
|
|
253
|
-
})]),
|
|
254
|
-
label: _propTypes.default.node,
|
|
255
|
-
onChange: _propTypes.default.func,
|
|
256
|
-
onKeyDown: _propTypes.default.func,
|
|
257
|
-
placeholder: _propTypes.default.string,
|
|
258
|
-
role: _propTypes.default.string,
|
|
259
|
-
size: _propTypes.default.oneOf(['medium', 'small']),
|
|
260
|
-
slotProps: _propTypes.default.object,
|
|
261
|
-
style: _propTypes.default.object,
|
|
262
|
-
tabIndex: _propTypes.default.number,
|
|
263
|
-
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(['button', 'checkbox', 'color', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week']), _propTypes.default.object]),
|
|
264
|
-
value: _propTypes.default.string
|
|
265
|
-
}),
|
|
242
|
+
searchInputProps: _propTypes.default.object,
|
|
266
243
|
searchPredicate: _propTypes.default.func,
|
|
267
244
|
sort: _propTypes.default.oneOf(['asc', 'desc']),
|
|
268
245
|
/**
|