@mui/x-data-grid 8.0.0-alpha.1 → 8.0.0-alpha.10
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 +1903 -231
- package/DataGrid/DataGrid.js +20 -38
- package/DataGrid/useDataGridComponent.d.ts +2 -1
- package/DataGrid/useDataGridComponent.js +1 -1
- package/DataGrid/useDataGridProps.js +3 -3
- package/README.md +1 -1
- package/colDef/gridDateOperators.d.ts +2 -1
- package/colDef/gridNumericOperators.d.ts +4 -1
- package/components/GridApiContext.js +2 -0
- package/components/GridColumnHeaders.d.ts +1 -1
- package/components/GridColumnHeaders.js +4 -4
- package/components/GridConfigurationContext.js +2 -0
- package/components/GridFooter.d.ts +2 -1
- package/components/GridFooter.js +4 -4
- package/components/GridHeaders.js +2 -2
- package/components/GridLoadingOverlay.d.ts +1 -1
- package/components/GridLoadingOverlay.js +10 -8
- package/components/GridNoResultsOverlay.d.ts +2 -1
- package/components/GridNoResultsOverlay.js +4 -4
- package/components/GridNoRowsOverlay.d.ts +2 -1
- package/components/GridNoRowsOverlay.js +4 -4
- package/components/GridPagination.d.ts +1 -1
- package/components/GridPagination.js +7 -4
- package/components/GridRow.d.ts +6 -11
- package/components/GridRow.js +55 -87
- package/components/GridRowCount.d.ts +1 -1
- package/components/GridRowCount.js +3 -2
- package/components/GridScrollArea.js +2 -0
- package/components/GridSelectedRowCount.d.ts +4 -1
- package/components/GridSelectedRowCount.js +3 -2
- package/components/GridSkeletonLoadingOverlay.d.ts +1 -1
- package/components/GridSkeletonLoadingOverlay.js +22 -21
- package/components/base/GridOverlays.d.ts +4 -3
- package/components/base/GridOverlays.js +2 -24
- package/components/base/index.d.ts +0 -1
- package/components/base/index.js +1 -2
- package/components/cell/GridActionsCell.js +8 -1
- package/components/cell/GridActionsCellItem.d.ts +17 -10
- package/components/cell/GridActionsCellItem.js +9 -8
- package/components/cell/GridCell.d.ts +19 -23
- package/components/cell/GridCell.js +49 -92
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.d.ts +1 -1
- package/components/cell/GridEditInputCell.js +73 -4
- package/components/cell/GridEditSingleSelectCell.js +2 -2
- package/components/cell/GridSkeletonCell.js +1 -2
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
- package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +3 -3
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -7
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
- package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
- package/components/columnHeaders/GridIconButtonContainer.d.ts +1 -1
- package/components/columnHeaders/GridIconButtonContainer.js +5 -3
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
- package/components/columnSelection/GridCellCheckboxRenderer.js +11 -9
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +17 -9
- package/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.js +50 -27
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +5 -3
- package/components/containers/GridOverlay.d.ts +1 -1
- package/components/containers/GridOverlay.js +5 -3
- package/components/containers/GridRoot.d.ts +2 -2
- package/components/containers/GridRoot.js +18 -8
- package/components/containers/GridRootStyles.js +160 -50
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/containers/GridToolbarContainer.js +3 -2
- package/components/menu/columnMenu/GridColumnMenu.d.ts +2 -2
- package/components/menu/columnMenu/GridColumnMenu.js +5 -5
- package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +1 -1
- package/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
- package/components/panel/GridColumnsPanel.js +1 -2
- package/components/panel/GridPanel.d.ts +2 -2
- package/components/panel/GridPanel.js +5 -3
- package/components/panel/GridPanelContent.js +7 -3
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelFooter.js +4 -3
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPanelWrapper.js +5 -3
- package/components/panel/filterPanel/GridFilterForm.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +22 -18
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +4 -11
- package/components/panel/filterPanel/GridFilterInputBoolean.js +41 -31
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +3 -9
- package/components/panel/filterPanel/GridFilterInputDate.js +50 -31
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -3
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -3
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +3 -9
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +3 -9
- package/components/panel/filterPanel/GridFilterInputValue.js +63 -38
- package/components/panel/filterPanel/GridFilterPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterPanel.js +4 -4
- package/components/panel/filterPanel/index.d.ts +2 -2
- package/components/panel/filterPanel/index.js +1 -2
- package/components/toolbar/GridToolbar.d.ts +1 -1
- package/components/toolbar/GridToolbar.js +11 -5
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.js +12 -6
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.js +9 -11
- package/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.js +2 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.js +6 -6
- package/components/toolbar/GridToolbarFilterButton.d.ts +3 -1
- package/components/toolbar/GridToolbarFilterButton.js +20 -9
- package/components/toolbar/GridToolbarQuickFilter.d.ts +6 -2
- package/components/toolbar/GridToolbarQuickFilter.js +39 -31
- package/components/virtualization/GridMainContainer.d.ts +13 -1
- package/components/virtualization/GridMainContainer.js +14 -5
- package/components/virtualization/GridVirtualScrollbar.d.ts +5 -1
- package/components/virtualization/GridVirtualScrollbar.js +17 -17
- package/components/virtualization/GridVirtualScroller.js +27 -12
- package/components/virtualization/GridVirtualScrollerContent.d.ts +2 -0
- package/components/virtualization/GridVirtualScrollerContent.js +15 -6
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +2 -0
- package/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
- package/constants/dataGridPropsDefaultValues.js +2 -4
- package/constants/gridClasses.d.ts +12 -12
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -1
- package/context/GridContextProvider.d.ts +2 -1
- package/context/GridRootPropsContext.js +2 -0
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +9 -2
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +25 -9
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +2 -2
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +5 -8
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/hooks/core/useGridApiInitialization.d.ts +2 -2
- package/hooks/core/useGridApiInitialization.js +2 -2
- package/hooks/core/useGridInitialization.d.ts +2 -2
- package/hooks/core/useGridIsRtl.d.ts +2 -2
- package/hooks/core/useGridLocaleText.d.ts +2 -2
- package/hooks/core/useGridLoggerFactory.d.ts +2 -2
- package/hooks/core/useGridRefs.d.ts +2 -2
- package/hooks/core/useGridStateInitialization.d.ts +2 -2
- package/hooks/core/useGridStateInitialization.js +3 -3
- package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +4 -4
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +2 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +33 -68
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -2
- package/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
- package/hooks/features/columnResize/gridColumnResizeApi.d.ts +6 -0
- package/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/hooks/features/columnResize/useGridColumnResize.js +17 -10
- package/hooks/features/columns/gridColumnsSelector.d.ts +12 -12
- package/hooks/features/columns/gridColumnsUtils.d.ts +4 -4
- package/hooks/features/columns/gridColumnsUtils.js +2 -1
- package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
- package/hooks/features/columns/useGridColumns.d.ts +2 -2
- package/hooks/features/columns/useGridColumns.js +7 -3
- package/hooks/features/density/densitySelector.d.ts +1 -1
- package/hooks/features/density/useGridDensity.d.ts +2 -2
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
- package/hooks/features/dimensions/useGridDimensions.d.ts +2 -2
- package/hooks/features/dimensions/useGridDimensions.js +11 -32
- package/hooks/features/editing/gridEditingSelectors.d.ts +6 -0
- package/hooks/features/editing/gridEditingSelectors.js +7 -1
- package/hooks/features/editing/useGridCellEditing.d.ts +2 -2
- package/hooks/features/editing/useGridCellEditing.js +4 -4
- package/hooks/features/editing/useGridEditing.d.ts +2 -2
- package/hooks/features/editing/useGridRowEditing.d.ts +2 -2
- package/hooks/features/editing/useGridRowEditing.js +7 -8
- package/hooks/features/events/useGridEvents.d.ts +2 -2
- package/hooks/features/export/serializers/csvSerializer.d.ts +2 -1
- package/hooks/features/export/useGridCsvExport.d.ts +2 -2
- package/hooks/features/export/useGridPrintExport.d.ts +2 -2
- package/hooks/features/export/useGridPrintExport.js +1 -1
- package/hooks/features/export/utils.d.ts +2 -2
- package/hooks/features/filter/gridFilterSelector.d.ts +17 -17
- package/hooks/features/filter/gridFilterSelector.js +6 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +7 -7
- package/hooks/features/filter/gridFilterUtils.js +3 -3
- package/hooks/features/filter/useGridFilter.d.ts +2 -2
- package/hooks/features/filter/useGridFilter.js +1 -1
- package/hooks/features/focus/gridFocusStateSelector.d.ts +8 -8
- package/hooks/features/focus/useGridFocus.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.js +3 -2
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +2 -2
- package/hooks/features/index.d.ts +1 -0
- package/hooks/features/index.js +1 -0
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -16
- package/hooks/features/keyboardNavigation/utils.d.ts +3 -4
- package/hooks/features/keyboardNavigation/utils.js +0 -5
- package/hooks/features/listView/gridListViewSelectors.d.ts +3 -1
- package/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/hooks/features/listView/index.d.ts +1 -0
- package/hooks/features/listView/index.js +1 -0
- package/hooks/features/listView/useGridListView.d.ts +2 -2
- package/hooks/features/listView/useGridListView.js +2 -1
- package/hooks/features/overlays/useGridOverlays.d.ts +7 -4
- package/hooks/features/overlays/useGridOverlays.js +22 -2
- package/hooks/features/pagination/gridPaginationInterfaces.d.ts +3 -0
- package/hooks/features/pagination/gridPaginationSelector.d.ts +34 -9
- package/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/hooks/features/pagination/useGridPagination.d.ts +3 -3
- package/hooks/features/pagination/useGridPagination.js +5 -3
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +2 -2
- package/hooks/features/pagination/useGridPaginationModel.d.ts +2 -2
- package/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +2 -2
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +1 -0
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +8 -1
- package/hooks/features/preferencesPanel/index.d.ts +1 -1
- package/hooks/features/preferencesPanel/index.js +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +2 -2
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +2 -2
- package/hooks/features/rowSelection/useGridRowSelection.js +8 -16
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +2 -2
- package/hooks/features/rowSelection/utils.d.ts +4 -3
- package/hooks/features/rowSelection/utils.js +2 -2
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +2 -2
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -8
- package/hooks/features/rows/gridRowsSelector.d.ts +23 -13
- package/hooks/features/rows/gridRowsSelector.js +1 -2
- package/hooks/features/rows/gridRowsUtils.d.ts +4 -4
- package/hooks/features/rows/gridRowsUtils.js +0 -9
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridParamsApi.d.ts +2 -2
- package/hooks/features/rows/useGridParamsApi.js +33 -14
- package/hooks/features/rows/useGridRowSpanning.d.ts +2 -2
- package/hooks/features/rows/useGridRowSpanning.js +97 -86
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +23 -27
- package/hooks/features/rows/useGridRowsMeta.d.ts +2 -2
- package/hooks/features/rows/useGridRowsMeta.js +3 -2
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
- package/hooks/features/scroll/useGridScroll.d.ts +2 -2
- package/hooks/features/sorting/gridSortingSelector.d.ts +10 -5
- package/hooks/features/sorting/gridSortingSelector.js +11 -0
- package/hooks/features/sorting/gridSortingUtils.d.ts +3 -3
- package/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/hooks/features/sorting/index.d.ts +2 -1
- package/hooks/features/sorting/index.js +1 -1
- package/hooks/features/sorting/useGridSorting.d.ts +2 -2
- package/hooks/features/sorting/useGridSorting.js +1 -1
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +33 -0
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +5 -5
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +15 -6
- package/hooks/features/virtualization/useGridVirtualScroller.js +169 -94
- package/hooks/features/virtualization/useGridVirtualization.d.ts +2 -2
- package/hooks/utils/useGridApiContext.d.ts +2 -2
- package/hooks/utils/useGridApiEventHandler.d.ts +4 -4
- package/hooks/utils/useGridApiEventHandler.js +1 -1
- package/hooks/utils/useGridApiMethod.d.ts +2 -2
- package/hooks/utils/useGridApiRef.d.ts +2 -2
- package/hooks/utils/useGridApiRef.js +1 -1
- package/hooks/utils/useGridInitializeState.d.ts +3 -3
- package/hooks/utils/useGridLogger.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.d.ts +2 -1
- package/hooks/utils/useGridPrivateApiContext.d.ts +2 -1
- package/hooks/utils/useGridSelector.d.ts +5 -7
- package/hooks/utils/useGridSelector.js +6 -44
- package/hooks/utils/useGridVisibleRows.d.ts +8 -6
- package/hooks/utils/useGridVisibleRows.js +5 -28
- package/index.js +1 -1
- package/internals/constants.d.ts +6 -0
- package/internals/constants.js +8 -1
- package/internals/index.d.ts +6 -4
- package/internals/index.js +4 -3
- package/internals/utils/attachPinnedStyle.d.ts +2 -0
- package/internals/utils/attachPinnedStyle.js +9 -0
- package/internals/utils/getPinnedCellOffset.d.ts +3 -3
- package/internals/utils/getPinnedCellOffset.js +6 -7
- package/internals/utils/index.d.ts +1 -1
- package/internals/utils/index.js +2 -2
- package/locales/arSD.js +2 -1
- package/locales/beBY.js +1 -1
- package/locales/bgBG.js +2 -1
- package/locales/csCZ.js +2 -1
- package/locales/daDK.js +2 -1
- package/locales/deDE.js +12 -13
- package/locales/elGR.js +2 -1
- package/locales/esES.js +12 -13
- package/locales/faIR.js +7 -7
- package/locales/fiFI.js +2 -1
- package/locales/frFR.js +2 -1
- package/locales/heIL.js +16 -17
- package/locales/hrHR.js +2 -1
- package/locales/huHU.js +2 -1
- package/locales/isIS.js +2 -1
- package/locales/itIT.js +2 -1
- package/locales/jaJP.js +2 -1
- package/locales/koKR.js +46 -49
- package/locales/nbNO.js +2 -1
- package/locales/nlNL.js +7 -7
- package/locales/nnNO.js +2 -1
- package/locales/plPL.js +2 -1
- package/locales/ptBR.js +12 -13
- package/locales/ptPT.js +12 -13
- package/locales/roRO.js +20 -21
- package/locales/ruRU.js +2 -1
- package/locales/skSK.js +2 -1
- package/locales/svSE.js +2 -1
- package/locales/trTR.js +14 -15
- package/locales/ukUA.js +2 -1
- package/locales/urPK.js +11 -11
- package/locales/viVN.js +2 -1
- package/locales/zhCN.js +12 -13
- package/locales/zhHK.js +2 -1
- package/locales/zhTW.js +2 -1
- package/material/index.js +58 -7
- package/models/api/gridApiCommon.d.ts +2 -2
- package/models/api/gridCoreApi.d.ts +7 -7
- package/models/api/gridDensityApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -1
- package/models/api/gridParamsApi.d.ts +29 -2
- package/models/api/gridStateApi.d.ts +1 -1
- package/models/api/index.d.ts +1 -1
- package/models/api/index.js +0 -1
- package/models/colDef/gridColDef.d.ts +34 -33
- package/models/controlStateItem.d.ts +2 -2
- package/models/events/gridEventLookup.d.ts +7 -1
- package/models/gridBaseSlots.d.ts +95 -0
- package/models/gridDataSource.d.ts +1 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFilterInputComponent.d.ts +32 -0
- package/models/gridFilterOperator.d.ts +6 -4
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponent.d.ts +16 -1
- package/models/gridSlotsComponentsProps.d.ts +45 -9
- package/models/gridStateCommunity.d.ts +4 -0
- package/models/index.d.ts +1 -0
- package/models/props/DataGridProps.d.ts +12 -24
- package/modern/DataGrid/DataGrid.js +20 -38
- package/modern/DataGrid/useDataGridComponent.js +1 -1
- package/modern/DataGrid/useDataGridProps.js +3 -3
- package/modern/components/GridApiContext.js +2 -0
- package/modern/components/GridColumnHeaders.js +4 -4
- package/modern/components/GridConfigurationContext.js +2 -0
- package/modern/components/GridFooter.js +4 -4
- package/modern/components/GridHeaders.js +2 -2
- package/modern/components/GridLoadingOverlay.js +10 -8
- package/modern/components/GridNoResultsOverlay.js +4 -4
- package/modern/components/GridNoRowsOverlay.js +4 -4
- package/modern/components/GridPagination.js +7 -4
- package/modern/components/GridRow.js +55 -87
- package/modern/components/GridRowCount.js +3 -2
- package/modern/components/GridScrollArea.js +2 -0
- package/modern/components/GridSelectedRowCount.js +3 -2
- package/modern/components/GridSkeletonLoadingOverlay.js +22 -21
- package/modern/components/base/GridOverlays.js +2 -24
- package/modern/components/base/index.js +1 -2
- package/modern/components/cell/GridActionsCell.js +8 -1
- package/modern/components/cell/GridActionsCellItem.js +9 -8
- package/modern/components/cell/GridCell.js +49 -92
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +73 -4
- package/modern/components/cell/GridEditSingleSelectCell.js +2 -2
- package/modern/components/cell/GridSkeletonCell.js +1 -2
- package/modern/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -7
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
- package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
- package/modern/components/columnHeaders/GridIconButtonContainer.js +5 -3
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +11 -9
- package/modern/components/columnSelection/GridHeaderCheckbox.js +17 -9
- package/modern/components/columnsManagement/GridColumnsManagement.js +50 -27
- package/modern/components/containers/GridFooterContainer.js +5 -3
- package/modern/components/containers/GridOverlay.js +5 -3
- package/modern/components/containers/GridRoot.js +18 -8
- package/modern/components/containers/GridRootStyles.js +160 -50
- package/modern/components/containers/GridToolbarContainer.js +3 -2
- package/modern/components/menu/columnMenu/GridColumnMenu.js +5 -5
- package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
- package/modern/components/panel/GridColumnsPanel.js +1 -2
- package/modern/components/panel/GridPanel.js +5 -3
- package/modern/components/panel/GridPanelContent.js +7 -3
- package/modern/components/panel/GridPanelFooter.js +4 -3
- package/modern/components/panel/GridPanelWrapper.js +5 -3
- package/modern/components/panel/filterPanel/GridFilterForm.js +22 -18
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +41 -31
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +50 -31
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +63 -38
- package/modern/components/panel/filterPanel/GridFilterPanel.js +4 -4
- package/modern/components/panel/filterPanel/index.js +1 -2
- package/modern/components/toolbar/GridToolbar.js +11 -5
- package/modern/components/toolbar/GridToolbarColumnsButton.js +12 -6
- package/modern/components/toolbar/GridToolbarDensitySelector.js +9 -11
- package/modern/components/toolbar/GridToolbarExport.js +2 -1
- package/modern/components/toolbar/GridToolbarExportContainer.js +6 -6
- package/modern/components/toolbar/GridToolbarFilterButton.js +20 -9
- package/modern/components/toolbar/GridToolbarQuickFilter.js +39 -31
- package/modern/components/virtualization/GridMainContainer.js +14 -5
- package/modern/components/virtualization/GridVirtualScrollbar.js +17 -17
- package/modern/components/virtualization/GridVirtualScroller.js +27 -12
- package/modern/components/virtualization/GridVirtualScrollerContent.js +15 -6
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
- package/modern/constants/dataGridPropsDefaultValues.js +2 -4
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -1
- package/modern/context/GridRootPropsContext.js +2 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/modern/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/modern/hooks/core/useGridApiInitialization.js +2 -2
- package/modern/hooks/core/useGridStateInitialization.js +3 -3
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +33 -68
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/modern/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
- package/modern/hooks/features/columnResize/useGridColumnResize.js +17 -10
- package/modern/hooks/features/columns/gridColumnsUtils.js +2 -1
- package/modern/hooks/features/columns/useGridColumns.js +7 -3
- package/modern/hooks/features/dimensions/useGridDimensions.js +11 -32
- package/modern/hooks/features/editing/gridEditingSelectors.js +7 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +4 -4
- package/modern/hooks/features/editing/useGridRowEditing.js +7 -8
- package/modern/hooks/features/export/useGridPrintExport.js +1 -1
- package/modern/hooks/features/filter/gridFilterSelector.js +6 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +3 -3
- package/modern/hooks/features/filter/useGridFilter.js +1 -1
- package/modern/hooks/features/focus/useGridFocus.js +3 -2
- package/modern/hooks/features/index.js +1 -0
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -16
- package/modern/hooks/features/keyboardNavigation/utils.js +0 -5
- package/modern/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/modern/hooks/features/listView/index.js +1 -0
- package/modern/hooks/features/listView/useGridListView.js +2 -1
- package/modern/hooks/features/overlays/useGridOverlays.js +22 -2
- package/modern/hooks/features/pagination/gridPaginationSelector.js +39 -1
- package/modern/hooks/features/pagination/useGridPagination.js +5 -3
- package/modern/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/modern/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +8 -1
- package/modern/hooks/features/preferencesPanel/index.js +1 -1
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +8 -16
- package/modern/hooks/features/rowSelection/utils.js +2 -2
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -2
- package/modern/hooks/features/rows/gridRowsUtils.js +0 -9
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridParamsApi.js +33 -14
- package/modern/hooks/features/rows/useGridRowSpanning.js +97 -86
- package/modern/hooks/features/rows/useGridRows.js +23 -27
- package/modern/hooks/features/rows/useGridRowsMeta.js +3 -2
- package/modern/hooks/features/sorting/gridSortingSelector.js +11 -0
- package/modern/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/modern/hooks/features/sorting/index.js +1 -1
- package/modern/hooks/features/sorting/useGridSorting.js +1 -1
- package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +33 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +169 -94
- package/modern/hooks/utils/useGridApiEventHandler.js +1 -1
- package/modern/hooks/utils/useGridApiRef.js +1 -1
- package/modern/hooks/utils/useGridSelector.js +6 -44
- package/modern/hooks/utils/useGridVisibleRows.js +5 -28
- package/modern/index.js +1 -1
- package/modern/internals/constants.js +8 -1
- package/modern/internals/index.js +4 -3
- package/modern/internals/utils/attachPinnedStyle.js +9 -0
- package/modern/internals/utils/getPinnedCellOffset.js +6 -7
- package/modern/internals/utils/index.js +2 -2
- package/modern/locales/arSD.js +2 -1
- package/modern/locales/beBY.js +1 -1
- package/modern/locales/bgBG.js +2 -1
- package/modern/locales/csCZ.js +2 -1
- package/modern/locales/daDK.js +2 -1
- package/modern/locales/deDE.js +12 -13
- package/modern/locales/elGR.js +2 -1
- package/modern/locales/esES.js +12 -13
- package/modern/locales/faIR.js +7 -7
- package/modern/locales/fiFI.js +2 -1
- package/modern/locales/frFR.js +2 -1
- package/modern/locales/heIL.js +16 -17
- package/modern/locales/hrHR.js +2 -1
- package/modern/locales/huHU.js +2 -1
- package/modern/locales/isIS.js +2 -1
- package/modern/locales/itIT.js +2 -1
- package/modern/locales/jaJP.js +2 -1
- package/modern/locales/koKR.js +46 -49
- package/modern/locales/nbNO.js +2 -1
- package/modern/locales/nlNL.js +7 -7
- package/modern/locales/nnNO.js +2 -1
- package/modern/locales/plPL.js +2 -1
- package/modern/locales/ptBR.js +12 -13
- package/modern/locales/ptPT.js +12 -13
- package/modern/locales/roRO.js +20 -21
- package/modern/locales/ruRU.js +2 -1
- package/modern/locales/skSK.js +2 -1
- package/modern/locales/svSE.js +2 -1
- package/modern/locales/trTR.js +14 -15
- package/modern/locales/ukUA.js +2 -1
- package/modern/locales/urPK.js +11 -11
- package/modern/locales/viVN.js +2 -1
- package/modern/locales/zhCN.js +12 -13
- package/modern/locales/zhHK.js +2 -1
- package/modern/locales/zhTW.js +2 -1
- package/modern/material/index.js +58 -7
- package/modern/models/api/index.js +0 -1
- package/modern/models/gridBaseSlots.js +1 -0
- package/modern/models/gridFilterInputComponent.js +1 -0
- package/modern/utils/assert.js +3 -0
- package/modern/utils/cellBorderUtils.js +5 -5
- package/modern/utils/createSelector.js +1 -120
- package/modern/utils/domUtils.js +7 -2
- package/modern/utils/isJSDOM.js +1 -0
- package/modern/utils/roundToDecimalPlaces.js +3 -0
- package/modern/utils/rtlFlipSide.js +22 -0
- package/modern/utils/utils.js +6 -1
- package/node/DataGrid/DataGrid.js +18 -36
- package/node/DataGrid/useDataGridComponent.js +1 -1
- package/node/DataGrid/useDataGridProps.js +2 -2
- package/node/components/GridApiContext.js +1 -0
- package/node/components/GridColumnHeaders.js +4 -4
- package/node/components/GridConfigurationContext.js +1 -0
- package/node/components/GridFooter.js +4 -4
- package/node/components/GridHeaders.js +2 -2
- package/node/components/GridLoadingOverlay.js +10 -8
- package/node/components/GridNoResultsOverlay.js +4 -4
- package/node/components/GridNoRowsOverlay.js +4 -4
- package/node/components/GridPagination.js +7 -4
- package/node/components/GridRow.js +51 -84
- package/node/components/GridRowCount.js +3 -2
- package/node/components/GridScrollArea.js +1 -0
- package/node/components/GridSelectedRowCount.js +3 -2
- package/node/components/GridSkeletonLoadingOverlay.js +21 -20
- package/node/components/base/GridOverlays.js +2 -24
- package/node/components/base/index.js +0 -11
- package/node/components/cell/GridActionsCell.js +8 -1
- package/node/components/cell/GridActionsCellItem.js +7 -8
- package/node/components/cell/GridCell.js +48 -91
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +73 -4
- package/node/components/cell/GridEditSingleSelectCell.js +2 -2
- package/node/components/cell/GridSkeletonCell.js +1 -2
- package/node/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
- package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +19 -6
- package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
- package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
- package/node/components/columnHeaders/GridIconButtonContainer.js +5 -3
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +10 -8
- package/node/components/columnSelection/GridHeaderCheckbox.js +17 -9
- package/node/components/columnsManagement/GridColumnsManagement.js +50 -27
- package/node/components/containers/GridFooterContainer.js +5 -3
- package/node/components/containers/GridOverlay.js +5 -3
- package/node/components/containers/GridRoot.js +17 -7
- package/node/components/containers/GridRootStyles.js +160 -50
- package/node/components/containers/GridToolbarContainer.js +3 -2
- package/node/components/menu/columnMenu/GridColumnMenu.js +5 -5
- package/node/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +5 -10
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +5 -10
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +5 -10
- package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
- package/node/components/panel/GridColumnsPanel.js +1 -2
- package/node/components/panel/GridPanel.js +5 -3
- package/node/components/panel/GridPanelContent.js +7 -3
- package/node/components/panel/GridPanelFooter.js +5 -4
- package/node/components/panel/GridPanelWrapper.js +5 -3
- package/node/components/panel/filterPanel/GridFilterForm.js +22 -18
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +42 -33
- package/node/components/panel/filterPanel/GridFilterInputDate.js +49 -30
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
- package/node/components/panel/filterPanel/GridFilterInputValue.js +62 -37
- package/node/components/panel/filterPanel/GridFilterPanel.js +4 -4
- package/node/components/panel/filterPanel/index.js +7 -23
- package/node/components/toolbar/GridToolbar.js +11 -5
- package/node/components/toolbar/GridToolbarColumnsButton.js +12 -6
- package/node/components/toolbar/GridToolbarDensitySelector.js +9 -11
- package/node/components/toolbar/GridToolbarExport.js +2 -1
- package/node/components/toolbar/GridToolbarExportContainer.js +6 -6
- package/node/components/toolbar/GridToolbarFilterButton.js +20 -9
- package/node/components/toolbar/GridToolbarQuickFilter.js +39 -31
- package/node/components/virtualization/GridMainContainer.js +14 -5
- package/node/components/virtualization/GridVirtualScrollbar.js +17 -17
- package/node/components/virtualization/GridVirtualScroller.js +27 -12
- package/node/components/virtualization/GridVirtualScrollerContent.js +15 -6
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
- package/node/constants/dataGridPropsDefaultValues.js +2 -4
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -1
- package/node/context/GridRootPropsContext.js +1 -0
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
- package/node/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +7 -1
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/node/hooks/core/useGridApiInitialization.js +2 -2
- package/node/hooks/core/useGridStateInitialization.js +3 -3
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +31 -66
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
- package/node/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
- package/node/hooks/features/columnResize/useGridColumnResize.js +17 -10
- package/node/hooks/features/columns/gridColumnsUtils.js +2 -1
- package/node/hooks/features/columns/useGridColumns.js +7 -3
- package/node/hooks/features/dimensions/useGridDimensions.js +12 -33
- package/node/hooks/features/editing/gridEditingSelectors.js +8 -2
- package/node/hooks/features/editing/useGridCellEditing.js +3 -3
- package/node/hooks/features/editing/useGridRowEditing.js +5 -6
- package/node/hooks/features/export/useGridPrintExport.js +1 -1
- package/node/hooks/features/filter/gridFilterSelector.js +6 -1
- package/node/hooks/features/filter/gridFilterUtils.js +3 -3
- package/node/hooks/features/filter/useGridFilter.js +1 -1
- package/node/hooks/features/focus/useGridFocus.js +3 -2
- package/node/hooks/features/index.js +11 -0
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -15
- package/node/hooks/features/keyboardNavigation/utils.js +0 -6
- package/node/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/node/hooks/features/listView/index.js +16 -0
- package/node/hooks/features/listView/useGridListView.js +2 -1
- package/node/hooks/features/overlays/useGridOverlays.js +24 -2
- package/node/hooks/features/pagination/gridPaginationSelector.js +41 -3
- package/node/hooks/features/pagination/useGridPagination.js +5 -3
- package/node/hooks/features/pagination/useGridPaginationModel.js +23 -1
- package/node/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +9 -2
- package/node/hooks/features/preferencesPanel/index.js +11 -10
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
- package/node/hooks/features/rowSelection/useGridRowSelection.js +7 -15
- package/node/hooks/features/rowSelection/utils.js +2 -2
- package/node/hooks/features/rows/gridRowsSelector.js +2 -3
- package/node/hooks/features/rows/gridRowsUtils.js +0 -9
- package/node/hooks/features/rows/index.js +0 -7
- package/node/hooks/features/rows/useGridParamsApi.js +33 -14
- package/node/hooks/features/rows/useGridRowSpanning.js +95 -84
- package/node/hooks/features/rows/useGridRows.js +21 -25
- package/node/hooks/features/rows/useGridRowsMeta.js +5 -4
- package/node/hooks/features/sorting/gridSortingSelector.js +12 -1
- package/node/hooks/features/sorting/gridSortingUtils.js +2 -2
- package/node/hooks/features/sorting/index.js +24 -16
- package/node/hooks/features/sorting/useGridSorting.js +1 -1
- package/node/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +40 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +171 -96
- package/node/hooks/utils/useGridApiEventHandler.js +1 -1
- package/node/hooks/utils/useGridApiRef.js +1 -1
- package/node/hooks/utils/useGridSelector.js +8 -47
- package/node/hooks/utils/useGridVisibleRows.js +3 -28
- package/node/index.js +1 -1
- package/node/internals/constants.js +9 -2
- package/node/internals/index.js +27 -22
- package/node/internals/utils/attachPinnedStyle.js +15 -0
- package/node/internals/utils/getPinnedCellOffset.js +6 -7
- package/node/internals/utils/index.js +11 -11
- package/node/locales/arSD.js +2 -1
- package/node/locales/beBY.js +1 -1
- package/node/locales/bgBG.js +2 -1
- package/node/locales/csCZ.js +2 -1
- package/node/locales/daDK.js +2 -1
- package/node/locales/deDE.js +12 -13
- package/node/locales/elGR.js +2 -1
- package/node/locales/esES.js +12 -13
- package/node/locales/faIR.js +7 -7
- package/node/locales/fiFI.js +2 -1
- package/node/locales/frFR.js +2 -1
- package/node/locales/heIL.js +16 -17
- package/node/locales/hrHR.js +2 -1
- package/node/locales/huHU.js +2 -1
- package/node/locales/isIS.js +2 -1
- package/node/locales/itIT.js +2 -1
- package/node/locales/jaJP.js +2 -1
- package/node/locales/koKR.js +46 -49
- package/node/locales/nbNO.js +2 -1
- package/node/locales/nlNL.js +7 -7
- package/node/locales/nnNO.js +2 -1
- package/node/locales/plPL.js +2 -1
- package/node/locales/ptBR.js +12 -13
- package/node/locales/ptPT.js +12 -13
- package/node/locales/roRO.js +20 -21
- package/node/locales/ruRU.js +2 -1
- package/node/locales/skSK.js +2 -1
- package/node/locales/svSE.js +2 -1
- package/node/locales/trTR.js +14 -15
- package/node/locales/ukUA.js +2 -1
- package/node/locales/urPK.js +11 -11
- package/node/locales/viVN.js +2 -1
- package/node/locales/zhCN.js +12 -13
- package/node/locales/zhHK.js +2 -1
- package/node/locales/zhTW.js +2 -1
- package/node/material/index.js +59 -7
- package/node/models/api/index.js +0 -11
- package/node/models/gridFilterInputComponent.js +5 -0
- package/node/utils/assert.js +9 -0
- package/node/utils/cellBorderUtils.js +5 -5
- package/node/utils/createSelector.js +4 -125
- package/node/utils/domUtils.js +7 -2
- package/node/utils/isJSDOM.js +7 -0
- package/node/utils/roundToDecimalPlaces.js +9 -0
- package/node/utils/rtlFlipSide.js +29 -0
- package/node/utils/utils.js +8 -1
- package/package.json +3 -3
- package/themeAugmentation/overrides.d.ts +10 -5
- package/utils/assert.d.ts +2 -0
- package/utils/assert.js +3 -0
- package/utils/cellBorderUtils.d.ts +3 -3
- package/utils/cellBorderUtils.js +5 -5
- package/utils/createSelector.d.ts +7 -19
- package/utils/createSelector.js +1 -120
- package/utils/domUtils.js +7 -2
- package/utils/getPublicApiRef.d.ts +2 -1
- package/utils/isJSDOM.d.ts +1 -0
- package/utils/isJSDOM.js +1 -0
- package/utils/keyboardUtils.d.ts +1 -1
- package/utils/roundToDecimalPlaces.d.ts +1 -0
- package/utils/roundToDecimalPlaces.js +3 -0
- package/utils/rtlFlipSide.d.ts +2 -0
- package/utils/rtlFlipSide.js +22 -0
- package/utils/utils.d.ts +1 -0
- package/utils/utils.js +6 -1
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +0 -11
- package/internals/utils/useProps.d.ts +0 -1
- package/internals/utils/useProps.js +0 -24
- package/joy/icons.d.ts +0 -32
- package/joy/icons.js +0 -431
- package/joy/index.d.ts +0 -2
- package/joy/index.js +0 -2
- package/joy/joySlots.d.ts +0 -3
- package/joy/joySlots.js +0 -389
- package/joy/package.json +0 -6
- package/modern/internals/utils/useProps.js +0 -24
- package/modern/joy/icons.js +0 -431
- package/modern/joy/index.js +0 -2
- package/modern/joy/joySlots.js +0 -389
- package/node/internals/utils/useProps.js +0 -30
- package/node/joy/icons.js +0 -439
- package/node/joy/index.js +0 -13
- package/node/joy/joySlots.js +0 -397
- /package/{components/panel/filterPanel/GridFilterInputValueProps.js → models/gridBaseSlots.js} +0 -0
- /package/{modern/components/panel/filterPanel/GridFilterInputValueProps.js → models/gridFilterInputComponent.js} +0 -0
- /package/node/{components/panel/filterPanel/GridFilterInputValueProps.js → models/gridBaseSlots.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
3
|
import { GridCellClassNamePropType } from '../gridCellClass';
|
|
3
4
|
import { GridColumnHeaderClassNamePropType } from '../gridColumnHeaderClass';
|
|
4
5
|
import type { GridFilterOperator } from '../gridFilterOperator';
|
|
@@ -24,55 +25,55 @@ export type ValueOptions = string | number | {
|
|
|
24
25
|
* Value that can be used as a key for grouping rows
|
|
25
26
|
*/
|
|
26
27
|
export type GridKeyValue = string | number | boolean;
|
|
27
|
-
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef:
|
|
28
|
-
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef:
|
|
29
|
-
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
30
|
-
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
31
|
-
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
32
|
-
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef:
|
|
33
|
-
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef:
|
|
28
|
+
export type GridApplyQuickFilter<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: V, row: R, column: GridColDef, apiRef: RefObject<GridApiCommunity>) => boolean;
|
|
29
|
+
export type GetApplyQuickFilterFn<R extends GridValidRowModel = GridValidRowModel, V = any> = (value: any, colDef: GridStateColDef<R, V>, apiRef: RefObject<GridApiCommunity>) => null | GridApplyQuickFilter<R, V>;
|
|
30
|
+
export type GridValueGetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => V;
|
|
31
|
+
export type GridValueFormatter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V, TValue = never> = (value: TValue, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => F;
|
|
32
|
+
export type GridValueSetter<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => R;
|
|
33
|
+
export type GridValueParser<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: F | undefined, row: R | undefined, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => V;
|
|
34
|
+
export type GridColSpanFn<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => number | undefined;
|
|
34
35
|
/**
|
|
35
36
|
* Column Definition base interface.
|
|
36
37
|
*/
|
|
37
38
|
export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> {
|
|
38
39
|
/**
|
|
39
|
-
* The
|
|
40
|
+
* The unique identifier of the column. Used to map with [[GridRowModel]] values.
|
|
40
41
|
*/
|
|
41
42
|
field: string;
|
|
42
43
|
/**
|
|
43
|
-
* The title
|
|
44
|
+
* The title displayed in the column header cell.
|
|
44
45
|
*/
|
|
45
46
|
headerName?: string;
|
|
46
47
|
/**
|
|
47
|
-
* The
|
|
48
|
+
* The tooltip text shown when the column header name is truncated.
|
|
48
49
|
*/
|
|
49
50
|
description?: string;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* The width of the column in pixels.
|
|
52
53
|
* @default 100
|
|
53
54
|
*/
|
|
54
55
|
width?: number;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* The flex grow factor of the column. Must be a positive number.
|
|
57
58
|
*/
|
|
58
59
|
flex?: number;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* The minimum width of the column in pixels.
|
|
61
62
|
* @default 50
|
|
62
63
|
*/
|
|
63
64
|
minWidth?: number;
|
|
64
65
|
/**
|
|
65
|
-
*
|
|
66
|
+
* The maximum width of the column in pixels.
|
|
66
67
|
* @default Infinity
|
|
67
68
|
*/
|
|
68
69
|
maxWidth?: number;
|
|
69
70
|
/**
|
|
70
|
-
* If `false`, removes the
|
|
71
|
+
* If `false`, removes the option to hide this column.
|
|
71
72
|
* @default true
|
|
72
73
|
*/
|
|
73
74
|
hideable?: boolean;
|
|
74
75
|
/**
|
|
75
|
-
* If `
|
|
76
|
+
* If `false`, disables sorting for this column.
|
|
76
77
|
* @default true
|
|
77
78
|
*/
|
|
78
79
|
sortable?: boolean;
|
|
@@ -81,7 +82,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
81
82
|
*/
|
|
82
83
|
sortingOrder?: readonly GridSortDirection[];
|
|
83
84
|
/**
|
|
84
|
-
* If `
|
|
85
|
+
* If `false`, disables resizing for this column.
|
|
85
86
|
* @default true
|
|
86
87
|
*/
|
|
87
88
|
resizable?: boolean;
|
|
@@ -109,7 +110,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
109
110
|
*/
|
|
110
111
|
sortComparator?: GridComparatorFn<V>;
|
|
111
112
|
/**
|
|
112
|
-
*
|
|
113
|
+
* Provide an alternative comparator function for sorting.
|
|
113
114
|
* Takes precedence over `sortComparator`.
|
|
114
115
|
* @param {GridSortDirection} sortDirection The direction of the sort.
|
|
115
116
|
* @returns {GridComparatorFn<V>} The comparator function to use.
|
|
@@ -122,25 +123,25 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
122
123
|
*/
|
|
123
124
|
type?: GridColType;
|
|
124
125
|
/**
|
|
125
|
-
*
|
|
126
|
+
* Align cell content.
|
|
126
127
|
*/
|
|
127
128
|
align?: GridAlignment;
|
|
128
129
|
/**
|
|
129
|
-
* Function that
|
|
130
|
+
* Function that returns specific data to render in the cell instead of using the field value.
|
|
130
131
|
*/
|
|
131
132
|
valueGetter?: GridValueGetter<R, V, F>;
|
|
132
133
|
/**
|
|
133
|
-
* Function that
|
|
134
|
+
* Function that returns a specific value to be used in row spanning.
|
|
134
135
|
*/
|
|
135
136
|
rowSpanValueGetter?: GridValueGetter<R, V, F>;
|
|
136
137
|
/**
|
|
137
|
-
* Function that
|
|
138
|
-
*
|
|
138
|
+
* Function that customizes how the entered value is stored in the row.
|
|
139
|
+
* Only works with cell/row editing.
|
|
139
140
|
* @returns {R} The row with the updated field.
|
|
140
141
|
*/
|
|
141
142
|
valueSetter?: GridValueSetter<R, V, F>;
|
|
142
143
|
/**
|
|
143
|
-
*
|
|
144
|
+
* Formats the cell value before rendering.
|
|
144
145
|
*/
|
|
145
146
|
valueFormatter?: GridValueFormatter<R, V, F>;
|
|
146
147
|
/**
|
|
@@ -149,7 +150,7 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
149
150
|
*/
|
|
150
151
|
valueParser?: GridValueParser<R, V, F>;
|
|
151
152
|
/**
|
|
152
|
-
* Class name
|
|
153
|
+
* Class name added to cells in this column.
|
|
153
154
|
*/
|
|
154
155
|
cellClassName?: GridCellClassNamePropType<R, V>;
|
|
155
156
|
/**
|
|
@@ -159,38 +160,38 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
159
160
|
*/
|
|
160
161
|
display?: 'text' | 'flex';
|
|
161
162
|
/**
|
|
162
|
-
*
|
|
163
|
+
* Override the component rendered as cell for this column.
|
|
163
164
|
* @template R, V, F
|
|
164
165
|
* @param {GridRenderCellParams<R, V, F>} params Object containing parameters for the renderer.
|
|
165
166
|
* @returns {React.ReactNode} The element to be rendered.
|
|
166
167
|
*/
|
|
167
168
|
renderCell?: (params: GridRenderCellParams<R, V, F>) => React.ReactNode;
|
|
168
169
|
/**
|
|
169
|
-
*
|
|
170
|
+
* Override the component rendered in edit cell mode for this column.
|
|
170
171
|
* @param {GridRenderEditCellParams} params Object containing parameters for the renderer.
|
|
171
172
|
* @returns {React.ReactNode} The element to be rendered.
|
|
172
173
|
*/
|
|
173
174
|
renderEditCell?: (params: GridRenderEditCellParams<R, V, F>) => React.ReactNode;
|
|
174
175
|
/**
|
|
175
176
|
* Callback fired when the edit props of the cell changes.
|
|
176
|
-
*
|
|
177
|
+
* Processes the props before being saved into the state.
|
|
177
178
|
* @param {GridPreProcessEditCellProps} params Object containing parameters of the cell being edited.
|
|
178
179
|
* @returns {GridEditCellProps | Promise<GridEditCellProps>} The new edit cell props.
|
|
179
180
|
*/
|
|
180
181
|
preProcessEditCellProps?: (params: GridPreProcessEditCellProps) => GridEditCellProps | Promise<GridEditCellProps>;
|
|
181
182
|
/**
|
|
182
|
-
* Class name
|
|
183
|
+
* Class name added to the column header cell.
|
|
183
184
|
*/
|
|
184
185
|
headerClassName?: GridColumnHeaderClassNamePropType;
|
|
185
186
|
/**
|
|
186
|
-
*
|
|
187
|
+
* Override the component rendered in the column header cell.
|
|
187
188
|
* @template R, V, F
|
|
188
189
|
* @param {GridColumnHeaderParams<R, V, F>} params Object containing parameters for the renderer.
|
|
189
190
|
* @returns {React.ReactNode} The element to be rendered.
|
|
190
191
|
*/
|
|
191
192
|
renderHeader?: (params: GridColumnHeaderParams<R, V, F>) => React.ReactNode;
|
|
192
193
|
/**
|
|
193
|
-
*
|
|
194
|
+
* Align column header content.
|
|
194
195
|
*/
|
|
195
196
|
headerAlign?: GridAlignment;
|
|
196
197
|
/**
|
|
@@ -211,13 +212,13 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
|
|
|
211
212
|
/**
|
|
212
213
|
* Allows setting the filter operators for this column.
|
|
213
214
|
*/
|
|
214
|
-
filterOperators?: readonly GridFilterOperator<R, V, F>[];
|
|
215
|
+
filterOperators?: readonly GridFilterOperator<R, V, F, any>[];
|
|
215
216
|
/**
|
|
216
217
|
* The callback that generates a filtering function for a given quick filter value.
|
|
217
218
|
* This function can return `null` to skip filtering for this value and column.
|
|
218
219
|
* @param {any} value The value with which we want to filter the column.
|
|
219
220
|
* @param {GridStateColDef} colDef The column from which we want to filter the rows.
|
|
220
|
-
* @param {
|
|
221
|
+
* @param {RefObject<GridApiCommunity>} apiRef Deprecated: The API of the grid.
|
|
221
222
|
* @returns {null | GridApplyQuickFilter} The function to call to check if a row pass this filter value or not.
|
|
222
223
|
*/
|
|
223
224
|
getApplyQuickFilterFn?: GetApplyQuickFilterFn<R, V>;
|
|
@@ -2,10 +2,10 @@ import { GridCallbackDetails } from './api/gridCallbackDetails';
|
|
|
2
2
|
import type { GridEventLookup, GridControlledStateEventLookup } from './events';
|
|
3
3
|
import type { OutputSelector } from '../utils/createSelector';
|
|
4
4
|
import { GridStateCommunity } from './gridStateCommunity';
|
|
5
|
-
export interface GridControlStateItem<State extends GridStateCommunity, E extends keyof GridControlledStateEventLookup> {
|
|
5
|
+
export interface GridControlStateItem<State extends GridStateCommunity, Args, E extends keyof GridControlledStateEventLookup> {
|
|
6
6
|
stateId: string;
|
|
7
7
|
propModel?: GridEventLookup[E]['params'];
|
|
8
|
-
stateSelector: OutputSelector<State, GridControlledStateEventLookup[E]['params']> | ((state: State) => GridControlledStateEventLookup[E]['params']);
|
|
8
|
+
stateSelector: OutputSelector<State, Args, GridControlledStateEventLookup[E]['params']> | ((state: State) => GridControlledStateEventLookup[E]['params']);
|
|
9
9
|
propOnChange?: (model: GridControlledStateEventLookup[E]['params'], details: GridCallbackDetails) => void;
|
|
10
10
|
changeEvent: E;
|
|
11
11
|
}
|
|
@@ -399,6 +399,7 @@ export interface GridControlledStateEventLookup {
|
|
|
399
399
|
export interface GridControlledStateReasonLookup {
|
|
400
400
|
filter: 'upsertFilterItem' | 'upsertFilterItems' | 'deleteFilterItem' | 'changeLogicOperator' | 'restoreState' | 'removeAllFilterItems';
|
|
401
401
|
pagination: 'setPaginationModel' | 'stateRestorePreProcessing';
|
|
402
|
+
rows: 'addSkeletonRows';
|
|
402
403
|
}
|
|
403
404
|
export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridHeaderFilterEventLookup, GridColumnGroupHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
|
|
404
405
|
/**
|
|
@@ -583,7 +584,12 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
583
584
|
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
584
585
|
* @ignore - do not document.
|
|
585
586
|
*/
|
|
586
|
-
virtualScrollerContentSizeChange: {
|
|
587
|
+
virtualScrollerContentSizeChange: {
|
|
588
|
+
params: {
|
|
589
|
+
columnsTotalWidth: number;
|
|
590
|
+
contentHeight: number;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
587
593
|
/**
|
|
588
594
|
* Fired when the content is scrolled by the mouse wheel.
|
|
589
595
|
* It's attached to the "mousewheel" event.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
type Ref<T = HTMLElement> = React.RefCallback<T | null> | React.RefObject<T | null> | null;
|
|
2
|
+
export type BadgeProps = {
|
|
3
|
+
badgeContent?: React.ReactNode;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
color?: 'primary' | 'default' | 'error';
|
|
6
|
+
invisible?: boolean;
|
|
7
|
+
overlap?: 'circular';
|
|
8
|
+
variant?: 'dot';
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
export type ButtonProps = {
|
|
12
|
+
ref?: Ref;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
18
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
19
|
+
role?: string;
|
|
20
|
+
size?: 'small' | 'medium' | 'large';
|
|
21
|
+
startIcon?: React.ReactNode;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
tabIndex?: number;
|
|
24
|
+
title?: string;
|
|
25
|
+
touchRippleRef?: any;
|
|
26
|
+
};
|
|
27
|
+
export type IconButtonProps = Omit<ButtonProps, 'startIcon'> & {
|
|
28
|
+
label?: string;
|
|
29
|
+
color?: 'default' | 'inherit' | 'primary';
|
|
30
|
+
edge?: 'start' | 'end' | false;
|
|
31
|
+
};
|
|
32
|
+
export type DividerProps = {};
|
|
33
|
+
export type MenuItemProps = {
|
|
34
|
+
autoFocus?: boolean;
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
/** For items that aren't interactive themselves (but may contain an interactive widget) */
|
|
37
|
+
inert?: boolean;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
40
|
+
iconStart?: React.ReactNode;
|
|
41
|
+
iconEnd?: React.ReactNode;
|
|
42
|
+
selected?: boolean;
|
|
43
|
+
value?: number | string | readonly string[];
|
|
44
|
+
style?: React.CSSProperties;
|
|
45
|
+
};
|
|
46
|
+
export type CircularProgressProps = {
|
|
47
|
+
/**
|
|
48
|
+
* Pixels or CSS value.
|
|
49
|
+
* @default 40
|
|
50
|
+
*/
|
|
51
|
+
size?: number | string;
|
|
52
|
+
/** @default 'primary' */
|
|
53
|
+
color?: 'inherit' | 'primary';
|
|
54
|
+
};
|
|
55
|
+
export type LinearProgressProps = {};
|
|
56
|
+
export type SkeletonProps = {
|
|
57
|
+
variant?: 'circular' | 'text';
|
|
58
|
+
width?: number | string;
|
|
59
|
+
height?: number | string;
|
|
60
|
+
};
|
|
61
|
+
export type TextFieldProps = {
|
|
62
|
+
autoComplete?: string;
|
|
63
|
+
className?: string;
|
|
64
|
+
color?: 'primary' | 'error';
|
|
65
|
+
disabled?: boolean;
|
|
66
|
+
error?: boolean;
|
|
67
|
+
fullWidth?: boolean;
|
|
68
|
+
helperText?: string | null;
|
|
69
|
+
id?: string;
|
|
70
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
71
|
+
label?: React.ReactNode;
|
|
72
|
+
onChange?: React.ChangeEventHandler;
|
|
73
|
+
onKeyDown?: React.KeyboardEventHandler;
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
size?: 'small' | 'medium';
|
|
76
|
+
slotProps?: {
|
|
77
|
+
input?: {
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
endAdornment?: React.ReactNode;
|
|
80
|
+
startAdornment?: React.ReactNode;
|
|
81
|
+
};
|
|
82
|
+
inputLabel?: {};
|
|
83
|
+
htmlInput?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
84
|
+
};
|
|
85
|
+
style?: React.CSSProperties;
|
|
86
|
+
tabIndex?: number;
|
|
87
|
+
type?: React.HTMLInputTypeAttribute;
|
|
88
|
+
value?: string;
|
|
89
|
+
};
|
|
90
|
+
export type TooltipProps = {
|
|
91
|
+
children: React.ReactElement<any, any>;
|
|
92
|
+
enterDelay?: number;
|
|
93
|
+
title: React.ReactNode;
|
|
94
|
+
};
|
|
95
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export interface GridGetRowsParams {
|
|
|
5
5
|
/**
|
|
6
6
|
* Alternate to `start` and `end`, maps to `GridPaginationModel` interface.
|
|
7
7
|
*/
|
|
8
|
-
paginationModel
|
|
8
|
+
paginationModel?: GridPaginationModel;
|
|
9
9
|
/**
|
|
10
10
|
* First row index to fetch (number) or cursor information (number | string).
|
|
11
11
|
*/
|
package/models/gridExport.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridRowId } from './gridRows';
|
|
3
3
|
import type { GridApiCommon } from './api';
|
|
4
4
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
@@ -49,7 +49,7 @@ export interface GridGetRowsToExportParams<Api extends GridApiCommon = GridApiCo
|
|
|
49
49
|
/**
|
|
50
50
|
* The API of the grid.
|
|
51
51
|
*/
|
|
52
|
-
apiRef:
|
|
52
|
+
apiRef: RefObject<Api>;
|
|
53
53
|
}
|
|
54
54
|
export interface GridCsvGetRowsToExportParams<Api extends GridApiCommon = GridApiCommunity> extends GridGetRowsToExportParams<Api> {
|
|
55
55
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
3
|
+
import { GridFilterItem } from './gridFilterItem';
|
|
4
|
+
import type { GridApiCommon } from './api/gridApiCommon';
|
|
5
|
+
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
6
|
+
export type GridFilterInputSlotProps = {
|
|
7
|
+
size?: 'small' | 'medium';
|
|
8
|
+
label?: React.ReactNode;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
export type GridFilterInputValueProps<T extends GridFilterInputSlotProps = GridFilterInputSlotProps, Api extends GridApiCommon = GridApiCommunity> = {
|
|
12
|
+
item: GridFilterItem;
|
|
13
|
+
applyValue: (value: GridFilterItem) => void;
|
|
14
|
+
apiRef: RefObject<Api>;
|
|
15
|
+
inputRef?: React.Ref<HTMLElement | null>;
|
|
16
|
+
focusElementRef?: React.Ref<any>;
|
|
17
|
+
headerFilterMenu?: React.ReactNode;
|
|
18
|
+
clearButton?: React.ReactNode | null;
|
|
19
|
+
/**
|
|
20
|
+
* It is `true` if the filter either has a value or an operator with no value
|
|
21
|
+
* required is selected (for example `isEmpty`)
|
|
22
|
+
*/
|
|
23
|
+
isFilterActive?: boolean;
|
|
24
|
+
onFocus?: React.FocusEventHandler;
|
|
25
|
+
onBlur?: React.FocusEventHandler;
|
|
26
|
+
tabIndex?: number;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
className?: string;
|
|
29
|
+
slotProps?: {
|
|
30
|
+
root: T;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
3
|
import { GridFilterItem } from './gridFilterItem';
|
|
3
4
|
import type { GridColDef } from './colDef/gridColDef';
|
|
4
5
|
import type { GridValidRowModel } from './gridRows';
|
|
5
6
|
import type { GridApiCommunity } from './api/gridApiCommunity';
|
|
6
|
-
type
|
|
7
|
+
import type { GridFilterInputValueProps } from './gridFilterInputComponent';
|
|
8
|
+
type ApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (value: V, row: R, column: GridColDef<R, V, F>, apiRef: RefObject<GridApiCommunity>) => boolean;
|
|
7
9
|
export type GetApplyFilterFn<R extends GridValidRowModel = any, V = any, F = V> = (filterItem: GridFilterItem, column: GridColDef<R, V, F>) => null | ApplyFilterFn<R, V, F>;
|
|
8
10
|
/**
|
|
9
11
|
* Filter operator definition interface.
|
|
10
12
|
* @demos
|
|
11
13
|
* - [Custom filter operator](/x/react-data-grid/filtering/customization/#create-a-custom-operator)
|
|
12
14
|
*/
|
|
13
|
-
export interface GridFilterOperator<R extends GridValidRowModel = any, V = any, F = V> {
|
|
15
|
+
export interface GridFilterOperator<R extends GridValidRowModel = any, V = any, F = V, I extends GridFilterInputValueProps<any> = GridFilterInputValueProps> {
|
|
14
16
|
/**
|
|
15
17
|
* The label of the filter operator.
|
|
16
18
|
*/
|
|
@@ -35,11 +37,11 @@ export interface GridFilterOperator<R extends GridValidRowModel = any, V = any,
|
|
|
35
37
|
/**
|
|
36
38
|
* The input component to render in the filter panel for this filter operator.
|
|
37
39
|
*/
|
|
38
|
-
InputComponent?: React.JSXElementConstructor<
|
|
40
|
+
InputComponent?: React.JSXElementConstructor<I>;
|
|
39
41
|
/**
|
|
40
42
|
* The props to pass to the input component in the filter panel for this filter operator.
|
|
41
43
|
*/
|
|
42
|
-
InputComponentProps?:
|
|
44
|
+
InputComponentProps?: Partial<I>;
|
|
43
45
|
/**
|
|
44
46
|
* Converts the value of a filter item to a human-readable form.
|
|
45
47
|
* @param {GridFilterItem['value']} value The filter item value.
|
|
@@ -178,4 +178,9 @@ export interface GridIconSlotsComponent {
|
|
|
178
178
|
* @default GridDragIcon
|
|
179
179
|
*/
|
|
180
180
|
columnReorderIcon: React.JSXElementConstructor<any>;
|
|
181
|
+
/**
|
|
182
|
+
* Icon displayed to indicate that a menu item is selected.
|
|
183
|
+
* @default GridCheckIcon
|
|
184
|
+
*/
|
|
185
|
+
menuItemCheckIcon: React.JSXElementConstructor<any>;
|
|
181
186
|
}
|
|
@@ -13,6 +13,11 @@ export interface GridBaseSlots {
|
|
|
13
13
|
* @default Checkbox
|
|
14
14
|
*/
|
|
15
15
|
baseCheckbox: React.JSXElementConstructor<GridSlotProps['baseCheckbox']>;
|
|
16
|
+
/**
|
|
17
|
+
* The custom CircularProgress component used in the grid.
|
|
18
|
+
* @default CircularProgress
|
|
19
|
+
*/
|
|
20
|
+
baseCircularProgress: React.JSXElementConstructor<GridSlotProps['baseCircularProgress']>;
|
|
16
21
|
/**
|
|
17
22
|
* The custom Chip component used in the grid.
|
|
18
23
|
* @default Chip
|
|
@@ -23,6 +28,11 @@ export interface GridBaseSlots {
|
|
|
23
28
|
* @default Divider
|
|
24
29
|
*/
|
|
25
30
|
baseDivider: React.JSXElementConstructor<GridSlotProps['baseDivider']>;
|
|
31
|
+
/**
|
|
32
|
+
* The custom LinearProgress component used in the grid.
|
|
33
|
+
* @default LinearProgress
|
|
34
|
+
*/
|
|
35
|
+
baseLinearProgress: React.JSXElementConstructor<GridSlotProps['baseLinearProgress']>;
|
|
26
36
|
/**
|
|
27
37
|
* The custom MenuList component used in the grid.
|
|
28
38
|
* @default MenuList
|
|
@@ -80,9 +90,14 @@ export interface GridBaseSlots {
|
|
|
80
90
|
baseInputLabel: React.JSXElementConstructor<GridSlotProps['baseInputLabel']>;
|
|
81
91
|
/**
|
|
82
92
|
* The custom SelectOption component used in the grid.
|
|
83
|
-
* @default
|
|
93
|
+
* @default SelectOption
|
|
84
94
|
*/
|
|
85
95
|
baseSelectOption: React.JSXElementConstructor<GridSlotProps['baseSelectOption']>;
|
|
96
|
+
/**
|
|
97
|
+
* The custom Skeleton component used in the grid.
|
|
98
|
+
* @default Skeleton
|
|
99
|
+
*/
|
|
100
|
+
baseSkeleton: React.JSXElementConstructor<GridSlotProps['baseSkeleton']>;
|
|
86
101
|
}
|
|
87
102
|
/**
|
|
88
103
|
* Grid components React prop interface containing all the overridable components.
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BadgeProps } from '@mui/material/Badge';
|
|
2
|
+
import type { BadgeProps as MUIBadgeProps } from '@mui/material/Badge';
|
|
3
|
+
import type { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
4
|
import type { CheckboxProps } from '@mui/material/Checkbox';
|
|
5
|
+
import type { CircularProgressProps as MUICircularProgressProps } from '@mui/material/CircularProgress';
|
|
6
|
+
import type { LinearProgressProps as MUILinearProgressProps } from '@mui/material/LinearProgress';
|
|
4
7
|
import type { MenuListProps } from '@mui/material/MenuList';
|
|
5
|
-
import type { MenuItemProps } from '@mui/material/MenuItem';
|
|
6
|
-
import type { TextFieldProps } from '@mui/material/TextField';
|
|
8
|
+
import type { MenuItemProps as MUIMenuItemProps } from '@mui/material/MenuItem';
|
|
7
9
|
import type { FormControlProps } from '@mui/material/FormControl';
|
|
8
10
|
import type { SelectProps } from '@mui/material/Select';
|
|
9
11
|
import type { SwitchProps } from '@mui/material/Switch';
|
|
10
|
-
import type {
|
|
11
|
-
import type { IconButtonProps } from '@mui/material/IconButton';
|
|
12
|
+
import type { IconButtonProps as MUIIconButtonProps } from '@mui/material/IconButton';
|
|
12
13
|
import type { InputAdornmentProps } from '@mui/material/InputAdornment';
|
|
13
|
-
import type { TooltipProps } from '@mui/material/Tooltip';
|
|
14
|
+
import type { TooltipProps as MUITooltipProps } from '@mui/material/Tooltip';
|
|
14
15
|
import type { InputLabelProps } from '@mui/material/InputLabel';
|
|
15
16
|
import type { PopperProps } from '@mui/material/Popper';
|
|
16
17
|
import type { TablePaginationProps } from '@mui/material/TablePagination';
|
|
@@ -33,13 +34,19 @@ import type { GridColumnsManagementProps } from '../components/columnsManagement
|
|
|
33
34
|
import type { GridLoadingOverlayProps } from '../components/GridLoadingOverlay';
|
|
34
35
|
import type { GridRowCountProps } from '../components/GridRowCount';
|
|
35
36
|
import type { GridColumnHeaderSortIconProps } from '../components/columnHeaders/GridColumnHeaderSortIcon';
|
|
36
|
-
type DividerProps
|
|
37
|
+
import type { BadgeProps, ButtonProps, CircularProgressProps, DividerProps, IconButtonProps, LinearProgressProps, MenuItemProps, SkeletonProps, TooltipProps, TextFieldProps } from './gridBaseSlots';
|
|
38
|
+
type RootProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
39
|
+
type MainProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
37
40
|
export interface BaseBadgePropsOverrides {
|
|
38
41
|
}
|
|
39
42
|
export interface BaseCheckboxPropsOverrides {
|
|
40
43
|
}
|
|
44
|
+
export interface BaseCircularProgressPropsOverrides {
|
|
45
|
+
}
|
|
41
46
|
export interface BaseDividerPropsOverrides {
|
|
42
47
|
}
|
|
48
|
+
export interface BaseLinearProgressPropsOverrides {
|
|
49
|
+
}
|
|
43
50
|
export interface BaseMenuListPropsOverrides {
|
|
44
51
|
}
|
|
45
52
|
export interface BaseMenuItemPropsOverrides {
|
|
@@ -66,6 +73,8 @@ export interface BaseInputLabelPropsOverrides {
|
|
|
66
73
|
}
|
|
67
74
|
export interface BaseSelectOptionPropsOverrides {
|
|
68
75
|
}
|
|
76
|
+
export interface BaseSkeletonPropsOverrides {
|
|
77
|
+
}
|
|
69
78
|
export interface BaseChipPropsOverrides {
|
|
70
79
|
}
|
|
71
80
|
export interface CellPropsOverrides {
|
|
@@ -106,10 +115,12 @@ export interface SkeletonCellPropsOverrides {
|
|
|
106
115
|
}
|
|
107
116
|
export interface RowPropsOverrides {
|
|
108
117
|
}
|
|
109
|
-
|
|
118
|
+
interface BaseSlotProps {
|
|
110
119
|
baseBadge: BadgeProps & BaseBadgePropsOverrides;
|
|
111
120
|
baseCheckbox: CheckboxProps & BaseCheckboxPropsOverrides;
|
|
121
|
+
baseCircularProgress: CircularProgressProps & BaseCircularProgressPropsOverrides;
|
|
112
122
|
baseDivider: DividerProps & BaseDividerPropsOverrides;
|
|
123
|
+
baseLinearProgress: LinearProgressProps & BaseLinearProgressPropsOverrides;
|
|
113
124
|
baseMenuList: MenuListProps & BaseMenuListPropsOverrides;
|
|
114
125
|
baseMenuItem: MenuItemProps & BaseMenuItemPropsOverrides;
|
|
115
126
|
baseTextField: TextFieldProps & BaseTextFieldPropsOverrides;
|
|
@@ -127,7 +138,19 @@ export interface GridSlotProps {
|
|
|
127
138
|
value: any;
|
|
128
139
|
children?: React.ReactNode;
|
|
129
140
|
} & BaseSelectOptionPropsOverrides;
|
|
141
|
+
baseSkeleton: SkeletonProps & BaseSkeletonPropsOverrides;
|
|
130
142
|
baseChip: ChipProps & BaseChipPropsOverrides;
|
|
143
|
+
}
|
|
144
|
+
interface MaterialSlotProps {
|
|
145
|
+
baseBadge: MUIBadgeProps;
|
|
146
|
+
baseButton: MUIButtonProps;
|
|
147
|
+
baseIconButton: MUIIconButtonProps;
|
|
148
|
+
baseLinearProgress: MUILinearProgressProps;
|
|
149
|
+
baseCircularProgress: MUICircularProgressProps;
|
|
150
|
+
baseMenuItem: MUIMenuItemProps;
|
|
151
|
+
baseTooltip: MUITooltipProps;
|
|
152
|
+
}
|
|
153
|
+
interface ElementSlotProps {
|
|
131
154
|
cell: GridCellProps & CellPropsOverrides;
|
|
132
155
|
columnHeaders: GridColumnHeadersProps;
|
|
133
156
|
columnHeaderFilterIconButton: ColumnHeaderFilterIconButtonProps & ColumnHeaderFilterIconButtonPropsOverrides;
|
|
@@ -148,7 +171,20 @@ export interface GridSlotProps {
|
|
|
148
171
|
row: GridRowProps & RowPropsOverrides;
|
|
149
172
|
skeletonCell: GridSkeletonCellProps & SkeletonCellPropsOverrides;
|
|
150
173
|
toolbar: GridToolbarProps & ToolbarPropsOverrides;
|
|
151
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Props passed to the `.main` (role="grid") element.
|
|
176
|
+
*/
|
|
177
|
+
main: MainProps;
|
|
178
|
+
/**
|
|
179
|
+
* Props passed to the `.root` element.
|
|
180
|
+
*/
|
|
181
|
+
root: RootProps;
|
|
182
|
+
}
|
|
183
|
+
type Select<A, B, K> = K extends keyof A ? A[K] : K extends keyof B ? B[K] : never;
|
|
184
|
+
type Merge<A, B> = {
|
|
185
|
+
[K in keyof A | keyof B]: K extends 'ref' ? Select<A, B, 'ref'> : K extends keyof A & keyof B ? A[K] & B[K] : K extends keyof B ? B[K] : K extends keyof A ? A[K] : never;
|
|
186
|
+
};
|
|
187
|
+
export type GridSlotProps = Merge<BaseSlotProps, MaterialSlotProps> & ElementSlotProps;
|
|
152
188
|
/**
|
|
153
189
|
* Overridable components props dynamically passed to the component at rendering.
|
|
154
190
|
*/
|
package/models/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './gridEditRowModel';
|
|
|
5
5
|
export * from './gridFeatureMode';
|
|
6
6
|
export * from './gridFilterItem';
|
|
7
7
|
export * from './gridFilterModel';
|
|
8
|
+
export type { GridFilterInputValueProps } from './gridFilterInputComponent';
|
|
8
9
|
export * from './gridPaginationProps';
|
|
9
10
|
export * from './gridRenderContextProps';
|
|
10
11
|
export * from './gridRows';
|