@mui/x-data-grid 9.5.0 → 9.7.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 +261 -0
- package/DataGrid/DataGrid.js +75 -14
- package/DataGrid/DataGrid.mjs +75 -14
- package/colDef/gridDateOperators.d.mts +1 -1
- package/colDef/gridDateOperators.d.ts +1 -1
- package/components/GridColumnHeaders.d.mts +1 -1
- package/components/GridColumnHeaders.d.ts +1 -1
- package/components/GridColumnHeaders.js +1 -1
- package/components/GridColumnHeaders.mjs +1 -1
- package/components/GridColumnUnsortedIcon.js +1 -1
- package/components/GridColumnUnsortedIcon.mjs +1 -1
- package/components/GridFooter.d.mts +1 -1
- package/components/GridFooter.d.ts +1 -1
- package/components/GridFooter.js +1 -1
- package/components/GridFooter.mjs +1 -1
- package/components/GridLoadingOverlay.d.mts +1 -1
- package/components/GridLoadingOverlay.d.ts +1 -1
- package/components/GridLoadingOverlay.js +1 -1
- package/components/GridLoadingOverlay.mjs +1 -1
- package/components/GridNoColumnsOverlay.d.mts +1 -1
- package/components/GridNoColumnsOverlay.d.ts +1 -1
- package/components/GridNoColumnsOverlay.js +1 -1
- package/components/GridNoColumnsOverlay.mjs +1 -1
- package/components/GridNoResultsOverlay.d.mts +1 -1
- package/components/GridNoResultsOverlay.d.ts +1 -1
- package/components/GridNoRowsOverlay.d.mts +1 -1
- package/components/GridNoRowsOverlay.d.ts +1 -1
- package/components/GridNoRowsOverlay.js +1 -1
- package/components/GridNoRowsOverlay.mjs +1 -1
- package/components/GridRow.js +1 -1
- package/components/GridRow.mjs +1 -1
- package/components/GridRowCount.d.mts +1 -1
- package/components/GridRowCount.d.ts +1 -1
- package/components/GridRowCount.js +1 -1
- package/components/GridRowCount.mjs +1 -1
- package/components/GridRowDragAndDropOverlay.d.mts +1 -1
- package/components/GridRowDragAndDropOverlay.d.ts +1 -1
- package/components/GridSelectedRowCount.d.mts +1 -1
- package/components/GridSelectedRowCount.d.ts +1 -1
- package/components/GridSelectedRowCount.js +1 -1
- package/components/GridSelectedRowCount.mjs +1 -1
- package/components/GridShadowScrollArea.js +1 -1
- package/components/GridShadowScrollArea.mjs +1 -1
- package/components/cell/GridActionsCell.d.mts +1 -1
- package/components/cell/GridActionsCell.d.ts +1 -1
- package/components/cell/GridActionsCell.js +83 -3
- package/components/cell/GridActionsCell.mjs +83 -3
- package/components/cell/GridActionsCellItem.js +75 -1
- package/components/cell/GridActionsCellItem.mjs +74 -0
- package/components/cell/GridBooleanCell.js +1 -1
- package/components/cell/GridBooleanCell.mjs +1 -1
- package/components/cell/GridCell.d.mts +1 -1
- package/components/cell/GridCell.d.ts +1 -1
- package/components/cell/GridCell.js +3 -11
- package/components/cell/GridCell.mjs +3 -11
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditBooleanCell.mjs +1 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditDateCell.mjs +1 -1
- package/components/cell/GridEditInputCell.js +68 -0
- package/components/cell/GridEditInputCell.mjs +68 -0
- package/components/cell/GridEditLongTextCell.d.mts +3 -0
- package/components/cell/GridEditLongTextCell.d.ts +3 -0
- package/components/cell/GridEditLongTextCell.js +141 -0
- package/components/cell/GridEditLongTextCell.mjs +141 -0
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.mjs +1 -1
- package/components/cell/GridFooterCell.d.mts +1 -1
- package/components/cell/GridFooterCell.d.ts +1 -1
- package/components/cell/GridLongTextCell.d.mts +3 -0
- package/components/cell/GridLongTextCell.d.ts +3 -0
- package/components/cell/GridLongTextCell.js +66 -0
- package/components/cell/GridLongTextCell.mjs +66 -0
- package/components/cell/GridSkeletonCell.js +3 -2
- package/components/cell/GridSkeletonCell.mjs +3 -2
- package/components/columnHeaders/GridBaseColumnHeaders.d.mts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.js +2 -10
- package/components/columnHeaders/GridColumnGroupHeader.mjs +2 -10
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
- package/components/columnHeaders/GridColumnHeaderItem.js +3 -11
- package/components/columnHeaders/GridColumnHeaderItem.mjs +3 -11
- package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
- package/components/columnSelection/GridRowCheckbox.js +1 -1
- package/components/columnSelection/GridRowCheckbox.mjs +1 -1
- package/components/columnsManagement/GridColumnsManagement.js +1 -1
- package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.mts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.js +3 -3
- package/components/columnsPanel/ColumnsPanelTrigger.mjs +3 -3
- package/components/containers/GridFooterContainer.d.mts +1 -1
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +1 -1
- package/components/containers/GridFooterContainer.mjs +1 -1
- package/components/containers/GridOverlay.d.mts +1 -1
- package/components/containers/GridOverlay.d.ts +1 -1
- package/components/containers/GridOverlay.js +1 -1
- package/components/containers/GridOverlay.mjs +1 -1
- package/components/containers/GridRoot.js +1 -1
- package/components/containers/GridRoot.mjs +1 -1
- package/components/containers/GridRootStyles.js +3 -2
- package/components/containers/GridRootStyles.mjs +3 -2
- package/components/containers/GridToolbarContainer.d.mts +1 -1
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/containers/GridToolbarContainer.js +1 -1
- package/components/containers/GridToolbarContainer.mjs +1 -1
- package/components/export/ExportCsv.d.mts +1 -1
- package/components/export/ExportCsv.d.ts +1 -1
- package/components/export/ExportCsv.js +1 -1
- package/components/export/ExportCsv.mjs +1 -1
- package/components/export/ExportPrint.d.mts +1 -1
- package/components/export/ExportPrint.d.ts +1 -1
- package/components/export/ExportPrint.js +1 -1
- package/components/export/ExportPrint.mjs +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.mts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.js +3 -3
- package/components/filterPanel/FilterPanelTrigger.mjs +3 -3
- package/components/menu/GridMenu.js +1 -1
- package/components/menu/GridMenu.mjs +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
- package/components/menu/columnMenu/GridColumnMenu.js +2 -2
- package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
- package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
- package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
- package/components/panel/GridColumnsPanel.d.mts +1 -1
- package/components/panel/GridColumnsPanel.d.ts +1 -1
- package/components/panel/GridPanel.js +1 -1
- package/components/panel/GridPanel.mjs +1 -1
- package/components/panel/GridPanelContent.d.mts +1 -1
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelContent.js +1 -1
- package/components/panel/GridPanelContent.mjs +1 -1
- package/components/panel/GridPanelContext.d.mts +9 -3
- package/components/panel/GridPanelContext.d.ts +9 -3
- package/components/panel/GridPanelContext.js +40 -7
- package/components/panel/GridPanelContext.mjs +40 -7
- package/components/panel/GridPanelFooter.d.mts +1 -1
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelFooter.js +1 -1
- package/components/panel/GridPanelFooter.mjs +1 -1
- package/components/panel/GridPanelHeader.d.mts +1 -1
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPanelHeader.js +1 -1
- package/components/panel/GridPanelHeader.mjs +1 -1
- package/components/panel/GridPanelWrapper.d.mts +1 -1
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +4 -6
- package/components/panel/GridPreferencesPanel.mjs +4 -6
- package/components/panel/filterPanel/GridFilterForm.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterForm.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterForm.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +1 -1
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
- package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
- package/components/panel/filterPanel/GridFilterPanel.d.mts +2 -2
- package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
- package/components/quickFilter/QuickFilter.d.mts +2 -2
- package/components/quickFilter/QuickFilter.d.ts +2 -2
- package/components/quickFilter/QuickFilter.js +1 -1
- package/components/quickFilter/QuickFilter.mjs +1 -1
- package/components/quickFilter/QuickFilterClear.d.mts +2 -2
- package/components/quickFilter/QuickFilterClear.d.ts +2 -2
- package/components/quickFilter/QuickFilterClear.js +1 -1
- package/components/quickFilter/QuickFilterClear.mjs +1 -1
- package/components/quickFilter/QuickFilterControl.d.mts +2 -2
- package/components/quickFilter/QuickFilterControl.d.ts +2 -2
- package/components/quickFilter/QuickFilterControl.js +1 -1
- package/components/quickFilter/QuickFilterControl.mjs +1 -1
- package/components/quickFilter/QuickFilterTrigger.d.mts +2 -2
- package/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
- package/components/quickFilter/QuickFilterTrigger.js +1 -1
- package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
- package/components/toolbar/GridToolbar.d.mts +3 -3
- package/components/toolbar/GridToolbar.d.ts +3 -3
- package/components/toolbar/GridToolbar.js +1 -1
- package/components/toolbar/GridToolbar.mjs +1 -1
- package/components/toolbar/GridToolbarColumnsButton.js +3 -3
- package/components/toolbar/GridToolbarColumnsButton.mjs +3 -3
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
- package/components/toolbar/GridToolbarExport.js +3 -3
- package/components/toolbar/GridToolbarExport.mjs +3 -3
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +3 -3
- package/components/toolbar/GridToolbarFilterButton.mjs +3 -3
- package/components/toolbar/GridToolbarQuickFilter.js +1 -1
- package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
- package/components/toolbarV8/GridToolbar.js +8 -3
- package/components/toolbarV8/GridToolbar.mjs +8 -3
- package/components/toolbarV8/Toolbar.d.mts +1 -1
- package/components/toolbarV8/Toolbar.d.ts +1 -1
- package/components/toolbarV8/Toolbar.js +1 -1
- package/components/toolbarV8/Toolbar.mjs +1 -1
- package/components/toolbarV8/ToolbarButton.d.mts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.js +1 -1
- package/components/toolbarV8/ToolbarButton.mjs +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +8 -1
- package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
- package/components/virtualization/GridVirtualScroller.js +12 -0
- package/components/virtualization/GridVirtualScroller.mjs +12 -0
- package/components/virtualization/GridVirtualScrollerContent.d.mts +1 -1
- package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.mts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +7 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +7 -1
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.mts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +2 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +2 -1
- package/hooks/features/columnResize/useGridColumnResize.js +56 -2
- package/hooks/features/columnResize/useGridColumnResize.mjs +57 -3
- package/hooks/features/columns/gridColumnsSelector.d.mts +1 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
- package/hooks/features/editing/gridEditingSelectors.d.mts +1 -1
- package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
- package/hooks/features/editing/gridEditingSelectors.mjs +0 -1
- package/hooks/features/editing/utils.d.mts +1 -1
- package/hooks/features/editing/utils.d.ts +1 -1
- package/hooks/features/editing/utils.js +1 -1
- package/hooks/features/editing/utils.mjs +1 -1
- package/hooks/features/filter/gridFilterState.d.mts +1 -1
- package/hooks/features/filter/gridFilterState.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.mts +2 -2
- package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.js +2 -10
- package/hooks/features/focus/useGridFocus.mjs +2 -10
- package/hooks/features/rowSelection/useGridRowSelection.js +0 -3
- package/hooks/features/rowSelection/useGridRowSelection.mjs +0 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.mts +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.js +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.mjs +1 -1
- package/hooks/features/rows/gridRowsUtils.d.mts +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +5 -3
- package/hooks/features/rows/gridRowsUtils.mjs +5 -3
- package/hooks/features/virtualization/useGridVirtualization.d.mts +1 -1
- package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualization.js +2 -2
- package/hooks/features/virtualization/useGridVirtualization.mjs +2 -2
- package/hooks/utils/useGridSelector.js +1 -1
- package/hooks/utils/useGridSelector.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/locales/arSD.d.mts +1 -1
- package/locales/arSD.d.ts +1 -1
- package/locales/beBY.d.mts +1 -1
- package/locales/beBY.d.ts +1 -1
- package/locales/bgBG.d.mts +1 -1
- package/locales/bgBG.d.ts +1 -1
- package/locales/bnBD.d.mts +1 -1
- package/locales/bnBD.d.ts +1 -1
- package/locales/caES.d.mts +1 -1
- package/locales/caES.d.ts +1 -1
- package/locales/csCZ.d.mts +1 -1
- package/locales/csCZ.d.ts +1 -1
- package/locales/daDK.d.mts +1 -1
- package/locales/daDK.d.ts +1 -1
- package/locales/deDE.d.mts +1 -1
- package/locales/deDE.d.ts +1 -1
- package/locales/elGR.d.mts +1 -1
- package/locales/elGR.d.ts +1 -1
- package/locales/enUS.d.mts +1 -1
- package/locales/enUS.d.ts +1 -1
- package/locales/esES.d.mts +1 -1
- package/locales/esES.d.ts +1 -1
- package/locales/faIR.d.mts +1 -1
- package/locales/faIR.d.ts +1 -1
- package/locales/fiFI.d.mts +1 -1
- package/locales/fiFI.d.ts +1 -1
- package/locales/frFR.d.mts +1 -1
- package/locales/frFR.d.ts +1 -1
- package/locales/heIL.d.mts +1 -1
- package/locales/heIL.d.ts +1 -1
- package/locales/huHU.d.mts +1 -1
- package/locales/huHU.d.ts +1 -1
- package/locales/hyAM.d.mts +1 -1
- package/locales/hyAM.d.ts +1 -1
- package/locales/idID.d.mts +1 -1
- package/locales/idID.d.ts +1 -1
- package/locales/isIS.d.mts +1 -1
- package/locales/isIS.d.ts +1 -1
- package/locales/itIT.d.mts +1 -1
- package/locales/itIT.d.ts +1 -1
- package/locales/jaJP.d.mts +1 -1
- package/locales/jaJP.d.ts +1 -1
- package/locales/koKR.d.mts +1 -1
- package/locales/koKR.d.ts +1 -1
- package/locales/nbNO.d.mts +1 -1
- package/locales/nbNO.d.ts +1 -1
- package/locales/nlNL.d.mts +1 -1
- package/locales/nlNL.d.ts +1 -1
- package/locales/nnNO.d.mts +1 -1
- package/locales/nnNO.d.ts +1 -1
- package/locales/plPL.d.mts +1 -1
- package/locales/plPL.d.ts +1 -1
- package/locales/ptBR.d.mts +1 -1
- package/locales/ptBR.d.ts +1 -1
- package/locales/ptPT.d.mts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/roRO.d.mts +1 -1
- package/locales/roRO.d.ts +1 -1
- package/locales/ruRU.d.mts +1 -1
- package/locales/ruRU.d.ts +1 -1
- package/locales/skSK.d.mts +1 -1
- package/locales/skSK.d.ts +1 -1
- package/locales/svSE.d.mts +1 -1
- package/locales/svSE.d.ts +1 -1
- package/locales/thTH.d.mts +1 -1
- package/locales/thTH.d.ts +1 -1
- package/locales/trTR.d.mts +1 -1
- package/locales/trTR.d.ts +1 -1
- package/locales/ukUA.d.mts +1 -1
- package/locales/ukUA.d.ts +1 -1
- package/locales/urPK.d.mts +1 -1
- package/locales/urPK.d.ts +1 -1
- package/locales/viVN.d.mts +1 -1
- package/locales/viVN.d.ts +1 -1
- package/locales/zhCN.d.mts +1 -1
- package/locales/zhCN.d.ts +1 -1
- package/locales/zhTW.d.mts +1 -1
- package/locales/zhTW.d.ts +1 -1
- package/material/index.js +5 -3
- package/material/index.mjs +5 -3
- package/material/variables.d.mts +1 -1
- package/material/variables.d.ts +1 -1
- package/package.json +8 -4
- package/utils/createSelector.d.mts +1 -1
- package/utils/createSelector.d.ts +1 -1
- package/utils/focusElement.d.mts +9 -0
- package/utils/focusElement.d.ts +9 -0
- package/utils/focusElement.js +24 -0
- package/utils/focusElement.mjs +19 -0
- package/utils/isJSDOM.d.mts +0 -1
- package/utils/isJSDOM.d.ts +0 -1
- package/utils/isJSDOM.js +0 -7
- package/utils/isJSDOM.mjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.js";
|
|
3
3
|
import type { GridLoadingOverlayVariant } from "../hooks/features/overlays/gridOverlaysInterfaces.js";
|
|
4
4
|
export interface GridLoadingOverlayProps extends GridOverlayProps {
|
|
5
5
|
/**
|
|
@@ -57,7 +57,7 @@ const GridLoadingOverlay = exports.GridLoadingOverlay = (0, _forwardRef.forwardR
|
|
|
57
57
|
}));
|
|
58
58
|
});
|
|
59
59
|
if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
|
|
60
|
-
process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
|
|
60
|
+
process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
|
|
61
61
|
// ----------------------------- Warning --------------------------------
|
|
62
62
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
63
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -50,7 +50,7 @@ const GridLoadingOverlay = forwardRef(function GridLoadingOverlay(props, ref) {
|
|
|
50
50
|
}));
|
|
51
51
|
});
|
|
52
52
|
if (process.env.NODE_ENV !== "production") GridLoadingOverlay.displayName = "GridLoadingOverlay";
|
|
53
|
-
process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
|
|
53
|
+
process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes /* remove-proptypes */ = {
|
|
54
54
|
// ----------------------------- Warning --------------------------------
|
|
55
55
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
56
56
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
|
|
2
2
|
declare const GridNoColumnsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.js";
|
|
2
2
|
declare const GridNoColumnsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -34,7 +34,7 @@ const GridNoColumnsOverlay = exports.GridNoColumnsOverlay = (0, _forwardRef.forw
|
|
|
34
34
|
}));
|
|
35
35
|
});
|
|
36
36
|
if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
|
|
37
|
-
process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
|
|
37
|
+
process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
|
|
38
38
|
// ----------------------------- Warning --------------------------------
|
|
39
39
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
40
40
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -28,7 +28,7 @@ const GridNoColumnsOverlay = forwardRef(function GridNoColumnsOverlay(props, ref
|
|
|
28
28
|
}));
|
|
29
29
|
});
|
|
30
30
|
if (process.env.NODE_ENV !== "production") GridNoColumnsOverlay.displayName = "GridNoColumnsOverlay";
|
|
31
|
-
process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes = {
|
|
31
|
+
process.env.NODE_ENV !== "production" ? GridNoColumnsOverlay.propTypes /* remove-proptypes */ = {
|
|
32
32
|
// ----------------------------- Warning --------------------------------
|
|
33
33
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
34
34
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
|
|
2
2
|
export declare const GridNoResultsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.js";
|
|
2
2
|
export declare const GridNoResultsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.mjs";
|
|
2
2
|
declare const GridNoRowsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridOverlayProps } from "./containers/GridOverlay.js";
|
|
2
2
|
declare const GridNoRowsOverlay: import("react").ForwardRefExoticComponent<GridOverlayProps> | import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
sx?: import("@mui/system").SxProps<import("@mui/system").Theme>;
|
|
4
4
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -21,7 +21,7 @@ const GridNoRowsOverlay = exports.GridNoRowsOverlay = (0, _forwardRef.forwardRef
|
|
|
21
21
|
}));
|
|
22
22
|
});
|
|
23
23
|
if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
|
|
24
|
-
process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
|
|
24
|
+
process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
|
|
25
25
|
// ----------------------------- Warning --------------------------------
|
|
26
26
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
27
27
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -15,7 +15,7 @@ const GridNoRowsOverlay = forwardRef(function GridNoRowsOverlay(props, ref) {
|
|
|
15
15
|
}));
|
|
16
16
|
});
|
|
17
17
|
if (process.env.NODE_ENV !== "production") GridNoRowsOverlay.displayName = "GridNoRowsOverlay";
|
|
18
|
-
process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes = {
|
|
18
|
+
process.env.NODE_ENV !== "production" ? GridNoRowsOverlay.propTypes /* remove-proptypes */ = {
|
|
19
19
|
// ----------------------------- Warning --------------------------------
|
|
20
20
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
21
21
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/components/GridRow.js
CHANGED
|
@@ -330,7 +330,7 @@ const GridRow = (0, _forwardRef.forwardRef)(function GridRow(props, refProp) {
|
|
|
330
330
|
}));
|
|
331
331
|
});
|
|
332
332
|
if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
|
|
333
|
-
process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
|
|
333
|
+
process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
|
|
334
334
|
// ----------------------------- Warning --------------------------------
|
|
335
335
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
336
336
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
package/components/GridRow.mjs
CHANGED
|
@@ -323,7 +323,7 @@ const GridRow = forwardRef(function GridRow(props, refProp) {
|
|
|
323
323
|
}));
|
|
324
324
|
});
|
|
325
325
|
if (process.env.NODE_ENV !== "production") GridRow.displayName = "GridRow";
|
|
326
|
-
process.env.NODE_ENV !== "production" ? GridRow.propTypes = {
|
|
326
|
+
process.env.NODE_ENV !== "production" ? GridRow.propTypes /* remove-proptypes */ = {
|
|
327
327
|
// ----------------------------- Warning --------------------------------
|
|
328
328
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
329
329
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -61,7 +61,7 @@ const GridRowCount = exports.GridRowCount = (0, _forwardRef.forwardRef)(function
|
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
|
|
64
|
-
process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
|
|
64
|
+
process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
|
|
65
65
|
// ----------------------------- Warning --------------------------------
|
|
66
66
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
67
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -54,7 +54,7 @@ const GridRowCount = forwardRef(function GridRowCount(props, ref) {
|
|
|
54
54
|
}));
|
|
55
55
|
});
|
|
56
56
|
if (process.env.NODE_ENV !== "production") GridRowCount.displayName = "GridRowCount";
|
|
57
|
-
process.env.NODE_ENV !== "production" ? GridRowCount.propTypes = {
|
|
57
|
+
process.env.NODE_ENV !== "production" ? GridRowCount.propTypes /* remove-proptypes */ = {
|
|
58
58
|
// ----------------------------- Warning --------------------------------
|
|
59
59
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
60
60
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
|
|
|
4
4
|
rowId: GridRowId;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const GridRowDragAndDropOverlay: React.
|
|
7
|
+
export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -4,4 +4,4 @@ export interface GridRowDragAndDropOverlayProps {
|
|
|
4
4
|
rowId: GridRowId;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const GridRowDragAndDropOverlay: React.
|
|
7
|
+
export declare const GridRowDragAndDropOverlay: React.MemoExoticComponent<(props: GridRowDragAndDropOverlayProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -65,7 +65,7 @@ const GridSelectedRowCount = exports.GridSelectedRowCount = (0, _forwardRef.forw
|
|
|
65
65
|
}));
|
|
66
66
|
});
|
|
67
67
|
if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
|
|
68
|
-
process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
|
|
68
|
+
process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
|
|
69
69
|
// ----------------------------- Warning --------------------------------
|
|
70
70
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
71
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -58,7 +58,7 @@ const GridSelectedRowCount = forwardRef(function GridSelectedRowCount(props, ref
|
|
|
58
58
|
}));
|
|
59
59
|
});
|
|
60
60
|
if (process.env.NODE_ENV !== "production") GridSelectedRowCount.displayName = "GridSelectedRowCount";
|
|
61
|
-
process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes = {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? GridSelectedRowCount.propTypes /* remove-proptypes */ = {
|
|
62
62
|
// ----------------------------- Warning --------------------------------
|
|
63
63
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
64
64
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -94,7 +94,7 @@ const GridShadowScrollArea = exports.GridShadowScrollArea = (0, _forwardRef.forw
|
|
|
94
94
|
}));
|
|
95
95
|
});
|
|
96
96
|
if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
|
|
97
|
-
process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
|
|
97
|
+
process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
|
|
98
98
|
// ----------------------------- Warning --------------------------------
|
|
99
99
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
100
100
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -87,7 +87,7 @@ const GridShadowScrollArea = forwardRef(function GridShadowScrollArea(props, ref
|
|
|
87
87
|
}));
|
|
88
88
|
});
|
|
89
89
|
if (process.env.NODE_ENV !== "production") GridShadowScrollArea.displayName = "GridShadowScrollArea";
|
|
90
|
-
process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes = {
|
|
90
|
+
process.env.NODE_ENV !== "production" ? GridShadowScrollArea.propTypes /* remove-proptypes */ = {
|
|
91
91
|
// ----------------------------- Warning --------------------------------
|
|
92
92
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
93
93
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridRowParams } from "../../models/params/gridRowParams.mjs";
|
|
3
3
|
import type { GridRenderCellParams } from "../../models/params/gridCellParams.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import type { GridMenuProps } from "../menu/GridMenu.mjs";
|
|
5
5
|
import type { GridValidRowModel, GridTreeNodeWithRender } from "../../models/gridRows.mjs";
|
|
6
6
|
interface GridActionsCellProps<R extends GridValidRowModel = any, V = any, F = V, N extends GridTreeNodeWithRender = GridTreeNodeWithRender> extends Omit<GridRenderCellParams<R, V, F, N>, 'api'> {
|
|
7
7
|
api?: GridRenderCellParams['api'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { GridRowParams } from "../../models/params/gridRowParams.js";
|
|
3
3
|
import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
|
|
4
|
-
import {
|
|
4
|
+
import type { GridMenuProps } from "../menu/GridMenu.js";
|
|
5
5
|
import type { GridValidRowModel, GridTreeNodeWithRender } from "../../models/gridRows.js";
|
|
6
6
|
interface GridActionsCellProps<R extends GridValidRowModel = any, V = any, F = V, N extends GridTreeNodeWithRender = GridTreeNodeWithRender> extends Omit<GridRenderCellParams<R, V, F, N>, 'api'> {
|
|
7
7
|
api?: GridRenderCellParams['api'];
|
|
@@ -220,7 +220,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
|
|
|
220
220
|
})]
|
|
221
221
|
}));
|
|
222
222
|
}
|
|
223
|
-
process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
223
|
+
process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
|
|
224
224
|
// ----------------------------- Warning --------------------------------
|
|
225
225
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
226
226
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
|
230
230
|
* The mode of the cell.
|
|
231
231
|
*/
|
|
232
232
|
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
233
|
-
children: _propTypes.default.node
|
|
233
|
+
children: _propTypes.default.node,
|
|
234
234
|
/**
|
|
235
235
|
* The column of the row that the current cell belongs to.
|
|
236
236
|
*/
|
|
@@ -255,15 +255,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
|
255
255
|
* If true, the cell is editable.
|
|
256
256
|
*/
|
|
257
257
|
isEditable: _propTypes.default.bool,
|
|
258
|
+
/**
|
|
259
|
+
* Callback to fire before the menu gets closed.
|
|
260
|
+
* Use this callback to prevent the menu from closing.
|
|
261
|
+
*
|
|
262
|
+
* @param {GridRowParams<R>} params Row parameters.
|
|
263
|
+
* @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
|
|
264
|
+
* @returns {boolean} if the menu should be closed.
|
|
265
|
+
*/
|
|
266
|
+
onMenuClose: _propTypes.default.func,
|
|
267
|
+
/**
|
|
268
|
+
* Callback to fire before the menu gets opened.
|
|
269
|
+
* Use this callback to prevent the menu from opening.
|
|
270
|
+
*
|
|
271
|
+
* @param {GridRowParams<R>} params Row parameters.
|
|
272
|
+
* @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
|
|
273
|
+
* @returns {boolean} if the menu should be opened.
|
|
274
|
+
*/
|
|
275
|
+
onMenuOpen: _propTypes.default.func,
|
|
258
276
|
position: _propTypes.default.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
259
277
|
/**
|
|
260
278
|
* The row model of the row that the current cell belongs to.
|
|
261
279
|
*/
|
|
262
|
-
row: _propTypes.default.
|
|
280
|
+
row: _propTypes.default.object.isRequired,
|
|
263
281
|
/**
|
|
264
282
|
* The node of the row that the current cell belongs to.
|
|
265
283
|
*/
|
|
266
284
|
rowNode: _propTypes.default.object.isRequired,
|
|
285
|
+
/**
|
|
286
|
+
* If true, the children passed to the component will not be validated.
|
|
287
|
+
* If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
|
|
288
|
+
* Only use this prop if you know what you are doing.
|
|
289
|
+
* @default false
|
|
290
|
+
*/
|
|
291
|
+
suppressChildrenValidation: _propTypes.default.bool,
|
|
267
292
|
/**
|
|
268
293
|
* the tabIndex value.
|
|
269
294
|
*/
|
|
@@ -293,6 +318,61 @@ function GridActionsCellWrapper(props) {
|
|
|
293
318
|
children: actions
|
|
294
319
|
}));
|
|
295
320
|
}
|
|
321
|
+
process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
|
|
322
|
+
// ----------------------------- Warning --------------------------------
|
|
323
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
324
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
325
|
+
// ----------------------------------------------------------------------
|
|
326
|
+
/**
|
|
327
|
+
* GridApi that let you manipulate the grid.
|
|
328
|
+
*/
|
|
329
|
+
api: _propTypes.default.object.isRequired,
|
|
330
|
+
/**
|
|
331
|
+
* The mode of the cell.
|
|
332
|
+
*/
|
|
333
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
334
|
+
/**
|
|
335
|
+
* The column of the row that the current cell belongs to.
|
|
336
|
+
*/
|
|
337
|
+
colDef: _propTypes.default.object.isRequired,
|
|
338
|
+
/**
|
|
339
|
+
* The column field of the cell that triggered the event.
|
|
340
|
+
*/
|
|
341
|
+
field: _propTypes.default.string.isRequired,
|
|
342
|
+
/**
|
|
343
|
+
* The cell value formatted with the column valueFormatter.
|
|
344
|
+
*/
|
|
345
|
+
formattedValue: _propTypes.default.any,
|
|
346
|
+
/**
|
|
347
|
+
* If true, the cell is the active element.
|
|
348
|
+
*/
|
|
349
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
350
|
+
/**
|
|
351
|
+
* The grid row id.
|
|
352
|
+
*/
|
|
353
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
354
|
+
/**
|
|
355
|
+
* If true, the cell is editable.
|
|
356
|
+
*/
|
|
357
|
+
isEditable: _propTypes.default.bool,
|
|
358
|
+
/**
|
|
359
|
+
* The row model of the row that the current cell belongs to.
|
|
360
|
+
*/
|
|
361
|
+
row: _propTypes.default.any.isRequired,
|
|
362
|
+
/**
|
|
363
|
+
* The node of the row that the current cell belongs to.
|
|
364
|
+
*/
|
|
365
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
366
|
+
/**
|
|
367
|
+
* the tabIndex value.
|
|
368
|
+
*/
|
|
369
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
370
|
+
/**
|
|
371
|
+
* The cell value.
|
|
372
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
373
|
+
*/
|
|
374
|
+
value: _propTypes.default.any
|
|
375
|
+
} : void 0;
|
|
296
376
|
const renderActionsCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridActionsCellWrapper, (0, _extends2.default)({}, params));
|
|
297
377
|
exports.renderActionsCell = renderActionsCell;
|
|
298
378
|
if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
|
|
@@ -212,7 +212,7 @@ If this is intentional, you can suppress this warning by passing the \`suppressC
|
|
|
212
212
|
})]
|
|
213
213
|
}));
|
|
214
214
|
}
|
|
215
|
-
process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
215
|
+
process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes /* remove-proptypes */ = {
|
|
216
216
|
// ----------------------------- Warning --------------------------------
|
|
217
217
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
218
218
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -222,7 +222,7 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
|
222
222
|
* The mode of the cell.
|
|
223
223
|
*/
|
|
224
224
|
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
225
|
-
children: PropTypes.node
|
|
225
|
+
children: PropTypes.node,
|
|
226
226
|
/**
|
|
227
227
|
* The column of the row that the current cell belongs to.
|
|
228
228
|
*/
|
|
@@ -247,15 +247,40 @@ process.env.NODE_ENV !== "production" ? GridActionsCell.propTypes = {
|
|
|
247
247
|
* If true, the cell is editable.
|
|
248
248
|
*/
|
|
249
249
|
isEditable: PropTypes.bool,
|
|
250
|
+
/**
|
|
251
|
+
* Callback to fire before the menu gets closed.
|
|
252
|
+
* Use this callback to prevent the menu from closing.
|
|
253
|
+
*
|
|
254
|
+
* @param {GridRowParams<R>} params Row parameters.
|
|
255
|
+
* @param {React.MouseEvent<HTMLElement> | React.KeyboardEvent | MouseEvent | TouchEvent | undefined} event The event triggering this callback.
|
|
256
|
+
* @returns {boolean} if the menu should be closed.
|
|
257
|
+
*/
|
|
258
|
+
onMenuClose: PropTypes.func,
|
|
259
|
+
/**
|
|
260
|
+
* Callback to fire before the menu gets opened.
|
|
261
|
+
* Use this callback to prevent the menu from opening.
|
|
262
|
+
*
|
|
263
|
+
* @param {GridRowParams<R>} params Row parameters.
|
|
264
|
+
* @param {React.MouseEvent<HTMLElement>} event The event triggering this callback.
|
|
265
|
+
* @returns {boolean} if the menu should be opened.
|
|
266
|
+
*/
|
|
267
|
+
onMenuOpen: PropTypes.func,
|
|
250
268
|
position: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
251
269
|
/**
|
|
252
270
|
* The row model of the row that the current cell belongs to.
|
|
253
271
|
*/
|
|
254
|
-
row: PropTypes.
|
|
272
|
+
row: PropTypes.object.isRequired,
|
|
255
273
|
/**
|
|
256
274
|
* The node of the row that the current cell belongs to.
|
|
257
275
|
*/
|
|
258
276
|
rowNode: PropTypes.object.isRequired,
|
|
277
|
+
/**
|
|
278
|
+
* If true, the children passed to the component will not be validated.
|
|
279
|
+
* If false, only `GridActionsCellItem` and `React.Fragment` are allowed as children.
|
|
280
|
+
* Only use this prop if you know what you are doing.
|
|
281
|
+
* @default false
|
|
282
|
+
*/
|
|
283
|
+
suppressChildrenValidation: PropTypes.bool,
|
|
259
284
|
/**
|
|
260
285
|
* the tabIndex value.
|
|
261
286
|
*/
|
|
@@ -287,5 +312,60 @@ function GridActionsCellWrapper(props) {
|
|
|
287
312
|
children: actions
|
|
288
313
|
}));
|
|
289
314
|
}
|
|
315
|
+
process.env.NODE_ENV !== "production" ? GridActionsCellWrapper.propTypes /* remove-proptypes */ = {
|
|
316
|
+
// ----------------------------- Warning --------------------------------
|
|
317
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
318
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
319
|
+
// ----------------------------------------------------------------------
|
|
320
|
+
/**
|
|
321
|
+
* GridApi that let you manipulate the grid.
|
|
322
|
+
*/
|
|
323
|
+
api: PropTypes.object.isRequired,
|
|
324
|
+
/**
|
|
325
|
+
* The mode of the cell.
|
|
326
|
+
*/
|
|
327
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
328
|
+
/**
|
|
329
|
+
* The column of the row that the current cell belongs to.
|
|
330
|
+
*/
|
|
331
|
+
colDef: PropTypes.object.isRequired,
|
|
332
|
+
/**
|
|
333
|
+
* The column field of the cell that triggered the event.
|
|
334
|
+
*/
|
|
335
|
+
field: PropTypes.string.isRequired,
|
|
336
|
+
/**
|
|
337
|
+
* The cell value formatted with the column valueFormatter.
|
|
338
|
+
*/
|
|
339
|
+
formattedValue: PropTypes.any,
|
|
340
|
+
/**
|
|
341
|
+
* If true, the cell is the active element.
|
|
342
|
+
*/
|
|
343
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
344
|
+
/**
|
|
345
|
+
* The grid row id.
|
|
346
|
+
*/
|
|
347
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
348
|
+
/**
|
|
349
|
+
* If true, the cell is editable.
|
|
350
|
+
*/
|
|
351
|
+
isEditable: PropTypes.bool,
|
|
352
|
+
/**
|
|
353
|
+
* The row model of the row that the current cell belongs to.
|
|
354
|
+
*/
|
|
355
|
+
row: PropTypes.any.isRequired,
|
|
356
|
+
/**
|
|
357
|
+
* The node of the row that the current cell belongs to.
|
|
358
|
+
*/
|
|
359
|
+
rowNode: PropTypes.object.isRequired,
|
|
360
|
+
/**
|
|
361
|
+
* the tabIndex value.
|
|
362
|
+
*/
|
|
363
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
364
|
+
/**
|
|
365
|
+
* The cell value.
|
|
366
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
367
|
+
*/
|
|
368
|
+
value: PropTypes.any
|
|
369
|
+
} : void 0;
|
|
290
370
|
export const renderActionsCell = params => /*#__PURE__*/_jsx(GridActionsCellWrapper, _extends({}, params));
|
|
291
371
|
if (process.env.NODE_ENV !== "production") renderActionsCell.displayName = "renderActionsCell";
|
|
@@ -10,6 +10,7 @@ exports.GridActionsCellItem = void 0;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
14
15
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
15
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -62,4 +63,77 @@ const GridActionsCellItem = exports.GridActionsCellItem = (0, _forwardRef.forwar
|
|
|
62
63
|
children: label
|
|
63
64
|
}));
|
|
64
65
|
});
|
|
65
|
-
if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
|
|
66
|
+
if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
|
|
67
|
+
process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
|
|
68
|
+
// ----------------------------- Warning --------------------------------
|
|
69
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
70
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
71
|
+
// ----------------------------------------------------------------------
|
|
72
|
+
className: _propTypes.default.string,
|
|
73
|
+
/**
|
|
74
|
+
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
75
|
+
*/
|
|
76
|
+
component: _propTypes.default.elementType,
|
|
77
|
+
disabled: _propTypes.default.bool,
|
|
78
|
+
icon: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func, _propTypes.default.number, _propTypes.default.object, _propTypes.default.shape({
|
|
79
|
+
'__@iterator@659': _propTypes.default.func.isRequired
|
|
80
|
+
}), _propTypes.default.shape({
|
|
81
|
+
'__@iterator@659': _propTypes.default.func.isRequired,
|
|
82
|
+
key: _propTypes.default.string,
|
|
83
|
+
props: _propTypes.default.any.isRequired,
|
|
84
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
|
|
85
|
+
}), _propTypes.default.shape({
|
|
86
|
+
'__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
|
|
87
|
+
key: _propTypes.default.string,
|
|
88
|
+
props: _propTypes.default.any.isRequired,
|
|
89
|
+
toLocaleString: _propTypes.default.func.isRequired,
|
|
90
|
+
toString: _propTypes.default.func.isRequired,
|
|
91
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
|
|
92
|
+
valueOf: _propTypes.default.func.isRequired
|
|
93
|
+
}), _propTypes.default.shape({
|
|
94
|
+
'__@toStringTag@1607': _propTypes.default.oneOf(['BigInt']).isRequired,
|
|
95
|
+
toLocaleString: _propTypes.default.func.isRequired,
|
|
96
|
+
toString: _propTypes.default.func.isRequired,
|
|
97
|
+
valueOf: _propTypes.default.func.isRequired
|
|
98
|
+
}), _propTypes.default.shape({
|
|
99
|
+
'__@toStringTag@1607': _propTypes.default.string.isRequired,
|
|
100
|
+
catch: _propTypes.default.func.isRequired,
|
|
101
|
+
finally: _propTypes.default.func.isRequired,
|
|
102
|
+
key: _propTypes.default.string,
|
|
103
|
+
props: _propTypes.default.any.isRequired,
|
|
104
|
+
then: _propTypes.default.func.isRequired,
|
|
105
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
|
|
106
|
+
}), _propTypes.default.shape({
|
|
107
|
+
'__@toStringTag@1607': _propTypes.default.string.isRequired,
|
|
108
|
+
catch: _propTypes.default.func.isRequired,
|
|
109
|
+
finally: _propTypes.default.func.isRequired,
|
|
110
|
+
then: _propTypes.default.func.isRequired
|
|
111
|
+
}), _propTypes.default.shape({
|
|
112
|
+
children: _propTypes.default.node,
|
|
113
|
+
key: _propTypes.default.string,
|
|
114
|
+
props: _propTypes.default.any.isRequired,
|
|
115
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
|
|
116
|
+
}), _propTypes.default.shape({
|
|
117
|
+
key: _propTypes.default.string,
|
|
118
|
+
props: _propTypes.default.any.isRequired,
|
|
119
|
+
toExponential: _propTypes.default.func.isRequired,
|
|
120
|
+
toFixed: _propTypes.default.func.isRequired,
|
|
121
|
+
toLocaleString: _propTypes.default.func.isRequired,
|
|
122
|
+
toPrecision: _propTypes.default.func.isRequired,
|
|
123
|
+
toString: _propTypes.default.func.isRequired,
|
|
124
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
|
|
125
|
+
valueOf: _propTypes.default.func.isRequired
|
|
126
|
+
}), _propTypes.default.shape({
|
|
127
|
+
key: _propTypes.default.string,
|
|
128
|
+
props: _propTypes.default.any.isRequired,
|
|
129
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired
|
|
130
|
+
}), _propTypes.default.shape({
|
|
131
|
+
key: _propTypes.default.string,
|
|
132
|
+
props: _propTypes.default.any.isRequired,
|
|
133
|
+
type: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]).isRequired,
|
|
134
|
+
valueOf: _propTypes.default.func.isRequired
|
|
135
|
+
}), _propTypes.default.string, _propTypes.default.bool]),
|
|
136
|
+
label: _propTypes.default.node,
|
|
137
|
+
showInMenu: _propTypes.default.bool,
|
|
138
|
+
style: _propTypes.default.object
|
|
139
|
+
} : void 0;
|