@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
|
@@ -5,6 +5,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["label", "icon", "showInMenu", "onClick"],
|
|
6
6
|
_excluded2 = ["label", "icon", "showInMenu", "onClick", "closeMenuOnClick", "closeMenu"];
|
|
7
7
|
import * as React from 'react';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
8
9
|
import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
9
10
|
import { useGridRootProps } from "../../hooks/utils/useGridRootProps.mjs";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -56,4 +57,77 @@ const GridActionsCellItem = forwardRef((props, ref) => {
|
|
|
56
57
|
}));
|
|
57
58
|
});
|
|
58
59
|
if (process.env.NODE_ENV !== "production") GridActionsCellItem.displayName = "GridActionsCellItem";
|
|
60
|
+
process.env.NODE_ENV !== "production" ? GridActionsCellItem.propTypes /* remove-proptypes */ = {
|
|
61
|
+
// ----------------------------- Warning --------------------------------
|
|
62
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
63
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
64
|
+
// ----------------------------------------------------------------------
|
|
65
|
+
className: PropTypes.string,
|
|
66
|
+
/**
|
|
67
|
+
* from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component
|
|
68
|
+
*/
|
|
69
|
+
component: PropTypes.elementType,
|
|
70
|
+
disabled: PropTypes.bool,
|
|
71
|
+
icon: PropTypes.oneOfType([PropTypes.element, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.shape({
|
|
72
|
+
'__@iterator@659': PropTypes.func.isRequired
|
|
73
|
+
}), PropTypes.shape({
|
|
74
|
+
'__@iterator@659': PropTypes.func.isRequired,
|
|
75
|
+
key: PropTypes.string,
|
|
76
|
+
props: PropTypes.any.isRequired,
|
|
77
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
78
|
+
}), PropTypes.shape({
|
|
79
|
+
'__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
|
|
80
|
+
key: PropTypes.string,
|
|
81
|
+
props: PropTypes.any.isRequired,
|
|
82
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
83
|
+
toString: PropTypes.func.isRequired,
|
|
84
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
85
|
+
valueOf: PropTypes.func.isRequired
|
|
86
|
+
}), PropTypes.shape({
|
|
87
|
+
'__@toStringTag@1607': PropTypes.oneOf(['BigInt']).isRequired,
|
|
88
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
89
|
+
toString: PropTypes.func.isRequired,
|
|
90
|
+
valueOf: PropTypes.func.isRequired
|
|
91
|
+
}), PropTypes.shape({
|
|
92
|
+
'__@toStringTag@1607': PropTypes.string.isRequired,
|
|
93
|
+
catch: PropTypes.func.isRequired,
|
|
94
|
+
finally: PropTypes.func.isRequired,
|
|
95
|
+
key: PropTypes.string,
|
|
96
|
+
props: PropTypes.any.isRequired,
|
|
97
|
+
then: PropTypes.func.isRequired,
|
|
98
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
99
|
+
}), PropTypes.shape({
|
|
100
|
+
'__@toStringTag@1607': PropTypes.string.isRequired,
|
|
101
|
+
catch: PropTypes.func.isRequired,
|
|
102
|
+
finally: PropTypes.func.isRequired,
|
|
103
|
+
then: PropTypes.func.isRequired
|
|
104
|
+
}), PropTypes.shape({
|
|
105
|
+
children: PropTypes.node,
|
|
106
|
+
key: PropTypes.string,
|
|
107
|
+
props: PropTypes.any.isRequired,
|
|
108
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
109
|
+
}), PropTypes.shape({
|
|
110
|
+
key: PropTypes.string,
|
|
111
|
+
props: PropTypes.any.isRequired,
|
|
112
|
+
toExponential: PropTypes.func.isRequired,
|
|
113
|
+
toFixed: PropTypes.func.isRequired,
|
|
114
|
+
toLocaleString: PropTypes.func.isRequired,
|
|
115
|
+
toPrecision: PropTypes.func.isRequired,
|
|
116
|
+
toString: PropTypes.func.isRequired,
|
|
117
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
118
|
+
valueOf: PropTypes.func.isRequired
|
|
119
|
+
}), PropTypes.shape({
|
|
120
|
+
key: PropTypes.string,
|
|
121
|
+
props: PropTypes.any.isRequired,
|
|
122
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired
|
|
123
|
+
}), PropTypes.shape({
|
|
124
|
+
key: PropTypes.string,
|
|
125
|
+
props: PropTypes.any.isRequired,
|
|
126
|
+
type: PropTypes.oneOfType([PropTypes.func, PropTypes.string]).isRequired,
|
|
127
|
+
valueOf: PropTypes.func.isRequired
|
|
128
|
+
}), PropTypes.string, PropTypes.bool]),
|
|
129
|
+
label: PropTypes.node,
|
|
130
|
+
showInMenu: PropTypes.bool,
|
|
131
|
+
style: PropTypes.object
|
|
132
|
+
} : void 0;
|
|
59
133
|
export { GridActionsCellItem };
|
|
@@ -57,7 +57,7 @@ function GridBooleanCellRaw(props) {
|
|
|
57
57
|
"data-value": Boolean(value)
|
|
58
58
|
}, other));
|
|
59
59
|
}
|
|
60
|
-
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
|
|
60
|
+
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.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" |
|
|
@@ -49,7 +49,7 @@ function GridBooleanCellRaw(props) {
|
|
|
49
49
|
"data-value": Boolean(value)
|
|
50
50
|
}, other));
|
|
51
51
|
}
|
|
52
|
-
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes = {
|
|
52
|
+
process.env.NODE_ENV !== "production" ? GridBooleanCellRaw.propTypes /* remove-proptypes */ = {
|
|
53
53
|
// ----------------------------- Warning --------------------------------
|
|
54
54
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
55
55
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridRowId } from "../../models/index.mjs";
|
|
3
3
|
import type { GridAlignment, GridStateColDef } from "../../models/colDef/gridColDef.mjs";
|
|
4
4
|
import type { GridRowModel, GridTreeNode } from "../../models/gridRows.mjs";
|
|
5
5
|
import { PinnedColumnPosition } from "../../internals/constants.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { GridRowId } from "../../models/index.js";
|
|
3
3
|
import type { GridAlignment, GridStateColDef } from "../../models/colDef/gridColDef.js";
|
|
4
4
|
import type { GridRowModel, GridTreeNode } from "../../models/gridRows.js";
|
|
5
5
|
import { PinnedColumnPosition } from "../../internals/constants.js";
|
|
@@ -22,7 +22,7 @@ var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
|
22
22
|
var _store = require("@mui/x-internals/store");
|
|
23
23
|
var _xVirtualizer = require("@mui/x-virtualizer");
|
|
24
24
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
25
|
-
var
|
|
25
|
+
var _focusElement = require("../../utils/focusElement");
|
|
26
26
|
var _gridClasses = require("../../constants/gridClasses");
|
|
27
27
|
var _models = require("../../models");
|
|
28
28
|
var _useGridSelector = require("../../hooks/utils/useGridSelector");
|
|
@@ -233,15 +233,7 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
|
|
|
233
233
|
if (cellRef.current && !cellRef.current.contains(doc.activeElement)) {
|
|
234
234
|
const focusableElement = cellRef.current.querySelector('[tabindex="0"]');
|
|
235
235
|
const elementToFocus = focusableElement || cellRef.current;
|
|
236
|
-
|
|
237
|
-
elementToFocus.focus({
|
|
238
|
-
preventScroll: true
|
|
239
|
-
});
|
|
240
|
-
} else {
|
|
241
|
-
const scrollPosition = apiRef.current.getScrollPosition();
|
|
242
|
-
elementToFocus.focus();
|
|
243
|
-
apiRef.current.scroll(scrollPosition);
|
|
244
|
-
}
|
|
236
|
+
(0, _focusElement.focusElement)(elementToFocus, apiRef);
|
|
245
237
|
}
|
|
246
238
|
}, [hasFocus, cellMode, apiRef]);
|
|
247
239
|
if (isCellRowSpanned) {
|
|
@@ -322,7 +314,7 @@ const GridCell = (0, _forwardRef.forwardRef)(function GridCell(props, ref) {
|
|
|
322
314
|
}));
|
|
323
315
|
});
|
|
324
316
|
if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
|
|
325
|
-
process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
|
|
317
|
+
process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
|
|
326
318
|
// ----------------------------- Warning --------------------------------
|
|
327
319
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
328
320
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -17,7 +17,7 @@ import { forwardRef } from '@mui/x-internals/forwardRef';
|
|
|
17
17
|
import { useStore } from '@mui/x-internals/store';
|
|
18
18
|
import { Rowspan } from '@mui/x-virtualizer';
|
|
19
19
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
20
|
-
import {
|
|
20
|
+
import { focusElement } from "../../utils/focusElement.mjs";
|
|
21
21
|
import { getDataGridUtilityClass, gridClasses } from "../../constants/gridClasses.mjs";
|
|
22
22
|
import { GridCellModes } from "../../models/index.mjs";
|
|
23
23
|
import { useGridSelector } from "../../hooks/utils/useGridSelector.mjs";
|
|
@@ -226,15 +226,7 @@ const GridCell = forwardRef(function GridCell(props, ref) {
|
|
|
226
226
|
if (cellRef.current && !cellRef.current.contains(doc.activeElement)) {
|
|
227
227
|
const focusableElement = cellRef.current.querySelector('[tabindex="0"]');
|
|
228
228
|
const elementToFocus = focusableElement || cellRef.current;
|
|
229
|
-
|
|
230
|
-
elementToFocus.focus({
|
|
231
|
-
preventScroll: true
|
|
232
|
-
});
|
|
233
|
-
} else {
|
|
234
|
-
const scrollPosition = apiRef.current.getScrollPosition();
|
|
235
|
-
elementToFocus.focus();
|
|
236
|
-
apiRef.current.scroll(scrollPosition);
|
|
237
|
-
}
|
|
229
|
+
focusElement(elementToFocus, apiRef);
|
|
238
230
|
}
|
|
239
231
|
}, [hasFocus, cellMode, apiRef]);
|
|
240
232
|
if (isCellRowSpanned) {
|
|
@@ -315,7 +307,7 @@ const GridCell = forwardRef(function GridCell(props, ref) {
|
|
|
315
307
|
}));
|
|
316
308
|
});
|
|
317
309
|
if (process.env.NODE_ENV !== "production") GridCell.displayName = "GridCell";
|
|
318
|
-
process.env.NODE_ENV !== "production" ? GridCell.propTypes = {
|
|
310
|
+
process.env.NODE_ENV !== "production" ? GridCell.propTypes /* remove-proptypes */ = {
|
|
319
311
|
// ----------------------------- Warning --------------------------------
|
|
320
312
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
321
313
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -82,7 +82,7 @@ function GridEditBooleanCell(props) {
|
|
|
82
82
|
}, rootProps.slotProps?.baseCheckbox))
|
|
83
83
|
}));
|
|
84
84
|
}
|
|
85
|
-
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
|
|
85
|
+
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
|
|
86
86
|
// ----------------------------- Warning --------------------------------
|
|
87
87
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
88
88
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -74,7 +74,7 @@ function GridEditBooleanCell(props) {
|
|
|
74
74
|
}, rootProps.slotProps?.baseCheckbox))
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
|
-
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes = {
|
|
77
|
+
process.env.NODE_ENV !== "production" ? GridEditBooleanCell.propTypes /* remove-proptypes */ = {
|
|
78
78
|
// ----------------------------- Warning --------------------------------
|
|
79
79
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
80
80
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -136,7 +136,7 @@ function GridEditDateCell(props) {
|
|
|
136
136
|
}
|
|
137
137
|
}));
|
|
138
138
|
}
|
|
139
|
-
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
|
|
139
|
+
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
|
|
140
140
|
// ----------------------------- Warning --------------------------------
|
|
141
141
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
142
142
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -128,7 +128,7 @@ function GridEditDateCell(props) {
|
|
|
128
128
|
}
|
|
129
129
|
}));
|
|
130
130
|
}
|
|
131
|
-
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes = {
|
|
131
|
+
process.env.NODE_ENV !== "production" ? GridEditDateCell.propTypes /* remove-proptypes */ = {
|
|
132
132
|
// ----------------------------- Warning --------------------------------
|
|
133
133
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
134
134
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -10,6 +10,7 @@ exports.renderEditInputCell = exports.GridEditInputCell = 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 _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
14
15
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
15
16
|
var _styles = require("@mui/material/styles");
|
|
@@ -107,6 +108,73 @@ const GridEditInputCell = exports.GridEditInputCell = (0, _forwardRef.forwardRef
|
|
|
107
108
|
}));
|
|
108
109
|
});
|
|
109
110
|
if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
|
|
111
|
+
process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
|
|
112
|
+
// ----------------------------- Warning --------------------------------
|
|
113
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
114
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
115
|
+
// ----------------------------------------------------------------------
|
|
116
|
+
/**
|
|
117
|
+
* GridApi that let you manipulate the grid.
|
|
118
|
+
*/
|
|
119
|
+
api: _propTypes.default.object.isRequired,
|
|
120
|
+
/**
|
|
121
|
+
* The mode of the cell.
|
|
122
|
+
*/
|
|
123
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
124
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
125
|
+
/**
|
|
126
|
+
* The column of the row that the current cell belongs to.
|
|
127
|
+
*/
|
|
128
|
+
colDef: _propTypes.default.object.isRequired,
|
|
129
|
+
debounceMs: _propTypes.default.number,
|
|
130
|
+
/**
|
|
131
|
+
* The column field of the cell that triggered the event.
|
|
132
|
+
*/
|
|
133
|
+
field: _propTypes.default.string.isRequired,
|
|
134
|
+
/**
|
|
135
|
+
* The cell value formatted with the column valueFormatter.
|
|
136
|
+
*/
|
|
137
|
+
formattedValue: _propTypes.default.any,
|
|
138
|
+
/**
|
|
139
|
+
* If true, the cell is the active element.
|
|
140
|
+
*/
|
|
141
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
142
|
+
/**
|
|
143
|
+
* The grid row id.
|
|
144
|
+
*/
|
|
145
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
146
|
+
/**
|
|
147
|
+
* If true, the cell is editable.
|
|
148
|
+
*/
|
|
149
|
+
isEditable: _propTypes.default.bool,
|
|
150
|
+
isProcessingProps: _propTypes.default.bool,
|
|
151
|
+
isValidating: _propTypes.default.bool,
|
|
152
|
+
/**
|
|
153
|
+
* Callback called when the value is changed by the user.
|
|
154
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
155
|
+
* @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
156
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
157
|
+
*/
|
|
158
|
+
onValueChange: _propTypes.default.func,
|
|
159
|
+
/**
|
|
160
|
+
* The row model of the row that the current cell belongs to.
|
|
161
|
+
*/
|
|
162
|
+
row: _propTypes.default.any.isRequired,
|
|
163
|
+
/**
|
|
164
|
+
* The node of the row that the current cell belongs to.
|
|
165
|
+
*/
|
|
166
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
167
|
+
slotProps: _propTypes.default.object,
|
|
168
|
+
/**
|
|
169
|
+
* the tabIndex value.
|
|
170
|
+
*/
|
|
171
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
172
|
+
/**
|
|
173
|
+
* The cell value.
|
|
174
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
175
|
+
*/
|
|
176
|
+
value: _propTypes.default.any
|
|
177
|
+
} : void 0;
|
|
110
178
|
const renderEditInputCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditInputCell, (0, _extends2.default)({}, params));
|
|
111
179
|
exports.renderEditInputCell = renderEditInputCell;
|
|
112
180
|
if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
|
|
@@ -4,6 +4,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/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
|
+
import PropTypes from 'prop-types';
|
|
7
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
9
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
9
10
|
import { styled } from '@mui/material/styles';
|
|
@@ -100,6 +101,73 @@ const GridEditInputCell = forwardRef((props, ref) => {
|
|
|
100
101
|
}));
|
|
101
102
|
});
|
|
102
103
|
if (process.env.NODE_ENV !== "production") GridEditInputCell.displayName = "GridEditInputCell";
|
|
104
|
+
process.env.NODE_ENV !== "production" ? GridEditInputCell.propTypes /* remove-proptypes */ = {
|
|
105
|
+
// ----------------------------- Warning --------------------------------
|
|
106
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
107
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
108
|
+
// ----------------------------------------------------------------------
|
|
109
|
+
/**
|
|
110
|
+
* GridApi that let you manipulate the grid.
|
|
111
|
+
*/
|
|
112
|
+
api: PropTypes.object.isRequired,
|
|
113
|
+
/**
|
|
114
|
+
* The mode of the cell.
|
|
115
|
+
*/
|
|
116
|
+
cellMode: PropTypes.oneOf(['edit', 'view']).isRequired,
|
|
117
|
+
changeReason: PropTypes.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
118
|
+
/**
|
|
119
|
+
* The column of the row that the current cell belongs to.
|
|
120
|
+
*/
|
|
121
|
+
colDef: PropTypes.object.isRequired,
|
|
122
|
+
debounceMs: PropTypes.number,
|
|
123
|
+
/**
|
|
124
|
+
* The column field of the cell that triggered the event.
|
|
125
|
+
*/
|
|
126
|
+
field: PropTypes.string.isRequired,
|
|
127
|
+
/**
|
|
128
|
+
* The cell value formatted with the column valueFormatter.
|
|
129
|
+
*/
|
|
130
|
+
formattedValue: PropTypes.any,
|
|
131
|
+
/**
|
|
132
|
+
* If true, the cell is the active element.
|
|
133
|
+
*/
|
|
134
|
+
hasFocus: PropTypes.bool.isRequired,
|
|
135
|
+
/**
|
|
136
|
+
* The grid row id.
|
|
137
|
+
*/
|
|
138
|
+
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
139
|
+
/**
|
|
140
|
+
* If true, the cell is editable.
|
|
141
|
+
*/
|
|
142
|
+
isEditable: PropTypes.bool,
|
|
143
|
+
isProcessingProps: PropTypes.bool,
|
|
144
|
+
isValidating: PropTypes.bool,
|
|
145
|
+
/**
|
|
146
|
+
* Callback called when the value is changed by the user.
|
|
147
|
+
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
|
148
|
+
* @param {Date | null} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
149
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
150
|
+
*/
|
|
151
|
+
onValueChange: PropTypes.func,
|
|
152
|
+
/**
|
|
153
|
+
* The row model of the row that the current cell belongs to.
|
|
154
|
+
*/
|
|
155
|
+
row: PropTypes.any.isRequired,
|
|
156
|
+
/**
|
|
157
|
+
* The node of the row that the current cell belongs to.
|
|
158
|
+
*/
|
|
159
|
+
rowNode: PropTypes.object.isRequired,
|
|
160
|
+
slotProps: PropTypes.object,
|
|
161
|
+
/**
|
|
162
|
+
* the tabIndex value.
|
|
163
|
+
*/
|
|
164
|
+
tabIndex: PropTypes.oneOf([-1, 0]).isRequired,
|
|
165
|
+
/**
|
|
166
|
+
* The cell value.
|
|
167
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
168
|
+
*/
|
|
169
|
+
value: PropTypes.any
|
|
170
|
+
} : void 0;
|
|
103
171
|
export { GridEditInputCell };
|
|
104
172
|
export const renderEditInputCell = params => /*#__PURE__*/_jsx(GridEditInputCell, _extends({}, params));
|
|
105
173
|
if (process.env.NODE_ENV !== "production") renderEditInputCell.displayName = "renderEditInputCell";
|
|
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare namespace GridEditLongTextCell {
|
|
41
|
+
var propTypes: any;
|
|
42
|
+
}
|
|
40
43
|
export { GridEditLongTextCell };
|
|
41
44
|
export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -37,5 +37,8 @@ export interface GridEditLongTextCellProps extends GridRenderEditCellParams<any,
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
declare function GridEditLongTextCell(props: GridEditLongTextCellProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare namespace GridEditLongTextCell {
|
|
41
|
+
var propTypes: any;
|
|
42
|
+
}
|
|
40
43
|
export { GridEditLongTextCell };
|
|
41
44
|
export declare const renderEditLongTextCell: (params: GridEditLongTextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ exports.GridEditLongTextCell = GridEditLongTextCell;
|
|
|
10
10
|
exports.renderEditLongTextCell = void 0;
|
|
11
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
15
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
15
16
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
@@ -171,6 +172,76 @@ function GridEditLongTextCell(props) {
|
|
|
171
172
|
}))]
|
|
172
173
|
}));
|
|
173
174
|
}
|
|
175
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextCell.propTypes /* remove-proptypes */ = {
|
|
176
|
+
// ----------------------------- Warning --------------------------------
|
|
177
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
178
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
179
|
+
// ----------------------------------------------------------------------
|
|
180
|
+
/**
|
|
181
|
+
* GridApi that let you manipulate the grid.
|
|
182
|
+
*/
|
|
183
|
+
api: _propTypes.default.object.isRequired,
|
|
184
|
+
/**
|
|
185
|
+
* The mode of the cell.
|
|
186
|
+
*/
|
|
187
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
188
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
189
|
+
/**
|
|
190
|
+
* The column of the row that the current cell belongs to.
|
|
191
|
+
*/
|
|
192
|
+
colDef: _propTypes.default.object.isRequired,
|
|
193
|
+
debounceMs: _propTypes.default.number,
|
|
194
|
+
/**
|
|
195
|
+
* The column field of the cell that triggered the event.
|
|
196
|
+
*/
|
|
197
|
+
field: _propTypes.default.string.isRequired,
|
|
198
|
+
/**
|
|
199
|
+
* The cell value formatted with the column valueFormatter.
|
|
200
|
+
*/
|
|
201
|
+
formattedValue: _propTypes.default.string,
|
|
202
|
+
/**
|
|
203
|
+
* If true, the cell is the active element.
|
|
204
|
+
*/
|
|
205
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
206
|
+
/**
|
|
207
|
+
* The grid row id.
|
|
208
|
+
*/
|
|
209
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
210
|
+
/**
|
|
211
|
+
* If true, the cell is editable.
|
|
212
|
+
*/
|
|
213
|
+
isEditable: _propTypes.default.bool,
|
|
214
|
+
isProcessingProps: _propTypes.default.bool,
|
|
215
|
+
isValidating: _propTypes.default.bool,
|
|
216
|
+
/**
|
|
217
|
+
* Callback called when the value is changed by the user.
|
|
218
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
219
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
220
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
221
|
+
*/
|
|
222
|
+
onValueChange: _propTypes.default.func,
|
|
223
|
+
/**
|
|
224
|
+
* The row model of the row that the current cell belongs to.
|
|
225
|
+
*/
|
|
226
|
+
row: _propTypes.default.any.isRequired,
|
|
227
|
+
/**
|
|
228
|
+
* The node of the row that the current cell belongs to.
|
|
229
|
+
*/
|
|
230
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
231
|
+
/**
|
|
232
|
+
* Props passed to internal components.
|
|
233
|
+
*/
|
|
234
|
+
slotProps: _propTypes.default.object,
|
|
235
|
+
/**
|
|
236
|
+
* the tabIndex value.
|
|
237
|
+
*/
|
|
238
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
239
|
+
/**
|
|
240
|
+
* The cell value.
|
|
241
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
242
|
+
*/
|
|
243
|
+
value: _propTypes.default.string
|
|
244
|
+
} : void 0;
|
|
174
245
|
function GridEditLongTextarea(props) {
|
|
175
246
|
const {
|
|
176
247
|
id,
|
|
@@ -243,6 +314,76 @@ function GridEditLongTextarea(props) {
|
|
|
243
314
|
className: (0, _clsx.default)(classes.textarea, slotProps?.textarea?.className)
|
|
244
315
|
}));
|
|
245
316
|
}
|
|
317
|
+
process.env.NODE_ENV !== "production" ? GridEditLongTextarea.propTypes /* remove-proptypes */ = {
|
|
318
|
+
// ----------------------------- Warning --------------------------------
|
|
319
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
320
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
321
|
+
// ----------------------------------------------------------------------
|
|
322
|
+
/**
|
|
323
|
+
* GridApi that let you manipulate the grid.
|
|
324
|
+
*/
|
|
325
|
+
api: _propTypes.default.object.isRequired,
|
|
326
|
+
/**
|
|
327
|
+
* The mode of the cell.
|
|
328
|
+
*/
|
|
329
|
+
cellMode: _propTypes.default.oneOf(['edit', 'view']).isRequired,
|
|
330
|
+
changeReason: _propTypes.default.oneOf(['debouncedSetEditCellValue', 'setEditCellValue']),
|
|
331
|
+
/**
|
|
332
|
+
* The column of the row that the current cell belongs to.
|
|
333
|
+
*/
|
|
334
|
+
colDef: _propTypes.default.object.isRequired,
|
|
335
|
+
debounceMs: _propTypes.default.number,
|
|
336
|
+
/**
|
|
337
|
+
* The column field of the cell that triggered the event.
|
|
338
|
+
*/
|
|
339
|
+
field: _propTypes.default.string.isRequired,
|
|
340
|
+
/**
|
|
341
|
+
* The cell value formatted with the column valueFormatter.
|
|
342
|
+
*/
|
|
343
|
+
formattedValue: _propTypes.default.string,
|
|
344
|
+
/**
|
|
345
|
+
* If true, the cell is the active element.
|
|
346
|
+
*/
|
|
347
|
+
hasFocus: _propTypes.default.bool.isRequired,
|
|
348
|
+
/**
|
|
349
|
+
* The grid row id.
|
|
350
|
+
*/
|
|
351
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
352
|
+
/**
|
|
353
|
+
* If true, the cell is editable.
|
|
354
|
+
*/
|
|
355
|
+
isEditable: _propTypes.default.bool,
|
|
356
|
+
isProcessingProps: _propTypes.default.bool,
|
|
357
|
+
isValidating: _propTypes.default.bool,
|
|
358
|
+
/**
|
|
359
|
+
* Callback called when the value is changed by the user.
|
|
360
|
+
* @param {React.ChangeEvent<HTMLTextAreaElement>} event The event source of the callback.
|
|
361
|
+
* @param {string} newValue The value that is going to be passed to `apiRef.current.setEditCellValue`.
|
|
362
|
+
* @returns {Promise<void> | void} A promise to be awaited before calling `apiRef.current.setEditCellValue`
|
|
363
|
+
*/
|
|
364
|
+
onValueChange: _propTypes.default.func,
|
|
365
|
+
/**
|
|
366
|
+
* The row model of the row that the current cell belongs to.
|
|
367
|
+
*/
|
|
368
|
+
row: _propTypes.default.any.isRequired,
|
|
369
|
+
/**
|
|
370
|
+
* The node of the row that the current cell belongs to.
|
|
371
|
+
*/
|
|
372
|
+
rowNode: _propTypes.default.object.isRequired,
|
|
373
|
+
/**
|
|
374
|
+
* Props passed to internal components.
|
|
375
|
+
*/
|
|
376
|
+
slotProps: _propTypes.default.object,
|
|
377
|
+
/**
|
|
378
|
+
* the tabIndex value.
|
|
379
|
+
*/
|
|
380
|
+
tabIndex: _propTypes.default.oneOf([-1, 0]).isRequired,
|
|
381
|
+
/**
|
|
382
|
+
* The cell value.
|
|
383
|
+
* If the column has `valueGetter`, use `params.row` to directly access the fields.
|
|
384
|
+
*/
|
|
385
|
+
value: _propTypes.default.string
|
|
386
|
+
} : void 0;
|
|
246
387
|
const renderEditLongTextCell = params => /*#__PURE__*/(0, _jsxRuntime.jsx)(GridEditLongTextCell, (0, _extends2.default)({}, params));
|
|
247
388
|
exports.renderEditLongTextCell = renderEditLongTextCell;
|
|
248
389
|
if (process.env.NODE_ENV !== "production") renderEditLongTextCell.displayName = "renderEditLongTextCell";
|