@mui/x-data-grid 9.13.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 +325 -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.js +20 -7
- package/components/GridScrollArea.mjs +22 -9
- 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.js +6 -5
- package/components/base/GridOverlays.mjs +7 -6
- package/components/cell/GridActionsCell.js +55 -52
- package/components/cell/GridActionsCell.mjs +58 -55
- package/components/cell/GridActionsCellItem.d.mts +20 -6
- package/components/cell/GridActionsCellItem.d.ts +20 -6
- package/components/cell/GridActionsCellItem.js +30 -8
- package/components/cell/GridActionsCellItem.mjs +32 -10
- package/components/cell/GridBooleanCell.mjs +2 -2
- package/components/cell/GridCell.js +9 -1
- package/components/cell/GridCell.mjs +11 -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.js +7 -2
- package/components/quickFilter/QuickFilter.mjs +9 -4
- 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 +5 -2
- package/components/virtualization/GridVirtualScroller.mjs +6 -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.js +4 -1
- package/hooks/features/columnResize/useGridColumnResize.mjs +5 -2
- 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 +14 -29
- package/hooks/features/dataSource/useGridDataSourceBase.mjs +17 -32
- 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.d.mts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +50 -9
- package/hooks/features/rowSelection/useGridRowSelection.mjs +52 -11
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.mjs +1 -1
- package/hooks/features/rowSelection/utils.js +5 -0
- package/hooks/features/rowSelection/utils.mjs +5 -0
- 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 +6 -6
- 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
|
@@ -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,8 +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
|
-
|
|
34
|
-
|
|
35
|
+
"aria-label": label,
|
|
36
|
+
component: component,
|
|
37
|
+
href: href
|
|
35
38
|
}, other, {
|
|
36
39
|
onClick: handleClick
|
|
37
40
|
}, rootProps.slotProps?.baseIconButton, {
|
|
@@ -46,7 +49,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
46
49
|
icon,
|
|
47
50
|
onClick,
|
|
48
51
|
closeMenuOnClick = true,
|
|
49
|
-
closeMenu
|
|
52
|
+
closeMenu,
|
|
53
|
+
component,
|
|
54
|
+
href
|
|
50
55
|
} = props,
|
|
51
56
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
52
57
|
const handleClick = event => {
|
|
@@ -56,7 +61,9 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
56
61
|
}
|
|
57
62
|
};
|
|
58
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, (0, _extends2.default)({
|
|
59
|
-
ref: ref
|
|
64
|
+
ref: ref,
|
|
65
|
+
component: component ?? (href ? 'a' : undefined),
|
|
66
|
+
href: href
|
|
60
67
|
}, other, {
|
|
61
68
|
onClick: handleClick,
|
|
62
69
|
iconStart: icon,
|
|
@@ -71,12 +78,27 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
|
|
|
71
78
|
// ----------------------------------------------------------------------
|
|
72
79
|
className: _propTypes.default.string,
|
|
73
80
|
/**
|
|
81
|
+
* The component used for the root node.
|
|
82
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
74
83
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
75
84
|
*/
|
|
76
85
|
component: _propTypes.default.elementType,
|
|
77
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,
|
|
78
91
|
icon: _propTypes.default /* @typescript-to-proptypes-ignore */.element,
|
|
79
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,
|
|
80
98
|
showInMenu: _propTypes.default.bool,
|
|
81
|
-
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
|
|
82
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,8 +25,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
23
25
|
};
|
|
24
26
|
return /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
25
27
|
size: "small",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
"aria-label": label,
|
|
29
|
+
component: component,
|
|
30
|
+
href: href
|
|
28
31
|
}, other, {
|
|
29
32
|
onClick: handleClick
|
|
30
33
|
}, rootProps.slotProps?.baseIconButton, {
|
|
@@ -39,7 +42,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
39
42
|
icon,
|
|
40
43
|
onClick,
|
|
41
44
|
closeMenuOnClick = true,
|
|
42
|
-
closeMenu
|
|
45
|
+
closeMenu,
|
|
46
|
+
component,
|
|
47
|
+
href
|
|
43
48
|
} = props,
|
|
44
49
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
45
50
|
const handleClick = event => {
|
|
@@ -49,7 +54,9 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
49
54
|
}
|
|
50
55
|
};
|
|
51
56
|
return /*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, _extends({
|
|
52
|
-
ref: ref
|
|
57
|
+
ref: ref,
|
|
58
|
+
component: component ?? (href ? 'a' : undefined),
|
|
59
|
+
href: href
|
|
53
60
|
}, other, {
|
|
54
61
|
onClick: handleClick,
|
|
55
62
|
iconStart: icon,
|
|
@@ -64,13 +71,28 @@ process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-
|
|
|
64
71
|
// ----------------------------------------------------------------------
|
|
65
72
|
className: PropTypes.string,
|
|
66
73
|
/**
|
|
74
|
+
* The component used for the root node.
|
|
75
|
+
* If not set, and `href` is set, the item renders as an anchor tag.
|
|
67
76
|
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
68
77
|
*/
|
|
69
78
|
component: PropTypes.elementType,
|
|
70
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,
|
|
71
84
|
icon: PropTypes /* @typescript-to-proptypes-ignore */.element,
|
|
72
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,
|
|
73
91
|
showInMenu: PropTypes.bool,
|
|
74
|
-
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
|
|
75
97
|
} : void 0;
|
|
76
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");
|
|
@@ -177,6 +177,10 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
|
|
|
177
177
|
};
|
|
178
178
|
const classes = useUtilityClasses(ownerState);
|
|
179
179
|
const publishMouseUp = React.useCallback(eventName => event => {
|
|
180
|
+
// The row might have been deleted during the click
|
|
181
|
+
if (!apiRef.current.getRow(rowId)) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
180
184
|
const params = apiRef.current.getCellParams(rowId, field || '');
|
|
181
185
|
apiRef.current.publishEvent(eventName, params, event);
|
|
182
186
|
if (onMouseUp) {
|
|
@@ -184,6 +188,10 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
|
|
|
184
188
|
}
|
|
185
189
|
}, [apiRef, field, onMouseUp, rowId]);
|
|
186
190
|
const publishMouseDown = React.useCallback(eventName => event => {
|
|
191
|
+
// The row might have been deleted during the click
|
|
192
|
+
if (!apiRef.current.getRow(rowId)) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
187
195
|
const params = apiRef.current.getCellParams(rowId, field || '');
|
|
188
196
|
apiRef.current.publishEvent(eventName, params, event);
|
|
189
197
|
if (onMouseDown) {
|
|
@@ -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";
|
|
@@ -170,6 +170,10 @@ const GridCell = forwardRef(function GridCell(props, ref) {
|
|
|
170
170
|
};
|
|
171
171
|
const classes = useUtilityClasses(ownerState);
|
|
172
172
|
const publishMouseUp = React.useCallback(eventName => event => {
|
|
173
|
+
// The row might have been deleted during the click
|
|
174
|
+
if (!apiRef.current.getRow(rowId)) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
173
177
|
const params = apiRef.current.getCellParams(rowId, field || '');
|
|
174
178
|
apiRef.current.publishEvent(eventName, params, event);
|
|
175
179
|
if (onMouseUp) {
|
|
@@ -177,6 +181,10 @@ const GridCell = forwardRef(function GridCell(props, ref) {
|
|
|
177
181
|
}
|
|
178
182
|
}, [apiRef, field, onMouseUp, rowId]);
|
|
179
183
|
const publishMouseDown = React.useCallback(eventName => event => {
|
|
184
|
+
// The row might have been deleted during the click
|
|
185
|
+
if (!apiRef.current.getRow(rowId)) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
180
188
|
const params = apiRef.current.getCellParams(rowId, field || '');
|
|
181
189
|
apiRef.current.publishEvent(eventName, params, event);
|
|
182
190
|
if (onMouseDown) {
|
|
@@ -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
|
});
|
|
@@ -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 = ["rowId", "material"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -15,9 +15,7 @@ const GridRowCheckbox = forwardRef(function GridRowCheckbox(props, ref) {
|
|
|
15
15
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
16
16
|
const rootProps = useGridRootProps();
|
|
17
17
|
return /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({}, rootProps.slotProps?.baseCheckbox, other, {
|
|
18
|
-
material:
|
|
19
|
-
disableRipple: props.disabled
|
|
20
|
-
}, material),
|
|
18
|
+
material: material,
|
|
21
19
|
ref: ref
|
|
22
20
|
}));
|
|
23
21
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
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 = ["render", "className", "onClick", "onPointerUp"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
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 = ["className"];
|
|
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 = ["className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|