@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
|
@@ -88,146 +88,21 @@ process.env.NODE_ENV !== "production" ? ColumnsPanelTrigger.propTypes = {
|
|
|
88
88
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
89
89
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
90
90
|
// ----------------------------------------------------------------------
|
|
91
|
-
/**
|
|
92
|
-
* A ref for imperative actions.
|
|
93
|
-
* It currently only supports `focusVisible()` action.
|
|
94
|
-
*/
|
|
95
|
-
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
96
|
-
current: _propTypes.default.shape({
|
|
97
|
-
focusVisible: _propTypes.default.func.isRequired
|
|
98
|
-
})
|
|
99
|
-
})]),
|
|
100
|
-
/**
|
|
101
|
-
* If `true`, the ripples are centered.
|
|
102
|
-
* They won't start at the cursor interaction position.
|
|
103
|
-
* @default false
|
|
104
|
-
*/
|
|
105
|
-
centerRipple: _propTypes.default.bool,
|
|
106
91
|
/**
|
|
107
92
|
* Override or extend the styles applied to the component.
|
|
108
93
|
*/
|
|
109
94
|
className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
110
|
-
/**
|
|
111
|
-
* The color of the component.
|
|
112
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
113
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
114
|
-
* @default 'primary'
|
|
115
|
-
*/
|
|
116
|
-
color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
117
|
-
component: _propTypes.default.elementType,
|
|
118
|
-
/**
|
|
119
|
-
* If `true`, the component is disabled.
|
|
120
|
-
*/
|
|
121
95
|
disabled: _propTypes.default.bool,
|
|
122
|
-
|
|
123
|
-
* If `true`, no elevation is used.
|
|
124
|
-
* @default false
|
|
125
|
-
*/
|
|
126
|
-
disableElevation: _propTypes.default.bool,
|
|
127
|
-
/**
|
|
128
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
disableFocusRipple: _propTypes.default.bool,
|
|
132
|
-
/**
|
|
133
|
-
* If `true`, the ripple effect is disabled.
|
|
134
|
-
*
|
|
135
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
136
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
137
|
-
* @default false
|
|
138
|
-
*/
|
|
139
|
-
disableRipple: _propTypes.default.bool,
|
|
140
|
-
/**
|
|
141
|
-
* If `true`, the touch ripple effect is disabled.
|
|
142
|
-
* @default false
|
|
143
|
-
*/
|
|
144
|
-
disableTouchRipple: _propTypes.default.bool,
|
|
145
|
-
/**
|
|
146
|
-
* Element placed after the children.
|
|
147
|
-
*/
|
|
148
|
-
endIcon: _propTypes.default.node,
|
|
149
|
-
/**
|
|
150
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
151
|
-
* @default false
|
|
152
|
-
*/
|
|
153
|
-
focusRipple: _propTypes.default.bool,
|
|
154
|
-
/**
|
|
155
|
-
* This prop can help identify which element has keyboard focus.
|
|
156
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
157
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
158
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
159
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
160
|
-
* if needed.
|
|
161
|
-
*/
|
|
162
|
-
focusVisibleClassName: _propTypes.default.string,
|
|
163
|
-
/**
|
|
164
|
-
* If `true`, the button will take up the full width of its container.
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
fullWidth: _propTypes.default.bool,
|
|
168
|
-
/**
|
|
169
|
-
* The URL to link to when the button is clicked.
|
|
170
|
-
* If defined, an `a` element will be used as the root node.
|
|
171
|
-
*/
|
|
172
|
-
href: _propTypes.default.string,
|
|
173
|
-
/**
|
|
174
|
-
* The component used to render a link when the `href` prop is provided.
|
|
175
|
-
* @default 'a'
|
|
176
|
-
*/
|
|
177
|
-
LinkComponent: _propTypes.default.elementType,
|
|
178
|
-
/**
|
|
179
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
180
|
-
* 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).
|
|
181
|
-
* @default null
|
|
182
|
-
*/
|
|
183
|
-
loading: _propTypes.default.bool,
|
|
184
|
-
/**
|
|
185
|
-
* Element placed before the children if the button is in loading state.
|
|
186
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
187
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
188
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
189
|
-
*/
|
|
190
|
-
loadingIndicator: _propTypes.default.node,
|
|
191
|
-
/**
|
|
192
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
193
|
-
* @default 'center'
|
|
194
|
-
*/
|
|
195
|
-
loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
|
|
196
|
-
/**
|
|
197
|
-
* Callback fired when the component is focused with a keyboard.
|
|
198
|
-
* We trigger a `onFocus` callback too.
|
|
199
|
-
*/
|
|
200
|
-
onFocusVisible: _propTypes.default.func,
|
|
96
|
+
id: _propTypes.default.string,
|
|
201
97
|
/**
|
|
202
98
|
* A function to customize rendering of the component.
|
|
203
99
|
*/
|
|
204
100
|
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
205
|
-
|
|
206
|
-
* The size of the component.
|
|
207
|
-
* `small` is equivalent to the dense button styling.
|
|
208
|
-
*/
|
|
101
|
+
role: _propTypes.default.string,
|
|
209
102
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
210
|
-
/**
|
|
211
|
-
* Element placed before the children.
|
|
212
|
-
*/
|
|
213
103
|
startIcon: _propTypes.default.node,
|
|
214
104
|
style: _propTypes.default.object,
|
|
215
|
-
/**
|
|
216
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
217
|
-
*/
|
|
218
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
219
105
|
tabIndex: _propTypes.default.number,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
*/
|
|
223
|
-
TouchRippleProps: _propTypes.default.object,
|
|
224
|
-
/**
|
|
225
|
-
* A ref that points to the `TouchRipple` element.
|
|
226
|
-
*/
|
|
227
|
-
touchRippleRef: _propTypes.default.any,
|
|
228
|
-
/**
|
|
229
|
-
* The variant to use.
|
|
230
|
-
* @default 'text'
|
|
231
|
-
*/
|
|
232
|
-
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
|
106
|
+
title: _propTypes.default.string,
|
|
107
|
+
touchRippleRef: _propTypes.default.any
|
|
233
108
|
} : void 0;
|
|
@@ -17,6 +17,7 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
|
17
17
|
var _cssVariables = require("../../constants/cssVariables");
|
|
18
18
|
var _gridClasses = require("../../constants/gridClasses");
|
|
19
19
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
20
|
+
var _toolbarV = require("../toolbarV8");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
const _excluded = ["className", "children"];
|
|
22
23
|
const useUtilityClasses = ownerState => {
|
|
@@ -28,16 +29,17 @@ const useUtilityClasses = ownerState => {
|
|
|
28
29
|
};
|
|
29
30
|
return (0, _composeClasses.default)(slots, _gridClasses.getDataGridUtilityClass, classes);
|
|
30
31
|
};
|
|
31
|
-
const GridToolbarContainerRoot = (0, _system.styled)(
|
|
32
|
+
const GridToolbarContainerRoot = (0, _system.styled)(_toolbarV.Toolbar, {
|
|
32
33
|
name: 'MuiDataGrid',
|
|
33
34
|
slot: 'ToolbarContainer',
|
|
34
|
-
|
|
35
|
+
shouldForwardProp: prop => prop !== 'ownerState'
|
|
35
36
|
})({
|
|
36
37
|
display: 'flex',
|
|
37
38
|
alignItems: 'center',
|
|
38
39
|
flexWrap: 'wrap',
|
|
39
40
|
gap: _cssVariables.vars.spacing(1),
|
|
40
|
-
padding: _cssVariables.vars.spacing(0.5,
|
|
41
|
+
padding: _cssVariables.vars.spacing(0.5),
|
|
42
|
+
minHeight: 'auto'
|
|
41
43
|
});
|
|
42
44
|
const GridToolbarContainer = exports.GridToolbarContainer = (0, _forwardRef.forwardRef)(function GridToolbarContainer(props, ref) {
|
|
43
45
|
const {
|
|
@@ -55,113 +55,9 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
|
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
56
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
57
|
// ----------------------------------------------------------------------
|
|
58
|
-
/**
|
|
59
|
-
* A ref for imperative actions.
|
|
60
|
-
* It currently only supports `focusVisible()` action.
|
|
61
|
-
*/
|
|
62
|
-
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
63
|
-
current: _propTypes.default.shape({
|
|
64
|
-
focusVisible: _propTypes.default.func.isRequired
|
|
65
|
-
})
|
|
66
|
-
})]),
|
|
67
|
-
/**
|
|
68
|
-
* If `true`, the ripples are centered.
|
|
69
|
-
* They won't start at the cursor interaction position.
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
centerRipple: _propTypes.default.bool,
|
|
73
58
|
className: _propTypes.default.string,
|
|
74
|
-
/**
|
|
75
|
-
* The color of the component.
|
|
76
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
77
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
78
|
-
* @default 'primary'
|
|
79
|
-
*/
|
|
80
|
-
color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
81
|
-
component: _propTypes.default.elementType,
|
|
82
|
-
/**
|
|
83
|
-
* If `true`, the component is disabled.
|
|
84
|
-
*/
|
|
85
59
|
disabled: _propTypes.default.bool,
|
|
86
|
-
|
|
87
|
-
* If `true`, no elevation is used.
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
disableElevation: _propTypes.default.bool,
|
|
91
|
-
/**
|
|
92
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
disableFocusRipple: _propTypes.default.bool,
|
|
96
|
-
/**
|
|
97
|
-
* If `true`, the ripple effect is disabled.
|
|
98
|
-
*
|
|
99
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
100
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
101
|
-
* @default false
|
|
102
|
-
*/
|
|
103
|
-
disableRipple: _propTypes.default.bool,
|
|
104
|
-
/**
|
|
105
|
-
* If `true`, the touch ripple effect is disabled.
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
disableTouchRipple: _propTypes.default.bool,
|
|
109
|
-
/**
|
|
110
|
-
* Element placed after the children.
|
|
111
|
-
*/
|
|
112
|
-
endIcon: _propTypes.default.node,
|
|
113
|
-
/**
|
|
114
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
115
|
-
* @default false
|
|
116
|
-
*/
|
|
117
|
-
focusRipple: _propTypes.default.bool,
|
|
118
|
-
/**
|
|
119
|
-
* This prop can help identify which element has keyboard focus.
|
|
120
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
121
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
122
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
123
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
124
|
-
* if needed.
|
|
125
|
-
*/
|
|
126
|
-
focusVisibleClassName: _propTypes.default.string,
|
|
127
|
-
/**
|
|
128
|
-
* If `true`, the button will take up the full width of its container.
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
fullWidth: _propTypes.default.bool,
|
|
132
|
-
/**
|
|
133
|
-
* The URL to link to when the button is clicked.
|
|
134
|
-
* If defined, an `a` element will be used as the root node.
|
|
135
|
-
*/
|
|
136
|
-
href: _propTypes.default.string,
|
|
137
|
-
/**
|
|
138
|
-
* The component used to render a link when the `href` prop is provided.
|
|
139
|
-
* @default 'a'
|
|
140
|
-
*/
|
|
141
|
-
LinkComponent: _propTypes.default.elementType,
|
|
142
|
-
/**
|
|
143
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
144
|
-
* 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).
|
|
145
|
-
* @default null
|
|
146
|
-
*/
|
|
147
|
-
loading: _propTypes.default.bool,
|
|
148
|
-
/**
|
|
149
|
-
* Element placed before the children if the button is in loading state.
|
|
150
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
151
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
152
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
153
|
-
*/
|
|
154
|
-
loadingIndicator: _propTypes.default.node,
|
|
155
|
-
/**
|
|
156
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
157
|
-
* @default 'center'
|
|
158
|
-
*/
|
|
159
|
-
loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
|
|
160
|
-
/**
|
|
161
|
-
* Callback fired when the component is focused with a keyboard.
|
|
162
|
-
* We trigger a `onFocus` callback too.
|
|
163
|
-
*/
|
|
164
|
-
onFocusVisible: _propTypes.default.func,
|
|
60
|
+
id: _propTypes.default.string,
|
|
165
61
|
/**
|
|
166
62
|
* The options to apply on the CSV export.
|
|
167
63
|
* @demos
|
|
@@ -183,32 +79,11 @@ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
|
|
|
183
79
|
* A function to customize rendering of the component.
|
|
184
80
|
*/
|
|
185
81
|
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
186
|
-
|
|
187
|
-
* The size of the component.
|
|
188
|
-
* `small` is equivalent to the dense button styling.
|
|
189
|
-
*/
|
|
82
|
+
role: _propTypes.default.string,
|
|
190
83
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
191
|
-
/**
|
|
192
|
-
* Element placed before the children.
|
|
193
|
-
*/
|
|
194
84
|
startIcon: _propTypes.default.node,
|
|
195
85
|
style: _propTypes.default.object,
|
|
196
|
-
/**
|
|
197
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
198
|
-
*/
|
|
199
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
200
86
|
tabIndex: _propTypes.default.number,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
*/
|
|
204
|
-
TouchRippleProps: _propTypes.default.object,
|
|
205
|
-
/**
|
|
206
|
-
* A ref that points to the `TouchRipple` element.
|
|
207
|
-
*/
|
|
208
|
-
touchRippleRef: _propTypes.default.any,
|
|
209
|
-
/**
|
|
210
|
-
* The variant to use.
|
|
211
|
-
* @default 'text'
|
|
212
|
-
*/
|
|
213
|
-
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
|
87
|
+
title: _propTypes.default.string,
|
|
88
|
+
touchRippleRef: _propTypes.default.any
|
|
214
89
|
} : void 0;
|
|
@@ -55,113 +55,9 @@ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes = {
|
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
56
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
57
57
|
// ----------------------------------------------------------------------
|
|
58
|
-
/**
|
|
59
|
-
* A ref for imperative actions.
|
|
60
|
-
* It currently only supports `focusVisible()` action.
|
|
61
|
-
*/
|
|
62
|
-
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
63
|
-
current: _propTypes.default.shape({
|
|
64
|
-
focusVisible: _propTypes.default.func.isRequired
|
|
65
|
-
})
|
|
66
|
-
})]),
|
|
67
|
-
/**
|
|
68
|
-
* If `true`, the ripples are centered.
|
|
69
|
-
* They won't start at the cursor interaction position.
|
|
70
|
-
* @default false
|
|
71
|
-
*/
|
|
72
|
-
centerRipple: _propTypes.default.bool,
|
|
73
58
|
className: _propTypes.default.string,
|
|
74
|
-
/**
|
|
75
|
-
* The color of the component.
|
|
76
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
77
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
78
|
-
* @default 'primary'
|
|
79
|
-
*/
|
|
80
|
-
color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
81
|
-
component: _propTypes.default.elementType,
|
|
82
|
-
/**
|
|
83
|
-
* If `true`, the component is disabled.
|
|
84
|
-
*/
|
|
85
59
|
disabled: _propTypes.default.bool,
|
|
86
|
-
|
|
87
|
-
* If `true`, no elevation is used.
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
disableElevation: _propTypes.default.bool,
|
|
91
|
-
/**
|
|
92
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
disableFocusRipple: _propTypes.default.bool,
|
|
96
|
-
/**
|
|
97
|
-
* If `true`, the ripple effect is disabled.
|
|
98
|
-
*
|
|
99
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
100
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
101
|
-
* @default false
|
|
102
|
-
*/
|
|
103
|
-
disableRipple: _propTypes.default.bool,
|
|
104
|
-
/**
|
|
105
|
-
* If `true`, the touch ripple effect is disabled.
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
disableTouchRipple: _propTypes.default.bool,
|
|
109
|
-
/**
|
|
110
|
-
* Element placed after the children.
|
|
111
|
-
*/
|
|
112
|
-
endIcon: _propTypes.default.node,
|
|
113
|
-
/**
|
|
114
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
115
|
-
* @default false
|
|
116
|
-
*/
|
|
117
|
-
focusRipple: _propTypes.default.bool,
|
|
118
|
-
/**
|
|
119
|
-
* This prop can help identify which element has keyboard focus.
|
|
120
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
121
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
122
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
123
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
124
|
-
* if needed.
|
|
125
|
-
*/
|
|
126
|
-
focusVisibleClassName: _propTypes.default.string,
|
|
127
|
-
/**
|
|
128
|
-
* If `true`, the button will take up the full width of its container.
|
|
129
|
-
* @default false
|
|
130
|
-
*/
|
|
131
|
-
fullWidth: _propTypes.default.bool,
|
|
132
|
-
/**
|
|
133
|
-
* The URL to link to when the button is clicked.
|
|
134
|
-
* If defined, an `a` element will be used as the root node.
|
|
135
|
-
*/
|
|
136
|
-
href: _propTypes.default.string,
|
|
137
|
-
/**
|
|
138
|
-
* The component used to render a link when the `href` prop is provided.
|
|
139
|
-
* @default 'a'
|
|
140
|
-
*/
|
|
141
|
-
LinkComponent: _propTypes.default.elementType,
|
|
142
|
-
/**
|
|
143
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
144
|
-
* 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).
|
|
145
|
-
* @default null
|
|
146
|
-
*/
|
|
147
|
-
loading: _propTypes.default.bool,
|
|
148
|
-
/**
|
|
149
|
-
* Element placed before the children if the button is in loading state.
|
|
150
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
151
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
152
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
153
|
-
*/
|
|
154
|
-
loadingIndicator: _propTypes.default.node,
|
|
155
|
-
/**
|
|
156
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
157
|
-
* @default 'center'
|
|
158
|
-
*/
|
|
159
|
-
loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
|
|
160
|
-
/**
|
|
161
|
-
* Callback fired when the component is focused with a keyboard.
|
|
162
|
-
* We trigger a `onFocus` callback too.
|
|
163
|
-
*/
|
|
164
|
-
onFocusVisible: _propTypes.default.func,
|
|
60
|
+
id: _propTypes.default.string,
|
|
165
61
|
/**
|
|
166
62
|
* The options to apply on the Print export.
|
|
167
63
|
* @demos
|
|
@@ -183,32 +79,11 @@ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes = {
|
|
|
183
79
|
* A function to customize rendering of the component.
|
|
184
80
|
*/
|
|
185
81
|
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
186
|
-
|
|
187
|
-
* The size of the component.
|
|
188
|
-
* `small` is equivalent to the dense button styling.
|
|
189
|
-
*/
|
|
82
|
+
role: _propTypes.default.string,
|
|
190
83
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
191
|
-
/**
|
|
192
|
-
* Element placed before the children.
|
|
193
|
-
*/
|
|
194
84
|
startIcon: _propTypes.default.node,
|
|
195
85
|
style: _propTypes.default.object,
|
|
196
|
-
/**
|
|
197
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
198
|
-
*/
|
|
199
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
200
86
|
tabIndex: _propTypes.default.number,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
*/
|
|
204
|
-
TouchRippleProps: _propTypes.default.object,
|
|
205
|
-
/**
|
|
206
|
-
* A ref that points to the `TouchRipple` element.
|
|
207
|
-
*/
|
|
208
|
-
touchRippleRef: _propTypes.default.any,
|
|
209
|
-
/**
|
|
210
|
-
* The variant to use.
|
|
211
|
-
* @default 'text'
|
|
212
|
-
*/
|
|
213
|
-
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
|
87
|
+
title: _propTypes.default.string,
|
|
88
|
+
touchRippleRef: _propTypes.default.any
|
|
214
89
|
} : void 0;
|
|
@@ -91,146 +91,21 @@ process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes = {
|
|
|
91
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
92
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
93
93
|
// ----------------------------------------------------------------------
|
|
94
|
-
/**
|
|
95
|
-
* A ref for imperative actions.
|
|
96
|
-
* It currently only supports `focusVisible()` action.
|
|
97
|
-
*/
|
|
98
|
-
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
99
|
-
current: _propTypes.default.shape({
|
|
100
|
-
focusVisible: _propTypes.default.func.isRequired
|
|
101
|
-
})
|
|
102
|
-
})]),
|
|
103
|
-
/**
|
|
104
|
-
* If `true`, the ripples are centered.
|
|
105
|
-
* They won't start at the cursor interaction position.
|
|
106
|
-
* @default false
|
|
107
|
-
*/
|
|
108
|
-
centerRipple: _propTypes.default.bool,
|
|
109
94
|
/**
|
|
110
95
|
* A function to customize rendering of the component.
|
|
111
96
|
*/
|
|
112
97
|
className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
113
|
-
/**
|
|
114
|
-
* The color of the component.
|
|
115
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
116
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
117
|
-
* @default 'primary'
|
|
118
|
-
*/
|
|
119
|
-
color: _propTypes.default.oneOf(['error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
|
|
120
|
-
component: _propTypes.default.elementType,
|
|
121
|
-
/**
|
|
122
|
-
* If `true`, the component is disabled.
|
|
123
|
-
*/
|
|
124
98
|
disabled: _propTypes.default.bool,
|
|
125
|
-
|
|
126
|
-
* If `true`, no elevation is used.
|
|
127
|
-
* @default false
|
|
128
|
-
*/
|
|
129
|
-
disableElevation: _propTypes.default.bool,
|
|
130
|
-
/**
|
|
131
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
132
|
-
* @default false
|
|
133
|
-
*/
|
|
134
|
-
disableFocusRipple: _propTypes.default.bool,
|
|
135
|
-
/**
|
|
136
|
-
* If `true`, the ripple effect is disabled.
|
|
137
|
-
*
|
|
138
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
139
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
140
|
-
* @default false
|
|
141
|
-
*/
|
|
142
|
-
disableRipple: _propTypes.default.bool,
|
|
143
|
-
/**
|
|
144
|
-
* If `true`, the touch ripple effect is disabled.
|
|
145
|
-
* @default false
|
|
146
|
-
*/
|
|
147
|
-
disableTouchRipple: _propTypes.default.bool,
|
|
148
|
-
/**
|
|
149
|
-
* Element placed after the children.
|
|
150
|
-
*/
|
|
151
|
-
endIcon: _propTypes.default.node,
|
|
152
|
-
/**
|
|
153
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
154
|
-
* @default false
|
|
155
|
-
*/
|
|
156
|
-
focusRipple: _propTypes.default.bool,
|
|
157
|
-
/**
|
|
158
|
-
* This prop can help identify which element has keyboard focus.
|
|
159
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
160
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
161
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
162
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
163
|
-
* if needed.
|
|
164
|
-
*/
|
|
165
|
-
focusVisibleClassName: _propTypes.default.string,
|
|
166
|
-
/**
|
|
167
|
-
* If `true`, the button will take up the full width of its container.
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
fullWidth: _propTypes.default.bool,
|
|
171
|
-
/**
|
|
172
|
-
* The URL to link to when the button is clicked.
|
|
173
|
-
* If defined, an `a` element will be used as the root node.
|
|
174
|
-
*/
|
|
175
|
-
href: _propTypes.default.string,
|
|
176
|
-
/**
|
|
177
|
-
* The component used to render a link when the `href` prop is provided.
|
|
178
|
-
* @default 'a'
|
|
179
|
-
*/
|
|
180
|
-
LinkComponent: _propTypes.default.elementType,
|
|
181
|
-
/**
|
|
182
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
183
|
-
* 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).
|
|
184
|
-
* @default null
|
|
185
|
-
*/
|
|
186
|
-
loading: _propTypes.default.bool,
|
|
187
|
-
/**
|
|
188
|
-
* Element placed before the children if the button is in loading state.
|
|
189
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
190
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
191
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
192
|
-
*/
|
|
193
|
-
loadingIndicator: _propTypes.default.node,
|
|
194
|
-
/**
|
|
195
|
-
* The loading indicator can be positioned on the start, end, or the center of the button.
|
|
196
|
-
* @default 'center'
|
|
197
|
-
*/
|
|
198
|
-
loadingPosition: _propTypes.default.oneOf(['center', 'end', 'start']),
|
|
199
|
-
/**
|
|
200
|
-
* Callback fired when the component is focused with a keyboard.
|
|
201
|
-
* We trigger a `onFocus` callback too.
|
|
202
|
-
*/
|
|
203
|
-
onFocusVisible: _propTypes.default.func,
|
|
99
|
+
id: _propTypes.default.string,
|
|
204
100
|
/**
|
|
205
101
|
* A function to customize rendering of the component.
|
|
206
102
|
*/
|
|
207
103
|
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
208
|
-
|
|
209
|
-
* The size of the component.
|
|
210
|
-
* `small` is equivalent to the dense button styling.
|
|
211
|
-
*/
|
|
104
|
+
role: _propTypes.default.string,
|
|
212
105
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
213
|
-
/**
|
|
214
|
-
* Element placed before the children.
|
|
215
|
-
*/
|
|
216
106
|
startIcon: _propTypes.default.node,
|
|
217
107
|
style: _propTypes.default.object,
|
|
218
|
-
/**
|
|
219
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
220
|
-
*/
|
|
221
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
222
108
|
tabIndex: _propTypes.default.number,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
*/
|
|
226
|
-
TouchRippleProps: _propTypes.default.object,
|
|
227
|
-
/**
|
|
228
|
-
* A ref that points to the `TouchRipple` element.
|
|
229
|
-
*/
|
|
230
|
-
touchRippleRef: _propTypes.default.any,
|
|
231
|
-
/**
|
|
232
|
-
* The variant to use.
|
|
233
|
-
* @default 'text'
|
|
234
|
-
*/
|
|
235
|
-
variant: _propTypes.default.oneOf(['contained', 'outlined', 'text'])
|
|
109
|
+
title: _propTypes.default.string,
|
|
110
|
+
touchRippleRef: _propTypes.default.any
|
|
236
111
|
} : void 0;
|
|
@@ -7,7 +7,7 @@ export interface GridPanelClasses {
|
|
|
7
7
|
paper: string;
|
|
8
8
|
}
|
|
9
9
|
export interface GridPanelProps extends Pick<GridSlotProps['basePopper'], 'id' | 'className' | 'target' | 'flip'> {
|
|
10
|
-
ref?: React.Ref<
|
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
/**
|
|
13
13
|
* Override or extend the styles applied to the component.
|
|
@@ -16,5 +16,5 @@ export interface GridPanelProps extends Pick<GridSlotProps['basePopper'], 'id' |
|
|
|
16
16
|
open: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare const gridPanelClasses: Record<keyof GridPanelClasses, string>;
|
|
19
|
-
declare const GridPanel: React.ForwardRefExoticComponent<GridPanelProps> | React.ForwardRefExoticComponent<Omit<GridPanelProps, "ref"> & React.RefAttributes<
|
|
19
|
+
declare const GridPanel: React.ForwardRefExoticComponent<GridPanelProps> | React.ForwardRefExoticComponent<Omit<GridPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export { GridPanel };
|
|
@@ -76,7 +76,7 @@ const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) =
|
|
|
76
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridPanelRoot, (0, _extends2.default)({
|
|
77
77
|
as: rootProps.slots.basePopper,
|
|
78
78
|
ownerState: rootProps,
|
|
79
|
-
placement: "bottom-
|
|
79
|
+
placement: "bottom-end",
|
|
80
80
|
className: (0, _clsx.default)(classes.panel, className, variablesClass),
|
|
81
81
|
flip: true,
|
|
82
82
|
onDidShow: onDidShow,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GridColDef, GridSingleSelectColDef } from '../../../models/colDef/gridColDef';
|
|
2
2
|
import type { GridValueOptionsParams } from '../../../models/params/gridValueOptionsParams';
|
|
3
3
|
export declare function isSingleSelectColDef(colDef: GridColDef | null): colDef is GridSingleSelectColDef;
|
|
4
|
-
export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("
|
|
4
|
+
export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("@mui/x-data-grid").ValueOptions[] | undefined;
|
|
5
5
|
export declare function getValueFromValueOptions(value: string, valueOptions: any[] | undefined, getOptionValue: NonNullable<GridSingleSelectColDef['getOptionValue']>): any;
|