@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
package/esm/material/index.js
CHANGED
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["id", "label", "labelId", "disabled", "slotProps", "onChange", "onKeyDown", "onOpen", "onClose", "size", "style", "fullWidth"],
|
|
4
|
-
_excluded2 = ["onRowsPerPageChange", "disabled"],
|
|
5
|
-
_excluded3 = ["
|
|
6
|
-
_excluded4 = ["
|
|
7
|
-
_excluded5 = ["
|
|
8
|
-
_excluded6 = ["
|
|
9
|
-
_excluded7 = ["
|
|
10
|
-
_excluded8 = ["
|
|
11
|
-
_excluded9 = ["
|
|
12
|
-
_excluded10 = ["
|
|
3
|
+
const _excluded = ["id", "label", "labelId", "material", "disabled", "slotProps", "onChange", "onKeyDown", "onOpen", "onClose", "size", "style", "fullWidth"],
|
|
4
|
+
_excluded2 = ["onRowsPerPageChange", "material", "disabled"],
|
|
5
|
+
_excluded3 = ["material"],
|
|
6
|
+
_excluded4 = ["autoFocus", "label", "fullWidth", "slotProps", "className", "material"],
|
|
7
|
+
_excluded5 = ["material"],
|
|
8
|
+
_excluded6 = ["material"],
|
|
9
|
+
_excluded7 = ["material"],
|
|
10
|
+
_excluded8 = ["material"],
|
|
11
|
+
_excluded9 = ["material"],
|
|
12
|
+
_excluded10 = ["material"],
|
|
13
|
+
_excluded11 = ["material"],
|
|
14
|
+
_excluded12 = ["material"],
|
|
15
|
+
_excluded13 = ["material"],
|
|
16
|
+
_excluded14 = ["inert", "iconStart", "iconEnd", "children"],
|
|
17
|
+
_excluded15 = ["slotProps", "material"],
|
|
18
|
+
_excluded16 = ["id", "multiple", "freeSolo", "options", "getOptionLabel", "isOptionEqualToValue", "value", "onChange", "label", "placeholder", "slotProps", "material"],
|
|
19
|
+
_excluded17 = ["key"],
|
|
20
|
+
_excluded18 = ["inputProps", "InputProps", "InputLabelProps"],
|
|
21
|
+
_excluded19 = ["slotProps", "material"],
|
|
22
|
+
_excluded20 = ["ref", "open", "children", "className", "clickAwayTouchEvent", "clickAwayMouseEvent", "flip", "focusTrap", "onExited", "onClickAway", "onDidShow", "onDidHide", "id", "target", "transition", "placement", "material"],
|
|
23
|
+
_excluded21 = ["native"];
|
|
13
24
|
import * as React from 'react';
|
|
25
|
+
import clsx from 'clsx';
|
|
14
26
|
import useForkRef from '@mui/utils/useForkRef';
|
|
15
27
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
16
28
|
import { styled } from '@mui/material/styles';
|
|
@@ -48,8 +60,12 @@ import { GridColumnUnsortedIcon } from "./icons/GridColumnUnsortedIcon.js";
|
|
|
48
60
|
import { GridAddIcon, GridArrowDownwardIcon, GridArrowUpwardIcon, GridCheckIcon, GridCloseIcon, GridColumnIcon, GridDragIcon, GridExpandMoreIcon, GridFilterAltIcon, GridFilterListIcon, GridKeyboardArrowRight, GridMoreVertIcon, GridRemoveIcon, GridSearchIcon, GridSeparatorIcon, GridTableRowsIcon, GridTripleDotsVerticalIcon, GridViewHeadlineIcon, GridViewStreamIcon, GridVisibilityOffIcon, GridViewColumnIcon, GridClearIcon, GridLoadIcon, GridDeleteForeverIcon, GridDownloadIcon } from "./icons/index.js";
|
|
49
61
|
import { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
|
|
50
62
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
63
|
+
import "./augmentation.js";
|
|
51
64
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
52
65
|
export { useMaterialCSSVariables } from "./variables.js";
|
|
66
|
+
|
|
67
|
+
/* eslint-disable material-ui/disallow-react-api-in-server-components */
|
|
68
|
+
|
|
53
69
|
const InputAdornment = styled(MUIInputAdornment)({
|
|
54
70
|
[`&.${inputAdornmentClasses.positionEnd} .${iconButtonClasses.sizeSmall}`]: {
|
|
55
71
|
marginRight: '-7px'
|
|
@@ -93,6 +109,7 @@ const BaseSelect = forwardRef(function BaseSelect(props, ref) {
|
|
|
93
109
|
id,
|
|
94
110
|
label,
|
|
95
111
|
labelId,
|
|
112
|
+
material,
|
|
96
113
|
disabled,
|
|
97
114
|
slotProps,
|
|
98
115
|
onChange,
|
|
@@ -137,7 +154,7 @@ const BaseSelect = forwardRef(function BaseSelect(props, ref) {
|
|
|
137
154
|
onOpen: onOpen,
|
|
138
155
|
MenuProps: menuProps,
|
|
139
156
|
size: size
|
|
140
|
-
}))]
|
|
157
|
+
}, material))]
|
|
141
158
|
});
|
|
142
159
|
});
|
|
143
160
|
const StyledPagination = styled(MUIPagination)(({
|
|
@@ -159,6 +176,7 @@ const StyledPagination = styled(MUIPagination)(({
|
|
|
159
176
|
const BasePagination = forwardRef(function BasePagination(props, ref) {
|
|
160
177
|
const {
|
|
161
178
|
onRowsPerPageChange,
|
|
179
|
+
material,
|
|
162
180
|
disabled
|
|
163
181
|
} = props,
|
|
164
182
|
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
@@ -190,84 +208,29 @@ const BasePagination = forwardRef(function BasePagination(props, ref) {
|
|
|
190
208
|
estimated: estimatedRowCount
|
|
191
209
|
})),
|
|
192
210
|
getItemAriaLabel: apiRef.current.getLocaleText('paginationItemAriaLabel')
|
|
193
|
-
}, computedProps, rest, {
|
|
211
|
+
}, computedProps, rest, material, {
|
|
194
212
|
ref: ref
|
|
195
213
|
}));
|
|
196
214
|
});
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
columnSelectorIcon: GridColumnIcon,
|
|
208
|
-
columnUnsortedIcon: GridColumnUnsortedIcon,
|
|
209
|
-
columnSortedAscendingIcon: GridArrowUpwardIcon,
|
|
210
|
-
columnSortedDescendingIcon: GridArrowDownwardIcon,
|
|
211
|
-
columnResizeIcon: GridSeparatorIcon,
|
|
212
|
-
densityCompactIcon: GridViewHeadlineIcon,
|
|
213
|
-
densityStandardIcon: GridTableRowsIcon,
|
|
214
|
-
densityComfortableIcon: GridViewStreamIcon,
|
|
215
|
-
exportIcon: GridDownloadIcon,
|
|
216
|
-
moreActionsIcon: GridMoreVertIcon,
|
|
217
|
-
treeDataCollapseIcon: GridExpandMoreIcon,
|
|
218
|
-
treeDataExpandIcon: GridKeyboardArrowRight,
|
|
219
|
-
groupingCriteriaCollapseIcon: GridExpandMoreIcon,
|
|
220
|
-
groupingCriteriaExpandIcon: GridKeyboardArrowRight,
|
|
221
|
-
detailPanelExpandIcon: GridAddIcon,
|
|
222
|
-
detailPanelCollapseIcon: GridRemoveIcon,
|
|
223
|
-
rowReorderIcon: GridDragIcon,
|
|
224
|
-
quickFilterIcon: GridSearchIcon,
|
|
225
|
-
quickFilterClearIcon: GridClearIcon,
|
|
226
|
-
columnMenuHideIcon: GridVisibilityOffIcon,
|
|
227
|
-
columnMenuSortAscendingIcon: GridArrowUpwardIcon,
|
|
228
|
-
columnMenuSortDescendingIcon: GridArrowDownwardIcon,
|
|
229
|
-
columnMenuUnsortIcon: null,
|
|
230
|
-
columnMenuFilterIcon: GridFilterAltIcon,
|
|
231
|
-
columnMenuManageColumnsIcon: GridViewColumnIcon,
|
|
232
|
-
columnMenuClearIcon: GridClearIcon,
|
|
233
|
-
loadIcon: GridLoadIcon,
|
|
234
|
-
filterPanelAddIcon: GridAddIcon,
|
|
235
|
-
filterPanelRemoveAllIcon: GridDeleteForeverIcon,
|
|
236
|
-
columnReorderIcon: GridDragIcon,
|
|
237
|
-
menuItemCheckIcon: GridCheckIcon
|
|
238
|
-
};
|
|
239
|
-
const baseSlots = {
|
|
240
|
-
baseAutocomplete: BaseAutocomplete,
|
|
241
|
-
baseBadge: MUIBadge,
|
|
242
|
-
baseCheckbox: /*#__PURE__*/React.forwardRef(BaseCheckbox),
|
|
243
|
-
baseCircularProgress: MUICircularProgress,
|
|
244
|
-
baseDivider: MUIDivider,
|
|
245
|
-
baseInput: BaseInput,
|
|
246
|
-
baseLinearProgress: MUILinearProgress,
|
|
247
|
-
baseMenuList: BaseMenuList,
|
|
248
|
-
baseMenuItem: BaseMenuItem,
|
|
249
|
-
baseTextField: BaseTextField,
|
|
250
|
-
baseButton: MUIButton,
|
|
251
|
-
baseIconButton: MUIIconButton,
|
|
252
|
-
baseTooltip: MUITooltip,
|
|
253
|
-
basePagination: BasePagination,
|
|
254
|
-
basePopper: BasePopper,
|
|
255
|
-
baseSelect: BaseSelect,
|
|
256
|
-
baseSelectOption: BaseSelectOption,
|
|
257
|
-
baseSkeleton: MUISkeleton,
|
|
258
|
-
baseSwitch: MUISwitch
|
|
259
|
-
};
|
|
260
|
-
const materialSlots = _extends({}, baseSlots, iconSlots);
|
|
261
|
-
export default materialSlots;
|
|
262
|
-
function BaseCheckbox(props, ref) {
|
|
215
|
+
const BaseBadge = forwardRef(function BaseBadge(props, ref) {
|
|
216
|
+
const {
|
|
217
|
+
material
|
|
218
|
+
} = props,
|
|
219
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
220
|
+
return /*#__PURE__*/_jsx(MUIBadge, _extends({}, rest, material, {
|
|
221
|
+
ref: ref
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
224
|
+
const BaseCheckbox = forwardRef(function BaseCheckbox(props, ref) {
|
|
263
225
|
const {
|
|
264
226
|
autoFocus,
|
|
265
227
|
label,
|
|
266
228
|
fullWidth,
|
|
267
229
|
slotProps,
|
|
268
|
-
className
|
|
230
|
+
className,
|
|
231
|
+
material
|
|
269
232
|
} = props,
|
|
270
|
-
other = _objectWithoutPropertiesLoose(props,
|
|
233
|
+
other = _objectWithoutPropertiesLoose(props, _excluded4);
|
|
271
234
|
const elementRef = React.useRef(null);
|
|
272
235
|
const handleRef = useForkRef(elementRef, ref);
|
|
273
236
|
const rippleRef = React.useRef(null);
|
|
@@ -284,8 +247,8 @@ function BaseCheckbox(props, ref) {
|
|
|
284
247
|
}
|
|
285
248
|
}, [autoFocus]);
|
|
286
249
|
if (!label) {
|
|
287
|
-
return /*#__PURE__*/_jsx(Checkbox, _extends({}, other, {
|
|
288
|
-
className: className,
|
|
250
|
+
return /*#__PURE__*/_jsx(Checkbox, _extends({}, other, material, {
|
|
251
|
+
className: clsx(className, material?.className),
|
|
289
252
|
inputProps: slotProps?.htmlInput,
|
|
290
253
|
ref: handleRef,
|
|
291
254
|
touchRippleRef: rippleRef
|
|
@@ -293,7 +256,7 @@ function BaseCheckbox(props, ref) {
|
|
|
293
256
|
}
|
|
294
257
|
return /*#__PURE__*/_jsx(FormControlLabel, {
|
|
295
258
|
className: className,
|
|
296
|
-
control: /*#__PURE__*/_jsx(Checkbox, _extends({}, other, {
|
|
259
|
+
control: /*#__PURE__*/_jsx(Checkbox, _extends({}, other, material, {
|
|
297
260
|
inputProps: slotProps?.htmlInput,
|
|
298
261
|
ref: handleRef,
|
|
299
262
|
touchRippleRef: rippleRef
|
|
@@ -301,10 +264,88 @@ function BaseCheckbox(props, ref) {
|
|
|
301
264
|
label: label,
|
|
302
265
|
fullWidth: fullWidth
|
|
303
266
|
});
|
|
304
|
-
}
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
|
|
267
|
+
});
|
|
268
|
+
const BaseCircularProgress = forwardRef(function BaseCircularProgress(props, ref) {
|
|
269
|
+
const {
|
|
270
|
+
material
|
|
271
|
+
} = props,
|
|
272
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded5);
|
|
273
|
+
return /*#__PURE__*/_jsx(MUICircularProgress, _extends({}, rest, material, {
|
|
274
|
+
ref: ref
|
|
275
|
+
}));
|
|
276
|
+
});
|
|
277
|
+
const BaseDivider = forwardRef(function BaseDivider(props, ref) {
|
|
278
|
+
const {
|
|
279
|
+
material
|
|
280
|
+
} = props,
|
|
281
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded6);
|
|
282
|
+
return /*#__PURE__*/_jsx(MUIDivider, _extends({}, rest, material, {
|
|
283
|
+
ref: ref
|
|
284
|
+
}));
|
|
285
|
+
});
|
|
286
|
+
const BaseLinearProgress = forwardRef(function BaseLinearProgress(props, ref) {
|
|
287
|
+
const {
|
|
288
|
+
material
|
|
289
|
+
} = props,
|
|
290
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded7);
|
|
291
|
+
return /*#__PURE__*/_jsx(MUILinearProgress, _extends({}, rest, material, {
|
|
292
|
+
ref: ref
|
|
293
|
+
}));
|
|
294
|
+
});
|
|
295
|
+
const BaseButton = forwardRef(function BaseButton(props, ref) {
|
|
296
|
+
const {
|
|
297
|
+
material
|
|
298
|
+
} = props,
|
|
299
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded8);
|
|
300
|
+
return /*#__PURE__*/_jsx(MUIButton, _extends({}, rest, material, {
|
|
301
|
+
ref: ref
|
|
302
|
+
}));
|
|
303
|
+
});
|
|
304
|
+
const BaseIconButton = forwardRef(function BaseIconButton(props, ref) {
|
|
305
|
+
const {
|
|
306
|
+
material
|
|
307
|
+
} = props,
|
|
308
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded9);
|
|
309
|
+
return /*#__PURE__*/_jsx(MUIIconButton, _extends({}, rest, material, {
|
|
310
|
+
ref: ref
|
|
311
|
+
}));
|
|
312
|
+
});
|
|
313
|
+
const BaseTooltip = forwardRef(function BaseTooltip(props, ref) {
|
|
314
|
+
const {
|
|
315
|
+
material
|
|
316
|
+
} = props,
|
|
317
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded10);
|
|
318
|
+
return /*#__PURE__*/_jsx(MUITooltip, _extends({}, rest, material, {
|
|
319
|
+
ref: ref
|
|
320
|
+
}));
|
|
321
|
+
});
|
|
322
|
+
const BaseSkeleton = forwardRef(function BaseSkeleton(props, ref) {
|
|
323
|
+
const {
|
|
324
|
+
material
|
|
325
|
+
} = props,
|
|
326
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded11);
|
|
327
|
+
return /*#__PURE__*/_jsx(MUISkeleton, _extends({}, rest, material, {
|
|
328
|
+
ref: ref
|
|
329
|
+
}));
|
|
330
|
+
});
|
|
331
|
+
const BaseSwitch = forwardRef(function BaseSwitch(props, ref) {
|
|
332
|
+
const {
|
|
333
|
+
material
|
|
334
|
+
} = props,
|
|
335
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded12);
|
|
336
|
+
return /*#__PURE__*/_jsx(MUISwitch, _extends({}, rest, material, {
|
|
337
|
+
ref: ref
|
|
338
|
+
}));
|
|
339
|
+
});
|
|
340
|
+
const BaseMenuList = forwardRef(function BaseMenuList(props, ref) {
|
|
341
|
+
const {
|
|
342
|
+
material
|
|
343
|
+
} = props,
|
|
344
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded13);
|
|
345
|
+
return /*#__PURE__*/_jsx(MUIMenuList, _extends({}, rest, material, {
|
|
346
|
+
ref: ref
|
|
347
|
+
}));
|
|
348
|
+
});
|
|
308
349
|
function BaseMenuItem(props) {
|
|
309
350
|
const {
|
|
310
351
|
inert,
|
|
@@ -312,7 +353,7 @@ function BaseMenuItem(props) {
|
|
|
312
353
|
iconEnd,
|
|
313
354
|
children
|
|
314
355
|
} = props,
|
|
315
|
-
other = _objectWithoutPropertiesLoose(props,
|
|
356
|
+
other = _objectWithoutPropertiesLoose(props, _excluded14);
|
|
316
357
|
if (inert) {
|
|
317
358
|
other.disableRipple = true;
|
|
318
359
|
}
|
|
@@ -328,12 +369,13 @@ function BaseTextField(props) {
|
|
|
328
369
|
// MaterialUI v5 doesn't support slotProps, until we drop v5 support we need to
|
|
329
370
|
// translate the pattern.
|
|
330
371
|
const {
|
|
331
|
-
slotProps
|
|
372
|
+
slotProps,
|
|
373
|
+
material
|
|
332
374
|
} = props,
|
|
333
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
375
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded15);
|
|
334
376
|
return /*#__PURE__*/_jsx(MUITextField, _extends({
|
|
335
377
|
variant: "outlined"
|
|
336
|
-
}, rest, {
|
|
378
|
+
}, rest, material, {
|
|
337
379
|
inputProps: slotProps?.htmlInput,
|
|
338
380
|
InputProps: transformInputProps(slotProps?.input),
|
|
339
381
|
InputLabelProps: _extends({
|
|
@@ -354,9 +396,10 @@ function BaseAutocomplete(props) {
|
|
|
354
396
|
onChange,
|
|
355
397
|
label,
|
|
356
398
|
placeholder,
|
|
357
|
-
slotProps
|
|
399
|
+
slotProps,
|
|
400
|
+
material
|
|
358
401
|
} = props,
|
|
359
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
402
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded16);
|
|
360
403
|
return /*#__PURE__*/_jsx(MUIAutocomplete, _extends({
|
|
361
404
|
id: id,
|
|
362
405
|
multiple: multiple,
|
|
@@ -373,7 +416,7 @@ function BaseAutocomplete(props) {
|
|
|
373
416
|
{
|
|
374
417
|
key
|
|
375
418
|
} = _getTagProps,
|
|
376
|
-
tagProps = _objectWithoutPropertiesLoose(_getTagProps,
|
|
419
|
+
tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded17);
|
|
377
420
|
return /*#__PURE__*/_jsx(MUIChip, _extends({
|
|
378
421
|
variant: "outlined",
|
|
379
422
|
size: "small",
|
|
@@ -386,42 +429,50 @@ function BaseAutocomplete(props) {
|
|
|
386
429
|
InputProps,
|
|
387
430
|
InputLabelProps
|
|
388
431
|
} = params,
|
|
389
|
-
inputRest = _objectWithoutPropertiesLoose(params,
|
|
390
|
-
return /*#__PURE__*/_jsx(
|
|
432
|
+
inputRest = _objectWithoutPropertiesLoose(params, _excluded18);
|
|
433
|
+
return /*#__PURE__*/_jsx(MUITextField, _extends({}, inputRest, {
|
|
391
434
|
label: label,
|
|
392
435
|
placeholder: placeholder,
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
436
|
+
inputProps: inputProps,
|
|
437
|
+
InputProps: transformInputProps(InputProps, false),
|
|
438
|
+
InputLabelProps: _extends({
|
|
439
|
+
shrink: true
|
|
440
|
+
}, InputLabelProps)
|
|
398
441
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
399
442
|
}
|
|
400
|
-
}, rest));
|
|
443
|
+
}, rest, material));
|
|
401
444
|
}
|
|
402
445
|
function BaseInput(props) {
|
|
403
446
|
return /*#__PURE__*/_jsx(MUIInputBase, _extends({}, transformInputProps(props)));
|
|
404
447
|
}
|
|
405
|
-
function transformInputProps(props) {
|
|
448
|
+
function transformInputProps(props, wrapAdornments = true) {
|
|
406
449
|
if (!props) {
|
|
407
450
|
return undefined;
|
|
408
451
|
}
|
|
409
452
|
const {
|
|
410
|
-
slotProps
|
|
453
|
+
slotProps,
|
|
454
|
+
material
|
|
411
455
|
} = props,
|
|
412
|
-
rest = _objectWithoutPropertiesLoose(props,
|
|
456
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded19);
|
|
413
457
|
const result = rest;
|
|
414
|
-
if (
|
|
415
|
-
result.startAdornment
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
458
|
+
if (wrapAdornments) {
|
|
459
|
+
if (result.startAdornment) {
|
|
460
|
+
result.startAdornment = /*#__PURE__*/_jsx(InputAdornment, {
|
|
461
|
+
position: "start",
|
|
462
|
+
children: result.startAdornment
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
if (result.endAdornment) {
|
|
466
|
+
result.endAdornment = /*#__PURE__*/_jsx(InputAdornment, {
|
|
467
|
+
position: "end",
|
|
468
|
+
children: result.endAdornment
|
|
469
|
+
});
|
|
470
|
+
}
|
|
419
471
|
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
});
|
|
472
|
+
for (const k in material) {
|
|
473
|
+
if (Object.hasOwn(material, k)) {
|
|
474
|
+
result[k] = material[k];
|
|
475
|
+
}
|
|
425
476
|
}
|
|
426
477
|
if (slotProps?.htmlInput) {
|
|
427
478
|
if (result.inputProps) {
|
|
@@ -438,10 +489,20 @@ const transformOrigin = {
|
|
|
438
489
|
};
|
|
439
490
|
function BasePopper(props) {
|
|
440
491
|
const {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
492
|
+
open,
|
|
493
|
+
children,
|
|
494
|
+
className,
|
|
495
|
+
flip,
|
|
496
|
+
onExited,
|
|
497
|
+
onDidShow,
|
|
498
|
+
onDidHide,
|
|
499
|
+
id,
|
|
500
|
+
target,
|
|
501
|
+
transition,
|
|
502
|
+
placement,
|
|
503
|
+
material
|
|
504
|
+
} = props,
|
|
505
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded20);
|
|
445
506
|
const modifiers = React.useMemo(() => {
|
|
446
507
|
const result = [];
|
|
447
508
|
if (flip) {
|
|
@@ -469,40 +530,38 @@ function BasePopper(props) {
|
|
|
469
530
|
return result;
|
|
470
531
|
}, [flip, onDidShow, onDidHide]);
|
|
471
532
|
let content;
|
|
472
|
-
if (!
|
|
473
|
-
content = wrappers(props,
|
|
533
|
+
if (!transition) {
|
|
534
|
+
content = wrappers(props, children);
|
|
474
535
|
} else {
|
|
475
536
|
const handleExited = popperOnExited => node => {
|
|
476
537
|
if (popperOnExited) {
|
|
477
538
|
popperOnExited();
|
|
478
539
|
}
|
|
479
|
-
if (
|
|
480
|
-
|
|
540
|
+
if (onExited) {
|
|
541
|
+
onExited(node);
|
|
481
542
|
}
|
|
482
543
|
};
|
|
483
|
-
content = ({
|
|
484
|
-
TransitionProps,
|
|
485
|
-
placement
|
|
486
|
-
}) => wrappers(props, /*#__PURE__*/_jsx(MUIGrow, _extends({}, TransitionProps, {
|
|
544
|
+
content = p => wrappers(props, /*#__PURE__*/_jsx(MUIGrow, _extends({}, p.TransitionProps, {
|
|
487
545
|
style: {
|
|
488
|
-
transformOrigin: transformOrigin[placement]
|
|
546
|
+
transformOrigin: transformOrigin[p.placement]
|
|
489
547
|
},
|
|
490
|
-
onExited: handleExited(TransitionProps?.onExited),
|
|
548
|
+
onExited: handleExited(p.TransitionProps?.onExited),
|
|
491
549
|
children: /*#__PURE__*/_jsx(MUIPaper, {
|
|
492
|
-
children:
|
|
550
|
+
children: children
|
|
493
551
|
})
|
|
494
552
|
})));
|
|
495
553
|
}
|
|
496
|
-
return /*#__PURE__*/_jsx(MUIPopper, {
|
|
497
|
-
id:
|
|
498
|
-
className:
|
|
499
|
-
open:
|
|
500
|
-
anchorEl:
|
|
501
|
-
transition:
|
|
502
|
-
placement:
|
|
503
|
-
modifiers: modifiers
|
|
554
|
+
return /*#__PURE__*/_jsx(MUIPopper, _extends({
|
|
555
|
+
id: id,
|
|
556
|
+
className: className,
|
|
557
|
+
open: open,
|
|
558
|
+
anchorEl: target,
|
|
559
|
+
transition: transition,
|
|
560
|
+
placement: placement,
|
|
561
|
+
modifiers: modifiers
|
|
562
|
+
}, rest, material, {
|
|
504
563
|
children: content
|
|
505
|
-
});
|
|
564
|
+
}));
|
|
506
565
|
}
|
|
507
566
|
function wrappers(props, content) {
|
|
508
567
|
return focusTrapWrapper(props, clickAwayWrapper(props, content));
|
|
@@ -536,9 +595,71 @@ function BaseSelectOption(_ref) {
|
|
|
536
595
|
let {
|
|
537
596
|
native
|
|
538
597
|
} = _ref,
|
|
539
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
598
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded21);
|
|
540
599
|
if (native) {
|
|
541
600
|
return /*#__PURE__*/_jsx("option", _extends({}, props));
|
|
542
601
|
}
|
|
543
602
|
return /*#__PURE__*/_jsx(MUIMenuItem, _extends({}, props));
|
|
544
|
-
}
|
|
603
|
+
}
|
|
604
|
+
const iconSlots = {
|
|
605
|
+
booleanCellTrueIcon: GridCheckIcon,
|
|
606
|
+
booleanCellFalseIcon: GridCloseIcon,
|
|
607
|
+
columnMenuIcon: GridTripleDotsVerticalIcon,
|
|
608
|
+
openFilterButtonIcon: GridFilterListIcon,
|
|
609
|
+
filterPanelDeleteIcon: GridCloseIcon,
|
|
610
|
+
columnFilteredIcon: GridFilterAltIcon,
|
|
611
|
+
columnSelectorIcon: GridColumnIcon,
|
|
612
|
+
columnUnsortedIcon: GridColumnUnsortedIcon,
|
|
613
|
+
columnSortedAscendingIcon: GridArrowUpwardIcon,
|
|
614
|
+
columnSortedDescendingIcon: GridArrowDownwardIcon,
|
|
615
|
+
columnResizeIcon: GridSeparatorIcon,
|
|
616
|
+
densityCompactIcon: GridViewHeadlineIcon,
|
|
617
|
+
densityStandardIcon: GridTableRowsIcon,
|
|
618
|
+
densityComfortableIcon: GridViewStreamIcon,
|
|
619
|
+
exportIcon: GridDownloadIcon,
|
|
620
|
+
moreActionsIcon: GridMoreVertIcon,
|
|
621
|
+
treeDataCollapseIcon: GridExpandMoreIcon,
|
|
622
|
+
treeDataExpandIcon: GridKeyboardArrowRight,
|
|
623
|
+
groupingCriteriaCollapseIcon: GridExpandMoreIcon,
|
|
624
|
+
groupingCriteriaExpandIcon: GridKeyboardArrowRight,
|
|
625
|
+
detailPanelExpandIcon: GridAddIcon,
|
|
626
|
+
detailPanelCollapseIcon: GridRemoveIcon,
|
|
627
|
+
rowReorderIcon: GridDragIcon,
|
|
628
|
+
quickFilterIcon: GridSearchIcon,
|
|
629
|
+
quickFilterClearIcon: GridClearIcon,
|
|
630
|
+
columnMenuHideIcon: GridVisibilityOffIcon,
|
|
631
|
+
columnMenuSortAscendingIcon: GridArrowUpwardIcon,
|
|
632
|
+
columnMenuSortDescendingIcon: GridArrowDownwardIcon,
|
|
633
|
+
columnMenuUnsortIcon: null,
|
|
634
|
+
columnMenuFilterIcon: GridFilterAltIcon,
|
|
635
|
+
columnMenuManageColumnsIcon: GridViewColumnIcon,
|
|
636
|
+
columnMenuClearIcon: GridClearIcon,
|
|
637
|
+
loadIcon: GridLoadIcon,
|
|
638
|
+
filterPanelAddIcon: GridAddIcon,
|
|
639
|
+
filterPanelRemoveAllIcon: GridDeleteForeverIcon,
|
|
640
|
+
columnReorderIcon: GridDragIcon,
|
|
641
|
+
menuItemCheckIcon: GridCheckIcon
|
|
642
|
+
};
|
|
643
|
+
const baseSlots = {
|
|
644
|
+
baseAutocomplete: BaseAutocomplete,
|
|
645
|
+
baseBadge: BaseBadge,
|
|
646
|
+
baseCheckbox: BaseCheckbox,
|
|
647
|
+
baseCircularProgress: BaseCircularProgress,
|
|
648
|
+
baseDivider: BaseDivider,
|
|
649
|
+
baseInput: BaseInput,
|
|
650
|
+
baseLinearProgress: BaseLinearProgress,
|
|
651
|
+
baseMenuList: BaseMenuList,
|
|
652
|
+
baseMenuItem: BaseMenuItem,
|
|
653
|
+
baseTextField: BaseTextField,
|
|
654
|
+
baseButton: BaseButton,
|
|
655
|
+
baseIconButton: BaseIconButton,
|
|
656
|
+
baseTooltip: BaseTooltip,
|
|
657
|
+
basePagination: BasePagination,
|
|
658
|
+
basePopper: BasePopper,
|
|
659
|
+
baseSelect: BaseSelect,
|
|
660
|
+
baseSelectOption: BaseSelectOption,
|
|
661
|
+
baseSkeleton: BaseSkeleton,
|
|
662
|
+
baseSwitch: BaseSwitch
|
|
663
|
+
};
|
|
664
|
+
const materialSlots = _extends({}, baseSlots, iconSlots);
|
|
665
|
+
export default materialSlots;
|
|
@@ -27,6 +27,7 @@ function transformTheme(t) {
|
|
|
27
27
|
const radius = getRadius(t);
|
|
28
28
|
const fontBody = t.vars?.font?.body2 ?? formatFont(t.typography.body2);
|
|
29
29
|
const fontSmall = t.vars?.font?.caption ?? formatFont(t.typography.caption);
|
|
30
|
+
const fontLarge = t.vars?.font?.body1 ?? formatFont(t.typography.body1);
|
|
30
31
|
const k = vars.keys;
|
|
31
32
|
return {
|
|
32
33
|
[k.spacingUnit]: t.vars ? t.vars.spacing ?? t.spacing(1) : t.spacing(1),
|
|
@@ -56,6 +57,7 @@ function transformTheme(t) {
|
|
|
56
57
|
[k.typography.fontWeight.bold]: t.typography.fontWeightBold,
|
|
57
58
|
[k.typography.font.body]: fontBody,
|
|
58
59
|
[k.typography.font.small]: fontSmall,
|
|
60
|
+
[k.typography.font.large]: fontLarge,
|
|
59
61
|
[k.transitions.easing.easeIn]: t.transitions.easing.easeIn,
|
|
60
62
|
[k.transitions.easing.easeOut]: t.transitions.easing.easeOut,
|
|
61
63
|
[k.transitions.easing.easeInOut]: t.transitions.easing.easeInOut,
|
|
@@ -299,7 +299,7 @@ export type GridColDef<R extends GridValidRowModel = any, V = any, F = V> = Grid
|
|
|
299
299
|
* @demos
|
|
300
300
|
* - [List view](/x/react-data-grid/list-view/)
|
|
301
301
|
*/
|
|
302
|
-
export type
|
|
302
|
+
export type GridListViewColDef<R extends GridValidRowModel = any, V = any, F = V> = Pick<GridBaseColDef<R, V, F>, 'field' | 'renderCell' | 'align' | 'cellClassName' | 'display'>;
|
|
303
303
|
export type GridColTypeDef<V = any, F = V> = Omit<GridBaseColDef<any, V, F>, 'field'>;
|
|
304
304
|
export type GridStateColDef<R extends GridValidRowModel = any, V = any, F = V> = GridColDef<R, V, F> & {
|
|
305
305
|
computedWidth: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { GridAlignment, ValueOptions, GridKeyValue, GridColDef,
|
|
1
|
+
export type { GridAlignment, ValueOptions, GridKeyValue, GridColDef, GridListViewColDef, GridColTypeDef, GridColumnsMeta, GridSingleSelectColDef, GridActionsColDef, GetApplyQuickFilterFn, GridValueGetter, GridValueFormatter, GridValueSetter, GridValueParser, GridColSpanFn } from './gridColDef';
|
|
2
2
|
export * from "./gridColType.js";
|
|
3
3
|
export * from "./gridColumnTypesRecord.js";
|