@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
|
@@ -17,48 +17,56 @@ const detectScroll = keyframes({
|
|
|
17
17
|
'--scrollable': '" "'
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
+
|
|
21
|
+
// This `styled()` function invokes keyframes. `styled-components` only supports keyframes
|
|
22
|
+
// in string templates. Do not convert these styles in JS object as it will break.
|
|
20
23
|
const ShadowScrollArea = styled('div', {
|
|
21
24
|
name: 'MuiDataGrid',
|
|
22
25
|
slot: 'ShadowScrollArea'
|
|
23
|
-
})
|
|
24
|
-
flex: 1
|
|
25
|
-
display:
|
|
26
|
-
|
|
27
|
-
animation: detectScroll
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
overflow:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
})`
|
|
27
|
+
flex: 1;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
animation: ${detectScroll};
|
|
31
|
+
animation-timeline: --scroll-timeline;
|
|
32
|
+
animation-fill-mode: none;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
overflow: auto;
|
|
35
|
+
scroll-timeline: --scroll-timeline block;
|
|
36
|
+
|
|
37
|
+
&::before,
|
|
38
|
+
&::after {
|
|
39
|
+
content: '';
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
display: block;
|
|
42
|
+
position: sticky;
|
|
43
|
+
left: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 4px;
|
|
46
|
+
animation: ${reveal} linear both;
|
|
47
|
+
animation-timeline: --scroll-timeline;
|
|
48
|
+
|
|
43
49
|
// Custom property toggle trick:
|
|
44
50
|
// - Detects if the element is scrollable
|
|
45
51
|
// - https://css-tricks.com/the-css-custom-property-toggle-trick/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
visibility:
|
|
49
|
-
},
|
|
50
|
-
'&::before': {
|
|
51
|
-
top: 0,
|
|
52
|
-
background: 'linear-gradient(to bottom, rgba(0,0,0,0.05) 0, transparent 100%)',
|
|
53
|
-
animationRange: '0 4px'
|
|
54
|
-
},
|
|
55
|
-
'&::after': {
|
|
56
|
-
bottom: 0,
|
|
57
|
-
background: 'linear-gradient(to top, rgba(0,0,0,0.05) 0, transparent 100%)',
|
|
58
|
-
animationDirection: 'reverse',
|
|
59
|
-
animationRange: 'calc(100% - 4px) 100%'
|
|
52
|
+
--visibility-scrollable: var(--scrollable) visible;
|
|
53
|
+
--visibility-not-scrollable: hidden;
|
|
54
|
+
visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
|
|
60
55
|
}
|
|
61
|
-
|
|
56
|
+
|
|
57
|
+
&::before {
|
|
58
|
+
top: 0;
|
|
59
|
+
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
60
|
+
animation-range: 0 4px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
bottom: 0;
|
|
65
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
|
|
66
|
+
animation-direction: reverse;
|
|
67
|
+
animation-range: calc(100% - 4px) 100%;
|
|
68
|
+
}
|
|
69
|
+
`;
|
|
62
70
|
|
|
63
71
|
/**
|
|
64
72
|
* Adds scroll shadows above and below content in a scrollable container.
|
|
@@ -10,7 +10,7 @@ import { useRtl } from '@mui/system/RtlProvider';
|
|
|
10
10
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
11
11
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
12
12
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
13
|
-
import { gridColumnPositionsSelector, gridDimensionsSelector, gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector,
|
|
13
|
+
import { gridColumnPositionsSelector, gridDimensionsSelector, gridVisibleColumnDefinitionsSelector, gridVisiblePinnedColumnDefinitionsSelector, useGridEvent, useGridSelector } from "../hooks/index.js";
|
|
14
14
|
import { PinnedColumnPosition } from "../internals/constants.js";
|
|
15
15
|
import { gridColumnsTotalWidthSelector } from "../hooks/features/dimensions/gridDimensionsSelectors.js";
|
|
16
16
|
import { getDataGridUtilityClass, gridClasses } from "../constants/gridClasses.js";
|
|
@@ -179,7 +179,7 @@ export const GridSkeletonLoadingOverlayInner = forwardRef(function GridSkeletonL
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
useGridEvent(apiRef, 'columnResize', handleColumnResize);
|
|
183
183
|
return /*#__PURE__*/_jsx(SkeletonOverlay, _extends({
|
|
184
184
|
className: classes.root
|
|
185
185
|
}, 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 };
|
|
@@ -6,8 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
8
8
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
9
|
-
|
|
10
|
-
// FIXME(v8:romgrk): Make parametric
|
|
11
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
10
|
const GridActionsCellItem = forwardRef((props, ref) => {
|
|
13
11
|
const rootProps = useGridRootProps();
|
|
@@ -61,12 +59,15 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes = {
|
|
|
61
59
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
62
60
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
63
61
|
// ----------------------------------------------------------------------
|
|
62
|
+
className: PropTypes.string,
|
|
64
63
|
/**
|
|
65
64
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
66
65
|
*/
|
|
67
66
|
component: PropTypes.elementType,
|
|
67
|
+
disabled: PropTypes.bool,
|
|
68
68
|
icon: PropTypes.element,
|
|
69
69
|
label: PropTypes.string.isRequired,
|
|
70
|
-
showInMenu: PropTypes.bool
|
|
70
|
+
showInMenu: PropTypes.bool,
|
|
71
|
+
style: PropTypes.object
|
|
71
72
|
} : void 0;
|
|
72
73
|
export { GridActionsCellItem };
|
|
@@ -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
|
*/
|
|
@@ -162,7 +162,7 @@ process.env.NODE_ENV !== "production" ? GridEditSingleSelectCell.propTypes = {
|
|
|
162
162
|
isValidating: PropTypes.bool,
|
|
163
163
|
/**
|
|
164
164
|
* Callback called when the value is changed by the user.
|
|
165
|
-
* @param {
|
|
165
|
+
* @param {Event<any>} event The event source of the callback.
|
|
166
166
|
* @param {any} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
167
167
|
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
168
168
|
*/
|
|
@@ -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 };
|
|
@@ -230,30 +230,7 @@ process.env.NODE_ENV !== "production" ? GridColumnsManagement.propTypes = {
|
|
|
230
230
|
* @returns {GridColDef['field'][]} The list of togglable columns' field names.
|
|
231
231
|
*/
|
|
232
232
|
getTogglableColumns: PropTypes.func,
|
|
233
|
-
searchInputProps: PropTypes.
|
|
234
|
-
autoComplete: PropTypes.string,
|
|
235
|
-
className: PropTypes.string,
|
|
236
|
-
color: PropTypes.oneOf(['error', 'primary']),
|
|
237
|
-
disabled: PropTypes.bool,
|
|
238
|
-
error: PropTypes.bool,
|
|
239
|
-
fullWidth: PropTypes.bool,
|
|
240
|
-
helperText: PropTypes.string,
|
|
241
|
-
id: PropTypes.string,
|
|
242
|
-
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
243
|
-
current: PropTypes.object
|
|
244
|
-
})]),
|
|
245
|
-
label: PropTypes.node,
|
|
246
|
-
onChange: PropTypes.func,
|
|
247
|
-
onKeyDown: PropTypes.func,
|
|
248
|
-
placeholder: PropTypes.string,
|
|
249
|
-
role: PropTypes.string,
|
|
250
|
-
size: PropTypes.oneOf(['medium', 'small']),
|
|
251
|
-
slotProps: PropTypes.object,
|
|
252
|
-
style: PropTypes.object,
|
|
253
|
-
tabIndex: PropTypes.number,
|
|
254
|
-
type: PropTypes.oneOfType([PropTypes.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.object]),
|
|
255
|
-
value: PropTypes.string
|
|
256
|
-
}),
|
|
233
|
+
searchInputProps: PropTypes.object,
|
|
257
234
|
searchPredicate: PropTypes.func,
|
|
258
235
|
sort: PropTypes.oneOf(['asc', 'desc']),
|
|
259
236
|
/**
|
|
@@ -80,147 +80,22 @@ process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes = {
|
|
|
80
80
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
81
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
82
82
|
// ----------------------------------------------------------------------
|
|
83
|
-
/**
|
|
84
|
-
* A ref for imperative actions.
|
|
85
|
-
* It currently only supports `focusVisible()` action.
|
|
86
|
-
*/
|
|
87
|
-
action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
88
|
-
current: PropTypes.shape({
|
|
89
|
-
focusVisible: PropTypes.func.isRequired
|
|
90
|
-
})
|
|
91
|
-
})]),
|
|
92
|
-
/**
|
|
93
|
-
* If `true`, the ripples are centered.
|
|
94
|
-
* They won't start at the cursor interaction position.
|
|
95
|
-
* @default false
|
|
96
|
-
*/
|
|
97
|
-
centerRipple: PropTypes.bool,
|
|
98
83
|
/**
|
|
99
84
|
* Override or extend the styles applied to the component.
|
|
100
85
|
*/
|
|
101
86
|
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
102
|
-
/**
|
|
103
|
-
* The color of the component.
|
|
104
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
105
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
106
|
-
* @default 'primary'
|
|
107
|
-
*/
|
|
108
|
-
color: PropTypes.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
109
|
-
component: PropTypes.elementType,
|
|
110
|
-
/**
|
|
111
|
-
* If `true`, the component is disabled.
|
|
112
|
-
*/
|
|
113
87
|
disabled: PropTypes.bool,
|
|
114
|
-
|
|
115
|
-
* If `true`, no elevation is used.
|
|
116
|
-
* @default false
|
|
117
|
-
*/
|
|
118
|
-
disableElevation: PropTypes.bool,
|
|
119
|
-
/**
|
|
120
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
121
|
-
* @default false
|
|
122
|
-
*/
|
|
123
|
-
disableFocusRipple: PropTypes.bool,
|
|
124
|
-
/**
|
|
125
|
-
* If `true`, the ripple effect is disabled.
|
|
126
|
-
*
|
|
127
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
128
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
disableRipple: PropTypes.bool,
|
|
132
|
-
/**
|
|
133
|
-
* If `true`, the touch ripple effect is disabled.
|
|
134
|
-
* @default false
|
|
135
|
-
*/
|
|
136
|
-
disableTouchRipple: PropTypes.bool,
|
|
137
|
-
/**
|
|
138
|
-
* Element placed after the children.
|
|
139
|
-
*/
|
|
140
|
-
endIcon: PropTypes.node,
|
|
141
|
-
/**
|
|
142
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
143
|
-
* @default false
|
|
144
|
-
*/
|
|
145
|
-
focusRipple: PropTypes.bool,
|
|
146
|
-
/**
|
|
147
|
-
* This prop can help identify which element has keyboard focus.
|
|
148
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
149
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
150
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
151
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
152
|
-
* if needed.
|
|
153
|
-
*/
|
|
154
|
-
focusVisibleClassName: PropTypes.string,
|
|
155
|
-
/**
|
|
156
|
-
* If `true`, the button will take up the full width of its container.
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
fullWidth: PropTypes.bool,
|
|
160
|
-
/**
|
|
161
|
-
* The URL to link to when the button is clicked.
|
|
162
|
-
* If defined, an `a` element will be used as the root node.
|
|
163
|
-
*/
|
|
164
|
-
href: PropTypes.string,
|
|
165
|
-
/**
|
|
166
|
-
* The component used to render a link when the `href` prop is provided.
|
|
167
|
-
* @default 'a'
|
|
168
|
-
*/
|
|
169
|
-
LinkComponent: PropTypes.elementType,
|
|
170
|
-
/**
|
|
171
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
172
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
173
|
-
* @default null
|
|
174
|
-
*/
|
|
175
|
-
loading: PropTypes.bool,
|
|
176
|
-
/**
|
|
177
|
-
* Element placed before the children if the button is in loading state.
|
|
178
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
179
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
180
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
181
|
-
*/
|
|
182
|
-
loadingIndicator: PropTypes.node,
|
|
183
|
-
/**
|
|
184
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
185
|
-
* @default 'center'
|
|
186
|
-
*/
|
|
187
|
-
loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),
|
|
188
|
-
/**
|
|
189
|
-
* Callback fired when the component is focused with a keyboard.
|
|
190
|
-
* We trigger a `onFocus` callback too.
|
|
191
|
-
*/
|
|
192
|
-
onFocusVisible: PropTypes.func,
|
|
88
|
+
id: PropTypes.string,
|
|
193
89
|
/**
|
|
194
90
|
* A function to customize rendering of the component.
|
|
195
91
|
*/
|
|
196
92
|
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
197
|
-
|
|
198
|
-
* The size of the component.
|
|
199
|
-
* `small` is equivalent to the dense button styling.
|
|
200
|
-
*/
|
|
93
|
+
role: PropTypes.string,
|
|
201
94
|
size: PropTypes.oneOf(['large', 'medium', 'small']),
|
|
202
|
-
/**
|
|
203
|
-
* Element placed before the children.
|
|
204
|
-
*/
|
|
205
95
|
startIcon: PropTypes.node,
|
|
206
96
|
style: PropTypes.object,
|
|
207
|
-
/**
|
|
208
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
209
|
-
*/
|
|
210
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
211
97
|
tabIndex: PropTypes.number,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
*/
|
|
215
|
-
TouchRippleProps: PropTypes.object,
|
|
216
|
-
/**
|
|
217
|
-
* A ref that points to the `TouchRipple` element.
|
|
218
|
-
*/
|
|
219
|
-
touchRippleRef: PropTypes.any,
|
|
220
|
-
/**
|
|
221
|
-
* The variant to use.
|
|
222
|
-
* @default 'text'
|
|
223
|
-
*/
|
|
224
|
-
variant: PropTypes.oneOf(['contained', 'outlined', 'text'])
|
|
98
|
+
title: PropTypes.string,
|
|
99
|
+
touchRippleRef: PropTypes.any
|
|
225
100
|
} : void 0;
|
|
226
101
|
export { ColumnsPanelTrigger };
|
|
@@ -10,6 +10,7 @@ import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
|
10
10
|
import { vars } from "../../constants/cssVariables.js";
|
|
11
11
|
import { getDataGridUtilityClass } from "../../constants/gridClasses.js";
|
|
12
12
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.js";
|
|
13
|
+
import { Toolbar } from "../toolbarV8/index.js";
|
|
13
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
15
|
const useUtilityClasses = ownerState => {
|
|
15
16
|
const {
|
|
@@ -20,16 +21,17 @@ const useUtilityClasses = ownerState => {
|
|
|
20
21
|
};
|
|
21
22
|
return composeClasses(slots, getDataGridUtilityClass, classes);
|
|
22
23
|
};
|
|
23
|
-
const GridToolbarContainerRoot = styled(
|
|
24
|
+
const GridToolbarContainerRoot = styled(Toolbar, {
|
|
24
25
|
name: 'MuiDataGrid',
|
|
25
26
|
slot: 'ToolbarContainer',
|
|
26
|
-
|
|
27
|
+
shouldForwardProp: prop => prop !== 'ownerState'
|
|
27
28
|
})({
|
|
28
29
|
display: 'flex',
|
|
29
30
|
alignItems: 'center',
|
|
30
31
|
flexWrap: 'wrap',
|
|
31
32
|
gap: vars.spacing(1),
|
|
32
|
-
padding: vars.spacing(0.5,
|
|
33
|
+
padding: vars.spacing(0.5),
|
|
34
|
+
minHeight: 'auto'
|
|
33
35
|
});
|
|
34
36
|
const GridToolbarContainer = forwardRef(function GridToolbarContainer(props, ref) {
|
|
35
37
|
const {
|
|
@@ -47,113 +47,9 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
|
|
|
47
47
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
48
48
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
49
49
|
// ----------------------------------------------------------------------
|
|
50
|
-
/**
|
|
51
|
-
* A ref for imperative actions.
|
|
52
|
-
* It currently only supports `focusVisible()` action.
|
|
53
|
-
*/
|
|
54
|
-
action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
55
|
-
current: PropTypes.shape({
|
|
56
|
-
focusVisible: PropTypes.func.isRequired
|
|
57
|
-
})
|
|
58
|
-
})]),
|
|
59
|
-
/**
|
|
60
|
-
* If `true`, the ripples are centered.
|
|
61
|
-
* They won't start at the cursor interaction position.
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
centerRipple: PropTypes.bool,
|
|
65
50
|
className: PropTypes.string,
|
|
66
|
-
/**
|
|
67
|
-
* The color of the component.
|
|
68
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
69
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
70
|
-
* @default 'primary'
|
|
71
|
-
*/
|
|
72
|
-
color: PropTypes.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
73
|
-
component: PropTypes.elementType,
|
|
74
|
-
/**
|
|
75
|
-
* If `true`, the component is disabled.
|
|
76
|
-
*/
|
|
77
51
|
disabled: PropTypes.bool,
|
|
78
|
-
|
|
79
|
-
* If `true`, no elevation is used.
|
|
80
|
-
* @default false
|
|
81
|
-
*/
|
|
82
|
-
disableElevation: PropTypes.bool,
|
|
83
|
-
/**
|
|
84
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
85
|
-
* @default false
|
|
86
|
-
*/
|
|
87
|
-
disableFocusRipple: PropTypes.bool,
|
|
88
|
-
/**
|
|
89
|
-
* If `true`, the ripple effect is disabled.
|
|
90
|
-
*
|
|
91
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
92
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
disableRipple: PropTypes.bool,
|
|
96
|
-
/**
|
|
97
|
-
* If `true`, the touch ripple effect is disabled.
|
|
98
|
-
* @default false
|
|
99
|
-
*/
|
|
100
|
-
disableTouchRipple: PropTypes.bool,
|
|
101
|
-
/**
|
|
102
|
-
* Element placed after the children.
|
|
103
|
-
*/
|
|
104
|
-
endIcon: PropTypes.node,
|
|
105
|
-
/**
|
|
106
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
107
|
-
* @default false
|
|
108
|
-
*/
|
|
109
|
-
focusRipple: PropTypes.bool,
|
|
110
|
-
/**
|
|
111
|
-
* This prop can help identify which element has keyboard focus.
|
|
112
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
113
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
114
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
115
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
116
|
-
* if needed.
|
|
117
|
-
*/
|
|
118
|
-
focusVisibleClassName: PropTypes.string,
|
|
119
|
-
/**
|
|
120
|
-
* If `true`, the button will take up the full width of its container.
|
|
121
|
-
* @default false
|
|
122
|
-
*/
|
|
123
|
-
fullWidth: PropTypes.bool,
|
|
124
|
-
/**
|
|
125
|
-
* The URL to link to when the button is clicked.
|
|
126
|
-
* If defined, an `a` element will be used as the root node.
|
|
127
|
-
*/
|
|
128
|
-
href: PropTypes.string,
|
|
129
|
-
/**
|
|
130
|
-
* The component used to render a link when the `href` prop is provided.
|
|
131
|
-
* @default 'a'
|
|
132
|
-
*/
|
|
133
|
-
LinkComponent: PropTypes.elementType,
|
|
134
|
-
/**
|
|
135
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
136
|
-
* If `true | false`, the loading wrapper is always rendered before the children to prevent [Google Translation Crash](https://github.com/mui/material-ui/issues/27853).
|
|
137
|
-
* @default null
|
|
138
|
-
*/
|
|
139
|
-
loading: PropTypes.bool,
|
|
140
|
-
/**
|
|
141
|
-
* Element placed before the children if the button is in loading state.
|
|
142
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
143
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
144
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
145
|
-
*/
|
|
146
|
-
loadingIndicator: PropTypes.node,
|
|
147
|
-
/**
|
|
148
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
149
|
-
* @default 'center'
|
|
150
|
-
*/
|
|
151
|
-
loadingPosition: PropTypes.oneOf(['center', 'end', 'start']),
|
|
152
|
-
/**
|
|
153
|
-
* Callback fired when the component is focused with a keyboard.
|
|
154
|
-
* We trigger a `onFocus` callback too.
|
|
155
|
-
*/
|
|
156
|
-
onFocusVisible: PropTypes.func,
|
|
52
|
+
id: PropTypes.string,
|
|
157
53
|
/**
|
|
158
54
|
* The options to apply on the CSV export.
|
|
159
55
|
* @demos
|
|
@@ -175,33 +71,12 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
|
|
|
175
71
|
* A function to customize rendering of the component.
|
|
176
72
|
*/
|
|
177
73
|
render: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
|
|
178
|
-
|
|
179
|
-
* The size of the component.
|
|
180
|
-
* `small` is equivalent to the dense button styling.
|
|
181
|
-
*/
|
|
74
|
+
role: PropTypes.string,
|
|
182
75
|
size: PropTypes.oneOf(['large', 'medium', 'small']),
|
|
183
|
-
/**
|
|
184
|
-
* Element placed before the children.
|
|
185
|
-
*/
|
|
186
76
|
startIcon: PropTypes.node,
|
|
187
77
|
style: PropTypes.object,
|
|
188
|
-
/**
|
|
189
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
190
|
-
*/
|
|
191
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
192
78
|
tabIndex: PropTypes.number,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
*/
|
|
196
|
-
TouchRippleProps: PropTypes.object,
|
|
197
|
-
/**
|
|
198
|
-
* A ref that points to the `TouchRipple` element.
|
|
199
|
-
*/
|
|
200
|
-
touchRippleRef: PropTypes.any,
|
|
201
|
-
/**
|
|
202
|
-
* The variant to use.
|
|
203
|
-
* @default 'text'
|
|
204
|
-
*/
|
|
205
|
-
variant: PropTypes.oneOf(['contained', 'outlined', 'text'])
|
|
79
|
+
title: PropTypes.string,
|
|
80
|
+
touchRippleRef: PropTypes.any
|
|
206
81
|
} : void 0;
|
|
207
82
|
export { ExportCsv };
|