@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
|
@@ -17,7 +17,7 @@ function GridColumnMenuColumnsItem(props) {
|
|
|
17
17
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GridColumnMenuHideItem.GridColumnMenuHideItem, (0, _extends2.default)({}, props)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridColumnMenuManageItem.GridColumnMenuManageItem, (0, _extends2.default)({}, props))]
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
|
|
20
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes /* remove-proptypes */ = {
|
|
21
21
|
// ----------------------------- Warning --------------------------------
|
|
22
22
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
23
23
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -9,7 +9,7 @@ function GridColumnMenuColumnsItem(props) {
|
|
|
9
9
|
children: [/*#__PURE__*/_jsx(GridColumnMenuHideItem, _extends({}, props)), /*#__PURE__*/_jsx(GridColumnMenuManageItem, _extends({}, props))]
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
|
|
12
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes /* remove-proptypes */ = {
|
|
13
13
|
// ----------------------------- Warning --------------------------------
|
|
14
14
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
15
15
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -33,7 +33,7 @@ function GridColumnMenuFilterItem(props) {
|
|
|
33
33
|
children: apiRef.current.getLocaleText('columnMenuFilter')
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
|
|
36
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes /* remove-proptypes */ = {
|
|
37
37
|
// ----------------------------- Warning --------------------------------
|
|
38
38
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
39
39
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -25,7 +25,7 @@ function GridColumnMenuFilterItem(props) {
|
|
|
25
25
|
children: apiRef.current.getLocaleText('columnMenuFilter')
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
|
|
28
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes /* remove-proptypes */ = {
|
|
29
29
|
// ----------------------------- Warning --------------------------------
|
|
30
30
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
31
31
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -50,7 +50,7 @@ function GridColumnMenuHideItem(props) {
|
|
|
50
50
|
children: apiRef.current.getLocaleText('columnMenuHideColumn')
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
|
|
53
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.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" |
|
|
@@ -42,7 +42,7 @@ function GridColumnMenuHideItem(props) {
|
|
|
42
42
|
children: apiRef.current.getLocaleText('columnMenuHideColumn')
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
|
|
45
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes /* remove-proptypes */ = {
|
|
46
46
|
// ----------------------------- Warning --------------------------------
|
|
47
47
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
48
48
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -33,7 +33,7 @@ function GridColumnMenuManageItem(props) {
|
|
|
33
33
|
children: apiRef.current.getLocaleText('columnMenuManageColumns')
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
|
|
36
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes /* remove-proptypes */ = {
|
|
37
37
|
// ----------------------------- Warning --------------------------------
|
|
38
38
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
39
39
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -25,7 +25,7 @@ function GridColumnMenuManageItem(props) {
|
|
|
25
25
|
children: apiRef.current.getLocaleText('columnMenuManageColumns')
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
|
|
28
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes /* remove-proptypes */ = {
|
|
29
29
|
// ----------------------------- Warning --------------------------------
|
|
30
30
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
31
31
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -66,7 +66,7 @@ function GridColumnMenuSortItem(props) {
|
|
|
66
66
|
}) : null]
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
|
|
69
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes /* remove-proptypes */ = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
72
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -58,7 +58,7 @@ function GridColumnMenuSortItem(props) {
|
|
|
58
58
|
}) : null]
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
|
|
61
|
+
process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.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" |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridPanelWrapperProps } from "./GridPanelWrapper.mjs";
|
|
2
2
|
export interface GridColumnsPanelProps extends GridPanelWrapperProps {}
|
|
3
3
|
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { GridColumnsPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GridPanelWrapperProps } from "./GridPanelWrapper.js";
|
|
2
2
|
export interface GridColumnsPanelProps extends GridPanelWrapperProps {}
|
|
3
3
|
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { GridColumnsPanel };
|
|
@@ -97,7 +97,7 @@ const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) =
|
|
|
97
97
|
}));
|
|
98
98
|
});
|
|
99
99
|
if (process.env.NODE_ENV !== "production") GridPanel.displayName = "GridPanel";
|
|
100
|
-
process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
|
|
100
|
+
process.env.NODE_ENV !== "production" ? GridPanel.propTypes /* remove-proptypes */ = {
|
|
101
101
|
// ----------------------------- Warning --------------------------------
|
|
102
102
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
103
103
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -90,7 +90,7 @@ const GridPanel = forwardRef((props, ref) => {
|
|
|
90
90
|
}));
|
|
91
91
|
});
|
|
92
92
|
if (process.env.NODE_ENV !== "production") GridPanel.displayName = "GridPanel";
|
|
93
|
-
process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
|
|
93
|
+
process.env.NODE_ENV !== "production" ? GridPanel.propTypes /* remove-proptypes */ = {
|
|
94
94
|
// ----------------------------- Warning --------------------------------
|
|
95
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
96
96
|
// | 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 { SxProps, Theme } from '@mui/system';
|
|
3
3
|
declare function GridPanelContent(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SxProps, Theme } from '@mui/system';
|
|
3
3
|
declare function GridPanelContent(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -51,7 +51,7 @@ function GridPanelContent(props) {
|
|
|
51
51
|
ownerState: rootProps
|
|
52
52
|
}, other));
|
|
53
53
|
}
|
|
54
|
-
process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
|
|
54
|
+
process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes /* remove-proptypes */ = {
|
|
55
55
|
// ----------------------------- Warning --------------------------------
|
|
56
56
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
57
57
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -43,7 +43,7 @@ function GridPanelContent(props) {
|
|
|
43
43
|
ownerState: rootProps
|
|
44
44
|
}, other));
|
|
45
45
|
}
|
|
46
|
-
process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
|
|
46
|
+
process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes /* remove-proptypes */ = {
|
|
47
47
|
// ----------------------------- Warning --------------------------------
|
|
48
48
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49
49
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export interface GridPanelTrigger {
|
|
3
|
+
setRef: (instance: HTMLElement | null) => void;
|
|
4
|
+
element: HTMLElement | null;
|
|
5
|
+
}
|
|
2
6
|
export interface GridPanelContextValue {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
triggers: {
|
|
8
|
+
filterPanel: GridPanelTrigger;
|
|
9
|
+
aiAssistantPanel: GridPanelTrigger;
|
|
10
|
+
columnsPanel: GridPanelTrigger;
|
|
11
|
+
};
|
|
6
12
|
}
|
|
7
13
|
export declare const GridPanelContext: React.Context<GridPanelContextValue | undefined>;
|
|
8
14
|
export declare function useGridPanelContext(): GridPanelContextValue;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export interface GridPanelTrigger {
|
|
3
|
+
setRef: (instance: HTMLElement | null) => void;
|
|
4
|
+
element: HTMLElement | null;
|
|
5
|
+
}
|
|
2
6
|
export interface GridPanelContextValue {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
triggers: {
|
|
8
|
+
filterPanel: GridPanelTrigger;
|
|
9
|
+
aiAssistantPanel: GridPanelTrigger;
|
|
10
|
+
columnsPanel: GridPanelTrigger;
|
|
11
|
+
};
|
|
6
12
|
}
|
|
7
13
|
export declare const GridPanelContext: React.Context<GridPanelContextValue | undefined>;
|
|
8
14
|
export declare function useGridPanelContext(): GridPanelContextValue;
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.GridPanelContext = void 0;
|
|
10
10
|
exports.GridPanelContextProvider = GridPanelContextProvider;
|
|
11
11
|
exports.useGridPanelContext = useGridPanelContext;
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
13
|
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
13
14
|
var React = _interopRequireWildcard(require("react"));
|
|
14
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -24,14 +25,46 @@ function useGridPanelContext() {
|
|
|
24
25
|
function GridPanelContextProvider({
|
|
25
26
|
children
|
|
26
27
|
}) {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
const [triggerElements, setTriggerElements] = React.useState({
|
|
29
|
+
columnsPanel: null,
|
|
30
|
+
filterPanel: null,
|
|
31
|
+
aiAssistantPanel: null
|
|
32
|
+
});
|
|
33
|
+
const updateTriggerElement = React.useCallback((key, instance) => {
|
|
34
|
+
setTriggerElements(prev => {
|
|
35
|
+
if (prev[key] === instance) {
|
|
36
|
+
return prev;
|
|
37
|
+
}
|
|
38
|
+
return (0, _extends2.default)({}, prev, {
|
|
39
|
+
[key]: instance
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
}, []);
|
|
43
|
+
const setColumnsPanelTrigger = React.useCallback(instance => {
|
|
44
|
+
updateTriggerElement('columnsPanel', instance);
|
|
45
|
+
}, [updateTriggerElement]);
|
|
46
|
+
const setFilterPanelTrigger = React.useCallback(instance => {
|
|
47
|
+
updateTriggerElement('filterPanel', instance);
|
|
48
|
+
}, [updateTriggerElement]);
|
|
49
|
+
const setAiAssistantPanelTrigger = React.useCallback(instance => {
|
|
50
|
+
updateTriggerElement('aiAssistantPanel', instance);
|
|
51
|
+
}, [updateTriggerElement]);
|
|
30
52
|
const value = React.useMemo(() => ({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
triggers: {
|
|
54
|
+
columnsPanel: {
|
|
55
|
+
element: triggerElements.columnsPanel,
|
|
56
|
+
setRef: setColumnsPanelTrigger
|
|
57
|
+
},
|
|
58
|
+
filterPanel: {
|
|
59
|
+
element: triggerElements.filterPanel,
|
|
60
|
+
setRef: setFilterPanelTrigger
|
|
61
|
+
},
|
|
62
|
+
aiAssistantPanel: {
|
|
63
|
+
element: triggerElements.aiAssistantPanel,
|
|
64
|
+
setRef: setAiAssistantPanelTrigger
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}), [triggerElements, setColumnsPanelTrigger, setFilterPanelTrigger, setAiAssistantPanelTrigger]);
|
|
35
68
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridPanelContext.Provider, {
|
|
36
69
|
value: value,
|
|
37
70
|
children: children
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
4
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -15,14 +16,46 @@ export function useGridPanelContext() {
|
|
|
15
16
|
export function GridPanelContextProvider({
|
|
16
17
|
children
|
|
17
18
|
}) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const [triggerElements, setTriggerElements] = React.useState({
|
|
20
|
+
columnsPanel: null,
|
|
21
|
+
filterPanel: null,
|
|
22
|
+
aiAssistantPanel: null
|
|
23
|
+
});
|
|
24
|
+
const updateTriggerElement = React.useCallback((key, instance) => {
|
|
25
|
+
setTriggerElements(prev => {
|
|
26
|
+
if (prev[key] === instance) {
|
|
27
|
+
return prev;
|
|
28
|
+
}
|
|
29
|
+
return _extends({}, prev, {
|
|
30
|
+
[key]: instance
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}, []);
|
|
34
|
+
const setColumnsPanelTrigger = React.useCallback(instance => {
|
|
35
|
+
updateTriggerElement('columnsPanel', instance);
|
|
36
|
+
}, [updateTriggerElement]);
|
|
37
|
+
const setFilterPanelTrigger = React.useCallback(instance => {
|
|
38
|
+
updateTriggerElement('filterPanel', instance);
|
|
39
|
+
}, [updateTriggerElement]);
|
|
40
|
+
const setAiAssistantPanelTrigger = React.useCallback(instance => {
|
|
41
|
+
updateTriggerElement('aiAssistantPanel', instance);
|
|
42
|
+
}, [updateTriggerElement]);
|
|
21
43
|
const value = React.useMemo(() => ({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
44
|
+
triggers: {
|
|
45
|
+
columnsPanel: {
|
|
46
|
+
element: triggerElements.columnsPanel,
|
|
47
|
+
setRef: setColumnsPanelTrigger
|
|
48
|
+
},
|
|
49
|
+
filterPanel: {
|
|
50
|
+
element: triggerElements.filterPanel,
|
|
51
|
+
setRef: setFilterPanelTrigger
|
|
52
|
+
},
|
|
53
|
+
aiAssistantPanel: {
|
|
54
|
+
element: triggerElements.aiAssistantPanel,
|
|
55
|
+
setRef: setAiAssistantPanelTrigger
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}), [triggerElements, setColumnsPanelTrigger, setFilterPanelTrigger, setAiAssistantPanelTrigger]);
|
|
26
59
|
return /*#__PURE__*/_jsx(GridPanelContext.Provider, {
|
|
27
60
|
value: value,
|
|
28
61
|
children: children
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
declare function GridPanelFooter(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
declare function GridPanelFooter(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -48,7 +48,7 @@ function GridPanelFooter(props) {
|
|
|
48
48
|
ownerState: rootProps
|
|
49
49
|
}, other));
|
|
50
50
|
}
|
|
51
|
-
process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
|
|
51
|
+
process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes /* remove-proptypes */ = {
|
|
52
52
|
// ----------------------------- Warning --------------------------------
|
|
53
53
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
54
54
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -40,7 +40,7 @@ function GridPanelFooter(props) {
|
|
|
40
40
|
ownerState: rootProps
|
|
41
41
|
}, other));
|
|
42
42
|
}
|
|
43
|
-
process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
|
|
43
|
+
process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes /* remove-proptypes */ = {
|
|
44
44
|
// ----------------------------- Warning --------------------------------
|
|
45
45
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
46
46
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -49,7 +49,7 @@ function GridPanelHeader(props) {
|
|
|
49
49
|
ownerState: rootProps
|
|
50
50
|
}, other));
|
|
51
51
|
}
|
|
52
|
-
process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
|
|
52
|
+
process.env.NODE_ENV !== "production" ? GridPanelHeader.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" |
|
|
@@ -41,7 +41,7 @@ function GridPanelHeader(props) {
|
|
|
41
41
|
ownerState: rootProps
|
|
42
42
|
}, other));
|
|
43
43
|
}
|
|
44
|
-
process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
|
|
44
|
+
process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes /* remove-proptypes */ = {
|
|
45
45
|
// ----------------------------- Warning --------------------------------
|
|
46
46
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
47
47
|
// | 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 { Theme } from '@mui/material/styles';
|
|
3
3
|
import type { MUIStyledCommonProps } from '@mui/system';
|
|
4
4
|
export interface GridPanelWrapperProps extends React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>, MUIStyledCommonProps<Theme> {}
|
|
5
5
|
declare const GridPanelWrapper: React.ForwardRefExoticComponent<GridPanelWrapperProps> | React.ForwardRefExoticComponent<GridPanelWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { Theme } from '@mui/material/styles';
|
|
3
3
|
import type { MUIStyledCommonProps } from '@mui/system';
|
|
4
4
|
export interface GridPanelWrapperProps extends React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>, MUIStyledCommonProps<Theme> {}
|
|
5
5
|
declare const GridPanelWrapper: React.ForwardRefExoticComponent<GridPanelWrapperProps> | React.ForwardRefExoticComponent<GridPanelWrapperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -20,21 +20,19 @@ function GridPreferencesPanel() {
|
|
|
20
20
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
21
21
|
const preferencePanelState = (0, _useGridSelector.useGridSelector)(apiRef, _gridPreferencePanelSelector.gridPreferencePanelStateSelector);
|
|
22
22
|
const {
|
|
23
|
-
|
|
24
|
-
filterPanelTriggerRef,
|
|
25
|
-
aiAssistantPanelTriggerRef
|
|
23
|
+
triggers
|
|
26
24
|
} = (0, _GridPanelContext.useGridPanelContext)();
|
|
27
25
|
const panelContent = apiRef.current.unstable_applyPipeProcessors('preferencePanel', null, preferencePanelState.openedPanelValue ?? _gridPreferencePanelsValue.GridPreferencePanelsValue.filters);
|
|
28
26
|
let target = null;
|
|
29
27
|
switch (preferencePanelState.openedPanelValue) {
|
|
30
28
|
case _gridPreferencePanelsValue.GridPreferencePanelsValue.filters:
|
|
31
|
-
target =
|
|
29
|
+
target = triggers.filterPanel.element;
|
|
32
30
|
break;
|
|
33
31
|
case _gridPreferencePanelsValue.GridPreferencePanelsValue.columns:
|
|
34
|
-
target =
|
|
32
|
+
target = triggers.columnsPanel.element;
|
|
35
33
|
break;
|
|
36
34
|
case _gridPreferencePanelsValue.GridPreferencePanelsValue.aiAssistant:
|
|
37
|
-
target =
|
|
35
|
+
target = triggers.aiAssistantPanel.element;
|
|
38
36
|
break;
|
|
39
37
|
default:
|
|
40
38
|
}
|
|
@@ -13,21 +13,19 @@ export function GridPreferencesPanel() {
|
|
|
13
13
|
const rootProps = useGridRootProps();
|
|
14
14
|
const preferencePanelState = useGridSelector(apiRef, gridPreferencePanelStateSelector);
|
|
15
15
|
const {
|
|
16
|
-
|
|
17
|
-
filterPanelTriggerRef,
|
|
18
|
-
aiAssistantPanelTriggerRef
|
|
16
|
+
triggers
|
|
19
17
|
} = useGridPanelContext();
|
|
20
18
|
const panelContent = apiRef.current.unstable_applyPipeProcessors('preferencePanel', null, preferencePanelState.openedPanelValue ?? GridPreferencePanelsValue.filters);
|
|
21
19
|
let target = null;
|
|
22
20
|
switch (preferencePanelState.openedPanelValue) {
|
|
23
21
|
case GridPreferencePanelsValue.filters:
|
|
24
|
-
target =
|
|
22
|
+
target = triggers.filterPanel.element;
|
|
25
23
|
break;
|
|
26
24
|
case GridPreferencePanelsValue.columns:
|
|
27
|
-
target =
|
|
25
|
+
target = triggers.columnsPanel.element;
|
|
28
26
|
break;
|
|
29
27
|
case GridPreferencePanelsValue.aiAssistant:
|
|
30
|
-
target =
|
|
28
|
+
target = triggers.aiAssistantPanel.element;
|
|
31
29
|
break;
|
|
32
30
|
default:
|
|
33
31
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GridLogicOperator } from "../../../models/gridFilterItem.mjs";
|
|
3
|
+
import type { GridFilterItem } from "../../../models/gridFilterItem.mjs";
|
|
3
4
|
import type { GridColDef, GridStateColDef } from "../../../models/colDef/gridColDef.mjs";
|
|
4
5
|
export interface FilterColumnsArgs {
|
|
5
6
|
field: GridColDef['field'];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { GridLogicOperator } from "../../../models/gridFilterItem.js";
|
|
3
|
+
import type { GridFilterItem } from "../../../models/gridFilterItem.js";
|
|
3
4
|
import type { GridColDef, GridStateColDef } from "../../../models/colDef/gridColDef.js";
|
|
4
5
|
export interface FilterColumnsArgs {
|
|
5
6
|
field: GridColDef['field'];
|
|
@@ -372,7 +372,7 @@ const GridFilterForm = exports.GridFilterForm = (0, _forwardRef.forwardRef)(func
|
|
|
372
372
|
}));
|
|
373
373
|
});
|
|
374
374
|
if (process.env.NODE_ENV !== "production") GridFilterForm.displayName = "GridFilterForm";
|
|
375
|
-
process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
|
|
375
|
+
process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes /* remove-proptypes */ = {
|
|
376
376
|
// ----------------------------- Warning --------------------------------
|
|
377
377
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
378
378
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -365,7 +365,7 @@ const GridFilterForm = forwardRef(function GridFilterForm(props, ref) {
|
|
|
365
365
|
}));
|
|
366
366
|
});
|
|
367
367
|
if (process.env.NODE_ENV !== "production") GridFilterForm.displayName = "GridFilterForm";
|
|
368
|
-
process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
|
|
368
|
+
process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes /* remove-proptypes */ = {
|
|
369
369
|
// ----------------------------- Warning --------------------------------
|
|
370
370
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
371
371
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -90,7 +90,7 @@ function sanitizeFilterItemValue(value) {
|
|
|
90
90
|
}
|
|
91
91
|
return undefined;
|
|
92
92
|
}
|
|
93
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
|
|
93
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes /* remove-proptypes */ = {
|
|
94
94
|
// ----------------------------- Warning --------------------------------
|
|
95
95
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
96
96
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -82,7 +82,7 @@ export function sanitizeFilterItemValue(value) {
|
|
|
82
82
|
}
|
|
83
83
|
return undefined;
|
|
84
84
|
}
|
|
85
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
|
|
85
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.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" |
|
|
@@ -100,7 +100,7 @@ function GridFilterInputDate(props) {
|
|
|
100
100
|
}, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
|
|
103
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes /* remove-proptypes */ = {
|
|
104
104
|
// ----------------------------- Warning --------------------------------
|
|
105
105
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
106
106
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -93,7 +93,7 @@ function GridFilterInputDate(props) {
|
|
|
93
93
|
}, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
|
|
96
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes /* remove-proptypes */ = {
|
|
97
97
|
// ----------------------------- Warning --------------------------------
|
|
98
98
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
99
99
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -77,7 +77,7 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
77
77
|
}
|
|
78
78
|
}, other, slotProps?.root));
|
|
79
79
|
}
|
|
80
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
|
|
80
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes /* remove-proptypes */ = {
|
|
81
81
|
// ----------------------------- Warning --------------------------------
|
|
82
82
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
83
83
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -69,7 +69,7 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
69
69
|
}
|
|
70
70
|
}, other, slotProps?.root));
|
|
71
71
|
}
|
|
72
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
|
|
72
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes /* remove-proptypes */ = {
|
|
73
73
|
// ----------------------------- Warning --------------------------------
|
|
74
74
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
75
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -66,7 +66,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
66
66
|
}
|
|
67
67
|
}, other, slotProps?.root));
|
|
68
68
|
}
|
|
69
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
|
|
69
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes /* remove-proptypes */ = {
|
|
70
70
|
// ----------------------------- Warning --------------------------------
|
|
71
71
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
72
72
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -59,7 +59,7 @@ function GridFilterInputMultipleValue(props) {
|
|
|
59
59
|
}
|
|
60
60
|
}, other, slotProps?.root));
|
|
61
61
|
}
|
|
62
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
|
|
62
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes /* remove-proptypes */ = {
|
|
63
63
|
// ----------------------------- Warning --------------------------------
|
|
64
64
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
65
65
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -103,7 +103,7 @@ function GridFilterInputSingleSelect(props) {
|
|
|
103
103
|
})), headerFilterMenu, clearButton]
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
|
|
106
|
+
process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes /* remove-proptypes */ = {
|
|
107
107
|
// ----------------------------- Warning --------------------------------
|
|
108
108
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
109
109
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|