@mui/x-data-grid 9.14.0 → 9.15.0
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 +176 -0
- package/DataGrid/DataGrid.js +8 -0
- package/DataGrid/DataGrid.mjs +9 -1
- package/DataGrid/useDataGridComponent.js +2 -2
- package/DataGrid/useDataGridComponent.mjs +2 -2
- package/DataGrid/useDataGridProps.mjs +1 -1
- package/colDef/gridActionsColDef.mjs +1 -1
- package/colDef/gridBooleanColDef.mjs +1 -1
- package/colDef/gridCheckboxSelectionColDef.mjs +1 -1
- package/colDef/gridDateColDef.mjs +1 -1
- package/colDef/gridDefaultColumnTypes.mjs +1 -1
- package/colDef/gridLongTextColDef.mjs +1 -1
- package/colDef/gridNumericColDef.mjs +1 -1
- package/colDef/gridSingleSelectColDef.mjs +1 -1
- package/components/GridColumnHeaders.mjs +2 -2
- package/components/GridColumnSortButton.mjs +2 -2
- package/components/GridColumnUnsortedIcon.mjs +2 -2
- package/components/GridFooter.mjs +1 -1
- package/components/GridHeader.mjs +1 -1
- package/components/GridHeaders.mjs +1 -1
- package/components/GridLoadingOverlay.mjs +2 -2
- package/components/GridNoColumnsOverlay.mjs +1 -1
- package/components/GridNoResultsOverlay.mjs +1 -1
- package/components/GridNoRowsOverlay.mjs +1 -1
- package/components/GridPagination.js +9 -1
- package/components/GridPagination.mjs +10 -2
- package/components/GridRow.mjs +2 -2
- package/components/GridRowCount.mjs +2 -2
- package/components/GridRowDragAndDropOverlay.mjs +1 -1
- package/components/GridScrollArea.mjs +1 -1
- package/components/GridSelectedRowCount.mjs +2 -2
- package/components/GridShadowScrollArea.mjs +2 -2
- package/components/GridSkeletonLoadingOverlay.mjs +2 -2
- package/components/base/GridFooterPlaceholder.mjs +1 -1
- package/components/base/GridOverlays.mjs +1 -1
- package/components/cell/GridActionsCell.js +2 -2
- package/components/cell/GridActionsCell.mjs +5 -5
- package/components/cell/GridActionsCellItem.d.mts +20 -6
- package/components/cell/GridActionsCellItem.d.ts +20 -6
- package/components/cell/GridActionsCellItem.js +30 -7
- package/components/cell/GridActionsCellItem.mjs +32 -9
- package/components/cell/GridBooleanCell.mjs +2 -2
- package/components/cell/GridCell.js +1 -1
- package/components/cell/GridCell.mjs +3 -3
- package/components/cell/GridEditBooleanCell.mjs +2 -2
- package/components/cell/GridEditDateCell.mjs +2 -2
- package/components/cell/GridEditInputCell.mjs +2 -2
- package/components/cell/GridEditLongTextCell.mjs +1 -1
- package/components/cell/GridEditSingleSelectCell.mjs +2 -2
- package/components/cell/GridFooterCell.mjs +2 -2
- package/components/cell/GridLongTextCell.mjs +1 -1
- package/components/cell/GridSkeletonCell.mjs +2 -2
- package/components/columnHeaders/ColumnHeaderMenuIcon.mjs +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.mjs +2 -2
- package/components/columnHeaders/GridColumnGroupHeader.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.d.mts +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.mjs +2 -2
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +17 -0
- package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +18 -1
- package/components/columnHeaders/GridColumnHeaderTitle.mjs +2 -2
- package/components/columnHeaders/GridGenericColumnHeaderItem.mjs +2 -2
- package/components/columnHeaders/GridIconButtonContainer.mjs +2 -2
- package/components/columnSelection/GridCellCheckboxRenderer.mjs +2 -2
- package/components/columnSelection/GridHeaderCheckbox.mjs +2 -2
- package/components/columnSelection/GridRowCheckbox.js +1 -3
- package/components/columnSelection/GridRowCheckbox.mjs +3 -5
- package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.mjs +2 -2
- package/components/containers/GridFooterContainer.mjs +2 -2
- package/components/containers/GridOverlay.mjs +2 -2
- package/components/containers/GridRoot.mjs +2 -2
- package/components/containers/GridRootStyles.js +22 -10
- package/components/containers/GridRootStyles.mjs +22 -10
- package/components/containers/GridToolbarContainer.mjs +2 -2
- package/components/export/ExportCsv.mjs +2 -2
- package/components/export/ExportPrint.js +4 -1
- package/components/export/ExportPrint.mjs +6 -3
- package/components/filterPanel/FilterPanelTrigger.mjs +2 -2
- package/components/menu/GridMenu.mjs +2 -2
- package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
- package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
- package/components/menu/columnMenu/GridColumnMenuContainer.mjs +2 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
- package/components/panel/GridColumnsPanel.mjs +1 -1
- package/components/panel/GridPanel.mjs +2 -2
- package/components/panel/GridPanelContent.mjs +2 -2
- package/components/panel/GridPanelContext.mjs +1 -1
- package/components/panel/GridPanelFooter.mjs +2 -2
- package/components/panel/GridPanelHeader.mjs +2 -2
- package/components/panel/GridPanelWrapper.mjs +2 -2
- package/components/panel/GridPreferencesPanel.mjs +1 -1
- package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
- package/components/panel/filterPanel/GridFilterFormBase.mjs +2 -2
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -12
- package/components/panel/filterPanel/GridFilterInputBoolean.mjs +3 -14
- package/components/panel/filterPanel/GridFilterInputDate.mjs +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +2 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -12
- package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -14
- package/components/panel/filterPanel/GridFilterInputValue.mjs +2 -2
- package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
- package/components/panel/filterPanel/GridFilterPanelBase.mjs +2 -2
- package/components/panel/filterPanel/filterPanelUtils.mjs +1 -1
- package/components/quickFilter/QuickFilter.mjs +2 -2
- package/components/quickFilter/QuickFilterClear.js +17 -0
- package/components/quickFilter/QuickFilterClear.mjs +19 -2
- package/components/quickFilter/QuickFilterControl.mjs +2 -2
- package/components/quickFilter/QuickFilterTrigger.mjs +2 -2
- package/components/toolbar/GridToolbar.mjs +2 -2
- package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
- package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
- package/components/toolbar/GridToolbarExport.js +4 -1
- package/components/toolbar/GridToolbarExport.mjs +6 -3
- package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
- package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
- package/components/toolbar/GridToolbarQuickFilter.mjs +2 -2
- package/components/toolbarV8/GridToolbar.mjs +2 -2
- package/components/toolbarV8/Toolbar.mjs +2 -2
- package/components/toolbarV8/ToolbarButton.js +17 -0
- package/components/toolbarV8/ToolbarButton.mjs +19 -2
- package/components/virtualization/GridBottomContainer.mjs +1 -1
- package/components/virtualization/GridMainContainer.mjs +1 -1
- package/components/virtualization/GridTopContainer.mjs +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +2 -2
- package/components/virtualization/GridVirtualScrollbar.mjs +2 -2
- package/components/virtualization/GridVirtualScroller.js +2 -2
- package/components/virtualization/GridVirtualScroller.mjs +3 -3
- package/components/virtualization/GridVirtualScrollerContent.mjs +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.mjs +1 -1
- package/constants/cssVariables.mjs +1 -1
- package/constants/defaultGridSlotsComponents.mjs +1 -1
- package/constants/signature.d.mts +1 -1
- package/constants/signature.d.ts +1 -1
- package/hooks/core/pipeProcessing/useGridPipeProcessing.mjs +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.mjs +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.mjs +2 -2
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.mts +1 -1
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +2 -2
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +2 -2
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.mjs +2 -2
- package/hooks/core/useGridApiInitialization.js +1 -1
- package/hooks/core/useGridApiInitialization.mjs +1 -1
- package/hooks/core/useGridIsRtl.mjs +1 -1
- package/hooks/core/useGridProps.mjs +1 -1
- package/hooks/core/useGridStateInitialization.mjs +1 -1
- package/hooks/core/useGridVirtualizer.d.mts +2 -2
- package/hooks/core/useGridVirtualizer.d.ts +2 -2
- package/hooks/core/useGridVirtualizer.js +6 -6
- package/hooks/core/useGridVirtualizer.mjs +4 -4
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.mjs +2 -2
- package/hooks/features/columnGrouping/useGridColumnGrouping.mjs +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.mjs +1 -1
- package/hooks/features/columnMenu/getColumnMenuItemKeys.mjs +1 -1
- package/hooks/features/columnMenu/useGridColumnMenu.mjs +1 -1
- package/hooks/features/columnMenu/useGridColumnMenuSlots.mjs +2 -2
- package/hooks/features/columnResize/useGridColumnResize.mjs +1 -1
- package/hooks/features/columns/gridColumnsInterfaces.d.mts +1 -1
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.d.mts +1 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.mjs +1 -1
- package/hooks/features/columns/useGridColumns.js +1 -1
- package/hooks/features/columns/useGridColumns.mjs +2 -2
- package/hooks/features/dataSource/cache.js +1 -1
- package/hooks/features/dataSource/cache.mjs +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.js +13 -28
- package/hooks/features/dataSource/useGridDataSourceBase.mjs +16 -31
- package/hooks/features/dataSource/useGridDataSourcePolling.d.mts +29 -0
- package/hooks/features/dataSource/useGridDataSourcePolling.d.ts +29 -0
- package/hooks/features/dataSource/useGridDataSourcePolling.js +62 -0
- package/hooks/features/dataSource/useGridDataSourcePolling.mjs +54 -0
- package/hooks/features/dataSource/utils.d.mts +1 -1
- package/hooks/features/dataSource/utils.d.ts +1 -1
- package/hooks/features/dataSource/utils.mjs +1 -1
- package/hooks/features/density/useGridDensity.mjs +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.mts +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
- package/hooks/features/editing/useGridCellEditing.js +1 -1
- package/hooks/features/editing/useGridCellEditing.mjs +5 -5
- package/hooks/features/editing/useGridEditing.mjs +1 -1
- package/hooks/features/editing/useGridRowEditing.js +1 -1
- package/hooks/features/editing/useGridRowEditing.mjs +5 -5
- package/hooks/features/export/serializers/csvSerializer.js +5 -5
- package/hooks/features/export/serializers/csvSerializer.mjs +5 -5
- package/hooks/features/export/useGridPrintExport.js +44 -20
- package/hooks/features/export/useGridPrintExport.mjs +45 -21
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/gridFilterUtils.mjs +5 -5
- package/hooks/features/filter/useGridFilter.js +2 -2
- package/hooks/features/filter/useGridFilter.mjs +3 -3
- package/hooks/features/focus/useGridFocus.mjs +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.mjs +1 -1
- package/hooks/features/listView/useGridListView.d.mts +2 -2
- package/hooks/features/listView/useGridListView.d.ts +2 -2
- package/hooks/features/listView/useGridListView.js +1 -1
- package/hooks/features/listView/useGridListView.mjs +2 -2
- package/hooks/features/pagination/useGridPagination.mjs +1 -1
- package/hooks/features/pagination/useGridPaginationMeta.mjs +1 -1
- package/hooks/features/pagination/useGridPaginationModel.mjs +1 -1
- package/hooks/features/pagination/useGridRowCount.js +2 -2
- package/hooks/features/pagination/useGridRowCount.mjs +2 -2
- package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.mts +1 -1
- package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.mjs +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.mjs +1 -1
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.mjs +1 -1
- package/hooks/features/rows/gridRowsUtils.js +2 -2
- package/hooks/features/rows/gridRowsUtils.mjs +3 -3
- package/hooks/features/rows/useGridRowSpanning.mjs +1 -1
- package/hooks/features/rows/useGridRows.mjs +1 -1
- package/hooks/features/rows/useGridRowsMeta.mjs +1 -1
- package/hooks/features/rows/useGridRowsOverridableMethods.mjs +1 -1
- package/hooks/features/rows/useGridRowsPreProcessors.mjs +1 -1
- package/hooks/features/sorting/gridSortingUtils.js +1 -1
- package/hooks/features/sorting/gridSortingUtils.mjs +3 -3
- package/hooks/features/sorting/useGridSorting.js +2 -2
- package/hooks/features/sorting/useGridSorting.mjs +3 -3
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.mjs +1 -1
- package/hooks/features/virtualization/useGridVirtualization.mjs +1 -1
- package/hooks/utils/index.d.mts +1 -1
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/index.js +8 -12
- package/hooks/utils/index.mjs +2 -1
- package/hooks/utils/useGridSelector.js +2 -2
- package/hooks/utils/useGridSelector.mjs +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/constants.d.mts +1 -1
- package/internals/constants.d.ts +1 -1
- package/internals/index.d.mts +1 -0
- package/internals/index.d.ts +1 -0
- package/internals/index.js +8 -0
- package/internals/index.mjs +1 -0
- package/internals/utils/cache.d.mts +0 -1
- package/internals/utils/cache.d.ts +0 -1
- package/internals/utils/cache.js +1 -3
- package/internals/utils/cache.mjs +1 -3
- package/internals/utils/computeSlots.mjs +1 -1
- package/internals/utils/propValidation.js +2 -2
- package/internals/utils/propValidation.mjs +3 -3
- package/material/index.mjs +2 -2
- package/models/api/gridCoreApi.d.mts +1 -1
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/api/gridEditingApi.d.mts +6 -6
- package/models/api/gridEditingApi.d.ts +6 -6
- package/models/api/gridPrintExportApi.d.mts +2 -1
- package/models/api/gridPrintExportApi.d.ts +2 -1
- package/models/events/gridEventLookup.d.mts +5 -5
- package/models/events/gridEventLookup.d.ts +5 -5
- package/models/gridBaseSlots.d.mts +18 -1
- package/models/gridBaseSlots.d.ts +18 -1
- package/models/gridEditRowModel.d.mts +3 -3
- package/models/gridEditRowModel.d.ts +3 -3
- package/models/gridExport.d.mts +13 -0
- package/models/gridExport.d.ts +13 -0
- package/models/gridFilterItem.d.mts +2 -2
- package/models/gridFilterItem.d.ts +2 -2
- package/models/index.d.mts +2 -1
- package/models/index.d.ts +2 -1
- package/models/params/gridEditCellParams.d.mts +2 -2
- package/models/params/gridEditCellParams.d.ts +2 -2
- package/models/params/gridRowParams.d.mts +2 -2
- package/models/params/gridRowParams.d.ts +2 -2
- package/models/props/DataGridProps.d.mts +8 -0
- package/models/props/DataGridProps.d.ts +8 -0
- package/package.json +5 -5
- package/utils/createSelector.d.mts +1 -1
- package/utils/createSelector.d.ts +1 -1
- package/utils/createSelector.js +1 -1
- package/utils/createSelector.mjs +1 -1
- package/hooks/utils/useFirstRender.d.mts +0 -1
- package/hooks/utils/useFirstRender.d.ts +0 -1
- package/hooks/utils/useFirstRender.js +0 -16
- package/hooks/utils/useFirstRender.mjs +0 -1
|
@@ -2,14 +2,18 @@ import * as React from 'react';
|
|
|
2
2
|
import type { GridSlotProps, GridBaseIconProps } from "../../models/gridSlotsComponentsProps.mjs";
|
|
3
3
|
interface GridActionsCellItemCommonProps {
|
|
4
4
|
icon?: React.JSXElementConstructor<GridBaseIconProps> | React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The component used for the root node.
|
|
7
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
8
|
+
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
9
|
+
*/
|
|
6
10
|
component?: React.ElementType;
|
|
7
11
|
}
|
|
8
|
-
export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (
|
|
12
|
+
export type GridActionsCellItemProps = GridActionsCellItemCommonProps & ({
|
|
9
13
|
showInMenu?: false;
|
|
10
14
|
icon: React.ReactElement<any>;
|
|
11
15
|
label: string;
|
|
12
|
-
} & Omit<GridSlotProps['baseIconButton'], 'component'>
|
|
16
|
+
} & Omit<GridSlotProps['baseIconButton'], 'component'> | {
|
|
13
17
|
showInMenu: true;
|
|
14
18
|
/**
|
|
15
19
|
* If false, the menu will not close when this item is clicked.
|
|
@@ -18,7 +22,7 @@ export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (({
|
|
|
18
22
|
closeMenuOnClick?: boolean;
|
|
19
23
|
closeMenu?: () => void;
|
|
20
24
|
label: React.ReactNode;
|
|
21
|
-
} & Omit<GridSlotProps['baseMenuItem'], 'component'>)
|
|
25
|
+
} & Omit<GridSlotProps['baseMenuItem'], 'component'>);
|
|
22
26
|
declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<(Omit<GridActionsCellItemCommonProps & {
|
|
23
27
|
showInMenu?: false;
|
|
24
28
|
icon: React.ReactElement<any>;
|
|
@@ -27,7 +31,12 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
27
31
|
label?: string;
|
|
28
32
|
color?: 'default' | 'inherit' | 'primary';
|
|
29
33
|
edge?: 'start' | 'end' | false;
|
|
30
|
-
} &
|
|
34
|
+
} & {
|
|
35
|
+
component?: React.ElementType;
|
|
36
|
+
href?: string;
|
|
37
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
38
|
+
rel?: string;
|
|
39
|
+
} & import("@mui/x-data-grid").BaseIconButtonPropsOverrides, "component">, "ref"> | GridActionsCellItemCommonProps & {
|
|
31
40
|
showInMenu: true;
|
|
32
41
|
/**
|
|
33
42
|
* If false, the menu will not close when this item is clicked.
|
|
@@ -51,5 +60,10 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
51
60
|
selected?: boolean;
|
|
52
61
|
value?: number | string | readonly string[];
|
|
53
62
|
style?: React.CSSProperties;
|
|
54
|
-
} &
|
|
63
|
+
} & {
|
|
64
|
+
component?: React.ElementType;
|
|
65
|
+
href?: string;
|
|
66
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
67
|
+
rel?: string;
|
|
68
|
+
} & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) & React.RefAttributes<HTMLElement>>;
|
|
55
69
|
export { GridActionsCellItem };
|
|
@@ -2,14 +2,18 @@ import * as React from 'react';
|
|
|
2
2
|
import type { GridSlotProps, GridBaseIconProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
interface GridActionsCellItemCommonProps {
|
|
4
4
|
icon?: React.JSXElementConstructor<GridBaseIconProps> | React.ReactNode;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* The component used for the root node.
|
|
7
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
8
|
+
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
9
|
+
*/
|
|
6
10
|
component?: React.ElementType;
|
|
7
11
|
}
|
|
8
|
-
export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (
|
|
12
|
+
export type GridActionsCellItemProps = GridActionsCellItemCommonProps & ({
|
|
9
13
|
showInMenu?: false;
|
|
10
14
|
icon: React.ReactElement<any>;
|
|
11
15
|
label: string;
|
|
12
|
-
} & Omit<GridSlotProps['baseIconButton'], 'component'>
|
|
16
|
+
} & Omit<GridSlotProps['baseIconButton'], 'component'> | {
|
|
13
17
|
showInMenu: true;
|
|
14
18
|
/**
|
|
15
19
|
* If false, the menu will not close when this item is clicked.
|
|
@@ -18,7 +22,7 @@ export type GridActionsCellItemProps = GridActionsCellItemCommonProps & (({
|
|
|
18
22
|
closeMenuOnClick?: boolean;
|
|
19
23
|
closeMenu?: () => void;
|
|
20
24
|
label: React.ReactNode;
|
|
21
|
-
} & Omit<GridSlotProps['baseMenuItem'], 'component'>)
|
|
25
|
+
} & Omit<GridSlotProps['baseMenuItem'], 'component'>);
|
|
22
26
|
declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCellItemProps> | React.ForwardRefExoticComponent<(Omit<GridActionsCellItemCommonProps & {
|
|
23
27
|
showInMenu?: false;
|
|
24
28
|
icon: React.ReactElement<any>;
|
|
@@ -27,7 +31,12 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
27
31
|
label?: string;
|
|
28
32
|
color?: 'default' | 'inherit' | 'primary';
|
|
29
33
|
edge?: 'start' | 'end' | false;
|
|
30
|
-
} &
|
|
34
|
+
} & {
|
|
35
|
+
component?: React.ElementType;
|
|
36
|
+
href?: string;
|
|
37
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
38
|
+
rel?: string;
|
|
39
|
+
} & import("@mui/x-data-grid").BaseIconButtonPropsOverrides, "component">, "ref"> | GridActionsCellItemCommonProps & {
|
|
31
40
|
showInMenu: true;
|
|
32
41
|
/**
|
|
33
42
|
* If false, the menu will not close when this item is clicked.
|
|
@@ -51,5 +60,10 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
51
60
|
selected?: boolean;
|
|
52
61
|
value?: number | string | readonly string[];
|
|
53
62
|
style?: React.CSSProperties;
|
|
54
|
-
} &
|
|
63
|
+
} & {
|
|
64
|
+
component?: React.ElementType;
|
|
65
|
+
href?: string;
|
|
66
|
+
target?: React.HTMLAttributeAnchorTarget;
|
|
67
|
+
rel?: string;
|
|
68
|
+
} & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) & React.RefAttributes<HTMLElement>>;
|
|
55
69
|
export { GridActionsCellItem };
|
|
@@ -14,15 +14,17 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
15
15
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
const _excluded = ["label", "icon", "showInMenu", "onClick"],
|
|
18
|
-
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
17
|
+
const _excluded = ["label", "icon", "showInMenu", "onClick", "component", "href"],
|
|
18
|
+
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu", "component", "href"];
|
|
19
19
|
const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwardRef)((props, ref) => {
|
|
20
20
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
21
21
|
if (!props.showInMenu) {
|
|
22
22
|
const {
|
|
23
23
|
label,
|
|
24
24
|
icon,
|
|
25
|
-
onClick
|
|
25
|
+
onClick,
|
|
26
|
+
component,
|
|
27
|
+
href
|
|
26
28
|
} = props,
|
|
27
29
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
28
30
|
const handleClick = event => {
|
|
@@ -30,7 +32,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
30
32
|
};
|
|
31
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
32
34
|
size: "small",
|
|
33
|
-
"aria-label": label
|
|
35
|
+
"aria-label": label,
|
|
36
|
+
component: component,
|
|
37
|
+
href: href
|
|
34
38
|
}, other, {
|
|
35
39
|
onClick: handleClick
|
|
36
40
|
}, rootProps.slotProps?.baseIconButton, {
|
|
@@ -45,7 +49,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
45
49
|
icon,
|
|
46
50
|
onClick,
|
|
47
51
|
closeMenuOnClick = true,
|
|
48
|
-
closeMenu
|
|
52
|
+
closeMenu,
|
|
53
|
+
component,
|
|
54
|
+
href
|
|
49
55
|
} = props,
|
|
50
56
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
51
57
|
const handleClick = event => {
|
|
@@ -55,7 +61,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
55
61
|
}
|
|
56
62
|
};
|
|
57
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, (0, _extends2.default)({
|
|
58
|
-
ref: ref
|
|
64
|
+
ref: ref,
|
|
65
|
+
component: component ?? (href ? 'a' : undefined),
|
|
66
|
+
href: href
|
|
59
67
|
}, other, {
|
|
60
68
|
onClick: handleClick,
|
|
61
69
|
iconStart: icon,
|
|
@@ -70,12 +78,27 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
|
|
|
70
78
|
// ----------------------------------------------------------------------
|
|
71
79
|
className: _propTypes.default.string,
|
|
72
80
|
/**
|
|
81
|
+
* The component used for the root node.
|
|
82
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
73
83
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
74
84
|
*/
|
|
75
85
|
component: _propTypes.default.elementType,
|
|
76
86
|
disabled: _propTypes.default.bool,
|
|
87
|
+
/**
|
|
88
|
+
* The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
|
|
89
|
+
*/
|
|
90
|
+
href: _propTypes.default.string,
|
|
77
91
|
icon: _propTypes.default /* @typescript-to-proptypes-ignore */.element,
|
|
78
92
|
label: _propTypes.default.node,
|
|
93
|
+
/**
|
|
94
|
+
* The relationship of the linked URL.
|
|
95
|
+
* Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
|
|
96
|
+
*/
|
|
97
|
+
rel: _propTypes.default.string,
|
|
79
98
|
showInMenu: _propTypes.default.bool,
|
|
80
|
-
style: _propTypes.default.object
|
|
99
|
+
style: _propTypes.default.object,
|
|
100
|
+
/**
|
|
101
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
102
|
+
*/
|
|
103
|
+
target: _propTypes.default.string
|
|
81
104
|
} : void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
5
|
-
const _excluded = ["label", "icon", "showInMenu", "onClick"],
|
|
6
|
-
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["label", "icon", "showInMenu", "onClick", "component", "href"],
|
|
6
|
+
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu", "component", "href"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
@@ -15,7 +15,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
15
15
|
const {
|
|
16
16
|
label,
|
|
17
17
|
icon,
|
|
18
|
-
onClick
|
|
18
|
+
onClick,
|
|
19
|
+
component,
|
|
20
|
+
href
|
|
19
21
|
} = props,
|
|
20
22
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
21
23
|
const handleClick = event => {
|
|
@@ -23,7 +25,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
23
25
|
};
|
|
24
26
|
return /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
25
27
|
size: "small",
|
|
26
|
-
"aria-label": label
|
|
28
|
+
"aria-label": label,
|
|
29
|
+
component: component,
|
|
30
|
+
href: href
|
|
27
31
|
}, other, {
|
|
28
32
|
onClick: handleClick
|
|
29
33
|
}, rootProps.slotProps?.baseIconButton, {
|
|
@@ -38,7 +42,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
38
42
|
icon,
|
|
39
43
|
onClick,
|
|
40
44
|
closeMenuOnClick = true,
|
|
41
|
-
closeMenu
|
|
45
|
+
closeMenu,
|
|
46
|
+
component,
|
|
47
|
+
href
|
|
42
48
|
} = props,
|
|
43
49
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
44
50
|
const handleClick = event => {
|
|
@@ -48,7 +54,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
48
54
|
}
|
|
49
55
|
};
|
|
50
56
|
return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({
|
|
51
|
-
ref: ref
|
|
57
|
+
ref: ref,
|
|
58
|
+
component: component ?? (href ? 'a' : undefined),
|
|
59
|
+
href: href
|
|
52
60
|
}, other, {
|
|
53
61
|
onClick: handleClick,
|
|
54
62
|
iconStart: icon,
|
|
@@ -63,13 +71,28 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
|
|
|
63
71
|
// ----------------------------------------------------------------------
|
|
64
72
|
className: PropTypes.string,
|
|
65
73
|
/**
|
|
74
|
+
* The component used for the root node.
|
|
75
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
66
76
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
67
77
|
*/
|
|
68
78
|
component: PropTypes.elementType,
|
|
69
79
|
disabled: PropTypes.bool,
|
|
80
|
+
/**
|
|
81
|
+
* The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
|
|
82
|
+
*/
|
|
83
|
+
href: PropTypes.string,
|
|
70
84
|
icon: PropTypes /* @typescript-to-proptypes-ignore */.element,
|
|
71
85
|
label: PropTypes.node,
|
|
86
|
+
/**
|
|
87
|
+
* The relationship of the linked URL.
|
|
88
|
+
* Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
|
|
89
|
+
*/
|
|
90
|
+
rel: PropTypes.string,
|
|
72
91
|
showInMenu: PropTypes.bool,
|
|
73
|
-
style: PropTypes.object
|
|
92
|
+
style: PropTypes.object,
|
|
93
|
+
/**
|
|
94
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
95
|
+
*/
|
|
96
|
+
target: PropTypes.string
|
|
74
97
|
} : void 0;
|
|
75
98
|
export { GridActionsCellItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "hasFocus", "tabIndex", "hideDescendantCount"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -19,7 +19,7 @@ var _capitalize = _interopRequireDefault(require("@mui/utils/capitalize"));
|
|
|
19
19
|
var _fastMemo = require("@mui/x-internals/fastMemo");
|
|
20
20
|
var _RtlProvider = require("@mui/system/RtlProvider");
|
|
21
21
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
22
|
-
var _store = require("@
|
|
22
|
+
var _store = require("@base-ui/utils/store");
|
|
23
23
|
var _xVirtualizer = require("@mui/x-virtualizer");
|
|
24
24
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
25
25
|
var _focusElement = require("../../utils/focusElement");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["column", "row", "rowId", "rowNode", "align", "children", "colIndex", "width", "className", "style", "colSpan", "disableDragEvents", "isNotVisible", "pinnedOffset", "pinnedPosition", "showRightBorder", "showLeftBorder", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
6
6
|
_excluded2 = ["changeReason", "unstable_updateValueOnRender"];
|
|
7
7
|
import * as React from 'react';
|
|
@@ -14,7 +14,7 @@ import capitalize from '@mui/utils/capitalize';
|
|
|
14
14
|
import { fastMemo } from '@mui/x-internals/fastMemo';
|
|
15
15
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
16
16
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
17
|
-
import { useStore } from '@
|
|
17
|
+
import { useStore } from '@base-ui/utils/store';
|
|
18
18
|
import { Rowspan } from '@mui/x-virtualizer';
|
|
19
19
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
20
20
|
import { focusElement } from "../../utils/focusElement.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "inputProps", "isValidating", "isProcessingProps", "onValueChange", "slotProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "hasFocus", "isValidating", "debounceMs", "isProcessingProps", "onValueChange", "slotProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "tabIndex", "className", "hasFocus", "isValidating", "isProcessingProps", "error", "onValueChange", "initialOpen", "slotProps"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["formattedValue", "colDef", "cellMode", "row", "api", "id", "value", "rowNode", "field", "hasFocus", "tabIndex", "isEditable"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["field", "type", "align", "width", "height", "empty", "style", "className", "skeletonProps"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
6
|
import { useGridApiContext } from "../../hooks/utils/useGridApiContext.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["resizable", "resizing", "height", "side"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -28,18 +28,35 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /*
|
|
|
28
28
|
// ----------------------------------------------------------------------
|
|
29
29
|
className: _propTypes.default.string,
|
|
30
30
|
color: _propTypes.default.oneOf(['default', 'inherit', 'primary']),
|
|
31
|
+
/**
|
|
32
|
+
* The component used for the root node. Either a string to use an HTML element or a component.
|
|
33
|
+
*/
|
|
34
|
+
component: _propTypes.default.elementType,
|
|
31
35
|
direction: _propTypes.default.oneOf(['asc', 'desc']),
|
|
32
36
|
disabled: _propTypes.default.bool,
|
|
33
37
|
edge: _propTypes.default.oneOf(['end', 'start', false]),
|
|
34
38
|
field: _propTypes.default.string.isRequired,
|
|
39
|
+
/**
|
|
40
|
+
* The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
|
|
41
|
+
*/
|
|
42
|
+
href: _propTypes.default.string,
|
|
35
43
|
id: _propTypes.default.string,
|
|
36
44
|
index: _propTypes.default.number,
|
|
37
45
|
label: _propTypes.default.string,
|
|
46
|
+
/**
|
|
47
|
+
* The relationship of the linked URL.
|
|
48
|
+
* Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
|
|
49
|
+
*/
|
|
50
|
+
rel: _propTypes.default.string,
|
|
38
51
|
role: _propTypes.default.string,
|
|
39
52
|
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
40
53
|
sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])).isRequired,
|
|
41
54
|
style: _propTypes.default.object,
|
|
42
55
|
tabIndex: _propTypes.default.number,
|
|
56
|
+
/**
|
|
57
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
58
|
+
*/
|
|
59
|
+
target: _propTypes.default.string,
|
|
43
60
|
title: _propTypes.default.string,
|
|
44
61
|
touchRippleRef: _propTypes.default.any
|
|
45
62
|
} : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { GridIconButtonContainer } from "./GridIconButtonContainer.mjs";
|
|
@@ -20,18 +20,35 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaderSortIconRaw.propTypes /*
|
|
|
20
20
|
// ----------------------------------------------------------------------
|
|
21
21
|
className: PropTypes.string,
|
|
22
22
|
color: PropTypes.oneOf(['default', 'inherit', 'primary']),
|
|
23
|
+
/**
|
|
24
|
+
* The component used for the root node. Either a string to use an HTML element or a component.
|
|
25
|
+
*/
|
|
26
|
+
component: PropTypes.elementType,
|
|
23
27
|
direction: PropTypes.oneOf(['asc', 'desc']),
|
|
24
28
|
disabled: PropTypes.bool,
|
|
25
29
|
edge: PropTypes.oneOf(['end', 'start', false]),
|
|
26
30
|
field: PropTypes.string.isRequired,
|
|
31
|
+
/**
|
|
32
|
+
* The URL to link to. If set, and `component` is not set, the component renders as an anchor tag.
|
|
33
|
+
*/
|
|
34
|
+
href: PropTypes.string,
|
|
27
35
|
id: PropTypes.string,
|
|
28
36
|
index: PropTypes.number,
|
|
29
37
|
label: PropTypes.string,
|
|
38
|
+
/**
|
|
39
|
+
* The relationship of the linked URL.
|
|
40
|
+
* Set it to `noopener noreferrer` when `target` is set to `_blank` to avoid a security issue.
|
|
41
|
+
*/
|
|
42
|
+
rel: PropTypes.string,
|
|
30
43
|
role: PropTypes.string,
|
|
31
44
|
size: PropTypes.oneOf(['large', 'medium', 'small']),
|
|
32
45
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])).isRequired,
|
|
33
46
|
style: PropTypes.object,
|
|
34
47
|
tabIndex: PropTypes.number,
|
|
48
|
+
/**
|
|
49
|
+
* Where to display the linked URL, as the name for a browsing context.
|
|
50
|
+
*/
|
|
51
|
+
target: PropTypes.string,
|
|
35
52
|
title: PropTypes.string,
|
|
36
53
|
touchRippleRef: PropTypes.any
|
|
37
54
|
} : void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className", "aria-label"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["classes", "columnMenuOpen", "colIndex", "height", "isResizing", "sortDirection", "hasFocus", "tabIndex", "separatorSide", "isDraggable", "headerComponent", "description", "elementId", "width", "columnMenuIconButton", "columnMenu", "columnTitleIconButtons", "adornment", "headerClassName", "label", "resizable", "draggableContainerProps", "columnHeaderSeparatorProps", "style"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["field", "id", "formattedValue", "row", "rowNode", "colDef", "isEditable", "cellMode", "hasFocus", "tabIndex", "api"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["field", "colDef"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -22,9 +22,7 @@ const GridRowCheckbox = exports.GridRowCheckbox = (0, _forwardRef.forwardRef)(fu
|
|
|
22
22
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
23
23
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseCheckbox, (0, _extends2.default)({}, rootProps.slotProps?.baseCheckbox, other, {
|
|
25
|
-
material:
|
|
26
|
-
disableRipple: props.disabled
|
|
27
|
-
}, material),
|
|
25
|
+
material: material,
|
|
28
26
|
ref: ref
|
|
29
27
|
}));
|
|
30
28
|
});
|