@mui/x-data-grid 8.0.0-beta.2 → 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 +141 -0
- package/DataGrid/DataGrid.js +8 -2
- package/DataGrid/useDataGridProps.js +1 -1
- package/components/GridScrollArea.js +4 -4
- package/components/GridSkeletonLoadingOverlay.js +1 -1
- package/components/cell/GridActionsCellItem.d.ts +24 -13
- package/components/cell/GridActionsCellItem.js +5 -2
- 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/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/QuickFilterClear.js +3 -100
- package/components/quickFilter/QuickFilterControl.js +0 -2
- package/components/quickFilter/QuickFilterTrigger.js +4 -129
- package/components/toolbar/GridToolbar.js +4 -1
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +1 -2
- package/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/components/toolbarV8/GridToolbar.js +64 -9
- package/components/toolbarV8/Toolbar.js +2 -0
- package/components/toolbarV8/ToolbarButton.js +3 -100
- 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 +8 -0
- package/constants/gridClasses.js +1 -1
- package/esm/DataGrid/DataGrid.js +8 -2
- package/esm/DataGrid/useDataGridProps.js +1 -1
- package/esm/components/GridScrollArea.js +4 -4
- 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/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/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/QuickFilterClear.js +3 -100
- package/esm/components/quickFilter/QuickFilterControl.js +0 -2
- package/esm/components/quickFilter/QuickFilterTrigger.js +4 -129
- package/esm/components/toolbar/GridToolbar.js +4 -1
- package/esm/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/esm/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/esm/components/toolbar/GridToolbarQuickFilter.js +1 -2
- package/esm/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/esm/components/toolbarV8/GridToolbar.js +62 -9
- package/esm/components/toolbarV8/Toolbar.js +2 -0
- package/esm/components/toolbarV8/ToolbarButton.js +3 -100
- 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 +8 -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/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 -2
- 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 +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +7 -7
- 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/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 +14 -8
- 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/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 -2
- 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 +4 -4
- 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 +6 -6
- 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 +5 -5
- 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 +6 -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/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 +14 -8
- package/modern/DataGrid/DataGrid.js +8 -2
- package/modern/DataGrid/useDataGridProps.js +1 -1
- package/modern/components/GridScrollArea.js +4 -4
- 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/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/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/QuickFilterClear.js +3 -100
- package/modern/components/quickFilter/QuickFilterControl.js +0 -2
- package/modern/components/quickFilter/QuickFilterTrigger.js +4 -129
- package/modern/components/toolbar/GridToolbar.js +4 -1
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -2
- package/modern/components/toolbarV8/GridToolbar.d.ts +6 -1
- package/modern/components/toolbarV8/GridToolbar.js +62 -9
- package/modern/components/toolbarV8/Toolbar.js +2 -0
- package/modern/components/toolbarV8/ToolbarButton.js +3 -100
- 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 +8 -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/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 -2
- 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 +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +7 -7
- 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/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 +14 -8
- package/package.json +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -4,8 +4,13 @@ interface GridToolbarInternalProps {
|
|
|
4
4
|
additionalExportMenuItems?: (onMenuItemClick: () => void) => React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
export type GridToolbarProps = GridSlotProps['toolbar'] & GridToolbarInternalProps;
|
|
7
|
+
declare function GridToolbarDivider(props: GridSlotProps['baseDivider']): React.JSX.Element;
|
|
8
|
+
declare namespace GridToolbarDivider {
|
|
9
|
+
var propTypes: any;
|
|
10
|
+
}
|
|
11
|
+
declare function GridToolbarLabel(props: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
7
12
|
declare function GridToolbar(props: GridToolbarProps): React.JSX.Element;
|
|
8
13
|
declare namespace GridToolbar {
|
|
9
14
|
var propTypes: any;
|
|
10
15
|
}
|
|
11
|
-
export { GridToolbar };
|
|
16
|
+
export { GridToolbar, GridToolbarDivider, GridToolbarLabel };
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.GridToolbar = GridToolbar;
|
|
9
|
+
exports.GridToolbarDivider = GridToolbarDivider;
|
|
10
|
+
exports.GridToolbarLabel = GridToolbarLabel;
|
|
9
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
13
|
var React = _interopRequireWildcard(require("react"));
|
|
11
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
15
|
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
13
16
|
var _system = require("@mui/system");
|
|
17
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
18
|
var _GridMenu = require("../menu/GridMenu");
|
|
15
19
|
var _Toolbar = require("./Toolbar");
|
|
16
20
|
var _ToolbarButton = require("./ToolbarButton");
|
|
@@ -22,7 +26,20 @@ var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
|
22
26
|
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
23
27
|
var _assert = require("../../utils/assert");
|
|
24
28
|
var _cssVariables = require("../../constants/cssVariables");
|
|
29
|
+
var _gridClasses = require("../../constants/gridClasses");
|
|
25
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
|
+
const _excluded = ["className"],
|
|
32
|
+
_excluded2 = ["className"];
|
|
33
|
+
const useUtilityClasses = ownerState => {
|
|
34
|
+
const {
|
|
35
|
+
classes
|
|
36
|
+
} = ownerState;
|
|
37
|
+
const slots = {
|
|
38
|
+
divider: ['toolbarDivider'],
|
|
39
|
+
label: ['toolbarLabel']
|
|
40
|
+
};
|
|
41
|
+
return (0, _composeClasses.default)(slots, _gridClasses.getDataGridUtilityClass, classes);
|
|
42
|
+
};
|
|
26
43
|
const Divider = (0, _system.styled)(_assert.NotRendered, {
|
|
27
44
|
name: 'MuiDataGrid',
|
|
28
45
|
slot: 'ToolbarDivider'
|
|
@@ -30,6 +47,44 @@ const Divider = (0, _system.styled)(_assert.NotRendered, {
|
|
|
30
47
|
height: '50%',
|
|
31
48
|
margin: _cssVariables.vars.spacing(0, 0.5)
|
|
32
49
|
});
|
|
50
|
+
const Label = (0, _system.styled)('span', {
|
|
51
|
+
name: 'MuiDataGrid',
|
|
52
|
+
slot: 'ToolbarLabel'
|
|
53
|
+
})({
|
|
54
|
+
flex: 1,
|
|
55
|
+
font: _cssVariables.vars.typography.font.large,
|
|
56
|
+
fontWeight: _cssVariables.vars.typography.fontWeight.medium,
|
|
57
|
+
margin: _cssVariables.vars.spacing(0, 0.5),
|
|
58
|
+
textOverflow: 'ellipsis',
|
|
59
|
+
overflow: 'hidden',
|
|
60
|
+
whiteSpace: 'nowrap'
|
|
61
|
+
});
|
|
62
|
+
function GridToolbarDivider(props) {
|
|
63
|
+
const other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
64
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
65
|
+
const classes = useUtilityClasses(rootProps);
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, (0, _extends2.default)({
|
|
67
|
+
as: rootProps.slots.baseDivider,
|
|
68
|
+
orientation: "vertical",
|
|
69
|
+
className: classes.divider
|
|
70
|
+
}, other));
|
|
71
|
+
}
|
|
72
|
+
process.env.NODE_ENV !== "production" ? GridToolbarDivider.propTypes = {
|
|
73
|
+
// ----------------------------- Warning --------------------------------
|
|
74
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
76
|
+
// ----------------------------------------------------------------------
|
|
77
|
+
className: _propTypes.default.string,
|
|
78
|
+
orientation: _propTypes.default.oneOf(['horizontal', 'vertical'])
|
|
79
|
+
} : void 0;
|
|
80
|
+
function GridToolbarLabel(props) {
|
|
81
|
+
const other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
82
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
83
|
+
const classes = useUtilityClasses(rootProps);
|
|
84
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, (0, _extends2.default)({
|
|
85
|
+
className: classes.label
|
|
86
|
+
}, other));
|
|
87
|
+
}
|
|
33
88
|
function GridToolbar(props) {
|
|
34
89
|
const {
|
|
35
90
|
showQuickFilter = true,
|
|
@@ -47,7 +102,9 @@ function GridToolbar(props) {
|
|
|
47
102
|
const showExportMenu = !csvOptions?.disableToolbarButton || !printOptions?.disableToolbarButton || additionalExportMenuItems;
|
|
48
103
|
const closeExportMenu = () => setExportMenuOpen(false);
|
|
49
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Toolbar.Toolbar, {
|
|
50
|
-
children: [
|
|
105
|
+
children: [rootProps.label && /*#__PURE__*/(0, _jsxRuntime.jsx)(GridToolbarLabel, {
|
|
106
|
+
children: rootProps.label
|
|
107
|
+
}), !rootProps.disableColumnSelector && /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, {
|
|
51
108
|
title: apiRef.current.getLocaleText('toolbarColumns'),
|
|
52
109
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_columnsPanel.ColumnsPanelTrigger, {
|
|
53
110
|
render: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToolbarButton.ToolbarButton, {}),
|
|
@@ -59,7 +116,6 @@ function GridToolbar(props) {
|
|
|
59
116
|
title: apiRef.current.getLocaleText('toolbarFilters'),
|
|
60
117
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_filterPanel.FilterPanelTrigger, {
|
|
61
118
|
render: (triggerProps, state) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToolbarButton.ToolbarButton, (0, _extends2.default)({}, triggerProps, {
|
|
62
|
-
color: "default",
|
|
63
119
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseBadge, {
|
|
64
120
|
badgeContent: state.filterCount,
|
|
65
121
|
color: "primary",
|
|
@@ -70,10 +126,7 @@ function GridToolbar(props) {
|
|
|
70
126
|
})
|
|
71
127
|
}))
|
|
72
128
|
})
|
|
73
|
-
}), showExportMenu && (!rootProps.disableColumnFilter || !rootProps.disableColumnSelector) && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
74
|
-
as: rootProps.slots.baseDivider,
|
|
75
|
-
orientation: "vertical"
|
|
76
|
-
}), showExportMenu && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
129
|
+
}), showExportMenu && (!rootProps.disableColumnFilter || !rootProps.disableColumnSelector) && /*#__PURE__*/(0, _jsxRuntime.jsx)(GridToolbarDivider, {}), showExportMenu && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
77
130
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, {
|
|
78
131
|
title: apiRef.current.getLocaleText('toolbarExport'),
|
|
79
132
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ToolbarButton.ToolbarButton, {
|
|
@@ -91,7 +144,7 @@ function GridToolbar(props) {
|
|
|
91
144
|
target: exportMenuTriggerRef.current,
|
|
92
145
|
open: exportMenuOpen,
|
|
93
146
|
onClose: closeExportMenu,
|
|
94
|
-
position: "bottom-
|
|
147
|
+
position: "bottom-end",
|
|
95
148
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.slots.baseMenuList, (0, _extends2.default)({
|
|
96
149
|
id: exportMenuId,
|
|
97
150
|
"aria-labelledby": exportMenuTriggerId,
|
|
@@ -110,7 +163,9 @@ function GridToolbar(props) {
|
|
|
110
163
|
}), additionalExportMenuItems?.(closeExportMenu)]
|
|
111
164
|
}))
|
|
112
165
|
})]
|
|
113
|
-
}), showQuickFilter && /*#__PURE__*/(0, _jsxRuntime.
|
|
166
|
+
}), showQuickFilter && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
167
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(GridToolbarDivider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridToolbarQuickFilter.GridToolbarQuickFilter, (0, _extends2.default)({}, quickFilterProps))]
|
|
168
|
+
})]
|
|
114
169
|
});
|
|
115
170
|
}
|
|
116
171
|
process.env.NODE_ENV !== "production" ? GridToolbar.propTypes = {
|
|
@@ -37,6 +37,7 @@ const ToolbarRoot = (0, _system.styled)('div', {
|
|
|
37
37
|
flex: 0,
|
|
38
38
|
display: 'flex',
|
|
39
39
|
alignItems: 'center',
|
|
40
|
+
justifyContent: 'end',
|
|
40
41
|
gap: _cssVariables.vars.spacing(0.25),
|
|
41
42
|
padding: _cssVariables.vars.spacing(0.75),
|
|
42
43
|
minHeight: 52,
|
|
@@ -158,6 +159,7 @@ const Toolbar = exports.Toolbar = (0, _forwardRef.forwardRef)(function Toolbar(p
|
|
|
158
159
|
const element = (0, _useGridComponentRenderer.useGridComponentRenderer)(ToolbarRoot, render, (0, _extends2.default)({
|
|
159
160
|
role: 'toolbar',
|
|
160
161
|
'aria-orientation': 'horizontal',
|
|
162
|
+
'aria-label': rootProps.label || undefined,
|
|
161
163
|
className: (0, _clsx.default)(classes.root, className),
|
|
162
164
|
ownerState: rootProps
|
|
163
165
|
}, other, {
|
|
@@ -96,117 +96,20 @@ process.env.NODE_ENV !== "production" ? ToolbarButton.propTypes = {
|
|
|
96
96
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
97
97
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
98
98
|
// ----------------------------------------------------------------------
|
|
99
|
-
/**
|
|
100
|
-
* A ref for imperative actions.
|
|
101
|
-
* It currently only supports `focusVisible()` action.
|
|
102
|
-
*/
|
|
103
|
-
action: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
|
|
104
|
-
current: _propTypes.default.shape({
|
|
105
|
-
focusVisible: _propTypes.default.func.isRequired
|
|
106
|
-
})
|
|
107
|
-
})]),
|
|
108
|
-
/**
|
|
109
|
-
* If `true`, the ripples are centered.
|
|
110
|
-
* They won't start at the cursor interaction position.
|
|
111
|
-
* @default false
|
|
112
|
-
*/
|
|
113
|
-
centerRipple: _propTypes.default.bool,
|
|
114
99
|
className: _propTypes.default.string,
|
|
115
|
-
/**
|
|
116
|
-
* The color of the component.
|
|
117
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
118
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
119
|
-
*/
|
|
120
100
|
color: _propTypes.default.oneOf(['default', 'inherit', 'primary']),
|
|
121
|
-
component: _propTypes.default.elementType,
|
|
122
|
-
/**
|
|
123
|
-
* If `true`, the component is disabled.
|
|
124
|
-
*/
|
|
125
101
|
disabled: _propTypes.default.bool,
|
|
126
|
-
/**
|
|
127
|
-
* If `true`, the keyboard focus ripple is disabled.
|
|
128
|
-
* @default false
|
|
129
|
-
*/
|
|
130
|
-
disableFocusRipple: _propTypes.default.bool,
|
|
131
|
-
/**
|
|
132
|
-
* If `true`, the ripple effect is disabled.
|
|
133
|
-
*
|
|
134
|
-
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
135
|
-
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
136
|
-
* @default false
|
|
137
|
-
*/
|
|
138
|
-
disableRipple: _propTypes.default.bool,
|
|
139
|
-
/**
|
|
140
|
-
* If `true`, the touch ripple effect is disabled.
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
disableTouchRipple: _propTypes.default.bool,
|
|
144
|
-
/**
|
|
145
|
-
* If given, uses a negative margin to counteract the padding on one
|
|
146
|
-
* side (this is often helpful for aligning the left or right
|
|
147
|
-
* side of the icon with content above or below, without ruining the border
|
|
148
|
-
* size and shape).
|
|
149
|
-
*/
|
|
150
102
|
edge: _propTypes.default.oneOf(['end', 'start', false]),
|
|
151
|
-
|
|
152
|
-
* If `true`, the base button will have a keyboard focus ripple.
|
|
153
|
-
* @default false
|
|
154
|
-
*/
|
|
155
|
-
focusRipple: _propTypes.default.bool,
|
|
156
|
-
/**
|
|
157
|
-
* This prop can help identify which element has keyboard focus.
|
|
158
|
-
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
159
|
-
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
160
|
-
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
161
|
-
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
162
|
-
* if needed.
|
|
163
|
-
*/
|
|
164
|
-
focusVisibleClassName: _propTypes.default.string,
|
|
103
|
+
id: _propTypes.default.string,
|
|
165
104
|
label: _propTypes.default.string,
|
|
166
|
-
/**
|
|
167
|
-
* The component used to render a link when the `href` prop is provided.
|
|
168
|
-
* @default 'a'
|
|
169
|
-
*/
|
|
170
|
-
LinkComponent: _propTypes.default.elementType,
|
|
171
|
-
/**
|
|
172
|
-
* If `true`, the loading indicator is visible and the button is disabled.
|
|
173
|
-
* 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).
|
|
174
|
-
* @default null
|
|
175
|
-
*/
|
|
176
|
-
loading: _propTypes.default.bool,
|
|
177
|
-
/**
|
|
178
|
-
* Element placed before the children if the button is in loading state.
|
|
179
|
-
* The node should contain an element with `role="progressbar"` with an accessible name.
|
|
180
|
-
* By default, it renders a `CircularProgress` that is labeled by the button itself.
|
|
181
|
-
* @default <CircularProgress color="inherit" size={16} />
|
|
182
|
-
*/
|
|
183
|
-
loadingIndicator: _propTypes.default.node,
|
|
184
|
-
/**
|
|
185
|
-
* Callback fired when the component is focused with a keyboard.
|
|
186
|
-
* We trigger a `onFocus` callback too.
|
|
187
|
-
*/
|
|
188
|
-
onFocusVisible: _propTypes.default.func,
|
|
189
105
|
/**
|
|
190
106
|
* A function to customize rendering of the component.
|
|
191
107
|
*/
|
|
192
108
|
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
193
|
-
|
|
194
|
-
* The size of the component.
|
|
195
|
-
* `small` is equivalent to the dense button styling.
|
|
196
|
-
*/
|
|
109
|
+
role: _propTypes.default.string,
|
|
197
110
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
198
111
|
style: _propTypes.default.object,
|
|
199
|
-
/**
|
|
200
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
201
|
-
*/
|
|
202
|
-
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]),
|
|
203
112
|
tabIndex: _propTypes.default.number,
|
|
204
|
-
|
|
205
|
-
* Props applied to the `TouchRipple` element.
|
|
206
|
-
*/
|
|
207
|
-
TouchRippleProps: _propTypes.default.object,
|
|
208
|
-
/**
|
|
209
|
-
* A ref that points to the `TouchRipple` element.
|
|
210
|
-
*/
|
|
113
|
+
title: _propTypes.default.string,
|
|
211
114
|
touchRippleRef: _propTypes.default.any
|
|
212
115
|
} : void 0;
|
|
@@ -135,7 +135,7 @@ const GridVirtualScrollbar = exports.GridVirtualScrollbar = (0, _forwardRef.forw
|
|
|
135
135
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Container, {
|
|
136
136
|
ref: (0, _useForkRef.default)(ref, scrollbarRef),
|
|
137
137
|
className: classes.root,
|
|
138
|
-
style: props.position === 'vertical' && rootProps.
|
|
138
|
+
style: props.position === 'vertical' && rootProps.listView ? {
|
|
139
139
|
height: '100%',
|
|
140
140
|
top: 0
|
|
141
141
|
} : undefined,
|
|
@@ -110,7 +110,7 @@ function GridVirtualScroller(props) {
|
|
|
110
110
|
}, getScrollerProps(), {
|
|
111
111
|
ownerState: ownerState,
|
|
112
112
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridTopContainer.GridTopContainer, {
|
|
113
|
-
children: [!rootProps.
|
|
113
|
+
children: [!rootProps.listView && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridHeaders.GridHeaders, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.pinnedRows, {
|
|
114
114
|
position: "top",
|
|
115
115
|
virtualScroller: virtualScroller
|
|
116
116
|
})]
|
|
@@ -128,7 +128,7 @@ function GridVirtualScroller(props) {
|
|
|
128
128
|
virtualScroller: virtualScroller
|
|
129
129
|
})
|
|
130
130
|
})]
|
|
131
|
-
})), hasScrollX && !rootProps.
|
|
131
|
+
})), hasScrollX && !rootProps.listView && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridVirtualScrollbar.GridVirtualScrollbar, (0, _extends2.default)({
|
|
132
132
|
position: "horizontal"
|
|
133
133
|
}, getScrollbarHorizontalProps())), hasScrollY && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridVirtualScrollbar.GridVirtualScrollbar, (0, _extends2.default)({
|
|
134
134
|
position: "vertical"
|
|
@@ -43,6 +43,7 @@ declare const keys: {
|
|
|
43
43
|
readonly font: {
|
|
44
44
|
readonly body: "--DataGrid-t-typography-font-body";
|
|
45
45
|
readonly small: "--DataGrid-t-typography-font-small";
|
|
46
|
+
readonly large: "--DataGrid-t-typography-font-large";
|
|
46
47
|
};
|
|
47
48
|
readonly fontFamily: {
|
|
48
49
|
readonly base: "--DataGrid-t-typography-font-family-base";
|
|
@@ -134,6 +135,7 @@ export declare const vars: {
|
|
|
134
135
|
readonly font: {
|
|
135
136
|
readonly body: "--DataGrid-t-typography-font-body";
|
|
136
137
|
readonly small: "--DataGrid-t-typography-font-small";
|
|
138
|
+
readonly large: "--DataGrid-t-typography-font-large";
|
|
137
139
|
};
|
|
138
140
|
readonly fontFamily: {
|
|
139
141
|
readonly base: "--DataGrid-t-typography-font-family-base";
|
|
@@ -222,6 +224,7 @@ export declare const vars: {
|
|
|
222
224
|
readonly font: {
|
|
223
225
|
readonly body: "--DataGrid-t-typography-font-body";
|
|
224
226
|
readonly small: "--DataGrid-t-typography-font-small";
|
|
227
|
+
readonly large: "--DataGrid-t-typography-font-large";
|
|
225
228
|
};
|
|
226
229
|
readonly fontFamily: {
|
|
227
230
|
readonly base: "--DataGrid-t-typography-font-family-base";
|
|
@@ -73,7 +73,8 @@ const keys = {
|
|
|
73
73
|
typography: {
|
|
74
74
|
font: {
|
|
75
75
|
body: '--DataGrid-t-typography-font-body',
|
|
76
|
-
small: '--DataGrid-t-typography-font-small'
|
|
76
|
+
small: '--DataGrid-t-typography-font-small',
|
|
77
|
+
large: '--DataGrid-t-typography-font-large'
|
|
77
78
|
},
|
|
78
79
|
fontFamily: {
|
|
79
80
|
base: '--DataGrid-t-typography-font-family-base'
|
|
@@ -598,6 +598,14 @@ export interface GridClasses {
|
|
|
598
598
|
* Styles applied to the toolbar root element.
|
|
599
599
|
*/
|
|
600
600
|
toolbar: string;
|
|
601
|
+
/**
|
|
602
|
+
* Styles applied to the toolbar label element.
|
|
603
|
+
*/
|
|
604
|
+
toolbarLabel: string;
|
|
605
|
+
/**
|
|
606
|
+
* Styles applied to the toolbar divider element.
|
|
607
|
+
*/
|
|
608
|
+
toolbarDivider: string;
|
|
601
609
|
/**
|
|
602
610
|
* Styles applied to the shadow scroll area element.
|
|
603
611
|
* @ignore - do not document.
|
package/constants/gridClasses.js
CHANGED
|
@@ -9,4 +9,4 @@ var _utils = require("@mui/utils");
|
|
|
9
9
|
function getDataGridUtilityClass(slot) {
|
|
10
10
|
return (0, _utils.unstable_generateUtilityClass)('MuiDataGrid', slot);
|
|
11
11
|
}
|
|
12
|
-
const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'aggregationRowOverlayWrapper', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeader--filter', 'columnHeaderFilterInput', 'columnHeaderFilterOperatorLabel', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'columnsManagementScrollArea', 'columnsManagementEmptyText', 'container--top', 'container--bottom', 'detailPanel', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hiddenContent', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'shadowScrollArea', 'toolbarContainer', 'toolbarFilterList', 'toolbarPromptControl', 'toolbarPromptControl--recording', 'toolbarPromptControlRecordingIndicator', 'toolbarPromptControlRecordButton', 'toolbarPromptControlSendButton', 'toolbarQuickFilter', 'toolbarQuickFilterTrigger', 'toolbarQuickFilterControl', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom']);
|
|
12
|
+
const gridClasses = exports.gridClasses = (0, _utils.unstable_generateUtilityClasses)('MuiDataGrid', ['actionsCell', 'aggregationColumnHeader', 'aggregationColumnHeader--alignLeft', 'aggregationColumnHeader--alignCenter', 'aggregationColumnHeader--alignRight', 'aggregationColumnHeaderLabel', 'aggregationRowOverlayWrapper', 'autoHeight', 'autosizing', 'booleanCell', 'cell--editable', 'cell--editing', 'cell--flex', 'cell--textCenter', 'cell--textLeft', 'cell--textRight', 'cell--rangeTop', 'cell--rangeBottom', 'cell--rangeLeft', 'cell--rangeRight', 'cell--pinnedLeft', 'cell--pinnedRight', 'cell--selectionMode', 'cell', 'cellCheckbox', 'cellEmpty', 'cellSkeleton', 'cellOffsetLeft', 'checkboxInput', 'columnHeader', 'columnHeader--alignCenter', 'columnHeader--alignLeft', 'columnHeader--alignRight', 'columnHeader--dragging', 'columnHeader--moving', 'columnHeader--numeric', 'columnHeader--sortable', 'columnHeader--sorted', 'columnHeader--filtered', 'columnHeader--pinnedLeft', 'columnHeader--pinnedRight', 'columnHeader--last', 'columnHeader--lastUnpinned', 'columnHeader--siblingFocused', 'columnHeader--filter', 'columnHeaderFilterInput', 'columnHeaderFilterOperatorLabel', 'columnHeaderCheckbox', 'columnHeaderDraggableContainer', 'columnHeaderTitle', 'columnHeaderTitleContainer', 'columnHeaderTitleContainerContent', 'columnHeader--filledGroup', 'columnHeader--emptyGroup', 'columnHeaders', 'columnSeparator--resizable', 'columnSeparator--resizing', 'columnSeparator--sideLeft', 'columnSeparator--sideRight', 'columnSeparator', 'columnsManagement', 'columnsManagementRow', 'columnsManagementHeader', 'columnsManagementSearchInput', 'columnsManagementFooter', 'columnsManagementScrollArea', 'columnsManagementEmptyText', 'container--top', 'container--bottom', 'detailPanel', 'detailPanelToggleCell', 'detailPanelToggleCell--expanded', 'footerCell', 'panel', 'panelHeader', 'panelWrapper', 'panelContent', 'panelFooter', 'paper', 'editBooleanCell', 'editInputCell', 'filler', 'filler--borderBottom', 'filler--pinnedLeft', 'filler--pinnedRight', 'filterForm', 'filterFormDeleteIcon', 'filterFormLogicOperatorInput', 'filterFormColumnInput', 'filterFormOperatorInput', 'filterFormValueInput', 'filterIcon', 'footerContainer', 'headerFilterRow', 'iconButtonContainer', 'iconSeparator', 'main', 'main--hasPinnedRight', 'main--hiddenContent', 'menu', 'menuIcon', 'menuIconButton', 'menuOpen', 'menuList', 'overlay', 'overlayWrapper', 'overlayWrapperInner', 'root', 'root--densityStandard', 'root--densityComfortable', 'root--densityCompact', 'root--disableUserSelection', 'root--noToolbar', 'row', 'row--editable', 'row--editing', 'row--firstVisible', 'row--lastVisible', 'row--dragging', 'row--dynamicHeight', 'row--detailPanelExpanded', 'row--borderBottom', 'rowReorderCellPlaceholder', 'rowCount', 'rowReorderCellContainer', 'rowReorderCell', 'rowReorderCell--draggable', 'rowSkeleton', 'scrollArea--left', 'scrollArea--right', 'scrollArea', 'scrollbar', 'scrollbar--vertical', 'scrollbar--horizontal', 'scrollbarFiller', 'scrollbarFiller--header', 'scrollbarFiller--borderTop', 'scrollbarFiller--borderBottom', 'scrollbarFiller--pinnedRight', 'selectedRowCount', 'sortIcon', 'shadowScrollArea', 'toolbarContainer', 'toolbar', 'toolbarLabel', 'toolbarDivider', 'toolbarFilterList', 'toolbarPromptControl', 'toolbarPromptControl--recording', 'toolbarPromptControlRecordingIndicator', 'toolbarPromptControlRecordButton', 'toolbarPromptControlSendButton', 'toolbarQuickFilter', 'toolbarQuickFilterTrigger', 'toolbarQuickFilterControl', 'virtualScroller', 'virtualScroller--hasScrollX', 'virtualScrollerContent', 'virtualScrollerContent--overflowed', 'virtualScrollerRenderZone', 'withVerticalBorder', 'withBorderColor', 'cell--withRightBorder', 'cell--withLeftBorder', 'columnHeader--withRightBorder', 'columnHeader--withLeftBorder', 'treeDataGroupingCell', 'treeDataGroupingCellToggle', 'treeDataGroupingCellLoadingContainer', 'groupingCriteriaCell', 'groupingCriteriaCellToggle', 'groupingCriteriaCellLoadingContainer', 'pinnedRows', 'pinnedRows--top', 'pinnedRows--bottom']);
|
package/esm/DataGrid/DataGrid.js
CHANGED
|
@@ -59,11 +59,11 @@ DataGridRaw.propTypes = {
|
|
|
59
59
|
current: PropTypes.object
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the Data Grid.
|
|
62
|
+
* The `aria-label` of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the Data Grid.
|
|
66
|
+
* The `id` of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
@@ -360,6 +360,12 @@ DataGridRaw.propTypes = {
|
|
|
360
360
|
* @default false
|
|
361
361
|
*/
|
|
362
362
|
keepNonExistentRowsSelected: PropTypes.bool,
|
|
363
|
+
/**
|
|
364
|
+
* The label of the Data Grid.
|
|
365
|
+
* If the `showToolbar` prop is `true`, the label will be displayed in the toolbar and applied to the `aria-label` attribute of the grid.
|
|
366
|
+
* If the `showToolbar` prop is `false`, the label will not be visible but will be applied to the `aria-label` attribute of the grid.
|
|
367
|
+
*/
|
|
368
|
+
label: PropTypes.string,
|
|
363
369
|
/**
|
|
364
370
|
* If `true`, a loading overlay is displayed.
|
|
365
371
|
* @default false
|
|
@@ -15,7 +15,7 @@ const DATA_GRID_FORCED_PROPS = {
|
|
|
15
15
|
disableColumnReorder: true,
|
|
16
16
|
keepColumnPositionIfDraggedOutside: false,
|
|
17
17
|
signature: 'DataGrid',
|
|
18
|
-
|
|
18
|
+
listView: false
|
|
19
19
|
};
|
|
20
20
|
const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROPS, themedProps.dataSource ? {
|
|
21
21
|
filterMode: 'server',
|
|
@@ -10,7 +10,7 @@ import { fastMemo } from '@mui/x-internals/fastMemo';
|
|
|
10
10
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
11
11
|
import { getDataGridUtilityClass, gridClasses } from "../constants/index.js";
|
|
12
12
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
13
|
-
import {
|
|
13
|
+
import { useGridEvent } from "../hooks/utils/useGridEvent.js";
|
|
14
14
|
import { useGridSelector } from "../hooks/utils/useGridSelector.js";
|
|
15
15
|
import { gridDimensionsSelector, gridColumnsTotalWidthSelector } from "../hooks/features/dimensions/gridDimensionsSelectors.js";
|
|
16
16
|
import { gridDensityFactorSelector } from "../hooks/features/density/densitySelector.js";
|
|
@@ -63,8 +63,8 @@ const offsetSelector = createSelector(gridDimensionsSelector, (dimensions, direc
|
|
|
63
63
|
function GridScrollAreaWrapper(props) {
|
|
64
64
|
const apiRef = useGridApiContext();
|
|
65
65
|
const [dragging, setDragging] = React.useState(false);
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
useGridEvent(apiRef, 'columnHeaderDragStart', () => setDragging(true));
|
|
67
|
+
useGridEvent(apiRef, 'columnHeaderDragEnd', () => setDragging(false));
|
|
68
68
|
if (!dragging) {
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
@@ -136,7 +136,7 @@ function GridScrollAreaContent(props) {
|
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
|
-
|
|
139
|
+
useGridEvent(apiRef, 'scrollPositionChange', handleScrolling);
|
|
140
140
|
if (!canScrollMore) {
|
|
141
141
|
return null;
|
|
142
142
|
}
|
|
@@ -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,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
|
/**
|