@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/material/index.js
CHANGED
|
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "useMaterialCSSVariables", {
|
|
|
15
15
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
16
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
17
17
|
var React = _interopRequireWildcard(require("react"));
|
|
18
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
18
19
|
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
19
20
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
20
21
|
var _styles = require("@mui/material/styles");
|
|
@@ -52,18 +53,32 @@ var _GridColumnUnsortedIcon = require("./icons/GridColumnUnsortedIcon");
|
|
|
52
53
|
var _icons = require("./icons");
|
|
53
54
|
var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
54
55
|
var _useGridRootProps = require("../hooks/utils/useGridRootProps");
|
|
56
|
+
require("./augmentation");
|
|
55
57
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
56
58
|
var _variables = require("./variables");
|
|
57
|
-
const _excluded = ["id", "label", "labelId", "disabled", "slotProps", "onChange", "onKeyDown", "onOpen", "onClose", "size", "style", "fullWidth"],
|
|
58
|
-
_excluded2 = ["onRowsPerPageChange", "disabled"],
|
|
59
|
-
_excluded3 = ["
|
|
60
|
-
_excluded4 = ["
|
|
61
|
-
_excluded5 = ["
|
|
62
|
-
_excluded6 = ["
|
|
63
|
-
_excluded7 = ["
|
|
64
|
-
_excluded8 = ["
|
|
65
|
-
_excluded9 = ["
|
|
66
|
-
_excluded10 = ["
|
|
59
|
+
const _excluded = ["id", "label", "labelId", "material", "disabled", "slotProps", "onChange", "onKeyDown", "onOpen", "onClose", "size", "style", "fullWidth"],
|
|
60
|
+
_excluded2 = ["onRowsPerPageChange", "material", "disabled"],
|
|
61
|
+
_excluded3 = ["material"],
|
|
62
|
+
_excluded4 = ["autoFocus", "label", "fullWidth", "slotProps", "className", "material"],
|
|
63
|
+
_excluded5 = ["material"],
|
|
64
|
+
_excluded6 = ["material"],
|
|
65
|
+
_excluded7 = ["material"],
|
|
66
|
+
_excluded8 = ["material"],
|
|
67
|
+
_excluded9 = ["material"],
|
|
68
|
+
_excluded10 = ["material"],
|
|
69
|
+
_excluded11 = ["material"],
|
|
70
|
+
_excluded12 = ["material"],
|
|
71
|
+
_excluded13 = ["material"],
|
|
72
|
+
_excluded14 = ["inert", "iconStart", "iconEnd", "children"],
|
|
73
|
+
_excluded15 = ["slotProps", "material"],
|
|
74
|
+
_excluded16 = ["id", "multiple", "freeSolo", "options", "getOptionLabel", "isOptionEqualToValue", "value", "onChange", "label", "placeholder", "slotProps", "material"],
|
|
75
|
+
_excluded17 = ["key"],
|
|
76
|
+
_excluded18 = ["inputProps", "InputProps", "InputLabelProps"],
|
|
77
|
+
_excluded19 = ["slotProps", "material"],
|
|
78
|
+
_excluded20 = ["ref", "open", "children", "className", "clickAwayTouchEvent", "clickAwayMouseEvent", "flip", "focusTrap", "onExited", "onClickAway", "onDidShow", "onDidHide", "id", "target", "transition", "placement", "material"],
|
|
79
|
+
_excluded21 = ["native"];
|
|
80
|
+
/* eslint-disable material-ui/disallow-react-api-in-server-components */
|
|
81
|
+
|
|
67
82
|
const InputAdornment = (0, _styles.styled)(_InputAdornment.default)({
|
|
68
83
|
[`&.${_InputAdornment.inputAdornmentClasses.positionEnd} .${_IconButton.iconButtonClasses.sizeSmall}`]: {
|
|
69
84
|
marginRight: '-7px'
|
|
@@ -107,6 +122,7 @@ const BaseSelect = (0, _forwardRef.forwardRef)(function BaseSelect(props, ref) {
|
|
|
107
122
|
id,
|
|
108
123
|
label,
|
|
109
124
|
labelId,
|
|
125
|
+
material,
|
|
110
126
|
disabled,
|
|
111
127
|
slotProps,
|
|
112
128
|
onChange,
|
|
@@ -151,7 +167,7 @@ const BaseSelect = (0, _forwardRef.forwardRef)(function BaseSelect(props, ref) {
|
|
|
151
167
|
onOpen: onOpen,
|
|
152
168
|
MenuProps: menuProps,
|
|
153
169
|
size: size
|
|
154
|
-
}))]
|
|
170
|
+
}, material))]
|
|
155
171
|
});
|
|
156
172
|
});
|
|
157
173
|
const StyledPagination = (0, _styles.styled)(_TablePagination.default)(({
|
|
@@ -173,6 +189,7 @@ const StyledPagination = (0, _styles.styled)(_TablePagination.default)(({
|
|
|
173
189
|
const BasePagination = (0, _forwardRef.forwardRef)(function BasePagination(props, ref) {
|
|
174
190
|
const {
|
|
175
191
|
onRowsPerPageChange,
|
|
192
|
+
material,
|
|
176
193
|
disabled
|
|
177
194
|
} = props,
|
|
178
195
|
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
@@ -204,84 +221,29 @@ const BasePagination = (0, _forwardRef.forwardRef)(function BasePagination(props
|
|
|
204
221
|
estimated: estimatedRowCount
|
|
205
222
|
})),
|
|
206
223
|
getItemAriaLabel: apiRef.current.getLocaleText('paginationItemAriaLabel')
|
|
207
|
-
}, computedProps, rest, {
|
|
224
|
+
}, computedProps, rest, material, {
|
|
208
225
|
ref: ref
|
|
209
226
|
}));
|
|
210
227
|
});
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
columnSelectorIcon: _icons.GridColumnIcon,
|
|
222
|
-
columnUnsortedIcon: _GridColumnUnsortedIcon.GridColumnUnsortedIcon,
|
|
223
|
-
columnSortedAscendingIcon: _icons.GridArrowUpwardIcon,
|
|
224
|
-
columnSortedDescendingIcon: _icons.GridArrowDownwardIcon,
|
|
225
|
-
columnResizeIcon: _icons.GridSeparatorIcon,
|
|
226
|
-
densityCompactIcon: _icons.GridViewHeadlineIcon,
|
|
227
|
-
densityStandardIcon: _icons.GridTableRowsIcon,
|
|
228
|
-
densityComfortableIcon: _icons.GridViewStreamIcon,
|
|
229
|
-
exportIcon: _icons.GridDownloadIcon,
|
|
230
|
-
moreActionsIcon: _icons.GridMoreVertIcon,
|
|
231
|
-
treeDataCollapseIcon: _icons.GridExpandMoreIcon,
|
|
232
|
-
treeDataExpandIcon: _icons.GridKeyboardArrowRight,
|
|
233
|
-
groupingCriteriaCollapseIcon: _icons.GridExpandMoreIcon,
|
|
234
|
-
groupingCriteriaExpandIcon: _icons.GridKeyboardArrowRight,
|
|
235
|
-
detailPanelExpandIcon: _icons.GridAddIcon,
|
|
236
|
-
detailPanelCollapseIcon: _icons.GridRemoveIcon,
|
|
237
|
-
rowReorderIcon: _icons.GridDragIcon,
|
|
238
|
-
quickFilterIcon: _icons.GridSearchIcon,
|
|
239
|
-
quickFilterClearIcon: _icons.GridClearIcon,
|
|
240
|
-
columnMenuHideIcon: _icons.GridVisibilityOffIcon,
|
|
241
|
-
columnMenuSortAscendingIcon: _icons.GridArrowUpwardIcon,
|
|
242
|
-
columnMenuSortDescendingIcon: _icons.GridArrowDownwardIcon,
|
|
243
|
-
columnMenuUnsortIcon: null,
|
|
244
|
-
columnMenuFilterIcon: _icons.GridFilterAltIcon,
|
|
245
|
-
columnMenuManageColumnsIcon: _icons.GridViewColumnIcon,
|
|
246
|
-
columnMenuClearIcon: _icons.GridClearIcon,
|
|
247
|
-
loadIcon: _icons.GridLoadIcon,
|
|
248
|
-
filterPanelAddIcon: _icons.GridAddIcon,
|
|
249
|
-
filterPanelRemoveAllIcon: _icons.GridDeleteForeverIcon,
|
|
250
|
-
columnReorderIcon: _icons.GridDragIcon,
|
|
251
|
-
menuItemCheckIcon: _icons.GridCheckIcon
|
|
252
|
-
};
|
|
253
|
-
const baseSlots = {
|
|
254
|
-
baseAutocomplete: BaseAutocomplete,
|
|
255
|
-
baseBadge: _Badge.default,
|
|
256
|
-
baseCheckbox: /*#__PURE__*/React.forwardRef(BaseCheckbox),
|
|
257
|
-
baseCircularProgress: _CircularProgress.default,
|
|
258
|
-
baseDivider: _Divider.default,
|
|
259
|
-
baseInput: BaseInput,
|
|
260
|
-
baseLinearProgress: _LinearProgress.default,
|
|
261
|
-
baseMenuList: BaseMenuList,
|
|
262
|
-
baseMenuItem: BaseMenuItem,
|
|
263
|
-
baseTextField: BaseTextField,
|
|
264
|
-
baseButton: _Button.default,
|
|
265
|
-
baseIconButton: _IconButton.default,
|
|
266
|
-
baseTooltip: _Tooltip.default,
|
|
267
|
-
basePagination: BasePagination,
|
|
268
|
-
basePopper: BasePopper,
|
|
269
|
-
baseSelect: BaseSelect,
|
|
270
|
-
baseSelectOption: BaseSelectOption,
|
|
271
|
-
baseSkeleton: _Skeleton.default,
|
|
272
|
-
baseSwitch: _Switch.default
|
|
273
|
-
};
|
|
274
|
-
const materialSlots = (0, _extends2.default)({}, baseSlots, iconSlots);
|
|
275
|
-
var _default = exports.default = materialSlots;
|
|
276
|
-
function BaseCheckbox(props, ref) {
|
|
228
|
+
const BaseBadge = (0, _forwardRef.forwardRef)(function BaseBadge(props, ref) {
|
|
229
|
+
const {
|
|
230
|
+
material
|
|
231
|
+
} = props,
|
|
232
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded3);
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, (0, _extends2.default)({}, rest, material, {
|
|
234
|
+
ref: ref
|
|
235
|
+
}));
|
|
236
|
+
});
|
|
237
|
+
const BaseCheckbox = (0, _forwardRef.forwardRef)(function BaseCheckbox(props, ref) {
|
|
277
238
|
const {
|
|
278
239
|
autoFocus,
|
|
279
240
|
label,
|
|
280
241
|
fullWidth,
|
|
281
242
|
slotProps,
|
|
282
|
-
className
|
|
243
|
+
className,
|
|
244
|
+
material
|
|
283
245
|
} = props,
|
|
284
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
246
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded4);
|
|
285
247
|
const elementRef = React.useRef(null);
|
|
286
248
|
const handleRef = (0, _useForkRef.default)(elementRef, ref);
|
|
287
249
|
const rippleRef = React.useRef(null);
|
|
@@ -298,8 +260,8 @@ function BaseCheckbox(props, ref) {
|
|
|
298
260
|
}
|
|
299
261
|
}, [autoFocus]);
|
|
300
262
|
if (!label) {
|
|
301
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Checkbox, (0, _extends2.default)({}, other, {
|
|
302
|
-
className: className,
|
|
263
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Checkbox, (0, _extends2.default)({}, other, material, {
|
|
264
|
+
className: (0, _clsx.default)(className, material?.className),
|
|
303
265
|
inputProps: slotProps?.htmlInput,
|
|
304
266
|
ref: handleRef,
|
|
305
267
|
touchRippleRef: rippleRef
|
|
@@ -307,7 +269,7 @@ function BaseCheckbox(props, ref) {
|
|
|
307
269
|
}
|
|
308
270
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(FormControlLabel, {
|
|
309
271
|
className: className,
|
|
310
|
-
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(Checkbox, (0, _extends2.default)({}, other, {
|
|
272
|
+
control: /*#__PURE__*/(0, _jsxRuntime.jsx)(Checkbox, (0, _extends2.default)({}, other, material, {
|
|
311
273
|
inputProps: slotProps?.htmlInput,
|
|
312
274
|
ref: handleRef,
|
|
313
275
|
touchRippleRef: rippleRef
|
|
@@ -315,10 +277,88 @@ function BaseCheckbox(props, ref) {
|
|
|
315
277
|
label: label,
|
|
316
278
|
fullWidth: fullWidth
|
|
317
279
|
});
|
|
318
|
-
}
|
|
319
|
-
function
|
|
320
|
-
|
|
321
|
-
|
|
280
|
+
});
|
|
281
|
+
const BaseCircularProgress = (0, _forwardRef.forwardRef)(function BaseCircularProgress(props, ref) {
|
|
282
|
+
const {
|
|
283
|
+
material
|
|
284
|
+
} = props,
|
|
285
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded5);
|
|
286
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CircularProgress.default, (0, _extends2.default)({}, rest, material, {
|
|
287
|
+
ref: ref
|
|
288
|
+
}));
|
|
289
|
+
});
|
|
290
|
+
const BaseDivider = (0, _forwardRef.forwardRef)(function BaseDivider(props, ref) {
|
|
291
|
+
const {
|
|
292
|
+
material
|
|
293
|
+
} = props,
|
|
294
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded6);
|
|
295
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Divider.default, (0, _extends2.default)({}, rest, material, {
|
|
296
|
+
ref: ref
|
|
297
|
+
}));
|
|
298
|
+
});
|
|
299
|
+
const BaseLinearProgress = (0, _forwardRef.forwardRef)(function BaseLinearProgress(props, ref) {
|
|
300
|
+
const {
|
|
301
|
+
material
|
|
302
|
+
} = props,
|
|
303
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded7);
|
|
304
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinearProgress.default, (0, _extends2.default)({}, rest, material, {
|
|
305
|
+
ref: ref
|
|
306
|
+
}));
|
|
307
|
+
});
|
|
308
|
+
const BaseButton = (0, _forwardRef.forwardRef)(function BaseButton(props, ref) {
|
|
309
|
+
const {
|
|
310
|
+
material
|
|
311
|
+
} = props,
|
|
312
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded8);
|
|
313
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, (0, _extends2.default)({}, rest, material, {
|
|
314
|
+
ref: ref
|
|
315
|
+
}));
|
|
316
|
+
});
|
|
317
|
+
const BaseIconButton = (0, _forwardRef.forwardRef)(function BaseIconButton(props, ref) {
|
|
318
|
+
const {
|
|
319
|
+
material
|
|
320
|
+
} = props,
|
|
321
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded9);
|
|
322
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, (0, _extends2.default)({}, rest, material, {
|
|
323
|
+
ref: ref
|
|
324
|
+
}));
|
|
325
|
+
});
|
|
326
|
+
const BaseTooltip = (0, _forwardRef.forwardRef)(function BaseTooltip(props, ref) {
|
|
327
|
+
const {
|
|
328
|
+
material
|
|
329
|
+
} = props,
|
|
330
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded10);
|
|
331
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.default, (0, _extends2.default)({}, rest, material, {
|
|
332
|
+
ref: ref
|
|
333
|
+
}));
|
|
334
|
+
});
|
|
335
|
+
const BaseSkeleton = (0, _forwardRef.forwardRef)(function BaseSkeleton(props, ref) {
|
|
336
|
+
const {
|
|
337
|
+
material
|
|
338
|
+
} = props,
|
|
339
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded11);
|
|
340
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, (0, _extends2.default)({}, rest, material, {
|
|
341
|
+
ref: ref
|
|
342
|
+
}));
|
|
343
|
+
});
|
|
344
|
+
const BaseSwitch = (0, _forwardRef.forwardRef)(function BaseSwitch(props, ref) {
|
|
345
|
+
const {
|
|
346
|
+
material
|
|
347
|
+
} = props,
|
|
348
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded12);
|
|
349
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, (0, _extends2.default)({}, rest, material, {
|
|
350
|
+
ref: ref
|
|
351
|
+
}));
|
|
352
|
+
});
|
|
353
|
+
const BaseMenuList = (0, _forwardRef.forwardRef)(function BaseMenuList(props, ref) {
|
|
354
|
+
const {
|
|
355
|
+
material
|
|
356
|
+
} = props,
|
|
357
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded13);
|
|
358
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuList.default, (0, _extends2.default)({}, rest, material, {
|
|
359
|
+
ref: ref
|
|
360
|
+
}));
|
|
361
|
+
});
|
|
322
362
|
function BaseMenuItem(props) {
|
|
323
363
|
const {
|
|
324
364
|
inert,
|
|
@@ -326,7 +366,7 @@ function BaseMenuItem(props) {
|
|
|
326
366
|
iconEnd,
|
|
327
367
|
children
|
|
328
368
|
} = props,
|
|
329
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
369
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded14);
|
|
330
370
|
if (inert) {
|
|
331
371
|
other.disableRipple = true;
|
|
332
372
|
}
|
|
@@ -342,12 +382,13 @@ function BaseTextField(props) {
|
|
|
342
382
|
// MaterialUI v5 doesn't support slotProps, until we drop v5 support we need to
|
|
343
383
|
// translate the pattern.
|
|
344
384
|
const {
|
|
345
|
-
slotProps
|
|
385
|
+
slotProps,
|
|
386
|
+
material
|
|
346
387
|
} = props,
|
|
347
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
388
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded15);
|
|
348
389
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, (0, _extends2.default)({
|
|
349
390
|
variant: "outlined"
|
|
350
|
-
}, rest, {
|
|
391
|
+
}, rest, material, {
|
|
351
392
|
inputProps: slotProps?.htmlInput,
|
|
352
393
|
InputProps: transformInputProps(slotProps?.input),
|
|
353
394
|
InputLabelProps: (0, _extends2.default)({
|
|
@@ -368,9 +409,10 @@ function BaseAutocomplete(props) {
|
|
|
368
409
|
onChange,
|
|
369
410
|
label,
|
|
370
411
|
placeholder,
|
|
371
|
-
slotProps
|
|
412
|
+
slotProps,
|
|
413
|
+
material
|
|
372
414
|
} = props,
|
|
373
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
415
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded16);
|
|
374
416
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
|
|
375
417
|
id: id,
|
|
376
418
|
multiple: multiple,
|
|
@@ -387,7 +429,7 @@ function BaseAutocomplete(props) {
|
|
|
387
429
|
{
|
|
388
430
|
key
|
|
389
431
|
} = _getTagProps,
|
|
390
|
-
tagProps = (0, _objectWithoutPropertiesLoose2.default)(_getTagProps,
|
|
432
|
+
tagProps = (0, _objectWithoutPropertiesLoose2.default)(_getTagProps, _excluded17);
|
|
391
433
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({
|
|
392
434
|
variant: "outlined",
|
|
393
435
|
size: "small",
|
|
@@ -400,42 +442,50 @@ function BaseAutocomplete(props) {
|
|
|
400
442
|
InputProps,
|
|
401
443
|
InputLabelProps
|
|
402
444
|
} = params,
|
|
403
|
-
inputRest = (0, _objectWithoutPropertiesLoose2.default)(params,
|
|
404
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
445
|
+
inputRest = (0, _objectWithoutPropertiesLoose2.default)(params, _excluded18);
|
|
446
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextField.default, (0, _extends2.default)({}, inputRest, {
|
|
405
447
|
label: label,
|
|
406
448
|
placeholder: placeholder,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
}
|
|
449
|
+
inputProps: inputProps,
|
|
450
|
+
InputProps: transformInputProps(InputProps, false),
|
|
451
|
+
InputLabelProps: (0, _extends2.default)({
|
|
452
|
+
shrink: true
|
|
453
|
+
}, InputLabelProps)
|
|
412
454
|
}, slotProps?.textField, rootProps.slotProps?.baseTextField));
|
|
413
455
|
}
|
|
414
|
-
}, rest));
|
|
456
|
+
}, rest, material));
|
|
415
457
|
}
|
|
416
458
|
function BaseInput(props) {
|
|
417
459
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, (0, _extends2.default)({}, transformInputProps(props)));
|
|
418
460
|
}
|
|
419
|
-
function transformInputProps(props) {
|
|
461
|
+
function transformInputProps(props, wrapAdornments = true) {
|
|
420
462
|
if (!props) {
|
|
421
463
|
return undefined;
|
|
422
464
|
}
|
|
423
465
|
const {
|
|
424
|
-
slotProps
|
|
466
|
+
slotProps,
|
|
467
|
+
material
|
|
425
468
|
} = props,
|
|
426
|
-
rest = (0, _objectWithoutPropertiesLoose2.default)(props,
|
|
469
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded19);
|
|
427
470
|
const result = rest;
|
|
428
|
-
if (
|
|
429
|
-
result.startAdornment
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
471
|
+
if (wrapAdornments) {
|
|
472
|
+
if (result.startAdornment) {
|
|
473
|
+
result.startAdornment = /*#__PURE__*/(0, _jsxRuntime.jsx)(InputAdornment, {
|
|
474
|
+
position: "start",
|
|
475
|
+
children: result.startAdornment
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
if (result.endAdornment) {
|
|
479
|
+
result.endAdornment = /*#__PURE__*/(0, _jsxRuntime.jsx)(InputAdornment, {
|
|
480
|
+
position: "end",
|
|
481
|
+
children: result.endAdornment
|
|
482
|
+
});
|
|
483
|
+
}
|
|
433
484
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
});
|
|
485
|
+
for (const k in material) {
|
|
486
|
+
if (Object.hasOwn(material, k)) {
|
|
487
|
+
result[k] = material[k];
|
|
488
|
+
}
|
|
439
489
|
}
|
|
440
490
|
if (slotProps?.htmlInput) {
|
|
441
491
|
if (result.inputProps) {
|
|
@@ -452,10 +502,20 @@ const transformOrigin = {
|
|
|
452
502
|
};
|
|
453
503
|
function BasePopper(props) {
|
|
454
504
|
const {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
505
|
+
open,
|
|
506
|
+
children,
|
|
507
|
+
className,
|
|
508
|
+
flip,
|
|
509
|
+
onExited,
|
|
510
|
+
onDidShow,
|
|
511
|
+
onDidHide,
|
|
512
|
+
id,
|
|
513
|
+
target,
|
|
514
|
+
transition,
|
|
515
|
+
placement,
|
|
516
|
+
material
|
|
517
|
+
} = props,
|
|
518
|
+
rest = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded20);
|
|
459
519
|
const modifiers = React.useMemo(() => {
|
|
460
520
|
const result = [];
|
|
461
521
|
if (flip) {
|
|
@@ -483,40 +543,38 @@ function BasePopper(props) {
|
|
|
483
543
|
return result;
|
|
484
544
|
}, [flip, onDidShow, onDidHide]);
|
|
485
545
|
let content;
|
|
486
|
-
if (!
|
|
487
|
-
content = wrappers(props,
|
|
546
|
+
if (!transition) {
|
|
547
|
+
content = wrappers(props, children);
|
|
488
548
|
} else {
|
|
489
549
|
const handleExited = popperOnExited => node => {
|
|
490
550
|
if (popperOnExited) {
|
|
491
551
|
popperOnExited();
|
|
492
552
|
}
|
|
493
|
-
if (
|
|
494
|
-
|
|
553
|
+
if (onExited) {
|
|
554
|
+
onExited(node);
|
|
495
555
|
}
|
|
496
556
|
};
|
|
497
|
-
content = ({
|
|
498
|
-
TransitionProps,
|
|
499
|
-
placement
|
|
500
|
-
}) => wrappers(props, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Grow.default, (0, _extends2.default)({}, TransitionProps, {
|
|
557
|
+
content = p => wrappers(props, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Grow.default, (0, _extends2.default)({}, p.TransitionProps, {
|
|
501
558
|
style: {
|
|
502
|
-
transformOrigin: transformOrigin[placement]
|
|
559
|
+
transformOrigin: transformOrigin[p.placement]
|
|
503
560
|
},
|
|
504
|
-
onExited: handleExited(TransitionProps?.onExited),
|
|
561
|
+
onExited: handleExited(p.TransitionProps?.onExited),
|
|
505
562
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paper.default, {
|
|
506
|
-
children:
|
|
563
|
+
children: children
|
|
507
564
|
})
|
|
508
565
|
})));
|
|
509
566
|
}
|
|
510
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, {
|
|
511
|
-
id:
|
|
512
|
-
className:
|
|
513
|
-
open:
|
|
514
|
-
anchorEl:
|
|
515
|
-
transition:
|
|
516
|
-
placement:
|
|
517
|
-
modifiers: modifiers
|
|
567
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popper.default, (0, _extends2.default)({
|
|
568
|
+
id: id,
|
|
569
|
+
className: className,
|
|
570
|
+
open: open,
|
|
571
|
+
anchorEl: target,
|
|
572
|
+
transition: transition,
|
|
573
|
+
placement: placement,
|
|
574
|
+
modifiers: modifiers
|
|
575
|
+
}, rest, material, {
|
|
518
576
|
children: content
|
|
519
|
-
});
|
|
577
|
+
}));
|
|
520
578
|
}
|
|
521
579
|
function wrappers(props, content) {
|
|
522
580
|
return focusTrapWrapper(props, clickAwayWrapper(props, content));
|
|
@@ -550,9 +608,71 @@ function BaseSelectOption(_ref) {
|
|
|
550
608
|
let {
|
|
551
609
|
native
|
|
552
610
|
} = _ref,
|
|
553
|
-
props = (0, _objectWithoutPropertiesLoose2.default)(_ref,
|
|
611
|
+
props = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded21);
|
|
554
612
|
if (native) {
|
|
555
613
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", (0, _extends2.default)({}, props));
|
|
556
614
|
}
|
|
557
615
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuItem.default, (0, _extends2.default)({}, props));
|
|
558
|
-
}
|
|
616
|
+
}
|
|
617
|
+
const iconSlots = {
|
|
618
|
+
booleanCellTrueIcon: _icons.GridCheckIcon,
|
|
619
|
+
booleanCellFalseIcon: _icons.GridCloseIcon,
|
|
620
|
+
columnMenuIcon: _icons.GridTripleDotsVerticalIcon,
|
|
621
|
+
openFilterButtonIcon: _icons.GridFilterListIcon,
|
|
622
|
+
filterPanelDeleteIcon: _icons.GridCloseIcon,
|
|
623
|
+
columnFilteredIcon: _icons.GridFilterAltIcon,
|
|
624
|
+
columnSelectorIcon: _icons.GridColumnIcon,
|
|
625
|
+
columnUnsortedIcon: _GridColumnUnsortedIcon.GridColumnUnsortedIcon,
|
|
626
|
+
columnSortedAscendingIcon: _icons.GridArrowUpwardIcon,
|
|
627
|
+
columnSortedDescendingIcon: _icons.GridArrowDownwardIcon,
|
|
628
|
+
columnResizeIcon: _icons.GridSeparatorIcon,
|
|
629
|
+
densityCompactIcon: _icons.GridViewHeadlineIcon,
|
|
630
|
+
densityStandardIcon: _icons.GridTableRowsIcon,
|
|
631
|
+
densityComfortableIcon: _icons.GridViewStreamIcon,
|
|
632
|
+
exportIcon: _icons.GridDownloadIcon,
|
|
633
|
+
moreActionsIcon: _icons.GridMoreVertIcon,
|
|
634
|
+
treeDataCollapseIcon: _icons.GridExpandMoreIcon,
|
|
635
|
+
treeDataExpandIcon: _icons.GridKeyboardArrowRight,
|
|
636
|
+
groupingCriteriaCollapseIcon: _icons.GridExpandMoreIcon,
|
|
637
|
+
groupingCriteriaExpandIcon: _icons.GridKeyboardArrowRight,
|
|
638
|
+
detailPanelExpandIcon: _icons.GridAddIcon,
|
|
639
|
+
detailPanelCollapseIcon: _icons.GridRemoveIcon,
|
|
640
|
+
rowReorderIcon: _icons.GridDragIcon,
|
|
641
|
+
quickFilterIcon: _icons.GridSearchIcon,
|
|
642
|
+
quickFilterClearIcon: _icons.GridClearIcon,
|
|
643
|
+
columnMenuHideIcon: _icons.GridVisibilityOffIcon,
|
|
644
|
+
columnMenuSortAscendingIcon: _icons.GridArrowUpwardIcon,
|
|
645
|
+
columnMenuSortDescendingIcon: _icons.GridArrowDownwardIcon,
|
|
646
|
+
columnMenuUnsortIcon: null,
|
|
647
|
+
columnMenuFilterIcon: _icons.GridFilterAltIcon,
|
|
648
|
+
columnMenuManageColumnsIcon: _icons.GridViewColumnIcon,
|
|
649
|
+
columnMenuClearIcon: _icons.GridClearIcon,
|
|
650
|
+
loadIcon: _icons.GridLoadIcon,
|
|
651
|
+
filterPanelAddIcon: _icons.GridAddIcon,
|
|
652
|
+
filterPanelRemoveAllIcon: _icons.GridDeleteForeverIcon,
|
|
653
|
+
columnReorderIcon: _icons.GridDragIcon,
|
|
654
|
+
menuItemCheckIcon: _icons.GridCheckIcon
|
|
655
|
+
};
|
|
656
|
+
const baseSlots = {
|
|
657
|
+
baseAutocomplete: BaseAutocomplete,
|
|
658
|
+
baseBadge: BaseBadge,
|
|
659
|
+
baseCheckbox: BaseCheckbox,
|
|
660
|
+
baseCircularProgress: BaseCircularProgress,
|
|
661
|
+
baseDivider: BaseDivider,
|
|
662
|
+
baseInput: BaseInput,
|
|
663
|
+
baseLinearProgress: BaseLinearProgress,
|
|
664
|
+
baseMenuList: BaseMenuList,
|
|
665
|
+
baseMenuItem: BaseMenuItem,
|
|
666
|
+
baseTextField: BaseTextField,
|
|
667
|
+
baseButton: BaseButton,
|
|
668
|
+
baseIconButton: BaseIconButton,
|
|
669
|
+
baseTooltip: BaseTooltip,
|
|
670
|
+
basePagination: BasePagination,
|
|
671
|
+
basePopper: BasePopper,
|
|
672
|
+
baseSelect: BaseSelect,
|
|
673
|
+
baseSelectOption: BaseSelectOption,
|
|
674
|
+
baseSkeleton: BaseSkeleton,
|
|
675
|
+
baseSwitch: BaseSwitch
|
|
676
|
+
};
|
|
677
|
+
const materialSlots = (0, _extends2.default)({}, baseSlots, iconSlots);
|
|
678
|
+
var _default = exports.default = materialSlots;
|
package/material/variables.js
CHANGED
|
@@ -33,6 +33,7 @@ function transformTheme(t) {
|
|
|
33
33
|
const radius = getRadius(t);
|
|
34
34
|
const fontBody = t.vars?.font?.body2 ?? formatFont(t.typography.body2);
|
|
35
35
|
const fontSmall = t.vars?.font?.caption ?? formatFont(t.typography.caption);
|
|
36
|
+
const fontLarge = t.vars?.font?.body1 ?? formatFont(t.typography.body1);
|
|
36
37
|
const k = _cssVariables.vars.keys;
|
|
37
38
|
return {
|
|
38
39
|
[k.spacingUnit]: t.vars ? t.vars.spacing ?? t.spacing(1) : t.spacing(1),
|
|
@@ -62,6 +63,7 @@ function transformTheme(t) {
|
|
|
62
63
|
[k.typography.fontWeight.bold]: t.typography.fontWeightBold,
|
|
63
64
|
[k.typography.font.body]: fontBody,
|
|
64
65
|
[k.typography.font.small]: fontSmall,
|
|
66
|
+
[k.typography.font.large]: fontLarge,
|
|
65
67
|
[k.transitions.easing.easeIn]: t.transitions.easing.easeIn,
|
|
66
68
|
[k.transitions.easing.easeOut]: t.transitions.easing.easeOut,
|
|
67
69
|
[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;
|
package/models/colDef/index.d.ts
CHANGED
|
@@ -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";
|